Found a 735 line (2995 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/abi.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx

using namespace x86_64;

typedef struct
{
    /* Registers for argument passing.  */
    long gpr[MAX_GPR_REGS];
    __int128_t sse[MAX_SSE_REGS];

    /* Stack space for arguments.  */
    char argspace[0];
} stackLayout;

/* Register class used for passing given 64bit part of the argument.
   These represent classes as documented by the PS ABI, with the exception
   of SSESF, SSEDF classes, that are basically SSE class, just gcc will
   use SF or DFmode move instead of DImode to avoid reformating penalties.

   Similary we play games with INTEGERSI_CLASS to use cheaper SImode moves
   whenever possible (upper half does contain padding).
 */
enum x86_64_reg_class
{
    X86_64_NO_CLASS,
    X86_64_INTEGER_CLASS,
    X86_64_INTEGERSI_CLASS,
    X86_64_SSE_CLASS,
    X86_64_SSESF_CLASS,
    X86_64_SSEDF_CLASS,
    X86_64_SSEUP_CLASS,
    X86_64_X87_CLASS,
    X86_64_X87UP_CLASS,
    X86_64_MEMORY_CLASS
};

#define MAX_CLASSES 4

#define ALIGN(v, a) (((((size_t) (v))-1) | ((a)-1))+1)

/* x86-64 register passing implementation.  See x86-64 ABI for details.  Goal
   of this code is to classify each 8bytes of incoming argument by the register
   class and assign registers accordingly.  */

/* Return the union class of CLASS1 and CLASS2.
   See the x86-64 PS ABI for details.  */

static enum x86_64_reg_class
merge_classes (enum x86_64_reg_class class1, enum x86_64_reg_class class2)
{
    /* Rule #1: If both classes are equal, this is the resulting class.  */
    if (class1 == class2)
        return class1;

    /* Rule #2: If one of the classes is NO_CLASS, the resulting class is
       the other class.  */
    if (class1 == X86_64_NO_CLASS)
        return class2;
    if (class2 == X86_64_NO_CLASS)
        return class1;

    /* Rule #3: If one of the classes is MEMORY, the result is MEMORY.  */
    if (class1 == X86_64_MEMORY_CLASS || class2 == X86_64_MEMORY_CLASS)
        return X86_64_MEMORY_CLASS;

    /* Rule #4: If one of the classes is INTEGER, the result is INTEGER.  */
    if ((class1 == X86_64_INTEGERSI_CLASS && class2 == X86_64_SSESF_CLASS)
            || (class2 == X86_64_INTEGERSI_CLASS && class1 == X86_64_SSESF_CLASS))
        return X86_64_INTEGERSI_CLASS;
    if (class1 == X86_64_INTEGER_CLASS || class1 == X86_64_INTEGERSI_CLASS
            || class2 == X86_64_INTEGER_CLASS || class2 == X86_64_INTEGERSI_CLASS)
        return X86_64_INTEGER_CLASS;

    /* Rule #5: If one of the classes is X87 or X87UP class, MEMORY is used.  */
    if (class1 == X86_64_X87_CLASS || class1 == X86_64_X87UP_CLASS
            || class2 == X86_64_X87_CLASS || class2 == X86_64_X87UP_CLASS)
        return X86_64_MEMORY_CLASS;

    /* Rule #6: Otherwise class SSE is used.  */
    return X86_64_SSE_CLASS;
}

/* Classify the argument of type TYPE and mode MODE.
   CLASSES will be filled by the register class used to pass each word
   of the operand.  The number of words is returned.  In case the parameter
   should be passed in memory, 0 is returned. As a special case for zero
   sized containers, classes[0] will be NO_CLASS and 1 is returned.

   See the x86-64 PS ABI for details.
*/
static int
classify_argument( typelib_TypeDescriptionReference *pTypeRef, enum x86_64_reg_class classes[], int &rByteOffset )
{
    /* First, align to the right place.  */
    rByteOffset = ALIGN( rByteOffset, pTypeRef->pType->nAlignment );

    switch ( pTypeRef->eTypeClass )
    {
        case typelib_TypeClass_VOID:
            classes[0] = X86_64_NO_CLASS;
            return 1;
        case typelib_TypeClass_CHAR:
        case typelib_TypeClass_BOOLEAN:
        case typelib_TypeClass_BYTE:
        case typelib_TypeClass_SHORT:
        case typelib_TypeClass_UNSIGNED_SHORT:
        case typelib_TypeClass_LONG:
        case typelib_TypeClass_UNSIGNED_LONG:
        case typelib_TypeClass_HYPER:
        case typelib_TypeClass_UNSIGNED_HYPER:
        case typelib_TypeClass_ENUM:
            if ( ( rByteOffset % 8 + pTypeRef->pType->nSize ) <= 4 )
                classes[0] = X86_64_INTEGERSI_CLASS;
            else
                classes[0] = X86_64_INTEGER_CLASS;
            return 1;
        case typelib_TypeClass_FLOAT:
            if ( ( rByteOffset % 8 ) == 0 )
                classes[0] = X86_64_SSESF_CLASS;
            else
                classes[0] = X86_64_SSE_CLASS;
            return 1;
        case typelib_TypeClass_DOUBLE:
            classes[0] = X86_64_SSEDF_CLASS;
            return 1;
        /*case LONGDOUBLE:
            classes[0] = X86_64_X87_CLASS;
            classes[1] = X86_64_X87UP_CLASS;
            return 2;*/
        case typelib_TypeClass_STRING:
        case typelib_TypeClass_TYPE:
        case typelib_TypeClass_ANY:
        case typelib_TypeClass_TYPEDEF:
        case typelib_TypeClass_UNION:
        case typelib_TypeClass_SEQUENCE:
        case typelib_TypeClass_ARRAY:
        case typelib_TypeClass_INTERFACE:
            return 0;
        case typelib_TypeClass_STRUCT:
        case typelib_TypeClass_EXCEPTION:
            {
                typelib_TypeDescription * pTypeDescr = 0;
                TYPELIB_DANGER_GET( &pTypeDescr, pTypeRef );

                const int UNITS_PER_WORD = 8;
                int words = ( pTypeDescr->nSize + UNITS_PER_WORD - 1 ) / UNITS_PER_WORD;
                enum x86_64_reg_class subclasses[MAX_CLASSES];

                /* If the struct is larger than 16 bytes, pass it on the stack.  */
                if ( pTypeDescr->nSize > 16 )
                {
                    TYPELIB_DANGER_RELEASE( pTypeDescr );
                    return 0;
                }

                for ( int i = 0; i < words; i++ )
                    classes[i] = X86_64_NO_CLASS;

                const typelib_CompoundTypeDescription *pStruct = reinterpret_cast<const typelib_CompoundTypeDescription*>( pTypeDescr );

                /* Merge the fields of structure.  */
                for ( sal_Int32 nMember = 0; nMember < pStruct->nMembers; ++nMember )
                {
                    typelib_TypeDescriptionReference *pTypeInStruct = pStruct->ppTypeRefs[ nMember ];

                    int num = classify_argument( pTypeInStruct, subclasses, rByteOffset );

                    if ( num == 0 )
                    {
                        TYPELIB_DANGER_RELEASE( pTypeDescr );
                        return 0;
                    }

                    for ( int i = 0; i < num; i++ )
                    {
                        int pos = rByteOffset / 8;
                        classes[i + pos] = merge_classes( subclasses[i], classes[i + pos] );
                    }

                    if ( pTypeInStruct->eTypeClass != typelib_TypeClass_STRUCT )
                        rByteOffset = pStruct->pMemberOffsets[ nMember ];
                }

                TYPELIB_DANGER_RELEASE( pTypeDescr );

                /* Final merger cleanup.  */
                for ( int i = 0; i < words; i++ )
                {
                    /* If one class is MEMORY, everything should be passed in
                       memory.  */
                    if ( classes[i] == X86_64_MEMORY_CLASS )
                        return 0;

                    /* The X86_64_SSEUP_CLASS should be always preceded by
                       X86_64_SSE_CLASS.  */
                    if ( classes[i] == X86_64_SSEUP_CLASS
                            && ( i == 0 || classes[i - 1] != X86_64_SSE_CLASS ) )
                        classes[i] = X86_64_SSE_CLASS;

                    /*  X86_64_X87UP_CLASS should be preceded by X86_64_X87_CLASS.  */
                    if ( classes[i] == X86_64_X87UP_CLASS
                            && ( i == 0 || classes[i - 1] != X86_64_X87_CLASS ) )
                        classes[i] = X86_64_SSE_CLASS;
                }
                return words;
            }

        default:
#if OSL_DEBUG_LEVEL > 1
            OSL_TRACE( "Unhandled case: pType->eTypeClass == %d\n", pTypeRef->eTypeClass );
#endif
            OSL_ASSERT(0);
    }
    return 0; /* Never reached.  */
}

/* Examine the argument and return set number of register required in each
   class.  Return 0 iff parameter should be passed in memory.  */
bool x86_64::examine_argument( typelib_TypeDescriptionReference *pTypeRef, bool bInReturn, int &nUsedGPR, int &nUsedSSE )
{
    enum x86_64_reg_class classes[MAX_CLASSES];
    int offset = 0;
    int n;

    n = classify_argument( pTypeRef, classes, offset );

    if ( n == 0 )
        return false;

    nUsedGPR = 0;
    nUsedSSE = 0;
    for ( n--; n >= 0; n-- )
        switch ( classes[n] )
        {
            case X86_64_INTEGER_CLASS:
            case X86_64_INTEGERSI_CLASS:
                nUsedGPR++;
                break;
            case X86_64_SSE_CLASS:
            case X86_64_SSESF_CLASS:
            case X86_64_SSEDF_CLASS:
                nUsedSSE++;
                break;
            case X86_64_NO_CLASS:
            case X86_64_SSEUP_CLASS:
                break;
            case X86_64_X87_CLASS:
            case X86_64_X87UP_CLASS:
                if ( !bInReturn )
                    return false;
                break;
            default:
#if OSL_DEBUG_LEVEL > 1
            OSL_TRACE( "Unhandled case: classes[n] == %d\n", classes[n] );
#endif
            OSL_ASSERT(0);
        }
    return true;
}

bool x86_64::return_in_hidden_param( typelib_TypeDescriptionReference *pTypeRef )
{
    int g, s;

    return examine_argument( pTypeRef, true, g, s ) == 0;
}

void x86_64::fill_struct( typelib_TypeDescriptionReference *pTypeRef, void * const *pGPR, void * const *pSSE, void *pStruct )
{
    enum x86_64_reg_class classes[MAX_CLASSES];
    int offset = 0;
    int n;

    n = classify_argument( pTypeRef, classes, offset );

    sal_uInt64 *pStructAlign = reinterpret_cast<sal_uInt64 *>( pStruct );
    for ( n--; n >= 0; n-- )
        switch ( classes[n] )
        {
            case X86_64_INTEGER_CLASS:
            case X86_64_INTEGERSI_CLASS:
                *pStructAlign++ = *reinterpret_cast<sal_uInt64 *>( *pGPR++ );
                break;
            case X86_64_SSE_CLASS:
            case X86_64_SSESF_CLASS:
            case X86_64_SSEDF_CLASS:
                *pStructAlign++ = *reinterpret_cast<sal_uInt64 *>( *pSSE++ );
                break;
        }
}

#if 0

/* Functions to load floats and double to an SSE register placeholder.  */
extern void float2sse (float, __int128_t *);
extern void double2sse (double, __int128_t *);
extern void floatfloat2sse (void *, __int128_t *);

/* Functions to put the floats and doubles back.  */
extern float sse2float (__int128_t *);
extern double sse2double (__int128_t *);
extern void sse2floatfloat(__int128_t *, void *);

/*@-exportheader@*/
void
ffi_prep_args (stackLayout *stack, extended_cif *ecif)
/*@=exportheader@*/
{
  int gprcount, ssecount, i, g, s;
  void **p_argv;
  void *argp = &stack->argspace;
  ffi_type **p_arg;

  /* First check if the return value should be passed in memory. If so,
     pass the pointer as the first argument.  */
  gprcount = ssecount = 0;
  if (ecif->cif->rtype->type != FFI_TYPE_VOID 
      && examine_argument (ecif->cif->rtype, 1, &g, &s) == 0)
    (void *)stack->gpr[gprcount++] = ecif->rvalue;

  for (i=ecif->cif->nargs, p_arg=ecif->cif->arg_types, p_argv = ecif->avalue;
       i!=0; i--, p_arg++, p_argv++)
    {
      int in_register = 0;

      switch ((*p_arg)->type)
	{
	case FFI_TYPE_SINT8:
	case FFI_TYPE_SINT16:
	case FFI_TYPE_SINT32:
	case FFI_TYPE_SINT64:
	case FFI_TYPE_UINT8:
	case FFI_TYPE_UINT16:
	case FFI_TYPE_UINT32:
	case FFI_TYPE_UINT64:
	case FFI_TYPE_POINTER:
	  if (gprcount < MAX_GPR_REGS)
	    {
	      stack->gpr[gprcount] = 0;
	      stack->gpr[gprcount++] = *(long long *)(*p_argv);
	      in_register = 1;
	    }
	  break;

	case FFI_TYPE_FLOAT:
	  if (ssecount < MAX_SSE_REGS)
	    {
	      float2sse (*(float *)(*p_argv), &stack->sse[ssecount++]);
	      in_register = 1;
	    }
	  break;

	case FFI_TYPE_DOUBLE:
	  if (ssecount < MAX_SSE_REGS)
	    {
	      double2sse (*(double *)(*p_argv), &stack->sse[ssecount++]);
	      in_register = 1;
	    }
	  break;
	}

      if (in_register)
	continue;

      /* Either all places in registers where filled, or this is a
	 type that potentially goes into a memory slot.  */
      if (examine_argument (*p_arg, 0, &g, &s) == 0
	  || gprcount + g > MAX_GPR_REGS || ssecount + s > MAX_SSE_REGS)
	{
	  /* Pass this argument in memory.  */
	  argp = (void *)ALIGN(argp, (*p_arg)->alignment);
	  memcpy (argp, *p_argv, (*p_arg)->size);
	  argp += (*p_arg)->size;
	}
      else
	{
	  /* All easy cases are eliminated. Now fire the big guns.  */

	  enum x86_64_reg_class classes[MAX_CLASSES];
	  int offset = 0, j, num;
	  void *a;

	  num = classify_argument (*p_arg, classes, &offset);
	  for (j=0, a=*p_argv; j<num; j++, a+=8)
	    {
	      switch (classes[j])
		{
		case X86_64_INTEGER_CLASS:
		case X86_64_INTEGERSI_CLASS:
		  stack->gpr[gprcount++] = *(long long *)a;
		  break;
		case X86_64_SSE_CLASS:
		  floatfloat2sse (a, &stack->sse[ssecount++]);
		  break;
		case X86_64_SSESF_CLASS:
		  float2sse (*(float *)a, &stack->sse[ssecount++]);
		  break;
		case X86_64_SSEDF_CLASS:
		  double2sse (*(double *)a, &stack->sse[ssecount++]);
		  break;
		default:
		  abort();
		}
	    }
	}
    }
}

/* Perform machine dependent cif processing.  */
ffi_status
ffi_prep_cif_machdep (ffi_cif *cif)
{
  int gprcount, ssecount, i, g, s;

  gprcount = ssecount = 0;

  /* Reset the byte count. We handle this size estimation here.  */
  cif->bytes = 0;

  /* If the return value should be passed in memory, pass the pointer
     as the first argument. The actual memory isn't allocated here.  */
  if (cif->rtype->type != FFI_TYPE_VOID 
      && examine_argument (cif->rtype, 1, &g, &s) == 0)
    gprcount = 1;

  /* Go over all arguments and determine the way they should be passed.
     If it's in a register and there is space for it, let that be so. If
     not, add it's size to the stack byte count.  */
  for (i=0; i<cif->nargs; i++)
    {
      if (examine_argument (cif->arg_types[i], 0, &g, &s) == 0
	  || gprcount + g > MAX_GPR_REGS || ssecount + s > MAX_SSE_REGS)
	{
	  /* This is passed in memory. First align to the basic type.  */
	  cif->bytes = ALIGN(cif->bytes, cif->arg_types[i]->alignment);

	  /* Stack arguments are *always* at least 8 byte aligned.  */
	  cif->bytes = ALIGN(cif->bytes, 8);

	  /* Now add the size of this argument.  */
	  cif->bytes += cif->arg_types[i]->size;
	}
      else
	{
	  gprcount += g;
	  ssecount += s;
	}
    }

  /* Set the flag for the closures return.  */
    switch (cif->rtype->type)
    {
    case FFI_TYPE_VOID:
    case FFI_TYPE_STRUCT:
    case FFI_TYPE_SINT64:
    case FFI_TYPE_FLOAT:
    case FFI_TYPE_DOUBLE:
    case FFI_TYPE_LONGDOUBLE:
      cif->flags = (unsigned) cif->rtype->type;
      break;

    case FFI_TYPE_UINT64:
      cif->flags = FFI_TYPE_SINT64;
      break;

    default:
      cif->flags = FFI_TYPE_INT;
      break;
    }

  return FFI_OK;
}

typedef struct
{
  long gpr[2];
  __int128_t sse[2];
  long double st0;
} return_value;

//#endif

void
ffi_fill_return_value (return_value *rv, extended_cif *ecif)
{
    enum x86_64_reg_class classes[MAX_CLASSES];
    int i = 0, num;
    long *gpr = rv->gpr;
    __int128_t *sse = rv->sse;
    signed char sc;
    signed short ss;

    /* This is needed because of the way x86-64 handles signed short
       integers.  */
    switch (ecif->cif->rtype->type)
    {
        case FFI_TYPE_SINT8:
            sc = *(signed char *)gpr;
            *(long long *)ecif->rvalue = (long long)sc;
            return;
        case FFI_TYPE_SINT16:
            ss = *(signed short *)gpr;
            *(long long *)ecif->rvalue = (long long)ss;
            return;
        default:
            /* Just continue.  */
            ;
    }

    num = classify_argument (ecif->cif->rtype, classes, &i);

    if (num == 0)
        /* Return in memory.  */
        ecif->rvalue = (void *) rv->gpr[0];
    else if (num == 2 && classes[0] == X86_64_X87_CLASS &&
            classes[1] == X86_64_X87UP_CLASS)
        /* This is a long double (this is easiest to handle this way instead
           of an eightbyte at a time as in the loop below.  */
        *((long double *)ecif->rvalue) = rv->st0;
    else
    {
        void *a;

        for (i=0, a=ecif->rvalue; i<num; i++, a+=8)
        {
            switch (classes[i])
            {
                case X86_64_INTEGER_CLASS:
                case X86_64_INTEGERSI_CLASS:
                    *(long long *)a = *gpr;
                    gpr++;
                    break;
                case X86_64_SSE_CLASS:
                    sse2floatfloat (sse++, a);
                    break;
                case X86_64_SSESF_CLASS:
                    *(float *)a = sse2float (sse++);
                    break;
                case X86_64_SSEDF_CLASS:
                    *(double *)a = sse2double (sse++);
                    break;
                default:
                    abort();
            }
        }
    }
}

//#if 0

/*@-declundef@*/
/*@-exportheader@*/
extern void ffi_call_UNIX64(void (*)(stackLayout *, extended_cif *),
			    void (*) (return_value *, extended_cif *),
			    /*@out@*/ extended_cif *, 
			    unsigned, /*@out@*/ unsigned *, void (*fn)());
/*@=declundef@*/
/*@=exportheader@*/

void ffi_call(/*@dependent@*/ ffi_cif *cif, 
	      void (*fn)(), 
	      /*@out@*/ void *rvalue, 
	      /*@dependent@*/ void **avalue)
{
  extended_cif ecif;
  int dummy;

  ecif.cif = cif;
  ecif.avalue = avalue;
  
  /* If the return value is a struct and we don't have a return	*/
  /* value address then we need to make one		        */

  if ((rvalue == NULL) && 
      (examine_argument (cif->rtype, 1, &dummy, &dummy) == 0))
    {
      /*@-sysunrecog@*/
      ecif.rvalue = alloca(cif->rtype->size);
      /*@=sysunrecog@*/
    }
  else
    ecif.rvalue = rvalue;
    
  /* Stack must always be 16byte aligned. Make it so.  */
  cif->bytes = ALIGN(cif->bytes, 16);
  
  switch (cif->abi) 
    {
    case FFI_SYSV:
      /* Calling 32bit code from 64bit is not possible  */
      FFI_ASSERT(0);
      break;

    case FFI_UNIX64:
      /*@-usedef@*/
      ffi_call_UNIX64 (ffi_prep_args, ffi_fill_return_value, &ecif,
		       cif->bytes, ecif.rvalue, fn);
      /*@=usedef@*/
      break;

    default:
      FFI_ASSERT(0);
      break;
    }
}

extern void ffi_closure_UNIX64(void);

ffi_status
ffi_prep_closure (ffi_closure* closure,
		  ffi_cif* cif,
		  void (*fun)(ffi_cif*, void*, void**, void*),
		  void *user_data)
{
  volatile unsigned short *tramp;

  /* FFI_ASSERT (cif->abi == FFI_OSF);  */

  tramp = (volatile unsigned short *) &closure->tramp[0];
  tramp[0] = 0xbb49;		/* mov <code>, %r11	*/
  tramp[5] = 0xba49;		/* mov <data>, %r10	*/
  tramp[10] = 0xff49;		/* jmp *%r11	*/
  tramp[11] = 0x00e3;
  *(void * volatile *) &tramp[1] = ffi_closure_UNIX64;
  *(void * volatile *) &tramp[6] = closure;

  closure->cif = cif;
  closure->fun = fun;
  closure->user_data = user_data;

  return FFI_OK;
}

int
ffi_closure_UNIX64_inner(ffi_closure *closure, va_list l, void *rp)
{
  ffi_cif *cif;
  void **avalue;
  ffi_type **arg_types;
  long i, avn, argn;

  cif = closure->cif;
  avalue = alloca(cif->nargs * sizeof(void *));

  argn = 0;

  i = 0;
  avn = cif->nargs;
  arg_types = cif->arg_types;
  
  /* Grab the addresses of the arguments from the stack frame.  */
  while (i < avn)
    {
      switch (arg_types[i]->type)
	{
	case FFI_TYPE_SINT8:
	case FFI_TYPE_UINT8:
	case FFI_TYPE_SINT16:
	case FFI_TYPE_UINT16:
	case FFI_TYPE_SINT32:
	case FFI_TYPE_UINT32:
	case FFI_TYPE_SINT64:
	case FFI_TYPE_UINT64:
	case FFI_TYPE_POINTER:
	  {
	    if (l->gp_offset > 48-8)
	      {
		avalue[i] = l->overflow_arg_area;
		l->overflow_arg_area = (char *)l->overflow_arg_area + 8;
	      }
	    else
	      {
		avalue[i] = (char *)l->reg_save_area + l->gp_offset;
		l->gp_offset += 8;
	      }
	  }
	  break;

	case FFI_TYPE_STRUCT:
	  /* FIXME  */
	  FFI_ASSERT(0);
	  break;

	case FFI_TYPE_DOUBLE:
	  {
	    if (l->fp_offset > 176-16)
	      {
		avalue[i] = l->overflow_arg_area;
		l->overflow_arg_area = (char *)l->overflow_arg_area + 8;
	      }
	    else
	      {
		avalue[i] = (char *)l->reg_save_area + l->fp_offset;
		l->fp_offset += 16;
	      }
	  }
#if DEBUG_FFI
	  fprintf (stderr, "double arg %d = %g\n", i, *(double *)avalue[i]);
#endif
	  break;
	  
	case FFI_TYPE_FLOAT:
	  {
	    if (l->fp_offset > 176-16)
	      {
		avalue[i] = l->overflow_arg_area;
		l->overflow_arg_area = (char *)l->overflow_arg_area + 8;
	      }
	    else
	      {
		avalue[i] = (char *)l->reg_save_area + l->fp_offset;
		l->fp_offset += 16;
	      }
	  }
#if DEBUG_FFI
	  fprintf (stderr, "float arg %d = %g\n", i, *(float *)avalue[i]);
#endif
	  break;
	  
	default:
	  FFI_ASSERT(0);
	}

      argn += ALIGN(arg_types[i]->size, SIZEOF_ARG) / SIZEOF_ARG;
      i++;
    }

  /* Invoke the closure.  */
  (closure->fun) (cif, rp, avalue, closure->user_data);

  /* FIXME: Structs not supported.  */
  FFI_ASSERT(cif->rtype->type != FFI_TYPE_STRUCT);

  /* Tell ffi_closure_UNIX64 how to perform return type promotions.  */

  return cif->rtype->type;
}
=====================================================================
Found a 649 line (2906 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/support/simstr.cxx
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/xml2cmp/source/support/sistr.cxx

   push_back(S);
   return *this;
}


// REL

bool
Simstr::operator==(const Simstr & S) const
{ return !strcmp(sz,S.sz) ? true : false; }

bool
Simstr::operator!=(const Simstr & S) const
{ return strcmp(sz,S.sz) ? true : false; }

bool  
Simstr::operator<(const Simstr & S) const 
{ return (strcmp(sz,S.sz) < 0) ? true : false; }

bool  
Simstr::operator>(const Simstr & S) const 
{ return (strcmp(sz,S.sz) > 0) ? true : false; }

bool
Simstr::operator<=(const Simstr & S) const 
{ return (strcmp(sz,S.sz) <= 0) ? true : false; }

bool  
Simstr::operator>=(const Simstr & S) const 
{ return (strcmp(sz,S.sz) >= 0) ? true : false; }




// **************          LIST - Funktionen        *****************

   
// Einzelzugriff

char
Simstr::get(int  n) const     { return (n >= len || n < 0) ? 0 : sz[n]; }

char 
Simstr::get_front() const        { return sz[0]; }

char 
Simstr::get_back() const        { return  len ? sz[len-1] : 0; }

Simstr 
Simstr::get(int  startPos, int  anzahl) const
{
   if (startPos >= len || startPos < 0 || anzahl < 1)
      return "";

   int anz = len - startPos < anzahl ? len - startPos : anzahl;

   Simstr ret(' ',anz);
   memcpy(ret.sz, sz+startPos, anz);
   return ret;
}

Simstr
Simstr::get_front(int  anzahl) const
{
   int anz = len < anzahl ? len : anzahl;
   if (anz < 1)
      return "";

   Simstr ret(' ',anz);
   memcpy(ret.sz, sz, anz);
   return ret;
}

Simstr
Simstr::get_back(int  anzahl) const
{
   int anz = len < anzahl ? len : anzahl;
   if (anz < 1)
      return "";
   int start = len-anz;

   Simstr ret(' ',anz);
   memcpy(ret.sz, sz+start, anz);
   return ret;
}

Simstr 
Simstr::get_first_token(char c) const
{
   int posc = pos_first(c);
   if (posc != NO_POS)
      return get_front(posc);
   else
      return sz;
}

Simstr
Simstr::get_last_token(char c) const
{
   int posc = pos_last(c);
   if (posc != NO_POS)
      return get_back(len-posc-1);
   else
      return sz;
}



// Insert

void
Simstr::insert(int  pos, char c)
{
   if (pos < 0 || pos > len)
      return;

   char * result = new char[len+2];

   memcpy(result,sz,pos);
   result[pos] = c;
   memcpy(result+pos+1,sz+pos,len-pos+1);

   delete [] sz;
   sz = result;
   len++;
}

void
Simstr::push_front(char c)
{
   char * result = new char[len+2];

   result[0] = c;
   memcpy(result+1,sz,len+1);

   delete [] sz;
   sz = result;
   len++;
}

void 
Simstr::push_back(char c)
{
   char * result = new char[len+2];

   memcpy(result,sz,len);
   result[len] = c;
   result[len+1] = 0;

   delete [] sz;
   sz = result;
   len++;
}

void 
Simstr::insert(int  pos, const Simstr & S)
{
   if (pos < 0 || pos > len)
      return;

   char * result = new char[len+1+S.len];

   memcpy(result,sz,pos);
   memcpy(result+pos,S.sz,S.len);
   memcpy(result+pos+S.len,sz+pos,len-pos+1);

   delete [] sz;
   sz = result;
   len += S.len;
}

void
Simstr::push_front(const Simstr & S)
{
   char * result = new char[len+1+S.len];

   memcpy(result,S.sz,S.len);
   memcpy(result+S.len,sz,len+1);

   delete [] sz;
   sz = result;
   len += S.len;
}

void
Simstr::push_back(const Simstr & S)
{
   char * result = new char[len+1+S.len];

   memcpy(result,sz,len);
   memcpy(result+len,S.sz,S.len+1);

   delete [] sz;
   sz = result;
   len += S.len;
}


// Remove

void 
Simstr::remove(int  pos, int  anzahl)
{
   if (pos >= len || pos < 0 || anzahl < 1)
      return;

	int anz = len - pos < anzahl ? len - pos : anzahl;

	char * result = new char[len-anz+1];

	memcpy(result,sz,pos);
   memcpy(result+pos,sz+pos+anz,len-pos-anz+1);

   delete [] sz;
   sz = result;
   len -= anz;
}

void
Simstr::remove_trailing_blanks()
{
	int newlen = len-1;
	for ( ; newlen > 1 && sz[newlen] <= 32; --newlen ) {}

	if (newlen < len-1)
    	remove ( newlen+1, len-newlen);
}

void
Simstr::pop_front(int  anzahl)
{
   if (anzahl < 1)
      return;
   int anz = len < anzahl ? len : anzahl;

   char * result = new char[len-anz+1];

   memcpy(result,sz+anz,len-anz+1);

   delete [] sz;
   sz = result;
   len -= anz;
}

void
Simstr::pop_back(int  anzahl)
{
   if (anzahl < 1)
      return;

   int anz = len < anzahl ? len : anzahl;

   char * result = new char[len-anz+1];

   memcpy(result,sz,len-anz);
   result[len-anz] = 0;

   delete [] sz;
   sz = result;
   len -= anz;
}

void
Simstr::rem_back_from(int  removeStartPos)
{
   if (removeStartPos != NO_POS)
      pop_back(len-removeStartPos);
}

void
Simstr::remove_all(char c)
{
   if (!len)
      return;
   char * result = new char[len];
   int i,j=0;
   for (i = 0; i < len; i++)
       if (sz[i] != c)
          result[j++] = sz[i];

   delete [] sz;
   sz = new char[j+1];
   memcpy(sz,result,j);
   sz[j] = 0;
   len = j;
   delete [] result;
}

void 
Simstr::remove_all(const Simstr & S)
{
   int  pos;
   while ( (pos=pos_first(S)) != NO_POS )  
      remove(pos,S.len);
}

void
Simstr::strip(char c)
{
	int start = 0;
   if (c == ' ')
   {  // Sonderbehandlung: SPC entfernt auch TABs:
   	while ( start < len
                 ?  sz[start] == ' '
                    || sz[start] == '\t'
                 :  false )
	   	start++;
   }
   else
   {
   	while (start < len && sz[start] == c)
	   	start++;
   }

	int ende = len-1;
   if (c == ' ')
   {  // Sonderbehandlung: SPC entfernt auch TABs:
   	while ( ende >= start
                 ?  sz[ende] == ' '
                    || sz[ende] == '\t'
                 :  false  )
	   	ende--;
   }
   else
   {
   	while (ende >= start && sz[ende] == c)
	   	ende--;
   }
	*this = get(start,ende-start+1);
}

void
Simstr::empty()
{
   if (len > 0)
   {
      delete [] sz;
      sz = new char[1];
      *sz = 0;
      len = 0;
   }
}

Simstr
Simstr::take_first_token(char c)
{
   Simstr ret;
   int pos = pos_first(c);
   if (pos != NO_POS)
      {
         ret = get_front(pos);
         pop_front(pos+1);
      }
   else
      {
         ret = sz;
         delete [] sz;
         sz = new char[1];
         *sz = NULCH;
         len = 0;
      }

   return ret;
}

Simstr
Simstr::take_last_token(char c)
{
   Simstr ret;
   int pos = pos_last(c);
   if (pos != NO_POS)
      {
         ret = get_back(len-pos-1);
         pop_back(len-pos);
      }
   else
      {
         ret = sz;
         delete [] sz;
         sz = new char[1];
         *sz = NULCH;
         len = 0;
      }

   return ret;
}



// Find

int
Simstr::pos_first(char c) const
{
   int i = 0;
   for (i = 0; i < len ? sz[i] != c : false; i++);
   if (i >= len)
      return NO_POS;
   else
      return i;
}

int
Simstr::pos_first_after( char           c,
                         int            startSearchPos) const
{
   int i = 0;
   if (startSearchPos >= i)
      i = startSearchPos+1;
   for (; i < len ? sz[i] != c : false; i++);
   if (i >= len)
      return NO_POS;
   else
      return i;
}


int
Simstr::pos_last(char c) const
{
   int i = 0;
   for (i = len-1; i >= 0 ? sz[i] != c : false; i--);
   if (i < 0)
      return NO_POS;
   else
      return i;
}

int
Simstr::pos_first(const Simstr & S) const
{
   char * ptr = strstr(sz,S.sz);
   if (ptr)
      return int(ptr-sz);
   else
      return NO_POS;
}

int
Simstr::pos_last(const Simstr & S) const
{
   Simstr vgl;
   int i;
   for (i = len-S.len; i >= 0 ; i--)
      {
         vgl = get(i,S.len);
         if (vgl == S)
            break;
      }
   if (i >= 0)
      return i;
   else
      return NO_POS;
}

int
Simstr::count(char c) const
{
   int ret = 0;
   for (int i =0; i < len; i++)
	  if (sz[i] == c)
		 ret++;
   return ret;
}

bool
Simstr::is_no_text() const
{ 
   if (!len)
	  return true;

   int i;
   for (i = 0; sz[i] <= 32 && i < len; i++);
   if (i < len)
		return false;
	return true;
}

// Change

void 
Simstr::replace(int  pos, char c)
{
	if (pos < 0 || pos >= len)
      return;
   else
      sz[unsigned(pos)] = c;
}

void
Simstr::replace(int  startPos, int  anzahl, const Simstr & S)
{
   if (startPos >= len || startPos < 0 || anzahl < 1)
      return;

   int anz = len - startPos < anzahl ? len - startPos : anzahl;

   char * result = new char[len-anz+S.len+1];

   memcpy(result,sz,startPos);
   memcpy(result+startPos, S.sz, S.len);
   memcpy(result+startPos+S.len, sz+startPos+anz, len-startPos-anz+1);

   delete [] sz;
   sz = result;
   len = len-anz+S.len;
}

void
Simstr::replace_all(char oldCh, char newCh)
{
   for (int i=0; i < len; i++)
      if (sz[i] == oldCh)
         sz[i] = newCh;
}

void
Simstr::replace_all(const Simstr & oldS, const Simstr & newS)
{
   Simstr vgl;
   int i = 0;
	while (i <= len-oldS.len)
		{
         vgl = get(i,oldS.len);
         if (strcmp(vgl.sz,oldS.sz) == 0)
            {
               replace(i,oldS.len,newS);
               i += newS.len;
            }
         else
            i++;
      }
}

void
Simstr::to_lower()
{
	for (int i = 0; i < len; i++)
   	sz[i] = (char) tolower(sz[i]);
}



//   Simstr addition
Simstr
operator+(const char * str, const Simstr & S)
{
   Simstr ret = S;
   ret.push_front(str);
   return ret;
}

Simstr
operator+(const Simstr & S, const char * str)
{
   Simstr ret = S;
   ret.push_back(str);
   return ret;
}

Simstr
operator+(char c, const Simstr & S)
{
   Simstr ret = S;
   ret.push_front(c);
   return ret;
}

Simstr
operator+(const Simstr & S, char c)
{
   Simstr ret = S;
   ret.push_back(c);
   return ret;
}


// Simstr-Vergleiche mit char *
bool
operator==(const Simstr & S, const char * str)
{
   return strcmp(S,str) == 0;
}

bool
operator!=(const Simstr & S, const char * str)
{
   return strcmp(S,str) != 0;
}

bool
operator<(const Simstr & S, const char * str)
{
   return strcmp(S,str) < 0;
}

bool
operator>(const Simstr & S, const char * str)
{
   return strcmp(S,str) > 0;
}

bool
operator<=(const Simstr & S, const char * str)
{
   return strcmp(S,str) <= 0;
}

bool
operator>=(const Simstr & S, const char * str)
{
   return strcmp(S,str) >= 0;
}

bool
operator==(const char * str, const Simstr & S)
{
   return strcmp(str,S) == 0;
}

bool
operator!=(const char * str, const Simstr & S)
{
   return strcmp(str,S) != 0;
}

bool
operator<(const char * str, const Simstr & S)
{
   return strcmp(str,S) < 0;
}

bool
operator>(const char * str, const Simstr & S)
{
   return strcmp(str,S) > 0;
}

bool
operator<=(const char * str, const Simstr & S)
{
   return strcmp(str,S) <= 0;
}

bool
operator>=(const char * str, const Simstr & S)
{
   return strcmp(str,S) >= 0;
}
=====================================================================
Found a 687 line (2728 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/ScriptInfo.cxx
Starting at line 685 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/porlay.cxx

}

/*************************************************************************
 *                     SwScriptInfo::WhichFont()
 *
 * Converts i18n Script Type (LATIN, ASIAN, COMPLEX, WEAK) to
 * Sw Script Types (SW_LATIN, SW_CJK, SW_CTL), used to identify the font
 *************************************************************************/
BYTE SwScriptInfo::WhichFont( xub_StrLen nIdx, const String* pTxt, const SwScriptInfo* pSI )
{
    ASSERT( pTxt || pSI,"How should I determine the script type?" );
    USHORT nScript;

    // First we try to use our SwScriptInfo
    if ( pSI )
        nScript = pSI->ScriptType( nIdx );
    else
        // Ok, we have to ask the break iterator
        nScript = pBreakIt->GetRealScriptOfText( *pTxt, nIdx );

    switch ( nScript ) {
        case i18n::ScriptType::LATIN : return SW_LATIN;
        case i18n::ScriptType::ASIAN : return SW_CJK;
        case i18n::ScriptType::COMPLEX : return SW_CTL;
    }

    ASSERT( sal_False, "Somebody tells lies about the script type!" );
    return SW_LATIN;
}

/*************************************************************************
 *						SwScriptInfo::InitScriptInfo()
 *
 * searches for script changes in rTxt and stores them
 *************************************************************************/

void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode )
{
    InitScriptInfo( rNode, nDefaultDir == UBIDI_RTL );
}

void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
{
    if( !pBreakIt->xBreak.is() )
		return;

    const String& rTxt = rNode.GetTxt();

    //
    // HIDDEN TEXT INFORMATION
    //
    Range aRange( 0, rTxt.Len() ? rTxt.Len() - 1 : 0 );
    MultiSelection aHiddenMulti( aRange );
    CalcHiddenRanges( rNode, aHiddenMulti );

    aHiddenChg.Remove( 0, aHiddenChg.Count() );
    USHORT nHiddenIdx = 0;
    USHORT i = 0;
    for( i = 0; i < aHiddenMulti.GetRangeCount(); ++i )
    {
        const Range& rRange = aHiddenMulti.GetRange( i );
        const xub_StrLen nStart = (xub_StrLen)rRange.Min();
        const xub_StrLen nEnd = (xub_StrLen)rRange.Max() + 1;

        aHiddenChg.Insert( nStart, nHiddenIdx++ );
        aHiddenChg.Insert( nEnd, nHiddenIdx++ );
    }

    //
    // SCRIPT AND SCRIPT RELATED INFORMATION
    //

    xub_StrLen nChg = nInvalidityPos;

    // STRING_LEN means the data structure is up to date
	nInvalidityPos = STRING_LEN;

    // this is the default direction
    nDefaultDir = bRTL ? UBIDI_RTL : UBIDI_LTR;

    // counter for script info arrays
    USHORT nCnt = 0;
    // counter for compression information arrays
    USHORT nCntComp = 0;
    // counter for kashida array
    USHORT nCntKash = 0;

    BYTE nScript;

    // compression type
    const SwCharCompressType aCompEnum = rNode.getIDocumentSettingAccess()->getCharacterCompressionType();

    // justification type
    const sal_Bool bAdjustBlock = SVX_ADJUST_BLOCK ==
                                  rNode.GetSwAttrSet().GetAdjust().GetAdjust();

    //
    // FIND INVALID RANGES IN SCRIPT INFO ARRAYS:
    //

    if( nChg )
	{
        // if change position = 0 we do not use any data from the arrays
        // because by deleting all characters of the first group at the beginning
        // of a paragraph nScript is set to a wrong value
        ASSERT( CountScriptChg(), "Where're my changes of script?" );
		while( nCnt < CountScriptChg() )
		{
            if ( nChg > GetScriptChg( nCnt ) )
                nCnt++;
            else
            {
                nScript = GetScriptType( nCnt );
                break;
            }
		}
        if( CHARCOMPRESS_NONE != aCompEnum )
		{
            while( nCntComp < CountCompChg() )
			{
                if ( nChg > GetCompStart( nCntComp ) )
                    nCntComp++;
                else
                    break;
            }
		}
        if ( bAdjustBlock )
        {
            while( nCntKash < CountKashida() )
            {
                if ( nChg > GetKashida( nCntKash ) )
                    nCntKash++;
                else
                    break;
            }
        }
    }

    //
    // ADJUST nChg VALUE:
    //

    // by stepping back one position we know that we are inside a group
    // declared as an nScript group
    if ( nChg )
        --nChg;

    const xub_StrLen nGrpStart = nCnt ? GetScriptChg( nCnt - 1 ) : 0;

    // we go back in our group until we reach the first character of
    // type nScript
    while ( nChg > nGrpStart &&
            nScript != pBreakIt->xBreak->getScriptType( rTxt, nChg ) )
        --nChg;

    // If we are at the start of a group, we do not trust nScript,
    // we better get nScript from the breakiterator:
    if ( nChg == nGrpStart )
        nScript = (BYTE)pBreakIt->xBreak->getScriptType( rTxt, nChg );

    //
    // INVALID DATA FROM THE SCRIPT INFO ARRAYS HAS TO BE DELETED:
    //

    // remove invalid entries from script information arrays
    const USHORT nScriptRemove = aScriptChg.Count() - nCnt;
    aScriptChg.Remove( nCnt, nScriptRemove );
    aScriptType.Remove( nCnt, nScriptRemove );

    // get the start of the last compression group
    USHORT nLastCompression = nChg;
	if( nCntComp )
	{
		--nCntComp;
        nLastCompression = GetCompStart( nCntComp );
        if( nChg >= nLastCompression + GetCompLen( nCntComp ) )
		{
            nLastCompression = nChg;
			++nCntComp;
		}
    }

    // remove invalid entries from compression information arrays
    const USHORT nCompRemove = aCompChg.Count() - nCntComp;
    aCompChg.Remove( nCntComp, nCompRemove );
    aCompLen.Remove( nCntComp, nCompRemove );
    aCompType.Remove( nCntComp, nCompRemove );

    // get the start of the last kashida group
    USHORT nLastKashida = nChg;
    if( nCntKash && i18n::ScriptType::COMPLEX == nScript )
    {
        --nCntKash;
        nLastKashida = GetKashida( nCntKash );
    }

    // remove invalid entries from kashida array
    aKashida.Remove( nCntKash, aKashida.Count() - nCntKash );

    //
    // TAKE CARE OF WEAK CHARACTERS: WE MUST FIND AN APPROPRIATE
    // SCRIPT FOR WEAK CHARACTERS AT THE BEGINNING OF A PARAGRAPH
    //

    if( WEAK == pBreakIt->xBreak->getScriptType( rTxt, nChg ) )
	{
        // If the beginning of the current group is weak, this means that
        // all of the characters in this grounp are weak. We have to assign
        // the scripts to these characters depending on the fonts which are
        // set for these characters to display them.
        xub_StrLen nEnd =
                (xub_StrLen)pBreakIt->xBreak->endOfScript( rTxt, nChg, WEAK );

        if( nEnd > rTxt.Len() )
            nEnd = rTxt.Len();

        nScript = (BYTE)GetI18NScriptTypeOfLanguage( (USHORT)GetAppLanguage() );

        ASSERT( i18n::ScriptType::LATIN == nScript ||
                i18n::ScriptType::ASIAN == nScript ||
                i18n::ScriptType::COMPLEX == nScript, "Wrong default language" );

        nChg = nEnd;

        // Get next script type or set to weak in order to exit
        BYTE nNextScript = ( nEnd < rTxt.Len() ) ?
           (BYTE)pBreakIt->xBreak->getScriptType( rTxt, nEnd ) :
           (BYTE)WEAK;

        if ( nScript != nNextScript )
        {
            aScriptChg.Insert( nEnd, nCnt );
            aScriptType.Insert( nScript, nCnt++ );
            nScript = nNextScript;
        }
    }

    //
    // UPDATE THE SCRIPT INFO ARRAYS:
    //

    while ( nChg < rTxt.Len() || ( !aScriptChg.Count() && !rTxt.Len() ) )
    {
        ASSERT( i18n::ScriptType::WEAK != nScript,
                "Inserting WEAK into SwScriptInfo structure" );
        ASSERT( STRING_LEN != nChg, "65K? Strange length of script section" );

        nChg = (xub_StrLen)pBreakIt->xBreak->endOfScript( rTxt, nChg, nScript );

        if ( nChg > rTxt.Len() )
            nChg = rTxt.Len();

        aScriptChg.Insert( nChg, nCnt );
        aScriptType.Insert( nScript, nCnt++ );

        // if current script is asian, we search for compressable characters
        // in this range
        if ( CHARCOMPRESS_NONE != aCompEnum &&
             i18n::ScriptType::ASIAN == nScript )
        {
            BYTE ePrevState = NONE;
            BYTE eState;
            USHORT nPrevChg = nLastCompression;

            while ( nLastCompression < nChg )
            {
                xub_Unicode cChar = rTxt.GetChar( nLastCompression );

                // examine current character
                switch ( cChar )
                {
                // Left punctuation found
                case 0x3008: case 0x300A: case 0x300C: case 0x300E:
                case 0x3010: case 0x3014: case 0x3016: case 0x3018:
                case 0x301A: case 0x301D:
                    eState = SPECIAL_LEFT;
                    break;
                // Right punctuation found
                case 0x3001: case 0x3002: case 0x3009: case 0x300B:
                case 0x300D: case 0x300F: case 0x3011: case 0x3015:
                case 0x3017: case 0x3019: case 0x301B: case 0x301E:
                case 0x301F:
                    eState = SPECIAL_RIGHT;
                    break;
                default:
                    eState = ( 0x3040 <= cChar && 0x3100 > cChar ) ?
                               KANA :
                               NONE;
                }

                // insert range of compressable characters
                if( ePrevState != eState )
                {
                    if ( ePrevState != NONE )
                    {
                        // insert start and type
                        if ( CHARCOMPRESS_PUNCTUATION_KANA == aCompEnum ||
                             ePrevState != KANA )
                        {
                            aCompChg.Insert( nPrevChg, nCntComp );
                            BYTE nTmpType = ePrevState;
                            aCompType.Insert( nTmpType, nCntComp );
                            aCompLen.Insert( nLastCompression - nPrevChg, nCntComp++ );
                        }
                    }

                    ePrevState = eState;
                    nPrevChg = nLastCompression;
                }

                nLastCompression++;
            }

            // we still have to examine last entry
            if ( ePrevState != NONE )
            {
                // insert start and type
                if ( CHARCOMPRESS_PUNCTUATION_KANA == aCompEnum ||
                     ePrevState != KANA )
                {
                    aCompChg.Insert( nPrevChg, nCntComp );
                    BYTE nTmpType = ePrevState;
                    aCompType.Insert( nTmpType, nCntComp );
                    aCompLen.Insert( nLastCompression - nPrevChg, nCntComp++ );
                }
            }
        }

        // we search for connecting opportunities (kashida)
        else if ( bAdjustBlock && i18n::ScriptType::COMPLEX == nScript )
        {
            SwScanner aScanner( rNode,
                                ::com::sun::star::i18n::WordType::DICTIONARY_WORD,
                                nLastKashida, nChg );

            // the search has to be performed on a per word base
            while ( aScanner.NextWord() )
            {
                const XubString& rWord = aScanner.GetWord();

                xub_StrLen nIdx = 0;
                xub_StrLen nKashidaPos = STRING_LEN;
                xub_Unicode cCh;
                xub_Unicode cPrevCh = 0;

                while ( nIdx < rWord.Len() )
                {
                    cCh = rWord.GetChar( nIdx );

                    // 1. Priority:
                    // after user inserted kashida
                    if ( 0x640 == cCh )
                    {
                        nKashidaPos = aScanner.GetBegin() + nIdx;
                        break;
                    }

                    // 2. Priority:
                    // after a Seen or Sad
                    if ( nIdx + 1 < rWord.Len() &&
                         ( 0x633 == cCh || 0x635 == cCh ) )
                    {
                        nKashidaPos = aScanner.GetBegin() + nIdx;
                        break;
                    }

                    // 3. Priority:
                    // before final form of Teh Marbuta, Hah, Dal
                    // 4. Priority:
                    // before final form of Alef, Lam or Kaf
                    if ( nIdx && nIdx + 1 == rWord.Len() &&
                         ( 0x629 == cCh || 0x62D == cCh || 0x62F == cCh ||
                           0x627 == cCh || 0x644 == cCh || 0x643 == cCh ) )
                    {
                        ASSERT( 0 != cPrevCh, "No previous character" )

                        // check if character is connectable to previous character,
                        if ( lcl_ConnectToPrev( cCh, cPrevCh ) )
                        {
                            nKashidaPos = aScanner.GetBegin() + nIdx - 1;
                            break;
                        }
                    }

                    // 5. Priority:
                    // before media Bah
                    if ( nIdx && nIdx + 1 < rWord.Len() && 0x628 == cCh )
                    {
                        ASSERT( 0 != cPrevCh, "No previous character" )

                        // check if next character is Reh, Yeh or Alef Maksura
                        xub_Unicode cNextCh = rWord.GetChar( nIdx + 1 );

                        if ( 0x631 == cNextCh || 0x64A == cNextCh ||
                             0x649 == cNextCh )
                        {
                            // check if character is connectable to previous character,
                            if ( lcl_ConnectToPrev( cCh, cPrevCh ) )
                                nKashidaPos = aScanner.GetBegin() + nIdx - 1;
                        }
                    }

                    // 6. Priority:
                    // other connecting possibilities
                    if ( nIdx && nIdx + 1 == rWord.Len() &&
                         0x60C <= cCh && 0x6FE >= cCh )
                    {
                        ASSERT( 0 != cPrevCh, "No previous character" )

                        // check if character is connectable to previous character,
                        if ( lcl_ConnectToPrev( cCh, cPrevCh ) )
                        {
                            // only choose this position if we did not find
                            // a better one:
                            if ( STRING_LEN == nKashidaPos )
                                nKashidaPos = aScanner.GetBegin() + nIdx - 1;
                            break;
                        }
                    }

                    // Do not consider Fathatan, Dammatan, Kasratan, Fatha,
                    // Damma, Kasra, Shadda and Sukun when checking if
                    // a character can be connected to previous character.
                    if ( cCh < 0x64B || cCh > 0x652 )
                        cPrevCh = cCh;

                    ++nIdx;
                } // end of current word

                if ( STRING_LEN != nKashidaPos )
                    aKashida.Insert( nKashidaPos, nCntKash++ );
            } // end of kashida search
        }

        if ( nChg < rTxt.Len() )
            nScript = (BYTE)pBreakIt->xBreak->getScriptType( rTxt, nChg );

        nLastCompression = nChg;
        nLastKashida = nChg;
    };

#ifndef PRODUCT
    // check kashida data
    long nTmpKashidaPos = -1;
    sal_Bool bWrongKash = sal_False;
    for (i = 0; i < aKashida.Count(); ++i )
    {
        long nCurrKashidaPos = GetKashida( i );
        if ( nCurrKashidaPos <= nTmpKashidaPos )
        {
            bWrongKash = sal_True;
            break;
        }
        nTmpKashidaPos = nCurrKashidaPos;
    }
    ASSERT( ! bWrongKash, "Kashida array contains wrong data" )
#endif

    // remove invalid entries from direction information arrays
    const USHORT nDirRemove = aDirChg.Count();
    aDirChg.Remove( 0, nDirRemove );
    aDirType.Remove( 0, nDirRemove );

    // Perform Unicode Bidi Algorithm for text direction information
    bool bPerformUBA = UBIDI_LTR != nDefaultDir;
    nCnt = 0;
    while( !bPerformUBA && nCnt < CountScriptChg() )
    {
        if ( i18n::ScriptType::COMPLEX == GetScriptType( nCnt++ ) )
            bPerformUBA = true;
    }

    // do not call the unicode bidi algorithm if not required
    if ( bPerformUBA )
    {
        UpdateBidiInfo( rTxt );

        // #i16354# Change script type for RTL text to CTL.
        for ( USHORT nDirIdx = 0; nDirIdx < aDirChg.Count(); ++nDirIdx )
        {
            if ( GetDirType( nDirIdx ) == UBIDI_RTL )
            {
                // nStart ist start of RTL run:
                const xub_StrLen nStart = nDirIdx > 0 ? GetDirChg( nDirIdx - 1 ) : 0;
                // nEnd is end of RTL run:
                const xub_StrLen nEnd = GetDirChg( nDirIdx );
                // nScriptIdx points into the ScriptArrays:
                USHORT nScriptIdx = 0;

                // Skip entries in ScriptArray which are not inside the RTL run:
                // Make nScriptIdx become the index of the script group with
                // 1. nStartPosOfGroup <= nStart and
                // 2. nEndPosOfGroup > nStart
                while ( GetScriptChg( nScriptIdx ) <= nStart )
                    ++nScriptIdx;

                xub_StrLen nEndPosOfGroup = GetScriptChg( nScriptIdx );
                xub_StrLen nStartPosOfGroup = nScriptIdx ? GetScriptChg( nScriptIdx - 1 ) : 0;
                BYTE nScriptTypeOfGroup = GetScriptType( nScriptIdx );

                ASSERT( nStartPosOfGroup <= nStart && nEndPosOfGroup > nStart,
                        "Script override with CTL font trouble" )

                // Check if we have to insert a new script change at
                // position nStart. If nStartPosOfGroup < nStart,
                // we have to insert a new script change:
                if ( nStart > 0 && nStartPosOfGroup < nStart )
                {
                    aScriptChg.Insert( nStart, nScriptIdx );
                    aScriptType.Insert( nScriptTypeOfGroup, nScriptIdx );
                    ++nScriptIdx;
                }

                // Remove entries in ScriptArray which end inside the RTL run:
                while ( nScriptIdx < aScriptChg.Count() && GetScriptChg( nScriptIdx ) <= nEnd )
                {
                    aScriptChg.Remove( nScriptIdx, 1 );
                    aScriptType.Remove( nScriptIdx, 1 );
                }

                // Insert a new entry in ScriptArray for the end of the RTL run:
                aScriptChg.Insert( nEnd, nScriptIdx );
                aScriptType.Insert( i18n::ScriptType::COMPLEX, nScriptIdx );

#if OSL_DEBUG_LEVEL > 1
                BYTE nScriptType;
                BYTE nLastScriptType = i18n::ScriptType::WEAK;
                xub_StrLen nScriptChg;
                xub_StrLen nLastScriptChg = 0;

                for ( int i = 0; i < aScriptChg.Count(); ++i )
                {
                    nScriptChg = GetScriptChg( i );
                    nScriptType = GetScriptType( i );
                    ASSERT( nLastScriptType != nScriptType &&
                            nLastScriptChg < nScriptChg,
                            "Heavy InitScriptType() confusion" )
                }
#endif
            }
        }
    }
}

void SwScriptInfo::UpdateBidiInfo( const String& rTxt )
{
    // remove invalid entries from direction information arrays
    const USHORT nDirRemove = aDirChg.Count();
    aDirChg.Remove( 0, nDirRemove );
    aDirType.Remove( 0, nDirRemove );

    //
    // Bidi functions from icu 2.0
    //
    UErrorCode nError = U_ZERO_ERROR;
    UBiDi* pBidi = ubidi_openSized( rTxt.Len(), 0, &nError );
    nError = U_ZERO_ERROR;

    ubidi_setPara( pBidi, rTxt.GetBuffer(), rTxt.Len(),
                   nDefaultDir, NULL, &nError );
    nError = U_ZERO_ERROR;
    long nCount = ubidi_countRuns( pBidi, &nError );
    int32_t nStart = 0;
    int32_t nEnd;
    UBiDiLevel nCurrDir;
    // counter for direction information arrays
    USHORT nCntDir = 0;

    for ( USHORT nIdx = 0; nIdx < nCount; ++nIdx )
    {
        ubidi_getLogicalRun( pBidi, nStart, &nEnd, &nCurrDir );
        aDirChg.Insert( (USHORT)nEnd, nCntDir );
        aDirType.Insert( (BYTE)nCurrDir, nCntDir++ );
        nStart = nEnd;
    }

    ubidi_close( pBidi );
}


/*************************************************************************
 *						  SwScriptInfo::NextScriptChg(..)
 * returns the position of the next character which belongs to another script
 * than the character of the actual (input) position.
 * If there's no script change until the end of the paragraph, it will return
 * STRING_LEN.
 * Scripts are Asian (Chinese, Japanese, Korean),
 * 			   Latin ( English etc.)
 *         and Complex ( Hebrew, Arabian )
 *************************************************************************/

xub_StrLen SwScriptInfo::NextScriptChg( const xub_StrLen nPos )  const
{
    USHORT nEnd = CountScriptChg();
    for( USHORT nX = 0; nX < nEnd; ++nX )
    {
		if( nPos < GetScriptChg( nX ) )
			return GetScriptChg( nX );
    }

	return STRING_LEN;
}

/*************************************************************************
 *						  SwScriptInfo::ScriptType(..)
 * returns the script of the character at the input position
 *************************************************************************/

BYTE SwScriptInfo::ScriptType( const xub_StrLen nPos ) const
{
    USHORT nEnd = CountScriptChg();
    for( USHORT nX = 0; nX < nEnd; ++nX )
    {
        if( nPos < GetScriptChg( nX ) )
			return GetScriptType( nX );
    }

    // the default is the application language script
    return (BYTE)GetI18NScriptTypeOfLanguage( (USHORT)GetAppLanguage() );
}

xub_StrLen SwScriptInfo::NextDirChg( const xub_StrLen nPos,
                                     const BYTE* pLevel )  const
{
    BYTE nCurrDir = pLevel ? *pLevel : 62;
    USHORT nEnd = CountDirChg();
    for( USHORT nX = 0; nX < nEnd; ++nX )
    {
        if( nPos < GetDirChg( nX ) &&
            ( nX + 1 == nEnd || GetDirType( nX + 1 ) <= nCurrDir ) )
            return GetDirChg( nX );
    }

	return STRING_LEN;
}

BYTE SwScriptInfo::DirType( const xub_StrLen nPos ) const
{
    USHORT nEnd = CountDirChg();
    for( USHORT nX = 0; nX < nEnd; ++nX )
    {
        if( nPos < GetDirChg( nX ) )
            return GetDirType( nX );
    }

    return 0;
}

/*************************************************************************
 *                        SwScriptInfo::MaskHiddenRanges(..)
 * Takes a string and replaced the hidden ranges with cChar.
 **************************************************************************/

USHORT SwScriptInfo::MaskHiddenRanges( const SwTxtNode& rNode, XubString& rText,
                                       const xub_StrLen nStt, const xub_StrLen nEnd,
                                       const xub_Unicode cChar )
{
    ASSERT( rNode.GetTxt().Len() == rText.Len(), "MaskHiddenRanges, string len mismatch" )

    PositionList aList;
    xub_StrLen nHiddenStart;
    xub_StrLen nHiddenEnd;
    USHORT nNumOfHiddenChars = 0;
    GetBoundsOfHiddenRange( rNode, 0, nHiddenStart, nHiddenEnd, &aList );
    PositionList::const_reverse_iterator rFirst( aList.end() );
    PositionList::const_reverse_iterator rLast( aList.begin() );
    while ( rFirst != rLast )
    {
        nHiddenEnd = *(rFirst++);
        nHiddenStart = *(rFirst++);

        if ( nHiddenEnd < nStt || nHiddenStart > nEnd )
            continue;

        while ( nHiddenStart < nHiddenEnd && nHiddenStart < nEnd )
        {
            if ( nHiddenStart >= nStt && nHiddenStart < nEnd )
            {
                rText.SetChar( nHiddenStart, cChar );
                ++nNumOfHiddenChars;
            }
            ++nHiddenStart;
        }
    }

    return nNumOfHiddenChars;
}
=====================================================================
Found a 225 line (2551 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/hash.cxx
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/hash.cxx

typedef unsigned int sal_uInt32;
#endif

#include <string.h>

/*
 *	build a hash for a character buffer using the NIST algorithm
 */

class NIST_Hash
{

	// helper functions
	sal_uInt32 f1( sal_uInt32 x, sal_uInt32 y, sal_uInt32 z )
	{
		return z ^ ( x & ( y ^ z ) );
	}
	
	sal_uInt32 f2( sal_uInt32 x, sal_uInt32 y, sal_uInt32 z )
	{
		return x ^ y ^ z;
	}
	
	sal_uInt32 f3( sal_uInt32 x, sal_uInt32 y, sal_uInt32 z )
	{
		return ( x & y ) + ( z & ( x ^ y ) );
	}

	sal_uInt32 rotl( sal_uInt32 nValue, sal_uInt32 nBits )
	{
		return ( nValue << nBits ) | ( nValue >> (32-nBits) );
	}

	sal_uInt32 expand_nostore( sal_uInt32 index )
	{
		return data[index&15] ^ data[(index-14)&15] ^ data[(index-8)&15] ^ data[(index-3)&15];
	}

	sal_uInt32 expand_store( sal_uInt32 index )
	{
		return data[index&15] ^= data[(index-14)&15] ^ data[(index-8)&15] ^ data[(index-3)&15];
	}

	void subRound( sal_uInt32 a, sal_uInt32& b, sal_uInt32 c, sal_uInt32 d, sal_uInt32& e, sal_uInt32 constant, sal_uInt32 datum, sal_uInt32 nFunction )
	{
		e += rotl(a,5);
		switch( nFunction )
		{
			case 1: e += f1( b, c, d );break;
			case 2:
			case 4: e += f2( b, c, d );break;
			case 3: e += f3( b, c, d );break;
		}
		e += constant + datum;
		b = rotl( b, 30 );
	}

	void transform();
	void final();

	// data members
	sal_uInt32 data[16];
	sal_uInt32 hashdata[5];
public:
	NIST_Hash( const char* pString, sal_uInt32 nLen );
	
	sal_uInt32 *getHash() { return hashdata; }
};

void NIST_Hash::transform()
{
	// constants
	const sal_uInt32 K2		= 0x5A827999;
	const sal_uInt32 K3		= 0x6ED9EBA1;
	const sal_uInt32 K5		= 0x8F1BBCDC;
	const sal_uInt32 K10	= 0xCA62C1D6;

	sal_uInt32 a, b, c, d, e;
	a = hashdata[0];
	b = hashdata[1];
	c = hashdata[2];
	d = hashdata[3];
	e = hashdata[4];

	subRound( a, b, c, d, e, K2, data[ 0], 1 );
	subRound( e, a, b, c, d, K2, data[ 1], 1 );
	subRound( d, e, a, b, c, K2, data[ 2], 1 );
	subRound( c, d, e, a, b, K2, data[ 3], 1 );
	subRound( b, c, d, e, a, K2, data[ 4], 1 );
	subRound( a, b, c, d, e, K2, data[ 5], 1 );
	subRound( e, a, b, c, d, K2, data[ 6], 1 );
	subRound( d, e, a, b, c, K2, data[ 7], 1 );
	subRound( c, d, e, a, b, K2, data[ 8], 1 );
	subRound( b, c, d, e, a, K2, data[ 9], 1 );
	subRound( a, b, c, d, e, K2, data[10], 1 );
	subRound( e, a, b, c, d, K2, data[11], 1 );
	subRound( d, e, a, b, c, K2, data[12], 1 );
	subRound( c, d, e, a, b, K2, data[13], 1 );
	subRound( b, c, d, e, a, K2, data[14], 1 );
	subRound( a, b, c, d, e, K2, data[15], 1 );
	subRound( e, a, b, c, d, K2, expand_store( 16 ), 1 );
	subRound( d, e, a, b, c, K2, expand_store( 17 ), 1 );
	subRound( c, d, e, a, b, K2, expand_store( 18 ), 1 );
	subRound( b, c, d, e, a, K2, expand_store( 19 ), 1 );

	subRound( a, b, c, d, e, K3, expand_store( 20 ), 2 );
	subRound( e, a, b, c, d, K3, expand_store( 21 ), 2 );
	subRound( d, e, a, b, c, K3, expand_store( 22 ), 2 );
	subRound( c, d, e, a, b, K3, expand_store( 23 ), 2 );
	subRound( b, c, d, e, a, K3, expand_store( 24 ), 2 );
	subRound( a, b, c, d, e, K3, expand_store( 25 ), 2 );
	subRound( e, a, b, c, d, K3, expand_store( 26 ), 2 );
	subRound( d, e, a, b, c, K3, expand_store( 27 ), 2 );
	subRound( c, d, e, a, b, K3, expand_store( 28 ), 2 );
	subRound( b, c, d, e, a, K3, expand_store( 29 ), 2 );
	subRound( a, b, c, d, e, K3, expand_store( 30 ), 2 );
	subRound( e, a, b, c, d, K3, expand_store( 31 ), 2 );
	subRound( d, e, a, b, c, K3, expand_store( 32 ), 2 );
	subRound( c, d, e, a, b, K3, expand_store( 33 ), 2 );
	subRound( b, c, d, e, a, K3, expand_store( 34 ), 2 );
	subRound( a, b, c, d, e, K3, expand_store( 35 ), 2 );
	subRound( e, a, b, c, d, K3, expand_store( 36 ), 2 );
	subRound( d, e, a, b, c, K3, expand_store( 37 ), 2 );
	subRound( c, d, e, a, b, K3, expand_store( 38 ), 2 );
	subRound( b, c, d, e, a, K3, expand_store( 39 ), 2 );

	subRound( a, b, c, d, e, K5, expand_store( 40 ), 3 );
	subRound( e, a, b, c, d, K5, expand_store( 41 ), 3 );
	subRound( d, e, a, b, c, K5, expand_store( 42 ), 3 );
	subRound( c, d, e, a, b, K5, expand_store( 43 ), 3 );
	subRound( b, c, d, e, a, K5, expand_store( 44 ), 3 );
	subRound( a, b, c, d, e, K5, expand_store( 45 ), 3 );
	subRound( e, a, b, c, d, K5, expand_store( 46 ), 3 );
	subRound( d, e, a, b, c, K5, expand_store( 47 ), 3 );
	subRound( c, d, e, a, b, K5, expand_store( 48 ), 3 );
	subRound( b, c, d, e, a, K5, expand_store( 49 ), 3 );
	subRound( a, b, c, d, e, K5, expand_store( 50 ), 3 );
	subRound( e, a, b, c, d, K5, expand_store( 51 ), 3 );
	subRound( d, e, a, b, c, K5, expand_store( 52 ), 3 );
	subRound( c, d, e, a, b, K5, expand_store( 53 ), 3 );
	subRound( b, c, d, e, a, K5, expand_store( 54 ), 3 );
	subRound( a, b, c, d, e, K5, expand_store( 55 ), 3 );
	subRound( e, a, b, c, d, K5, expand_store( 56 ), 3 );
	subRound( d, e, a, b, c, K5, expand_store( 57 ), 3 );
	subRound( c, d, e, a, b, K5, expand_store( 58 ), 3 );
	subRound( b, c, d, e, a, K5, expand_store( 59 ), 3 );

	subRound( a, b, c, d, e, K10, expand_store( 60 ), 4 );
	subRound( e, a, b, c, d, K10, expand_store( 61 ), 4 );
	subRound( d, e, a, b, c, K10, expand_store( 62 ), 4 );
	subRound( c, d, e, a, b, K10, expand_store( 63 ), 4 );
	subRound( b, c, d, e, a, K10, expand_store( 64 ), 4 );
	subRound( a, b, c, d, e, K10, expand_store( 65 ), 4 );
	subRound( e, a, b, c, d, K10, expand_store( 66 ), 4 );
	subRound( d, e, a, b, c, K10, expand_store( 67 ), 4 );
	subRound( c, d, e, a, b, K10, expand_store( 68 ), 4 );
	subRound( b, c, d, e, a, K10, expand_store( 69 ), 4 );
	subRound( a, b, c, d, e, K10, expand_store( 70 ), 4 );
	subRound( e, a, b, c, d, K10, expand_store( 71 ), 4 );
	subRound( d, e, a, b, c, K10, expand_store( 72 ), 4 );
	subRound( c, d, e, a, b, K10, expand_store( 73 ), 4 );
	subRound( b, c, d, e, a, K10, expand_store( 74 ), 4 );
	subRound( a, b, c, d, e, K10, expand_store( 75 ), 4 );
	subRound( e, a, b, c, d, K10, expand_store( 76 ), 4 );
	subRound( d, e, a, b, c, K10, expand_nostore( 77 ), 4 );
	subRound( c, d, e, a, b, K10, expand_nostore( 78 ), 4 );
	subRound( b, c, d, e, a, K10, expand_nostore( 79 ), 4 );

	hashdata[0] += a;
	hashdata[1] += b;
	hashdata[2] += c;
	hashdata[3] += d;
	hashdata[4] += e;
}

#define BLOCKSIZE sizeof( data )

NIST_Hash::NIST_Hash( const char* pString, sal_uInt32 nLen ) 
{
	hashdata[0] = 0x67452301;
	hashdata[1] = 0xefcdab89;
	hashdata[2] = 0x98badcfe;
	hashdata[3] = 0x10325476;
	hashdata[4] = 0xc3d2e1f0;

	sal_uInt32 nBytes = nLen;

	while( nLen >= sizeof( data ) )
	{
		memcpy( data, pString, sizeof( data ) );
		pString += sizeof( data );
		nLen -= sizeof( data );
		transform();
	}
	memcpy( data, pString, nLen );
	((char*)data)[nLen++] = 0x80;
	if( nLen > sizeof( data ) - 8 )
	{
		memset( ((char*)data)+nLen, 0, sizeof( data ) - nLen );
		transform();
		memset( data, 0, sizeof( data ) - 8 );
	}
	else
		memset( ((char*)data)+nLen, 0, sizeof( data ) - 8 - nLen );
	data[14] = 0;
	data[15] = nBytes << 3;
	transform();
}

#ifdef TEST
#include <stdio.h>
int main( int argc, const char** argv )
{
	const char* pHash = argc < 2 ? argv[0] : argv[1];

	NIST_Hash aHash( pHash, strlen( pHash ) );
	sal_uInt32* pBits = aHash.getHash();

	printf( "text : %s\n"
			"bits : 0x%.8x 0x%.8x 0x%.8x 0x%.8x 0x%.8x\n",
			pHash,
			pBits[0], pBits[1], pBits[2],pBits[3],pBits[4]
			);
	return 0;
}
=====================================================================
Found a 511 line (2192 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx

using namespace ::rtl;
using namespace ::com::sun::star::uno;

//==================================================================================================
static void callVirtualMethod(void * pThis, sal_uInt32 nVtableIndex,
                              void * pRegisterReturn, typelib_TypeDescription * pReturnTypeDescr, bool bSimpleReturn,
                              sal_uInt64 *pStack, sal_uInt32 nStack,
                              sal_uInt64 *pGPR, sal_uInt32 nGPR,
                              double *pFPR, sal_uInt32 nFPR) __attribute__((noinline));

static void callVirtualMethod(void * pThis, sal_uInt32 nVtableIndex,
                              void * pRegisterReturn, typelib_TypeDescription * pReturnTypeDescr, bool bSimpleReturn,
                              sal_uInt64 *pStack, sal_uInt32 nStack,
                              sal_uInt64 *pGPR, sal_uInt32 nGPR,
                              double *pFPR, sal_uInt32 nFPR)
{
#if OSL_DEBUG_LEVEL > 1
    // Let's figure out what is really going on here
    {
        fprintf( stderr, "= callVirtualMethod() =\nGPR's (%d): ", nGPR );
        for ( int i = 0; i < nGPR; ++i )
            fprintf( stderr, "0x%lx, ", pGPR[i] );
        fprintf( stderr, "\nFPR's (%d): ", nFPR );
        for ( int i = 0; i < nFPR; ++i )
            fprintf( stderr, "%f, ", pFPR[i] );
        fprintf( stderr, "\nStack (%d): ", nStack );
        for ( int i = 0; i < nStack; ++i )
            fprintf( stderr, "0x%lx, ", pStack[i] );
        fprintf( stderr, "\n" );
    }
#endif

    // The call instruction within the asm section of callVirtualMethod may throw
    // exceptions.  So that the compiler handles this correctly, it is important
    // that (a) callVirtualMethod might call dummy_can_throw_anything (although this
    // never happens at runtime), which in turn can throw exceptions, and (b)
    // callVirtualMethod is not inlined at its call site (so that any exceptions are
    // caught which are thrown from the instruction calling callVirtualMethod):
    if ( !pThis )
        CPPU_CURRENT_NAMESPACE::dummy_can_throw_anything( "xxx" ); // address something

    // Should not happen, but...
    if ( nFPR > x86_64::MAX_SSE_REGS )
        nFPR = x86_64::MAX_SSE_REGS;
    if ( nGPR > x86_64::MAX_GPR_REGS )
        nGPR = x86_64::MAX_GPR_REGS;

    // Get pointer to method
    sal_uInt64 pMethod = *((sal_uInt64 *)pThis);
    pMethod += 8 * nVtableIndex;
    pMethod = *((sal_uInt64 *)pMethod);

    // Load parameters to stack, if necessary
    if ( nStack )
    {
        // 16-bytes aligned
        sal_uInt32 nStackBytes = ( ( nStack + 1 ) >> 1 ) * 16;
        sal_uInt64 *pCallStack = (sal_uInt64 *) __builtin_alloca( nStackBytes );
        memcpy( pCallStack, pStack, nStackBytes );
    }

    // Return values
    sal_uInt64 rax;
    sal_uInt64 rdx;
    double xmm0;

    asm volatile (
        
        // Fill the xmm registers
        "movq %2, %%rax\n\t"

        "movsd   (%%rax), %%xmm0\n\t"
        "movsd  8(%%rax), %%xmm1\n\t"
        "movsd 16(%%rax), %%xmm2\n\t"
        "movsd 24(%%rax), %%xmm3\n\t"
        "movsd 32(%%rax), %%xmm4\n\t"
        "movsd 40(%%rax), %%xmm5\n\t"
        "movsd 48(%%rax), %%xmm6\n\t"
        "movsd 56(%%rax), %%xmm7\n\t"

        // Fill the general purpose registers
        "movq %1, %%rax\n\t"

        "movq    (%%rax), %%rdi\n\t"
        "movq   8(%%rax), %%rsi\n\t"
        "movq  16(%%rax), %%rdx\n\t"
        "movq  24(%%rax), %%rcx\n\t"
        "movq  32(%%rax), %%r8\n\t"
        "movq  40(%%rax), %%r9\n\t"

        // Perform the call
        "movq %0, %%r11\n\t"
        "movq %3, %%rax\n\t"
        "call *%%r11\n\t"

        // Fill the return values
        "movq   %%rax, %4\n\t"
        "movq   %%rdx, %5\n\t"
        "movsd %%xmm0, %6\n\t"
        :
        : "m" ( pMethod ), "m" ( pGPR ), "m" ( pFPR ), "m" ( nFPR ),
          "m" ( rax ), "m" ( rdx ), "m" ( xmm0 )
        : "rax", "rdi", "rsi", "rdx", "rcx", "r8", "r9", "r11"
    );

    switch (pReturnTypeDescr->eTypeClass)
    {
    case typelib_TypeClass_HYPER:
    case typelib_TypeClass_UNSIGNED_HYPER:
        *reinterpret_cast<sal_uInt64 *>( pRegisterReturn ) = rax;
        break;
    case typelib_TypeClass_LONG:
    case typelib_TypeClass_UNSIGNED_LONG:
    case typelib_TypeClass_ENUM:
        *reinterpret_cast<sal_uInt32 *>( pRegisterReturn ) = *reinterpret_cast<sal_uInt32*>( &rax );
        break;
    case typelib_TypeClass_CHAR:
    case typelib_TypeClass_SHORT:
    case typelib_TypeClass_UNSIGNED_SHORT:
        *reinterpret_cast<sal_uInt16 *>( pRegisterReturn ) = *reinterpret_cast<sal_uInt16*>( &rax );
        break;
    case typelib_TypeClass_BOOLEAN:
    case typelib_TypeClass_BYTE:
        *reinterpret_cast<sal_uInt8 *>( pRegisterReturn ) = *reinterpret_cast<sal_uInt8*>( &rax );
        break;
    case typelib_TypeClass_FLOAT:
    case typelib_TypeClass_DOUBLE:
        *reinterpret_cast<double *>( pRegisterReturn ) = xmm0;
        break;
    default:
        {
            sal_Int32 const nRetSize = pReturnTypeDescr->nSize;
            if (bSimpleReturn && nRetSize <= 16 && nRetSize > 0)
            {
                if (nRetSize > 8)
                    static_cast<sal_uInt64 *>(pRegisterReturn)[1] = rdx;
                static_cast<sal_uInt64 *>(pRegisterReturn)[0] = rax;
            }
            break;
        }
    }
}

//================================================================================================== 

// Macros for easier insertion of values to registers or stack
// pSV - pointer to the source
// nr - order of the value [will be increased if stored to register]
// pFPR, pGPR - pointer to the registers
// pDS - pointer to the stack [will be increased if stored here]

// The value in %xmm register is already prepared to be retrieved as a float,
// thus we treat float and double the same
#define INSERT_FLOAT_DOUBLE( pSV, nr, pFPR, pDS ) \
	if ( nr < x86_64::MAX_SSE_REGS ) \
		pFPR[nr++] = *reinterpret_cast<double *>( pSV ); \
	else \
		*pDS++ = *reinterpret_cast<sal_uInt64 *>( pSV ); // verbatim!

#define INSERT_INT64( pSV, nr, pGPR, pDS ) \
	if ( nr < x86_64::MAX_GPR_REGS ) \
		pGPR[nr++] = *reinterpret_cast<sal_uInt64 *>( pSV ); \
	else \
		*pDS++ = *reinterpret_cast<sal_uInt64 *>( pSV );

#define INSERT_INT32( pSV, nr, pGPR, pDS ) \
	if ( nr < x86_64::MAX_GPR_REGS ) \
		pGPR[nr++] = *reinterpret_cast<sal_uInt32 *>( pSV ); \
	else \
		*pDS++ = *reinterpret_cast<sal_uInt32 *>( pSV );

#define INSERT_INT16( pSV, nr, pGPR, pDS ) \
	if ( nr < x86_64::MAX_GPR_REGS ) \
		pGPR[nr++] = *reinterpret_cast<sal_uInt16 *>( pSV ); \
	else \
		*pDS++ = *reinterpret_cast<sal_uInt16 *>( pSV );

#define INSERT_INT8( pSV, nr, pGPR, pDS ) \
	if ( nr < x86_64::MAX_GPR_REGS ) \
		pGPR[nr++] = *reinterpret_cast<sal_uInt8 *>( pSV ); \
	else \
		*pDS++ = *reinterpret_cast<sal_uInt8 *>( pSV );

//================================================================================================== 

static void cpp_call(
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis,
	bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
	// Maxium space for [complex ret ptr], values | ptr ...
	// (but will be used less - some of the values will be in pGPR and pFPR)
  	sal_uInt64 *pStack = (sal_uInt64 *)__builtin_alloca( (nParams + 3) * sizeof(sal_uInt64) );
  	sal_uInt64 *pStackStart = pStack;

	sal_uInt64 pGPR[x86_64::MAX_GPR_REGS];
	sal_uInt32 nGPR = 0;

	double pFPR[x86_64::MAX_SSE_REGS];
	sal_uInt32 nFPR = 0;

	// Return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion (see below)

	bool bSimpleReturn = true;	
	if ( pReturnTypeDescr )
	{
		if ( x86_64::return_in_hidden_param( pReturnTypeRef ) )
			bSimpleReturn = false;

		if ( bSimpleReturn )
			pCppReturn = pUnoReturn; // direct way for simple types
		else
		{
			// complex return via ptr
			pCppReturn = bridges::cpp_uno::shared::relatesToInterfaceType( pReturnTypeDescr )?
						 __builtin_alloca( pReturnTypeDescr->nSize ) : pUnoReturn;
			INSERT_INT64( &pCppReturn, nGPR, pGPR, pStack );
		}
	}

	// Push "this" pointer
	void * pAdjustedThisPtr = reinterpret_cast< void ** >( pThis->getCppI() ) + aVtableSlot.offset;
	INSERT_INT64( &pAdjustedThisPtr, nGPR, pGPR, pStack );

	// Args
	void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
	// Indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// Type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = alloca( 8 ), pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
				INSERT_INT64( pCppArgs[nPos], nGPR, pGPR, pStack );
				break;
			case typelib_TypeClass_LONG:
			case typelib_TypeClass_UNSIGNED_LONG:
			case typelib_TypeClass_ENUM:
				INSERT_INT32( pCppArgs[nPos], nGPR, pGPR, pStack );
				break;
			case typelib_TypeClass_SHORT:
			case typelib_TypeClass_CHAR:
			case typelib_TypeClass_UNSIGNED_SHORT:
				INSERT_INT16( pCppArgs[nPos], nGPR, pGPR, pStack );
				break;
			case typelib_TypeClass_BOOLEAN:
			case typelib_TypeClass_BYTE:
				INSERT_INT8( pCppArgs[nPos], nGPR, pGPR, pStack );
				break;
			case typelib_TypeClass_FLOAT:
			case typelib_TypeClass_DOUBLE:
				INSERT_FLOAT_DOUBLE( pCppArgs[nPos], nFPR, pFPR, pStack );
				break;
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
			INSERT_INT64( &(pCppArgs[nPos]), nGPR, pGPR, pStack );
		}
	}
	
	try
	{
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr, bSimpleReturn,
			pStackStart, ( pStack - pStackStart ),
			pGPR, nGPR,
			pFPR, nFPR );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

//==================================================================================================

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
		= static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		// determine vtable call index
		sal_Int32 nMemberPos = ((typelib_InterfaceMemberTypeDescription *)pMemberDescr)->nPosition;
		OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### member pos out of range!" );
		
		VtableSlot aVtableSlot(
				getVtableSlot(
					reinterpret_cast<
					typelib_InterfaceAttributeTypeDescription const * >(
						pMemberDescr)));
		
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
			aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot, // get, then set method
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// determine vtable call index
		sal_Int32 nMemberPos = ((typelib_InterfaceMemberTypeDescription *)pMemberDescr)->nPosition;
		OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### member pos out of range!" );
		
		VtableSlot aVtableSlot(
				getVtableSlot(
					reinterpret_cast<
					typelib_InterfaceMethodTypeDescription const * >(
						pMemberDescr)));
		
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->getBridge()->getUnoEnv()->getRegisteredInterface)(
                    pThis->getBridge()->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 484 line (2172 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx

using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;

//==================================================================================================

// Perform the UNO call
//
// We must convert the paramaters stored in gpreg, fpreg and ovrflw to UNO
// arguments and call pThis->getUnoI()->pDispatcher.
//
// gpreg:  [ret *], this, [gpr params]
// fpreg:  [fpr params]
// ovrflw: [gpr or fpr params (properly aligned)]
//
// [ret *] is present when we are returning a structure bigger than 16 bytes
// Simple types are returned in rax, rdx (int), or xmm0, xmm1 (fp).
// Similarly structures <= 16 bytes are in rax, rdx, xmm0, xmm1 as necessary.
static typelib_TypeClass cpp2uno_call(
	bridges::cpp_uno::shared::CppInterfaceProxy * pThis,
	const typelib_TypeDescription * pMemberTypeDescr,
	typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void ** gpreg, void ** fpreg, void ** ovrflw,
	sal_uInt64 * pRegisterReturn /* space for register return */ )
{
	int nr_gpr = 0; //number of gpr registers used 
	int nr_fpr = 0; //number of fpr regsiters used
       
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	if (pReturnTypeRef)
		TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	
	void * pUnoReturn = 0;
	void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
	
	if ( pReturnTypeDescr )
	{
		if ( x86_64::return_in_hidden_param( pReturnTypeRef ) )
		{
			pCppReturn = *gpreg++;
			nr_gpr++;
			
			pUnoReturn = ( bridges::cpp_uno::shared::relatesToInterfaceType( pReturnTypeDescr )
						   ? alloca( pReturnTypeDescr->nSize )
						   : pCppReturn ); // direct way
		}
		else
			pUnoReturn = pRegisterReturn; // direct way for simple types
	}

	// pop this
	gpreg++; 
	nr_gpr++;

	// stack space
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		int nUsedGPR = 0;
		int nUsedSSE = 0;
		bool bFitsRegisters = x86_64::examine_argument( rParam.pTypeRef, false, nUsedGPR, nUsedSSE );
		if ( !rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ) ) // value
		{
			// Simple types must fit exactly one register on x86_64
			OSL_ASSERT( bFitsRegisters && ( ( nUsedSSE == 1 && nUsedGPR == 0 ) || ( nUsedSSE == 0 && nUsedGPR == 1 ) ) );

			if ( nUsedSSE == 1 )
			{
				if ( nr_fpr < x86_64::MAX_SSE_REGS )
				{
					pCppArgs[nPos] = pUnoArgs[nPos] = fpreg++;
					nr_fpr++;
				}
				else
					pCppArgs[nPos] = pUnoArgs[nPos] = ovrflw++;
			}
			else if ( nUsedGPR == 1 )
			{
				if ( nr_gpr < x86_64::MAX_GPR_REGS )
				{
					pCppArgs[nPos] = pUnoArgs[nPos] = gpreg++;
					nr_gpr++;
				}
				else
					pCppArgs[nPos] = pUnoArgs[nPos] = ovrflw++;
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // struct <= 16 bytes || ptr to complex value || ref
		{
			void *pCppStack;
			char pTmpStruct[16];

			if ( bFitsRegisters && !rParam.bOut &&
				 ( pParamTypeDescr->eTypeClass == typelib_TypeClass_STRUCT ||
				   pParamTypeDescr->eTypeClass == typelib_TypeClass_EXCEPTION ) )
			{
				if ( ( nr_gpr + nUsedGPR <= x86_64::MAX_GPR_REGS ) && ( nr_fpr + nUsedSSE <= x86_64::MAX_SSE_REGS ) )
				{
					x86_64::fill_struct( rParam.pTypeRef, gpreg, fpreg, pTmpStruct );
#if OSL_DEBUG_LEVEL > 1
					fprintf( stderr, "nUsedGPR == %d, nUsedSSE == %d, pTmpStruct[0] == 0x%x, pTmpStruct[1] == 0x%x, **gpreg == 0x%lx\n",
							nUsedGPR, nUsedSSE, pTmpStruct[0], pTmpStruct[1], *(sal_uInt64*)*gpreg );
#endif

					pCppArgs[nPos] = pCppStack = reinterpret_cast<void *>( pTmpStruct );
					gpreg += nUsedGPR;
					fpreg += nUsedSSE;
				}
				else
					pCppArgs[nPos] = pCppStack = *ovrflw++;
			}
			else if ( nr_gpr < x86_64::MAX_GPR_REGS )
			{ 
				pCppArgs[nPos] = pCppStack = *gpreg++;
				nr_gpr++;
			}
			else
				pCppArgs[nPos] = pCppStack = *ovrflw++;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else if ( bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ) ) // is in/inout
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if ( pUnoExc )
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if ( pParams[nIndex].bOut ) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if ( pCppReturn ) // has complex return
		{
			if ( pUnoReturn != pCppReturn ) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if ( pReturnTypeDescr )
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
extern "C" typelib_TypeClass cpp_vtable_call(
	sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset,
	void ** gpreg, void ** fpreg, void ** ovrflw,
	sal_uInt64 * pRegisterReturn /* space for register return */ )
{
	// gpreg:  [ret *], this, [other gpr params]
	// fpreg:  [fpr params]
	// ovrflw: [gpr or fpr params (properly aligned)]
	void * pThis;
	if ( nFunctionIndex & 0x80000000 )
	{
		nFunctionIndex &= 0x7fffffff;
		pThis = gpreg[1];
	}
	else
	{
		pThis = gpreg[0];
	}
	pThis = static_cast<char *>( pThis ) - nVtableOffset;

	bridges::cpp_uno::shared::CppInterfaceProxy * pCppI =
		bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy( pThis );

	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();

	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!\n" );
	if ( nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex )
	{
		throw RuntimeException( OUString::createFromAscii("illegal vtable index!"),
								reinterpret_cast<XInterface *>( pCppI ) );
	}

	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!\n" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );

	typelib_TypeClass eRet;
	switch ( aMemberDescr.get()->eTypeClass )
	{
		case typelib_TypeClass_INTERFACE_ATTRIBUTE:
		{
			typelib_TypeDescriptionReference *pAttrTypeRef = 
				reinterpret_cast<typelib_InterfaceAttributeTypeDescription *>( aMemberDescr.get() )->pAttributeTypeRef;

			if ( pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex )
			{
				// is GET method
				eRet = cpp2uno_call( pCppI, aMemberDescr.get(), pAttrTypeRef,
						0, 0, // no params
						gpreg, fpreg, ovrflw, pRegisterReturn );
			}
			else
			{
				// is SET method
				typelib_MethodParameter aParam;
				aParam.pTypeRef = pAttrTypeRef;
				aParam.bIn		= sal_True;
				aParam.bOut		= sal_False;

				eRet = cpp2uno_call( pCppI, aMemberDescr.get(),
						0, // indicates void return
						1, &aParam,
						gpreg, fpreg, ovrflw, pRegisterReturn );
			}
			break;
		}
		case typelib_TypeClass_INTERFACE_METHOD:
		{
			// is METHOD
			switch ( nFunctionIndex )
			{
				case 1: // acquire()
					pCppI->acquireProxy(); // non virtual call!
					eRet = typelib_TypeClass_VOID;
					break;
				case 2: // release()
					pCppI->releaseProxy(); // non virtual call!
					eRet = typelib_TypeClass_VOID;
					break;
				case 0: // queryInterface() opt
				{
					typelib_TypeDescription * pTD = 0;
					TYPELIB_DANGER_GET( &pTD, reinterpret_cast<Type *>( gpreg[2] )->getTypeLibType() );
					if ( pTD )
					{
						XInterface * pInterface = 0;
						(*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)
							( pCppI->getBridge()->getCppEnv(),
							  (void **)&pInterface,
							  pCppI->getOid().pData,
							  reinterpret_cast<typelib_InterfaceTypeDescription *>( pTD ) );

						if ( pInterface )
						{
							::uno_any_construct( reinterpret_cast<uno_Any *>( gpreg[0] ),
												 &pInterface, pTD, cpp_acquire );

							pInterface->release();
							TYPELIB_DANGER_RELEASE( pTD );

							reinterpret_cast<void **>( pRegisterReturn )[0] = gpreg[0];
							eRet = typelib_TypeClass_ANY;
							break;
						}
						TYPELIB_DANGER_RELEASE( pTD );
					}
				} // else perform queryInterface()
				default:
				{
					typelib_InterfaceMethodTypeDescription *pMethodTD =
						reinterpret_cast<typelib_InterfaceMethodTypeDescription *>( aMemberDescr.get() );

					eRet = cpp2uno_call( pCppI, aMemberDescr.get(),
										 pMethodTD->pReturnTypeRef,
										 pMethodTD->nParams,
										 pMethodTD->pParams,
										 gpreg, fpreg, ovrflw, pRegisterReturn );
				}
			}
			break;
		}
		default:
		{
			throw RuntimeException( OUString::createFromAscii("no member description found!"),
									reinterpret_cast<XInterface *>( pCppI ) );
			// is here for dummy
			eRet = typelib_TypeClass_VOID;
		}
	}

	return eRet;
}

//==================================================================================================
extern "C" void privateSnippetExecutor( ... );

const int codeSnippetSize = 24;

// Generate a trampoline that redirects method calls to
// privateSnippetExecutor().
//
// privateSnippetExecutor() saves all the registers that are used for
// parameter passing on x86_64, and calls the cpp_vtable_call().
// When it returns, privateSnippetExecutor() sets the return value.
//
// Note: The code snippet we build here must not create a stack frame,
// otherwise the UNO exceptions stop working thanks to non-existing
// unwinding info.
unsigned char * codeSnippet( unsigned char * code,
        sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset,
        bool bHasHiddenParam ) SAL_THROW( () )
{
	sal_uInt64 nOffsetAndIndex = ( ( (sal_uInt64) nVtableOffset ) << 32 ) | ( (sal_uInt64) nFunctionIndex );

	if ( bHasHiddenParam )
		nOffsetAndIndex |= 0x80000000;

	// movq $<nOffsetAndIndex>, %r10
	*reinterpret_cast<sal_uInt16 *>( code ) = 0xba49;
	*reinterpret_cast<sal_uInt64 *>( code + 2 ) = nOffsetAndIndex;

	// movq $<address of the privateSnippetExecutor>, %r11
	*reinterpret_cast<sal_uInt16 *>( code + 10 ) = 0xbb49;
	*reinterpret_cast<sal_uInt64 *>( code + 12 ) = reinterpret_cast<sal_uInt64>( privateSnippetExecutor );

	// jmpq *%r11
	*reinterpret_cast<sal_uInt32 *>( code + 20 ) = 0x00e3ff49;

	return code + codeSnippetSize;
}

//==================================================================================================
void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable( void * block )
{
	return static_cast<void **>( block ) + 2;
}

//==================================================================================================
sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return ( slotCount + 2 ) * sizeof( void * ) + slotCount * codeSnippetSize;
}

//==================================================================================================
void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock( void * block )
{
	void ** slots = mapBlockToVtable( block );
	slots[-2] = 0;
	slots[-1] = 0;

	return slots;
}

//==================================================================================================

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
	void ** slots, unsigned char * code,
	typelib_InterfaceTypeDescription const * type, sal_Int32 nFunctionOffset,
	sal_Int32 functionCount, sal_Int32 nVtableOffset )
{
	for ( sal_Int32 nPos = 0; nPos < type->nMembers; ++nPos )
	{
		typelib_TypeDescription * pTD = 0;

		TYPELIB_DANGER_GET( &pTD, type->ppMembers[ nPos ] );
		OSL_ASSERT( pTD );

		if ( typelib_TypeClass_INTERFACE_ATTRIBUTE == pTD->eTypeClass )
		{
			typelib_InterfaceAttributeTypeDescription *pAttrTD =
				reinterpret_cast<typelib_InterfaceAttributeTypeDescription *>( pTD );

			// get method
			*slots++ = code;
			code = codeSnippet( code, nFunctionOffset++, nVtableOffset,
								x86_64::return_in_hidden_param( pAttrTD->pAttributeTypeRef ) );

			if ( ! pAttrTD->bReadOnly )
			{
				// set method
				*slots++ = code;
				code = codeSnippet( code, nFunctionOffset++, nVtableOffset, false );
			}
		}
		else if ( typelib_TypeClass_INTERFACE_METHOD == pTD->eTypeClass )
		{
			typelib_InterfaceMethodTypeDescription *pMethodTD =
				reinterpret_cast<typelib_InterfaceMethodTypeDescription *>( pTD );
			
			*slots++ = code;
			code = codeSnippet( code, nFunctionOffset++, nVtableOffset,
								x86_64::return_in_hidden_param( pMethodTD->pReturnTypeRef ) );
		}
		else
			OSL_ASSERT( false );

		TYPELIB_DANGER_RELEASE( pTD );
	}
	return code;
}

//==================================================================================================
void bridges::cpp_uno::shared::VtableFactory::flushCode(
	unsigned char const *, unsigned char const * )
{
}
=====================================================================
Found a 391 line (2099 tokens) duplication in the following files: 
Starting at line 381 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svppspgraphics.cxx
Starting at line 460 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/pspgraphics.cxx

}

void PspGraphics::drawBitmap( const SalTwoRect*,
                              const SalBitmap&,
                              const SalBitmap& )
{
    DBG_ERROR("Error: no PrinterGfx::DrawBitmap() for transparent bitmap");
}

void PspGraphics::drawBitmap( const SalTwoRect*,
                              const SalBitmap&,
                              SalColor )
{
    DBG_ERROR("Error: no PrinterGfx::DrawBitmap() for transparent color");
}

void PspGraphics::drawMask( const SalTwoRect*,
                            const SalBitmap &,
                            SalColor )
{
    DBG_ERROR("Error: PrinterGfx::DrawMask() not implemented");
}

SalBitmap* PspGraphics::getBitmap( long, long, long, long )
{
    DBG_WARNING ("Warning: PrinterGfx::GetBitmap() not implemented");
    return NULL;
}

SalColor PspGraphics::getPixel( long, long )
{
    DBG_ERROR ("Warning: PrinterGfx::GetPixel() not implemented");
    return 0;
}

void PspGraphics::invert(long,long,long,long,SalInvert)
{
    DBG_ERROR ("Warning: PrinterGfx::Invert() not implemented");
}

//==========================================================================

class ImplPspFontData : public ImplFontData
{
private:
    enum { PSPFD_MAGIC = 0xb5bf01f0 };
    sal_IntPtr              mnFontId;

public:
                            ImplPspFontData( const psp::FastPrintFontInfo& );
    virtual sal_IntPtr      GetFontId() const { return mnFontId; }
    virtual ImplFontData*   Clone() const { return new ImplPspFontData( *this ); }
    virtual ImplFontEntry*  CreateFontInstance( ImplFontSelectData& ) const;
    static bool             CheckFontData( const ImplFontData& r ) { return r.CheckMagic( PSPFD_MAGIC ); }
};

//--------------------------------------------------------------------------

ImplPspFontData::ImplPspFontData( const psp::FastPrintFontInfo& rInfo )
:   ImplFontData( PspGraphics::Info2DevFontAttributes(rInfo), PSPFD_MAGIC ),
    mnFontId( rInfo.m_nID )
{}

//--------------------------------------------------------------------------

ImplFontEntry* ImplPspFontData::CreateFontInstance( ImplFontSelectData& rFSD ) const
{
    ImplServerFontEntry* pEntry = new ImplServerFontEntry( rFSD );
    return pEntry;
}

//==========================================================================

class PspFontLayout : public GenericSalLayout
{
public:
                        PspFontLayout( ::psp::PrinterGfx& );
    virtual bool        LayoutText( ImplLayoutArgs& );
    virtual void        InitFont() const;
    virtual void        DrawText( SalGraphics& ) const;
private:
    ::psp::PrinterGfx&  mrPrinterGfx;
    sal_IntPtr          mnFontID;
    int                 mnFontHeight;
    int                 mnFontWidth;
    bool                mbVertical;
    bool                mbArtItalic;
    bool                mbArtBold;
};

//--------------------------------------------------------------------------

PspFontLayout::PspFontLayout( ::psp::PrinterGfx& rGfx )
:   mrPrinterGfx( rGfx )
{
    mnFontID     = mrPrinterGfx.GetFontID();
    mnFontHeight = mrPrinterGfx.GetFontHeight();
    mnFontWidth  = mrPrinterGfx.GetFontWidth();
    mbVertical   = mrPrinterGfx.GetFontVertical();
    mbArtItalic	 = mrPrinterGfx.GetArtificialItalic();
    mbArtBold	 = mrPrinterGfx.GetArtificialBold();
}

//--------------------------------------------------------------------------

bool PspFontLayout::LayoutText( ImplLayoutArgs& rArgs )
{
    mbVertical = ((rArgs.mnFlags & SAL_LAYOUT_VERTICAL) != 0);

    long nUnitsPerPixel = 1;
    int nOldGlyphId = -1;
    long nGlyphWidth = 0;
    int nCharPos = -1;
    Point aNewPos( 0, 0 );
    GlyphItem aPrevItem;
    rtl_TextEncoding aFontEnc = mrPrinterGfx.GetFontMgr().getFontEncoding( mnFontID );
    for(;;)
    {
        bool bRightToLeft;
        if( !rArgs.GetNextPos( &nCharPos, &bRightToLeft ) )
            break;

        sal_Unicode cChar = rArgs.mpStr[ nCharPos ];
        if( bRightToLeft )
            cChar = GetMirroredChar( cChar );
        // symbol font aliasing: 0x0020-0x00ff -> 0xf020 -> 0xf0ff
        if( aFontEnc == RTL_TEXTENCODING_SYMBOL )
            if( cChar < 256 )
                cChar += 0xf000;
        int nGlyphIndex = cChar;  // printer glyphs = unicode

        // update fallback_runs if needed
        psp::CharacterMetric aMetric;
        mrPrinterGfx.GetFontMgr().getMetrics( mnFontID, cChar, cChar, &aMetric, mbVertical );
        if( aMetric.width == -1 && aMetric.height == -1 )
            rArgs.NeedFallback( nCharPos, bRightToLeft );

        // apply pair kerning to prev glyph if requested
        if( SAL_LAYOUT_KERNING_PAIRS & rArgs.mnFlags )
        {
            if( nOldGlyphId > 0 )
            {
                const std::list< KernPair >& rKernPairs = mrPrinterGfx.getKernPairs(mbVertical);
                for( std::list< KernPair >::const_iterator it = rKernPairs.begin();
                     it != rKernPairs.end(); ++it )
                {
                    if( it->first == nOldGlyphId && it->second == nGlyphIndex )
                    {
                        int nTextScale = mrPrinterGfx.GetFontWidth();
                        if( ! nTextScale )
                            nTextScale = mrPrinterGfx.GetFontHeight();
                        int nKern = (mbVertical ? it->kern_y : it->kern_x) * nTextScale;
                        nGlyphWidth += nKern;
                        aPrevItem.mnNewWidth = nGlyphWidth;
                        break;
                    }
                }
            }
        }

        // finish previous glyph
        if( nOldGlyphId >= 0 )
            AppendGlyph( aPrevItem );
        nOldGlyphId = nGlyphIndex;
        aNewPos.X() += nGlyphWidth;

        // prepare GlyphItem for appending it in next round
        nUnitsPerPixel = mrPrinterGfx.GetCharWidth( cChar, cChar, &nGlyphWidth );
        int nGlyphFlags = bRightToLeft ? GlyphItem::IS_RTL_GLYPH : 0;
        nGlyphIndex |= GF_ISCHAR;
        aPrevItem = GlyphItem( nCharPos, nGlyphIndex, aNewPos, nGlyphFlags, nGlyphWidth );
    }

    // append last glyph item if any
    if( nOldGlyphId >= 0 )
        AppendGlyph( aPrevItem );

    SetOrientation( mrPrinterGfx.GetFontAngle() );
    SetUnitsPerPixel( nUnitsPerPixel );
    return (nOldGlyphId >= 0);
}

class PspServerFontLayout : public ServerFontLayout
{
public:
    PspServerFontLayout( psp::PrinterGfx&, ServerFont& rFont, const ImplLayoutArgs& rArgs );

    virtual void        InitFont() const;
    const sal_Unicode*	getTextPtr() const { return maText.getStr() - mnMinCharPos; }
    int					getMinCharPos() const { return mnMinCharPos; }
    int					getMaxCharPos() const { return mnMinCharPos+maText.getLength()-1; }
private:
    ::psp::PrinterGfx&  mrPrinterGfx;
    sal_IntPtr          mnFontID;
    int                 mnFontHeight;
    int                 mnFontWidth;
    bool                mbVertical;
    bool				mbArtItalic;
    bool				mbArtBold;
    rtl::OUString		maText;
    int					mnMinCharPos;
};

PspServerFontLayout::PspServerFontLayout( ::psp::PrinterGfx& rGfx, ServerFont& rFont, const ImplLayoutArgs& rArgs )
        :   ServerFontLayout( rFont ),
            mrPrinterGfx( rGfx )
{
    mnFontID     = mrPrinterGfx.GetFontID();
    mnFontHeight = mrPrinterGfx.GetFontHeight();
    mnFontWidth  = mrPrinterGfx.GetFontWidth();
    mbVertical   = mrPrinterGfx.GetFontVertical();
    mbArtItalic	 = mrPrinterGfx.GetArtificialItalic();
    mbArtBold	 = mrPrinterGfx.GetArtificialBold();
    maText		 = OUString( rArgs.mpStr + rArgs.mnMinCharPos, rArgs.mnEndCharPos - rArgs.mnMinCharPos+1 );
    mnMinCharPos = rArgs.mnMinCharPos;
}

void PspServerFontLayout::InitFont() const
{
    mrPrinterGfx.SetFont( mnFontID, mnFontHeight, mnFontWidth,
                          mnOrientation, mbVertical, mbArtItalic, mbArtBold );
}

//--------------------------------------------------------------------------

static void DrawPrinterLayout( const SalLayout& rLayout, ::psp::PrinterGfx& rGfx, bool bIsPspServerFontLayout )
{
    const int nMaxGlyphs = 200;
    sal_Int32   aGlyphAry[ nMaxGlyphs ];
    sal_Int32   aWidthAry[ nMaxGlyphs ];
    sal_Int32   aIdxAry  [ nMaxGlyphs ];
    sal_Unicode aUnicodes[ nMaxGlyphs ];
    int			aCharPosAry	[ nMaxGlyphs ];

    Point aPos;
    long nUnitsPerPixel = rLayout.GetUnitsPerPixel();
    const sal_Unicode* pText = bIsPspServerFontLayout ? static_cast<const PspServerFontLayout&>(rLayout).getTextPtr() : NULL;
    int nMinCharPos = bIsPspServerFontLayout ? static_cast<const PspServerFontLayout&>(rLayout).getMinCharPos() : 0;
    int nMaxCharPos = bIsPspServerFontLayout ? static_cast<const PspServerFontLayout&>(rLayout).getMaxCharPos() : 0;
    for( int nStart = 0;; )
    {
        int nGlyphCount = rLayout.GetNextGlyphs( nMaxGlyphs, aGlyphAry, aPos, nStart, aWidthAry, bIsPspServerFontLayout ? aCharPosAry : NULL );
        if( !nGlyphCount )
            break;

        sal_Int32 nXOffset = 0;
        for( int i = 0; i < nGlyphCount; ++i )
        {
            nXOffset += aWidthAry[ i ];
            aIdxAry[ i ] = nXOffset / nUnitsPerPixel;
            sal_Int32 nGlyphIdx = aGlyphAry[i] & (GF_IDXMASK | GF_ROTMASK);
            if( bIsPspServerFontLayout )
                aUnicodes[i] = (aCharPosAry[i] >= nMinCharPos && aCharPosAry[i] <= nMaxCharPos) ? pText[ aCharPosAry[i] ] : 0;
            else
                aUnicodes[i] = (aGlyphAry[i] & GF_ISCHAR) ? nGlyphIdx : 0;
            aGlyphAry[i] = nGlyphIdx;
        }

        rGfx.DrawGlyphs( aPos, (sal_uInt32 *)aGlyphAry, aUnicodes, nGlyphCount, aIdxAry );
    }
}

//--------------------------------------------------------------------------

void PspFontLayout::InitFont() const
{
    mrPrinterGfx.SetFont( mnFontID, mnFontHeight, mnFontWidth,
        mnOrientation, mbVertical, mbArtItalic, mbArtBold );
}

//--------------------------------------------------------------------------

void PspFontLayout::DrawText( SalGraphics& ) const
{
    DrawPrinterLayout( *this, mrPrinterGfx, false );
}

void PspGraphics::DrawServerFontLayout( const ServerFontLayout& rLayout )
{
    // print complex text
    DrawPrinterLayout( rLayout, *m_pPrinterGfx, true );
}

ImplFontCharMap* PspGraphics::GetImplFontCharMap() const
{
    // TODO: get ImplFontCharMap directly from fonts
    int nPairCount = 0;
    if( m_pServerFont[0] )
        nPairCount = m_pServerFont[0]->GetFontCodeRanges( NULL );
    if( !nPairCount )
        return NULL;

    sal_uInt32* pCodePairs = new sal_uInt32[ 2 * nPairCount ];
    if( m_pServerFont[0] )
        m_pServerFont[0]->GetFontCodeRanges( pCodePairs );
    return new ImplFontCharMap( nPairCount, pCodePairs );
}

USHORT PspGraphics::SetFont( ImplFontSelectData *pEntry, int nFallbackLevel )
{
    // release all fonts that are to be overridden
    for( int i = nFallbackLevel; i < MAX_FALLBACK; ++i )
    {
        if( m_pServerFont[i] != NULL )
        {
            // old server side font is no longer referenced
            GlyphCache::GetInstance().UncacheFont( *m_pServerFont[i] );
            m_pServerFont[i] = NULL;
        }
    }

    // return early if there is no new font
    if( !pEntry )
        return 0;
    
    sal_IntPtr nID = pEntry->mpFontData ? pEntry->mpFontData->GetFontId() : 0;

    // determine which font attributes need to be emulated
    bool bArtItalic = false;
    bool bArtBold = false;
    if( pEntry->meItalic == ITALIC_OBLIQUE || pEntry->meItalic == ITALIC_NORMAL )
    {
        psp::italic::type eItalic = m_pPrinterGfx->GetFontMgr().getFontItalic( nID );
        if( eItalic != psp::italic::Italic && eItalic != psp::italic::Oblique )
            bArtItalic = true;
    }
    int nWeight = (int)pEntry->meWeight;
    int nRealWeight = (int)m_pPrinterGfx->GetFontMgr().getFontWeight( nID );
    if( nRealWeight <= (int)psp::weight::Medium && nWeight > (int)WEIGHT_MEDIUM )
    {
        bArtBold = true;
    }

    // also set the serverside font for layouting
    m_bFontVertical = pEntry->mbVertical;
    if( pEntry->mpFontData )
    {
        // requesting a font provided by builtin rasterizer
        ServerFont* pServerFont = GlyphCache::GetInstance().CacheFont( *pEntry );
        if( pServerFont != NULL )
        {
            if( pServerFont->TestFont() )
                m_pServerFont[ nFallbackLevel ] = pServerFont;
            else
                GlyphCache::GetInstance().UncacheFont( *pServerFont );
        }
    }

    // set the printer font
    return m_pPrinterGfx->SetFont( nID,
                                   pEntry->mnHeight,
                                   pEntry->mnWidth,
                                   pEntry->mnOrientation,
                                   pEntry->mbVertical,
                                   bArtItalic,
                                   bArtBold
                                   );
}

void PspGraphics::SetTextColor( SalColor nSalColor )
{
    psp::PrinterColor aColor (SALCOLOR_RED   (nSalColor),
                              SALCOLOR_GREEN (nSalColor),
                              SALCOLOR_BLUE  (nSalColor));
    m_pPrinterGfx->SetTextColor (aColor);
}

bool PspGraphics::AddTempDevFont( ImplDevFontList*, const String&,const String& )
{
    return false;
}

void PspGraphics::GetDevFontList( ImplDevFontList *pList )
{
    ::std::list< psp::fontID > aList;
    psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
    rMgr.getFontList( aList, m_pJobData->m_pParser, m_pInfoPrinter->m_bCompatMetrics );

    ::std::list< psp::fontID >::iterator it;
    psp::FastPrintFontInfo aInfo;
    for (it = aList.begin(); it != aList.end(); ++it)
        if (rMgr.getFontFastInfo (*it, aInfo))
            AnnounceFonts( pList, aInfo );
}

void PspGraphics::GetDevFontSubstList( OutputDevice* pOutDev )
{
    const psp::PrinterInfo& rInfo = psp::PrinterInfoManager::get().getPrinterInfo( m_pJobData->m_aPrinterName );
    if( rInfo.m_bPerformFontSubstitution )
    {
        for( std::hash_map< rtl::OUString, rtl::OUString, rtl::OUStringHash >::const_iterator it = rInfo.m_aFontSubstitutes.begin(); it != rInfo.m_aFontSubstitutes.end(); ++it )
=====================================================================
Found a 260 line (2056 tokens) duplication in the following files: 
Starting at line 1813 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2331 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2849 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso10_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x00, 0xa6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x00, 0xa9, 0xa9 },
{ 0x00, 0xaa, 0xaa },
{ 0x00, 0xab, 0xab },
{ 0x00, 0xac, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x00, 0xb3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x00, 0xc0, 0xc0 },
{ 0x00, 0xc1, 0xc1 },
{ 0x00, 0xc2, 0xc2 },
{ 0x00, 0xc3, 0xc3 },
{ 0x00, 0xc4, 0xc4 },
{ 0x00, 0xc5, 0xc5 },
{ 0x00, 0xc6, 0xc6 },
{ 0x00, 0xc7, 0xc7 },
{ 0x00, 0xc8, 0xc8 },
{ 0x00, 0xc9, 0xc9 },
{ 0x00, 0xca, 0xca },
{ 0x00, 0xcb, 0xcb },
{ 0x00, 0xcc, 0xcc },
{ 0x00, 0xcd, 0xcd },
{ 0x00, 0xce, 0xce },
{ 0x00, 0xcf, 0xcf },
{ 0x00, 0xd0, 0xd0 },
{ 0x00, 0xd1, 0xd1 },
{ 0x00, 0xd2, 0xd2 },
{ 0x00, 0xd3, 0xd3 },
{ 0x00, 0xd4, 0xd4 },
{ 0x00, 0xd5, 0xd5 },
{ 0x00, 0xd6, 0xd6 },
{ 0x00, 0xd7, 0xd7 },
{ 0x00, 0xd8, 0xd8 },
{ 0x00, 0xd9, 0xd9 },
{ 0x00, 0xda, 0xda },
{ 0x00, 0xdb, 0xdb },
{ 0x00, 0xdc, 0xdc },
{ 0x00, 0xdd, 0xdd },
{ 0x00, 0xde, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xe0 },
{ 0x00, 0xe1, 0xe1 },
{ 0x00, 0xe2, 0xe2 },
{ 0x00, 0xe3, 0xe3 },
{ 0x00, 0xe4, 0xe4 },
{ 0x00, 0xe5, 0xe5 },
{ 0x00, 0xe6, 0xe6 },
{ 0x00, 0xe7, 0xe7 },
{ 0x00, 0xe8, 0xe8 },
{ 0x00, 0xe9, 0xe9 },
{ 0x00, 0xea, 0xea },
{ 0x00, 0xeb, 0xeb },
{ 0x00, 0xec, 0xec },
{ 0x00, 0xed, 0xed },
{ 0x00, 0xee, 0xee },
{ 0x00, 0xef, 0xef },
{ 0x00, 0xf0, 0xf0 },
{ 0x00, 0xf1, 0xf1 },
{ 0x00, 0xf2, 0xf2 },
{ 0x00, 0xf3, 0xf3 },
{ 0x00, 0xf4, 0xf4 },
{ 0x00, 0xf5, 0xf5 },
{ 0x00, 0xf6, 0xf6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xf8 },
{ 0x00, 0xf9, 0xf9 },
{ 0x00, 0xfa, 0xfa },
{ 0x00, 0xfb, 0xfb },
{ 0x00, 0xfc, 0xfc },
{ 0x00, 0xfd, 0xfd },
{ 0x00, 0xfe, 0xfe },
{ 0x00, 0xff, 0xff },
};

struct cs_info koi8r_tbl[] = {
=====================================================================
Found a 260 line (2055 tokens) duplication in the following files: 
Starting at line 1813 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4663 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iscii_devanagari_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x00, 0xa6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x00, 0xa9, 0xa9 },
{ 0x00, 0xaa, 0xaa },
{ 0x00, 0xab, 0xab },
{ 0x00, 0xac, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x00, 0xb3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x00, 0xc0, 0xc0 },
{ 0x00, 0xc1, 0xc1 },
{ 0x00, 0xc2, 0xc2 },
{ 0x00, 0xc3, 0xc3 },
{ 0x00, 0xc4, 0xc4 },
{ 0x00, 0xc5, 0xc5 },
{ 0x00, 0xc6, 0xc6 },
{ 0x00, 0xc7, 0xc7 },
{ 0x00, 0xc8, 0xc8 },
{ 0x00, 0xc9, 0xc9 },
{ 0x00, 0xca, 0xca },
{ 0x00, 0xcb, 0xcb },
{ 0x00, 0xcc, 0xcc },
{ 0x00, 0xcd, 0xcd },
{ 0x00, 0xce, 0xce },
{ 0x00, 0xcf, 0xcf },
{ 0x00, 0xd0, 0xd0 },
{ 0x00, 0xd1, 0xd1 },
{ 0x00, 0xd2, 0xd2 },
{ 0x00, 0xd3, 0xd3 },
{ 0x00, 0xd4, 0xd4 },
{ 0x00, 0xd5, 0xd5 },
{ 0x00, 0xd6, 0xd6 },
{ 0x00, 0xd7, 0xd7 },
{ 0x00, 0xd8, 0xd8 },
{ 0x00, 0xd9, 0xd9 },
{ 0x00, 0xda, 0xda },
{ 0x00, 0xdb, 0xdb },
{ 0x00, 0xdc, 0xdc },
{ 0x00, 0xdd, 0xdd },
{ 0x00, 0xde, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xe0 },
{ 0x00, 0xe1, 0xe1 },
{ 0x00, 0xe2, 0xe2 },
{ 0x00, 0xe3, 0xe3 },
{ 0x00, 0xe4, 0xe4 },
{ 0x00, 0xe5, 0xe5 },
{ 0x00, 0xe6, 0xe6 },
{ 0x00, 0xe7, 0xe7 },
{ 0x00, 0xe8, 0xe8 },
{ 0x00, 0xe9, 0xe9 },
{ 0x00, 0xea, 0xea },
{ 0x00, 0xeb, 0xeb },
{ 0x00, 0xec, 0xec },
{ 0x00, 0xed, 0xed },
{ 0x00, 0xee, 0xee },
{ 0x00, 0xef, 0xef },
{ 0x00, 0xf0, 0xf0 },
{ 0x00, 0xf1, 0xf1 },
{ 0x00, 0xf2, 0xf2 },
{ 0x00, 0xf3, 0xf3 },
{ 0x00, 0xf4, 0xf4 },
{ 0x00, 0xf5, 0xf5 },
{ 0x00, 0xf6, 0xf6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xf8 },
{ 0x00, 0xf9, 0xf9 },
{ 0x00, 0xfa, 0xfa },
{ 0x00, 0xfb, 0xfb },
{ 0x00, 0xfc, 0xfc },
{ 0x00, 0xfd, 0xfd },
{ 0x00, 0xfe, 0xfe },
{ 0x00, 0xff, 0xff },
};

struct enc_entry encds[] = {
=====================================================================
Found a 440 line (2039 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx

using namespace ::com::sun::star::uno;

namespace
{

//==================================================================================================
void cpp2uno_call(
	bridges::cpp_uno::shared::CppInterfaceProxy * pThis,
	const typelib_TypeDescription * pMemberTypeDescr,
	typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void ** pCallStack,
	void * pReturnValue )
{
	// pCallStack: ret, [return ptr], this, params
	char * pCppStack = (char *)(pCallStack +1);

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	if (pReturnTypeRef)
		TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	
	void * pUnoReturn = 0;
	void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pUnoReturn = pReturnValue; // direct way for simple types
		}
		else // complex return via ptr (pCppReturn)
		{
			pCppReturn = *(void **)pCppStack;
			pCppStack += sizeof(void *);
			
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
                              pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
			pUnoArgs[nPos] = pCppStack;
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
                break;
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
            // has to destruct the any
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*static_cast< void ** >(pReturnValue) = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		}
	}
}


//==================================================================================================
extern "C" void cpp_vtable_call(
    int nFunctionIndex, int nVtableOffset, void** pCallStack,
    void * pReturnValue )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );
	
	// pCallStack: ret adr, [ret *], this, params
    void * pThis;
	if( nFunctionIndex & 0x80000000 )
	{
		nFunctionIndex &= 0x7fffffff;
        pThis = pCallStack[2];
	}
	else
    {
        pThis = pCallStack[1];
    }
    pThis = static_cast< char * >(pThis) - nVtableOffset;
	bridges::cpp_uno::shared::CppInterfaceProxy * pCppI
        = bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(
            pThis);
    
	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
	
	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("illegal vtable index!"),
            (XInterface *)pThis );
	}
	
	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pReturnValue );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pReturnValue );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[1] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *static_cast< void ** >(pReturnValue) = pCallStack[1];
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				pCallStack, pReturnValue );
		}
		break;
	}
	default:
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("no member description found!"),
            (XInterface *)pThis );
	}
	}
}

//==================================================================================================
extern "C" void privateSnippetExecutorGeneral();
extern "C" void privateSnippetExecutorVoid();
extern "C" void privateSnippetExecutorHyper();
extern "C" void privateSnippetExecutorFloat();
extern "C" void privateSnippetExecutorDouble();
extern "C" void privateSnippetExecutorClass();
extern "C" typedef void (*PrivateSnippetExecutor)();

int const codeSnippetSize = 16;

unsigned char * codeSnippet(
    unsigned char * code, sal_Int32 functionIndex, sal_Int32 vtableOffset,
    typelib_TypeClass returnTypeClass)
{
    if (!bridges::cpp_uno::shared::isSimpleType(returnTypeClass)) {
        functionIndex |= 0x80000000;
    }
    PrivateSnippetExecutor exec;
    switch (returnTypeClass) {
    case typelib_TypeClass_VOID:
        exec = privateSnippetExecutorVoid;
        break;
    case typelib_TypeClass_HYPER:
    case typelib_TypeClass_UNSIGNED_HYPER:
        exec = privateSnippetExecutorHyper;
        break;
    case typelib_TypeClass_FLOAT:
        exec = privateSnippetExecutorFloat;
        break;
    case typelib_TypeClass_DOUBLE:
        exec = privateSnippetExecutorDouble;
        break;
    case typelib_TypeClass_STRING:
    case typelib_TypeClass_TYPE:
    case typelib_TypeClass_ANY:
    case typelib_TypeClass_SEQUENCE:
    case typelib_TypeClass_STRUCT:
    case typelib_TypeClass_INTERFACE:
        exec = privateSnippetExecutorClass;
        break;
    default:
        exec = privateSnippetExecutorGeneral;
        break;
    }
    unsigned char * p = code;
    OSL_ASSERT(sizeof (sal_Int32) == 4);
    // mov function_index, %eax:
    *p++ = 0xB8;
    *reinterpret_cast< sal_Int32 * >(p) = functionIndex;
    p += sizeof (sal_Int32);
    // mov vtable_offset, %edx:
    *p++ = 0xBA;
    *reinterpret_cast< sal_Int32 * >(p) = vtableOffset;
    p += sizeof (sal_Int32);
    // jmp privateSnippetExecutor:
    *p++ = 0xE9;
    *reinterpret_cast< sal_Int32 * >(p)
        = ((unsigned char *) exec) - p - sizeof (sal_Int32);
    p += sizeof (sal_Int32);
    OSL_ASSERT(p - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /*functionCount*/, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                reinterpret_cast< typelib_InterfaceAttributeTypeDescription * >(
                    member)->pAttributeTypeRef->eTypeClass);
            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(
                    code, functionOffset++, vtableOffset,
                    typelib_TypeClass_VOID);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                reinterpret_cast< typelib_InterfaceMethodTypeDescription * >(
                    member)->pReturnTypeRef->eTypeClass);
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}

void bridges::cpp_uno::shared::VtableFactory::flushCode(
    unsigned char const *, unsigned char const *)
{}
=====================================================================
Found a 418 line (2021 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/sax/source/expatwrap/xml2utf.cxx
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/fastsax/xml2utf.cxx

using namespace rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;

#include "xml2utf.hxx"

namespace sax_expatwrap {

sal_Int32 XMLFile2UTFConverter::readAndConvert( Sequence<sal_Int8> &seq , sal_Int32 nMaxToRead )
	throw ( IOException, NotConnectedException , BufferSizeExceededException , RuntimeException )
{

	Sequence<sal_Int8> seqIn;

	if( ! m_in.is() ) {
		throw NotConnectedException();
	}
	if( ! m_bStarted ) {
		nMaxToRead = Max( 512 , nMaxToRead );  	// it should be possible to find the encoding attribute
						     					// within the first 512 bytes == 128 chars in UCS-4
	}

	sal_Int32 nRead;
	Sequence< sal_Int8 > seqStart;
	while( sal_True )
	{
		nRead = m_in->readSomeBytes( seq , nMaxToRead );

		if( nRead + seqStart.getLength())
		{
			// if nRead is 0, the file is already eof.
			if( ! m_bStarted && nRead )
			{
				// ensure that enough data is available to parse encoding
				if( seqStart.getLength() )
				{
				  // prefix with what we had so far.
				  sal_Int32 nLength = seq.getLength();
				  seq.realloc( seqStart.getLength() + nLength );

				  memmove (seq.getArray() + seqStart.getLength(),
					   seq.getConstArray(),
					   nLength);
				  memcpy  (seq.getArray(),
					   seqStart.getConstArray(),
					   seqStart.getLength());
				}

				// autodetection with the first bytes
				if( ! isEncodingRecognizable( seq ) )
				{
				  // remember what we have so far.
				  seqStart = seq;

				  // read more !
				  continue;
				}
				if( scanForEncoding( seq ) || m_sEncoding.getLength() ) {
					// initialize decoding
					initializeDecoding();
				}
				nRead = seq.getLength();
				seqStart = Sequence < sal_Int8 > ();
			}

			// do the encoding
			if( m_pText2Unicode && m_pUnicode2Text &&
				m_pText2Unicode->canContinue() && m_pUnicode2Text->canContinue() ) {

				Sequence<sal_Unicode> seqUnicode = m_pText2Unicode->convert( seq );
				seq = m_pUnicode2Text->convert(	seqUnicode.getConstArray(),	seqUnicode.getLength() );
			}

			if( ! m_bStarted )
			{
				// it must now be ensured, that no encoding attribute exist anymore
				// ( otherwise the expat-Parser will crash )
				// This must be done after decoding !
				// ( e.g. Files decoded in ucs-4 cannot be read properly )
				m_bStarted = sal_True;
				removeEncoding( seq );
			}
			nRead = seq.getLength();
		}

		break;
	}
	return nRead;
}


XMLFile2UTFConverter::~XMLFile2UTFConverter()
{
	if( m_pText2Unicode )
		delete m_pText2Unicode;
	if( m_pUnicode2Text )
		delete m_pUnicode2Text;
}


void XMLFile2UTFConverter::removeEncoding( Sequence<sal_Int8> &seq )
{
	const sal_Int8 *pSource = seq.getArray();
	if( ! strncmp( (const char * ) pSource , "<?xml" , 4) )
	{

		// scan for encoding
		OString str( (sal_Char * ) pSource , seq.getLength() );

		// cut sequence to first line break
		// find first line break;
		int nMax = str.indexOf( 10 );
		if( nMax >= 0 )
		{
			str = str.copy( 0 , nMax );
		}

		int nFound = str.indexOf( " encoding" );
		if( nFound >= 0 ) {
			int nStop;
			int nStart = str.indexOf( "\"" , nFound );
			if( nStart < 0 || str.indexOf( "'" , nFound ) < nStart )
			{
				nStart = str.indexOf( "'" , nFound );
				nStop  = str.indexOf( "'" , nStart +1 );
			}
			else
			{
				nStop  = str.indexOf( "\"" , nStart +1);
			}

			if( nStart >= 0 && nStop >= 0 && nStart+1 < nStop )
			{
				// remove encoding tag from file
				memmove(        &( seq.getArray()[nFound] ) ,
								&( seq.getArray()[nStop+1]) ,
								seq.getLength() - nStop -1);
				seq.realloc( seq.getLength() - ( nStop+1 - nFound ) );
//				str = String( (char * ) seq.getArray() , seq.getLen() );
			}
		}
	}
}

// Checks, if enough data has been accumulated to recognize the encoding
sal_Bool XMLFile2UTFConverter::isEncodingRecognizable( const Sequence< sal_Int8 > &seq)
{
	const sal_Int8 *pSource = seq.getConstArray();
	sal_Bool bCheckIfFirstClosingBracketExsists = sal_False;

	if( seq.getLength() < 8 ) {
		// no recognition possible, when less than 8 bytes are available
		return sal_False;
	}

	if( ! strncmp( (const char * ) pSource , "<?xml" , 4 ) ) {
		// scan if the <?xml tag finishes within this buffer
		bCheckIfFirstClosingBracketExsists = sal_True;
	}
	else if( ('<' == pSource[0] || '<' == pSource[2] ) &&
			 ( ('?' == pSource[4] || '?' == pSource[6] ) ) )
	{
		// check for utf-16
		bCheckIfFirstClosingBracketExsists = sal_True;
	}
	else if( ( '<' == pSource[1] || '<' == pSource[3] ) &&
		     ( '?' == pSource[5] || '?' == pSource[7] ) )
	{
		// check for
		bCheckIfFirstClosingBracketExsists = sal_True;
	}

	if( bCheckIfFirstClosingBracketExsists )
	{
		for( sal_Int32 i = 0; i < seq.getLength() ; i ++ )
		{
			// whole <?xml tag is valid
			if( '>' == pSource[ i ] )
			{
				return sal_True;
			}
		}
		return sal_False;
	}

	// No <? tag in front, no need for a bigger buffer
	return sal_True;
}

sal_Bool XMLFile2UTFConverter::scanForEncoding( Sequence< sal_Int8 > &seq )
{
	const sal_uInt8 *pSource = reinterpret_cast<const sal_uInt8*>( seq.getConstArray() );
	sal_Bool bReturn = sal_True;

	if( seq.getLength() < 4 ) {
		// no recognition possible, when less than 4 bytes are available
		return sal_False;
	}

	// first level : detect possible file formats
	if( ! strncmp( (const char * ) pSource , "<?xml" , 4 ) ) {

		// scan for encoding
		OString str( (const sal_Char *) pSource , seq.getLength() );

		// cut sequence to first line break
		//find first line break;
		int nMax = str.indexOf( 10 );
		if( nMax >= 0 )
		{
			str = str.copy( 0 , nMax );
		}

		int nFound = str.indexOf( " encoding" );
		if( nFound < str.getLength() ) {
			int nStop;
			int nStart = str.indexOf( "\"" , nFound );
			if( nStart < 0 || str.indexOf( "'" , nFound ) < nStart )
			{
				nStart = str.indexOf( "'" , nFound );
				nStop  = str.indexOf( "'" , nStart +1 );
			}
			else
			{
				nStop  = str.indexOf( "\"" , nStart +1);
			}
			if( nStart >= 0 && nStop >= 0 && nStart+1 < nStop )
			{
				// encoding found finally
				m_sEncoding = str.copy( nStart+1 , nStop - nStart - 1 );
			}
		}
	}
	else if( 0xFE == pSource[0] &&
	         0xFF == pSource[1] ) {
		// UTF-16 big endian
		// conversion is done so that encoding information can be easily extracted
		m_sEncoding = "utf-16";
	}
	else if( 0xFF == pSource[0] &&
	         0xFE == pSource[1] ) {
		// UTF-16 little endian
		// conversion is done so that encoding information can be easily extracted
		m_sEncoding = "utf-16";
	}
	else if( 0x00 == pSource[0] && 0x3c == pSource[1]  && 0x00 == pSource[2] && 0x3f == pSource[3] ) {
		// UTF-16 big endian without byte order mark (this is (strictly speaking) an error.)
		// The byte order mark is simply added

		// simply add the byte order mark !
		seq.realloc( seq.getLength() + 2 );
		memmove( &( seq.getArray()[2] ) , seq.getArray() , seq.getLength() - 2 );
		((sal_uInt8*)seq.getArray())[0] = 0xFE;
		((sal_uInt8*)seq.getArray())[1] = 0xFF;

		m_sEncoding = "utf-16";
	}
	else if( 0x3c == pSource[0] && 0x00 == pSource[1]  && 0x3f == pSource[2] && 0x00 == pSource[3] ) {
		// UTF-16 little endian without byte order mark (this is (strictly speaking) an error.)
		// The byte order mark is simply added

		seq.realloc( seq.getLength() + 2 );
		memmove( &( seq.getArray()[2] ) , seq.getArray() , seq.getLength() - 2 );
		((sal_uInt8*)seq.getArray())[0] = 0xFF;
		((sal_uInt8*)seq.getArray())[1] = 0xFE;

		m_sEncoding = "utf-16";
	}
    else if( 0xEF == pSource[0] && 
             0xBB == pSource[1] &&
             0xBF == pSource[2] )
    {
        // UTF-8 BOM (byte order mark); signifies utf-8, and not byte order
        // The BOM is removed.
        memmove( seq.getArray(), &( seq.getArray()[3] ), seq.getLength()-3 );
        seq.realloc( seq.getLength() - 3 );
        m_sEncoding = "utf-8";
    }
	else if( 0x00 == pSource[0] && 0x00 == pSource[1]  && 0x00 == pSource[2] && 0x3c == pSource[3] ) {
		// UCS-4 big endian
		m_sEncoding = "ucs-4";
	}
	else if( 0x3c == pSource[0] && 0x00 == pSource[1]  && 0x00 == pSource[2] && 0x00 == pSource[3] ) {
		// UCS-4 little endian
		m_sEncoding = "ucs-4";
	}
	else if( 0x4c == pSource[0] && 0x6f == pSource[1]  &&
	         0xa7 == static_cast<unsigned char> (pSource[2]) &&
	         0x94 == static_cast<unsigned char> (pSource[3]) ) {
		// EBCDIC
		bReturn = sal_False;   // must be extended
	}
	else {
		// other
		// UTF8 is directly recognized by the parser.
		bReturn = sal_False;
	}

	return bReturn;
}

void XMLFile2UTFConverter::initializeDecoding()
{

	if( m_sEncoding.getLength() )
	{
		rtl_TextEncoding encoding = rtl_getTextEncodingFromMimeCharset( m_sEncoding.getStr() );
		if( encoding != RTL_TEXTENCODING_UTF8 )
		{
			m_pText2Unicode = new Text2UnicodeConverter( m_sEncoding );
			m_pUnicode2Text = new Unicode2TextConverter( RTL_TEXTENCODING_UTF8 );
		}
	}
}


//----------------------------------------------
//
// Text2UnicodeConverter
//
//----------------------------------------------
Text2UnicodeConverter::Text2UnicodeConverter( const OString &sEncoding )
{
	rtl_TextEncoding encoding = rtl_getTextEncodingFromMimeCharset( sEncoding.getStr() );
	if( RTL_TEXTENCODING_DONTKNOW == encoding )
	{
		m_bCanContinue = sal_False;
		m_bInitialized = sal_False;
	}
	else
	{
		init( encoding );
	}
}

Text2UnicodeConverter::Text2UnicodeConverter( rtl_TextEncoding encoding )
{
	init( encoding );
}


Text2UnicodeConverter::~Text2UnicodeConverter()
{
	if( m_bInitialized )
	{
		rtl_destroyTextToUnicodeContext( m_convText2Unicode , m_contextText2Unicode );
		rtl_destroyUnicodeToTextConverter( m_convText2Unicode );
	}
}

void Text2UnicodeConverter::init( rtl_TextEncoding encoding )
{
	m_bCanContinue = sal_True;
	m_bInitialized = sal_True;

	m_convText2Unicode 	= rtl_createTextToUnicodeConverter(encoding);
	m_contextText2Unicode = rtl_createTextToUnicodeContext( m_convText2Unicode );
	m_rtlEncoding = encoding;
}


Sequence<sal_Unicode> Text2UnicodeConverter::convert( const Sequence<sal_Int8> &seqText )
{
	sal_uInt32 uiInfo;
	sal_Size nSrcCvtBytes 	= 0;
	sal_Size nTargetCount 	= 0;
	sal_Size nSourceCount   = 0;

	// the whole source size
	sal_Int32 	nSourceSize = seqText.getLength() + m_seqSource.getLength();
	Sequence<sal_Unicode> 	seqUnicode ( nSourceSize );

	const sal_Int8 *pbSource = seqText.getConstArray();
	sal_Int8 *pbTempMem = 0;

	if( m_seqSource.getLength() ) {
		// put old rest and new byte sequence into one array
		pbTempMem = new sal_Int8[ nSourceSize ];
		memcpy( pbTempMem , m_seqSource.getConstArray() , m_seqSource.getLength() );
		memcpy( &(pbTempMem[ m_seqSource.getLength() ]) , seqText.getConstArray() , seqText.getLength() );
		pbSource = pbTempMem;

		// set to zero again
		m_seqSource = Sequence< sal_Int8 >();
	}

	while( sal_True ) {

		/* All invalid characters are transformed to the unicode undefined char */
		nTargetCount += 	rtl_convertTextToUnicode(
									m_convText2Unicode,
									m_contextText2Unicode,
									( const sal_Char * ) &( pbSource[nSourceCount] ),
									nSourceSize - nSourceCount ,
									&( seqUnicode.getArray()[ nTargetCount ] ),
									seqUnicode.getLength() - nTargetCount,
									RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_DEFAULT   |
									RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT |
									RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT,
									&uiInfo,
									&nSrcCvtBytes );
		nSourceCount += nSrcCvtBytes;

		if( uiInfo & RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL ) {
			// save necessary bytes for next conversion
			seqUnicode.realloc( seqUnicode.getLength() * 2 );
			continue;
		}
		break;
	}
	if( uiInfo & RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL ) {
		m_seqSource.realloc( nSourceSize - nSourceCount );
		memcpy( m_seqSource.getArray() , &(pbSource[nSourceCount]) , nSourceSize-nSourceCount );
	}


	if( pbTempMem ) {
		delete pbTempMem;
=====================================================================
Found a 355 line (2013 tokens) duplication in the following files: 
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/tokens.c
Starting at line 13 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_tokens.c

static char wbuf[4 * OBS];
static char *wbp = wbuf;
static int EBCDIC_ExternTokenDetected = 0;
static int EBCDIC_StartTokenDetected = 0;

unsigned char toLatin1[256] =
{
    0x00, 0x01, 0x02, 0x03, 0x9c, 0x09, 0x86, 0x7f, 0x97, 0x8d,
    0x8e, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13,
    0x9d, 0x0a, 0x08, 0x87, 0x18, 0x19, 0x92, 0x8f, 0x1c, 0x1d,
    0x1e, 0x1f, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x17, 0x1b,
    0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x05, 0x06, 0x07, 0x90, 0x91,
    0x16, 0x93, 0x94, 0x95, 0x96, 0x04, 0x98, 0x99, 0x9a, 0x9b,
    0x14, 0x15, 0x9e, 0x1a, 0x20, 0xa0, 0xe2, 0xe4, 0xe0, 0xe1,
    0xe3, 0xe5, 0xe7, 0xf1, 0xa2, 0x2e, 0x3c, 0x28, 0x2b, 0x7c,
    0x26, 0xe9, 0xea, 0xeb, 0xe8, 0xed, 0xee, 0xef, 0xec, 0xdf,
    0x21, 0x24, 0x2a, 0x29, 0x3b, 0x5e, 0x2d, 0x2f, 0xc2, 0xc4,
    0xc0, 0xc1, 0xc3, 0xc5, 0xc7, 0xd1, 0xa6, 0x2c, 0x25, 0x5f,
    0x3e, 0x3f, 0xf8, 0xc9, 0xca, 0xcb, 0xc8, 0xcd, 0xce, 0xcf,
    0xcc, 0x60, 0x3a, 0x23, 0x40, 0x27, 0x3d, 0x22,
    0xd8, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,
    0xab, 0xbb, 0xf0, 0xfd, 0xfe, 0xb1, 0xb0, 0x6a, 0x6b, 0x6c,
    0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0xaa, 0xba, 0xe6, 0xb8,
    0xc6, 0xa4, 0xb5, 0x7e, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,
    0x79, 0x7a, 0xa1, 0xbf, 0xd0, 0x5b, 0xde, 0xae, 0xac, 0xa3,
    0xa5, 0xb7, 0xa9, 0xa7, 0xb6, 0xbc, 0xbd, 0xbe, 0xdd, 0xa8,
    0xaf, 0x5d, 0xb4, 0xd7, 0x7b, 0x41, 0x42, 0x43, 0x44, 0x45,
    0x46, 0x47, 0x48, 0x49, 0xad, 0xf4, 0xf6, 0xf2, 0xf3, 0xf5,
    0x7d, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52,
    0xb9, 0xfb, 0xfc, 0xf9, 0xfa, 0xff, 0x5c, 0xf7, 0x53, 0x54,
    0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0xb2, 0xd4, 0xd6, 0xd2,
    0xd3, 0xd5, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
    0x38, 0x39, 0xb3, 0xdb, 0xdc, 0xd9, 0xda, 0x9f
};

#define MASK    "\\x%x"

int
    memcpy_EBCDIC( char * pwbuf, uchar *p, int len )
{
    int currpos = 0;
    int processedchars = 0;

    if( len == 0 )
        return 0;

    if( len == 1 )
    {
        *pwbuf = *p;
        return 1;
    }

    /* copy spaces until " or ' */
    while( (p[ processedchars ] != '\"') && (p[ processedchars ] != '\'') )
        pwbuf[ currpos++ ] = p[ processedchars++ ];

    /* copy first " or ' */
    pwbuf[ currpos++ ] = p[ processedchars++ ];

    /* convert all characters until " or ' */
    while( processedchars < (len - 1) )
    {
        if( p[ processedchars ] == '\\' )
        {
            switch( p[ ++processedchars ] )
            {
                case 'n':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\n'] );
                    processedchars++;
                    break;

                case 't':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\t'] );
                    processedchars++;
                    break;

                case 'v':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\v'] );
                    processedchars++;
                    break;

                case 'b':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\b'] );
                    processedchars++;
                    break;

                case 'r':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\r'] );
                    processedchars++;
                    break;

                case 'f':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\f'] );
                    processedchars++;
                    break;

                case 'a':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\a'] );
                    processedchars++;
                    break;

                case '\\':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\\'] );
                    processedchars++;
                    break;

                case '?':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\?'] );
                    processedchars++;
                    break;

                case '\'':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\''] );
                    processedchars++;
                    break;

                case '"':
                    currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1['\"'] );
                    processedchars++;
                    break;

                /* octal coded character? -> copy */
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                    {
                    int startpos = currpos;

                    pwbuf[ currpos++ ] = '\\';

                    while( p[ processedchars ] >= '0' && p[ processedchars ] <= '7' && (currpos < startpos + 4) )
                          pwbuf[ currpos++ ] = (unsigned char)p[ processedchars++ ];
                    break;
                    }

                /* hex coded character? -> copy */
                case 'x':
                case 'X':
                    {
                    int startpos = currpos;

                    pwbuf[ currpos++ ] = '\\';
                    pwbuf[ currpos++ ] = 'x';
                    processedchars++;

                    while( isxdigit( p[ processedchars ] ) && (currpos < startpos + 4) )
                          pwbuf[ currpos++ ] = (unsigned char)p[ processedchars++ ];
                    break;
                    }

            }
        }
        else
            currpos += sprintf( &pwbuf[ currpos ], MASK, toLatin1[p[ processedchars++ ]] );

    }

    /* copy last " or ' */
    pwbuf[ currpos++ ] = p[ processedchars ];

    return currpos;
}

void
    maketokenrow(int size, Tokenrow * trp)
{
    trp->max = size;
    if (size > 0)
        trp->bp = (Token *) domalloc(size * sizeof(Token));
    else
        trp->bp = NULL;
    trp->tp = trp->bp;
    trp->lp = trp->bp;
}

Token *
    growtokenrow(Tokenrow * trp)
{
    int ncur = trp->tp - trp->bp;
    int nlast = trp->lp - trp->bp;

    trp->max = 3 * trp->max / 2 + 1;
    trp->bp = (Token *) realloc(trp->bp, trp->max * sizeof(Token));
    trp->lp = &trp->bp[nlast];
    trp->tp = &trp->bp[ncur];
    return trp->lp;
}

/*
 * Compare a row of tokens, ignoring the content of WS; return !=0 if different
 */
int
    comparetokens(Tokenrow * tr1, Tokenrow * tr2)
{
    Token *tp1, *tp2;

    tp1 = tr1->tp;
    tp2 = tr2->tp;
    if (tr1->lp - tp1 != tr2->lp - tp2)
        return 1;
    for (; tp1 < tr1->lp; tp1++, tp2++)
    {
        if (tp1->type != tp2->type
            || (tp1->wslen == 0) != (tp2->wslen == 0)
            || tp1->len != tp2->len
            || strncmp((char *) tp1->t, (char *) tp2->t, tp1->len) != 0)
            return 1;
    }
    return 0;
}

/*
 * replace ntok tokens starting at dtr->tp with the contents of str.
 * tp ends up pointing just beyond the replacement.
 * Canonical whitespace is assured on each side.
 */
void
    insertrow(Tokenrow * dtr, int ntok, Tokenrow * str)
{
    int nrtok = rowlen(str);

    dtr->tp += ntok;
    adjustrow(dtr, nrtok - ntok);
    dtr->tp -= ntok;
    movetokenrow(dtr, str);
    dtr->tp += nrtok;
}

/*
 * make sure there is WS before trp->tp, if tokens might merge in the output
 */
void
    makespace(Tokenrow * trp, Token * ntp)
{
    uchar *tt;
    Token *tp = trp->tp;

    if (tp >= trp->lp)
        return;

    if (ntp->wslen)
    {
        tt = newstring(tp->t, tp->len, ntp->wslen);
        strncpy((char *)tt, (char *)ntp->t - ntp->wslen, ntp->wslen);
        tp->t = tt + ntp->wslen;
        tp->wslen = ntp->wslen;
        tp->flag |= XPWS;
    }
}

/*
 * Copy an entire tokenrow into another, at tp.
 * It is assumed that there is enough space.
 *  Not strictly conforming.
 */
void
    movetokenrow(Tokenrow * dtr, Tokenrow * str)
{
    int nby;

    /* nby = sizeof(Token) * (str->lp - str->bp); */
    nby = (char *) str->lp - (char *) str->bp;
    memmove(dtr->tp, str->bp, nby);
}

/*
 * Move the tokens in a row, starting at tr->tp, rightward by nt tokens;
 * nt may be negative (left move).
 * The row may need to be grown.
 * Non-strictly conforming because of the (char *), but easily fixed
 */
void
    adjustrow(Tokenrow * trp, int nt)
{
    int nby, size;

    if (nt == 0)
        return;
    size = (trp->lp - trp->bp) + nt;
    while (size > trp->max)
        growtokenrow(trp);
    /* nby = sizeof(Token) * (trp->lp - trp->tp); */
    nby = (char *) trp->lp - (char *) trp->tp;
    if (nby)
        memmove(trp->tp + nt, trp->tp, nby);
    trp->lp += nt;
}

/*
 * Copy a row of tokens into the destination holder, allocating
 * the space for the contents.  Return the destination.
 */
Tokenrow *
    copytokenrow(Tokenrow * dtr, Tokenrow * str)
{
    int len = rowlen(str);

    maketokenrow(len, dtr);
    movetokenrow(dtr, str);
    dtr->lp += len;
    return dtr;
}

/*
 * Produce a copy of a row of tokens.  Start at trp->tp.
 * The value strings are copied as well.  The first token
 * has WS available.
 */
Tokenrow *
    normtokenrow(Tokenrow * trp)
{
    Token *tp;
    Tokenrow *ntrp = new(Tokenrow);
    int len;

    len = trp->lp - trp->tp;
    if (len <= 0)
        len = 1;
    maketokenrow(len, ntrp);
    for (tp = trp->tp; tp < trp->lp; tp++)
    {
        *ntrp->lp = *tp;
        if (tp->len)
        {
            ntrp->lp->t = newstring(tp->t, tp->len, 1);
            *ntrp->lp->t++ = ' ';
            if (tp->wslen)
                ntrp->lp->wslen = 1;
        }
        ntrp->lp++;
    }
    if (ntrp->lp > ntrp->bp)
        ntrp->bp->wslen = 0;
    return ntrp;
}

/*
 * Debugging
 */
void
    peektokens(Tokenrow * trp, char *str)
{
    Token *tp;

    tp = trp->tp;
    flushout();
    if (str)
        fprintf(stderr, "%s ", str);
    if (tp < trp->bp || tp > trp->lp)
        fprintf(stderr, "(tp offset %ld) ", (long int) (tp - trp->bp));
=====================================================================
Found a 327 line (1829 tokens) duplication in the following files: 
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svppspgraphics.cxx
Starting at line 851 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/pspgraphics.cxx

            pOutDev->ImplAddDevFontSubstitute( it->first, it->second, FONT_SUBSTITUTE_ALWAYS );
    }
}

void PspGraphics::GetFontMetric( ImplFontMetricData *pMetric )
{
    const psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
    psp::PrintFontInfo aInfo;

    if (rMgr.getFontInfo (m_pPrinterGfx->GetFontID(), aInfo))
    {
        ImplDevFontAttributes aDFA = Info2DevFontAttributes( aInfo );
        static_cast<ImplFontAttributes&>(*pMetric) = aDFA;
        pMetric->mbDevice       = aDFA.mbDevice;
        pMetric->mbScalableFont = true;

        pMetric->mnOrientation 	= m_pPrinterGfx->GetFontAngle();
        pMetric->mnSlant		= 0;

        sal_Int32 nTextHeight	= m_pPrinterGfx->GetFontHeight();
        sal_Int32 nTextWidth	= m_pPrinterGfx->GetFontWidth();
        if( ! nTextWidth )
            nTextWidth = nTextHeight;

        pMetric->mnWidth		= nTextWidth;
        pMetric->mnAscent		= ( aInfo.m_nAscend * nTextHeight + 500 ) / 1000;
        pMetric->mnDescent		= ( aInfo.m_nDescend * nTextHeight + 500 ) / 1000;
        pMetric->mnIntLeading	= ( aInfo.m_nLeading * nTextHeight + 500 ) / 1000;
        pMetric->mnExtLeading	= 0;
    }
}

ULONG PspGraphics::GetKernPairs( ULONG nPairs, ImplKernPairData *pKernPairs )
{
    const ::std::list< ::psp::KernPair >& rPairs( m_pPrinterGfx->getKernPairs() );
    ULONG nHavePairs = rPairs.size();
    if( pKernPairs && nPairs )
    {
        ::std::list< ::psp::KernPair >::const_iterator it;
        unsigned int i;
        int nTextScale = m_pPrinterGfx->GetFontWidth();
        if( ! nTextScale )
            nTextScale = m_pPrinterGfx->GetFontHeight();
        for( i = 0, it = rPairs.begin(); i < nPairs && i < nHavePairs; i++, ++it )
        {
            pKernPairs[i].mnChar1	= it->first;
            pKernPairs[i].mnChar2	= it->second;
            pKernPairs[i].mnKern	= it->kern_x * nTextScale / 1000;
        }

    }
    return nHavePairs;
}

BOOL PspGraphics::GetGlyphBoundRect( long nGlyphIndex, Rectangle& rRect )
{
    int nLevel = nGlyphIndex >> GF_FONTSHIFT;
    if( nLevel >= MAX_FALLBACK )
        return FALSE;

    ServerFont* pSF = m_pServerFont[ nLevel ];
    if( !pSF )
        return FALSE;

    nGlyphIndex &= ~GF_FONTMASK;
    const GlyphMetric& rGM = pSF->GetGlyphMetric( nGlyphIndex );
    rRect = Rectangle( rGM.GetOffset(), rGM.GetSize() );
    return TRUE;
}

BOOL PspGraphics::GetGlyphOutline( long nGlyphIndex,
    ::basegfx::B2DPolyPolygon& rB2DPolyPoly )
{
    int nLevel = nGlyphIndex >> GF_FONTSHIFT;
    if( nLevel >= MAX_FALLBACK )
        return FALSE;

    ServerFont* pSF = m_pServerFont[ nLevel ];
    if( !pSF )
        return FALSE;

    nGlyphIndex &= ~GF_FONTMASK;
    if( pSF->GetGlyphOutline( nGlyphIndex, rB2DPolyPoly ) )
        return TRUE;

    return FALSE;
}

SalLayout* PspGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLevel )
{
    // workaround for printers not handling glyph indexing for non-TT fonts
    int nFontId = m_pPrinterGfx->GetFontID();
    if( psp::fonttype::TrueType != psp::PrintFontManager::get().getFontType( nFontId ) )
        rArgs.mnFlags |= SAL_LAYOUT_DISABLE_GLYPH_PROCESSING;
    else if( nFallbackLevel > 0 )
        rArgs.mnFlags &= ~SAL_LAYOUT_DISABLE_GLYPH_PROCESSING;

    GenericSalLayout* pLayout = NULL;

    if( m_pServerFont[ nFallbackLevel ]
        && !(rArgs.mnFlags & SAL_LAYOUT_DISABLE_GLYPH_PROCESSING) )
        pLayout = new PspServerFontLayout( *m_pPrinterGfx, *m_pServerFont[nFallbackLevel], rArgs );
    else
        pLayout = new PspFontLayout( *m_pPrinterGfx );

    return pLayout;
}

//--------------------------------------------------------------------------

BOOL PspGraphics::CreateFontSubset(
                                   const rtl::OUString& rToFile,
                                   ImplFontData* pFont,
                                   sal_Int32* pGlyphIDs,
                                   sal_uInt8* pEncoding,
                                   sal_Int32* pWidths,
                                   int nGlyphs,
                                   FontSubsetInfo& rInfo
                                   )
{
    // in this context the pFont->GetFontId() is a valid PSP
    // font since they are the only ones left after the PDF
    // export has filtered its list of subsettable fonts (for
    // which this method was created). The correct way would
    // be to have the GlyphCache search for the ImplFontData pFont
    psp::fontID aFont = pFont->GetFontId();
    return PspGraphics::DoCreateFontSubset( rToFile, aFont, pGlyphIDs, pEncoding, pWidths, nGlyphs, rInfo );
}

//--------------------------------------------------------------------------

const void* PspGraphics::GetEmbedFontData( ImplFontData* pFont, const sal_Unicode* pUnicodes, sal_Int32* pWidths, FontSubsetInfo& rInfo, long* pDataLen )
{
    // in this context the pFont->GetFontId() is a valid PSP
    // font since they are the only ones left after the PDF
    // export has filtered its list of subsettable fonts (for
    // which this method was created). The correct way would
    // be to have the GlyphCache search for the ImplFontData pFont
    psp::fontID aFont = pFont->GetFontId();
    return PspGraphics::DoGetEmbedFontData( aFont, pUnicodes, pWidths, rInfo, pDataLen );
}

//--------------------------------------------------------------------------

void PspGraphics::FreeEmbedFontData( const void* pData, long nLen )
{
    PspGraphics::DoFreeEmbedFontData( pData, nLen );
}

//--------------------------------------------------------------------------

const std::map< sal_Unicode, sal_Int32 >* PspGraphics::GetFontEncodingVector( ImplFontData* pFont, const std::map< sal_Unicode, rtl::OString >** pNonEncoded )
{
    // in this context the pFont->GetFontId() is a valid PSP
    // font since they are the only ones left after the PDF
    // export has filtered its list of subsettable fonts (for
    // which this method was created). The correct way would
    // be to have the GlyphCache search for the ImplFontData pFont
    psp::fontID aFont = pFont->GetFontId();
    return PspGraphics::DoGetFontEncodingVector( aFont, pNonEncoded );
}

//--------------------------------------------------------------------------

void PspGraphics::GetGlyphWidths( ImplFontData* pFont,
                                  bool bVertical,
                                  std::vector< sal_Int32 >& rWidths,
                                  std::map< sal_Unicode, sal_uInt32 >& rUnicodeEnc )
{
    // in this context the pFont->GetFontId() is a valid PSP
    // font since they are the only ones left after the PDF
    // export has filtered its list of subsettable fonts (for
    // which this method was created). The correct way would
    // be to have the GlyphCache search for the ImplFontData pFont
    psp::fontID aFont = pFont->GetFontId();
    PspGraphics::DoGetGlyphWidths( aFont, bVertical, rWidths, rUnicodeEnc );
}


// static helpers of PspGraphics

bool PspGraphics::DoCreateFontSubset( const rtl::OUString& rToFile,
                                      psp::fontID aFont,
                                      sal_Int32* pGlyphIDs,
                                      sal_uInt8* pEncoding,
                                      sal_Int32* pWidths,
                                      int nGlyphs,
                                      FontSubsetInfo& rInfo )
{
    psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
    psp::PrintFontInfo aFontInfo;

    if( ! rMgr.getFontInfo( aFont, aFontInfo ) )
        return false;

    // fill in font info
    switch( aFontInfo.m_eType )
    {
        case psp::fonttype::TrueType: rInfo.m_nFontType = SAL_FONTSUBSETINFO_TYPE_TRUETYPE;break;
        case psp::fonttype::Type1: rInfo.m_nFontType = SAL_FONTSUBSETINFO_TYPE_TYPE1;break;
        default:
            return false;
    }
    rInfo.m_nAscent     = aFontInfo.m_nAscend;
    rInfo.m_nDescent    = aFontInfo.m_nDescend;
    rInfo.m_aPSName     = rMgr.getPSName( aFont );

    int xMin, yMin, xMax, yMax;
    rMgr.getFontBoundingBox( aFont, xMin, yMin, xMax, yMax );

    if( ! rMgr.createFontSubset( aFont,
                                 rToFile,
                                 pGlyphIDs,
                                 pEncoding,
                                 pWidths,
                                 nGlyphs
                                 ) )
        return false;

    rInfo.m_aFontBBox	= Rectangle( Point( xMin, yMin ), Size( xMax-xMin, yMax-yMin ) );
    rInfo.m_nCapHeight	= yMax; // Well ...

    return true;
}

const void* PspGraphics::DoGetEmbedFontData( fontID aFont, const sal_Unicode* pUnicodes, sal_Int32* pWidths, FontSubsetInfo& rInfo, long* pDataLen )
{
    psp::PrintFontManager& rMgr = psp::PrintFontManager::get();

    psp::PrintFontInfo aFontInfo;
    if( ! rMgr.getFontInfo( aFont, aFontInfo ) )
        return NULL;

    // fill in font info
    switch( aFontInfo.m_eType )
    {
        case psp::fonttype::TrueType: rInfo.m_nFontType = SAL_FONTSUBSETINFO_TYPE_TRUETYPE;break;
        case psp::fonttype::Type1: rInfo.m_nFontType = SAL_FONTSUBSETINFO_TYPE_TYPE1;break;
        default:
            return NULL;
    }
    rInfo.m_nAscent		= aFontInfo.m_nAscend;
    rInfo.m_nDescent	= aFontInfo.m_nDescend;
    rInfo.m_aPSName		= rMgr.getPSName( aFont );

    int xMin, yMin, xMax, yMax;
    rMgr.getFontBoundingBox( aFont, xMin, yMin, xMax, yMax );

    psp::CharacterMetric aMetrics[256];
    sal_Unicode aUnicodes[256];
    if( aFontInfo.m_aEncoding == RTL_TEXTENCODING_SYMBOL && aFontInfo.m_eType == psp::fonttype::Type1 )
    {
        for( int i = 0; i < 256; i++ )
            aUnicodes[i] = pUnicodes[i] < 0x0100 ? pUnicodes[i] + 0xf000 : pUnicodes[i];
        pUnicodes = aUnicodes;
    }
    if( ! rMgr.getMetrics( aFont, pUnicodes, 256, aMetrics ) )
        return NULL;

    OString aSysPath = rMgr.getFontFileSysPath( aFont );
    struct stat aStat;
    if( stat( aSysPath.getStr(), &aStat ) )
        return NULL;
    int fd = open( aSysPath.getStr(), O_RDONLY );
    if( fd < 0 )
        return NULL;
    void* pFile = mmap( NULL, aStat.st_size, PROT_READ, MAP_SHARED, fd, 0 );
    close( fd );
    if( pFile == MAP_FAILED )
        return NULL;

    *pDataLen = aStat.st_size;

    rInfo.m_aFontBBox	= Rectangle( Point( xMin, yMin ), Size( xMax-xMin, yMax-yMin ) );
    rInfo.m_nCapHeight	= yMax; // Well ...

    for( int i = 0; i < 256; i++ )

        pWidths[i] = (aMetrics[i].width > 0 ? aMetrics[i].width : 0);

    return pFile;
}

void PspGraphics::DoFreeEmbedFontData( const void* pData, long nLen )
{
    if( pData )
        munmap( (char*)pData, nLen );
}

const std::map< sal_Unicode, sal_Int32 >* PspGraphics::DoGetFontEncodingVector( fontID aFont, const std::map< sal_Unicode, rtl::OString >** pNonEncoded )
{
    psp::PrintFontManager& rMgr = psp::PrintFontManager::get();

    psp::PrintFontInfo aFontInfo;
    if( ! rMgr.getFontInfo( aFont, aFontInfo ) )
    {
        if( pNonEncoded )
            *pNonEncoded = NULL;
        return NULL;
    }

    return rMgr.getEncodingMap( aFont, pNonEncoded );
}

void PspGraphics::DoGetGlyphWidths( psp::fontID aFont,
                                    bool bVertical,
                                    std::vector< sal_Int32 >& rWidths,
                                    std::map< sal_Unicode, sal_uInt32 >& rUnicodeEnc )
{
    psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
    rMgr.getGlyphWidths( aFont, bVertical, rWidths, rUnicodeEnc );
}
// ----------------------------------------------------------------------------

FontWidth PspGraphics::ToFontWidth (psp::width::type eWidth)
{
	switch (eWidth)
	{
		case psp::width::UltraCondensed: return WIDTH_ULTRA_CONDENSED;
		case psp::width::ExtraCondensed: return WIDTH_EXTRA_CONDENSED;
		case psp::width::Condensed:		 return WIDTH_CONDENSED;
		case psp::width::SemiCondensed:	 return WIDTH_SEMI_CONDENSED;
		case psp::width::Normal:		 return WIDTH_NORMAL;
		case psp::width::SemiExpanded:	 return WIDTH_SEMI_EXPANDED;
		case psp::width::Expanded:		 return WIDTH_EXPANDED;
		case psp::width::ExtraExpanded:	 return WIDTH_EXTRA_EXPANDED;
		case psp::width::UltraExpanded:	 return WIDTH_ULTRA_EXPANDED;
=====================================================================
Found a 401 line (1784 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx

using namespace ::rtl;
using namespace ::com::sun::star::uno;

namespace
{

//==================================================================================================
// The call instruction within the asm section of callVirtualMethod may throw
// exceptions.  So that the compiler handles this correctly, it is important
// that (a) callVirtualMethod might call dummy_can_throw_anything (although this
// never happens at runtime), which in turn can throw exceptions, and (b)
// callVirtualMethod is not inlined at its call site (so that any exceptions are
// caught which are thrown from the instruction calling callVirtualMethod):
void callVirtualMethod(
    void * pAdjustedThisPtr,
    sal_Int32 nVtableIndex,
    void * pRegisterReturn,
    typelib_TypeClass eReturnType,
    sal_Int32 * pStackLongs,
    sal_Int32 nStackLongs ) __attribute__((noinline));

void callVirtualMethod(
    void * pAdjustedThisPtr,
    sal_Int32 nVtableIndex,
    void * pRegisterReturn,
    typelib_TypeClass eReturnType,
    sal_Int32 * pStackLongs,
    sal_Int32 nStackLongs )
{
	// parameter list is mixed list of * and values
	// reference parameters are pointers
    
	OSL_ENSURE( pStackLongs && pAdjustedThisPtr, "### null ptr!" );
	OSL_ENSURE( (sizeof(void *) == 4) && (sizeof(sal_Int32) == 4), "### unexpected size of int!" );
	OSL_ENSURE( nStackLongs && pStackLongs, "### no stack in callVirtualMethod !" );
    
    // never called
    if (! pAdjustedThisPtr) CPPU_CURRENT_NAMESPACE::dummy_can_throw_anything("xxx"); // address something

	volatile long edx = 0, eax = 0; // for register returns
    void * stackptr;
	asm volatile (
        "mov   %%esp, %6\n\t"
		// copy values
		"mov   %0, %%eax\n\t"
		"mov   %%eax, %%edx\n\t"
		"dec   %%edx\n\t"
		"shl   $2, %%edx\n\t"
		"add   %1, %%edx\n"
		"Lcopy:\n\t"
		"pushl 0(%%edx)\n\t"
		"sub   $4, %%edx\n\t"
		"dec   %%eax\n\t"
		"jne   Lcopy\n\t"
		// do the actual call
		"mov   %2, %%edx\n\t"
		"mov   0(%%edx), %%edx\n\t"
		"mov   %3, %%eax\n\t"
		"shl   $2, %%eax\n\t"
		"add   %%eax, %%edx\n\t"
		"mov   0(%%edx), %%edx\n\t"
		"call  *%%edx\n\t"
		// save return registers
 		"mov   %%eax, %4\n\t"
 		"mov   %%edx, %5\n\t"
		// cleanup stack
        "mov   %6, %%esp\n\t"
		:
        : "m"(nStackLongs), "m"(pStackLongs), "m"(pAdjustedThisPtr),
          "m"(nVtableIndex), "m"(eax), "m"(edx), "m"(stackptr)
        : "eax", "edx" );
	switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
        default:
            break;
	}
}

//================================================================================================== 
static void cpp_call(
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis,
    bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
  	// max space for: [complex ret ptr], values|ptr ...
  	char * pCppStack		=
  		(char *)alloca( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
  	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
                   ? alloca( pReturnTypeDescr->nSize )
                   : pUnoReturn); // direct way
			pCppStack += sizeof(void *);
		}
	}
	// push this
    void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
        + aVtableSlot.offset;
	*(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
                break;
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic)" );
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
    void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
        = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
            aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 264 line (1745 tokens) duplication in the following files: 
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    static const SprmInfo aSprms[] =
    {
        {     0, 0, L_FIX}, // "Default-sprm"/ wird uebersprungen
        {0x4600, 2, L_FIX}, // "sprmPIstd" pap.istd;istd (style code);short;
        {0xC601, 0, L_VAR}, // "sprmPIstdPermute" pap.istd;permutation vector
        {0x2602, 1, L_FIX}, // "sprmPIncLvl" pap.istd, pap.lvl;difference
                            // between istd of base PAP and istd of PAP to be
                            // produced
        {0x2403, 1, L_FIX}, // "sprmPJc" pap.jc;jc (justification);byte;
        {0x2404, 1, L_FIX}, // "sprmPFSideBySide" pap.fSideBySide;0 or 1;byte;
        {0x2405, 1, L_FIX}, // "sprmPFKeep" pap.fKeep;0 or 1;byte;
        {0x2406, 1, L_FIX}, // "sprmPFKeepFollow" pap.fKeepFollow;0 or 1;byte;
        {0x2407, 1, L_FIX}, // "sprmPFPageBreakBefore" pap.fPageBreakBefore;
                            // 0 or 1
        {0x2408, 1, L_FIX}, // "sprmPBrcl" pap.brcl;brcl;byte;
        {0x2409, 1, L_FIX}, // "sprmPBrcp" pap.brcp;brcp;byte;
        {0x260A, 1, L_FIX}, // "sprmPIlvl" pap.ilvl;ilvl;byte;
        {0x460B, 2, L_FIX}, // "sprmPIlfo" pap.ilfo;ilfo (list index) ;short;
        {0x240C, 1, L_FIX}, // "sprmPFNoLineNumb" pap.fNoLnn;0 or 1;byte;
        {0xC60D, 0, L_VAR}, // "sprmPChgTabsPapx" pap.itbdMac, pap.rgdxaTab,
                            // pap.rgtbd;complex
        {0x840E, 2, L_FIX}, // "sprmPDxaRight" pap.dxaRight;dxa;word;
        {0x840F, 2, L_FIX}, // "sprmPDxaLeft" pap.dxaLeft;dxa;word;
        {0x4610, 2, L_FIX}, // "sprmPNest" pap.dxaLeft;dxa
        {0x8411, 2, L_FIX}, // "sprmPDxaLeft1" pap.dxaLeft1;dxa;word;
        {0x6412, 4, L_FIX}, // "sprmPDyaLine" pap.lspd;an LSPD, a long word
                            // structure consisting of a short of dyaLine
                            // followed by a short of fMultLinespace
        {0xA413, 2, L_FIX}, // "sprmPDyaBefore" pap.dyaBefore;dya;word;
        {0xA414, 2, L_FIX}, // "sprmPDyaAfter" pap.dyaAfter;dya;word;
        {0xC615, 0, L_VAR}, // "sprmPChgTabs" pap.itbdMac, pap.rgdxaTab,
                            // pap.rgtbd;complex
        {0x2416, 1, L_FIX}, // "sprmPFInTable" pap.fInTable;0 or 1;byte;
        {0x2417, 1, L_FIX}, // "sprmPFTtp" pap.fTtp;0 or 1;byte;
        {0x8418, 2, L_FIX}, // "sprmPDxaAbs" pap.dxaAbs;dxa;word;
        {0x8419, 2, L_FIX}, // "sprmPDyaAbs" pap.dyaAbs;dya;word;
        {0x841A, 2, L_FIX}, // "sprmPDxaWidth" pap.dxaWidth;dxa;word;
        {0x261B, 1, L_FIX}, // "sprmPPc" pap.pcHorz, pap.pcVert;complex
        {0x461C, 2, L_FIX}, // "sprmPBrcTop10" pap.brcTop;BRC10;word;
        {0x461D, 2, L_FIX}, // "sprmPBrcLeft10" pap.brcLeft;BRC10;word;
        {0x461E, 2, L_FIX}, // "sprmPBrcBottom10" pap.brcBottom;BRC10;word;
        {0x461F, 2, L_FIX}, // "sprmPBrcRight10" pap.brcRight;BRC10;word;
        {0x4620, 2, L_FIX}, // "sprmPBrcBetween10" pap.brcBetween;BRC10;word;
        {0x4621, 2, L_FIX}, // "sprmPBrcBar10" pap.brcBar;BRC10;word;
        {0x4622, 2, L_FIX}, // "sprmPDxaFromText10" pap.dxaFromText;dxa;word;
        {0x2423, 1, L_FIX}, // "sprmPWr" pap.wr;wr
        {0x6424, 4, L_FIX}, // "sprmPBrcTop" pap.brcTop;BRC;long;
        {0x6425, 4, L_FIX}, // "sprmPBrcLeft" pap.brcLeft;BRC;long;
        {0x6426, 4, L_FIX}, // "sprmPBrcBottom" pap.brcBottom;BRC;long;
        {0x6427, 4, L_FIX}, // "sprmPBrcRight" pap.brcRight;BRC;long;
        {0x6428, 4, L_FIX}, // "sprmPBrcBetween" pap.brcBetween;BRC;long;
        {0x6629, 4, L_FIX}, // "sprmPBrcBar" pap.brcBar;BRC;long;
        {0x242A, 1, L_FIX}, // "sprmPFNoAutoHyph" pap.fNoAutoHyph;0 or 1;byte;
        {0x442B, 2, L_FIX}, // "sprmPWHeightAbs" pap.wHeightAbs;w;word;
        {0x442C, 2, L_FIX}, // "sprmPDcs" pap.dcs;DCS;short;
        {0x442D, 2, L_FIX}, // "sprmPShd" pap.shd;SHD;word;
        {0x842E, 2, L_FIX}, // "sprmPDyaFromText" pap.dyaFromText;dya;word;
        {0x842F, 2, L_FIX}, // "sprmPDxaFromText" pap.dxaFromText;dxa;word;
        {0x2430, 1, L_FIX}, // "sprmPFLocked" pap.fLocked;0 or 1;byte;
        {0x2431, 1, L_FIX}, // "sprmPFWidowControl" pap.fWidowControl;0 or 1
        {0xC632, 0, L_VAR}, // "sprmPRuler" ;;variable length;
        {0x2433, 1, L_FIX}, // "sprmPFKinsoku" pap.fKinsoku;0 or 1;byte;
        {0x2434, 1, L_FIX}, // "sprmPFWordWrap" pap.fWordWrap;0 or 1;byte;
        {0x2435, 1, L_FIX}, // "sprmPFOverflowPunct" pap.fOverflowPunct;0 or 1
        {0x2436, 1, L_FIX}, // "sprmPFTopLinePunct" pap.fTopLinePunct;0 or 1
        {0x2437, 1, L_FIX}, // "sprmPFAutoSpaceDE" pap.fAutoSpaceDE;0 or 1
        {0x2438, 1, L_FIX}, // "sprmPFAutoSpaceDN" pap.fAutoSpaceDN;0 or 1
        {0x4439, 2, L_FIX}, // "sprmPWAlignFont" pap.wAlignFont;iFa
        {0x443A, 2, L_FIX}, // "sprmPFrameTextFlow" pap.fVertical pap.fBackward
                            // pap.fRotateFont;complex
        {0x243B, 1, L_FIX}, // "sprmPISnapBaseLine" obsolete: not applicable in
                            // Word97 and later versions;
        {0xC63E, 0, L_VAR}, // "sprmPAnld" pap.anld;;variable length;
        {0xC63F, 0, L_VAR}, // "sprmPPropRMark" pap.fPropRMark;complex
        {0x2640, 1, L_FIX}, // "sprmPOutLvl" pap.lvl;has no effect if pap.istd
                            // is < 1 or is > 9
        {0x2441, 1, L_FIX}, // "sprmPFBiDi" ;;byte;
        {0x2443, 1, L_FIX}, // "sprmPFNumRMIns" pap.fNumRMIns;1 or 0;bit;
        {0x2444, 1, L_FIX}, // "sprmPCrLf" ;;byte;
        {0xC645, 0, L_VAR}, // "sprmPNumRM" pap.numrm;;variable length;
        {0x6645, 4, L_FIX}, // "sprmPHugePapx" fc in the data stream to locate
                            // the huge grpprl
        {0x6646, 4, L_FIX}, // "sprmPHugePapx" fc in the data stream to locate
                            // the huge grpprl
        {0x2447, 1, L_FIX}, // "sprmPFUsePgsuSettings" pap.fUsePgsuSettings;
                            // 1 or 0
        {0x2448, 1, L_FIX}, // "sprmPFAdjustRight" pap.fAdjustRight;1 or 0;byte;
        {0x0800, 1, L_FIX}, // "sprmCFRMarkDel" chp.fRMarkDel;1 or 0;bit;
        {0x0801, 1, L_FIX}, // "sprmCFRMark" chp.fRMark;1 or 0;bit;
        {0x0802, 1, L_FIX}, // "sprmCFFldVanish" chp.fFldVanish;1 or 0;bit;
        {0x6A03, 4, L_FIX}, // "sprmCPicLocation" chp.fcPic and chp.fSpec;
        {0x4804, 2, L_FIX}, // "sprmCIbstRMark" chp.ibstRMark;index into
                            // sttbRMark
        {0x6805, 4, L_FIX}, // "sprmCDttmRMark" chp.dttmRMark;DTTM;long;
        {0x0806, 1, L_FIX}, // "sprmCFData" chp.fData;1 or 0;bit;
        {0x4807, 2, L_FIX}, // "sprmCIdslRMark" chp.idslRMReason;an index to a
                            // table of strings defined in Word 6.0
                            // executables;short;
        {0xEA08, 1, L_FIX}, // "sprmCChs" chp.fChsDiff and chp.chse;
        {0x6A09, 4, L_FIX}, // "sprmCSymbol" chp.fSpec, chp.xchSym and
                            // chp.ftcSym
        {0x080A, 1, L_FIX}, // "sprmCFOle2" chp.fOle2;1 or 0;bit;
        {0x480B, 0, L_FIX}, // "sprmCIdCharType" obsolete: not applicable in
                            // Word97 and later versions;;;
        {0x2A0C, 1, L_FIX}, // "sprmCHighlight" chp.fHighlight,
                            // chp.icoHighlight;ico (fHighlight is set to 1 iff
                            // ico is not 0)
        {0x680E, 4, L_FIX}, // "sprmCObjLocation" chp.fcObj;FC;long;
        {0x2A10, 0, L_FIX}, // "sprmCFFtcAsciSymb" ;;;
        {0x4A30, 2, L_FIX}, // "sprmCIstd" chp.istd;istd, see stylesheet def
        {0xCA31, 0, L_VAR}, // "sprmCIstdPermute" chp.istd;permutation vector
        {0x2A32, 0, L_VAR}, // "sprmCDefault" whole CHP;none;variable length;
        {0x2A33, 0, L_FIX}, // "sprmCPlain" whole CHP;none;0;
        {0x2A34, 1, L_FIX}, // "sprmCKcd" ;;;
        {0x0835, 1, L_FIX}, // "sprmCFBold" chp.fBold;0,1, 128, or 129
        {0x0836, 1, L_FIX}, // "sprmCFItalic" chp.fItalic;0,1, 128, or 129
        {0x0837, 1, L_FIX}, // "sprmCFStrike" chp.fStrike;0,1, 128, or 129
        {0x0838, 1, L_FIX}, // "sprmCFOutline" chp.fOutline;0,1, 128, or 129
        {0x0839, 1, L_FIX}, // "sprmCFShadow" chp.fShadow;0,1, 128, or 129
        {0x083A, 1, L_FIX}, // "sprmCFSmallCaps" chp.fSmallCaps;0,1, 128, or 129
        {0x083B, 1, L_FIX}, // "sprmCFCaps" chp.fCaps;0,1, 128, or 129
        {0x083C, 1, L_FIX}, // "sprmCFVanish" chp.fVanish;0,1, 128, or 129
        {0x4A3D, 2, L_FIX}, // "sprmCFtcDefault" ;ftc, only used internally
        {0x2A3E, 1, L_FIX}, // "sprmCKul" chp.kul;kul;byte;
        {0xEA3F, 3, L_FIX}, // "sprmCSizePos" chp.hps, chp.hpsPos;3 bytes;
        {0x8840, 2, L_FIX}, // "sprmCDxaSpace" chp.dxaSpace;dxa;word;
        {0x4A41, 2, L_FIX}, // "sprmCLid" ;only used internally never stored
        {0x2A42, 1, L_FIX}, // "sprmCIco" chp.ico;ico;byte;
        {0x4A43, 2, L_FIX}, // "sprmCHps" chp.hps;hps
        {0x2A44, 1, L_FIX}, // "sprmCHpsInc" chp.hps;
        {0x4845, 2, L_FIX}, // "sprmCHpsPos" chp.hpsPos;hps;short; (doc wrong)
        {0x2A46, 1, L_FIX}, // "sprmCHpsPosAdj" chp.hpsPos;hps
        {0xCA47, 0, L_VAR}, // "sprmCMajority" chp.fBold, chp.fItalic,
                            // chp.fSmallCaps, chp.fVanish, chp.fStrike,
                            // chp.fCaps, chp.rgftc, chp.hps, chp.hpsPos,
                            // chp.kul, chp.dxaSpace, chp.ico,
                            // chp.rglid;complex;variable length, length byte
                            // plus size of following grpprl;
        {0x2A48, 1, L_FIX}, // "sprmCIss" chp.iss;iss;byte;
        {0xCA49, 0, L_VAR}, // "sprmCHpsNew50" chp.hps;hps;variable width
        {0xCA4A, 0, L_VAR}, // "sprmCHpsInc1" chp.hps;complex
        {0x484B, 2, L_FIX}, // "sprmCHpsKern" chp.hpsKern;hps;short;
        {0xCA4C, 2, L_FIX}, // "sprmCMajority50" chp.fBold, chp.fItalic,
                            // chp.fSmallCaps, chp.fVanish, chp.fStrike,
                            // chp.fCaps, chp.ftc, chp.hps, chp.hpsPos, chp.kul,
                            // chp.dxaSpace, chp.ico,;complex
        {0x4A4D, 2, L_FIX}, // "sprmCHpsMul" chp.hps;percentage to grow hps
        {0x484E, 2, L_FIX}, // "sprmCYsri" chp.ysri;ysri;short;
        {0x4A4F, 2, L_FIX}, // "sprmCRgFtc0" chp.rgftc[0];ftc for ASCII text
        {0x4A50, 2, L_FIX}, // "sprmCRgFtc1" chp.rgftc[1];ftc for Far East text
        {0x4A51, 2, L_FIX}, // "sprmCRgFtc2" chp.rgftc[2];ftc for non-FE text
        {0x4852, 2, L_FIX}, // "sprmCCharScale"
        {0x2A53, 1, L_FIX}, // "sprmCFDStrike" chp.fDStrike;;byte;
        {0x0854, 1, L_FIX}, // "sprmCFImprint" chp.fImprint;1 or 0;bit;
        {0x0855, 1, L_FIX}, // "sprmCFSpec" chp.fSpec ;1 or 0;bit;
        {0x0856, 1, L_FIX}, // "sprmCFObj" chp.fObj;1 or 0;bit;
        {0xCA57, 0, L_VAR}, // "sprmCPropRMark" chp.fPropRMark,
                            // chp.ibstPropRMark, chp.dttmPropRMark;Complex
        {0x0858, 1, L_FIX}, // "sprmCFEmboss" chp.fEmboss;1 or 0;bit;
        {0x2859, 1, L_FIX}, // "sprmCSfxText" chp.sfxtText;text animation;byte;
        {0x085A, 1, L_FIX}, // "sprmCFBiDi" ;;;
        {0x085B, 1, L_FIX}, // "sprmCFDiacColor" ;;;
        {0x085C, 1, L_FIX}, // "sprmCFBoldBi" ;;;
        {0x085D, 1, L_FIX}, // "sprmCFItalicBi" ;;;
        {0x4A5E, 2, L_FIX},
        {0x485F, 2, L_FIX}, // "sprmCLidBi" ;;;
        {0x4A60, 1, L_FIX}, // "sprmCIcoBi" ;;;
        {0x4A61, 2, L_FIX}, // "sprmCHpsBi" ;;;
        {0xCA62, 0, L_VAR}, // "sprmCDispFldRMark" chp.fDispFldRMark,
                            // chp.ibstDispFldRMark, chp.dttmDispFldRMark ;
        {0x4863, 2, L_FIX}, // "sprmCIbstRMarkDel" chp.ibstRMarkDel;index into
                            // sttbRMark;short;
        {0x6864, 4, L_FIX}, // "sprmCDttmRMarkDel" chp.dttmRMarkDel;DTTM;long;
        {0x6865, 4, L_FIX}, // "sprmCBrc" chp.brc;BRC;long;
        {0x4866, 2, L_FIX}, // "sprmCShd" chp.shd;SHD;short;
        {0x4867, 2, L_FIX}, // "sprmCIdslRMarkDel" chp.idslRMReasonDel;an index
                            // to a table of strings defined in Word 6.0
                            // executables;short;
        {0x0868, 1, L_FIX}, // "sprmCFUsePgsuSettings"
                            // chp.fUsePgsuSettings;1 or 0
        {0x486B, 2, L_FIX}, // "sprmCCpg" ;;word;
        {0x486D, 2, L_FIX}, // "sprmCRgLid0" chp.rglid[0];LID: for non-FE text
        {0x486E, 2, L_FIX}, // "sprmCRgLid1" chp.rglid[1];LID: for Far East text
        {0x286F, 1, L_FIX}, // "sprmCIdctHint" chp.idctHint;IDCT:
        {0x2E00, 1, L_FIX}, // "sprmPicBrcl" pic.brcl;brcl (see PIC definition)
        {0xCE01, 0, L_VAR}, // "sprmPicScale" pic.mx, pic.my, pic.dxaCropleft,
                            // pic.dyaCropTop pic.dxaCropRight,
                            // pic.dyaCropBottom;Complex
        {0x6C02, 4, L_FIX}, // "sprmPicBrcTop" pic.brcTop;BRC;long;
        {0x6C03, 4, L_FIX}, // "sprmPicBrcLeft" pic.brcLeft;BRC;long;
        {0x6C04, 4, L_FIX}, // "sprmPicBrcBottom" pic.brcBottom;BRC;long;
        {0x6C05, 4, L_FIX}, // "sprmPicBrcRight" pic.brcRight;BRC;long;
        {0x3000, 1, L_FIX}, // "sprmScnsPgn" sep.cnsPgn;cns;byte;
        {0x3001, 1, L_FIX}, // "sprmSiHeadingPgn" sep.iHeadingPgn;heading number
                            // level;byte;
        {0xD202, 0, L_VAR}, // "sprmSOlstAnm" sep.olstAnm;OLST;variable length;
        {0xF203, 3, L_FIX}, // "sprmSDxaColWidth" sep.rgdxaColWidthSpacing;
        {0xF204, 3, L_FIX}, // "sprmSDxaColSpacing" sep.rgdxaColWidthSpacing;
                            // complex
        {0x3005, 1, L_FIX}, // "sprmSFEvenlySpaced" sep.fEvenlySpaced;1 or 0
        {0x3006, 1, L_FIX}, // "sprmSFProtected" sep.fUnlocked;1 or 0;byte;
        {0x5007, 2, L_FIX}, // "sprmSDmBinFirst" sep.dmBinFirst;;word;
        {0x5008, 2, L_FIX}, // "sprmSDmBinOther" sep.dmBinOther;;word;
        {0x3009, 1, L_FIX}, // "sprmSBkc" sep.bkc;bkc;byte;
        {0x300A, 1, L_FIX}, // "sprmSFTitlePage" sep.fTitlePage;0 or 1;byte;
        {0x500B, 2, L_FIX}, // "sprmSCcolumns" sep.ccolM1;# of cols - 1;word;
        {0x900C, 2, L_FIX}, // "sprmSDxaColumns" sep.dxaColumns;dxa;word;
        {0x300D, 1, L_FIX}, // "sprmSFAutoPgn" sep.fAutoPgn;obsolete;byte;
        {0x300E, 1, L_FIX}, // "sprmSNfcPgn" sep.nfcPgn;nfc;byte;
        {0xB00F, 2, L_FIX}, // "sprmSDyaPgn" sep.dyaPgn;dya;short;
        {0xB010, 2, L_FIX}, // "sprmSDxaPgn" sep.dxaPgn;dya;short;
        {0x3011, 1, L_FIX}, // "sprmSFPgnRestart" sep.fPgnRestart;0 or 1;byte;
        {0x3012, 1, L_FIX}, // "sprmSFEndnote" sep.fEndnote;0 or 1;byte;
        {0x3013, 1, L_FIX}, // "sprmSLnc" sep.lnc;lnc;byte;
        {0x3014, 1, L_FIX}, // "sprmSGprfIhdt" sep.grpfIhdt;grpfihdt
        {0x5015, 2, L_FIX}, // "sprmSNLnnMod" sep.nLnnMod;non-neg int.;word;
        {0x9016, 2, L_FIX}, // "sprmSDxaLnn" sep.dxaLnn;dxa;word;
        {0xB017, 2, L_FIX}, // "sprmSDyaHdrTop" sep.dyaHdrTop;dya;word;
        {0xB018, 2, L_FIX}, // "sprmSDyaHdrBottom" sep.dyaHdrBottom;dya;word;
        {0x3019, 1, L_FIX}, // "sprmSLBetween" sep.fLBetween;0 or 1;byte;
        {0x301A, 1, L_FIX}, // "sprmSVjc" sep.vjc;vjc;byte;
        {0x501B, 2, L_FIX}, // "sprmSLnnMin" sep.lnnMin;lnn;word;
        {0x501C, 2, L_FIX}, // "sprmSPgnStart" sep.pgnStart;pgn;word;
        {0x301D, 1, L_FIX}, // "sprmSBOrientation" sep.dmOrientPage;dm;byte;
        {0x301E, 1, L_FIX}, // "sprmSBCustomize" ;;;
        {0xB01F, 2, L_FIX}, // "sprmSXaPage" sep.xaPage;xa;word;
        {0xB020, 2, L_FIX}, // "sprmSYaPage" sep.yaPage;ya;word;
        {0xB021, 2, L_FIX}, // "sprmSDxaLeft" sep.dxaLeft;dxa;word;
        {0xB022, 2, L_FIX}, // "sprmSDxaRight" sep.dxaRight;dxa;word;
        {0x9023, 2, L_FIX}, // "sprmSDyaTop" sep.dyaTop;dya;word;
        {0x9024, 2, L_FIX}, // "sprmSDyaBottom" sep.dyaBottom;dya;word;
        {0xB025, 2, L_FIX}, // "sprmSDzaGutter" sep.dzaGutter;dza;word;
        {0x5026, 2, L_FIX}, // "sprmSDmPaperReq" sep.dmPaperReq;dm;word;
        {0xD227, 0, L_VAR}, // "sprmSPropRMark" sep.fPropRMark,
                            // sep.ibstPropRMark, sep.dttmPropRMark ;complex
        {0x3228, 1, L_FIX}, // "sprmSFBiDi" ;;;
        {0x3229, 1, L_FIX}, // "sprmSFFacingCol" ;;;
        {0x322A, 1, L_FIX}, // "sprmSFRTLGutter", set to one if gutter is on
                            // right
        {0x702B, 4, L_FIX}, // "sprmSBrcTop" sep.brcTop;BRC;long;
        {0x702C, 4, L_FIX}, // "sprmSBrcLeft" sep.brcLeft;BRC;long;
        {0x702D, 4, L_FIX}, // "sprmSBrcBottom" sep.brcBottom;BRC;long;
        {0x702E, 4, L_FIX}, // "sprmSBrcRight" sep.brcRight;BRC;long;
        {0x522F, 2, L_FIX}, // "sprmSPgbProp" sep.pgbProp;;word;
        {0x7030, 4, L_FIX}, // "sprmSDxtCharSpace" sep.dxtCharSpace;dxt;long;
        {0x9031, 2, L_FIX}, // "sprmSDyaLinePitch"
                            // sep.dyaLinePitch;dya; WRONG:long; RIGHT:short; !
        {0x5032, 2, L_FIX}, // "sprmSClm" ;;;
        {0x5033, 2, L_FIX}, // "sprmSTextFlow" sep.wTextFlow;complex
        {0x5400, 2, L_FIX}, // "sprmTJc" tap.jc;jc;word (low order byte is
                            // significant);
        {0x9601, 2, L_FIX}, // "sprmTDxaLeft" tap.rgdxaCenter
        {0x9602, 2, L_FIX}, // "sprmTDxaGapHalf" tap.dxaGapHalf,
                            // tap.rgdxaCenter
        {0x3403, 1, L_FIX}, // "sprmTFCantSplit" tap.fCantSplit;1 or 0;byte;
        {0x3404, 1, L_FIX}, // "sprmTTableHeader" tap.fTableHeader;1 or 0;byte;
        {0xD605, 0, L_VAR}, // "sprmTTableBorders" tap.rgbrcTable;complex
        {0xD606, 0, L_VAR}, // "sprmTDefTable10" tap.rgdxaCenter,
                            // tap.rgtc;complex
        {0x9407, 2, L_FIX}, // "sprmTDyaRowHeight" tap.dyaRowHeight;dya;word;
        {0xD608, 0, L_VAR}, // "sprmTDefTable" tap.rgtc;complex
        {0xD609, 0, L_VAR}, // "sprmTDefTableShd" tap.rgshd;complex
        {0x740A, 4, L_FIX}, // "sprmTTlp" tap.tlp;TLP;4 bytes;
        {0x560B, 2, L_FIX}, // "sprmTFBiDi" ;;;
=====================================================================
Found a 73 line (1664 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

	static SfxItemPropertyMap aRangePropertyMap_Impl[] =
	{
        {MAP_CHAR_LEN(SC_UNONAME_ABSNAME),	SC_WID_UNO_ABSNAME,	&getCppuType((rtl::OUString*)0),		0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CCOLOR),	ATTR_FONT_COLOR,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_COUTL),	ATTR_FONT_CONTOUR,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CCROSS),	ATTR_FONT_CROSSEDOUT,&getBooleanCppuType(),					0, MID_CROSSED_OUT },
		{MAP_CHAR_LEN(SC_UNONAME_CEMPHAS),	ATTR_FONT_EMPHASISMARK,&getCppuType((sal_Int16*)0),			0, MID_EMPHASIS },
		{MAP_CHAR_LEN(SC_UNONAME_CFONT),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFCHARS),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFCHARS),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFCHARS),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNONAME_CFFAMIL),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFFAMIL),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFFAMIL),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFNAME),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFNAME),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFNAME),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CFPITCH),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFPITCH),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFPITCH),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNONAME_CFSTYLE),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFSTYLE),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFSTYLE),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CHEIGHT),	ATTR_FONT_HEIGHT,	&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNO_CJK_CHEIGHT),	ATTR_CJK_FONT_HEIGHT,&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNO_CTL_CHEIGHT),	ATTR_CTL_FONT_HEIGHT,&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CLOCAL),	ATTR_FONT_LANGUAGE,	&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNO_CJK_CLOCAL),	ATTR_CJK_FONT_LANGUAGE,&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNO_CTL_CLOCAL),	ATTR_CTL_FONT_LANGUAGE,&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNONAME_CPOST),	ATTR_FONT_POSTURE,	&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNO_CJK_CPOST),	ATTR_CJK_FONT_POSTURE,&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNO_CTL_CPOST),	ATTR_CTL_FONT_POSTURE,&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNONAME_CRELIEF),	ATTR_FONT_RELIEF,	&getCppuType((sal_Int16*)0),			0, MID_RELIEF },
		{MAP_CHAR_LEN(SC_UNONAME_CSHADD),	ATTR_FONT_SHADOWED,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CSTRIKE),	ATTR_FONT_CROSSEDOUT,&getCppuType((sal_Int16*)0),			0, MID_CROSS_OUT },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDER),	ATTR_FONT_UNDERLINE,&getCppuType((sal_Int16*)0),			0, MID_UNDERLINE },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDLCOL),	ATTR_FONT_UNDERLINE,&getCppuType((sal_Int32*)0),			0, MID_UL_COLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDLHAS),	ATTR_FONT_UNDERLINE,&getBooleanCppuType(),					0, MID_UL_HASCOLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CWEIGHT),	ATTR_FONT_WEIGHT,	&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNO_CJK_CWEIGHT),	ATTR_CJK_FONT_WEIGHT,&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNO_CTL_CWEIGHT),	ATTR_CTL_FONT_WEIGHT,&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNONAME_CWORDMOD),	ATTR_FONT_WORDLINE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CHCOLHDR),	SC_WID_UNO_CHCOLHDR,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CHROWHDR),	SC_WID_UNO_CHROWHDR,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0),	0, MID_HORJUST_HORJUST },
		{MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
		{MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
        {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PADJUST),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PBMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_LO_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PINDENT),	ATTR_INDENT,		&getCppuType((sal_Int16*)0),			0, 0 }, //! CONVERT_TWIPS
		{MAP_CHAR_LEN(SC_UNONAME_PISCHDIST),ATTR_SCRIPTSPACE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISFORBID),ATTR_FORBIDDEN_RULES,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHANG),	ATTR_HANGPUNCTUATION,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHYPHEN),ATTR_HYPHENATE,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PLASTADJ),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
=====================================================================
Found a 197 line (1663 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/lex.c
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_lex.c

enum state
{
    START = 0, NUM1, NUM2, NUM3, ID1, ST1, ST2, ST3, COM1, COM2, COM3, COM4,
    CC1, CC2, WS1, PLUS1, MINUS1, STAR1, SLASH1, PCT1, SHARP1,
    CIRC1, GT1, GT2, LT1, LT2, OR1, AND1, ASG1, NOT1, DOTS1,
    S_SELF = MAXSTATE, S_SELFB, S_EOF, S_NL, S_EOFSTR,
    S_STNL, S_COMNL, S_EOFCOM, S_COMMENT, S_EOB, S_WS, S_NAME
};

int tottok;
int tokkind[256];
struct fsm
{
    int state;                          /* if in this state */
    uchar ch[4];                        /* and see one of these characters */
    int nextstate;                      /* enter this state if +ve */
};

 /*const*/ struct fsm fsm[] = {
    /* start state */
		 {START, {C_XX}, ACT(UNCLASS, S_SELF)},
		 {START, {' ', '\t', '\v'}, WS1},
		 {START, {C_NUM}, NUM1},
		 {START, {'.'}, NUM3},
		 {START, {C_ALPH}, ID1},
		 {START, {'L'}, ST1},
		 {START, {'"'}, ST2},
		 {START, {'\''}, CC1},
		 {START, {'/'}, COM1},
		 {START, {EOFC}, S_EOF},
		 {START, {'\n'}, S_NL},
		 {START, {'-'}, MINUS1},
		 {START, {'+'}, PLUS1},
		 {START, {'<'}, LT1},
		 {START, {'>'}, GT1},
		 {START, {'='}, ASG1},
		 {START, {'!'}, NOT1},
		 {START, {'&'}, AND1},
		 {START, {'|'}, OR1},
		 {START, {'#'}, SHARP1},
		 {START, {'%'}, PCT1},
		 {START, {'['}, ACT(SBRA, S_SELF)},
		 {START, {']'}, ACT(SKET, S_SELF)},
		 {START, {'('}, ACT(LP, S_SELF)},
		 {START, {')'}, ACT(RP, S_SELF)},
		 {START, {'*'}, STAR1},
		 {START, {','}, ACT(COMMA, S_SELF)},
		 {START, {'?'}, ACT(QUEST, S_SELF)},
		 {START, {':'}, ACT(COLON, S_SELF)},
		 {START, {';'}, ACT(SEMIC, S_SELF)},
		 {START, {'{'}, ACT(CBRA, S_SELF)},
		 {START, {'}'}, ACT(CKET, S_SELF)},
		 {START, {'~'}, ACT(TILDE, S_SELF)},
		 {START, {'^'}, CIRC1},

    /* saw a digit */
		 {NUM1, {C_XX}, ACT(NUMBER, S_SELFB)},
		 {NUM1, {C_NUM, C_ALPH, '.'}, NUM1},
		 {NUM1, {'E', 'e'}, NUM2},
		 {NUM1, {'_'}, ACT(NUMBER, S_SELFB)},

    /* saw possible start of exponent, digits-e */
		 {NUM2, {C_XX}, ACT(NUMBER, S_SELFB)},
		 {NUM2, {'+', '-'}, NUM1},
		 {NUM2, {C_NUM, C_ALPH}, NUM1},
		 {NUM2, {'_'}, ACT(NUMBER, S_SELFB)},

    /* saw a '.', which could be a number or an operator */
		 {NUM3, {C_XX}, ACT(DOT, S_SELFB)},
		 {NUM3, {'.'}, DOTS1},
		 {NUM3, {C_NUM}, NUM1},

		 {DOTS1, {C_XX}, ACT(UNCLASS, S_SELFB)},
		 {DOTS1, {C_NUM}, NUM1},
		 {DOTS1, {'.'}, ACT(ELLIPS, S_SELF)},

    /* saw a letter or _ */
		 {ID1, {C_XX}, ACT(NAME, S_NAME)},
		 {ID1, {C_ALPH, C_NUM}, ID1},

    /* saw L (start of wide string?) */
		 {ST1, {C_XX}, ACT(NAME, S_NAME)},
		 {ST1, {C_ALPH, C_NUM}, ID1},
		 {ST1, {'"'}, ST2},
		 {ST1, {'\''}, CC1},

    /* saw " beginning string */
		 {ST2, {C_XX}, ST2},
		 {ST2, {'"'}, ACT(STRING, S_SELF)},
		 {ST2, {'\\'}, ST3},
		 {ST2, {'\n'}, S_STNL},
		 {ST2, {EOFC}, S_EOFSTR},

    /* saw \ in string */
		 {ST3, {C_XX}, ST2},
		 {ST3, {'\n'}, S_STNL},
		 {ST3, {EOFC}, S_EOFSTR},

    /* saw ' beginning character const */
		 {CC1, {C_XX}, CC1},
		 {CC1, {'\''}, ACT(CCON, S_SELF)},
		 {CC1, {'\\'}, CC2},
		 {CC1, {'\n'}, S_STNL},
		 {CC1, {EOFC}, S_EOFSTR},

    /* saw \ in ccon */
		 {CC2, {C_XX}, CC1},
		 {CC2, {'\n'}, S_STNL},
		 {CC2, {EOFC}, S_EOFSTR},

    /* saw /, perhaps start of comment */
		 {COM1, {C_XX}, ACT(SLASH, S_SELFB)},
		 {COM1, {'='}, ACT(ASSLASH, S_SELF)},
		 {COM1, {'*'}, COM2},
		 {COM1, {'/'}, COM4},

    /* saw / followed by *, start of comment */
		 {COM2, {C_XX}, COM2},
		 {COM2, {'\n'}, S_COMNL},
		 {COM2, {'*'}, COM3},
		 {COM2, {EOFC}, S_EOFCOM},

    /* saw the * possibly ending a comment */
		 {COM3, {C_XX}, COM2},
		 {COM3, {'\n'}, S_COMNL},
		 {COM3, {'*'}, COM3},
		 {COM3, {'/'}, S_COMMENT},

    /* // comment */
		 {COM4, {C_XX}, COM4},
		 {COM4, {'\n'}, S_NL},
		 {COM4, {EOFC}, S_EOFCOM},

    /* saw white space, eat it up */
		 {WS1, {C_XX}, S_WS},
		 {WS1, {'\t', '\v', ' '}, WS1},

    /* saw -, check --, -=, -> */
		 {MINUS1, {C_XX}, ACT(MINUS, S_SELFB)},
		 {MINUS1, {'-'}, ACT(MMINUS, S_SELF)},
		 {MINUS1, {'='}, ACT(ASMINUS, S_SELF)},
		 {MINUS1, {'>'}, ACT(ARROW, S_SELF)},

    /* saw +, check ++, += */
		 {PLUS1, {C_XX}, ACT(PLUS, S_SELFB)},
		 {PLUS1, {'+'}, ACT(PPLUS, S_SELF)},
		 {PLUS1, {'='}, ACT(ASPLUS, S_SELF)},

    /* saw <, check <<, <<=, <= */
		 {LT1, {C_XX}, ACT(LT, S_SELFB)},
		 {LT1, {'<'}, LT2},
		 {LT1, {'='}, ACT(LEQ, S_SELF)},
		 {LT2, {C_XX}, ACT(LSH, S_SELFB)},
		 {LT2, {'='}, ACT(ASLSH, S_SELF)},

    /* saw >, check >>, >>=, >= */
		 {GT1, {C_XX}, ACT(GT, S_SELFB)},
		 {GT1, {'>'}, GT2},
		 {GT1, {'='}, ACT(GEQ, S_SELF)},
		 {GT2, {C_XX}, ACT(RSH, S_SELFB)},
		 {GT2, {'='}, ACT(ASRSH, S_SELF)},

    /* = */
		 {ASG1, {C_XX}, ACT(ASGN, S_SELFB)},
		 {ASG1, {'='}, ACT(EQ, S_SELF)},

    /* ! */
		 {NOT1, {C_XX}, ACT(NOT, S_SELFB)},
		 {NOT1, {'='}, ACT(NEQ, S_SELF)},

    /* & */
		 {AND1, {C_XX}, ACT(AND, S_SELFB)},
		 {AND1, {'&'}, ACT(LAND, S_SELF)},
		 {AND1, {'='}, ACT(ASAND, S_SELF)},

    /* | */
		 {OR1, {C_XX}, ACT(OR, S_SELFB)},
		 {OR1, {'|'}, ACT(LOR, S_SELF)},
		 {OR1, {'='}, ACT(ASOR, S_SELF)},

    /* # */
		 {SHARP1, {C_XX}, ACT(SHARP, S_SELFB)},
		 {SHARP1, {'#'}, ACT(DSHARP, S_SELF)},

    /* % */
		 {PCT1, {C_XX}, ACT(PCT, S_SELFB)},
		 {PCT1, {'='}, ACT(ASPCT, S_SELF)},

    /* * */
		 {STAR1, {C_XX}, ACT(STAR, S_SELFB)},
		 {STAR1, {'='}, ACT(ASSTAR, S_SELF)},

    /* ^ */
		 {CIRC1, {C_XX}, ACT(CIRC, S_SELFB)},
		 {CIRC1, {'='}, ACT(ASCIRC, S_SELF)},

		 {-1, "", 0}
=====================================================================
Found a 117 line (1635 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

	virtual ~Test_Impl()
		{ OSL_TRACE( "> scalar Test_Impl dtor <\n" ); }
	
	// XLBTestBase
    virtual void SAL_CALL setValues( sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
									 sal_Int16 nShort, sal_uInt16 nUShort,
									 sal_Int32 nLong, sal_uInt32 nULong,
									 sal_Int64 nHyper, sal_uInt64 nUHyper,
									 float fFloat, double fDouble,
									 test::TestEnum eEnum, const ::rtl::OUString& rStr,
									 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									 const ::com::sun::star::uno::Any& rAny,
									 const ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									 const test::TestData& rStruct )
		throw(com::sun::star::uno::RuntimeException);
	
    virtual test::TestData SAL_CALL setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
												sal_Int16& nShort, sal_uInt16& nUShort,
												sal_Int32& nLong, sal_uInt32& nULong,
												sal_Int64& nHyper, sal_uInt64& nUHyper,
												float& fFloat, double& fDouble,
												test::TestEnum& eEnum, rtl::OUString& rStr,
												::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
												::com::sun::star::uno::Any& rAny,
												::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
												test::TestData& rStruct )
		throw(com::sun::star::uno::RuntimeException);
	
    virtual test::TestData SAL_CALL getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
											   sal_Int16& nShort, sal_uInt16& nUShort,
											   sal_Int32& nLong, sal_uInt32& nULong,
											   sal_Int64& nHyper, sal_uInt64& nUHyper,
											   float& fFloat, double& fDouble,
											   test::TestEnum& eEnum, rtl::OUString& rStr,
											   ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
											   ::com::sun::star::uno::Any& rAny,
											   ::com::sun::star::uno::Sequence< test::TestElement >& rSequence,
											   test::TestData& rStruct )
		throw(com::sun::star::uno::RuntimeException);
	
    virtual sal_Bool SAL_CALL getBool() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Bool; }
    virtual sal_Int8 SAL_CALL getByte() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Byte; }
    virtual sal_Unicode SAL_CALL getChar() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Char; }
    virtual sal_Int16 SAL_CALL getShort() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Short; }
    virtual sal_uInt16 SAL_CALL getUShort() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.UShort; }
    virtual sal_Int32 SAL_CALL getLong() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Long; }
    virtual sal_uInt32 SAL_CALL getULong() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.ULong; }
    virtual sal_Int64 SAL_CALL getHyper() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Hyper; }
    virtual sal_uInt64 SAL_CALL getUHyper() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.UHyper; }
    virtual float SAL_CALL getFloat() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Float; }
    virtual double SAL_CALL getDouble() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Double; }
    virtual test::TestEnum SAL_CALL getEnum() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Enum; }
    virtual rtl::OUString SAL_CALL getString() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.String; }
    virtual com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getInterface(  ) throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Interface; }
    virtual com::sun::star::uno::Any SAL_CALL getAny() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Any; }
    virtual com::sun::star::uno::Sequence< test::TestElement > SAL_CALL getSequence() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Sequence; }
    virtual test::TestData SAL_CALL getStruct() throw(com::sun::star::uno::RuntimeException)
		{ return _aStructData; }

    virtual void SAL_CALL setBool( sal_Bool _bool ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Bool = _bool; }
    virtual void SAL_CALL setByte( sal_Int8 _byte ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Byte = _byte; }
    virtual void SAL_CALL setChar( sal_Unicode _char ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Char = _char; }
    virtual void SAL_CALL setShort( sal_Int16 _short ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Short = _short; }
    virtual void SAL_CALL setUShort( sal_uInt16 _ushort ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.UShort = _ushort; }
    virtual void SAL_CALL setLong( sal_Int32 _long ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Long = _long; }
    virtual void SAL_CALL setULong( sal_uInt32 _ulong ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.ULong = _ulong; }
    virtual void SAL_CALL setHyper( sal_Int64 _hyper ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Hyper = _hyper; }
    virtual void SAL_CALL setUHyper( sal_uInt64 _uhyper ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.UHyper = _uhyper; }
    virtual void SAL_CALL setFloat( float _float ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Float = _float; }
    virtual void SAL_CALL setDouble( double _double ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Double = _double; }
    virtual void SAL_CALL setEnum( test::TestEnum _enum ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Enum = _enum; }
    virtual void SAL_CALL setString( const ::rtl::OUString& _string ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.String = _string; }
    virtual void SAL_CALL setInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _interface ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Interface = _interface; }
    virtual void SAL_CALL setAny( const ::com::sun::star::uno::Any& _any ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Any = _any; }
    virtual void SAL_CALL setSequence( const ::com::sun::star::uno::Sequence<test::TestElement >& _sequence ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Sequence = _sequence; }
    virtual void SAL_CALL setStruct( const test::TestData& _struct ) throw(::com::sun::star::uno::RuntimeException)
		{ _aStructData = _struct; }

	// XLanguageBindingTest
    virtual test::TestData SAL_CALL raiseException( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte, sal_Int16& nShort, sal_uInt16& nUShort, sal_Int32& nLong, sal_uInt32& nULong, sal_Int64& nHyper, sal_uInt64& nUHyper, float& fFloat, double& fDouble, test::TestEnum& eEnum, ::rtl::OUString& aString, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xInterface, ::com::sun::star::uno::Any& aAny, ::com::sun::star::uno::Sequence<test::TestElement >& aSequence,test::TestData& aStruct )
		throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
	
    virtual sal_Int32 SAL_CALL getRuntimeException() throw(::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL setRuntimeException( sal_Int32 _runtimeexception ) throw(::com::sun::star::uno::RuntimeException);
};
=====================================================================
Found a 36 line (1593 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 444 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xd5, 0x014F}, {0xd5, 0x0152}, {0xd5, 0x0155}, {0xd5, 0x0158}, {0xd5, 0x015B}, // fb10 - fb17
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb18 - fb1f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb20 - fb27
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb28 - fb2f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb30 - fb37
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb38 - fb3f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb40 - fb47
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb48 - fb4f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb50 - fb57
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb58 - fb5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb60 - fb67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb68 - fb6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb70 - fb77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb78 - fb7f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb80 - fb87
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb88 - fb8f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb90 - fb97
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb98 - fb9f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fba0 - fba7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fba8 - fbaf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbb0 - fbb7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbb8 - fbbf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbc0 - fbc7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbc8 - fbcf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbd0 - fbd7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbd8 - fbdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbe0 - fbe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbe8 - fbef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbf0 - fbf7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbf8 - fbff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff00 - ff07
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff08 - ff0f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff10 - ff17
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff18 - ff1f
    {0x00, 0x0000}, {0x6a, 0xFF41}, {0x6a, 0xFF42}, {0x6a, 0xFF43}, {0x6a, 0xFF44}, {0x6a, 0xFF45}, {0x6a, 0xFF46}, {0x6a, 0xFF47}, // ff20 - ff27
=====================================================================
Found a 194 line (1541 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1813 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso6_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x00, 0xa6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x00, 0xa9, 0xa9 },
{ 0x00, 0xaa, 0xaa },
{ 0x00, 0xab, 0xab },
{ 0x00, 0xac, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x00, 0xb3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x00, 0xc0, 0xc0 },
=====================================================================
Found a 184 line (1461 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2072 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso7_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x00, 0xa6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x00, 0xa9, 0xa9 },
{ 0x00, 0xaa, 0xaa },
{ 0x00, 0xab, 0xab },
{ 0x00, 0xac, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x00, 0xb3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x01, 0xdc, 0xb6 },
=====================================================================
Found a 27 line (1457 tokens) duplication in the following files: 
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 593 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

/* ` */	                                                            PU+PV      +PY,
/* a */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* b */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* c */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* d */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* e */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* f */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* g */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* h */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* i */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* j */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* k */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* l */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* m */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* n */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* o */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* p */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* q */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* r */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* s */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* t */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* u */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* v */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* w */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* x */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* y */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* z */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
=====================================================================
Found a 311 line (1439 tokens) duplication in the following files: 
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/cpp.c
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_cpp.c

    exit(nerrs > 0);
}

void
    process(Tokenrow * trp)
{
    int anymacros = 0;

    for (;;)
    {
        if (trp->tp >= trp->lp)
        {
            trp->tp = trp->lp = trp->bp;
            outptr = outbuf;
            anymacros |= gettokens(trp, 1);
            trp->tp = trp->bp;
        }
        if (trp->tp->type == END)
        {
            if (--incdepth >= 0)
            {
                if (cursource->ifdepth)
                    error(ERROR,
                          "Unterminated conditional in #include");
                unsetsource();
                cursource->line += cursource->lineinc;
                trp->tp = trp->lp;
                if (!Pflag)
                    genline();
                continue;
            }
            if (ifdepth)
                error(ERROR, "Unterminated #if/#ifdef/#ifndef");
            break;
        }
        if (trp->tp->type == SHARP)
        {
            trp->tp += 1;
            control(trp);
        }
        else
            if (!skipping && anymacros)
                expandrow(trp, NULL);
        if (skipping)
            setempty(trp);
        puttokens(trp);
        anymacros = 0;
        cursource->line += cursource->lineinc;
        if (cursource->lineinc > 1)
        {
            if (!Pflag)
                genline();
        }
    }
}

void
    control(Tokenrow * trp)
{
    Nlist *np;
    Token *tp;

    tp = trp->tp;
    if (tp->type != NAME)
    {
        if (tp->type == NUMBER)
            goto kline;
        if (tp->type != NL)
            error(ERROR, "Unidentifiable control line");
        return;                         /* else empty line */
    }
    if ((np = lookup(tp, 0)) == NULL || ((np->flag & ISKW) == 0 && !skipping))
    {
        error(WARNING, "Unknown preprocessor control %t", tp);
        return;
    }
    if (skipping)
    {
        switch (np->val)
        {
            case KENDIF:
                if (--ifdepth < skipping)
                    skipping = 0;
                --cursource->ifdepth;
                setempty(trp);
                return;

            case KIFDEF:
            case KIFNDEF:
            case KIF:
                if (++ifdepth >= NIF)
                    error(FATAL, "#if too deeply nested");
                ++cursource->ifdepth;
                return;

            case KELIF:
            case KELSE:
                if (ifdepth <= skipping)
                    break;
                return;

            default:
                return;
        }
    }
    switch (np->val)
    {
        case KDEFINE:
            dodefine(trp);
            break;

        case KUNDEF:
            tp += 1;
            if (tp->type != NAME || trp->lp - trp->bp != 4)
            {
                error(ERROR, "Syntax error in #undef");
                break;
            }
            if ((np = lookup(tp, 0)) != NULL)
			{
                np->flag &= ~ISDEFINED;

				if (Mflag)
				{
					if (np->ap)
						error(INFO, "Macro deletion of %s(%r)", np->name, np->ap);
					else
						error(INFO, "Macro deletion of %s", np->name);
				}
			}
            break;

        case KPRAGMA:
        case KIDENT:
			for (tp = trp->tp - 1; ((tp->type != NL) && (tp < trp->lp)); tp++)
				tp->type = UNCLASS;
            return;

        case KIFDEF:
        case KIFNDEF:
        case KIF:
            if (++ifdepth >= NIF)
                error(FATAL, "#if too deeply nested");
            ++cursource->ifdepth;
            ifsatisfied[ifdepth] = 0;
            if (eval(trp, np->val))
                ifsatisfied[ifdepth] = 1;
            else
                skipping = ifdepth;
            break;

        case KELIF:
            if (ifdepth == 0)
            {
                error(ERROR, "#elif with no #if");
                return;
            }
            if (ifsatisfied[ifdepth] == 2)
                error(ERROR, "#elif after #else");
            if (eval(trp, np->val))
            {
                if (ifsatisfied[ifdepth])
                    skipping = ifdepth;
                else
                {
                    skipping = 0;
                    ifsatisfied[ifdepth] = 1;
                }
            }
            else
                skipping = ifdepth;
            break;

        case KELSE:
            if (ifdepth == 0 || cursource->ifdepth == 0)
            {
                error(ERROR, "#else with no #if");
                return;
            }
            if (ifsatisfied[ifdepth] == 2)
                error(ERROR, "#else after #else");
            if (trp->lp - trp->bp != 3)
                error(ERROR, "Syntax error in #else");
            skipping = ifsatisfied[ifdepth] ? ifdepth : 0;
            ifsatisfied[ifdepth] = 2;
            break;

        case KENDIF:
            if (ifdepth == 0 || cursource->ifdepth == 0)
            {
                error(ERROR, "#endif with no #if");
                return;
            }
            --ifdepth;
            --cursource->ifdepth;
            if (trp->lp - trp->bp != 3)
                error(WARNING, "Syntax error in #endif");
            break;

        case KERROR:
            trp->tp = tp + 1;
            error(WARNING, "#error directive: %r", trp);
            break;

        case KLINE:
            trp->tp = tp + 1;
            expandrow(trp, "<line>");
            tp = trp->bp + 2;
    kline:
            if (tp + 1 >= trp->lp || tp->type != NUMBER || tp + 3 < trp->lp
                || (tp + 3 == trp->lp
                    && ((tp + 1)->type != STRING || *(tp + 1)->t == 'L')))
            {
                error(ERROR, "Syntax error in #line");
                return;
            }
            cursource->line = atol((char *) tp->t) - 1;
            if (cursource->line < 0 || cursource->line >= 32768)
                error(WARNING, "#line specifies number out of range");
            tp = tp + 1;
            if (tp + 1 < trp->lp)
                cursource->filename = (char *) newstring(tp->t + 1, tp->len - 2, 0);
            return;

        case KDEFINED:
            error(ERROR, "Bad syntax for control line");
            break;

		case KIMPORT:
            doinclude(trp, -1, 1);
            trp->lp = trp->bp;
			return;

        case KINCLUDE:
            doinclude(trp, -1, 0);
            trp->lp = trp->bp;
            return;

        case KINCLUDENEXT:
            doinclude(trp, cursource->pathdepth, 0);
            trp->lp = trp->bp;
            return;

        case KEVAL:
            eval(trp, np->val);
            break;

        default:
            error(ERROR, "Preprocessor control `%t' not yet implemented", tp);
            break;
    }
    setempty(trp);
    return;
}

void *
    domalloc(int size)
{
    void *p = malloc(size);

    if (p == NULL)
        error(FATAL, "Out of memory from malloc");
    return p;
}

void
    dofree(void *p)
{
    free(p);
}

void
    error(enum errtype type, char *string,...)
{
    va_list ap;
    char c, *cp, *ep;
    Token *tp;
    Tokenrow *trp;
    Source *s;
    int i;

    fprintf(stderr, "cpp: ");
    for (s = cursource; s; s = s->next)
        if (*s->filename)
            fprintf(stderr, "%s:%d ", s->filename, s->line);
    va_start(ap, string);
    for (ep = string; *ep; ep++)
    {
        if (*ep == '%')
        {
            switch (*++ep)
            {

                case 'c':
                    c = (char) va_arg(ap, int);
                    fprintf(stderr, "%c", c);
                    break;

				case 's':
                    cp = va_arg(ap, char *);
                    fprintf(stderr, "%s", cp);
                    break;

                case 'd':
                    i = va_arg(ap, int);
                    fprintf(stderr, "%d", i);
                    break;

                case 't':
                    tp = va_arg(ap, Token *);
                    fprintf(stderr, "%.*s", (int)tp->len, tp->t);
=====================================================================
Found a 114 line (1411 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc40/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc45/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc50/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/tcc20/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/microsft/msc51/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/microsft/msc60/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
int If_root_path ANSI((char *));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
void Clean_up_processes ANSI(());
int Wait_for_child ANSI((int, int));
time_t seek_arch ANSI((char*, char*));
int touch_arch ANSI((char*, char*));
int dchdir ANSI((char *));
void Remove_prq ANSI((CELLPTR));
int spawnvpe ANSI((int, char *, char **, char **));
void Hook_std_writes ANSI((char *));
void dstrlwr ANSI((char *, char *));
time_t CacheStat ANSI((char *, int));
=====================================================================
Found a 177 line (1405 tokens) duplication in the following files: 
Starting at line 776 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1295 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso4_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x01, 0xb1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x01, 0xb3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x01, 0xb5, 0xa5 },
{ 0x01, 0xb6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x01, 0xb9, 0xa9 },
{ 0x01, 0xba, 0xaa },
{ 0x01, 0xbb, 0xab },
{ 0x01, 0xbc, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x01, 0xbe, 0xae },
{ 0x00, 0xaf, 0xaf },
=====================================================================
Found a 113 line (1391 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/os2/ibm/icc/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/os2/ibm/icc3/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
int _dchdir ANSI((char *));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
void SetSessionTitle ANSI((char *));
int Wait_for_child ANSI((int, int));
void Clean_up_processes ANSI(());
int If_root_path ANSI((char *));
time_t seek_arch ANSI((char*, char*));
int touch_arch ANSI((char*, char*));
void dstrlwr ANSI((char *, char *));
void Remove_prq ANSI((CELLPTR));
time_t CacheStat ANSI((char *, int));
=====================================================================
Found a 326 line (1387 tokens) duplication in the following files: 
Starting at line 423 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/eval.c
Starting at line 390 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_eval.c

    struct value v2 = { 0, UND };
    long rv1, rv2;
    int rtype, oper;

    rv2 = 0;
    rtype = 0;
    while (pri.pri < priority[op[-1]].pri)
    {
        oper = *--op;
        if (priority[oper].arity == 2)
        {
            v2 = *--vp;
            rv2 = v2.val;
        }
        v1 = *--vp;
        rv1 = v1.val;
/*lint -e574 -e644 */
        switch (priority[oper].ctype)
        {
            case 0:
            default:
                error(WARNING, "Syntax error in #if/#endif");
                return 1;
            case ARITH:
            case RELAT:
                if (v1.type == UNS || v2.type == UNS)
                    rtype = UNS;
                else
                    rtype = SGN;
                if (v1.type == UND || v2.type == UND)
                    rtype = UND;
                if (priority[oper].ctype == RELAT && rtype == UNS)
                {
                    oper |= UNSMARK;
                    rtype = SGN;
                }
                break;
            case SHIFT:
                if (v1.type == UND || v2.type == UND)
                    rtype = UND;
                else
                    rtype = v1.type;
                if (rtype == UNS)
                    oper |= UNSMARK;
                break;
            case UNARY:
                rtype = v1.type;
                break;
            case LOGIC:
            case SPCL:
                break;
        }
        switch (oper)
        {
            case EQ:
            case EQ | UNSMARK:
                rv1 = rv1 == rv2;
                break;
            case NEQ:
            case NEQ | UNSMARK:
                rv1 = rv1 != rv2;
                break;
            case LEQ:
                rv1 = rv1 <= rv2;
                break;
            case GEQ:
                rv1 = rv1 >= rv2;
                break;
            case LT:
                rv1 = rv1 < rv2;
                break;
            case GT:
                rv1 = rv1 > rv2;
                break;
            case LEQ | UNSMARK:
                rv1 = (unsigned long)rv1 <= (unsigned long)rv2;
                break;
            case GEQ | UNSMARK:
                rv1 = (unsigned long)rv1 >= (unsigned long)rv2;
                break;
            case LT | UNSMARK:
                rv1 = (unsigned long)rv1 < (unsigned long)rv2;
                break;
            case GT | UNSMARK:
                rv1 = (unsigned long)rv1 > (unsigned long)rv2;
                break;
            case LSH:
                rv1 <<= rv2;
                break;
            case LSH | UNSMARK:
                rv1 = (unsigned long) rv1 << rv2;
                break;
            case RSH:
                rv1 >>= rv2;
                break;
            case RSH | UNSMARK:
                rv1 = (unsigned long) rv1 >> rv2;
                break;
            case LAND:
                rtype = UND;
                if (v1.type == UND)
                    break;
                if (rv1 != 0)
                {
                    if (v2.type == UND)
                        break;
                    rv1 = rv2 != 0;
                }
                else
                    rv1 = 0;
                rtype = SGN;
                break;
            case LOR:
                rtype = UND;
                if (v1.type == UND)
                    break;
                if (rv1 == 0)
                {
                    if (v2.type == UND)
                        break;
                    rv1 = rv2 != 0;
                }
                else
                    rv1 = 1;
                rtype = SGN;
                break;
            case AND:
                rv1 &= rv2;
                break;
            case STAR:
                rv1 *= rv2;
                break;
            case PLUS:
                rv1 += rv2;
                break;
            case MINUS:
                rv1 -= rv2;
                break;
            case UMINUS:
                if (v1.type == UND)
                    rtype = UND;
                rv1 = -rv1;
                break;
            case OR:
                rv1 |= rv2;
                break;
            case CIRC:
                rv1 ^= rv2;
                break;
            case TILDE:
                rv1 = ~rv1;
                break;
            case NOT:
                rv1 = !rv1;
                if (rtype != UND)
                    rtype = SGN;
                break;
            case SLASH:
                if (rv2 == 0)
                {
                    rtype = UND;
                    break;
                }
                if (rtype == UNS)
                    rv1 /= (unsigned long) rv2;
                else
                    rv1 /= rv2;
                break;
            case PCT:
                if (rv2 == 0)
                {
                    rtype = UND;
                    break;
                }
                if (rtype == UNS)
                    rv1 %= (unsigned long) rv2;
                else
                    rv1 %= rv2;
                break;
            case COLON:
                if (op[-1] != QUEST)
                    error(ERROR, "Bad ?: in #if/endif");
                else
                {
                    op--;
                    if ((--vp)->val == 0)
                        v1 = v2;
                    rtype = v1.type;
                    rv1 = v1.val;
                }
                break;

            case DEFINED:
            case ARCHITECTURE:
                break;

            default:
                error(ERROR, "Eval botch (unknown operator)");
                return 1;
        }
/*lint +e574 +e644 */
        v1.val = rv1;
        v1.type = rtype;
        *vp++ = v1;
    }
    return 0;
}

struct value
    tokval(Token * tp)
{
    struct value v;
    Nlist *np;
    int i, base;
    unsigned long n;
    uchar *p, c;

    v.type = SGN;
    v.val = 0;
    switch (tp->type)
    {

        case NAME:
            v.val = 0;
            break;

        case NAME1:
            if ((np = lookup(tp, 0)) != NULL && np->flag & (ISDEFINED | ISMAC))
                v.val = 1;
            break;

        case NAME2:
            if ((np = lookup(tp, 0)) != NULL && np->flag & (ISARCHITECTURE))
                v.val = 1;
            break;

        case NUMBER:
            n = 0;
            base = 10;
            p = tp->t;
            c = p[tp->len];
            p[tp->len] = '\0';
            if (*p == '0')
            {
                base = 8;
                if (p[1] == 'x' || p[1] == 'X')
                {
                    base = 16;
                    p++;
                }
                p++;
            }
            for (;; p++)
            {
                if ((i = digit(*p)) < 0)
                    break;
                if (i >= base)
                    error(WARNING,
                          "Bad digit in number %t", tp);
                n *= base;
                n += i;
            }
            if (n >= 0x80000000 && base != 10)
                v.type = UNS;
            for (; *p; p++)
            {
                if (*p == 'u' || *p == 'U')
                    v.type = UNS;
                else
                    if (*p == 'l' || *p == 'L')
                        ;
                    else
                    {
                        error(ERROR,
                              "Bad number %t in #if/#elsif", tp);
                        break;
                    }
            }
            v.val = n;
            tp->t[tp->len] = c;
            break;

        case CCON:
            n = 0;
            p = tp->t;
            if (*p == 'L')
            {
                p += 1;
                error(WARNING, "Wide char constant value undefined");
            }
            p += 1;
            if (*p == '\\')
            {
                p += 1;
                if ((i = digit(*p)) >= 0 && i <= 7)
                {
                    n = i;
                    p += 1;
                    if ((i = digit(*p)) >= 0 && i <= 7)
                    {
                        p += 1;
                        n <<= 3;
                        n += i;
                        if ((i = digit(*p)) >= 0 && i <= 7)
                        {
                            p += 1;
                            n <<= 3;
                            n += i;
                        }
                    }
                }
                else
                    if (*p == 'x')
                    {
                        p += 1;
                        while ((i = digit(*p)) >= 0 && i <= 15)
                        {
                            p += 1;
                            n <<= 4;
                            n += i;
                        }
                    }
                    else
                    {
                        static char cvcon[]
                        = "b\bf\fn\nr\rt\tv\v''\"\"??\\\\";
=====================================================================
Found a 112 line (1381 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/borland/bcc50/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/winnt/borland/bcc50/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
int dchdir ANSI((char *));
void dstrlwr ANSI((char *, char *));
time_t seek_arch ANSI((char*, char*));
int touch_arch ANSI((char*, char*));
int If_root_path ANSI((char *));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
int Wait_for_child ANSI((int, int));
void Clean_up_processes ANSI(());
time_t CacheStat ANSI((char *, int));
void Remove_prq ANSI((CELLPTR));
=====================================================================
Found a 112 line (1381 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/linux/gnu/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
const int in_quit ANSI((void));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
int If_root_path ANSI((char *));
void Remove_prq ANSI((CELLPTR));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
int Wait_for_child ANSI((int, int));
void Clean_up_processes ANSI(());
time_t CacheStat ANSI((char *, int));
=====================================================================
Found a 111 line (1371 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/386ix/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsd43/uw/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsd43/vf/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsd43/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsdarm32/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/coherent/ver40/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/coherent/ver42/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/solaris/gnu/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr1/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/pwd/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr4/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/xenix/pwd/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/xenix/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
int If_root_path ANSI((char *));
void Remove_prq ANSI((CELLPTR));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
int Wait_for_child ANSI((int, int));
void Clean_up_processes ANSI(());
time_t CacheStat ANSI((char *, int));
=====================================================================
Found a 111 line (1369 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/microsft/vpp40/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/winnt/microsft/vpp40/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/winnt/mingw/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/winnt/msvc6/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
int dchdir ANSI((char *));
void dstrlwr ANSI((char *, char *));
time_t seek_arch ANSI((char*, char*));
int touch_arch ANSI((char*, char*));
int If_root_path ANSI((char *));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
void Clean_up_processes ANSI(());
int Wait_for_child ANSI((int, int));
void Remove_prq ANSI((CELLPTR));
=====================================================================
Found a 110 line (1356 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/zortech/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
int If_root_path ANSI((char *));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
void Clean_up_processes ANSI(());
int Wait_for_child ANSI((int, int));
time_t seek_arch ANSI((char*, char*));
int touch_arch ANSI((char*, char*));
int dchdir ANSI((char *));
void Remove_prq ANSI((CELLPTR));
=====================================================================
Found a 145 line (1344 tokens) duplication in the following files: 
Starting at line 3394 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3745 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

				pResMat->PutDouble(exp(pMatNewX->GetDouble(i)*m+b), i);
		}
	}
	else
	{
		SCSIZE i, j, k;
		ScMatrixRef pQ = GetNewMat(M+1, M+2);
		ScMatrixRef pE = GetNewMat(M+2, 1);
		pE->PutDouble(0.0, M+1);
		pQ->FillDouble(0.0, 0, 0, M, M+1);
		if (nCase == 2)
		{
			for (k = 0; k < N; k++)
			{
				pE->PutDouble(
					pE->GetDouble(M+1)+pMatY->GetDouble(k)*pMatY->GetDouble(k), M+1);
				pQ->PutDouble(pQ->GetDouble(0, M+1) + pMatY->GetDouble(k), 0,	M+1);
				pE->PutDouble(pQ->GetDouble(0, M+1), 0);
				for (i = 0; i < M; i++)
				{
					pQ->PutDouble(pQ->GetDouble(0, i+1)+pMatX->GetDouble(i,k), 0, i+1);
					pQ->PutDouble(pQ->GetDouble(0, i+1), i+1, 0);
					pQ->PutDouble(pQ->GetDouble(i+1, M+1) +
							 pMatX->GetDouble(i,k)*pMatY->GetDouble(k), i+1, M+1);
					pE->PutDouble(pQ->GetDouble(i+1, M+1), i+1);
					for (j = i; j < M; j++)
					{
						pQ->PutDouble(pQ->GetDouble(j+1, i+1) +
							 pMatX->GetDouble(i,k)*pMatX->GetDouble(j,k), j+1, i+1);
						pQ->PutDouble(pQ->GetDouble(j+1, i+1), i+1, j+1);
					}
				}
			}
		}
		else
		{
			for (k = 0; k < N; k++)
			{
				pE->PutDouble(
					pE->GetDouble(M+1)+pMatY->GetDouble(k)*pMatY->GetDouble(k), M+1);
				pQ->PutDouble(pQ->GetDouble(0, M+1) + pMatY->GetDouble(k), 0,	M+1);
				pE->PutDouble(pQ->GetDouble(0, M+1), 0);
				for (i = 0; i < M; i++)
				{
					pQ->PutDouble(pQ->GetDouble(0, i+1)+pMatX->GetDouble(k,i), 0, i+1);
					pQ->PutDouble(pQ->GetDouble(0, i+1), i+1, 0);
					pQ->PutDouble(pQ->GetDouble(i+1, M+1) +
							 pMatX->GetDouble(k,i)*pMatY->GetDouble(k), i+1, M+1);
					pE->PutDouble(pQ->GetDouble(i+1, M+1), i+1);
					for (j = i; j < M; j++)
					{
						pQ->PutDouble(pQ->GetDouble(j+1, i+1) +
							 pMatX->GetDouble(k, i)*pMatX->GetDouble(k, j), j+1, i+1);
						pQ->PutDouble(pQ->GetDouble(j+1, i+1), i+1, j+1);
					}
				}
			}
		}
		pQ->PutDouble((double)N, 0, 0);
		if (bConstant)
		{
			SCSIZE S, L;
			for (S = 0; S < M+1; S++)
			{
				i = S;
				while (i < M+1 && pQ->GetDouble(i, S) == 0.0)
					i++;
				if (i >= M+1)
				{
					SetNoValue();
					return;
				}
				double fVal;
				for (L = 0; L < M+2; L++)
				{
					fVal = pQ->GetDouble(S, L);
					pQ->PutDouble(pQ->GetDouble(i, L), S, L);
					pQ->PutDouble(fVal, i, L);
				}
				fVal = 1.0/pQ->GetDouble(S, S);
				for (L = 0; L < M+2; L++)
					pQ->PutDouble(pQ->GetDouble(S, L)*fVal, S, L);
				for (i = 0; i < M+1; i++)
				{
					if (i != S)
					{
						fVal = -pQ->GetDouble(i, S);
						for (L = 0; L < M+2; L++)
							pQ->PutDouble(
								pQ->GetDouble(i,L)+fVal*pQ->GetDouble(S,L),i,L);
					}
				}
			}
		}
		else
		{
			SCSIZE S, L;
			for (S = 1; S < M+1; S++)
			{
				i = S;
				while (i < M+1 && pQ->GetDouble(i, S) == 0.0)
					i++;
				if (i >= M+1)
				{
					SetNoValue();
					return;
				}
				double fVal;
				for (L = 1; L < M+2; L++)
				{
					fVal = pQ->GetDouble(S, L);
					pQ->PutDouble(pQ->GetDouble(i, L), S, L);
					pQ->PutDouble(fVal, i, L);
				}
				fVal = 1.0/pQ->GetDouble(S, S);
				for (L = 1; L < M+2; L++)
					pQ->PutDouble(pQ->GetDouble(S, L)*fVal, S, L);
				for (i = 1; i < M+1; i++)
				{
					if (i != S)
					{
						fVal = -pQ->GetDouble(i, S);
						for (L = 1; L < M+2; L++)
							pQ->PutDouble(
								pQ->GetDouble(i,L)+fVal*pQ->GetDouble(S,L),i,L);
					}
				}
				pQ->PutDouble(0.0, 0, M+1);
			}
		}
		if (nCase == 2)
		{
			pResMat = GetNewMat(1, nRXN);
			if (!pResMat)
			{
				PushError();
				return;
			}
			double fVal;
			for (i = 0; i < nRXN; i++)
			{
				fVal = pQ->GetDouble(0, M+1);
				for (j = 0; j < M; j++)
					fVal += pQ->GetDouble(j+1, M+1)*pMatNewX->GetDouble(j, i);
				pResMat->PutDouble(exp(fVal), i);
=====================================================================
Found a 108 line (1341 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/borland/bcc50/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/microsft/vpp40/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
int dchdir ANSI((char *));
void dstrlwr ANSI((char *, char *));
time_t seek_arch ANSI((char*, char*));
int touch_arch ANSI((char*, char*));
int If_root_path ANSI((char *));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
=====================================================================
Found a 168 line (1333 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4404 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso15_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x01, 0xa8, 0xa6 },
=====================================================================
Found a 285 line (1331 tokens) duplication in the following files: 
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/ipwin.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/hatchwindow/ipwin.cxx

	aSelPos = GetOuterRectPixel().TopLeft(); // Start-Position merken
	pWin->CaptureMouse();
}

/*************************************************************************
|*    SvResizeHelper::SelectMove()
|*
|*    Beschreibung
*************************************************************************/
short SvResizeHelper::SelectMove( Window * pWin, const Point & rPos )
{
	if( -1 == nGrab )
	{
		if( bResizeable )
		{
			Rectangle aRects[ 8 ];
			FillHandleRectsPixel( aRects );
			for( USHORT i = 0; i < 8; i++ )
				if( aRects[ i ].IsInside( rPos ) )
					return i;
		}
		// Move-Rect ueberlappen Handles
		Rectangle aMoveRects[ 4 ];
		FillMoveRectsPixel( aMoveRects );
		for( USHORT i = 0; i < 4; i++ )
			if( aMoveRects[ i ].IsInside( rPos ) )
				return 8;
	}
	else
	{
		Rectangle aRect( GetTrackRectPixel( rPos ) );
		aRect.SetSize( pWin->PixelToLogic( aRect.GetSize() ) );
		aRect.SetPos( pWin->PixelToLogic( aRect.TopLeft() ) );
		pWin->ShowTracking( aRect );
	}
	return nGrab;
}

Point SvResizeHelper::GetTrackPosPixel( const Rectangle & rRect ) const
{
	// wie das Rechteck zurueckkommt ist egal, es zaehlt welches Handle
	// initial angefasst wurde
	Point aPos;
	Rectangle aRect( rRect );
	aRect.Justify();
	// nur wegen EMPTY_RECT
	Point aBR = aOuter.BottomRight();
	Point aTR = aOuter.TopRight();
	Point aBL = aOuter.BottomLeft();
	switch( nGrab )
	{
		case 0:
			aPos = aRect.TopLeft() - aOuter.TopLeft();
			break;
		case 1:
			aPos.Y() =  aRect.Top() - aOuter.Top();
			break;
		case 2:
			aPos =  aRect.TopRight() - aTR;
			break;
		case 3:
			aPos.X() = aRect.Right() - aTR.X();
			break;
		case 4:
			aPos =  aRect.BottomRight() - aBR;
			break;
		case 5:
			aPos.Y() = aRect.Bottom() - aBR.Y();
			break;
		case 6:
			aPos =  aRect.BottomLeft() - aBL;
			break;
		case 7:
			aPos.X() = aRect.Left() - aOuter.Left();
			break;
		case 8:
			aPos = aRect.TopLeft() - aOuter.TopLeft();
			break;
	}
	return aPos += aSelPos;
}

/*************************************************************************
|*    SvResizeHelper::GetTrackRectPixel()
|*
|*    Beschreibung
*************************************************************************/
Rectangle SvResizeHelper::GetTrackRectPixel( const Point & rTrackPos ) const
{
	Rectangle aTrackRect;
	if( -1 != nGrab )
	{
		Point aDiff = rTrackPos - aSelPos;
		aTrackRect = aOuter;
		Point aBR = aOuter.BottomRight();
		switch( nGrab )
		{
			case 0:
				aTrackRect.Top() += aDiff.Y();
				aTrackRect.Left() += aDiff.X();
				break;
			case 1:
				aTrackRect.Top() += aDiff.Y();
				break;
			case 2:
				aTrackRect.Top() += aDiff.Y();
				aTrackRect.Right() = aBR.X() + aDiff.X();
				break;
			case 3:
				aTrackRect.Right() = aBR.X() + aDiff.X();
				break;
			case 4:
				aTrackRect.Bottom() = aBR.Y() + aDiff.Y();
				aTrackRect.Right() = aBR.X() + aDiff.X();
				break;
			case 5:
				aTrackRect.Bottom() = aBR.Y() + aDiff.Y();
				break;
			case 6:
				aTrackRect.Bottom() = aBR.Y() + aDiff.Y();
				aTrackRect.Left() += aDiff.X();
				break;
			case 7:
				aTrackRect.Left() += aDiff.X();
				break;
			case 8:
				aTrackRect.SetPos( aTrackRect.TopLeft() + aDiff );
				break;
/*
			case 0:
				aTrackRect = Rectangle( rTrackPos, aOuter.BottomRight() );
				break;
			case 1:
				aTrackRect = Rectangle( Point( aOuter.Left(), rTrackPos.Y() ),
										 aOuter.BottomRight() );
				break;
			case 2:
				aTrackRect = Rectangle( rTrackPos, aOuter.BottomLeft() );
				break;
			case 3:
				aTrackRect = Rectangle( Point( rTrackPos.X(), aOuter.Top() ),
										 aOuter.BottomLeft() );
				break;
			case 4:
				aTrackRect = Rectangle( rTrackPos, aOuter.TopLeft() );
				break;
			case 5:
				aTrackRect = Rectangle( aOuter.TopLeft(),
									 Point( aOuter.Right(), rTrackPos.Y() ) );
				break;
			case 6:
				aTrackRect = Rectangle( aOuter.TopRight(), rTrackPos );
				break;
			case 7:
				aTrackRect = Rectangle( Point( rTrackPos.X(), aOuter.Top() ),
										 aOuter.BottomRight() );
				break;
			case 8:
				aTrackRect = Rectangle( aOuter.TopLeft() + rTrackPos - aSelPos,
										aOuter.GetSize() );
				break;
*/
		}
	}
	return aTrackRect;
}

void SvResizeHelper::ValidateRect( Rectangle & rValidate ) const
{
	switch( nGrab )
	{
		case 0:
			if( rValidate.Top() > rValidate.Bottom() )
			{
				rValidate.Top() = rValidate.Bottom();
				rValidate.Bottom() = RECT_EMPTY;
			}
			if( rValidate.Left() > rValidate.Right() )
			{
				rValidate.Left() = rValidate.Right();
				rValidate.Right() = RECT_EMPTY;
			}
			break;
		case 1:
			if( rValidate.Top() > rValidate.Bottom() )
			{
				rValidate.Top() = rValidate.Bottom();
				rValidate.Bottom() = RECT_EMPTY;
			}
			break;
		case 2:
			if( rValidate.Top() > rValidate.Bottom() )
			{
				rValidate.Top() = rValidate.Bottom();
				rValidate.Bottom() = RECT_EMPTY;
			}
			if( rValidate.Left() > rValidate.Right() )
				rValidate.Right() = RECT_EMPTY;
			break;
		case 3:
			if( rValidate.Left() > rValidate.Right() )
				rValidate.Right() = RECT_EMPTY;
			break;
		case 4:
			if( rValidate.Top() > rValidate.Bottom() )
				rValidate.Bottom() = RECT_EMPTY;
			if( rValidate.Left() > rValidate.Right() )
				rValidate.Right() = RECT_EMPTY;
			break;
		case 5:
			if( rValidate.Top() > rValidate.Bottom() )
				rValidate.Bottom() = RECT_EMPTY;
			break;
		case 6:
			if( rValidate.Top() > rValidate.Bottom() )
				rValidate.Bottom() = RECT_EMPTY;
			if( rValidate.Left() > rValidate.Right() )
			{
				rValidate.Left() = rValidate.Right();
				rValidate.Right() = RECT_EMPTY;
			}
			break;
		case 7:
			if( rValidate.Left() > rValidate.Right() )
			{
				rValidate.Left() = rValidate.Right();
				rValidate.Right() = RECT_EMPTY;
			}
			break;
	}
	if( rValidate.Right() == RECT_EMPTY )
		rValidate.Right() = rValidate.Left();
	if( rValidate.Bottom() == RECT_EMPTY )
		rValidate.Bottom() = rValidate.Top();

	// Mindestgr"osse 5 x 5
	if( rValidate.Left() + 5 > rValidate.Right() )
		rValidate.Right() = rValidate.Left() +5;
	if( rValidate.Top() + 5 > rValidate.Bottom() )
		rValidate.Bottom() = rValidate.Top() +5;
}

/*************************************************************************
|*    SvResizeHelper::SelectRelease()
|*
|*    Beschreibung
*************************************************************************/
BOOL SvResizeHelper::SelectRelease( Window * pWin, const Point & rPos,
									Rectangle & rOutPosSize )
{
	if( -1 != nGrab )
	{
		rOutPosSize = GetTrackRectPixel( rPos );
		rOutPosSize.Justify();
		nGrab = -1;
		pWin->ReleaseMouse();
		pWin->HideTracking();
		return TRUE;
	}
	return FALSE;
}

/*************************************************************************
|*    SvResizeHelper::Release()
|*
|*    Beschreibung
*************************************************************************/
void SvResizeHelper::Release( Window * pWin )
{
	if( nGrab != -1 )
	{
		pWin->ReleaseMouse();
		pWin->HideTracking();
		nGrab = -1;
	}
}

/*************************************************************************
|*    SvResizeWindow::SvResizeWindow()
|*
|*    Beschreibung
*************************************************************************/
SvResizeWindow::SvResizeWindow
(
	Window * pParent,
=====================================================================
Found a 133 line (1330 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/test/testcomp.cxx
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/performance/ubobject.cxx

	return Sequence< OUString >( &aName, 1 );
}

//==================================================================================================
class ServiceImpl
	: public XServiceInfo
	, public XPerformanceTest
{
	OUString _aDummyString;
	Any _aDummyAny;
	Sequence< Reference< XInterface > > _aDummySequence;
	ComplexTypes _aDummyStruct;
	RuntimeException _aDummyRE;

	sal_Int32 _nRef;
	
public:
	ServiceImpl()
		: _nRef( 0 )
		{}
	ServiceImpl( const Reference< XMultiServiceFactory > & xMgr )
		: _nRef( 0 )
		{}
	
	// XInterface
    virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException)
	{
		// execution time remains appr. constant any time
		Any aRet;
		if (aType == ::getCppuType( (const Reference< XInterface > *)0 ))
		{
			void * p = (XInterface *)(XPerformanceTest *)this;
			aRet.setValue( &p, ::getCppuType( (const Reference< XInterface > *)0 ) );
		}
		if (aType == ::getCppuType( (const Reference< XPerformanceTest > *)0 ))
		{
			void * p = (XPerformanceTest *)this;
			aRet.setValue( &p, ::getCppuType( (const Reference< XPerformanceTest > *)0 ) );
		}
		if (! aRet.hasValue())
		{
			void * p = (XPerformanceTest *)this;
			Any aDummy( &p, ::getCppuType( (const Reference< XPerformanceTest > *)0 ) );
		}
		return aRet;
	}
    virtual void SAL_CALL acquire() throw()
		{ osl_incrementInterlockedCount( &_nRef ); }
    virtual void SAL_CALL release() throw()
		{ if (! osl_decrementInterlockedCount( &_nRef )) delete this; }
	
	// XServiceInfo
	virtual OUString SAL_CALL getImplementationName() throw (RuntimeException);
	virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) throw (RuntimeException);
	virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (RuntimeException);

    // Attributes
    virtual sal_Int32 SAL_CALL getLong_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return 0; }
    virtual void SAL_CALL setLong_attr( sal_Int32 _attributelong ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual sal_Int64 SAL_CALL getHyper_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return 0; }
    virtual void SAL_CALL setHyper_attr( sal_Int64 _attributehyper ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual float SAL_CALL getFloat_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return 0.0; }
    virtual void SAL_CALL setFloat_attr( float _attributefloat ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual double SAL_CALL getDouble_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return 0.0; }
    virtual void SAL_CALL setDouble_attr( double _attributedouble ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual OUString SAL_CALL getString_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return _aDummyString; }
    virtual void SAL_CALL setString_attr( const ::rtl::OUString& _attributestring ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual Reference< XInterface > SAL_CALL getInterface_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return Reference< XInterface >(); }
    virtual void SAL_CALL setInterface_attr( const Reference< XInterface >& _attributeinterface ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual Any SAL_CALL getAny_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return _aDummyAny; }
    virtual void SAL_CALL setAny_attr( const Any& _attributeany ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual Sequence< Reference< XInterface > > SAL_CALL getSequence_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return _aDummySequence; }
    virtual void SAL_CALL setSequence_attr( const Sequence< Reference< XInterface > >& _attributesequence ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual ComplexTypes SAL_CALL getStruct_attr() throw(::com::sun::star::uno::RuntimeException)
		{ return _aDummyStruct; }
    virtual void SAL_CALL setStruct_attr( const ::com::sun::star::test::performance::ComplexTypes& _attributestruct ) throw(::com::sun::star::uno::RuntimeException)
		{}
	
    // Methods	
    virtual sal_Int32 SAL_CALL getLong() throw(::com::sun::star::uno::RuntimeException)
		{ return 0; }
    virtual void SAL_CALL setLong( sal_Int32 _long ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual sal_Int64 SAL_CALL getHyper() throw(::com::sun::star::uno::RuntimeException)
		{ return 0; }
    virtual void SAL_CALL setHyper( sal_Int64 _hyper ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual float SAL_CALL getFloat() throw(::com::sun::star::uno::RuntimeException)
		{ return 0; }
    virtual void SAL_CALL setFloat( float _float ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual double SAL_CALL getDouble() throw(::com::sun::star::uno::RuntimeException)
		{ return 0; }
    virtual void SAL_CALL setDouble( double _double ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual OUString SAL_CALL getString() throw(::com::sun::star::uno::RuntimeException)
		{ return _aDummyString; }
    virtual void SAL_CALL setString( const ::rtl::OUString& _string ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual Reference< XInterface > SAL_CALL getInterface() throw(::com::sun::star::uno::RuntimeException)
		{ return Reference< XInterface >(); }
    virtual void SAL_CALL setInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _interface ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual Any SAL_CALL getAny() throw(::com::sun::star::uno::RuntimeException)
		{ return _aDummyAny; }
    virtual void SAL_CALL setAny( const ::com::sun::star::uno::Any& _any ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual Sequence< Reference< XInterface > > SAL_CALL getSequence() throw(::com::sun::star::uno::RuntimeException)
		{ return _aDummySequence; }
    virtual void SAL_CALL setSequence( const Sequence< Reference< XInterface > >& _sequence ) throw(::com::sun::star::uno::RuntimeException)
		{}	
    virtual ComplexTypes SAL_CALL getStruct() throw(::com::sun::star::uno::RuntimeException)
		{ return _aDummyStruct; }
    virtual void SAL_CALL setStruct( const ::com::sun::star::test::performance::ComplexTypes& c ) throw(::com::sun::star::uno::RuntimeException)
		{}
	
    virtual void SAL_CALL async() throw(::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 166 line (1321 tokens) duplication in the following files: 
Starting at line 3108 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3367 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info koi8u_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xb3 },
{ 0x00, 0xa4, 0xb4 }, /* ie */
=====================================================================
Found a 165 line (1313 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3108 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info koi8r_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xb3 },
=====================================================================
Found a 280 line (1313 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{
    
void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if defined BRIDGES_DEBUG
    char const * start = p;
#endif
    
    // example: N3com3sun4star4lang24IllegalArgumentExceptionE
    
	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N
    
    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }
    
#if defined BRIDGES_DEBUG
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;
    
    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;
    
public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );
    
    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
    : m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
//__________________________________________________________________________________________________
RTTI::~RTTI() SAL_THROW( () )
{
    dlclose( m_hApp );
}

//__________________________________________________________________________________________________
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW( () )
{
    type_info * rtti;
    
    OUString const & unoName = *(OUString const *)&pTypeDescr->aBase.pTypeName;
    
    MutexGuard guard( m_mutex );
    t_rtti_map::const_iterator iFind( m_rttis.find( unoName ) );
    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );
        
        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if defined BRIDGES_DEBUG
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
#if defined BRIDGES_DEBUG
    OString cstr(
        OUStringToOString(
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> uno exception occured: %s\n", cstr.getStr() );
#endif
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("cannot get typedescription for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    
	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );
	
	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no rtti for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    }
    
	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping * pCpp2Uno )
{
    if (! header)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no exception header!") ),
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if defined _DEBUG
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
        return;
    }
    
	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
#if defined BRIDGES_DEBUG
    OString cstr_unoName( OUStringToOString( unoName, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> c++ exception occured: %s\n", cstr_unoName.getStr() );
#endif
	typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    if (0 == pExcTypeDescr)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("exception type not found: ") ) + unoName,
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if defined _DEBUG
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
    }
    else
    {
        // construct uno exception any
        uno_any_constructAndConvert( pUnoExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
        typelib_typedescription_release( pExcTypeDescr );
    }
}

}
=====================================================================
Found a 165 line (1309 tokens) duplication in the following files: 
Starting at line 776 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1036 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso3_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x01, 0xb1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
=====================================================================
Found a 163 line (1295 tokens) duplication in the following files: 
Starting at line 776 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1554 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4145 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso14_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x01, 0xa2, 0xa1 },
=====================================================================
Found a 58 line (1293 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 456 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

	static SfxItemPropertyMap aColumnPropertyMap_Impl[] =
	{
        {MAP_CHAR_LEN(SC_UNONAME_ABSNAME),	SC_WID_UNO_ABSNAME,	&getCppuType((rtl::OUString*)0),		0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CCOLOR),	ATTR_FONT_COLOR,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_COUTL),	ATTR_FONT_CONTOUR,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CCROSS),	ATTR_FONT_CROSSEDOUT,&getBooleanCppuType(),					0, MID_CROSSED_OUT },
		{MAP_CHAR_LEN(SC_UNONAME_CEMPHAS),	ATTR_FONT_EMPHASISMARK,&getCppuType((sal_Int16*)0),			0, MID_EMPHASIS },
		{MAP_CHAR_LEN(SC_UNONAME_CFONT),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFCHARS),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFCHARS),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFCHARS),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNONAME_CFFAMIL),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFFAMIL),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFFAMIL),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFNAME),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFNAME),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFNAME),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CFPITCH),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFPITCH),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFPITCH),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNONAME_CFSTYLE),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFSTYLE),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFSTYLE),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CHEIGHT),	ATTR_FONT_HEIGHT,	&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNO_CJK_CHEIGHT),	ATTR_CJK_FONT_HEIGHT,&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNO_CTL_CHEIGHT),	ATTR_CTL_FONT_HEIGHT,&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CLOCAL),	ATTR_FONT_LANGUAGE,	&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNO_CJK_CLOCAL),	ATTR_CJK_FONT_LANGUAGE,&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNO_CTL_CLOCAL),	ATTR_CTL_FONT_LANGUAGE,&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNONAME_CPOST),	ATTR_FONT_POSTURE,	&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNO_CJK_CPOST),	ATTR_CJK_FONT_POSTURE,&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNO_CTL_CPOST),	ATTR_CTL_FONT_POSTURE,&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNONAME_CRELIEF),	ATTR_FONT_RELIEF,	&getCppuType((sal_Int16*)0),			0, MID_RELIEF },
		{MAP_CHAR_LEN(SC_UNONAME_CSHADD),	ATTR_FONT_SHADOWED,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CSTRIKE),	ATTR_FONT_CROSSEDOUT,&getCppuType((sal_Int16*)0),			0, MID_CROSS_OUT },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDER),	ATTR_FONT_UNDERLINE,&getCppuType((sal_Int16*)0),			0, MID_UNDERLINE },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDLCOL),	ATTR_FONT_UNDERLINE,&getCppuType((sal_Int32*)0),			0, MID_UL_COLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDLHAS),	ATTR_FONT_UNDERLINE,&getBooleanCppuType(),					0, MID_UL_HASCOLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CWEIGHT),	ATTR_FONT_WEIGHT,	&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNO_CJK_CWEIGHT),	ATTR_CJK_FONT_WEIGHT,&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNO_CTL_CWEIGHT),	ATTR_CTL_FONT_WEIGHT,&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNONAME_CWORDMOD),	ATTR_FONT_WORDLINE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CHCOLHDR),	SC_WID_UNO_CHCOLHDR,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CHROWHDR),	SC_WID_UNO_CHROWHDR,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0), 0, MID_HORJUST_HORJUST },
		{MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
//		{MAP_CHAR_LEN(SC_UNONAME_CELLFILT),	SC_WID_UNO_CELLFILT,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_MANPAGE),	SC_WID_UNO_MANPAGE,	&getBooleanCppuType(),					0, 0 },
=====================================================================
Found a 163 line (1293 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 776 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso2_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x01, 0xb1, 0xa1 },
=====================================================================
Found a 290 line (1286 tokens) duplication in the following files: 
Starting at line 1 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/microsft/vpp40/runargv.c
Starting at line 1 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/winnt/microsft/vpp40/runargv.c

Blake sent me the wrong one.

/* RCS  $Id: runargv.c,v 1.1.1.1 2000/09/22 15:33:37 hr Exp $
--
-- SYNOPSIS
--      Invoke a sub process.
-- 
-- DESCRIPTION
-- 	Use the standard methods of executing a sub process.
--
-- AUTHOR
--      Dennis Vadura, dvadura@dmake.wticorp.com
--
-- WWW
--      http://dmake.wticorp.com/
--
-- COPYRIGHT
--      Copyright (c) 1996,1997 by WTI Corp.  All rights reserved.
-- 
--      This program is NOT free software; you can redistribute it and/or
--      modify it under the terms of the Software License Agreement Provided
--      in the file <distribution-root>/readme/license.txt.
--
-- LOG
--      Use cvs log to obtain detailed change logs.
*/

#include <process.h>
#include <errno.h>
#include <signal.h>
#include "extern.h"
#include "sysintf.h"

extern char **environ;

typedef struct prp {
   char *prp_cmd;
   int   prp_group;
   int   prp_ignore;
   int   prp_last;
   int	 prp_shell;
   struct prp *prp_next;
} RCP, *RCPPTR;

typedef struct pr {
   int		pr_valid;
   int		pr_pid;
   CELLPTR	pr_target;
   int		pr_ignore;
   int		pr_last;
   RCPPTR  	pr_recipe;
   RCPPTR  	pr_recipe_end;
   char        *pr_dir;
} PR;

static PR  *_procs    = NIL(PR);
static int  _proc_cnt = 0;
static int  _abort_flg= FALSE;
static int  _use_i    = -1;
static int  _do_upd   = 0;

static  void	_add_child ANSI((int, CELLPTR, int, int));
static  void	_attach_cmd ANSI((char *, int, int, CELLPTR, int, int));
static  void    _finished_child ANSI((int, int));
static  int     _running ANSI((CELLPTR));

PUBLIC int
runargv(target, ignore, group, last, shell, cmd)
CELLPTR target;
int     ignore;
int	group;
int	last;
int     shell;
char	*cmd;
{
   extern  int  errno;
   extern  char *sys_errlist[];
   int          pid;
   char         **argv;

   if( _running(target) /*&& Max_proc != 1*/ ) {
      /* The command will be executed when the previous recipe
       * line completes. */
      _attach_cmd( cmd, group, ignore, target, last, shell );
      return(1);
   }

   while( _proc_cnt == Max_proc )
      if( Wait_for_child(FALSE, -1) == -1 )  Fatal( "Lost a child %d", errno );

   argv = Pack_argv( group, shell, cmd );

   pid = _spawnvpe(_P_NOWAIT, argv[0], argv, environ);
   if (pid == -1)  {  /*  failed  */
	   Error("%s: %s", argv[0], sys_errlist[errno]);
	   Handle_result(-1, ignore, _abort_flg, target);
	   return(-1);
   } else
	   _add_child(pid, target, ignore, last);

   return(1);
}


PUBLIC int
Wait_for_child( abort_flg, pid )
int abort_flg;
int pid;
{
   int wid;
   int status;
   int waitchild;

   waitchild = (pid == -1)? FALSE : Wait_for_completion;

   do {
      if( (wid = wait(&status)) == -1 ) return(-1);

      _abort_flg = abort_flg;
      _finished_child(wid, status);
      _abort_flg = FALSE;
   } while( waitchild && pid != wid );

   return(0);
}


PUBLIC void
Clean_up_processes()
{
   register int i;

   if( _procs != NIL(PR) ) {
      for( i=0; i<Max_proc; i++ )
	 if( _procs[i].pr_valid )
	    kill(_procs[i].pr_pid, SIGTERM);

      while( Wait_for_child(TRUE, -1) != -1 );
   }
}


static void
_add_child( pid, target, ignore, last )
int	pid;
CELLPTR target;
int	ignore;
int     last;
{
   register int i;
   register PR *pp;

   if( _procs == NIL(PR) ) {
      TALLOC( _procs, Max_proc, PR );
   }

   if( (i = _use_i) == -1 )
      for( i=0; i<Max_proc; i++ )
	 if( !_procs[i].pr_valid )
	    break;

   pp = _procs+i;

   pp->pr_valid  = 1;
   pp->pr_pid    = pid;
   pp->pr_target = target;
   pp->pr_ignore = ignore;
   pp->pr_last   = last;
   pp->pr_dir    = DmStrDup(Get_current_dir());

   Current_target = NIL(CELL);

   _proc_cnt++;

   if( Wait_for_completion ) Wait_for_child( FALSE, pid );
}


static void
_finished_child(pid, status)
int	pid;
int	status;
{
   register int i;
   register PR *pp;
   char     *dir;

   for( i=0; i<Max_proc; i++ )
      if( _procs[i].pr_valid && _procs[i].pr_pid == pid )
	 break;

   /* Some children we didn't make esp true if using /bin/sh to execute a
    * a pipe and feed the output as a makefile into dmake. */
   if( i == Max_proc ) return;
   _procs[i].pr_valid = 0;
   _proc_cnt--;
   dir = DmStrDup(Get_current_dir());
   Set_dir( _procs[i].pr_dir );

   if( _procs[i].pr_recipe != NIL(RCP) && !_abort_flg ) {
      RCPPTR rp = _procs[i].pr_recipe;


      Current_target = _procs[i].pr_target;
      Handle_result( status, _procs[i].pr_ignore, FALSE, _procs[i].pr_target );
      Current_target = NIL(CELL);

      if ( _procs[i].pr_target->ce_attr & A_ERROR ) {
	 Unlink_temp_files( _procs[i].pr_target );
	 _procs[i].pr_last = TRUE;
	 goto ABORT_REMAINDER_OF_RECIPE;
      }

      _procs[i].pr_recipe = rp->prp_next;

      _use_i = i;
      runargv( _procs[i].pr_target, rp->prp_ignore, rp->prp_group,
	       rp->prp_last, rp->prp_shell, rp->prp_cmd );
      _use_i = -1;

      FREE( rp->prp_cmd );
      FREE( rp );

      if( _proc_cnt == Max_proc ) Wait_for_child( FALSE, -1 );
   }
   else {
      Unlink_temp_files( _procs[i].pr_target );
      Handle_result(status,_procs[i].pr_ignore,_abort_flg,_procs[i].pr_target);

 ABORT_REMAINDER_OF_RECIPE:
      if( _procs[i].pr_last ) {
	 FREE(_procs[i].pr_dir );

	 if( !Doing_bang ) Update_time_stamp( _procs[i].pr_target );
      }
   }

   Set_dir(dir);
   FREE(dir);
}


static int
_running( cp )
CELLPTR cp;
{
   register int i;

   if( !_procs ) return(FALSE);

   for( i=0; i<Max_proc; i++ )
      if( _procs[i].pr_valid &&
	  _procs[i].pr_target == cp  )
	 break;
	 
   return( i != Max_proc );
}


static void
_attach_cmd( cmd, group, ignore, cp, last, shell )
char    *cmd;
int	group;
int     ignore;
CELLPTR cp;
int     last;
int     shell;
{
   register int i;
   RCPPTR rp;

   for( i=0; i<Max_proc; i++ )
      if( _procs[i].pr_valid &&
	  _procs[i].pr_target == cp  )
	 break;

   TALLOC( rp, 1, RCP );
   rp->prp_cmd   = DmStrDup(cmd);
   rp->prp_group = group;
   rp->prp_ignore= ignore;
   rp->prp_last  = last;
   rp->prp_shell = shell;

   if( _procs[i].pr_recipe == NIL(RCP) )
      _procs[i].pr_recipe = _procs[i].pr_recipe_end = rp;
   else {
      _procs[i].pr_recipe_end->prp_next = rp;
      _procs[i].pr_recipe_end = rp;
   }
}
=====================================================================
Found a 103 line (1265 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/os2/ibm/icc/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/qssl/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/borland/bcc50/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
int dchdir ANSI((char *));
=====================================================================
Found a 102 line (1264 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/tos/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/386ix/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
=====================================================================
Found a 55 line (1250 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 556 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

	static SfxItemPropertyMap aRowPropertyMap_Impl[] =
	{
        {MAP_CHAR_LEN(SC_UNONAME_ABSNAME),	SC_WID_UNO_ABSNAME,	&getCppuType((rtl::OUString*)0),		0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CCOLOR),	ATTR_FONT_COLOR,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_COUTL),	ATTR_FONT_CONTOUR,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CCROSS),	ATTR_FONT_CROSSEDOUT,&getBooleanCppuType(),					0, MID_CROSSED_OUT },
		{MAP_CHAR_LEN(SC_UNONAME_CEMPHAS),	ATTR_FONT_EMPHASISMARK,&getCppuType((sal_Int16*)0),			0, MID_EMPHASIS },
		{MAP_CHAR_LEN(SC_UNONAME_CFONT),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFCHARS),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFCHARS),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFCHARS),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNONAME_CFFAMIL),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFFAMIL),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFFAMIL),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFNAME),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFNAME),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFNAME),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CFPITCH),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFPITCH),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFPITCH),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNONAME_CFSTYLE),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFSTYLE),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFSTYLE),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CHEIGHT),	ATTR_FONT_HEIGHT,	&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNO_CJK_CHEIGHT),	ATTR_CJK_FONT_HEIGHT,&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNO_CTL_CHEIGHT),	ATTR_CTL_FONT_HEIGHT,&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CLOCAL),	ATTR_FONT_LANGUAGE,	&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNO_CJK_CLOCAL),	ATTR_CJK_FONT_LANGUAGE,&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNO_CTL_CLOCAL),	ATTR_CTL_FONT_LANGUAGE,&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNONAME_CPOST),	ATTR_FONT_POSTURE,	&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNO_CJK_CPOST),	ATTR_CJK_FONT_POSTURE,&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNO_CTL_CPOST),	ATTR_CTL_FONT_POSTURE,&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNONAME_CRELIEF),	ATTR_FONT_RELIEF,	&getCppuType((sal_Int16*)0),			0, MID_RELIEF },
		{MAP_CHAR_LEN(SC_UNONAME_CSHADD),	ATTR_FONT_SHADOWED,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CSTRIKE),	ATTR_FONT_CROSSEDOUT,&getCppuType((sal_Int16*)0),			0, MID_CROSS_OUT },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDER),	ATTR_FONT_UNDERLINE,&getCppuType((sal_Int16*)0),			0, MID_UNDERLINE },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDLCOL),	ATTR_FONT_UNDERLINE,&getCppuType((sal_Int32*)0),			0, MID_UL_COLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDLHAS),	ATTR_FONT_UNDERLINE,&getBooleanCppuType(),					0, MID_UL_HASCOLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CWEIGHT),	ATTR_FONT_WEIGHT,	&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNO_CJK_CWEIGHT),	ATTR_CJK_FONT_WEIGHT,&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNO_CTL_CWEIGHT),	ATTR_CTL_FONT_WEIGHT,&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNONAME_CWORDMOD),	ATTR_FONT_WORDLINE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CHCOLHDR),	SC_WID_UNO_CHCOLHDR,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CHROWHDR),	SC_WID_UNO_CHROWHDR,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CELLHGT),	SC_WID_UNO_CELLHGT,	&getCppuType((sal_Int32*)0),			0, 0 },
=====================================================================
Found a 106 line (1235 tokens) duplication in the following files: 
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/accelerators/keymapping.cxx

KeyMapping::KeyIdentifierInfo KeyMapping::KeyIdentifierMap[] =
{
    {css::awt::Key::NUM0          , "KEY_0"          },
    {css::awt::Key::NUM1          , "KEY_1"          },
    {css::awt::Key::NUM2          , "KEY_2"          },
    {css::awt::Key::NUM3          , "KEY_3"          },
    {css::awt::Key::NUM4          , "KEY_4"          },
    {css::awt::Key::NUM5          , "KEY_5"          },
    {css::awt::Key::NUM6          , "KEY_6"          },
    {css::awt::Key::NUM7          , "KEY_7"          },
    {css::awt::Key::NUM8          , "KEY_8"          },
    {css::awt::Key::NUM9          , "KEY_9"          },
    {css::awt::Key::A             , "KEY_A"          },
    {css::awt::Key::B             , "KEY_B"          },
    {css::awt::Key::C             , "KEY_C"          },
    {css::awt::Key::D             , "KEY_D"          },
    {css::awt::Key::E             , "KEY_E"          },
    {css::awt::Key::F             , "KEY_F"          },
    {css::awt::Key::G             , "KEY_G"          },
    {css::awt::Key::H             , "KEY_H"          },
    {css::awt::Key::I             , "KEY_I"          },
    {css::awt::Key::J             , "KEY_J"          },
    {css::awt::Key::K             , "KEY_K"          },
    {css::awt::Key::L             , "KEY_L"          },
    {css::awt::Key::M             , "KEY_M"          },
    {css::awt::Key::N             , "KEY_N"          },
    {css::awt::Key::O             , "KEY_O"          },
    {css::awt::Key::P             , "KEY_P"          },
    {css::awt::Key::Q             , "KEY_Q"          },
    {css::awt::Key::R             , "KEY_R"          },
    {css::awt::Key::S             , "KEY_S"          },
    {css::awt::Key::T             , "KEY_T"          },
    {css::awt::Key::U             , "KEY_U"          },
    {css::awt::Key::V             , "KEY_V"          },
    {css::awt::Key::W             , "KEY_W"          },
    {css::awt::Key::X             , "KEY_X"          },
    {css::awt::Key::Y             , "KEY_Y"          },
    {css::awt::Key::Z             , "KEY_Z"          },
    {css::awt::Key::F1            , "KEY_F1"         },
    {css::awt::Key::F2            , "KEY_F2"         },
    {css::awt::Key::F3            , "KEY_F3"         },
    {css::awt::Key::F4            , "KEY_F4"         },
    {css::awt::Key::F5            , "KEY_F5"         },
    {css::awt::Key::F6            , "KEY_F6"         },
    {css::awt::Key::F7            , "KEY_F7"         },
    {css::awt::Key::F8            , "KEY_F8"         },
    {css::awt::Key::F9            , "KEY_F9"         },
    {css::awt::Key::F10           , "KEY_F10"        },
    {css::awt::Key::F11           , "KEY_F11"        },
    {css::awt::Key::F12           , "KEY_F12"        },
    {css::awt::Key::F13           , "KEY_F13"        },
    {css::awt::Key::F14           , "KEY_F14"        },
    {css::awt::Key::F15           , "KEY_F15"        },
    {css::awt::Key::F16           , "KEY_F16"        },
    {css::awt::Key::F17           , "KEY_F17"        },
    {css::awt::Key::F18           , "KEY_F18"        },
    {css::awt::Key::F19           , "KEY_F19"        },
    {css::awt::Key::F20           , "KEY_F20"        },
    {css::awt::Key::F21           , "KEY_F21"        },
    {css::awt::Key::F22           , "KEY_F22"        },
    {css::awt::Key::F23           , "KEY_F23"        },
    {css::awt::Key::F24           , "KEY_F24"        },
    {css::awt::Key::F25           , "KEY_F25"        },
    {css::awt::Key::F26           , "KEY_F26"        },
    {css::awt::Key::DOWN          , "KEY_DOWN"       },
    {css::awt::Key::UP            , "KEY_UP"         },
    {css::awt::Key::LEFT          , "KEY_LEFT"       },
    {css::awt::Key::RIGHT         , "KEY_RIGHT"      },
    {css::awt::Key::HOME          , "KEY_HOME"       },
    {css::awt::Key::END           , "KEY_END"        },
    {css::awt::Key::PAGEUP        , "KEY_PAGEUP"     },
    {css::awt::Key::PAGEDOWN      , "KEY_PAGEDOWN"   },
    {css::awt::Key::RETURN        , "KEY_RETURN"     },
    {css::awt::Key::ESCAPE        , "KEY_ESCAPE"     },
    {css::awt::Key::TAB           , "KEY_TAB"        },
    {css::awt::Key::BACKSPACE     , "KEY_BACKSPACE"  },
    {css::awt::Key::SPACE         , "KEY_SPACE"      },
    {css::awt::Key::INSERT        , "KEY_INSERT"     },
    {css::awt::Key::DELETE        , "KEY_DELETE"     },
    {css::awt::Key::ADD           , "KEY_ADD"        },
    {css::awt::Key::SUBTRACT      , "KEY_SUBTRACT"   },
    {css::awt::Key::MULTIPLY      , "KEY_MULTIPLY"   },
    {css::awt::Key::DIVIDE        , "KEY_DIVIDE"     },
    {css::awt::Key::POINT         , "KEY_POINT"      },
    {css::awt::Key::COMMA         , "KEY_COMMA"      },
    {css::awt::Key::LESS          , "KEY_LESS"       },
    {css::awt::Key::GREATER       , "KEY_GREATER"    },
    {css::awt::Key::EQUAL         , "KEY_EQUAL"      },
    {css::awt::Key::OPEN          , "KEY_OPEN"       },
    {css::awt::Key::CUT           , "KEY_CUT"        },
    {css::awt::Key::COPY          , "KEY_COPY"       },
    {css::awt::Key::PASTE         , "KEY_PASTE"      },
    {css::awt::Key::UNDO          , "KEY_UNDO"       },
    {css::awt::Key::REPEAT        , "KEY_REPEAT"     },
    {css::awt::Key::FIND          , "KEY_FIND"       },
    {css::awt::Key::PROPERTIES    , "KEY_PROPERTIES" },
    {css::awt::Key::FRONT         , "KEY_FRONT"      },
    {css::awt::Key::CONTEXTMENU   , "KEY_CONTEXTMENU"},
    {css::awt::Key::HELP          , "KEY_HELP"       },
    {css::awt::Key::MENU          , "KEY_MENU"       },
    {css::awt::Key::HANGUL_HANJA  , "KEY_HANGUL_HANJA"},
    {css::awt::Key::DECIMAL       , "KEY_DECIMAL"    },
    {css::awt::Key::TILDE         , "KEY_TILDE"      },
    {css::awt::Key::QUOTELEFT     , "KEY_QUOTELEFT"  },
	{0                            , ""               } // mark the end of this array!
};                             
=====================================================================
Found a 227 line (1214 tokens) duplication in the following files: 
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/plugin/aqua/macmgr.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/plugin/unx/unxmgr.cxx

using namespace rtl;
using namespace std;
using namespace com::sun::star::uno;
using namespace com::sun::star::plugin;

// Unix specific implementation
static bool CheckPlugin( const ByteString& rPath, list< PluginDescription* >& rDescriptions )
{
#if OSL_DEBUG_LEVEL > 1
    fprintf( stderr, "Trying plugin %s ... ", rPath.GetBuffer() );
#endif

    xub_StrLen nPos = rPath.SearchBackward( '/' );
    if( nPos == STRING_NOTFOUND )
    {
#if OSL_DEBUG_LEVEL > 1
        fprintf( stderr, "no absolute path to plugin\n" );
#endif
        return false;
    }

    ByteString aBaseName = rPath.Copy( nPos+1 );
    if( aBaseName.Equals( "libnullplugin.so" ) )
    {
#if OSL_DEBUG_LEVEL > 1
        fprintf( stderr, "don't like %s\n", aBaseName.GetBuffer() );
#endif
        return false;
    }

    struct stat aStat;
    if( stat( rPath.GetBuffer(), &aStat ) || ! S_ISREG( aStat.st_mode ) )
    {
#if OSL_DEBUG_LEVEL > 1
        fprintf( stderr, "%s is not a regular file\n", rPath.GetBuffer() );
#endif
        return false;
    }


    rtl_TextEncoding aEncoding = osl_getThreadTextEncoding();

    ByteString aCommand( "pluginapp.bin \"" );
    aCommand.Append( rPath );
    aCommand.Append( '"' );

    FILE* pResult = popen( aCommand.GetBuffer(), "r" );
    int nDescriptions = 0;
    if( pResult )
    {
		OStringBuffer aMIME;
        char buf[256];
        while( fgets( buf, sizeof( buf ), pResult ) )
        {
            for( int i = 0; i < sizeof(buf) && buf[i]; ++i )
            {
                if( buf[i] == '\n' )
                    buf[i] = ';';
            }
            aMIME.append( buf );
        }
        pclose( pResult );

        if( aMIME.getLength() > 0 )
        {
            OString aLine = aMIME.makeStringAndClear();
            
            sal_Int32 nIndex = 0;
            while( nIndex != -1 )
            {
                OString aType = aLine.getToken( 0, ';', nIndex );

                sal_Int32 nTypeIndex = 0;
                OString aMimetype	= aType.getToken( 0, ':', nTypeIndex );
                OString aExtLine	= aType.getToken( 0, ':', nTypeIndex );
                if( nTypeIndex < 0 ) // ensure at least three tokens
                    continue;
                OString aDesc		= aType.getToken( 0, ':', nTypeIndex );

                // create extension list string
                sal_Int32 nExtIndex = 0;
                OStringBuffer aExtension;
                while( nExtIndex != -1 )
                {
                    OString aExt = aExtLine.getToken( 0, ',', nExtIndex);
                    if( aExt.indexOf( "*." ) != 0 )
                        aExtension.append( "*." );
                    aExtension.append( aExt );
                    if( nExtIndex != -1 )
                        aExtension.append( ';' );
                }

                PluginDescription* pNew = new PluginDescription;
                // set plugin name (path to library)
                pNew->PluginName	= OStringToOUString( rPath, aEncoding );
                // set mimetype
                pNew->Mimetype 	= OStringToOUString( aMimetype, aEncoding );
                // set extension line
                pNew->Extension	= OStringToOUString( aExtension.makeStringAndClear(), aEncoding );
                // set description
                pNew->Description= OStringToOUString( aDesc, aEncoding );
                rDescriptions.push_back( pNew );
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr, "Mimetype: %s\nExtension: %s\n"
                         "Description: %s\n",
                         OUStringToOString( pNew->Mimetype, aEncoding ).getStr(),
                         OUStringToOString( pNew->Extension, aEncoding ).getStr(),
                         OUStringToOString( pNew->Description, aEncoding ).getStr()
                         );
#endif
            }
        }
#if OSL_DEBUG_LEVEL > 1
        else
            fprintf( stderr, "result of \"%s\" contains no mimtype\n",
                     aCommand.GetBuffer() );
#endif
	}
#if OSL_DEBUG_LEVEL > 1
    else
        fprintf( stderr, "command \"%s\" failed\n", aCommand.GetBuffer() );
#endif
	return nDescriptions > 0;
}

Sequence<PluginDescription> XPluginManager_Impl::getPluginDescriptions() throw()
{
	static Sequence<PluginDescription> aDescriptions;
	static BOOL bHavePlugins = FALSE;
	if( ! bHavePlugins )
	{
        rtl_TextEncoding aEncoding = osl_getThreadTextEncoding();
		list<PluginDescription*> aPlugins;
		int i;

		// unix: search for plugins in /usr/lib/netscape/plugins,
		//       ~/.netscape/plugins und NPX_PLUGIN_PATH
		// additionally: search in PluginsPath
        static const char* pHome = getenv( "HOME" );
        static const char* pNPXPluginPath = getenv( "NPX_PLUGIN_PATH" );

		ByteString aSearchPath( "/usr/lib/netscape/plugins" );
        if( pHome )
        {
            aSearchPath.Append( ':' );
            aSearchPath.Append( pHome );
            aSearchPath += "/.netscape/plugins";
        }
        if( pNPXPluginPath )
        {
            aSearchPath.Append( ':' );
            aSearchPath += pNPXPluginPath;
        }

		const Sequence< ::rtl::OUString >& rPaths( PluginManager::getAdditionalSearchPaths() );
		for( i = 0; i < rPaths.getLength(); i++ )
		{
			aSearchPath += ":";
			aSearchPath += ByteString( String( rPaths.getConstArray()[i] ), aEncoding );
		}


        long aBuffer[ sizeof( struct dirent ) + _PC_NAME_MAX +1 ];
		int nPaths = aSearchPath.GetTokenCount( ':' );
		for( i = 0; i < nPaths; i++ )
		{
			ByteString aPath( aSearchPath.GetToken( i, ':' ) );
			if( aPath.Len() )
			{
                DIR* pDIR = opendir( aPath.GetBuffer() );
                struct dirent* pDirEnt = NULL;
                while( pDIR && ! readdir_r( pDIR, (struct dirent*)aBuffer, &pDirEnt ) && pDirEnt )
                {
                    char* pBaseName = ((struct dirent*)aBuffer)->d_name;
                    if( pBaseName[0] != '.' ||
                        pBaseName[1] != '.' ||
                        pBaseName[2] != 0 )
                    {
                        ByteString aFileName( aPath );
                        aFileName += "/";
                        aFileName += pBaseName;
                        CheckPlugin( aFileName, aPlugins );
                    }
				}
                if( pDIR )
                    closedir( pDIR );
			}
		}

        // try ~/.mozilla/pluginreg.dat
        ByteString aMozPluginreg( pHome );
        aMozPluginreg.Append( "/.mozilla/pluginreg.dat" );
        FILE* fp = fopen( aMozPluginreg.GetBuffer(), "r" );
        if( fp )
        {
#if OSL_DEBUG_LEVEL > 1
            fprintf( stderr, "parsing %s\n", aMozPluginreg.GetBuffer() );
#endif
            char aLine[1024];
            while( fgets( aLine, sizeof( aLine ), fp ) )
            {
                int nLineLen = strlen( aLine );
                int nDotPos;
                for( nDotPos = nLineLen-1; nDotPos > 0 && aLine[nDotPos] != ':'; nDotPos-- )
                    ;
                if( aLine[0] == '/' && aLine[nDotPos] == ':' && aLine[nDotPos+1] == '$' )
                    CheckPlugin( ByteString( aLine, nDotPos ), aPlugins );
            }
            fclose( fp );
        }

        // create return value
		aDescriptions = Sequence<PluginDescription>( aPlugins.size() );
#if OSL_DEBUG_LEVEL > 1
        fprintf( stderr, "found %d plugins\n", aPlugins.size() );
#endif
		list<PluginDescription*>::iterator iter;
		for( iter = aPlugins.begin(), i=0; iter != aPlugins.end(); ++iter ,i++ )
		{
			aDescriptions.getArray()[ i ] = **iter;
			delete *iter;
		}
		aPlugins.clear();
		bHavePlugins = TRUE;
	}
	return aDescriptions;
}
=====================================================================
Found a 250 line (1194 tokens) duplication in the following files: 
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/lex.c
Starting at line 267 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_lex.c

						if( isalpha( j ) || (j == '_') )
#else							
                        if (('a' <= j && j <= 'z') || ('A' <= j && j <= 'Z')
                            || j == '_')
#endif
                            bigfsm[j][fp->state] = (short) nstate;
                    continue;
                case C_NUM:
                    for (j = '0'; j <= '9'; j++)
                        bigfsm[j][fp->state] = (short) nstate;
                    continue;
                default:
                    bigfsm[fp->ch[i]][fp->state] = (short) nstate;
            }
        }
    }

    /*
     * install special cases for ? (trigraphs),  \ (splicing), runes, and
     * EOB
     */
    for (i = 0; i < MAXSTATE; i++)
    {
        for (j = 0; j < 0xFF; j++)
            if (j == '?' || j == '\\' || j == '\n' || j == '\r')
            {
                if (bigfsm[j][i] > 0)
                    bigfsm[j][i] = ~bigfsm[j][i];
                bigfsm[j][i] &= ~QBSBIT;
            }
        bigfsm[EOB][i] = ~S_EOB;
        if (bigfsm[EOFC][i] >= 0)
            bigfsm[EOFC][i] = ~S_EOF;
    }
}

void
    fixlex(void)
{
    /* do C++ comments? */
    if ((Cplusplus == 0) || (Cflag != 0))
        bigfsm['/'][COM1] = bigfsm['x'][COM1];
}

/*
 * fill in a row of tokens from input, terminated by NL or END
 * First token is put at trp->lp.
 * Reset is non-zero when the input buffer can be "rewound."
 * The value is a flag indicating that possible macros have
 * been seen in the row.
 */
int
    gettokens(Tokenrow * trp, int reset)
{
    register int c, state, oldstate;
    register uchar *ip;
    register Token *tp, *maxp;
    int runelen;
    Source *s = cursource;
    int nmac = 0;

    tp = trp->lp;
    ip = s->inp;
    if (reset)
    {
        s->lineinc = 0;
        if (ip >= s->inl)
        {                               /* nothing in buffer */
            s->inl = s->inb;
            fillbuf(s);
            ip = s->inp = s->inb;
        }
        else
            if (ip >= s->inb + (3 * INS / 4))
            {
                memmove(s->inb, ip, 4 + s->inl - ip);
                s->inl = s->inb + (s->inl - ip);
                ip = s->inp = s->inb;
            }
    }
    maxp = &trp->bp[trp->max];
    runelen = 1;
    for (;;)
    {
continue2:
        if (tp >= maxp)
        {
            trp->lp = tp;
            tp = growtokenrow(trp);
            maxp = &trp->bp[trp->max];
        }
        tp->type = UNCLASS;
        tp->t = ip;
        tp->wslen = 0;
        tp->flag = 0;
        state = START;
        for (;;)
        {
            oldstate = state;

            c = *ip;
						
            if ((state = bigfsm[c][state]) >= 0)
            {
                ip += runelen;
                runelen = 1;
                continue;
            }
            state = ~state;
    reswitch:
            switch (state & 0177)
            {
                case S_SELF:
                    ip += runelen;
                    runelen = 1;
                case S_SELFB:
                    tp->type = (unsigned char) GETACT(state);
                    tp->len = ip - tp->t;
                    tp++;
                    goto continue2;

                case S_NAME:            /* like S_SELFB but with nmac check */
                    tp->type = NAME;
                    tp->len = ip - tp->t;
                    nmac |= quicklook(tp->t[0], tp->len > 1 ? tp->t[1] : 0);
                    tp++;
                    goto continue2;

                case S_WS:
                    tp->wslen = ip - tp->t;
                    tp->t = ip;
                    state = START;
                    continue;

                default:
                    if ((state & QBSBIT) == 0)
                    {
                        ip += runelen;
                        runelen = 1;
                        continue;
                    }
                    state &= ~QBSBIT;
                    s->inp = ip;

					if (c == '\n')
					{
					    while (s->inp + 1 >= s->inl && fillbuf(s) != EOF);
					
						if (s->inp[1] == '\r')
						{
							memmove(s->inp + 1, s->inp + 2, s->inl - s->inp + 2);
							s->inl -= 1;
						}

                        goto reswitch;
					}

					if (c == '\r')
					{
    				    while (s->inp + 1 >= s->inl && fillbuf(s) != EOF);
					
						if (s->inp[1] == '\n')
						{
							memmove(s->inp, s->inp + 1, s->inl - s->inp + 1);
							s->inl -= 1;
						}
						else
							*s->inp = '\n';

						state = oldstate;
                        continue;
					}

                    if (c == '?')
                    {                   /* check trigraph */
                        if (trigraph(s))
                        {
                            state = oldstate;
                            continue;
                        }
                        goto reswitch;
                    }
                    if (c == '\\')
                    {                   /* line-folding */
                        if (foldline(s))
                        {
                            s->lineinc++;
                            state = oldstate;
                            continue;
                        }
                        goto reswitch;
                    }
                    error(WARNING, "Lexical botch in cpp");
                    ip += runelen;
                    runelen = 1;
                    continue;

                case S_EOB:
                    s->inp = ip;
                    fillbuf(cursource);
                    state = oldstate;
                    continue;

                case S_EOF:
                    tp->type = END;
                    tp->len = 0;
                    s->inp = ip;
                    if (tp != trp->bp && (tp - 1)->type != NL && cursource->fd != -1)
                        error(WARNING, "No newline at end of file");
                    trp->lp = tp + 1;
                    return nmac;

                case S_STNL:
                    error(ERROR, "Unterminated string or char const");
                case S_NL:
                    tp->t = ip;
                    tp->type = NL;
                    tp->len = 1;
                    tp->wslen = 0;
                    s->lineinc++;
                    s->inp = ip + 1;
                    trp->lp = tp + 1;
                    return nmac;

                case S_EOFSTR:
                    error(FATAL, "EOF in string or char constant");
                    break;

                case S_COMNL:
                    s->lineinc++;
                    state = COM2;
                    ip += runelen;
                    runelen = 1;
                    continue;

                case S_EOFCOM:
                    error(WARNING, "EOF inside comment");
                    --ip;
                case S_COMMENT:
					if (!Cflag)
					{
						tp->t = ++ip;
						tp->t[-1] = ' ';
						tp->wslen = 1;
						state = START;
						continue;
					}
					else
					{
	                    runelen = 1;
=====================================================================
Found a 286 line (1193 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sprophelp.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sprophelp.cxx

}


PropertyChgHelper::~PropertyChgHelper()
{	
}


void PropertyChgHelper::AddAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->addPropertyChangeListener( pPropName[i], this );
		}
	}
}

void PropertyChgHelper::RemoveAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->removePropertyChangeListener( pPropName[i], this );
		}
	}
}
		 

void PropertyChgHelper::LaunchEvent( const LinguServiceEvent &rEvt )
{
	cppu::OInterfaceIteratorHelper aIt( aLngSvcEvtListeners );
	while (aIt.hasMoreElements())
	{
		Reference< XLinguServiceEventListener > xRef( aIt.next(), UNO_QUERY );
		if (xRef.is())
			xRef->processLinguServiceEvent( rEvt );
	}
}


void SAL_CALL PropertyChgHelper::disposing( const EventObject& rSource ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	if (rSource.Source == xPropSet)
	{
		RemoveAsPropListener();
		xPropSet = NULL;
		aPropNames.realloc( 0 );
	}
}
    
	
sal_Bool SAL_CALL 
	PropertyChgHelper::addLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.addInterface( rxListener ) != nCount;
	}
	return bRes;
}


sal_Bool SAL_CALL 
	PropertyChgHelper::removeLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.removeInterface( rxListener ) != nCount;
	}
	return bRes;
}

///////////////////////////////////////////////////////////////////////////

static const char *aSP[] =
{
	UPN_IS_GERMAN_PRE_REFORM,
	UPN_IS_IGNORE_CONTROL_CHARACTERS,
	UPN_IS_USE_DICTIONARY_LIST,
	UPN_IS_SPELL_UPPER_CASE,
	UPN_IS_SPELL_WITH_DIGITS,
	UPN_IS_SPELL_CAPITALIZATION
};


PropertyHelper_Spell::PropertyHelper_Spell(
		const Reference< XInterface > & rxSource,
		Reference< XPropertySet > &rxPropSet ) :
	PropertyChgHelper	( rxSource, rxPropSet, aSP, sizeof(aSP) / sizeof(aSP[0]) )
{
	SetDefault();
	INT32 nLen = GetPropNames().getLength();
	if (rxPropSet.is() && nLen)
	{
		const OUString *pPropName = GetPropNames().getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			BOOL *pbVal		= NULL,
				 *pbResVal	= NULL;

			if (A2OU( UPN_IS_GERMAN_PRE_REFORM ) == pPropName[i])
			{
				pbVal	 = &bIsGermanPreReform;
				pbResVal = &bResIsGermanPreReform;
			}
			else if (A2OU( UPN_IS_IGNORE_CONTROL_CHARACTERS ) == pPropName[i])
			{
				pbVal	 = &bIsIgnoreControlCharacters;
				pbResVal = &bResIsIgnoreControlCharacters;
			}
			else if (A2OU( UPN_IS_USE_DICTIONARY_LIST ) == pPropName[i])
			{
				pbVal	 = &bIsUseDictionaryList;
				pbResVal = &bResIsUseDictionaryList;
			}
			else if (A2OU( UPN_IS_SPELL_UPPER_CASE ) == pPropName[i])
			{
				pbVal	 = &bIsSpellUpperCase;
				pbResVal = &bResIsSpellUpperCase;
			}
			else if (A2OU( UPN_IS_SPELL_WITH_DIGITS ) == pPropName[i])
			{
				pbVal	 = &bIsSpellWithDigits;
				pbResVal = &bResIsSpellWithDigits;
			}
			else if (A2OU( UPN_IS_SPELL_CAPITALIZATION ) == pPropName[i])
			{
				pbVal	 = &bIsSpellCapitalization;
				pbResVal = &bResIsSpellCapitalization;
			}
			
			if (pbVal && pbResVal)
			{
				rxPropSet->getPropertyValue( pPropName[i] ) >>= *pbVal;
				*pbResVal = *pbVal;
			}
		}
	}
}


PropertyHelper_Spell::~PropertyHelper_Spell()
{
}


void PropertyHelper_Spell::SetDefault()
{
	bResIsGermanPreReform			= bIsGermanPreReform			= FALSE;
	bResIsIgnoreControlCharacters	= bIsIgnoreControlCharacters	= TRUE;
	bResIsUseDictionaryList			= bIsUseDictionaryList			= TRUE;
	bResIsSpellUpperCase			= bIsSpellUpperCase				= FALSE;
	bResIsSpellWithDigits			= bIsSpellWithDigits			= FALSE;
	bResIsSpellCapitalization		= bIsSpellCapitalization		= TRUE;
}


void SAL_CALL 
	PropertyHelper_Spell::propertyChange( const PropertyChangeEvent& rEvt ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );

	if (GetPropSet().is()  &&  rEvt.Source == GetPropSet())
	{
		INT16 nLngSvcFlags = 0;
		BOOL bSCWA = FALSE,	// SPELL_CORRECT_WORDS_AGAIN ?
			 bSWWA = FALSE;	// SPELL_WRONG_WORDS_AGAIN ?

		BOOL *pbVal = NULL;
		switch (rEvt.PropertyHandle)
		{
			case UPH_IS_IGNORE_CONTROL_CHARACTERS :
			{
				pbVal = &bIsIgnoreControlCharacters; 
				break;
			}
			case UPH_IS_GERMAN_PRE_REFORM		  :
			{
				pbVal = &bIsGermanPreReform; 
				bSCWA = bSWWA = TRUE;
				break;
			}
			case UPH_IS_USE_DICTIONARY_LIST		  :
			{
				pbVal = &bIsUseDictionaryList; 
				bSCWA = bSWWA = TRUE;
				break;
			}
			case UPH_IS_SPELL_UPPER_CASE		  :
			{
				pbVal = &bIsSpellUpperCase;
				bSCWA = FALSE == *pbVal;	// FALSE->TRUE change?
				bSWWA = !bSCWA;				// TRUE->FALSE change?
				break;
			}
			case UPH_IS_SPELL_WITH_DIGITS		  :
			{
				pbVal = &bIsSpellWithDigits; 
				bSCWA = FALSE == *pbVal;	// FALSE->TRUE change?
				bSWWA = !bSCWA;				// TRUE->FALSE change?
				break;
			}
			case UPH_IS_SPELL_CAPITALIZATION	  :
			{
				pbVal = &bIsSpellCapitalization; 
				bSCWA = FALSE == *pbVal;	// FALSE->TRUE change?
				bSWWA = !bSCWA;				// TRUE->FALSE change?
				break;
			}
			default:
				DBG_ERROR( "unknown property" );
		}
		if (pbVal)
			rEvt.NewValue >>= *pbVal;

		if (bSCWA)
			nLngSvcFlags |= LinguServiceEventFlags::SPELL_CORRECT_WORDS_AGAIN;
		if (bSWWA)
			nLngSvcFlags |= LinguServiceEventFlags::SPELL_WRONG_WORDS_AGAIN;
		if (nLngSvcFlags)
		{
			LinguServiceEvent aEvt( GetEvtObj(), nLngSvcFlags );
			LaunchEvent( aEvt );
		}
	}
}

		  
void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals )
{
	// set return value to default value unless there is an 
	// explicitly supplied temporary value
	bResIsGermanPreReform			= bIsGermanPreReform;
	bResIsIgnoreControlCharacters	= bIsIgnoreControlCharacters;
	bResIsUseDictionaryList			= bIsUseDictionaryList;
	bResIsSpellUpperCase			= bIsSpellUpperCase;
	bResIsSpellWithDigits			= bIsSpellWithDigits;
	bResIsSpellCapitalization		= bIsSpellCapitalization;
	//
	INT32 nLen = rPropVals.getLength();
	if (nLen)
	{
		const PropertyValue *pVal = rPropVals.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			BOOL *pbResVal = NULL;
			switch (pVal[i].Handle)
			{
				case UPH_IS_GERMAN_PRE_REFORM		  : pbResVal = &bResIsGermanPreReform; break;
				case UPH_IS_IGNORE_CONTROL_CHARACTERS : pbResVal = &bResIsIgnoreControlCharacters; break;
				case UPH_IS_USE_DICTIONARY_LIST		  : pbResVal = &bResIsUseDictionaryList; break;
				case UPH_IS_SPELL_UPPER_CASE		  : pbResVal = &bResIsSpellUpperCase; break;
				case UPH_IS_SPELL_WITH_DIGITS		  : pbResVal = &bResIsSpellWithDigits; break;
				case UPH_IS_SPELL_CAPITALIZATION	  : pbResVal = &bResIsSpellCapitalization; break;
				default:
					DBG_ERROR( "unknown property" );
			}
			if (pbResVal)
				pVal[i].Value >>= *pbResVal;
		}
	}
}
=====================================================================
Found a 254 line (1170 tokens) duplication in the following files: 
Starting at line 790 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 950 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

		if( ! pKey || nPaperBin >= (ULONG)pKey->countValues() )
			aRet = aData.m_pParser->getDefaultInputSlot();
		else
        {
            const PPDValue* pValue = pKey->getValue( nPaperBin );
            if( pValue )
                aRet = pValue->m_aOptionTranslation.Len() ? pValue->m_aOptionTranslation : pValue->m_aOption;
        }
	}

	return aRet;
}

// -----------------------------------------------------------------------

ULONG PspSalInfoPrinter::GetCapabilities( const ImplJobSetup* pJobSetup, USHORT nType )
{
	switch( nType )
	{
		case PRINTER_CAPABILITIES_SUPPORTDIALOG:
			return 1;
		case PRINTER_CAPABILITIES_COPIES:
			return 0xffff;
		case PRINTER_CAPABILITIES_COLLATECOPIES:
			return 0;
		case PRINTER_CAPABILITIES_SETORIENTATION:
			return 1;
		case PRINTER_CAPABILITIES_SETPAPERBIN:
			return 1;
		case PRINTER_CAPABILITIES_SETPAPERSIZE:
			return 1;
		case PRINTER_CAPABILITIES_SETPAPER:
			return 0;
		case PRINTER_CAPABILITIES_FAX:
		{
			PrinterInfoManager& rManager = PrinterInfoManager::get();
			PrinterInfo aInfo( rManager.getPrinterInfo( pJobSetup->maPrinterName ) );
			String aFeatures( aInfo.m_aFeatures );
			int nTokenCount = aFeatures.GetTokenCount( ',' );
			for( int i = 0; i < nTokenCount; i++ )
			{
				if( aFeatures.GetToken( i ).CompareToAscii( "fax", 3 ) == COMPARE_EQUAL )
					return 1;
			}
			return 0;
		}
		case PRINTER_CAPABILITIES_PDF:
		{
			PrinterInfoManager& rManager = PrinterInfoManager::get();
			PrinterInfo aInfo( rManager.getPrinterInfo( pJobSetup->maPrinterName ) );
			String aFeatures( aInfo.m_aFeatures );
			int nTokenCount = aFeatures.GetTokenCount( ',' );
			for( int i = 0; i < nTokenCount; i++ )
			{
				if( aFeatures.GetToken( i ).CompareToAscii( "pdf=", 4 ) == COMPARE_EQUAL )
					return 1;
			}
			return 0;
		}
		default: break;
	};
	return 0;
}

// =======================================================================

/*
 *	SalPrinter
 */

 PspSalPrinter::PspSalPrinter( SalInfoPrinter* pInfoPrinter )
 : m_bFax( false ),
   m_bPdf( false ),
   m_bSwallowFaxNo( false ),
   m_pGraphics( NULL ),
   m_nCopies( 1 ),
   m_pInfoPrinter( pInfoPrinter )
{
}

// -----------------------------------------------------------------------

PspSalPrinter::~PspSalPrinter()
{
}

// -----------------------------------------------------------------------

static String getTmpName()
{
    rtl::OUString aTmp, aSys;
    osl_createTempFile( NULL, NULL, &aTmp.pData );
    osl_getSystemPathFromFileURL( aTmp.pData, &aSys.pData );

    return aSys;
}

BOOL PspSalPrinter::StartJob(
	const XubString* pFileName,
	const XubString& rJobName,
	const XubString& rAppName,
	ULONG nCopies, BOOL /*bCollate*/,
	ImplJobSetup* pJobSetup )
{
    vcl_sal::PrinterUpdate::jobStarted();

	m_bFax		= false;
	m_bPdf		= false;
	m_aFileName	= pFileName ? *pFileName : String();
	m_aTmpFile	= String();
    m_nCopies		= nCopies;

	JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, m_aJobData );
    if( m_nCopies > 1 )
        // in case user did not do anything (m_nCopies=1)
        // take the default from jobsetup
        m_aJobData.m_nCopies = m_nCopies;

	// check wether this printer is configured as fax
    int nMode = 0;
	const PrinterInfo& rInfo( PrinterInfoManager::get().getPrinterInfo( m_aJobData.m_aPrinterName ) );
    sal_Int32 nIndex = 0;
    while( nIndex != -1 )
	{
		OUString aToken( rInfo.m_aFeatures.getToken( 0, ',', nIndex ) );
		if( ! aToken.compareToAscii( "fax", 3 ) )
		{
			m_bFax = true;
			m_aTmpFile = getTmpName();
            nMode = S_IRUSR | S_IWUSR;

			::std::hash_map< ::rtl::OUString, ::rtl::OUString, ::rtl::OUStringHash >::const_iterator it;
			it = pJobSetup->maValueMap.find( ::rtl::OUString::createFromAscii( "FAX#" ) );
			if( it != pJobSetup->maValueMap.end() )
				m_aFaxNr = it->second;

            sal_Int32 nPos = 0;
			m_bSwallowFaxNo = ! aToken.getToken( 1, '=', nPos ).compareToAscii( "swallow", 7 ) ? true : false;

			break;
		}
		if( ! aToken.compareToAscii( "pdf=", 4 ) )
		{
			m_bPdf = true;
			m_aTmpFile = getTmpName();
            nMode = S_IRUSR | S_IWUSR;

			if( ! m_aFileName.Len() )
			{
				m_aFileName = getPdfDir( rInfo );
				m_aFileName.Append( '/' );
				m_aFileName.Append( rJobName );
				m_aFileName.AppendAscii( ".pdf" );
			}
			break;
		}
	}
	m_aPrinterGfx.Init( m_aJobData );

    // set/clear backwards compatibility flag
    bool bStrictSO52Compatibility = false;
    std::hash_map<rtl::OUString, rtl::OUString, rtl::OUStringHash >::const_iterator compat_it =
        pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" ) ) );

    if( compat_it != pJobSetup->maValueMap.end() )
    {
        if( compat_it->second.equalsIgnoreAsciiCaseAscii( "true" ) )
            bStrictSO52Compatibility = true;
    }
    m_aPrinterGfx.setStrictSO52Compatibility( bStrictSO52Compatibility );

	return m_aPrintJob.StartJob( m_aTmpFile.Len() ? m_aTmpFile : m_aFileName, nMode, rJobName, rAppName, m_aJobData, &m_aPrinterGfx ) ? TRUE : FALSE;
}

// -----------------------------------------------------------------------

BOOL PspSalPrinter::EndJob()
{
	BOOL bSuccess = m_aPrintJob.EndJob();

	if( bSuccess )
	{
		// check for fax
		if( m_bFax )
		{

			const PrinterInfo& rInfo( PrinterInfoManager::get().getPrinterInfo( m_aJobData.m_aPrinterName ) );
			// sendAFax removes the file after use
			bSuccess = sendAFax( m_aFaxNr, m_aTmpFile, rInfo.m_aCommand );
		}
		else if( m_bPdf )
		{
			const PrinterInfo& rInfo( PrinterInfoManager::get().getPrinterInfo( m_aJobData.m_aPrinterName ) );
			bSuccess = createPdf( m_aFileName, m_aTmpFile, rInfo.m_aCommand );
		}
	}
    vcl_sal::PrinterUpdate::jobEnded();
	return bSuccess;
}

// -----------------------------------------------------------------------

BOOL PspSalPrinter::AbortJob()
{
    BOOL bAbort = m_aPrintJob.AbortJob() ? TRUE : FALSE;
    vcl_sal::PrinterUpdate::jobEnded();
	return bAbort;
}

// -----------------------------------------------------------------------

SalGraphics* PspSalPrinter::StartPage( ImplJobSetup* pJobSetup, BOOL )
{
	JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, m_aJobData );
	m_pGraphics = new PspGraphics( &m_aJobData, &m_aPrinterGfx, m_bFax ? &m_aFaxNr : NULL, m_bSwallowFaxNo, m_pInfoPrinter  );
    m_pGraphics->SetLayout( 0 );
    if( m_nCopies > 1 )
        // in case user did not do anything (m_nCopies=1)
        // take the default from jobsetup
        m_aJobData.m_nCopies = m_nCopies;

	m_aPrintJob.StartPage( m_aJobData );
	m_aPrinterGfx.Init( m_aPrintJob );

	return m_pGraphics;
}

// -----------------------------------------------------------------------

BOOL PspSalPrinter::EndPage()
{
	sal_Bool bResult = m_aPrintJob.EndPage();
	m_aPrinterGfx.Clear();
	return bResult ? TRUE : FALSE;
}

// -----------------------------------------------------------------------

ULONG PspSalPrinter::GetErrorCode()
{
	return 0;
}

/*
 *  vcl::PrinterUpdate
 */

Timer* vcl_sal::PrinterUpdate::pPrinterUpdateTimer = NULL;
int vcl_sal::PrinterUpdate::nActiveJobs = 0;

void vcl_sal::PrinterUpdate::doUpdate()
{
    ::psp::PrinterInfoManager& rManager( ::psp::PrinterInfoManager::get() );
    if( rManager.checkPrintersChanged( false ) )
=====================================================================
Found a 366 line (1148 tokens) duplication in the following files: 
Starting at line 2196 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 871 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saPeerSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_FTP );
			::osl::StreamSocket ssConnection;
			
			/// launch server socket 
			asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);
			sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket bind address failed.", sal_True == bOK1 );
			sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket listen failed.",  sal_True == bOK2 );
			asAcceptorSocket.enableNonBlockingMode( sal_True );
			asAcceptorSocket.acceptConnection(ssConnection); /// waiting for incoming connection...

			/// launch client socket 
			csConnectorSocket.connect( saTargetSocketAddr, pTimeout );   /// connecting to server...

			/// is send ready?
			sal_Bool bOK3 = csConnectorSocket.isSendReady( pTimeout );
				
			CPPUNIT_ASSERT_MESSAGE( "test for isSendReady function: setup a connection and then check if it can transmit data.", 
  									( sal_True == bOK3 ) );
		}
	
		
		CPPUNIT_TEST_SUITE( isSendReady );
		CPPUNIT_TEST( isSendReady_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class isSendReady


	/** testing the methods:
		inline oslSocketType	SAL_CALL getType() const;
		
	*/

	class getType : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
		void getType_001()
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
			::osl::Socket sSocket(sHandle);
	
			CPPUNIT_ASSERT_MESSAGE( "test for getType function: get type of socket.", 
									osl_Socket_TypeStream ==  sSocket.getType( ) );
		}
	
		void getType_002()
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeDgram, osl_Socket_ProtocolIp );
			::osl::Socket sSocket(sHandle);
	
			CPPUNIT_ASSERT_MESSAGE( "test for getType function: get type of socket.", 
									osl_Socket_TypeDgram ==  sSocket.getType( ) );
		}
		
#ifdef UNX
		// mindy: since on LINUX and SOLARIS, Raw type socket can not be created, so do not test getType() here
		// mindy: and add one test case to test creating Raw type socket--> ctors_TypeRaw()
		void getType_003()
		{
			CPPUNIT_ASSERT_MESSAGE( "test for getType function: get type of socket.this is not passed in (LINUX, SOLARIS), the osl_Socket_TypeRaw, type socket can not be created.", 
									sal_True);
		}
#else
		void getType_003()
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeRaw, osl_Socket_ProtocolIp );
			::osl::Socket sSocket(sHandle);
	
			CPPUNIT_ASSERT_MESSAGE( "test for getType function: get type of socket.", 
									osl_Socket_TypeRaw ==  sSocket.getType( ) );
		}
#endif
		
		CPPUNIT_TEST_SUITE( getType );
		CPPUNIT_TEST( getType_001 );
		CPPUNIT_TEST( getType_002 );
		CPPUNIT_TEST( getType_003 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class getType

	

	/** testing the methods:
		inline sal_Int32 SAL_CALL getOption(
			oslSocketOption Option,
			void* pBuffer,
			sal_uInt32 BufferLen,
			oslSocketOptionLevel Level= osl_Socket_LevelSocket) const;
			
		inline sal_Int32 getOption( oslSocketOption option ) const;
		
	*/

	class getOption : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

		/**  test writer's comment:
	
			in oslSocketOption, the osl_Socket_OptionType denote 1 as osl_Socket_TypeStream.
			2 as osl_Socket_TypeDgram, etc which is not mapping the oslSocketType enum. differ 
			in 1.
		*/
	
		void getOption_001()
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
			::osl::Socket sSocket(sHandle);
			sal_Int32 * pType = ( sal_Int32 * )malloc( sizeof ( sal_Int32 ) );
			*pType = 0; 
			sSocket.getOption( osl_Socket_OptionType,  pType, sizeof ( sal_Int32 ) );
			sal_Bool bOK = ( SOCK_STREAM ==  *pType );
			// there is a TypeMap(socket.c) which map osl_Socket_TypeStream to SOCK_STREAM on UNX, and SOCK_STREAM != osl_Socket_TypeStream 
			//sal_Bool bOK = ( TYPE_TO_NATIVE(osl_Socket_TypeStream) ==  *pType );
			free( pType );			
	
			CPPUNIT_ASSERT_MESSAGE( "test for getOption function: get type option of socket.", 
									sal_True == bOK );
		}
	
		// getsockopt error
		void getOption_004()
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeDgram, osl_Socket_ProtocolIp );
			::osl::Socket sSocket(sHandle);
	
			sal_Bool * pbDontRoute = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
			sal_Int32 nRes = sSocket.getOption( osl_Socket_OptionInvalid,  pbDontRoute, sizeof ( sal_Bool ) );
			free( pbDontRoute );
				
			CPPUNIT_ASSERT_MESSAGE( "test for getOption function: get invalid option of socket, should return -1.", 
									 nRes  ==  -1 );
		}
		
		void getOption_simple_001()
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeDgram, osl_Socket_ProtocolIp );
			::osl::Socket sSocket(sHandle);
	
			sal_Bool bOK = ( sal_False  ==  sSocket.getOption( osl_Socket_OptionDontRoute ) );
	
			CPPUNIT_ASSERT_MESSAGE( "test for getOption function: get debug option of socket.", 
									sal_True == bOK );
		}

		void getOption_simple_002()
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeDgram, osl_Socket_ProtocolIp );
			::osl::Socket sSocket(sHandle);
	
			sal_Bool bOK = ( sal_False  ==  sSocket.getOption( osl_Socket_OptionDebug ) );
	
			CPPUNIT_ASSERT_MESSAGE( "test for getOption function: get debug option of socket.", 
									sal_True == bOK );
		}
		
		CPPUNIT_TEST_SUITE( getOption );
		CPPUNIT_TEST( getOption_001 );
		CPPUNIT_TEST( getOption_004 );
		CPPUNIT_TEST( getOption_simple_001 );
		CPPUNIT_TEST( getOption_simple_002 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class getOption


	/** testing the methods:
		inline sal_Bool SAL_CALL setOption( oslSocketOption Option, 
											void* pBuffer,
											sal_uInt32 BufferLen,
											oslSocketOptionLevel Level= osl_Socket_LevelSocket ) const;		
	*/

	class setOption : public CppUnit::TestFixture
	{
	public:
		TimeValue *pTimeout;
// LLA: maybe there is an error in the source, 
//      as long as I remember, if a derived class do not overload all ctors there is a problem.

		::osl::AcceptorSocket asAcceptorSocket;
		
		void setUp( )
		{
			
		}
		
		void tearDown( )
		{
			asAcceptorSocket.close( );
		}

	
        // LLA:
        // getSocketOption returns BufferLen, or -1 if something failed

        // setSocketOption returns sal_True, if option could stored
        // else sal_False

		void setOption_001()
		{
			/// set and get option.
            int nBufferLen = sizeof ( sal_Int32);
            // LLA: SO_DONTROUTE expect an integer boolean, what ever it is, it's not sal_Bool!

			sal_Int32 * pbDontRouteSet = ( sal_Int32 * )malloc( sizeof ( sal_Int32 ) );
			*pbDontRouteSet = 1; // sal_True;

            sal_Int32 * pGetBuffer = ( sal_Int32 * )malloc( sizeof ( sal_Int32 ) );
            *pGetBuffer = 0;

            // maybe asAcceptorSocket is not right initialized
			sal_Bool  b1 = asAcceptorSocket.setOption( osl_Socket_OptionDontRoute,  pbDontRouteSet, nBufferLen );
            CPPUNIT_ASSERT_MESSAGE( "setOption function failed.", ( sal_True == b1 ) );
			sal_Int32 n2 = asAcceptorSocket.getOption( osl_Socket_OptionDontRoute,  pGetBuffer, nBufferLen );
            CPPUNIT_ASSERT_MESSAGE( "getOption function failed.", ( n2 == nBufferLen ) );
			
			// on Linux, the value of option is 1, on Solaris, it's 16, but it's not important the exact value,
			// just judge it is zero or not!
			sal_Bool bOK = ( 0  !=  *pGetBuffer );
			t_print("#setOption_001: getOption is %d \n", *pGetBuffer);

            // toggle check, set to 0
            *pbDontRouteSet = 0;

			sal_Bool  b3 = asAcceptorSocket.setOption( osl_Socket_OptionDontRoute,  pbDontRouteSet, sizeof ( sal_Int32 ) );
            CPPUNIT_ASSERT_MESSAGE( "setOption function failed.", ( sal_True == b3 ) );
			sal_Int32 n4 = asAcceptorSocket.getOption( osl_Socket_OptionDontRoute,  pGetBuffer, nBufferLen );
            CPPUNIT_ASSERT_MESSAGE( "getOption (DONTROUTE) function failed.", ( n4 == nBufferLen ) );
            
            sal_Bool bOK2 = ( 0  ==  *pGetBuffer );
                      
			t_print("#setOption_001: getOption is %d \n", *pGetBuffer);

// LLA: 			sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
// LLA: 			*pbDontTouteSet = sal_True;
// LLA: 			sal_Bool * pbDontTouteGet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
// LLA: 			*pbDontTouteGet = sal_False;
// LLA: 			asAcceptorSocket.setOption( osl_Socket_OptionDontRoute,  pbDontTouteSet, sizeof ( sal_Bool ) );
// LLA: 			asAcceptorSocket.getOption( osl_Socket_OptionDontRoute,  pbDontTouteGet, sizeof ( sal_Bool ) );
// LLA: 			::rtl::OUString suError = outputError(::rtl::OUString::valueOf((sal_Int32)*pbDontTouteGet), 
// LLA: 				::rtl::OUString::valueOf((sal_Int32)*pbDontTouteSet), 
// LLA: 				"test for setOption function: set osl_Socket_OptionDontRoute and then check");
// LLA: 			
// LLA: 			sal_Bool bOK = ( sal_True  ==  *pbDontTouteGet );
// LLA: 			free( pbDontTouteSet );
// LLA: 			free( pbDontTouteGet );
			
			CPPUNIT_ASSERT_MESSAGE( "test for setOption function: set option of a socket and then check.", 
  									( sal_True == bOK ) && (sal_True == bOK2) );

			free( pbDontRouteSet );
            free( pGetBuffer );
// LLA: 			CPPUNIT_ASSERT_MESSAGE( suError, sal_True == bOK );		
		}
		
		void setOption_002()
		{
			/// set and get option.

			// sal_Int32 * pbLingerSet = ( sal_Int32 * )malloc( nBufferLen );
			// *pbLingerSet = 7;
			// sal_Int32 * pbLingerGet = ( sal_Int32 * )malloc( nBufferLen );
            		/* struct */linger aLingerSet;
            		sal_Int32 nBufferLen = sizeof( struct linger );
            		aLingerSet.l_onoff = 1;
            		aLingerSet.l_linger = 7;

           		linger aLingerGet;

			asAcceptorSocket.setOption( osl_Socket_OptionLinger,  &aLingerSet, nBufferLen );
            
			sal_Int32 n1 = asAcceptorSocket.getOption( osl_Socket_OptionLinger,  &aLingerGet, nBufferLen );
            		CPPUNIT_ASSERT_MESSAGE( "getOption (SO_LINGER) function failed.", ( n1 == nBufferLen ) );
            
			//t_print("#setOption_002: getOption is %d \n", aLingerGet.l_linger);
			sal_Bool bOK = ( 7  ==  aLingerGet.l_linger );
			CPPUNIT_ASSERT_MESSAGE( "test for setOption function: set option of a socket and then check. ", 
				sal_True == bOK );	
			
		}
		
		void setOption_003()
		{
			linger aLingerSet;
		        aLingerSet.l_onoff = 1;
            		aLingerSet.l_linger = 7;

			sal_Bool b1 = asAcceptorSocket.setOption( osl_Socket_OptionLinger,  &aLingerSet, 0 );
            		printUString( asAcceptorSocket.getErrorAsString( ) );
			CPPUNIT_ASSERT_MESSAGE( "setOption (SO_LINGER) function failed for optlen is 0.", 
				( b1 == sal_False ) );            			
		}

		void setOption_simple_001()
		{
			/// set and get option.
			asAcceptorSocket.setOption( osl_Socket_OptionDontRoute, 1 ); //sal_True );
			sal_Bool bOK = ( 0  !=  asAcceptorSocket.getOption( osl_Socket_OptionDontRoute ) );
			
			t_print("setOption_simple_001(): getoption is %d \n", asAcceptorSocket.getOption( osl_Socket_OptionDontRoute ) );
			CPPUNIT_ASSERT_MESSAGE( "test for setOption function: set option of a socket and then check.", 
  									( sal_True == bOK ) );
		}
		
		void setOption_simple_002()
		{
			/// set and get option.
            // LLA: this does not work, due to the fact that SO_LINGER is a structure
// LLA:			asAcceptorSocket.setOption( osl_Socket_OptionLinger,  7 );
// LLA:			sal_Bool bOK = ( 7  ==  asAcceptorSocket.getOption( osl_Socket_OptionLinger ) );
			
// LLA:			CPPUNIT_ASSERT_MESSAGE( "test for setOption function: set option of a socket and then check.", 
// LLA: 									( sal_True == bOK ) );
		}
		
		CPPUNIT_TEST_SUITE( setOption );
		CPPUNIT_TEST( setOption_001 );
		CPPUNIT_TEST( setOption_002 );
		CPPUNIT_TEST( setOption_003 );
		CPPUNIT_TEST( setOption_simple_001 );
// LLA:		CPPUNIT_TEST( setOption_simple_002 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class setOption



	/** testing the method:
		inline sal_Bool SAL_CALL enableNonBlockingMode( sal_Bool bNonBlockingMode);
	*/
	class enableNonBlockingMode : public CppUnit::TestFixture
	{
	public:
		::osl::AcceptorSocket asAcceptorSocket;
		
		void enableNonBlockingMode_001()
		{
			::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT );
=====================================================================
Found a 50 line (1146 tokens) duplication in the following files: 
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 661 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_BORDCOL),  SC_WID_UNO_BORDCOL, &getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CCOLOR),	ATTR_FONT_COLOR,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_COUTL),	ATTR_FONT_CONTOUR,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CCROSS),	ATTR_FONT_CROSSEDOUT,&getBooleanCppuType(),					0, MID_CROSSED_OUT },
		{MAP_CHAR_LEN(SC_UNONAME_CEMPHAS),	ATTR_FONT_EMPHASISMARK,&getCppuType((sal_Int16*)0),			0, MID_EMPHASIS },
		{MAP_CHAR_LEN(SC_UNONAME_CFONT),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFCHARS),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFCHARS),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFCHARS),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNONAME_CFFAMIL),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFFAMIL),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFFAMIL),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFNAME),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFNAME),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFNAME),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CFPITCH),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFPITCH),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFPITCH),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNONAME_CFSTYLE),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFSTYLE),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFSTYLE),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CHEIGHT),	ATTR_FONT_HEIGHT,	&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNO_CJK_CHEIGHT),	ATTR_CJK_FONT_HEIGHT,&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNO_CTL_CHEIGHT),	ATTR_CTL_FONT_HEIGHT,&getCppuType((float*)0),				0, MID_FONTHEIGHT | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_CLOCAL),	ATTR_FONT_LANGUAGE,	&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNO_CJK_CLOCAL),	ATTR_CJK_FONT_LANGUAGE,&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNO_CTL_CLOCAL),	ATTR_CTL_FONT_LANGUAGE,&getCppuType((lang::Locale*)0),			0, MID_LANG_LOCALE },
		{MAP_CHAR_LEN(SC_UNONAME_CPOST),	ATTR_FONT_POSTURE,	&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNO_CJK_CPOST),	ATTR_CJK_FONT_POSTURE,&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNO_CTL_CPOST),	ATTR_CTL_FONT_POSTURE,&getCppuType((awt::FontSlant*)0),		0, MID_POSTURE },
		{MAP_CHAR_LEN(SC_UNONAME_CRELIEF),	ATTR_FONT_RELIEF,	&getCppuType((sal_Int16*)0),			0, MID_RELIEF },
		{MAP_CHAR_LEN(SC_UNONAME_CSHADD),	ATTR_FONT_SHADOWED,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CSTRIKE),	ATTR_FONT_CROSSEDOUT,&getCppuType((sal_Int16*)0),			0, MID_CROSS_OUT },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDER),	ATTR_FONT_UNDERLINE,&getCppuType((sal_Int16*)0),			0, MID_UNDERLINE },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDLCOL),	ATTR_FONT_UNDERLINE,&getCppuType((sal_Int32*)0),			0, MID_UL_COLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CUNDLHAS),	ATTR_FONT_UNDERLINE,&getBooleanCppuType(),					0, MID_UL_HASCOLOR },
		{MAP_CHAR_LEN(SC_UNONAME_CWEIGHT),	ATTR_FONT_WEIGHT,	&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNO_CJK_CWEIGHT),	ATTR_CJK_FONT_WEIGHT,&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNO_CTL_CWEIGHT),	ATTR_CTL_FONT_WEIGHT,&getCppuType((float*)0),				0, MID_WEIGHT },
		{MAP_CHAR_LEN(SC_UNONAME_CWORDMOD),	ATTR_FONT_WORDLINE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CHCOLHDR),	SC_WID_UNO_CHCOLHDR,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CHROWHDR),	SC_WID_UNO_CHROWHDR,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_COPYBACK),	SC_WID_UNO_COPYBACK,&getBooleanCppuType(),					0, 0 },
=====================================================================
Found a 196 line (1107 tokens) duplication in the following files: 
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DNoException.cxx
Starting at line 754 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/dindexnode.cxx

{
	double aDbl;
	char   aData[128];
} aNodeData;
//------------------------------------------------------------------
void ONDXNode::Write(SvStream &rStream, const ONDXPage& rPage) const
{
	const ODbaseIndex& rIndex = rPage.GetIndex();
	if (!rIndex.isUnique() || rPage.IsLeaf())
		rStream << (sal_uInt32)aKey.nRecord; // schluessel
	else
		rStream << (sal_uInt32)0;	// schluessel

	if (rIndex.getHeader().db_keytype) // double
	{
		if (aKey.getValue().isNull())
		{
			memset(aNodeData.aData,0,rIndex.getHeader().db_keylen);
			rStream.Write((BYTE*)aNodeData.aData,rIndex.getHeader().db_keylen);
		}
		else
			rStream << (double) aKey.getValue();
	}
	else
	{
		memset(aNodeData.aData,0x20,rIndex.getHeader().db_keylen);
		if (!aKey.getValue().isNull())
		{
			::rtl::OUString sValue = aKey.getValue();
			ByteString aText(sValue.getStr(), rIndex.m_pTable->getConnection()->getTextEncoding());
			strncpy(aNodeData.aData,aText.GetBuffer(),std::min(rIndex.getHeader().db_keylen, aText.Len()));
		}
		rStream.Write((BYTE*)aNodeData.aData,rIndex.getHeader().db_keylen);
	}
	rStream << aChild;
}


//------------------------------------------------------------------
ONDXPagePtr& ONDXNode::GetChild(ODbaseIndex* pIndex, ONDXPage* pParent)
{
	if (!aChild.Is() && pIndex)
	{
		aChild = pIndex->CreatePage(aChild.GetPagePos(),pParent,aChild.HasPage());
	}
	return aChild;
}

//==================================================================
// ONDXKey
//==================================================================
//------------------------------------------------------------------
BOOL ONDXKey::IsText(sal_Int32 eType)
{
	return eType == DataType::VARCHAR || eType == DataType::CHAR;
}

//------------------------------------------------------------------
StringCompare ONDXKey::Compare(const ONDXKey& rKey) const
{
	//	DBG_ASSERT(is(), "Falscher Indexzugriff");
	StringCompare eResult;

	if (getValue().isNull())
	{
		if (rKey.getValue().isNull() || (rKey.IsText(getDBType()) && !rKey.getValue().getString().getLength()))
			eResult = COMPARE_EQUAL;
		else
			eResult = COMPARE_LESS;
	}
	else if (rKey.getValue().isNull())
	{
		if (getValue().isNull() || (IsText(getDBType()) && !getValue().getString().getLength()))
			eResult = COMPARE_EQUAL;
		else
			eResult = COMPARE_GREATER;
	}
	else if (IsText(getDBType()))
	{
		INT32 nRes = getValue().getString().compareTo(rKey.getValue());
		eResult = (nRes > 0) ? COMPARE_GREATER : (nRes == 0) ? COMPARE_EQUAL : COMPARE_LESS;
	}
	else
	{
		double m = getValue(),n = rKey.getValue();
		eResult = (m > n) ? COMPARE_GREATER : (n == m) ? COMPARE_EQUAL : COMPARE_LESS;
	}

	// Record vergleich, wenn Index !Unique
	if (eResult == COMPARE_EQUAL && nRecord && rKey.nRecord)
		eResult = (nRecord > rKey.nRecord) ? COMPARE_GREATER :
				  (nRecord == rKey.nRecord) ? COMPARE_EQUAL : COMPARE_LESS;

	return eResult;
}
// -----------------------------------------------------------------------------
void ONDXKey::setValue(const ORowSetValue& _rVal)
{
	xValue = _rVal;
}
// -----------------------------------------------------------------------------
const ORowSetValue& ONDXKey::getValue() const
{
	return xValue;
}
// -----------------------------------------------------------------------------
SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPagePtr& rPage)
{
	rStream >> rPage.nPagePos;
	return rStream;
}
// -----------------------------------------------------------------------------
SvStream& connectivity::dbase::operator << (SvStream &rStream, const ONDXPagePtr& rPage)
{
	rStream << rPage.nPagePos;
	return rStream;
}
// -----------------------------------------------------------------------------
//==================================================================
// ONDXPagePtr
//==================================================================
//------------------------------------------------------------------
ONDXPagePtr::ONDXPagePtr(const ONDXPagePtr& rRef)
			  :ONDXPageRef(rRef)
			  ,nPagePos(rRef.nPagePos)
{
}

//------------------------------------------------------------------
ONDXPagePtr::ONDXPagePtr(ONDXPage* pRefPage)
			  :ONDXPageRef(pRefPage)
			  ,nPagePos(0)
{
	if (pRefPage)
		nPagePos = pRefPage->GetPagePos();
}
//------------------------------------------------------------------
ONDXPagePtr& ONDXPagePtr::operator=(const ONDXPagePtr& rRef)
{
	ONDXPageRef::operator=(rRef);
	nPagePos = rRef.nPagePos;
	return *this;
}

//------------------------------------------------------------------
ONDXPagePtr& ONDXPagePtr::operator= (ONDXPage* pRef)
{
	ONDXPageRef::operator=(pRef);
	nPagePos = (pRef) ? pRef->GetPagePos() : 0;
	return *this;
}
// -----------------------------------------------------------------------------
static UINT32 nValue;
//------------------------------------------------------------------
SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPage& rPage)
{
	rStream.Seek(rPage.GetPagePos() * 512);
	rStream >> nValue >> rPage.aChild;
	rPage.nCount = USHORT(nValue);

//	DBG_ASSERT(rPage.nCount && rPage.nCount < rPage.GetIndex().GetMaxNodes(), "Falscher Count");
	for (USHORT i = 0; i < rPage.nCount; i++)
		rPage[i].Read(rStream, rPage.GetIndex());
	return rStream;
}

//------------------------------------------------------------------
SvStream& connectivity::dbase::operator << (SvStream &rStream, const ONDXPage& rPage)
{
	// Seite existiert noch nicht
	ULONG nSize = (rPage.GetPagePos() + 1) * 512;
	if (nSize > rStream.Seek(STREAM_SEEK_TO_END))
	{
		rStream.SetStreamSize(nSize);
		rStream.Seek(rPage.GetPagePos() * 512);

		char aEmptyData[512];
		memset(aEmptyData,0x00,512);
		rStream.Write((BYTE*)aEmptyData,512);
	}
	ULONG nCurrentPos = rStream.Seek(rPage.GetPagePos() * 512);
    OSL_UNUSED( nCurrentPos );

	nValue = rPage.nCount;
	rStream << nValue << rPage.aChild;

	USHORT i = 0;
	for (; i < rPage.nCount; i++)
		rPage[i].Write(rStream, rPage);

	// check if we have to fill the stream with '\0'
	if(i < rPage.rIndex.getHeader().db_maxkeys)
	{
		ULONG nTell = rStream.Tell() % 512;
		USHORT nBufferSize = rStream.GetBufferSize();
		ULONG nRemainSize = nBufferSize - nTell;
=====================================================================
Found a 86 line (1103 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
=====================================================================
Found a 251 line (1084 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

                   	break;
			}
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										  pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		CPPU_CURRENT_NAMESPACE::raiseException(&aUnoExc, pThis->getBridge()->getUno2Cpp() );
  	           // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32	nFunctionIndex,
	sal_Int32	nVtableOffset,
	void **	pCallStack,
	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );

	// pCallStack: this, params
	// eventual [ret*] lies at pCallStack -1
	// so count down pCallStack by one to keep it simple
	// pCallStack: this, params
	// eventual [ret*] lies at pCallStack -1
	// so count down pCallStack by one to keep it simple
	bridges::cpp_uno::shared::CppInterfaceProxy * pCppI
		= bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(
	static_cast< char * >(*pCallStack) - nVtableOffset);
	if ((nFunctionIndex & 0x80000000) != 0) {
		nFunctionIndex &= 0x7FFFFFFF;
		--pCallStack;
	}

	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();

	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex,
				 "### illegal vtable index!" );
	if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException( rtl::OUString::createFromAscii("illegal vtable index!"), (XInterface *)pCppI );
	}
	
	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );

#if defined BRIDGES_DEBUG
	OString cstr( OUStringToOString( aMemberDescr.get()->pTypeName, RTL_TEXTENCODING_ASCII_US ) );
	fprintf( stderr, "calling %s, nFunctionIndex=%d\n", cstr.getStr(), nFunctionIndex );
#endif

	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[2] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
		(*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
		    pCppI->getBridge()->getCppEnv(),
		    (void **)&pInterface, pCppI->getOid().pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[0] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *(void **)pRegisterReturn = pCallStack[0];
                    eRet = typelib_TypeClass_ANY;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	default:
	{
		throw RuntimeException(rtl::OUString::createFromAscii("no member description found!"), (XInterface *)pCppI );
		// is here for dummy
		eRet = typelib_TypeClass_VOID;
	}
	}
	return eRet;
}



//==================================================================================================
/**
 * is called on incoming vtable calls
 * (called by asm snippets)
 */
static void cpp_vtable_call()
{
=====================================================================
Found a 227 line (1079 tokens) duplication in the following files: 
Starting at line 1161 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svppspgraphics.cxx
Starting at line 1250 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/pspgraphics.cxx

            break;
	}
	return FAMILY_DONTKNOW;
}

ImplDevFontAttributes PspGraphics::Info2DevFontAttributes( const psp::FastPrintFontInfo& rInfo )
{
    ImplDevFontAttributes aDFA;
    aDFA.maName         = rInfo.m_aFamilyName;
    aDFA.maStyleName    = rInfo.m_aStyleName;
    aDFA.meFamily       = ToFontFamily (rInfo.m_eFamilyStyle);
    aDFA.meWeight       = ToFontWeight (rInfo.m_eWeight);
    aDFA.meItalic       = ToFontItalic (rInfo.m_eItalic);
    aDFA.meWidthType    = ToFontWidth (rInfo.m_eWidth);
    aDFA.mePitch        = ToFontPitch (rInfo.m_ePitch);
    aDFA.mbSymbolFlag   = (rInfo.m_aEncoding == RTL_TEXTENCODING_SYMBOL);

    switch (rInfo.m_eEmbeddedbitmap)
    {
        default:
            aDFA.meEmbeddedBitmap = EMBEDDEDBITMAP_DONTKNOW;
            break;
        case psp::fcstatus::istrue:
            aDFA.meEmbeddedBitmap = EMBEDDEDBITMAP_TRUE;
            break;
        case psp::fcstatus::isfalse:
            aDFA.meEmbeddedBitmap = EMBEDDEDBITMAP_FALSE;
            break;
    }

    switch (rInfo.m_eAntialias)
    {
        default:
            aDFA.meAntiAlias = ANTIALIAS_DONTKNOW;
            break;
        case psp::fcstatus::istrue:
            aDFA.meAntiAlias = ANTIALIAS_TRUE;
            break;
        case psp::fcstatus::isfalse:
            aDFA.meAntiAlias = ANTIALIAS_FALSE;
            break;
    }

    // special case for the ghostscript fonts
    if( aDFA.maName.CompareIgnoreCaseToAscii( "itc ", 4 ) == COMPARE_EQUAL )
        aDFA.maName = aDFA.maName.Copy( 4 );

    switch( rInfo.m_eType )
    {
        case psp::fonttype::Builtin:
            aDFA.mnQuality       = 1024;
            aDFA.mbDevice        = true;
            aDFA.mbSubsettable   = false;
            aDFA.mbEmbeddable    = false;
            break;
        case psp::fonttype::TrueType:
            aDFA.mnQuality       = 512;
            aDFA.mbDevice        = false;
            aDFA.mbSubsettable   = true;
            aDFA.mbEmbeddable    = false;
            break;
        case psp::fonttype::Type1:
            aDFA.mnQuality       = 0;
            aDFA.mbDevice        = false;
            aDFA.mbSubsettable   = false;
            aDFA.mbEmbeddable    = true;
            break;
        default:
            aDFA.mnQuality       = 0;
            aDFA.mbDevice        = false;
            aDFA.mbSubsettable   = false;
            aDFA.mbEmbeddable    = false;
            break;
    }

    aDFA.mbOrientation   = true;

    // add font family name aliases
    ::std::list< OUString >::const_iterator it = rInfo.m_aAliases.begin();
    bool bHasMapNames = false;
    for(; it != rInfo.m_aAliases.end(); ++it )
    {
        if( bHasMapNames )
            aDFA.maMapNames.Append( ';' );
        aDFA.maMapNames.Append( (*it).getStr() );
	bHasMapNames = true;
    }

#if OSL_DEBUG_LEVEL > 2
    if( bHasMapNames )
    {
        ByteString aOrigName( aDFA.maName, osl_getThreadTextEncoding() );
        ByteString aAliasNames( aDFA.maMapNames, osl_getThreadTextEncoding() );
        fprintf( stderr, "using alias names \"%s\" for font family \"%s\"\n",
            aAliasNames.GetBuffer(), aOrigName.GetBuffer() );
    }
#endif

    return aDFA;
}

// -----------------------------------------------------------------------

void PspGraphics::AnnounceFonts( ImplDevFontList* pFontList, const psp::FastPrintFontInfo& aInfo )
{
    int nQuality = 0;

    if( aInfo.m_eType == psp::fonttype::TrueType )
    {
        // asian type 1 fonts are not known
        psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
        ByteString aFileName( rMgr.getFontFileSysPath( aInfo.m_nID ) );
        int nPos = aFileName.SearchBackward( '_' );
        if( nPos == STRING_NOTFOUND || aFileName.GetChar( nPos+1 ) == '.' )
            nQuality += 5;
        else
        {
            static const char* pLangBoost = NULL;
            static bool bOnce = true;
            if( bOnce )
            {
                bOnce = false;
                const LanguageType aLang = Application::GetSettings().GetUILanguage();
                switch( aLang )
                {
                    case LANGUAGE_JAPANESE:
                        pLangBoost = "jan";
                        break;
                    case LANGUAGE_CHINESE:
                    case LANGUAGE_CHINESE_SIMPLIFIED:
                    case LANGUAGE_CHINESE_SINGAPORE:
                        pLangBoost = "zhs";
                        break;
                    case LANGUAGE_CHINESE_TRADITIONAL:
                    case LANGUAGE_CHINESE_HONGKONG:
                    case LANGUAGE_CHINESE_MACAU:
                        pLangBoost = "zht";
                        break;
                    case LANGUAGE_KOREAN:
                    case LANGUAGE_KOREAN_JOHAB:
                        pLangBoost = "kor";
                        break;
                }
            }

            if( pLangBoost )
                if( aFileName.Copy( nPos+1, 3 ).EqualsIgnoreCaseAscii( pLangBoost ) )
                    nQuality += 10;
        }
    }

    ImplPspFontData* pFD = new ImplPspFontData( aInfo );
    pFD->mnQuality += nQuality;
    pFontList->Add( pFD );
}

bool PspGraphics::filterText( const String& rOrig, String& rNewText, xub_StrLen nIndex, xub_StrLen& rLen, xub_StrLen& rCutStart, xub_StrLen& rCutStop )
{
	if( ! m_pPhoneNr )
		return false;

    rCutStop = rCutStart = STRING_NOTFOUND;

#define FAX_PHONE_TOKEN          "@@#"
#define FAX_PHONE_TOKEN_LENGTH   3
#define FAX_END_TOKEN            "@@"
#define FAX_END_TOKEN_LENGTH     2

	bool bRet = false;
	bool bStarted = false;
	bool bStopped = false;
	USHORT nPos;
	USHORT nStart = 0;
	USHORT nStop = rLen;
	String aPhone = rOrig.Copy( nIndex, rLen );

	if( ! m_bPhoneCollectionActive )
	{
		if( ( nPos = aPhone.SearchAscii( FAX_PHONE_TOKEN ) ) != STRING_NOTFOUND )
		{
			nStart = nPos;
			m_bPhoneCollectionActive = true;
			m_aPhoneCollection.Erase();
			bRet = true;
			bStarted = true;
		}
	}
	if( m_bPhoneCollectionActive )
	{
		bRet = true;
		nPos = bStarted ? nStart + FAX_PHONE_TOKEN_LENGTH : 0;
		if( ( nPos = aPhone.SearchAscii( FAX_END_TOKEN, nPos ) ) != STRING_NOTFOUND )
		{
			m_bPhoneCollectionActive = false;
			nStop = nPos + FAX_END_TOKEN_LENGTH;
			bStopped = true;
		}
		int nTokenStart = nStart + (bStarted ? FAX_PHONE_TOKEN_LENGTH : 0);
		int nTokenStop = nStop - (bStopped ? FAX_END_TOKEN_LENGTH : 0);
		m_aPhoneCollection += aPhone.Copy( nTokenStart, nTokenStop - nTokenStart );
		if( ! m_bPhoneCollectionActive )
		{
            m_pPhoneNr->AppendAscii( "<Fax#>" );
			m_pPhoneNr->Append( m_aPhoneCollection );
            m_pPhoneNr->AppendAscii( "</Fax#>" );
			m_aPhoneCollection.Erase();
		}
	}
	if( m_aPhoneCollection.Len() > 1024 )
	{
		m_bPhoneCollectionActive = false;
		m_aPhoneCollection.Erase();
		bRet = false;
	}

    if( bRet && m_bSwallowFaxNo )
    {
        rLen -= nStop - nStart;
        rCutStart = nStart+nIndex;
        rCutStop = nStop+nIndex;
        if( rCutStart )
            rNewText = rOrig.Copy( 0, rCutStart );
        rNewText += rOrig.Copy( rCutStop );
    }

    return bRet && m_bSwallowFaxNo;
}
=====================================================================
Found a 209 line (1069 tokens) duplication in the following files: 
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/uno2cpp.cxx

			break;
	}
}

//=================================================================================================
static void cpp_call(
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis,
	bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
  	// max space for: complex ret ptr, this, values|ptr ...
  	char * pCppStack	=
  		(char *)alloca( (nParams+2) * sizeof(sal_Int64) );
  	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
			*(void**)pCppStack = NULL;
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack = (bridges::cpp_uno::shared::relatesToInterfaceType(pReturnTypeDescr )
												? alloca( pReturnTypeDescr->nSize )
												: pUnoReturn); // direct way
		}
		pCppStack += sizeof(void*);
	}
	// push this
	void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
  	       + aVtableSlot.offset;
  	       *(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			pCppArgs[ nPos ] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
                        OSL_ASSERT( sizeof (double) == sizeof (sal_Int64) );
                          *reinterpret_cast< sal_Int32 * >(pCppStack) =
                          *reinterpret_cast< sal_Int32 const * >(pUnoArgs[ nPos ]);
                          pCppStack += sizeof (sal_Int32);
                          *reinterpret_cast< sal_Int32 * >(pCppStack) =
                          *(reinterpret_cast< sal_Int32 const * >(pUnoArgs[ nPos ] ) + 1);
                          break;
            		default:
                          uno_copyAndConvertData(
                             pCppArgs[nPos], pUnoArgs[nPos], pParamTypeDescr,
                            pThis->getBridge()->getUno2Cpp() );
                          break;
                        }
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                                	pUnoArgs[nPos], pParamTypeDescr,
					pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		int nStackLongs = (pCppStack - pCppStackStart)/sizeof(sal_Int32);
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic" );
		
		if( nStackLongs & 1 )
			// stack has to be 8 byte aligned
			nStackLongs++;
		callVirtualMethod(
			pAdjustedThisPtr,
			aVtableSlot.index,
			pCppReturn,
			pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart,
			 nStackLongs);
		// NO exception occured...
		*ppUnoExc = 0;

		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch( ... )
 	{
 		// get exception
		   fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, 
								*ppUnoExc, pThis->getBridge()->getCpp2Uno() );

		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
    void * pReturn, void * pArgs[], uno_Any ** ppException )
{
#if defined BRIDGES_DEBUG
    OString cstr( OUStringToOString( pMemberDescr->pTypeName, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "received dispatch( %s )\n", cstr.getStr() );
#endif
    
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
       = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
=====================================================================
Found a 238 line (1056 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{

void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if OSL_DEBUG_LEVEL > 1
    char const * start = p;
#endif

    // example: N3com3sun4star4lang24IllegalArgumentExceptionE

	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N

    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }

#if OSL_DEBUG_LEVEL > 1
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;

    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;

public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );

    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
    : m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
//__________________________________________________________________________________________________
RTTI::~RTTI() SAL_THROW( () )
{
    dlclose( m_hApp );
}

//__________________________________________________________________________________________________
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW( () )
{
    type_info * rtti;

    OUString const & unoName = *(OUString const *)&pTypeDescr->aBase.pTypeName;

    MutexGuard guard( m_mutex );
    t_rtti_map::const_iterator iFind( m_rttis.find( unoName ) );
    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );

        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
        terminate();

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
        terminate();
    }

	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pExc, uno_Mapping * pCpp2Uno )
{
    OSL_ENSURE( header, "### no exception header!!!" );
    if (! header)
        terminate();

	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
	::typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    OSL_ENSURE( pExcTypeDescr, "### can not get type description for exception!!!" );
    if (! pExcTypeDescr)
        terminate();

    // construct uno exception any
    ::uno_any_constructAndConvert( pExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
    ::typelib_typedescription_release( pExcTypeDescr );
}

}
=====================================================================
Found a 130 line (1029 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3626 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info cp1251_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0x69, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0x49 },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x01, 0x90, 0x80 },
=====================================================================
Found a 21 line (992 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x15, 0xFF38}, {0x15, 0xFF39}, {0x15, 0xFF3A}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff58 - ff5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff60 - ff67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff68 - ff6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff70 - ff77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff78 - ff7f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff80 - ff87
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff88 - ff8f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff90 - ff97
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff98 - ff9f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffa0 - ffa7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffa8 - ffaf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffb0 - ffb7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffb8 - ffbf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffc0 - ffc7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffc8 - ffcf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd0 - ffd7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd8 - ffdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe0 - ffe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe8 - ffef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff0 - fff7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff8 - ffff
=====================================================================
Found a 56 line (989 tokens) duplication in the following files: 
Starting at line 580 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 633 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,

      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,

      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,

      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,

      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,

      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,    0,  993
=====================================================================
Found a 230 line (988 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/java/streamwrap.cxx
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/java/org/openoffice/xmerge/xmergebridge/streamwrap.cxx

namespace foo
{

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::osl;

//==================================================================
//= OInputStreamWrapper
//==================================================================
//------------------------------------------------------------------
OInputStreamWrapper::OInputStreamWrapper( File& _rStream )
				 :m_pSvStream(&_rStream)
				 ,m_bSvStreamOwner(sal_False)
{
}

//------------------------------------------------------------------
OInputStreamWrapper::OInputStreamWrapper( File* pStream, sal_Bool bOwner )
				 :m_pSvStream( pStream )
				 ,m_bSvStreamOwner( bOwner )
{
}

//------------------------------------------------------------------
OInputStreamWrapper::~OInputStreamWrapper()
{
	if( m_bSvStreamOwner )
		delete m_pSvStream;

}

//------------------------------------------------------------------------------
sal_Int32 SAL_CALL OInputStreamWrapper::readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
				throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	checkConnected();

	if (nBytesToRead < 0)
		throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));

	::osl::MutexGuard aGuard( m_aMutex );

	aData.realloc(nBytesToRead);

	sal_uInt64 nRead = 0;
	m_pSvStream->read((void*)aData.getArray(), nBytesToRead,nRead);

	checkError();

	// Wenn gelesene Zeichen < MaxLength, staruno::Sequence anpassen
	if (nRead < nBytesToRead)
		aData.realloc( nRead );

	return nRead;
}

//------------------------------------------------------------------------------
sal_Int32 SAL_CALL OInputStreamWrapper::readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	checkError();

	if (nMaxBytesToRead < 0)
		throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));

	return readBytes(aData, nMaxBytesToRead);
}

//------------------------------------------------------------------------------
void SAL_CALL OInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkError();

	m_pSvStream->setPos(osl_Pos_Current,nBytesToSkip);
	checkError();
}

//------------------------------------------------------------------------------
sal_Int32 SAL_CALL OInputStreamWrapper::available() throw( stario::NotConnectedException, staruno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	sal_uInt64 nPos = 0;
	m_pSvStream->getPos(nPos);
	checkError();

	m_pSvStream->setPos(Pos_End,0);
	checkError();

	sal_uInt64 nAvailable = 0;
	m_pSvStream->getPos(nAvailable);
	nAvailable -= nPos;

	m_pSvStream->setPos(Pos_Absolut,nPos);
	checkError();

	return nAvailable;
}

//------------------------------------------------------------------------------
void SAL_CALL OInputStreamWrapper::closeInput() throw( stario::NotConnectedException, staruno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	if (m_bSvStreamOwner)
		delete m_pSvStream;

	m_pSvStream = NULL;
}

//------------------------------------------------------------------------------
void OInputStreamWrapper::checkConnected() const
{
	if (!m_pSvStream)
		throw stario::NotConnectedException(::rtl::OUString(), const_cast<staruno::XWeak*>(static_cast<const staruno::XWeak*>(this)));
}

//------------------------------------------------------------------------------
void OInputStreamWrapper::checkError() const
{
	checkConnected();
}

//==================================================================
//= OSeekableInputStreamWrapper
//==================================================================
//------------------------------------------------------------------------------
OSeekableInputStreamWrapper::OSeekableInputStreamWrapper(File& _rStream)
	:OInputStreamWrapper(_rStream)
{
}

//------------------------------------------------------------------------------
OSeekableInputStreamWrapper::OSeekableInputStreamWrapper(File* _pStream, sal_Bool _bOwner)
	:OInputStreamWrapper(_pStream, _bOwner)
{
}

//------------------------------------------------------------------------------
Any SAL_CALL OSeekableInputStreamWrapper::queryInterface( const Type& _rType ) throw (RuntimeException)
{
	Any aReturn = OInputStreamWrapper::queryInterface(_rType);
	if (!aReturn.hasValue())
		aReturn = OSeekableInputStreamWrapper_Base::queryInterface(_rType);
	return aReturn;
}

//------------------------------------------------------------------------------
void SAL_CALL OSeekableInputStreamWrapper::acquire(  ) throw ()
{
	OInputStreamWrapper::acquire();
}

//------------------------------------------------------------------------------
void SAL_CALL OSeekableInputStreamWrapper::release(  ) throw ()
{
	OInputStreamWrapper::release();
}

//------------------------------------------------------------------------------
void SAL_CALL OSeekableInputStreamWrapper::seek( sal_Int64 _nLocation ) throw (IllegalArgumentException, IOException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	m_pSvStream->setPos(Pos_Current,(sal_uInt32)_nLocation);
	checkError();
}

//------------------------------------------------------------------------------
sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getPosition(  ) throw (IOException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	sal_uInt64 nPos = 0;
	nPos = m_pSvStream->getPos(nPos);
	checkError();
	return nPos;
}

//------------------------------------------------------------------------------
sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getLength(  ) throw (IOException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	sal_uInt64 nCurrentPos = 0;
	m_pSvStream->getPos(nCurrentPos);
	checkError();

	m_pSvStream->setPos(osl_Pos_End,0);
	sal_uInt64 nEndPos = 0;
	m_pSvStream->getPos(nEndPos);
	m_pSvStream->setPos(osl_Pos_Absolut,nCurrentPos);

	checkError();

	return nEndPos;
}

//==================================================================
//= OOutputStreamWrapper
//==================================================================
//------------------------------------------------------------------------------
void SAL_CALL OOutputStreamWrapper::writeBytes(const staruno::Sequence< sal_Int8 >& aData) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	sal_uInt64 nWritten = 0;
	rStream.write(aData.getConstArray(),aData.getLength(),nWritten);
	if (nWritten != aData.getLength())
	{
		throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));
	}
}

//------------------------------------------------------------------
void SAL_CALL OOutputStreamWrapper::flush() throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
}

//------------------------------------------------------------------
void SAL_CALL OOutputStreamWrapper::closeOutput() throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
}

} // namespace utl
=====================================================================
Found a 187 line (979 tokens) duplication in the following files: 
Starting at line 527 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/win/window.cxx
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/xine/window.cxx

}

// ------------------------------------------------------------------------------

void SAL_CALL Window::addWindowListener( const uno::Reference< awt::XWindowListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.addInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::removeWindowListener( const uno::Reference< awt::XWindowListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.removeInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::addFocusListener( const uno::Reference< awt::XFocusListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.addInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::removeFocusListener( const uno::Reference< awt::XFocusListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.removeInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::addKeyListener( const uno::Reference< awt::XKeyListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.addInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::removeKeyListener( const uno::Reference< awt::XKeyListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.removeInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::addMouseListener( const uno::Reference< awt::XMouseListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.addInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::removeMouseListener( const uno::Reference< awt::XMouseListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.removeInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::addMouseMotionListener( const uno::Reference< awt::XMouseMotionListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.addInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::removeMouseMotionListener( const uno::Reference< awt::XMouseMotionListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.removeInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::addPaintListener( const uno::Reference< awt::XPaintListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.addInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::removePaintListener( const uno::Reference< awt::XPaintListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.removeInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::dispose(  )
    throw (uno::RuntimeException)
{
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::addEventListener( const uno::Reference< lang::XEventListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.addInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void SAL_CALL Window::removeEventListener( const uno::Reference< lang::XEventListener >& xListener )
    throw (uno::RuntimeException)
{
    maListeners.removeInterface( getCppuType( &xListener ), xListener );
}

// ------------------------------------------------------------------------------

void Window::fireMousePressedEvent( const ::com::sun::star::awt::MouseEvent& rEvt )
{
    ::cppu::OInterfaceContainerHelper* pContainer = maListeners.getContainer( getCppuType( (uno::Reference< awt::XMouseListener >*) 0 ) );
    
    if( pContainer )
    {
        ::cppu::OInterfaceIteratorHelper aIter( *pContainer );
        
        while( aIter.hasMoreElements() )
            uno::Reference< awt::XMouseListener >( aIter.next(), uno::UNO_QUERY )->mousePressed( rEvt );
    }
}

// -----------------------------------------------------------------------------

void Window::fireMouseReleasedEvent( const ::com::sun::star::awt::MouseEvent& rEvt )
{
    ::cppu::OInterfaceContainerHelper* pContainer = maListeners.getContainer( getCppuType( (uno::Reference< awt::XMouseListener >*) 0 ) );
    
    if( pContainer )
    {
        ::cppu::OInterfaceIteratorHelper aIter( *pContainer );
        
        while( aIter.hasMoreElements() )
            uno::Reference< awt::XMouseListener >( aIter.next(), uno::UNO_QUERY )->mouseReleased( rEvt );
    }
}

// -----------------------------------------------------------------------------

void Window::fireMouseMovedEvent( const ::com::sun::star::awt::MouseEvent& rEvt )
{
    ::cppu::OInterfaceContainerHelper* pContainer = maListeners.getContainer( getCppuType( (uno::Reference< awt::XMouseMotionListener >*) 0 ) );
    
    if( pContainer )
    {
        ::cppu::OInterfaceIteratorHelper aIter( *pContainer );
        
        while( aIter.hasMoreElements() )
            uno::Reference< awt::XMouseMotionListener >( aIter.next(), uno::UNO_QUERY )->mouseMoved( rEvt );
    }
}

// -----------------------------------------------------------------------------

void Window::fireSetFocusEvent( const ::com::sun::star::awt::FocusEvent& rEvt )
{
    ::cppu::OInterfaceContainerHelper* pContainer = maListeners.getContainer( getCppuType( (uno::Reference< awt::XFocusListener >*) 0 ) );
    
    if( pContainer )
    {
        ::cppu::OInterfaceIteratorHelper aIter( *pContainer );
        
        while( aIter.hasMoreElements() )
            uno::Reference< awt::XFocusListener >( aIter.next(), uno::UNO_QUERY )->focusGained( rEvt );
    }
}

// ------------------------------------------------------------------------------

::rtl::OUString SAL_CALL Window::getImplementationName(  )
    throw (uno::RuntimeException)
{
    return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( AVMEDIA_XINE_WINDOW_IMPLEMENTATIONNAME ) );
=====================================================================
Found a 96 line (970 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

using namespace rtl;
using namespace osl;
using namespace com::sun::star;

const
  sal_Char aBase64EncodeTable[] =
    { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
      'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
      'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
      'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };

const
  sal_uInt8 aBase64DecodeTable[]  =
    { 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, // 0-15

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, // 16-31

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 62,  0,  0,  0, 63, // 32-47
//                                                +               /

     52, 53, 54, 55, 56, 57, 58, 59, 60, 61,  0,  0,  0,  0,  0,  0, // 48-63
//    0   1   2   3   4   5   6   7   8   9               =

      0,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, // 64-79
//        A   B   C   D   E   F   G   H   I   J   K   L   M   N   O

     15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,  0,  0,  0,  0,  0, // 80-95
//    P   Q   R   S   T   U   V   W   X   Y   Z

      0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, // 96-111
//        a   b   c   d   e   f   g   h   i   j   k   l   m   n   o

     41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0,  0,  0,  0,  0, // 112-127
//    p   q   r   s   t   u   v   w   x   y   z

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};


void ThreeByteToFourByte (const sal_uInt8* pBuffer, const sal_Int32 nStart, const sal_Int32 nFullLen, rtl::OUStringBuffer& sBuffer)
{
	sal_Int32 nLen(nFullLen - nStart);
	if (nLen > 3)
		nLen = 3;
	if (nLen == 0)
	{
		sBuffer.setLength(0);
		return;
	}

	sal_Int32 nBinaer;
	switch (nLen)
	{
		case 1:
		{
			nBinaer = ((sal_uInt8)pBuffer[nStart + 0]) << 16;
		}
		break;
		case 2:
		{
			nBinaer = (((sal_uInt8)pBuffer[nStart + 0]) << 16) +
					(((sal_uInt8)pBuffer[nStart + 1]) <<  8);
		}
		break;
		default:
		{
			nBinaer = (((sal_uInt8)pBuffer[nStart + 0]) << 16) +
					(((sal_uInt8)pBuffer[nStart + 1]) <<  8) +
					((sal_uInt8)pBuffer[nStart + 2]);
		}
		break;
	}

	sBuffer.appendAscii("====");

	sal_uInt8 nIndex = static_cast< sal_uInt8 >((nBinaer & 0xFC0000) >> 18);
	sBuffer.setCharAt(0, aBase64EncodeTable [nIndex]);

	nIndex = static_cast< sal_uInt8 >((nBinaer & 0x3F000) >> 12);
	sBuffer.setCharAt(1, aBase64EncodeTable [nIndex]);
	if (nLen == 1)
		return;

	nIndex = static_cast< sal_uInt8 >((nBinaer & 0xFC0) >> 6);
	sBuffer.setCharAt(2, aBase64EncodeTable [nIndex]);
	if (nLen == 2)
		return;

	nIndex = static_cast< sal_uInt8 >(nBinaer & 0x3F);
=====================================================================
Found a 162 line (967 tokens) duplication in the following files: 
Starting at line 6302 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6637 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    memset( aData, 0, nMaxDopLen );
    BYTE* pData = aData;

    // dann mal die Daten auswerten
    UINT16 a16Bit;
    BYTE   a8Bit;

    a16Bit = 0;
    if (fFacingPages)
        a16Bit |= 0x0001;
    if (fWidowControl)
        a16Bit |= 0x0002;
    if (fPMHMainDoc)
        a16Bit |= 0x0004;
    a16Bit |= ( 0x0018 & (grfSuppression << 3));
    a16Bit |= ( 0x0060 & (fpc << 5));
    a16Bit |= ( 0xff00 & (grpfIhdt << 8));
    Set_UInt16( pData, a16Bit );

    a16Bit = 0;
    a16Bit |= ( 0x0003 & rncFtn );
    a16Bit |= ( ~0x0003 & (nFtn << 2));
    Set_UInt16( pData, a16Bit );

    a8Bit = 0;
    if( fOutlineDirtySave ) a8Bit |= 0x01;
    Set_UInt8( pData, a8Bit );

    a8Bit = 0;
    if( fOnlyMacPics )  a8Bit |= 0x01;
    if( fOnlyWinPics )  a8Bit |= 0x02;
    if( fLabelDoc )     a8Bit |= 0x04;
    if( fHyphCapitals ) a8Bit |= 0x08;
    if( fAutoHyphen )   a8Bit |= 0x10;
    if( fFormNoFields ) a8Bit |= 0x20;
    if( fLinkStyles )   a8Bit |= 0x40;
    if( fRevMarking )   a8Bit |= 0x80;
    Set_UInt8( pData, a8Bit );

    a8Bit = 0;
    if( fBackup )               a8Bit |= 0x01;
    if( fExactCWords )          a8Bit |= 0x02;
    if( fPagHidden )            a8Bit |= 0x04;
    if( fPagResults )           a8Bit |= 0x08;
    if( fLockAtn )              a8Bit |= 0x10;
    if( fMirrorMargins )        a8Bit |= 0x20;
    if( fReadOnlyRecommended )  a8Bit |= 0x40;
    if( fDfltTrueType )         a8Bit |= 0x80;
    Set_UInt8( pData, a8Bit );

    a8Bit = 0;
    if( fPagSuppressTopSpacing )    a8Bit |= 0x01;
    if( fProtEnabled )              a8Bit |= 0x02;
    if( fDispFormFldSel )           a8Bit |= 0x04;
    if( fRMView )                   a8Bit |= 0x08;
    if( fRMPrint )                  a8Bit |= 0x10;
    if( fWriteReservation )         a8Bit |= 0x20;
    if( fLockRev )                  a8Bit |= 0x40;
    if( fEmbedFonts )               a8Bit |= 0x80;
    Set_UInt8( pData, a8Bit );


    a8Bit = 0;
    if( copts_fNoTabForInd )            a8Bit |= 0x01;
    if( copts_fNoSpaceRaiseLower )      a8Bit |= 0x02;
    if( copts_fSupressSpbfAfterPgBrk )  a8Bit |= 0x04;
    if( copts_fWrapTrailSpaces )        a8Bit |= 0x08;
    if( copts_fMapPrintTextColor )      a8Bit |= 0x10;
    if( copts_fNoColumnBalance )        a8Bit |= 0x20;
    if( copts_fConvMailMergeEsc )       a8Bit |= 0x40;
    if( copts_fSupressTopSpacing )      a8Bit |= 0x80;
    Set_UInt8( pData, a8Bit );

    a8Bit = 0;
    if( copts_fOrigWordTableRules )     a8Bit |= 0x01;
    if( copts_fTransparentMetafiles )   a8Bit |= 0x02;
    if( copts_fShowBreaksInFrames )     a8Bit |= 0x04;
    if( copts_fSwapBordersFacingPgs )   a8Bit |= 0x08;
    Set_UInt8( pData, a8Bit );

    Set_UInt16( pData, dxaTab );
    Set_UInt16( pData, wSpare );
    Set_UInt16( pData, dxaHotZ );
    Set_UInt16( pData, cConsecHypLim );
    Set_UInt16( pData, wSpare2 );
    Set_UInt32( pData, dttmCreated );
    Set_UInt32( pData, dttmRevised );
    Set_UInt32( pData, dttmLastPrint );
    Set_UInt16( pData, nRevision );
    Set_UInt32( pData, tmEdited );
    Set_UInt32( pData, cWords );
    Set_UInt32( pData, cCh );
    Set_UInt16( pData, cPg );
    Set_UInt32( pData, cParas );

    a16Bit = 0;
    a16Bit |= ( 0x0003 & rncEdn );
    a16Bit |= (~0x0003 & ( nEdn << 2));
    Set_UInt16( pData, a16Bit );

    a16Bit = 0;
    a16Bit |= (0x0003 & epc );
    a16Bit |= (0x003c & (nfcFtnRef << 2));
    a16Bit |= (0x03c0 & (nfcEdnRef << 6));
    if( fPrintFormData )    a16Bit |= 0x0400;
    if( fSaveFormData )     a16Bit |= 0x0800;
    if( fShadeFormData )    a16Bit |= 0x1000;
    if( fWCFtnEdn )         a16Bit |= 0x8000;
    Set_UInt16( pData, a16Bit );

    Set_UInt32( pData, cLines );
    Set_UInt32( pData, cWordsFtnEnd );
    Set_UInt32( pData, cChFtnEdn );
    Set_UInt16( pData, cPgFtnEdn );
    Set_UInt32( pData, cParasFtnEdn );
    Set_UInt32( pData, cLinesFtnEdn );
    Set_UInt32( pData, lKeyProtDoc );

    a16Bit = 0;
    if (wvkSaved)
        a16Bit |= 0x0007;
    a16Bit |= (0x0ff8 & (wScaleSaved << 3));
    a16Bit |= (0x3000 & (zkSaved << 12));
    Set_UInt16( pData, a16Bit );

    if( 8 == rFib.nVersion )
    {
        Set_UInt32(pData, GetCompatabilityOptions());

        Set_UInt16( pData, adt );

        doptypography.WriteToMem(pData);

        memcpy( pData, &dogrid, sizeof( WW8_DOGRID ));
        pData += sizeof( WW8_DOGRID );

        a16Bit = 0x12;      // lvl auf 9 setzen
        if( fHtmlDoc )          a16Bit |= 0x0200;
        if( fSnapBorder )       a16Bit |= 0x0800;
        if( fIncludeHeader )    a16Bit |= 0x1000;
        if( fIncludeFooter )    a16Bit |= 0x2000;
        if( fForcePageSizePag ) a16Bit |= 0x4000;
        if( fMinFontSizePag )   a16Bit |= 0x8000;
        Set_UInt16( pData, a16Bit );

        a16Bit = 0;
        if( fHaveVersions ) a16Bit |= 0x0001;
        if( fAutoVersion )  a16Bit |= 0x0002;
        Set_UInt16( pData, a16Bit );

        pData += 12;

        Set_UInt32( pData, cChWS );
        Set_UInt32( pData, cChWSFtnEdn );
        Set_UInt32( pData, grfDocEvents );

        pData += 4+30+8;

        Set_UInt32( pData, cDBC );
        Set_UInt32( pData, cDBCFtnEdn );

        pData += 1 * sizeof( INT32);
=====================================================================
Found a 223 line (964 tokens) duplication in the following files: 
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

	}
	
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( 
         pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( 
                    &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
                // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32 nFunctionIndex,
        sal_Int32 nVtableOffset,
        void ** gpreg, void ** fpreg, void ** ovrflw,
	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );
	
	// gpreg:  [ret *], this, [other gpr params]
	// fpreg:  [fpr params]
	// ovrflw: [gpr or fpr params (in space allocated for all params properly aligned)]

        void * pThis;
	if( nFunctionIndex & 0x80000000 )
	{
		nFunctionIndex &= 0x7fffffff;
		pThis = gpreg[1];
	}
	else
        {
		pThis = gpreg[0];
        }
	
        pThis = static_cast< char * >(pThis) - nVtableOffset;
        bridges::cpp_uno::shared::CppInterfaceProxy * pCppI 
	= bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(pThis);

    
	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
	
	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("illegal vtable index!"),
            (XInterface *)pThis );
	}
	
	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( gpreg[2] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( gpreg[0] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *(void **)pRegisterReturn = gpreg[0];
                    eRet = typelib_TypeClass_ANY;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	default:
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("no member description found!"),
            (XInterface *)pThis );
		// is here for dummy
		eRet = typelib_TypeClass_VOID;
	}
	}

	return eRet;
}

//==================================================================================================
/**
 * is called on incoming vtable calls
 * (called by asm snippets)
 */
static void cpp_vtable_call( int nFunctionIndex, int nVtableOffset, void** gpregptr, void** fpregptr, void** ovrflw)
{
        sal_Int32     gpreg[8];
        double        fpreg[13];
=====================================================================
Found a 104 line (956 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtprmap.cxx
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtprmap.cxx

	MT_E( "CharCaseMap",		FO,		FONT_VARIANT,	 	XML_TYPE_TEXT_CASEMAP_VAR,	0 ),
	MT_E( "CharCaseMap",		FO,		TEXT_TRANSFORM, 	XML_TYPE_TEXT_CASEMAP,	0 ),
	// RES_CHRATR_COLOR
	MT_ED( "CharColor",		FO,		COLOR, 				XML_TYPE_COLORAUTO|MID_FLAG_MERGE_PROPERTY,	0 ),
	MT_ED( "CharColor",		STYLE,	USE_WINDOW_FONT_COLOR,	XML_TYPE_ISAUTOCOLOR|MID_FLAG_MERGE_PROPERTY,	0 ),
	// RES_CHRATR_CONTOUR
	MT_E( "CharContoured",	STYLE,	TEXT_OUTLINE, 		XML_TYPE_BOOL,	0 ),
	// RES_CHRATR_CROSSEDOUT
	MT_E( "CharStrikeout",	STYLE,	TEXT_LINE_THROUGH_STYLE, 	XML_TYPE_TEXT_CROSSEDOUT_STYLE|MID_FLAG_MERGE_PROPERTY,	0),
	MT_E( "CharStrikeout",	STYLE,	TEXT_LINE_THROUGH_TYPE, 	XML_TYPE_TEXT_CROSSEDOUT_TYPE|MID_FLAG_MERGE_PROPERTY,	0),
	MT_E( "CharStrikeout",	STYLE,	TEXT_LINE_THROUGH_WIDTH, 	XML_TYPE_TEXT_CROSSEDOUT_WIDTH|MID_FLAG_MERGE_PROPERTY,	0),
	MT_E( "CharStrikeout",	STYLE,	TEXT_LINE_THROUGH_TEXT, 	XML_TYPE_TEXT_CROSSEDOUT_TEXT|MID_FLAG_MERGE_PROPERTY,	0),
	// RES_CHRATR_ESCAPEMENT
	MT_E( "CharEscapement",		 STYLE, TEXT_POSITION,	XML_TYPE_TEXT_ESCAPEMENT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
	MT_E( "CharEscapementHeight", STYLE, TEXT_POSITION,	XML_TYPE_TEXT_ESCAPEMENT_HEIGHT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
	// RES_CHRATR_FONT
	MT_ED( "CharFontName",	STYLE,	FONT_NAME, 			XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME ),
	MT_ED( "CharFontName",	FO,		FONT_FAMILY, 		XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME ),
	MT_ED( "CharFontStyleName",STYLE,	FONT_STYLE_NAME,	XML_TYPE_STRING, CTF_FONTSTYLENAME ),
	MT_ED( "CharFontFamily",	STYLE,	FONT_FAMILY_GENERIC,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY ),
	MT_ED( "CharFontPitch",	STYLE,	FONT_PITCH,			XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH ),
	MT_ED( "CharFontCharSet",	STYLE,	FONT_CHARSET,		XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET ),
	// RES_CHRATR_FONTSIZE
	MT_ED( "CharHeight",		  FO,	FONT_SIZE,			XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT ),
	MT_ED( "CharPropHeight",FO,	FONT_SIZE,			XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL ),
	MT_ED( "CharDiffHeight",STYLE,FONT_SIZE_REL,		XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF ),
	// RES_CHRATR_KERNING
	MT_E( "CharKerning",		FO,		LETTER_SPACING,		XML_TYPE_TEXT_KERNING, 0 ),
	// RES_CHRATR_LANGUAGE
	MT_ED( "CharLocale",		FO,		LANGUAGE, 			XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
	MT_ED( "CharLocale",		FO,		COUNTRY, 			XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
	// RES_CHRATR_POSTURE
	MT_E( "CharPosture",		FO,		FONT_STYLE,			XML_TYPE_TEXT_POSTURE, 0 ),
	// RES_CHRATR_PROPORTIONALFONTSIZE
	// TODO: not used?
	// RES_CHRATR_SHADOWED
	MT_E( "CharShadowed",	FO,		TEXT_SHADOW,		XML_TYPE_TEXT_SHADOWED, 0 ),
	// BIS HIER GEPRUEFT!
	// RES_CHRATR_UNDERLINE
	MT_E( "CharUnderline",	STYLE,	TEXT_UNDERLINE_STYLE,		XML_TYPE_TEXT_UNDERLINE_STYLE|MID_FLAG_MERGE_PROPERTY, CTF_UNDERLINE ),
	MT_E( "CharUnderline",	STYLE,	TEXT_UNDERLINE_TYPE,		XML_TYPE_TEXT_UNDERLINE_TYPE|MID_FLAG_MERGE_PROPERTY, 0 ),
	MT_E( "CharUnderline",	STYLE,	TEXT_UNDERLINE_WIDTH,		XML_TYPE_TEXT_UNDERLINE_WIDTH|MID_FLAG_MERGE_PROPERTY, 0 ),
	MT_E( "CharUnderlineColor",	STYLE,	TEXT_UNDERLINE_COLOR,		XML_TYPE_TEXT_UNDERLINE_COLOR|MID_FLAG_MULTI_PROPERTY, CTF_UNDERLINE_COLOR	),
	MT_E( "CharUnderlineHasColor",	STYLE,	TEXT_UNDERLINE_COLOR,		XML_TYPE_TEXT_UNDERLINE_HASCOLOR|MID_FLAG_MERGE_ATTRIBUTE, CTF_UNDERLINE_HASCOLOR	),
	// RES_CHRATR_WEIGHT
	MT_E( "CharWeight",		FO,		FONT_WEIGHT,		XML_TYPE_TEXT_WEIGHT, 0 ),
	// RES_CHRATR_WORDLINEMODE
	MT_E( "CharWordMode",	STYLE,	TEXT_UNDERLINE_MODE,		XML_TYPE_TEXT_LINE_MODE|MID_FLAG_MERGE_PROPERTY, 0 ),
	MT_E( "CharWordMode",	STYLE,	TEXT_LINE_THROUGH_MODE,		XML_TYPE_TEXT_LINE_MODE|MID_FLAG_MERGE_PROPERTY, 0 ),
	// RES_CHRATR_AUTOKERN
	MT_E( "CharAutoKerning",	STYLE,	LETTER_KERNING,		XML_TYPE_BOOL, 0 ),
	// RES_CHRATR_BLINK
	MT_E( "CharFlash",		STYLE,	TEXT_BLINKING,		XML_TYPE_BOOL, 0 ),
	// RES_CHRATR_NOHYPHEN
	// TODO: not used?
	// RES_CHRATR_NOLINEBREAK
	// TODO: not used?
	// RES_CHRATR_BACKGROUND
	MT_E( "CharBackColor",	FO,	BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
	MT_E( "CharBackTransparent",	FO,	BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
	MT_E( "CharBackColor",	FO,	TEXT_BACKGROUND_COLOR, XML_TYPE_COLOR|MID_FLAG_SPECIAL_ITEM_EXPORT, CTF_OLDTEXTBACKGROUND ),
	// RES_CHRATR_CJK_FONT
	MT_ED( "CharFontNameAsian",	STYLE,	FONT_NAME_ASIAN, 			XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME_CJK ),
	MT_ED( "CharFontNameAsian",	STYLE,		FONT_FAMILY_ASIAN, 		XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME_CJK ),
	MT_ED( "CharFontStyleNameAsian",STYLE,	FONT_STYLE_NAME_ASIAN,	XML_TYPE_STRING, CTF_FONTSTYLENAME_CJK ),
	MT_ED( "CharFontFamilyAsian",	STYLE,	FONT_FAMILY_GENERIC_ASIAN,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY_CJK ),
	MT_ED( "CharFontPitchAsian",	STYLE,	FONT_PITCH_ASIAN,			XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH_CJK ),
	MT_ED( "CharFontCharSetAsian",	STYLE,	FONT_CHARSET_ASIAN,		XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET_CJK ),
	// RES_CHRATR_CJK_FONTSIZE
	MT_ED( "CharHeightAsian",		  STYLE,	FONT_SIZE_ASIAN,			XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_CJK ),
	MT_ED( "CharPropHeightAsian",STYLE,	FONT_SIZE_ASIAN,			XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL_CJK ),
	MT_ED( "CharDiffHeightAsian",STYLE,FONT_SIZE_REL_ASIAN,		XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF_CJK ),
	// RES_CHRATR_CJK_LANGUAGE
	MT_ED( "CharLocaleAsian",		STYLE,		LANGUAGE_ASIAN, 			XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
	MT_ED( "CharLocaleAsian",		STYLE,		COUNTRY_ASIAN, 			XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
	// RES_CHRATR_CJK_POSTURE
	MT_E( "CharPostureAsian",		STYLE,		FONT_STYLE_ASIAN,			XML_TYPE_TEXT_POSTURE, 0 ),
	// RES_CHRATR_CJK_WEIGHT
	MT_E( "CharWeightAsian",		STYLE,		FONT_WEIGHT_ASIAN,		XML_TYPE_TEXT_WEIGHT, 0 ),
	// RES_CHRATR_CTL_FONT
	MT_ED( "CharFontNameComplex",	STYLE,	FONT_NAME_COMPLEX, 			XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME_CTL ),
	MT_ED( "CharFontNameComplex",	STYLE,		FONT_FAMILY_COMPLEX, 		XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME_CTL ),
	MT_ED( "CharFontStyleNameComplex",STYLE,	FONT_STYLE_NAME_COMPLEX,	XML_TYPE_STRING, CTF_FONTSTYLENAME_CTL ),
	MT_ED( "CharFontFamilyComplex",	STYLE,	FONT_FAMILY_GENERIC_COMPLEX,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY_CTL ),
	MT_ED( "CharFontPitchComplex",	STYLE,	FONT_PITCH_COMPLEX,			XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH_CTL ),
	MT_ED( "CharFontCharSetComplex",	STYLE,	FONT_CHARSET_COMPLEX,		XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET_CTL ),
	// RES_CHRATR_CTL_FONTSIZE
	MT_ED( "CharHeightComplex",		  STYLE,	FONT_SIZE_COMPLEX,			XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_CTL ),
	MT_ED( "CharPropHeightComplex",STYLE,	FONT_SIZE_COMPLEX,			XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL_CTL ),
	MT_ED( "CharDiffHeightComplex",STYLE,FONT_SIZE_REL_COMPLEX,		XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF_CTL ),
	// RES_CHRATR_CTL_LANGUAGE
	MT_ED( "CharLocaleComplex",		STYLE,		LANGUAGE_COMPLEX, 			XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
	MT_ED( "CharLocaleComplex",		STYLE,		COUNTRY_COMPLEX, 			XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
	// RES_CHRATR_CTL_POSTURE
	MT_E( "CharPostureComplex",		STYLE,		FONT_STYLE_COMPLEX,			XML_TYPE_TEXT_POSTURE, 0 ),
	// RES_CHRATR_CTL_WEIGHT
	MT_E( "CharWeightComplex",		STYLE,		FONT_WEIGHT_COMPLEX,		XML_TYPE_TEXT_WEIGHT, 0 ),
	// RES_CHRATR_ROTATE
	MT_E( "CharRotation",			STYLE,		TEXT_ROTATION_ANGLE,		XML_TYPE_TEXT_ROTATION_ANGLE, 0 ),
	MT_E( "CharRotationIsFitToLine",	STYLE,		TEXT_ROTATION_SCALE,		XML_TYPE_TEXT_ROTATION_SCALE, 0 ),
	// RES_CHRATR_EMPHASIS_MARK
	MT_E( "CharEmphasis",			STYLE,		TEXT_EMPHASIZE,				XML_TYPE_TEXT_EMPHASIZE, 0 ),
	// RES_CHRATR_TWO_LINES
	MT_E( "CharCombineIsOn",			STYLE,		TEXT_COMBINE,				XML_TYPE_TEXT_COMBINE|MID_FLAG_MULTI_PROPERTY, 0 ),
=====================================================================
Found a 99 line (948 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/EDatabaseMetaData.cxx

Reference< XResultSet > SAL_CALL OFlatDatabaseMetaData::getTypeInfo(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );

	::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet();
        Reference< XResultSet > xRef = pResult;
	pResult->setTypeInfoMap();
	static ODatabaseMetaDataResultSet::ORows aRows;
	if(aRows.empty())
	{
		ODatabaseMetaDataResultSet::ORow aRow;

		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator(::rtl::OUString::createFromAscii("CHAR")));
		aRow.push_back(new ORowSetValueDecorator(DataType::CHAR));
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)254));
		aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnValue::NULLABLE));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("VARCHAR"));
		aRow[2] = new ORowSetValueDecorator(DataType::VARCHAR);
		aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRows.push_back(aRow);


		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("LONGVARCHAR"));
		aRow[2] = new ORowSetValueDecorator(DataType::LONGVARCHAR);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)65535);
		aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("DATE"));
		aRow[2] = new ORowSetValueDecorator(DataType::DATE);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)10);
		aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("TIME"));
		aRow[2] = new ORowSetValueDecorator(DataType::TIME);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)8);
		aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("TIMESTAMP"));
		aRow[2] = new ORowSetValueDecorator(DataType::TIMESTAMP);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)19);
		aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("BOOL"));
		aRow[2] = new ORowSetValueDecorator(DataType::BIT);
		aRow[3] = ODatabaseMetaDataResultSet::get1Value();
		aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("DECIMAL"));
		aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)20);
		aRow[15] = new ORowSetValueDecorator((sal_Int32)15);
		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("DOUBLE"));
		aRow[2] = new ORowSetValueDecorator(DataType::DOUBLE);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)20);
		aRow[15] = ODatabaseMetaDataResultSet::get0Value();
		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("NUMERIC"));
		aRow[2] = new ORowSetValueDecorator(DataType::NUMERIC);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)20);
		aRow[15] = new ORowSetValueDecorator((sal_Int32)20);
		aRows.push_back(aRow);
	}

	pResult->setRows(aRows);
	return xRef;
}
// -------------------------------------------------------------------------
Reference< XResultSet > SAL_CALL OFlatDatabaseMetaData::getColumnPrivileges(
=====================================================================
Found a 160 line (931 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/logindlg.cxx
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/uui/source/logindlg.cxx

void LoginDialog::HideControls_Impl( USHORT nFlags )
{
	FASTBOOL bPathHide = FALSE;
	FASTBOOL bErrorHide = FALSE;
	FASTBOOL bAccountHide = FALSE;

	if ( ( nFlags & LF_NO_PATH ) == LF_NO_PATH )
	{
		aPathFT.Hide();
		aPathED.Hide();
		aPathBtn.Hide();
		bPathHide = TRUE;
	}
	else if ( ( nFlags & LF_PATH_READONLY ) == LF_PATH_READONLY )
	{
		aPathED.Hide();
		aPathInfo.Show();
		aPathBtn.Hide();
	}

	if ( ( nFlags & LF_NO_USERNAME ) == LF_NO_USERNAME )
	{
		aNameFT.Hide();
		aNameED.Hide();
	}
	else if ( ( nFlags & LF_USERNAME_READONLY ) == LF_USERNAME_READONLY )
	{
		aNameED.Hide();
		aNameInfo.Show();
	}

	if ( ( nFlags & LF_NO_PASSWORD ) == LF_NO_PASSWORD )
	{
		aPasswordFT.Hide();
		aPasswordED.Hide();
	}

	if ( ( nFlags & LF_NO_SAVEPASSWORD ) == LF_NO_SAVEPASSWORD )
		aSavePasswdBtn.Hide();

	if ( ( nFlags & LF_NO_ERRORTEXT ) == LF_NO_ERRORTEXT )
	{
		aErrorInfo.Hide();
		aErrorGB.Hide();
		bErrorHide = TRUE;
	}

	if ( ( nFlags & LF_NO_ACCOUNT ) == LF_NO_ACCOUNT )
	{
		aAccountFT.Hide();
		aAccountED.Hide();
		bAccountHide = TRUE;
	}

	if ( bErrorHide )
	{
		long nOffset = aLoginGB.GetPosPixel().Y() -
					   aErrorGB.GetPosPixel().Y();
		Point aNewPnt = aRequestInfo.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aRequestInfo.SetPosPixel( aNewPnt );
		aNewPnt = aPathFT.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aPathFT.SetPosPixel( aNewPnt );
		aNewPnt = aPathED.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aPathED.SetPosPixel( aNewPnt );
		aNewPnt = aPathInfo.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aPathInfo.SetPosPixel( aNewPnt );
		aNewPnt = aPathBtn.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aPathBtn.SetPosPixel( aNewPnt );
		aNewPnt = aNameFT.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aNameFT.SetPosPixel( aNewPnt );
		aNewPnt = aNameED.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aNameED.SetPosPixel( aNewPnt );
		aNewPnt = aNameInfo.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aNameInfo.SetPosPixel( aNewPnt );
		aNewPnt = aPasswordFT.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aPasswordFT.SetPosPixel( aNewPnt );
		aNewPnt = aPasswordED.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aPasswordED.SetPosPixel( aNewPnt );
		aNewPnt = aAccountFT.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aAccountFT.SetPosPixel( aNewPnt );
		aNewPnt = aAccountED.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aAccountED.SetPosPixel( aNewPnt );
		aNewPnt = aSavePasswdBtn.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aSavePasswdBtn.SetPosPixel( aNewPnt );
		aNewPnt = aLoginGB.GetPosPixel();
		aNewPnt.Y() -= nOffset;
		aLoginGB.SetPosPixel( aNewPnt );
		Size aNewSiz = GetSizePixel();
		aNewSiz.Height() -= nOffset;
		SetSizePixel( aNewSiz );
	}

	if ( bPathHide )
	{
		long nOffset = aNameED.GetPosPixel().Y() -
					   aPathED.GetPosPixel().Y();

		Point aTmpPnt1 = aNameFT.GetPosPixel();
		Point aTmpPnt2 = aPasswordFT.GetPosPixel();
		aNameFT.SetPosPixel( aPathFT.GetPosPixel() );
		aPasswordFT.SetPosPixel( aTmpPnt1 );
		aAccountFT.SetPosPixel( aTmpPnt2 );
		aTmpPnt1 = aNameED.GetPosPixel();
		aTmpPnt2 = aPasswordED.GetPosPixel();
		aNameED.SetPosPixel( aPathED.GetPosPixel() );
		aPasswordED.SetPosPixel( aTmpPnt1 );
		aAccountED.SetPosPixel( aTmpPnt2 );
		aNameInfo.SetPosPixel( aPathInfo.GetPosPixel() );
		aTmpPnt1 = aSavePasswdBtn.GetPosPixel();
		aTmpPnt1.Y() -= nOffset;
		aSavePasswdBtn.SetPosPixel( aTmpPnt1 );
		Size aNewSz = GetSizePixel();
		aNewSz.Height() -= nOffset;
		SetSizePixel( aNewSz );
	}

	if ( bAccountHide )
	{
		long nOffset = aAccountED.GetPosPixel().Y() - aPasswordED.GetPosPixel().Y();

		Point aTmpPnt = aSavePasswdBtn.GetPosPixel();
		aTmpPnt.Y() -= nOffset;
		aSavePasswdBtn.SetPosPixel( aTmpPnt );
		Size aNewSz = GetSizePixel();
		aNewSz.Height() -= nOffset;
		SetSizePixel( aNewSz );
	}
};

// -----------------------------------------------------------------------

IMPL_LINK( LoginDialog, OKHdl_Impl, OKButton *, EMPTYARG )
{
	// trim the strings
	aNameED.SetText( aNameED.GetText().EraseLeadingChars().
		EraseTrailingChars() );
	aPasswordED.SetText( aPasswordED.GetText().EraseLeadingChars().
		EraseTrailingChars() );
	EndDialog( RET_OK );
	return 1;
}

// -----------------------------------------------------------------------

IMPL_LINK( LoginDialog, PathHdl_Impl, PushButton *, EMPTYARG )
{
	PathDialog* pDlg = new PathDialog( this, WB_3DLOOK );
=====================================================================
Found a 20 line (927 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2418 - 241f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2420 - 2427
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2428 - 242f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2430 - 2437
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2438 - 243f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2440 - 2447
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2448 - 244f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2450 - 2457
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2458 - 245f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2460 - 2467
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2468 - 246f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2470 - 2477
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2478 - 247f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2480 - 2487
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2488 - 248f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2490 - 2497
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2498 - 249f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24a0 - 24a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24a8 - 24af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x68, 0x24D0}, {0x68, 0x24D1}, // 24b0 - 24b7
=====================================================================
Found a 117 line (925 tokens) duplication in the following files: 
Starting at line 622 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2696 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0x69, 0xdd },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x00, 0xa6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x00, 0xa9, 0xa9 },
{ 0x00, 0xaa, 0xaa },
{ 0x00, 0xab, 0xab },
{ 0x00, 0xac, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x00, 0xb3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x00, 0xd7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0x69, 0xdd },
=====================================================================
Found a 190 line (925 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/qssl/runargv.c
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/microsft/vpp40/runargv.c

   return(1);
}


PUBLIC int
Wait_for_child( abort_flg, pid )
int abort_flg;
int pid;
{
   int wid;
   int status;
   int waitchild;

   waitchild = (pid == -1)? FALSE : Wait_for_completion;

   do {
      if( (wid = wait(&status)) == -1 ) return(-1);

      _abort_flg = abort_flg;
      _finished_child(wid, status);
      _abort_flg = FALSE;
   } while( waitchild && pid != wid );

   return(0);
}


PUBLIC void
Clean_up_processes()
{
   register int i;

   if( _procs != NIL(PR) ) {
      for( i=0; i<Max_proc; i++ )
	 if( _procs[i].pr_valid )
	    kill(_procs[i].pr_pid, SIGTERM);

      while( Wait_for_child(TRUE, -1) != -1 );
   }
}


static void
_add_child( pid, target, ignore, last )
int	pid;
CELLPTR target;
int	ignore;
int     last;
{
   register int i;
   register PR *pp;

   if( _procs == NIL(PR) ) {
      TALLOC( _procs, Max_proc, PR );
   }

   if( (i = _use_i) == -1 )
      for( i=0; i<Max_proc; i++ )
	 if( !_procs[i].pr_valid )
	    break;

   pp = _procs+i;

   pp->pr_valid  = 1;
   pp->pr_pid    = pid;
   pp->pr_target = target;
   pp->pr_ignore = ignore;
   pp->pr_last   = last;
   pp->pr_dir    = DmStrDup(Get_current_dir());

   Current_target = NIL(CELL);

   _proc_cnt++;

   if( Wait_for_completion ) Wait_for_child( FALSE, pid );
}


static void
_finished_child(pid, status)
int	pid;
int	status;
{
   register int i;
   register PR *pp;
   char     *dir;

   for( i=0; i<Max_proc; i++ )
      if( _procs[i].pr_valid && _procs[i].pr_pid == pid )
	 break;

   /* Some children we didn't make esp true if using /bin/sh to execute a
    * a pipe and feed the output as a makefile into dmake. */
   if( i == Max_proc ) return;
   _procs[i].pr_valid = 0;
   _proc_cnt--;
   dir = DmStrDup(Get_current_dir());
   Set_dir( _procs[i].pr_dir );

   if( _procs[i].pr_recipe != NIL(RCP) && !_abort_flg ) {
      RCPPTR rp = _procs[i].pr_recipe;


      Current_target = _procs[i].pr_target;
      Handle_result( status, _procs[i].pr_ignore, FALSE, _procs[i].pr_target );
      Current_target = NIL(CELL);

      if ( _procs[i].pr_target->ce_attr & A_ERROR ) {
	 Unlink_temp_files( _procs[i].pr_target );
	 _procs[i].pr_last = TRUE;
	 goto ABORT_REMAINDER_OF_RECIPE;
      }

      _procs[i].pr_recipe = rp->prp_next;

      _use_i = i;
      runargv( _procs[i].pr_target, rp->prp_ignore, rp->prp_group,
	       rp->prp_last, rp->prp_shell, rp->prp_cmd );
      _use_i = -1;

      FREE( rp->prp_cmd );
      FREE( rp );

      if( _proc_cnt == Max_proc ) Wait_for_child( FALSE, -1 );
   }
   else {
      Unlink_temp_files( _procs[i].pr_target );
      Handle_result(status,_procs[i].pr_ignore,_abort_flg,_procs[i].pr_target);

 ABORT_REMAINDER_OF_RECIPE:
      if( _procs[i].pr_last ) {
	 FREE(_procs[i].pr_dir );

	 if( !Doing_bang ) Update_time_stamp( _procs[i].pr_target );
      }
   }

   Set_dir(dir);
   FREE(dir);
}


static int
_running( cp )
CELLPTR cp;
{
   register int i;

   if( !_procs ) return(FALSE);

   for( i=0; i<Max_proc; i++ )
      if( _procs[i].pr_valid &&
	  _procs[i].pr_target == cp  )
	 break;
	 
   return( i != Max_proc );
}


static void
_attach_cmd( cmd, group, ignore, cp, last, shell )
char    *cmd;
int	group;
int     ignore;
CELLPTR cp;
int     last;
int     shell;
{
   register int i;
   RCPPTR rp;

   for( i=0; i<Max_proc; i++ )
      if( _procs[i].pr_valid &&
	  _procs[i].pr_target == cp  )
	 break;

   TALLOC( rp, 1, RCP );
   rp->prp_cmd   = DmStrDup(cmd);
   rp->prp_group = group;
   rp->prp_ignore= ignore;
   rp->prp_last  = last;
   rp->prp_shell = shell;

   if( _procs[i].pr_recipe == NIL(RCP) )
      _procs[i].pr_recipe = _procs[i].pr_recipe_end = rp;
   else {
      _procs[i].pr_recipe_end->prp_next = rp;
      _procs[i].pr_recipe_end = rp;
   }
}
=====================================================================
Found a 21 line (905 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 459 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb88 - fb8f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb90 - fb97
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb98 - fb9f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fba0 - fba7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fba8 - fbaf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbb0 - fbb7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbb8 - fbbf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbc0 - fbc7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbc8 - fbcf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbd0 - fbd7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbd8 - fbdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbe0 - fbe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbe8 - fbef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbf0 - fbf7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbf8 - fbff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff00 - ff07
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff08 - ff0f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff10 - ff17
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff18 - ff1f
    {0x00, 0x0000}, {0x6a, 0xFF41}, {0x6a, 0xFF42}, {0x6a, 0xFF43}, {0x6a, 0xFF44}, {0x6a, 0xFF45}, {0x6a, 0xFF46}, {0x6a, 0xFF47}, // ff20 - ff27
=====================================================================
Found a 21 line (903 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x14, 0x24CE}, {0x14, 0x24CF}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24e8 - 24ef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24f0 - 24f7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24f8 - 24ff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c00 - 2c07
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c08 - 2c0f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c10 - 2c17
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c18 - 2c1f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c20 - 2c27
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c28 - 2c2f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c30 - 2c37
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c38 - 2c3f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c40 - 2c47
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c48 - 2c4f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c50 - 2c57
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c58 - 2c5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c60 - 2c67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c68 - 2c6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c70 - 2c77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c78 - 2c7f
    {0x6a, 0x2c81}, {0x15, 0x2c80}, {0x6a, 0x2c83}, {0x15, 0x2c82}, {0x6a, 0x2c85}, {0x15, 0x2c84}, {0x6a, 0x2c87}, {0x15, 0x2c86}, // 2c80 - 2c87, Coptic
=====================================================================
Found a 229 line (900 tokens) duplication in the following files: 
Starting at line 4594 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 4804 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

                    (pPcd->nStartPos == WW8_CP_MAX)) &&
                    (pPcd->nEndPos != p->nStartPos))
                {
                    pPcd->nEndPos = p->nStartPos;
                    ((WW8PLCFx_PCD *)(pPcd->pPLCFx))->SetClipStart(
                        p->nStartPos);
                }

            }
            else
            {
                (*p->pPLCFx)++;     // next Group of Sprms
                p->pMemPos = 0;     // !!!
                p->nSprmsLen = 0;
                GetNewSprms( *p );
            }
            ASSERT( p->nStartPos <= p->nEndPos, "Attribut ueber Kreuz" );
        }
    }
}

void WW8PLCFMan::AdvNoSprm(short nIdx, bool bStart)
{
    /*
    For the case of a piece table we slave the piece table attribute iterator
    to the piece table and access it through that only. They are two seperate
    structures, but act together as one logical one. The attributes only go
    to the next entry when the piece changes
    */
    register WW8PLCFxDesc* p = &aD[nIdx];

    if( p == pPcd )
    {
        AdvSprm(nIdx+1,bStart);
        if( bStart )
            p->nStartPos = aD[nIdx+1].nStartPos;
        else
        {
            if (aD[nIdx+1].pIdStk->empty())
            {
                WW8PLCFx_PCD *pTemp = (WW8PLCFx_PCD*)(pPcd->pPLCFx);
                /*
                #i2325#
                As per normal, go on to the next set of properties, i.e. we
                have traversed over to the next piece.  With a clipstart set
                we are being told to reread the current piece sprms so as to
                reapply them to a new chp or pap range.
                */
                if (pTemp->GetClipStart() == -1)
                    (*p->pPLCFx)++;
                p->pMemPos = 0;
                p->nSprmsLen = 0;
                GetNewSprms( aD[nIdx+1] );
                GetNewNoSprms( *p );
                if (pTemp->GetClipStart() != -1)
                {
                    /*
                    #i2325#, now we will force our starting position to the
                    clipping start so as to force the application of these
                    sprms after the current pap/chp sprms so as to apply the
                    fastsave sprms to the current range.
                    */
                    p->nStartPos = pTemp->GetClipStart();
                    pTemp->SetClipStart(-1);
                }
            }
        }
    }
    else
    {                                  // NoSprm ohne Ende
        (*p->pPLCFx)++;
        p->pMemPos = 0;                     // MemPos ungueltig
        p->nSprmsLen = 0;
        GetNewNoSprms( *p );
    }
}

WW8PLCFMan& WW8PLCFMan::operator ++(int)
{
    bool bStart;
    USHORT nIdx = WhereIdx(&bStart);
    if (nIdx < nPLCF)
    {
        register WW8PLCFxDesc* p = &aD[nIdx];

        p->bFirstSprm = true;                       // Default

        if( p->pPLCFx->IsSprm() )
            AdvSprm( nIdx, bStart );
        else                                        // NoSprm
            AdvNoSprm( nIdx, bStart );
    }
    return *this;
}

// Rueckgabe true fuer Anfang eines Attributes oder Fehler,
//           false fuer Ende d. Attr
// Restliche Rueckgabewerte werden in der vom Aufrufer zu stellenden Struktur
// WW8PclxManResults geliefert.
bool WW8PLCFMan::Get(WW8PLCFManResult* pRes) const
{
    memset( pRes, 0, sizeof( WW8PLCFManResult ) );
    bool bStart;
    USHORT nIdx = WhereIdx(&bStart);

    if( nIdx >= nPLCF )
    {
        ASSERT( !this, "Position not found" );
        return true;
    }

    if( aD[nIdx].pPLCFx->IsSprm() )
    {
        if( bStart )
        {
            GetSprmStart( nIdx, pRes );
            return true;
        }
        else
        {
            GetSprmEnd( nIdx, pRes );
            return false;
        }
    }
    else
    {
        if( bStart )
        {
            GetNoSprmStart( nIdx, pRes );
            return true;
        }
        else
        {
            GetNoSprmEnd( nIdx, pRes );
            return false;
        }
    }
}

USHORT WW8PLCFMan::GetColl() const
{
    if( pPap->pPLCFx )
        return  pPap->pPLCFx->GetIstd();
    else
    {
        ASSERT( !this, "GetColl ohne PLCF_Pap" );
        return 0;
    }
}

WW8PLCFx_FLD* WW8PLCFMan::GetFld() const
{
    return (WW8PLCFx_FLD*)pFld->pPLCFx;
}

const BYTE* WW8PLCFMan::HasParaSprm( USHORT nId ) const
{
    return ((WW8PLCFx_Cp_FKP*)pPap->pPLCFx)->HasSprm( nId );
}

const BYTE* WW8PLCFMan::HasCharSprm( USHORT nId ) const
{
    return ((WW8PLCFx_Cp_FKP*)pChp->pPLCFx)->HasSprm( nId );
}

bool WW8PLCFMan::HasCharSprm(USHORT nId,
    std::vector<const BYTE *> &rResult) const
{
    return ((WW8PLCFx_Cp_FKP*)pChp->pPLCFx)->HasSprm(nId, rResult);
}

#endif // !DUMP

void WW8PLCFx::Save( WW8PLCFxSave1& rSave ) const
{
    rSave.nPLCFxPos    = GetIdx();
    rSave.nPLCFxPos2   = GetIdx2();
    rSave.nPLCFxMemOfs = 0;
    rSave.nStartFC     = GetStartFc();
}

void WW8PLCFx::Restore( const WW8PLCFxSave1& rSave )
{
    SetIdx(     rSave.nPLCFxPos  );
    SetIdx2(    rSave.nPLCFxPos2 );
    SetStartFc( rSave.nStartFC   );
}

ULONG WW8PLCFx_Cp_FKP::GetIdx2() const
{
    return GetPCDIdx();
}

void WW8PLCFx_Cp_FKP::SetIdx2( ULONG nIdx )
{
    SetPCDIdx( nIdx );
}

void WW8PLCFx_Cp_FKP::Save( WW8PLCFxSave1& rSave ) const
{
    WW8PLCFx::Save( rSave );

    rSave.nAttrStart = nAttrStart;
    rSave.nAttrEnd   = nAttrEnd;
    rSave.bLineEnd   = bLineEnd;
}

void WW8PLCFx_Cp_FKP::Restore( const WW8PLCFxSave1& rSave )
{
    WW8PLCFx::Restore( rSave );

    nAttrStart = rSave.nAttrStart;
    nAttrEnd   = rSave.nAttrEnd;
    bLineEnd   = rSave.bLineEnd;
}

void WW8PLCFxDesc::Save( WW8PLCFxSave1& rSave ) const
{
    if( pPLCFx )
    {
        pPLCFx->Save( rSave );
        if( pPLCFx->IsSprm() )
        {
            WW8PLCFxDesc aD;
            aD.nStartPos = nOrigStartPos+nCpOfs;
            aD.nCpOfs = rSave.nCpOfs = nCpOfs;
            if (!(pPLCFx->SeekPos(aD.nStartPos)))
            {
                aD.nEndPos = WW8_CP_MAX;
=====================================================================
Found a 75 line (883 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/386ix/public.h
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/solaris/public.h

t_attr Rcp_attribute ANSI((char *));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
int If_root_path ANSI((char *));
void Remove_prq ANSI((CELLPTR));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
int Wait_for_child ANSI((int, int));
void Clean_up_processes ANSI(());
time_t CacheStat ANSI((char *, int));
=====================================================================
Found a 75 line (882 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/386ix/public.h
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/macosx/gnu/public.h

PUBLIC int main ANSI((int argc, char **argv));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
int If_root_path ANSI((char *));
void Remove_prq ANSI((CELLPTR));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
int Wait_for_child ANSI((int, int));
void Clean_up_processes ANSI(());
time_t CacheStat ANSI((char *, int));
=====================================================================
Found a 84 line (880 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 791 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

				Any( &xI, ::getCppuType( (const Reference<XInterface > *)0 ) ) );
		
		aSetData.Sequence = Sequence<test::TestElement >( (const test::TestElement *)&aSetData, 1 );
		
		xLBT->setValues(
			aSetData.Bool, aSetData.Char, aSetData.Byte, aSetData.Short, aSetData.UShort,
			aSetData.Long, aSetData.ULong, aSetData.Hyper, aSetData.UHyper, aSetData.Float, aSetData.Double,
			aSetData.Enum, aSetData.String, aSetData.Interface, aSetData.Any, aSetData.Sequence, aSetData );

		{
		test::TestData aRet, aRet2;
		xLBT->getValues(
			aRet.Bool, aRet.Char, aRet.Byte, aRet.Short, aRet.UShort,
			aRet.Long, aRet.ULong, aRet.Hyper, aRet.UHyper, aRet.Float, aRet.Double,
			aRet.Enum, aRet.String, aRet.Interface, aRet.Any, aRet.Sequence, aRet2 );
		
		OSL_ASSERT( equals( aData, aRet ) && equals( aData, aRet2 ) );
		
		// set last retrieved values
		test::TestData aSV2ret = xLBT->setValues2(
			aRet.Bool, aRet.Char, aRet.Byte, aRet.Short, aRet.UShort,
			aRet.Long, aRet.ULong, aRet.Hyper, aRet.UHyper, aRet.Float, aRet.Double,
			aRet.Enum, aRet.String, aRet.Interface, aRet.Any, aRet.Sequence, aRet2 );
		
		OSL_ASSERT( equals( aData, aSV2ret ) && equals( aData, aRet2 ) );
		}
		{
		test::TestData aRet, aRet2;
		test::TestData aGVret = xLBT->getValues(
			aRet.Bool, aRet.Char, aRet.Byte, aRet.Short, aRet.UShort,
			aRet.Long, aRet.ULong, aRet.Hyper, aRet.UHyper, aRet.Float, aRet.Double,
			aRet.Enum, aRet.String, aRet.Interface, aRet.Any, aRet.Sequence, aRet2 );
		
		OSL_ASSERT( equals( aData, aRet ) && equals( aData, aRet2 ) && equals( aData, aGVret ) );
		
		// set last retrieved values
		xLBT->setBool( aRet.Bool );
		xLBT->setChar( aRet.Char );
		xLBT->setByte( aRet.Byte );
		xLBT->setShort( aRet.Short );
		xLBT->setUShort( aRet.UShort );
		xLBT->setLong( aRet.Long );
		xLBT->setULong( aRet.ULong );
		xLBT->setHyper( aRet.Hyper );
		xLBT->setUHyper( aRet.UHyper );
		xLBT->setFloat( aRet.Float );
		xLBT->setDouble( aRet.Double );
		xLBT->setEnum( aRet.Enum );
		xLBT->setString( aRet.String );
		xLBT->setInterface( aRet.Interface );
		xLBT->setAny( aRet.Any );
		xLBT->setSequence( aRet.Sequence );
		xLBT->setStruct( aRet2 );
		}
		{
		test::TestData aRet, aRet2;
		aRet.Hyper = xLBT->getHyper();
		aRet.UHyper = xLBT->getUHyper();
		aRet.Float = xLBT->getFloat();
		aRet.Double = xLBT->getDouble();
		aRet.Byte = xLBT->getByte();
		aRet.Char = xLBT->getChar();
		aRet.Bool = xLBT->getBool();
		aRet.Short = xLBT->getShort();
		aRet.UShort = xLBT->getUShort();
		aRet.Long = xLBT->getLong();
		aRet.ULong = xLBT->getULong();
		aRet.Enum = xLBT->getEnum();
		aRet.String = xLBT->getString();
		aRet.Interface = xLBT->getInterface();
		aRet.Any = xLBT->getAny();
		aRet.Sequence = xLBT->getSequence();
		aRet2 = xLBT->getStruct();
		
		return (equals( aData, aRet ) && equals( aData, aRet2 ));
		}
	}
	return sal_False;
}

//__________________________________________________________________________________________________
test::TestData Test_Impl::raiseException( sal_Bool& /*bBool*/, sal_Unicode& /*cChar*/, sal_Int8& /*nByte*/, sal_Int16& /*nShort*/, sal_uInt16& /*nUShort*/, sal_Int32& /*nLong*/, sal_uInt32& /*nULong*/, sal_Int64& /*nHyper*/, sal_uInt64& /*nUHyper*/, float& /*fFloat*/, double& /*fDouble*/, test::TestEnum& /*eEnum*/, ::rtl::OUString& /*aString*/, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& /*xInterface*/, ::com::sun::star::uno::Any& /*aAny*/, ::com::sun::star::uno::Sequence< test::TestElement >& /*aSequence*/, test::TestData& /*aStruct*/ )
	throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
=====================================================================
Found a 19 line (867 tokens) duplication in the following files: 
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x15, 0xFF38}, {0x15, 0xFF39}, {0x15, 0xFF3A}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff58 - ff5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff60 - ff67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff68 - ff6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff70 - ff77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff78 - ff7f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff80 - ff87
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff88 - ff8f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff90 - ff97
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff98 - ff9f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffa0 - ffa7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffa8 - ffaf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffb0 - ffb7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffb8 - ffbf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffc0 - ffc7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffc8 - ffcf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd0 - ffd7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd8 - ffdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe0 - ffe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe8 - ffef
=====================================================================
Found a 113 line (867 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx

void* RTTIHolder::insertRTTI( const OString& rTypename )
{
	OString aMangledName( toRTTImangledname( rTypename ) );
	NIST_Hash aHash( aMangledName.getStr(), aMangledName.getLength() );

    std::size_t const RTTI_SIZE = 19; // 14???
	void** pRTTI = reinterpret_cast< void ** >(
        new char[RTTI_SIZE * sizeof (void *) + strlen(rTypename.getStr()) + 1]);
	pRTTI[  0 ] = reinterpret_cast< void * >(RTTI_SIZE * sizeof (void *));
	pRTTI[  1 ] = NULL;
	pRTTI[  2 ] = (void*)(7*sizeof(void*));
	pRTTI[  3 ] = (void*)aHash.getHash()[0];
	pRTTI[  4 ] = (void*)aHash.getHash()[1];
	pRTTI[  5 ] = (void*)aHash.getHash()[2];
	pRTTI[  6 ] = (void*)aHash.getHash()[3];
	pRTTI[  7 ] = NULL;
	pRTTI[  8 ] = NULL;

	pRTTI[  9 ] = pRTTI[ 3 ];
	pRTTI[ 10 ] = pRTTI[ 4 ];
	pRTTI[ 11 ] = pRTTI[ 5 ];
	pRTTI[ 12 ] = pRTTI[ 6 ];
	pRTTI[ 13 ] = (void*)0x80000000;
    strcpy(reinterpret_cast< char * >(pRTTI + RTTI_SIZE), rTypename.getStr());

	aAllRTTI[ rTypename ] = (void*)pRTTI;
#if OSL_DEBUG_LEVEL > 1
	fprintf( stderr,
			 "generating base RTTI for type %s:\n"
			 "   mangled: %s\n"
			 "   hash: %.8x %.8x %.8x %.8x\n",
			 rTypename.getStr(),
			 aMangledName.getStr(),
			 pRTTI[ 3 ], pRTTI[ 4 ], pRTTI[ 5 ], pRTTI[ 6 ]
			 );
#endif
	return pRTTI;
}

//--------------------------------------------------------------------------------------------------

void* RTTIHolder::generateRTTI( typelib_CompoundTypeDescription * pCompTypeDescr )
{
	OString aUNOCompTypeName( OUStringToOString( pCompTypeDescr->aBase.pTypeName, RTL_TEXTENCODING_ASCII_US ) );
	OString aRTTICompTypeName( toRTTIname( aUNOCompTypeName ) );

	void* pHaveRTTI = getRTTI( aRTTICompTypeName );
	if( pHaveRTTI )
		return pHaveRTTI;

	if( ! pCompTypeDescr->pBaseTypeDescription )
		// this is a base type
		return insertRTTI( aRTTICompTypeName );

	// get base class RTTI
	void* pSuperRTTI = generateRTTI( pCompTypeDescr->pBaseTypeDescription );
	OSL_ENSURE( pSuperRTTI, "could not generate RTTI for supertype !" );

	// find out the size to allocate for RTTI
	void** pInherit = (void**)((sal_uInt32)pSuperRTTI + ((sal_uInt32*)pSuperRTTI)[2] + 8);
	int nInherit;
	for( nInherit = 1; pInherit[ nInherit*5-1 ] != (void*)0x80000000; nInherit++ )
		;

	OString aMangledName( toRTTImangledname( aRTTICompTypeName ) );
	NIST_Hash aHash( aMangledName.getStr(), aMangledName.getLength() );

    std::size_t const rttiSize = 14 + nInherit * 5;
	void** pRTTI = reinterpret_cast< void ** >(
        new char[
            rttiSize * sizeof (void *)
            + strlen(aRTTICompTypeName.getStr()) + 1]);
	pRTTI[  0 ] = reinterpret_cast< void * >(rttiSize * sizeof (void *));
	pRTTI[  1 ] = NULL;
	pRTTI[  2 ] = (void*)(7*sizeof(void*));
	pRTTI[  3 ] = (void*)aHash.getHash()[0];
	pRTTI[  4 ] = (void*)aHash.getHash()[1];
	pRTTI[  5 ] = (void*)aHash.getHash()[2];
	pRTTI[  6 ] = (void*)aHash.getHash()[3];
	pRTTI[  7 ] = NULL;
	pRTTI[  8 ] = NULL;

	memcpy( pRTTI+9, pInherit, 4*nInherit*5 );
	pRTTI[ 8 +nInherit*5 ] = NULL;
	pRTTI[ 9 +nInherit*5 ] = pRTTI[ 3 ];
	pRTTI[ 10+nInherit*5 ] = pRTTI[ 4 ];
	pRTTI[ 11+nInherit*5 ] = pRTTI[ 5 ];
	pRTTI[ 12+nInherit*5 ] = pRTTI[ 6 ];
	pRTTI[ 13+nInherit*5 ] = (void*)0x80000000;
    strcpy(
        reinterpret_cast< char * >(pRTTI + rttiSize),
        aRTTICompTypeName.getStr());

	aAllRTTI[ aRTTICompTypeName ] = (void*)pRTTI;

#if OSL_DEBUG_LEVEL > 1
	fprintf( stderr,
			 "generating struct RTTI for type %s:\n"
			 "   mangled: %s\n"
			 "   hash: %.8x %.8x %.8X %.8x\n",
			 aRTTICompTypeName.getStr(),
			 aMangledName.getStr(),
			 pRTTI[ 3 ], pRTTI[ 4 ], pRTTI[ 5 ], pRTTI[ 6 ]
			 );
#endif

	return pRTTI;
}

//--------------------------------------------------------------------------------------------------

static void deleteException(
    void* pExc, unsigned int* thunk, typelib_TypeDescription* pType )
=====================================================================
Found a 159 line (859 tokens) duplication in the following files: 
Starting at line 410 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsdocumenthandler.cxx
Starting at line 419 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsdocumenthandler.cxx

	const OUString& /*aTarget*/, const OUString& /*aData*/ )
throw(	SAXException, RuntimeException )
{
}

void SAL_CALL OReadEventsDocumentHandler::setDocumentLocator(
	const Reference< XLocator > &xLocator)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	m_xLocator = xLocator;
}

::rtl::OUString OReadEventsDocumentHandler::getErrorLineString()
{
	ResetableGuard aGuard( m_aLock );

	char buffer[32];

	if ( m_xLocator.is() )
	{
		snprintf( buffer, sizeof(buffer), "Line: %ld - ", m_xLocator->getLineNumber() );
		return OUString::createFromAscii( buffer );
	}
	else
		return OUString();
}


//_________________________________________________________________________________________________________________
//	OWriteEventsDocumentHandler
//_________________________________________________________________________________________________________________

OWriteEventsDocumentHandler::OWriteEventsDocumentHandler(
	const EventsConfig& aItems,
	Reference< XDocumentHandler > rWriteDocumentHandler ) :
    ThreadHelpBase( &Application::GetSolarMutex() ),
	m_aItems( aItems ),
	m_xWriteDocumentHandler( rWriteDocumentHandler )
{
	m_xEmptyList		= Reference< XAttributeList >( (XAttributeList *)new AttributeListImpl, UNO_QUERY );
	m_aAttributeType	= OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_TYPE_CDATA ));
	m_aXMLXlinkNS		= OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_XLINK_PREFIX ));
	m_aXMLEventNS		= OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_EVENT_PREFIX ));
}

OWriteEventsDocumentHandler::~OWriteEventsDocumentHandler()
{
}

void OWriteEventsDocumentHandler::WriteEventsDocument() throw
( SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	m_xWriteDocumentHandler->startDocument();

	// write DOCTYPE line!
	Reference< XExtendedDocumentHandler > xExtendedDocHandler( m_xWriteDocumentHandler, UNO_QUERY );
	if ( xExtendedDocHandler.is() )
	{
		xExtendedDocHandler->unknown( OUString( RTL_CONSTASCII_USTRINGPARAM( EVENTS_DOCTYPE )) );
		m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	}

	AttributeListImpl* pList = new AttributeListImpl;
	Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY );

	pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XMLNS_EVENT )),
						 m_aAttributeType,
						 OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_EVENT )) );
	pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XMLNS_XLINK )),
						 m_aAttributeType,
						 OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_XLINK )) );

	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_EVENTS )), pList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );

	Sequence< PropertyValue > aEventProperties;

	for ( int i = 0; i < m_aItems.aEventNames.getLength(); i++ )
	{
		if ( m_aItems.aEventsProperties[i] >>= aEventProperties )
			WriteEvent( m_aItems.aEventNames[i], aEventProperties );
	}

	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_EVENTS )) );

	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endDocument();
}

//_________________________________________________________________________________________________________________
//	protected member functions
//_________________________________________________________________________________________________________________

void OWriteEventsDocumentHandler::WriteEvent( const OUString& aEventName, const Sequence< PropertyValue >& aPropertyValues ) throw
( SAXException, RuntimeException )
{
	if ( aPropertyValues.getLength() > 0 )
	{
		AttributeListImpl* pList = new AttributeListImpl;
		Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY );

		if ( m_aAttributeURL.getLength() == 0 )
		{
			m_aAttributeURL = m_aXMLXlinkNS;
			m_aAttributeURL += OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_HREF ));
			m_aAttributeLinkType = m_aXMLXlinkNS;
			m_aAttributeLinkType += OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_TYPE ));
			m_aAttributeLanguage = m_aXMLEventNS;
			m_aAttributeLanguage += OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_LANGUAGE ));
			m_aAttributeMacroName = m_aXMLEventNS;
			m_aAttributeMacroName += OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MACRONAME ));
			m_aAttributeLibrary = m_aXMLEventNS;
			m_aAttributeLibrary += OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_LIBRARY ));
			m_aAttributeName = m_aXMLEventNS;
			m_aAttributeName += OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_NAME ));
		}

		pList->addAttribute( m_aAttributeName, m_aAttributeType, aEventName );

		sal_Bool	bURLSet = sal_False;
		OUString	aValue;
		OUString	aName;

		// save attributes
		for ( int i = 0; i < aPropertyValues.getLength(); i++ )
		{
			aPropertyValues[i].Value >>= aValue;
			if ( aPropertyValues[i].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( PROP_EVENT_TYPE )))
				pList->addAttribute( m_aAttributeLanguage, m_aAttributeType, aValue );
			else if ( aPropertyValues[i].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( PROP_MACRO_NAME )) &&
					  aValue.getLength() > 0 )
				pList->addAttribute( m_aAttributeMacroName, m_aAttributeType, aValue );
			else if ( aPropertyValues[i].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( PROP_LIBRARY )) &&
					  aValue.getLength() > 0 )
				pList->addAttribute( m_aAttributeLibrary, m_aAttributeType, aValue );
			else if ( aPropertyValues[i].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( PROP_SCRIPT )))
			{
				pList->addAttribute( m_aAttributeURL, m_aAttributeType, aValue );
				bURLSet = sal_True;
			}
		}

		if ( bURLSet )
			pList->addAttribute( m_aAttributeLinkType, m_aAttributeType, OUString( RTL_CONSTASCII_USTRINGPARAM( "simple" )) );

		m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_EVENT )), xList );
		m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
		
		m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_EVENT )) );
		m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	}
}

} // namespace framework
=====================================================================
Found a 71 line (850 tokens) duplication in the following files: 
Starting at line 652 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/cfgview.cxx
Starting at line 891 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/cfgview.cxx

            sFilterPropHTML.append      ( OUString::valueOf( nFilters )                                                                                             );
            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                            );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">Name</td><td valign=\"top\" align=\"top\">&nbsp;"             );  // generate row "Name <value>"
            sFilterPropHTML.append      ( aFilter.sName                                                                                                             );
            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                            );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">Order</td><td valign=\"top\" align=\"top\">&nbsp;\""          );  // generate row "Order <value>"
            sFilterPropHTML.append      ( aFilter.nOrder                                                                                                            );
            sFilterPropHTML.appendAscii ( "\"</td></tr>\n"                                                                                                          );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">Type</td><td valign=\"top\" align=\"top\">&nbsp;\""           );  // generate row "Type <value>"
            sFilterPropHTML.append      ( aFilter.sType                                                                                                             );
            sFilterPropHTML.appendAscii ( "\"</td></tr>\n"                                                                                                          );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">UIName</td><td valign=\"top\" align=\"top\">"                 );  // generate row "UIName <value>"
            for(    ConstStringHashIterator pUIName=aFilter.lUINames.begin()  ;
                    pUIName!=aFilter.lUINames.end()                           ;
                    ++pUIName                                                 )
            {
                sFilterPropHTML.appendAscii   ( "&nbsp;["       );
                sFilterPropHTML.append        ( pUIName->first  );
                sFilterPropHTML.appendAscii   ( "] \""          );
                sFilterPropHTML.append        ( pUIName->second );
                sFilterPropHTML.appendAscii   ( "\"<br>"        );
            }
            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                          );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">DocumentService</td><td valign=\"top\" align=\"top\">&nbsp;"  );  // generate row "DocumentService <value>"
            sFilterPropHTML.append      ( aFilter.sDocumentService                                                                                          );
            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                            );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">FilterService</td><td valign=\"top\" align=\"top\">&nbsp;"    );  // generate row "FilterService <value>"
            sFilterPropHTML.append      ( aFilter.sFilterService                                                                                            );
            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                            );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">Flags</td><td valign=\"top\" align=\"top\">&nbsp;"            );  // generate row "Flags <value>"
            if( aFilter.nFlags & FILTERFLAG_IMPORT          ) { sFilterPropHTML.append( FILTERFLAGNAME_IMPORT          ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_EXPORT          ) { sFilterPropHTML.append( FILTERFLAGNAME_EXPORT          ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_TEMPLATE        ) { sFilterPropHTML.append( FILTERFLAGNAME_TEMPLATE        ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_INTERNAL        ) { sFilterPropHTML.append( FILTERFLAGNAME_INTERNAL        ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_TEMPLATEPATH    ) { sFilterPropHTML.append( FILTERFLAGNAME_TEMPLATEPATH    ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_OWN             ) { sFilterPropHTML.append( FILTERFLAGNAME_OWN             ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_ALIEN           ) { sFilterPropHTML.append( FILTERFLAGNAME_ALIEN           ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_USESOPTIONS     ) { sFilterPropHTML.append( FILTERFLAGNAME_USESOPTIONS     ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_DEFAULT         ) { sFilterPropHTML.append( FILTERFLAGNAME_DEFAULT         ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_NOTINFILEDIALOG ) { sFilterPropHTML.append( FILTERFLAGNAME_NOTINFILEDIALOG ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_NOTINCHOOSER    ) { sFilterPropHTML.append( FILTERFLAGNAME_NOTINCHOOSER    ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_ASYNCHRON       ) { sFilterPropHTML.append( FILTERFLAGNAME_ASYNCHRON       ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_READONLY        ) { sFilterPropHTML.append( FILTERFLAGNAME_READONLY        ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_NOTINSTALLED    ) { sFilterPropHTML.append( FILTERFLAGNAME_NOTINSTALLED    ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_CONSULTSERVICE  ) { sFilterPropHTML.append( FILTERFLAGNAME_CONSULTSERVICE  ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_3RDPARTYFILTER  ) { sFilterPropHTML.append( FILTERFLAGNAME_3RDPARTYFILTER  ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_PACKED          ) { sFilterPropHTML.append( FILTERFLAGNAME_PACKED          ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_SILENTEXPORT    ) { sFilterPropHTML.append( FILTERFLAGNAME_SILENTEXPORT    ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_BROWSERPREFERED ) { sFilterPropHTML.append( FILTERFLAGNAME_BROWSERPREFERED ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };
            if( aFilter.nFlags & FILTERFLAG_PREFERED        ) { sFilterPropHTML.append( FILTERFLAGNAME_PREFERED        ); sFilterPropHTML.appendAscii( "<br>&nbsp;" ); };

            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                            );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">UserData</td><td valign=\"top\" align=\"top\">"               );  // generate row "UserData <value>"
            for(    ConstStringListIterator pUserData=aFilter.lUserData.begin() ;
                    pUserData!=aFilter.lUserData.end()                          ;
                    ++pUserData                                                 )
            {
                sFilterPropHTML.appendAscii ( "&nbsp;\""    );
                sFilterPropHTML.append      ( *pUserData    );
                sFilterPropHTML.appendAscii ( "\"<br>"      );
            }
            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                            );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">FileFormatVersion</td><td valign=\"top\" align=\"top\">&nbsp;");  // generate row "FileFormatVersion <value>"
            sFilterPropHTML.append      ( OUString::valueOf( aFilter.nFileFormatVersion )                                                                           );
            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                            );
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">TemplateName</td><td valign=\"top\" align=\"top\">&nbsp;"     );  // generate row "TemplateName <value>"
            sFilterPropHTML.append      ( aFilter.sTemplateName                                                                                                     );
            sFilterPropHTML.appendAscii ( "</td></tr>\n"                                                                                                            );
            sFilterPropHTML.appendAscii ( "\t\t</table>\n"                                                                                                          );  // close table
            sFilterPropHTML.appendAscii ( "\t\t<p>\n"                                                                                                               );  // add space between this and following table
        }
=====================================================================
Found a 182 line (849 tokens) duplication in the following files: 
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											&pThis->pBridge->aCpp2Uno );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										&pThis->pBridge->aCpp2Uno );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									&pThis->pBridge->aCpp2Uno );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( __cxa_get_globals()->caughtExceptions, *ppUnoExc, &pThis->pBridge->aCpp2Uno );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}


//==================================================================================================
void SAL_CALL cppu_unoInterfaceProxy_dispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException ) throw ()
{
	// is my surrogate
	cppu_unoInterfaceProxy * pThis = (cppu_unoInterfaceProxy *)pUnoI;
	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		// determine vtable call index
		sal_Int32 nMemberPos = ((typelib_InterfaceMemberTypeDescription *)pMemberDescr)->nPosition;
		OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### member pos out of range!" );
		
		sal_Int32 nVtableCall = pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos];
		OSL_ENSURE( nVtableCall < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
		
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, nVtableCall,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
			cpp_call(
				pThis, nVtableCall +1, // get, then set method
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// determine vtable call index
		sal_Int32 nMemberPos = ((typelib_InterfaceMemberTypeDescription *)pMemberDescr)->nPosition;
		OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### member pos out of range!" );
		
		sal_Int32 nVtableCall = pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos];
		OSL_ENSURE( nVtableCall < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
		
		switch (nVtableCall)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->pUnoEnv->getRegisteredInterface)(
                    pThis->pBridge->pUnoEnv,
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, nVtableCall,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

}
=====================================================================
Found a 110 line (848 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itiff/ccidecom.cxx
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itiff/ccidecom.cxx

const CCIHuffmanTableEntry CCIBlackTableSave[CCIBlackTableSize]={
	{    0, 0x0037, 10 },
	{    1, 0x0002,  3 },
	{    2, 0x0003,  2 },
	{    3, 0x0002,  2 },
	{    4, 0x0003,  3 },
	{    5, 0x0003,  4 },
	{    6, 0x0002,  4 },
	{    7, 0x0003,  5 },
	{    8, 0x0005,  6 },
	{    9, 0x0004,  6 },
	{   10, 0x0004,  7 },
	{   11, 0x0005,  7 },
	{   12, 0x0007,  7 },
	{   13, 0x0004,  8 },
	{   14, 0x0007,  8 },
	{   15, 0x0018,  9 },
	{   16, 0x0017, 10 },
	{   17, 0x0018, 10 },
	{   18, 0x0008, 10 },
	{   19, 0x0067, 11 },
	{   20, 0x0068, 11 },
	{   21, 0x006c, 11 },
	{   22, 0x0037, 11 },
	{   23, 0x0028, 11 },
	{   24, 0x0017, 11 },
	{   25, 0x0018, 11 },
	{   26, 0x00ca, 12 },
	{   27, 0x00cb, 12 },
	{   28, 0x00cc, 12 },
	{   29, 0x00cd, 12 },
	{   30, 0x0068, 12 },
	{   31, 0x0069, 12 },
	{   32, 0x006a, 12 },
	{   33, 0x006b, 12 },
	{   34, 0x00d2, 12 },
	{   35, 0x00d3, 12 },
	{   36, 0x00d4, 12 },
	{   37, 0x00d5, 12 },
	{   38, 0x00d6, 12 },
	{   39, 0x00d7, 12 },
	{   40, 0x006c, 12 },
	{   41, 0x006d, 12 },
	{   42, 0x00da, 12 },
	{   43, 0x00db, 12 },
	{   44, 0x0054, 12 },
	{   45, 0x0055, 12 },
	{   46, 0x0056, 12 },
	{   47, 0x0057, 12 },
	{   48, 0x0064, 12 },
	{   49, 0x0065, 12 },
	{   50, 0x0052, 12 },
	{   51, 0x0053, 12 },
	{   52, 0x0024, 12 },
	{   53, 0x0037, 12 },
	{   54, 0x0038, 12 },
	{   55, 0x0027, 12 },
	{   56, 0x0028, 12 },
	{   57, 0x0058, 12 },
	{   58, 0x0059, 12 },
	{   59, 0x002b, 12 },
	{   60, 0x002c, 12 },
	{   61, 0x005a, 12 },
	{   62, 0x0066, 12 },
	{   63, 0x0067, 12 },
	{   64, 0x000f, 10 },
	{  128, 0x00c8, 12 },
	{  192, 0x00c9, 12 },
	{  256, 0x005b, 12 },
	{  320, 0x0033, 12 },
	{  384, 0x0034, 12 },
	{  448, 0x0035, 12 },
	{  512, 0x006c, 13 },
	{  576, 0x006d, 13 },
	{  640, 0x004a, 13 },
	{  704, 0x004b, 13 },
	{  768, 0x004c, 13 },
	{  832, 0x004d, 13 },
	{  896, 0x0072, 13 },
	{  960, 0x0073, 13 },
	{ 1024, 0x0074, 13 },
	{ 1088, 0x0075, 13 },
	{ 1152, 0x0076, 13 },
	{ 1216, 0x0077, 13 },
	{ 1280, 0x0052, 13 },
	{ 1344, 0x0053, 13 },
	{ 1408, 0x0054, 13 },
	{ 1472, 0x0055, 13 },
	{ 1536, 0x005a, 13 },
	{ 1600, 0x005b, 13 },
	{ 1664, 0x0064, 13 },
	{ 1728, 0x0065, 13 },
	{ 1792, 0x0008, 11 },
	{ 1856, 0x000c, 11 },
	{ 1920, 0x000d, 11 },
	{ 1984, 0x0012, 12 },
	{ 2048, 0x0013, 12 },
	{ 2112, 0x0014, 12 },
	{ 2176, 0x0015, 12 },
	{ 2240, 0x0016, 12 },
	{ 2304, 0x0017, 12 },
	{ 2368, 0x001c, 12 },
	{ 2432, 0x001d, 12 },
	{ 2496, 0x001e, 12 },
	{ 2560, 0x001f, 12 },
	{ 9999, 0x0001, 12 }	//	EOL
};


const CCIHuffmanTableEntry CCI2DModeTableSave[CCI2DModeTableSize]={
=====================================================================
Found a 109 line (848 tokens) duplication in the following files: 
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itiff/ccidecom.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itiff/ccidecom.cxx

const CCIHuffmanTableEntry CCIWhiteTableSave[CCIWhiteTableSize]={
	{    0, 0x0035,  8 },
	{    1, 0x0007,  6 },
	{    2, 0x0007,  4 },
	{    3, 0x0008,  4 },
	{    4, 0x000b,  4 },
	{    5, 0x000c,  4 },
	{    6, 0x000e,  4 },
	{    7, 0x000f,  4 },
	{    8, 0x0013,  5 },
	{    9, 0x0014,  5 },
	{   10, 0x0007,  5 },
	{   11, 0x0008,  5 },
	{   12, 0x0008,  6 },
	{   13, 0x0003,  6 },
	{   14, 0x0034,  6 },
	{   15, 0x0035,  6 },
	{   16, 0x002a,  6 },
	{   17, 0x002b,  6 },
	{   18, 0x0027,  7 },
	{   19, 0x000c,  7 },
	{   20, 0x0008,  7 },
	{   21, 0x0017,  7 },
	{   22, 0x0003,  7 },
	{   23, 0x0004,  7 },
	{   24, 0x0028,  7 },
	{   25, 0x002b,  7 },
	{   26, 0x0013,  7 },
	{   27, 0x0024,  7 },
	{   28, 0x0018,  7 },
	{   29, 0x0002,  8 },
	{   30, 0x0003,  8 },
	{   31, 0x001a,  8 },
	{   32, 0x001b,  8 },
	{   33, 0x0012,  8 },
	{   34, 0x0013,  8 },
	{   35, 0x0014,  8 },
	{   36, 0x0015,  8 },
	{   37, 0x0016,  8 },
	{   38, 0x0017,  8 },
	{   39, 0x0028,  8 },
	{   40, 0x0029,  8 },
	{   41, 0x002a,  8 },
	{   42, 0x002b,  8 },
	{   43, 0x002c,  8 },
	{   44, 0x002d,  8 },
	{   45, 0x0004,  8 },
	{   46, 0x0005,  8 },
	{   47, 0x000a,  8 },
	{   48, 0x000b,  8 },
	{   49, 0x0052,  8 },
	{   50, 0x0053,  8 },
	{   51, 0x0054,  8 },
	{   52, 0x0055,  8 },
	{   53, 0x0024,  8 },
	{   54, 0x0025,  8 },
	{   55, 0x0058,  8 },
	{   56, 0x0059,  8 },
	{   57, 0x005a,  8 },
	{   58, 0x005b,  8 },
	{   59, 0x004a,  8 },
	{   60, 0x004b,  8 },
	{   61, 0x0032,  8 },
	{   62, 0x0033,  8 },
	{   63, 0x0034,  8 },
	{   64, 0x001b,  5 },
	{  128, 0x0012,  5 },
	{  192, 0x0017,  6 },
	{  256, 0x0037,  7 },
	{  320, 0x0036,  8 },
	{  384, 0x0037,  8 },
	{  448, 0x0064,  8 },
	{  512, 0x0065,  8 },
	{  576, 0x0068,  8 },
	{  640, 0x0067,  8 },
	{  704, 0x00cc,  9 },
	{  768, 0x00cd,  9 },
	{  832, 0x00d2,  9 },
	{  896, 0x00d3,  9 },
	{  960, 0x00d4,  9 },
	{ 1024, 0x00d5,  9 },
	{ 1088, 0x00d6,  9 },
	{ 1152, 0x00d7,  9 },
	{ 1216, 0x00d8,  9 },
	{ 1280, 0x00d9,  9 },
	{ 1344, 0x00da,  9 },
	{ 1408, 0x00db,  9 },
	{ 1472, 0x0098,  9 },
	{ 1536, 0x0099,  9 },
	{ 1600, 0x009a,  9 },
	{ 1664, 0x0018,  6 },
	{ 1728, 0x009b,  9 },
	{ 1792, 0x0008, 11 },
	{ 1856, 0x000c, 11 },
	{ 1920, 0x000d, 11 },
	{ 1984, 0x0012, 12 },
	{ 2048, 0x0013, 12 },
	{ 2112, 0x0014, 12 },
	{ 2176, 0x0015, 12 },
	{ 2240, 0x0016, 12 },
	{ 2304, 0x0017, 12 },
	{ 2368, 0x001c, 12 },
	{ 2432, 0x001d, 12 },
	{ 2496, 0x001e, 12 },
	{ 2560, 0x001f, 12 },
	{ 9999, 0x0001, 12 }	//	EOL
};

const CCIHuffmanTableEntry CCIBlackTableSave[CCIBlackTableSize]={
=====================================================================
Found a 185 line (847 tokens) duplication in the following files: 
Starting at line 1806 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1865 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    WW8_CP nP;

    if (!rPLCF.Get(nP, pData))              // Ende des PLCFspecial ?
        return false;

    rPLCF++;

    if((((BYTE*)pData)[0] & 0x1f ) != 0x13 )    // Kein Anfang ?
        return true;                            // Bei Fehler nicht abbrechen

    if( !rPLCF.Get( nP, pData ) )
        return false;


    while((((BYTE*)pData)[0] & 0x1f ) == 0x13 )
    {
        // immer noch neue (nested) Anfaenge ?
        WW8SkipField( rPLCF );              // nested Field im Beschreibungsteil
        if( !rPLCF.Get( nP, pData ) )
            return false;
    }

    if((((BYTE*)pData)[0] & 0x1f ) == 0x14 )
    {

        // Field Separator ?
        rPLCF++;

        if( !rPLCF.Get( nP, pData ) )
            return false;

        while ((((BYTE*)pData)[0] & 0x1f ) == 0x13)
        {
            // immer noch neue (nested) Anfaenge ?
            WW8SkipField( rPLCF );          // nested Field im Resultatteil
            if( !rPLCF.Get( nP, pData ) )
                return false;
        }
    }
    rPLCF++;

    return true;
}

static bool WW8GetFieldPara(WW8PLCFspecial& rPLCF, WW8FieldDesc& rF)
{
    void* pData;
    ULONG nOldIdx = rPLCF.GetIdx();

    rF.nLen = rF.nId = rF.nOpt = rF.bCodeNest = rF.bResNest = 0;

    if( !rPLCF.Get( rF.nSCode, pData ) )             // Ende des PLCFspecial ?
        goto Err;

    rPLCF++;

    if((((BYTE*)pData)[0] & 0x1f ) != 0x13 )        // Kein Anfang ?
        goto Err;

    rF.nId = ((BYTE*)pData)[1];

    if( !rPLCF.Get( rF.nLCode, pData ) )
        goto Err;

    rF.nSRes = rF.nLCode;                           // Default
    rF.nSCode++;                                    // ohne Marken
    rF.nLCode -= rF.nSCode;                         // Pos zu Laenge

    while((((BYTE*)pData)[0] & 0x1f ) == 0x13 )
    {
        // immer noch neue (nested) Anfaenge ?
        WW8SkipField( rPLCF );              // nested Field im Beschreibungsteil
        rF.bCodeNest = true;
        if( !rPLCF.Get( rF.nSRes, pData ) )
            goto Err;
    }

    if((((BYTE*)pData)[0] & 0x1f ) == 0x14 ){       // Field Separator ?
        rPLCF++;

        if( !rPLCF.Get( rF.nLRes, pData ) )
            goto Err;

        while((((BYTE*)pData)[0] & 0x1f ) == 0x13 )
        {
            // immer noch neue (nested) Anfaenge ?
            WW8SkipField( rPLCF );              // nested Field im Resultatteil
            rF.bResNest = true;
            if( !rPLCF.Get( rF.nLRes, pData ) )
                goto Err;
        }
        rF.nLen = rF.nLRes - rF.nSCode + 2; // nLRes ist noch die Endposition
        rF.nLRes -= rF.nSRes;                       // nun: nLRes = Laenge
        rF.nSRes++;                                 // Endpos encl. Marken
        rF.nLRes--;

    }else{
        rF.nLRes = 0;                               // Kein Result vorhanden
        rF.nLen = rF.nSRes - rF.nSCode + 2;         // Gesamtlaenge
    }

    rPLCF++;
    if((((BYTE*)pData)[0] & 0x1f ) == 0x15 )
    {
        // Field Ende ?
        // INDEX-Fld hat Bit7 gesetzt!?!
        rF.nOpt = ((BYTE*)pData)[1];                // Ja -> Flags uebernehmen
    }else{
        rF.nId = 0;                                 // Nein -> Feld ungueltig
    }

    rPLCF.SetIdx( nOldIdx );
    return true;
Err:
    rPLCF.SetIdx( nOldIdx );
    return false;
}


//-----------------------------------------


// WW8ReadPString liest einen Pascal-String ein und gibt ihn zurueck. Der
// Pascal- String hat am Ende ein \0, der aber im Laengenbyte nicht
// mitgezaehlt wird.  Der Speicher fuer den Pascalstring wird alloziert.
String WW8ReadPString(SvStream& rStrm, rtl_TextEncoding eEnc,
    bool bAtEndSeekRel1)
{
    ByteString aByteStr;
    UINT8 b;
    rStrm >> b;

    if (b)
    {
        // Alloc methode automatically sets Zero at the end
        sal_Char*  pByteData = aByteStr.AllocBuffer( b );

        ULONG nWasRead = rStrm.Read( pByteData, b );
        if( nWasRead != b )
            aByteStr.ReleaseBufferAccess(static_cast<xub_StrLen>(nWasRead));
    }

    if( bAtEndSeekRel1 )
        rStrm.SeekRel( 1 ); // ueberspringe das Null-Byte am Ende.


    return String( aByteStr, eEnc );
}

String WW8Read_xstz(SvStream& rStrm, USHORT nChars, bool bAtEndSeekRel1)
{
    UINT16 b;

    if( nChars )
        b = nChars;
    else
        rStrm >> b;

    String aStr;
    if (b)
    {
        // Alloc methode automatically sets Zero at the end
        sal_Unicode* pData = aStr.AllocBuffer( b );

        ULONG nWasRead = rStrm.Read( (sal_Char*)pData, b * 2 );
        if( nWasRead != static_cast<ULONG>(b*2) )
        {
            b = static_cast<UINT16>(nWasRead / 2);
            aStr.ReleaseBufferAccess( b );
            pData = aStr.GetBufferAccess();
        }

#ifdef OSL_BIGENDIAN
        ULONG n;
        sal_Unicode *pWork;
        for( n = 0, pWork = pData; n < b; ++n, ++pWork )
            *pWork = SWAPSHORT( *pWork );
#endif // ifdef OSL_BIGENDIAN
    }

    if( bAtEndSeekRel1 )
        rStrm.SeekRel( 2 ); // ueberspringe das Null-Character am Ende.

    return aStr;
}
=====================================================================
Found a 37 line (846 tokens) duplication in the following files: 
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_FORMRT),	SC_WID_UNO_FORMRT,	&getCppuType((table::CellContentType*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0), 0, MID_HORJUST_HORJUST },
		{MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
		{MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
        {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PADJUST),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PBMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_LO_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PINDENT),	ATTR_INDENT,		&getCppuType((sal_Int16*)0),			0, 0 }, //! CONVERT_TWIPS
		{MAP_CHAR_LEN(SC_UNONAME_PISCHDIST),ATTR_SCRIPTSPACE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISFORBID),ATTR_FORBIDDEN_RULES,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHANG),	ATTR_HANGPUNCTUATION,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHYPHEN),ATTR_HYPHENATE,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PLASTADJ),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
        {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIXML),	SC_WID_UNO_VALIXML,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLVJUS),	ATTR_VER_JUSTIFY,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_WRITING),	ATTR_WRITINGDIR,	&getCppuType((sal_Int16*)0),			0, 0 },
        {0,0,0,0,0,0}
	};
	return aCellPropertyMap_Impl;
=====================================================================
Found a 175 line (846 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx

        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
#if OSL_DEBUG_LEVEL > 1
    OString cstr(
        OUStringToOString(
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> uno exception occured: %s\n", cstr.getStr() );
#endif
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("cannot get typedescription for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no rtti for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    }

	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping * pCpp2Uno )
{
    if (! header)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no exception header!") ),
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
        return;
    }

	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
#if OSL_DEBUG_LEVEL > 1
    OString cstr_unoName( OUStringToOString( unoName, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> c++ exception occured: %s\n", cstr_unoName.getStr() );
#endif
	typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    if (0 == pExcTypeDescr)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("exception type not found: ") ) + unoName,
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
    }
    else
    {
        // construct uno exception any
        uno_any_constructAndConvert( pUnoExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
        typelib_typedescription_release( pExcTypeDescr );
    }
}

}
=====================================================================
Found a 175 line (846 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx

        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iRttiFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
#if OSL_DEBUG_LEVEL > 1
    OString cstr(
        OUStringToOString(
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> uno exception occured: %s\n", cstr.getStr() );
#endif
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("cannot get typedescription for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no rtti for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    }

	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping * pCpp2Uno )
{
    if (! header)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no exception header!") ),
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
        return;
    }

	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
#if OSL_DEBUG_LEVEL > 1
    OString cstr_unoName( OUStringToOString( unoName, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> c++ exception occured: %s\n", cstr_unoName.getStr() );
#endif
	typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    if (0 == pExcTypeDescr)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("exception type not found: ") ) + unoName,
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
    }
    else
    {
        // construct uno exception any
        uno_any_constructAndConvert( pUnoExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
        typelib_typedescription_release( pExcTypeDescr );
    }
}

}
=====================================================================
Found a 182 line (840 tokens) duplication in the following files: 
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
    void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
        = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
            aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 109 line (838 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

using namespace com::sun::star::registry;


//==================================================================================================
sal_Bool equals( const test::TestElement & rData1, const test::TestElement & rData2 )
{
	OSL_ENSURE( rData1.Bool == rData2.Bool, "### bool does not match!" );
	OSL_ENSURE( rData1.Char == rData2.Char, "### char does not match!" );
	OSL_ENSURE( rData1.Byte == rData2.Byte, "### byte does not match!" );
	OSL_ENSURE( rData1.Short == rData2.Short, "### short does not match!" );
	OSL_ENSURE( rData1.UShort == rData2.UShort, "### unsigned short does not match!" );
	OSL_ENSURE( rData1.Long == rData2.Long, "### long does not match!" );
	OSL_ENSURE( rData1.ULong == rData2.ULong, "### unsigned long does not match!" );
	OSL_ENSURE( rData1.Hyper == rData2.Hyper, "### hyper does not match!" );
	OSL_ENSURE( rData1.UHyper == rData2.UHyper, "### unsigned hyper does not match!" );
	OSL_ENSURE( rData1.Float == rData2.Float, "### float does not match!" );
	OSL_ENSURE( rData1.Double == rData2.Double, "### double does not match!" );
	OSL_ENSURE( rData1.Enum == rData2.Enum, "### enum does not match!" );
	OSL_ENSURE( rData1.String == rData2.String, "### string does not match!" );
	OSL_ENSURE( rData1.Interface == rData2.Interface, "### interface does not match!" );
	OSL_ENSURE( rData1.Any == rData2.Any, "### any does not match!" );
	
	return (rData1.Bool == rData2.Bool &&
			rData1.Char == rData2.Char &&
			rData1.Byte == rData2.Byte &&
			rData1.Short == rData2.Short &&
			rData1.UShort == rData2.UShort &&
			rData1.Long == rData2.Long &&
			rData1.ULong == rData2.ULong &&
			rData1.Hyper == rData2.Hyper &&
			rData1.UHyper == rData2.UHyper &&
			rData1.Float == rData2.Float &&
			rData1.Double == rData2.Double &&
			rData1.Enum == rData2.Enum &&
			rData1.String == rData2.String &&
			rData1.Interface == rData2.Interface &&
			rData1.Any == rData2.Any);
}
//==================================================================================================
sal_Bool equals( const test::TestData & rData1, const test::TestData & rData2 )
{
	sal_Int32 nLen;
	
	if ((rData1.Sequence == rData2.Sequence) &&
		equals( (const test::TestElement &)rData1, (const test::TestElement &)rData2 ) &&
		(nLen = rData1.Sequence.getLength()) == rData2.Sequence.getLength())
	{
		// once again by hand sequence ==
		const test::TestElement * pElements1 = rData1.Sequence.getConstArray();
		const test::TestElement * pElements2 = rData2.Sequence.getConstArray();
		for ( ; nLen--; )
		{
			if (! equals( pElements1[nLen], pElements2[nLen] ))
			{
				OSL_ENSURE( sal_False, "### sequence element did not match!" );
				return sal_False;
			}
		}
		return sal_True;
	}
	return sal_False;
}
//==================================================================================================
void assign( test::TestElement & rData,
			 sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
			 sal_Int16 nShort, sal_uInt16 nUShort,
			 sal_Int32 nLong, sal_uInt32 nULong,
			 sal_Int64 nHyper, sal_uInt64 nUHyper,
			 float fFloat, double fDouble,
			 test::TestEnum eEnum, const ::rtl::OUString& rStr,
			 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
			 const ::com::sun::star::uno::Any& rAny )
{
	rData.Bool = bBool;
	rData.Char = cChar;
	rData.Byte = nByte;
	rData.Short = nShort;
	rData.UShort = nUShort;
	rData.Long = nLong;
	rData.ULong = nULong;
	rData.Hyper = nHyper;
	rData.UHyper = nUHyper;
	rData.Float = fFloat;
	rData.Double = fDouble;
	rData.Enum = eEnum;
	rData.String = rStr;
	rData.Interface = xTest;
	rData.Any = rAny;
}
//==================================================================================================
void assign( test::TestData & rData,
			 sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
			 sal_Int16 nShort, sal_uInt16 nUShort,
			 sal_Int32 nLong, sal_uInt32 nULong,
			 sal_Int64 nHyper, sal_uInt64 nUHyper,
			 float fFloat, double fDouble,
			 test::TestEnum eEnum, const ::rtl::OUString& rStr,
			 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
			 const ::com::sun::star::uno::Any& rAny,
			 const com::sun::star::uno::Sequence< test::TestElement >& rSequence )
{
	assign( (test::TestElement &)rData,
			bBool, cChar, nByte, nShort, nUShort, nLong, nULong, nHyper, nUHyper, fFloat, fDouble,
			eEnum, rStr, xTest, rAny );
	rData.Sequence = rSequence;
}

//==================================================================================================
class Test_Impl : public WeakImplHelper1< XLanguageBindingTest >
=====================================================================
Found a 105 line (833 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        { 77, 0, L_VAR}, // unknown
        { 79, 0, L_VAR}, // unknown
        { 80, 2, L_FIX}, // "sprmCIstd" chp.istd istd, see stylesheet definition
        { 81, 0, L_VAR}, // "sprmCIstdPermute" chp.istd permutation vector
        { 82, 0, L_VAR}, // "sprmCDefault" whole CHP
        { 83, 0, L_FIX}, // "sprmCPlain" whole CHP
        { 85, 1, L_FIX}, // "sprmCFBold" chp.fBold 0,1, 128, or 129
        { 86, 1, L_FIX}, // "sprmCFItalic" chp.fItalic 0,1, 128, or 129
        { 87, 1, L_FIX}, // "sprmCFStrike" chp.fStrike 0,1, 128, or 129
        { 88, 1, L_FIX}, // "sprmCFOutline" chp.fOutline 0,1, 128, or 129
        { 89, 1, L_FIX}, // "sprmCFShadow" chp.fShadow 0,1, 128, or 129
        { 90, 1, L_FIX}, // "sprmCFSmallCaps" chp.fSmallCaps 0,1, 128, or 129
        { 91, 1, L_FIX}, // "sprmCFCaps" chp.fCaps 0,1, 128, or 129
        { 92, 1, L_FIX}, // "sprmCFVanish" chp.fVanish 0,1, 128, or 129
        { 93, 2, L_FIX}, // "sprmCFtc" chp.ftc ftc word
        { 94, 1, L_FIX}, // "sprmCKul" chp.kul kul byte
        { 95, 3, L_FIX}, // "sprmCSizePos" chp.hps, chp.hpsPos
        { 96, 2, L_FIX}, // "sprmCDxaSpace" chp.dxaSpace dxa
        { 97, 2, L_FIX}, // "sprmCLid" chp.lid LID
        { 98, 1, L_FIX}, // "sprmCIco" chp.ico ico byte
        { 99, 2, L_FIX}, // "sprmCHps" chp.hps hps !word!
        {100, 1, L_FIX}, // "sprmCHpsInc" chp.hps
        {101, 2, L_FIX}, // "sprmCHpsPos" chp.hpsPos hps !word!
        {102, 1, L_FIX}, // "sprmCHpsPosAdj" chp.hpsPos hps
        {103, 0, L_VAR}, // "?sprmCMajority" chp.fBold, chp.fItalic, ...
        {104, 1, L_FIX}, // "sprmCIss" chp.iss iss
        {105, 0, L_VAR}, // "sprmCHpsNew50" chp.hps hps variable width
        {106, 0, L_VAR}, // "sprmCHpsInc1" chp.hps complex
        {107, 2, L_FIX}, // "sprmCHpsKern" chp.hpsKern hps
        {108, 0, L_VAR}, // "sprmCMajority50" chp.fBold, chp.fItalic, ...
        {109, 2, L_FIX}, // "sprmCHpsMul" chp.hps percentage to grow hps
        {110, 2, L_FIX}, // "sprmCCondHyhen" chp.ysri ysri
        {111, 2, L_FIX}, // rtl bold
        {112, 2, L_FIX}, // rtl italic
        {113, 0, L_VAR}, // rtl property ?
        {115, 0, L_VAR}, // rtl property ?
        {116, 0, L_VAR}, // unknown
        {117, 1, L_FIX}, // "sprmCFSpec" chp.fSpec  1 or 0 bit
        {118, 1, L_FIX}, // "sprmCFObj" chp.fObj 1 or 0 bit
        {119, 1, L_FIX}, // "sprmPicBrcl" pic.brcl brcl (see PIC definition)
        {120,12, L_VAR}, // "sprmPicScale" pic.mx, pic.my, pic.dxaCropleft,
        {121, 2, L_FIX}, // "sprmPicBrcTop" pic.brcTop BRC word
        {122, 2, L_FIX}, // "sprmPicBrcLeft" pic.brcLeft BRC word
        {123, 2, L_FIX}, // "sprmPicBrcBottom" pic.brcBottom BRC word
        {124, 2, L_FIX}, // "sprmPicBrcRight" pic.brcRight BRC word
        {131, 1, L_FIX}, // "sprmSScnsPgn" sep.cnsPgn cns byte
        {132, 1, L_FIX}, // "sprmSiHeadingPgn" sep.iHeadingPgn
        {133, 0, L_VAR}, // "sprmSOlstAnm" sep.olstAnm OLST variable length
        {136, 3, L_FIX}, // "sprmSDxaColWidth" sep.rgdxaColWidthSpacing complex
        {137, 3, L_FIX}, // "sprmSDxaColSpacing" sep.rgdxaColWidthSpacing
        {138, 1, L_FIX}, // "sprmSFEvenlySpaced" sep.fEvenlySpaced 1 or 0
        {139, 1, L_FIX}, // "sprmSFProtected" sep.fUnlocked 1 or 0 byte
        {140, 2, L_FIX}, // "sprmSDmBinFirst" sep.dmBinFirst  word
        {141, 2, L_FIX}, // "sprmSDmBinOther" sep.dmBinOther  word
        {142, 1, L_FIX}, // "sprmSBkc" sep.bkc bkc byte
        {143, 1, L_FIX}, // "sprmSFTitlePage" sep.fTitlePage 0 or 1 byte
        {144, 2, L_FIX}, // "sprmSCcolumns" sep.ccolM1 # of cols - 1 word
        {145, 2, L_FIX}, // "sprmSDxaColumns" sep.dxaColumns dxa word
        {146, 1, L_FIX}, // "sprmSFAutoPgn" sep.fAutoPgn obsolete byte
        {147, 1, L_FIX}, // "sprmSNfcPgn" sep.nfcPgn nfc byte
        {148, 2, L_FIX}, // "sprmSDyaPgn" sep.dyaPgn dya short
        {149, 2, L_FIX}, // "sprmSDxaPgn" sep.dxaPgn dya short
        {150, 1, L_FIX}, // "sprmSFPgnRestart" sep.fPgnRestart 0 or 1 byte
        {151, 1, L_FIX}, // "sprmSFEndnote" sep.fEndnote 0 or 1 byte
        {152, 1, L_FIX}, // "sprmSLnc" sep.lnc lnc byte
        {153, 1, L_FIX}, // "sprmSGprfIhdt" sep.grpfIhdt grpfihdt
        {154, 2, L_FIX}, // "sprmSNLnnMod" sep.nLnnMod non-neg int. word
        {155, 2, L_FIX}, // "sprmSDxaLnn" sep.dxaLnn dxa word
        {156, 2, L_FIX}, // "sprmSDyaHdrTop" sep.dyaHdrTop dya word
        {157, 2, L_FIX}, // "sprmSDyaHdrBottom" sep.dyaHdrBottom dya word
        {158, 1, L_FIX}, // "sprmSLBetween" sep.fLBetween 0 or 1 byte
        {159, 1, L_FIX}, // "sprmSVjc" sep.vjc vjc byte
        {160, 2, L_FIX}, // "sprmSLnnMin" sep.lnnMin lnn word
        {161, 2, L_FIX}, // "sprmSPgnStart" sep.pgnStart pgn word
        {162, 1, L_FIX}, // "sprmSBOrientation" sep.dmOrientPage dm byte
        {163, 0, L_FIX}, // "?SprmSBCustomize 163"
        {164, 2, L_FIX}, // "sprmSXaPage" sep.xaPage xa word
        {165, 2, L_FIX}, // "sprmSYaPage" sep.yaPage ya word
        {166, 2, L_FIX}, // "sprmSDxaLeft" sep.dxaLeft dxa word
        {167, 2, L_FIX}, // "sprmSDxaRight" sep.dxaRight dxa word
        {168, 2, L_FIX}, // "sprmSDyaTop" sep.dyaTop dya word
        {169, 2, L_FIX}, // "sprmSDyaBottom" sep.dyaBottom dya word
        {170, 2, L_FIX}, // "sprmSDzaGutter" sep.dzaGutter dza word
        {171, 2, L_FIX}, // "sprmSDMPaperReq" sep.dmPaperReq dm word
        {179, 0, L_VAR}, // rtl property ?
        {181, 0, L_VAR}, // rtl property ?
        {182, 2, L_FIX}, // "sprmTJc" tap.jc jc (low order byte is significant)
        {183, 2, L_FIX}, // "sprmTDxaLeft" tap.rgdxaCenter dxa word
        {184, 2, L_FIX}, // "sprmTDxaGapHalf" tap.dxaGapHalf, tap.rgdxaCenter
        {185, 1, L_FIX}, // "sprmTFCantSplit" tap.fCantSplit 1 or 0 byte
        {186, 1, L_FIX}, // "sprmTTableHeader" tap.fTableHeader 1 or 0 byte
        {187,12, L_FIX}, // "sprmTTableBorders" tap.rgbrcTable complex 12 bytes
        {188, 0, L_VAR}, // "sprmTDefTable10" tap.rgdxaCenter, tap.rgtc complex
        {189, 2, L_FIX}, // "sprmTDyaRowHeight" tap.dyaRowHeight dya word
        {190, 0, L_VAR2},// "sprmTDefTable" tap.rgtc complex
        {191, 1, L_VAR}, // "sprmTDefTableShd" tap.rgshd complex
        {192, 4, L_FIX}, // "sprmTTlp" tap.tlp TLP 4 bytes
        {193, 5, L_FIX}, // "sprmTSetBrc" tap.rgtc[].rgbrc complex 5 bytes
        {194, 4, L_FIX}, // "sprmTInsert" tap.rgdxaCenter,tap.rgtc complex
        {195, 2, L_FIX}, // "sprmTDelete" tap.rgdxaCenter, tap.rgtc complex
        {196, 4, L_FIX}, // "sprmTDxaCol" tap.rgdxaCenter complex
        {197, 2, L_FIX}, // "sprmTMerge" tap.fFirstMerged, tap.fMerged complex
        {198, 2, L_FIX}, // "sprmTSplit" tap.fFirstMerged, tap.fMerged complex
        {199, 5, L_FIX}, // "sprmTSetBrc10" tap.rgtc[].rgbrc complex 5 bytes
        {200, 4, L_FIX}, // "sprmTSetShd", tap.rgshd complex 4 bytes
=====================================================================
Found a 174 line (833 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/except.cxx

        rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
#if defined DEBUG
    OString cstr(
        OUStringToOString(
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> uno exception occured: %s\n", cstr.getStr() );
#endif
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("cannot get typedescription for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    
	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no rtti for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    }

	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping * pCpp2Uno )
{
    if (! header)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no exception header!") ),
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if defined _DEBUG
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
        return;
    }
    
	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
#if defined DEBUG
    OString cstr_unoName( OUStringToOString( unoName, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> c++ exception occured: %s\n", cstr_unoName.getStr() );
#endif
	typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    if (0 == pExcTypeDescr)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("exception type not found: ") ) + unoName,
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if defined _DEBUG
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
    }
    else
    {
        // construct uno exception any
        uno_any_constructAndConvert( pUnoExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
        typelib_typedescription_release( pExcTypeDescr );
    }
}

}
=====================================================================
Found a 185 line (832 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 455 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr->eTypeClass, pParamType,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis 
           = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * > (pUnoI);
        //	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{

        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));

		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
                        aVtableSlot.index += 1; //get then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{

        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 117 line (827 tokens) duplication in the following files: 
Starting at line 6035 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6346 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

            memset( pData + nRead, 0, nMaxDopSize - nRead );

        // dann mal die Daten auswerten
        UINT32 a32Bit;
        UINT16 a16Bit;
        BYTE   a8Bit;

        a16Bit = Get_UShort( pData );
        fFacingPages        = 0 != ( a16Bit  &  0x0001 )     ;
        fWidowControl       = 0 != ( a16Bit  &  0x0002 )     ;
        fPMHMainDoc         = 0 != ( a16Bit  &  0x0004 )     ;
        grfSuppression      =      ( a16Bit  &  0x0018 ) >> 3;
        fpc                 =      ( a16Bit  &  0x0060 ) >> 5;
        grpfIhdt            =      ( a16Bit  &  0xff00 ) >> 8;

        a16Bit = Get_UShort( pData );
        rncFtn              =   a16Bit  &  0x0003        ;
        nFtn                = ( a16Bit  & ~0x0003 ) >> 2 ;

        a8Bit = Get_Byte( pData );
        fOutlineDirtySave      = 0 != ( a8Bit  &  0x01   );

        a8Bit = Get_Byte( pData );
        fOnlyMacPics           = 0 != ( a8Bit  &  0x01   );
        fOnlyWinPics           = 0 != ( a8Bit  &  0x02   );
        fLabelDoc              = 0 != ( a8Bit  &  0x04   );
        fHyphCapitals          = 0 != ( a8Bit  &  0x08   );
        fAutoHyphen            = 0 != ( a8Bit  &  0x10   );
        fFormNoFields          = 0 != ( a8Bit  &  0x20   );
        fLinkStyles            = 0 != ( a8Bit  &  0x40   );
        fRevMarking            = 0 != ( a8Bit  &  0x80   );

        a8Bit = Get_Byte( pData );
        fBackup                = 0 != ( a8Bit  &  0x01   );
        fExactCWords           = 0 != ( a8Bit  &  0x02   );
        fPagHidden             = 0 != ( a8Bit  &  0x04   );
        fPagResults            = 0 != ( a8Bit  &  0x08   );
        fLockAtn               = 0 != ( a8Bit  &  0x10   );
        fMirrorMargins         = 0 != ( a8Bit  &  0x20   );
        fReadOnlyRecommended   = 0 != ( a8Bit  &  0x40   );
        fDfltTrueType          = 0 != ( a8Bit  &  0x80   );

        a8Bit = Get_Byte( pData );
        fPagSuppressTopSpacing = 0 != ( a8Bit  &  0x01   );
        fProtEnabled           = 0 != ( a8Bit  &  0x02   );
        fDispFormFldSel        = 0 != ( a8Bit  &  0x04   );
        fRMView                = 0 != ( a8Bit  &  0x08   );
        fRMPrint               = 0 != ( a8Bit  &  0x10   );
        fWriteReservation      = 0 != ( a8Bit  &  0x20   );
        fLockRev               = 0 != ( a8Bit  &  0x40   );
        fEmbedFonts            = 0 != ( a8Bit  &  0x80   );


        a8Bit = Get_Byte( pData );
        copts_fNoTabForInd           = 0 != ( a8Bit  &  0x01   );
        copts_fNoSpaceRaiseLower     = 0 != ( a8Bit  &  0x02   );
        copts_fSupressSpbfAfterPgBrk = 0 != ( a8Bit  &  0x04   );
        copts_fWrapTrailSpaces       = 0 != ( a8Bit  &  0x08   );
        copts_fMapPrintTextColor     = 0 != ( a8Bit  &  0x10   );
        copts_fNoColumnBalance       = 0 != ( a8Bit  &  0x20   );
        copts_fConvMailMergeEsc      = 0 != ( a8Bit  &  0x40   );
        copts_fSupressTopSpacing     = 0 != ( a8Bit  &  0x80   );

        a8Bit = Get_Byte( pData );
        copts_fOrigWordTableRules    = 0 != ( a8Bit  &  0x01   );
        copts_fTransparentMetafiles  = 0 != ( a8Bit  &  0x02   );
        copts_fShowBreaksInFrames    = 0 != ( a8Bit  &  0x04   );
        copts_fSwapBordersFacingPgs  = 0 != ( a8Bit  &  0x08   );

        dxaTab = Get_Short( pData );
        wSpare = Get_UShort( pData );
        dxaHotZ = Get_UShort( pData );
        cConsecHypLim = Get_UShort( pData );
        wSpare2 = Get_UShort( pData );
        dttmCreated = Get_Long( pData );
        dttmRevised = Get_Long( pData );
        dttmLastPrint = Get_Long( pData );
        nRevision = Get_Short( pData );
        tmEdited = Get_Long( pData );
        cWords = Get_Long( pData );
        cCh = Get_Long( pData );
        cPg = Get_Short( pData );
        cParas = Get_Long( pData );

        a16Bit = Get_UShort( pData );
        rncEdn =   a16Bit &  0x0003       ;
        nEdn   = ( a16Bit & ~0x0003 ) >> 2;

        a16Bit = Get_UShort( pData );
        epc            =   a16Bit &  0x0003       ;
        nfcFtnRef      = ( a16Bit &  0x003c ) >> 2;
        nfcEdnRef      = ( a16Bit &  0x03c0 ) >> 6;
        fPrintFormData = 0 != ( a16Bit &  0x0400 );
        fSaveFormData  = 0 != ( a16Bit &  0x0800 );
        fShadeFormData = 0 != ( a16Bit &  0x1000 );
        fWCFtnEdn      = 0 != ( a16Bit &  0x8000 );

        cLines = Get_Long( pData );
        cWordsFtnEnd = Get_Long( pData );
        cChFtnEdn = Get_Long( pData );
        cPgFtnEdn = Get_Short( pData );
        cParasFtnEdn = Get_Long( pData );
        cLinesFtnEdn = Get_Long( pData );
        lKeyProtDoc = Get_Long( pData );

        a16Bit = Get_UShort( pData );
        wvkSaved    =   a16Bit & 0x0007        ;
        wScaleSaved = ( a16Bit & 0x0ff8 ) >> 3 ;
        zkSaved     = ( a16Bit & 0x3000 ) >> 12;
        fRotateFontW6 = ( a16Bit & 0x4000 ) >> 14;
        iGutterPos = ( a16Bit &  0x8000 ) >> 15;
        /*
            bei nFib >= 103 gehts weiter:
        */
        if (nFib >= 103)
        {
            a32Bit = Get_ULong( pData );
=====================================================================
Found a 192 line (824 tokens) duplication in the following files: 
Starting at line 3845 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 4046 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        rStart = rEnd = WW8_CP_MAX;
        return -1;
    }

    pBook[nIsEnd]->Get( rStart, pData );    // Pos. abfragen

    return pBook[nIsEnd]->GetIdx();
}

// Der Operator ++ hat eine Tuecke: Wenn 2 Bookmarks aneinandergrenzen, dann
// sollte erst das Ende des ersten und dann der Anfang des 2. erreicht werden.
// Liegen jedoch 2 Bookmarks der Laenge 0 aufeinander, *muss* von jedem Bookmark
// erst der Anfang und dann das Ende gefunden werden.
// Der Fall: ][
//            [...]
//           ][
// ist noch nicht geloest, dabei muesste ich in den Anfangs- und Endindices
// vor- und zurueckspringen, wobei ein weiterer Index oder ein Bitfeld
// oder etwas aehnliches zum Merken der bereits abgearbeiteten Bookmarks
// noetig wird.
WW8PLCFx& WW8PLCFx_Book::operator ++( int )
{
    if( pBook[0] && pBook[1] && nIMax )
    {
        (*pBook[nIsEnd])++;

        register ULONG l0 = pBook[0]->Where();
        register ULONG l1 = pBook[1]->Where();
        if( l0 < l1 )
            nIsEnd = 0;
        else if( l1 < l0 )
            nIsEnd = 1;
        else
            nIsEnd = ( nIsEnd ) ? 0 : 1;
    }
    return *this;
}

long WW8PLCFx_Book::GetLen() const
{
    if( nIsEnd )
    {
        ASSERT( !this, "Falscher Aufruf (1) von PLCF_Book::GetLen()" );
        return 0;
    }
    void * p;
    WW8_CP nStartPos;
    if( !pBook[0]->Get( nStartPos, p ) )
    {
        ASSERT( !this, "Falscher Aufruf (2) von PLCF_Book::GetLen()" );
        return 0;
    }
    USHORT nEndIdx = SVBT16ToShort( *((SVBT16*)p) );
    long nNum = pBook[1]->GetPos( nEndIdx );
    nNum -= nStartPos;
    return nNum;
}

void WW8PLCFx_Book::SetStatus(USHORT nIndex, eBookStatus eStat )
{
    ASSERT(nIndex < nIMax, "set status of non existing bookmark!");
    pStatus[nIndex] = (eBookStatus)( pStatus[nIndex] | eStat );
}

eBookStatus WW8PLCFx_Book::GetStatus() const
{
    if( !pStatus )
        return BOOK_NORMAL;
    long nEndIdx = GetHandle();
    return ( nEndIdx < nIMax ) ? pStatus[nEndIdx] : BOOK_NORMAL;
}

long WW8PLCFx_Book::GetHandle() const
{
    if( !pBook[0] || !pBook[1] )
        return LONG_MAX;

    if( nIsEnd )
        return pBook[1]->GetIdx();
    else
    {
        if (const void* p = pBook[0]->GetData(pBook[0]->GetIdx()))
            return SVBT16ToShort( *((SVBT16*)p) );
        else
            return LONG_MAX;
    }
}

String WW8PLCFx_Book::GetBookmark(long nStart,long nEnd, USHORT &nIndex)
{
    bool bFound = false;
    USHORT i = 0;
    if( pBook[0] && pBook[1] )
    {
        WW8_CP nStartAkt, nEndAkt;
        do
        {
            void* p;
            USHORT nEndIdx;

            if( pBook[0]->GetData( i, nStartAkt, p ) && p )
                nEndIdx = SVBT16ToShort( *((SVBT16*)p) );
            else
            {
                ASSERT( !this, "Bookmark-EndIdx nicht lesbar" );
                nEndIdx = i;
            }

            nEndAkt = pBook[1]->GetPos( nEndIdx );

            if ((nStartAkt >= nStart) && (nEndAkt <= nEnd))
            {
                nIndex = i;
                bFound=true;
                break;
            }
            ++i;
        }
        while (i < pBook[0]->GetIMax());
    }
    return bFound ? aBookNames[i] : aEmptyStr;
}

bool WW8PLCFx_Book::MapName(String& rName)
{
    if( !pBook[0] || !pBook[1] )
        return false;

    bool bFound = false;
    USHORT i = 0;
    WW8_CP nStartAkt, nEndAkt;
    do
    {
        void* p;
        USHORT nEndIdx;

        if( pBook[0]->GetData( i, nStartAkt, p ) && p )
            nEndIdx = SVBT16ToShort( *((SVBT16*)p) );
        else
        {
            ASSERT( !this, "Bookmark-EndIdx nicht lesbar" );
            nEndIdx = i;
        }
        nEndAkt = pBook[1]->GetPos( nEndIdx );
        if (COMPARE_EQUAL == rName.CompareIgnoreCaseToAscii(aBookNames[i]))
        {
            rName = aBookNames[i];
            bFound = true;
        }
        ++i;
    }
    while (!bFound && i < pBook[0]->GetIMax());
    return bFound;
}

const String* WW8PLCFx_Book::GetName() const
{
    const String *pRet = 0;
    if (!nIsEnd && (pBook[0]->GetIdx() < nIMax))
        pRet = &(aBookNames[pBook[0]->GetIdx()]);
    return pRet;
}

//-----------------------------------------
//          WW8PLCFMan
//-----------------------------------------

#ifndef DUMP

// Am Ende eines Absatzes reichen bei WW6 die Attribute bis hinter das <CR>.
// Das wird fuer die Verwendung mit dem SW um 1 Zeichen zurueckgesetzt, wenn
// dadurch kein AErger zu erwarten ist.
void WW8PLCFMan::AdjustEnds( WW8PLCFxDesc& rDesc )
{
    //Store old end position for supercool new property finder that uses
    //cp instead of fc's as nature intended
    rDesc.nOrigEndPos = rDesc.nEndPos;
    rDesc.nOrigStartPos = rDesc.nStartPos;

    /*
     Normally given ^XXX{para end}^ we don't actually insert a para end
     character into the document, so we clip the para end property one to the
     left to make the para properties end when the paragraph text does. In a
     drawing textbox we actually do insert a para end character, so we don't
     clip it. Making the para end properties end after the para end char.
    */
    if (GetDoingDrawTextBox())
        return;

    if ( (&rDesc == pPap) && rDesc.bRealLineEnd )
    {
        if ( pPap->nEndPos != WW8_CP_MAX )    // Para adjust
=====================================================================
Found a 185 line (823 tokens) duplication in the following files: 
Starting at line 458 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx

                        pFPR, nFPR );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, 
                                  *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
        bridges::cpp_uno::shared::UnoInterfaceProxy * pThis 
            = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy *> (pUnoI);
	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{

        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));

		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
                        aVtableSlot.index += 1; //get then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{

        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 146 line (816 tokens) duplication in the following files: 
Starting at line 5295 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5555 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    Set_UInt16( pData, nKey );
    Set_UInt8( pData, envr );

    BYTE nBits8 = 0;
    if( bVer8 )
    {
        if( fMac )                  nBits8 |= 0x0001;
        if( fEmptySpecial )         nBits8 |= 0x0002;
        if( fLoadOverridePage )     nBits8 |= 0x0004;
        if( fFuturesavedUndo )      nBits8 |= 0x0008;
        if( fWord97Saved )          nBits8 |= 0x0010;
        if( fWord2000Saved )        nBits8 |= 0x0020;
    }
    // unter Ver67 these are only reserved
    Set_UInt8( pData, nBits8  );

    Set_UInt16( pData, chse );
    Set_UInt16( pData, chseTables );
    Set_UInt32( pData, fcMin );
    Set_UInt32( pData, fcMac );

// Einschub fuer WW8 *****************************************************

    // Marke: "rgsw"  Beginning of the array of shorts
    if( bVer8 )
    {
        Set_UInt16( pData, csw );
        Set_UInt16( pData, wMagicCreated );
        Set_UInt16( pData, wMagicRevised );
        Set_UInt16( pData, wMagicCreatedPrivate );
        Set_UInt16( pData, wMagicRevisedPrivate );
        pData += 9 * sizeof( INT16 );
        Set_UInt16( pData, lidFE );
        Set_UInt16( pData, clw );
    }

// Ende des Einschubs fuer WW8 *******************************************

    // Marke: "rglw"  Beginning of the array of longs
    Set_UInt32( pData, cbMac );

    // 2 Longs uebergehen, da unwichtiger Quatsch
    pData += 2 * sizeof( INT32);

    // weitere 2 Longs nur bei Ver67 ueberspringen
    if( !bVer8 )
        pData += 2 * sizeof( INT32);

    Set_UInt32( pData, ccpText );
    Set_UInt32( pData, ccpFtn );
    Set_UInt32( pData, ccpHdr );
    Set_UInt32( pData, ccpMcr );
    Set_UInt32( pData, ccpAtn );
    Set_UInt32( pData, ccpEdn );
    Set_UInt32( pData, ccpTxbx );
    Set_UInt32( pData, ccpHdrTxbx );

        // weiteres Long nur bei Ver67 ueberspringen
    if( !bVer8 )
        pData += 1 * sizeof( INT32);

// Einschub fuer WW8 *****************************************************
    if( bVer8 )
    {
        Set_UInt32( pData, pnFbpChpFirst );
        Set_UInt32( pData, pnChpFirst );
        Set_UInt32( pData, cpnBteChp );
        Set_UInt32( pData, pnFbpPapFirst );
        Set_UInt32( pData, pnPapFirst );
        Set_UInt32( pData, cpnBtePap );
        Set_UInt32( pData, pnFbpLvcFirst );
        Set_UInt32( pData, pnLvcFirst );
        Set_UInt32( pData, cpnBteLvc );
        Set_UInt32( pData, fcIslandFirst );
        Set_UInt32( pData, fcIslandLim );
        Set_UInt16( pData, cfclcb );
    }
// Ende des Einschubs fuer WW8 *******************************************

    // Marke: "rgfclcb" Beginning of array of FC/LCB pairs.
    Set_UInt32( pData, fcStshfOrig );
    Set_UInt32( pData, lcbStshfOrig );
    Set_UInt32( pData, fcStshf );
    Set_UInt32( pData, lcbStshf );
    Set_UInt32( pData, fcPlcffndRef );
    Set_UInt32( pData, lcbPlcffndRef );
    Set_UInt32( pData, fcPlcffndTxt );
    Set_UInt32( pData, lcbPlcffndTxt );
    Set_UInt32( pData, fcPlcfandRef );
    Set_UInt32( pData, lcbPlcfandRef );
    Set_UInt32( pData, fcPlcfandTxt );
    Set_UInt32( pData, lcbPlcfandTxt );
    Set_UInt32( pData, fcPlcfsed );
    Set_UInt32( pData, lcbPlcfsed );
    Set_UInt32( pData, fcPlcfpad );
    Set_UInt32( pData, lcbPlcfpad );
    Set_UInt32( pData, fcPlcfphe );
    Set_UInt32( pData, lcbPlcfphe );
    Set_UInt32( pData, fcSttbfglsy );
    Set_UInt32( pData, lcbSttbfglsy );
    Set_UInt32( pData, fcPlcfglsy );
    Set_UInt32( pData, lcbPlcfglsy );
    Set_UInt32( pData, fcPlcfhdd );
    Set_UInt32( pData, lcbPlcfhdd );
    Set_UInt32( pData, fcPlcfbteChpx );
    Set_UInt32( pData, lcbPlcfbteChpx );
    Set_UInt32( pData, fcPlcfbtePapx );
    Set_UInt32( pData, lcbPlcfbtePapx );
    Set_UInt32( pData, fcPlcfsea );
    Set_UInt32( pData, lcbPlcfsea );
    Set_UInt32( pData, fcSttbfffn );
    Set_UInt32( pData, lcbSttbfffn );
    Set_UInt32( pData, fcPlcffldMom );
    Set_UInt32( pData, lcbPlcffldMom );
    Set_UInt32( pData, fcPlcffldHdr );
    Set_UInt32( pData, lcbPlcffldHdr );
    Set_UInt32( pData, fcPlcffldFtn );
    Set_UInt32( pData, lcbPlcffldFtn );
    Set_UInt32( pData, fcPlcffldAtn );
    Set_UInt32( pData, lcbPlcffldAtn );
    Set_UInt32( pData, fcPlcffldMcr );
    Set_UInt32( pData, lcbPlcffldMcr );
    Set_UInt32( pData, fcSttbfbkmk );
    Set_UInt32( pData, lcbSttbfbkmk );
    Set_UInt32( pData, fcPlcfbkf );
    Set_UInt32( pData, lcbPlcfbkf );
    Set_UInt32( pData, fcPlcfbkl );
    Set_UInt32( pData, lcbPlcfbkl );
    Set_UInt32( pData, fcCmds );
    Set_UInt32( pData, lcbCmds );
    Set_UInt32( pData, fcPlcfmcr );
    Set_UInt32( pData, lcbPlcfmcr );
    Set_UInt32( pData, fcSttbfmcr );
    Set_UInt32( pData, lcbSttbfmcr );
    Set_UInt32( pData, fcPrDrvr );
    Set_UInt32( pData, lcbPrDrvr );
    Set_UInt32( pData, fcPrEnvPort );
    Set_UInt32( pData, lcbPrEnvPort );
    Set_UInt32( pData, fcPrEnvLand );
    Set_UInt32( pData, lcbPrEnvLand );
    Set_UInt32( pData, fcWss );
    Set_UInt32( pData, lcbWss );
    Set_UInt32( pData, fcDop );
    Set_UInt32( pData, lcbDop );
    Set_UInt32( pData, fcSttbfAssoc );
    Set_UInt32( pData, lcbSttbfAssoc );
=====================================================================
Found a 69 line (806 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/386ix/public.h

int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
=====================================================================
Found a 69 line (803 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/solaris/public.h

t_attr Rcp_attribute ANSI((char *));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
=====================================================================
Found a 69 line (802 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/macosx/gnu/public.h

PUBLIC int main ANSI((int argc, char **argv));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
=====================================================================
Found a 67 line (798 tokens) duplication in the following files: 
Starting at line 2997 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2690 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

// aware : control points are always part of the bounding box 
static const SvxMSDffVertPair mso_sptHeartVert[] =
{
	{ 10800, 21599 }, { 321, 6886 }, { 70, 6036 },		// ppp
	{ -9, 5766 }, { -1,	5474 }, { 2, 5192 },			// ccp
	{ 6, 4918 }, { 43, 4641 }, { 101, 4370 },			// ccp
	{ 159, 4103 }, { 245, 3837 }, { 353, 3582 },		// ccp
	{ 460, 3326 }, { 591, 3077 }, { 741, 2839 },		// ccp
	{ 892, 2598 }, { 1066, 2369 }, { 1253, 2155 },		// ccp
	{ 1443,	1938 }, { 1651,	1732 }, { 1874,	1543 },		// ccp
	{ 2097,	1351 }, { 2337, 1174 }, { 2587, 1014 },		// ccp
	{ 2839,	854 }, { 3106, 708 }, { 3380, 584 },		// ccp
	{ 3656,	459 }, { 3945, 350 }, { 4237, 264 },		// ccp
	{ 4533,	176 }, { 4838, 108 }, { 5144, 66 },			// ccp
	{ 5454,	22 }, { 5771, 1 }, { 6086, 3 },				// ccp
	{ 6407,	7 }, { 6731, 35 }, { 7048, 89 },			// ccp
	{ 7374,	144 }, { 7700, 226 }, { 8015, 335 },		// ccp
	{ 8344,	447 }, { 8667, 590 }, { 8972, 756 },		// ccp
	{ 9297,	932 }, { 9613, 1135 }, { 9907, 1363 },		// ccp
	{ 10224, 1609 }, { 10504, 1900 }, { 10802, 2169 },	// ccp
	{ 11697, 1363 },									// p
	{ 11971, 1116 }, { 12304, 934 }, { 12630, 756 },	// ccp
	{ 12935, 590 }, { 13528, 450 }, { 13589, 335 },		// ccp
	{ 13901, 226 }, { 14227, 144 }, { 14556, 89 },		// ccp
	{ 14872, 35 }, { 15195, 7 }, { 15517, 3 },			// ccp
	{ 15830, 0 }, { 16147, 22 }, { 16458, 66 },			// ccp
	{ 16764, 109 }, { 17068, 177 }, { 17365, 264 },		// ccp
	{ 17658, 349 }, { 17946, 458 }, { 18222, 584 },		// ccp
	{ 18496, 708 }, { 18762, 854 }, { 19015, 1014 },	// ccp
	{ 19264, 1172 }, { 19504, 1349 }, { 19730, 1543 },	// ccp
	{ 19950, 1731 }, { 20158, 1937 }, { 20350, 2155 },	// ccp
	{ 20536, 2369 }, { 20710, 2598 }, { 20861, 2839 },	// ccp
	{ 21010, 3074 }, { 21143, 3323 }, { 21251, 3582 },	// ccp
	{ 21357, 3835 }, { 21443, 4099 }, { 21502, 4370 },	// ccp
	{ 21561, 4639 }, { 21595, 4916 }, { 21600, 5192 },	// ccp
	{ 21606, 5474 }, { 21584, 5760 }, { 21532, 6036 },	// ccp
	{ 21478, 6326 }, { 21366, 6603 }, { 21282, 6887 },	// ccp
	{ 10802, 21602 }									// p
};
static const sal_uInt16 mso_sptHeartSegm[] =
{
	0x4000, 0x0002, 0x2010, 0x0001, 0x2010, 0x0001, 0x6001, 0x8000
};
static const SvxMSDffTextRectangles mso_sptHeartTextRect[] =
{
	{ { 5080, 2540 }, { 16520, 13550 } }
};
static const SvxMSDffVertPair mso_sptHeartGluePoints[] =
{
	{ 10800, 2180 }, { 3090, 10800 }, { 10800, 21600 }, { 18490, 10800 } 
};
static const sal_Int32 mso_sptHeartBoundRect[] =
{
	-9, 0, 21606, 21602
};
static const mso_CustomShape msoHeart = 
{
	(SvxMSDffVertPair*)mso_sptHeartVert, sizeof( mso_sptHeartVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptHeartSegm, sizeof( mso_sptHeartSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptHeartTextRect, sizeof( mso_sptHeartTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21615, 21602,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptHeartGluePoints, sizeof( mso_sptHeartGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 19 line (795 tokens) duplication in the following files: 
Starting at line 444 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb98 - fb9f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fba0 - fba7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fba8 - fbaf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbb0 - fbb7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbb8 - fbbf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbc0 - fbc7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbc8 - fbcf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbd0 - fbd7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbd8 - fbdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbe0 - fbe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbe8 - fbef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbf0 - fbf7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fbf8 - fbff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff00 - ff07
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff08 - ff0f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff10 - ff17
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff18 - ff1f
    {0x00, 0x0000}, {0x6a, 0xFF41}, {0x6a, 0xFF42}, {0x6a, 0xFF43}, {0x6a, 0xFF44}, {0x6a, 0xFF45}, {0x6a, 0xFF46}, {0x6a, 0xFF47}, // ff20 - ff27
=====================================================================
Found a 190 line (789 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/impldde.cxx
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/impldde.cxx

SvDDEObject::SvDDEObject()
	: pConnection( 0 ), pLink( 0 ), pRequest( 0 ), pGetData( 0 ), nError( 0 )
{
	SetUpdateTimeout( 100 );
	bWaitForData = FALSE;
}

SvDDEObject::~SvDDEObject()
{
	delete pLink;
	delete pRequest;
	delete pConnection;
}

BOOL SvDDEObject::GetData( ::com::sun::star::uno::Any & rData /*out param*/,
							const String & rMimeType,
							BOOL bSynchron )
{
	if( !pConnection )
		return FALSE;

	if( pConnection->GetError() )		// dann versuchen wir es nochmal
	{
		String sServer( pConnection->GetServiceName() );
		String sTopic( pConnection->GetTopicName() );

		delete pConnection;
		pConnection = new DdeConnection( sServer, sTopic );
		if( pConnection->GetError() )
			nError = DDELINK_ERROR_APP;
	}

	if( bWaitForData )		// wir sind rekursiv drin, wieder raus
		return FALSE;

	// Verriegeln gegen Reentrance
	bWaitForData = TRUE;

	// falls gedruckt werden soll, warten wir bis die Daten vorhanden sind
	if( bSynchron )
	{
		DdeRequest aReq( *pConnection, sItem, 5000 );
		aReq.SetDataHdl( LINK( this, SvDDEObject, ImplGetDDEData ) );
		aReq.SetFormat( SotExchange::GetFormatIdFromMimeType( rMimeType ));

		pGetData = &rData;

		do {
			aReq.Execute();
		} while( aReq.GetError() && ImplHasOtherFormat( aReq ) );

		if( pConnection->GetError() )
			nError = DDELINK_ERROR_DATA;

		bWaitForData = FALSE;
	}
	else
	{
		// ansonsten wird es asynchron ausgefuehrt
//		if( !pLink || !pLink->IsBusy() )
		{
			if( pRequest )
				delete pRequest;

			pRequest = new DdeRequest( *pConnection, sItem );
			pRequest->SetDataHdl( LINK( this, SvDDEObject, ImplGetDDEData ) );
			pRequest->SetDoneHdl( LINK( this, SvDDEObject, ImplDoneDDEData ) );
			pRequest->SetFormat( SotExchange::GetFormatIdFromMimeType(
									rMimeType ) );
			pRequest->Execute();
		}

		::rtl::OUString aEmptyStr;
		rData <<= aEmptyStr;
	}
	return 0 == pConnection->GetError();
}


BOOL SvDDEObject::Connect( SvBaseLink * pSvLink )
{
#if defined(WIN) || defined(WNT)
	static BOOL bInWinExec = FALSE;
#endif

	USHORT nLinkType = pSvLink->GetUpdateMode();
	if( pConnection )		// Verbindung steht ja schon
	{
		// tja, dann nur noch als Abhaengig eintragen
		AddDataAdvise( pSvLink,
				SotExchange::GetFormatMimeType( pSvLink->GetContentType()),
				LINKUPDATE_ONCALL == nLinkType
						? ADVISEMODE_ONLYONCE
						: 0 );
		AddConnectAdvise( pSvLink );

		return TRUE;
	}

	if( !pSvLink->GetLinkManager() )
		return FALSE;

	String sServer, sTopic;
	pSvLink->GetLinkManager()->GetDisplayNames( pSvLink, &sServer, &sTopic, &sItem );

	if( !sServer.Len() || !sTopic.Len() || !sItem.Len() )
		return FALSE;

	pConnection = new DdeConnection( sServer, sTopic );
	if( pConnection->GetError() )
	{
		// kann man denn das System-Topic ansprechen ?
		// dann ist der Server oben, kennt nur nicht das Topic!
		if( sTopic.EqualsIgnoreCaseAscii( "SYSTEM" ) )
		{
			BOOL bSysTopic;
			{
				DdeConnection aTmp( sServer, String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "SYSTEM" ) ) );
				bSysTopic = !aTmp.GetError();
			}

			if( bSysTopic )
			{
				nError = DDELINK_ERROR_DATA;
				return FALSE;
			}
			// ansonsten unter Win/WinNT die Applikation direkt starten
		}

#if defined(WIN) || defined(WNT)

		// Server nicht da, starten und nochmal versuchen
		if( !bInWinExec )
		{
			ByteString aCmdLine( sServer, RTL_TEXTENCODING_ASCII_US );
			aCmdLine.Append( ".exe " );
			aCmdLine.Append( ByteString( sTopic, RTL_TEXTENCODING_ASCII_US ) );

			if( WinExec( aCmdLine.GetBuffer(), SW_SHOWMINIMIZED ) < 32 )
				nError = DDELINK_ERROR_APP;
			else
			{
				USHORT i;
				for( i=0; i<5; i++ )
				{
					bInWinExec = TRUE;
					Application::Reschedule();
					bInWinExec = FALSE;

					delete pConnection;
					pConnection = new DdeConnection( sServer, sTopic );
					if( !pConnection->GetError() )
						break;
				}

				if( i == 5 )
				{
					nError = DDELINK_ERROR_APP;
				}
			}
		}
		else
#endif	// WIN / WNT
		{
			nError = DDELINK_ERROR_APP;
		}
	}

	if( LINKUPDATE_ALWAYS == nLinkType && !pLink && !pConnection->GetError() )
	{
		// Hot Link einrichten, Daten kommen irgendwann spaeter
		pLink = new DdeHotLink( *pConnection, sItem );
		pLink->SetDataHdl( LINK( this, SvDDEObject, ImplGetDDEData ) );
		pLink->SetDoneHdl( LINK( this, SvDDEObject, ImplDoneDDEData ) );
		pLink->SetFormat( pSvLink->GetContentType() );
		pLink->Execute();
	}

	if( pConnection->GetError() )
		return FALSE;

	AddDataAdvise( pSvLink,
				SotExchange::GetFormatMimeType( pSvLink->GetContentType()),
				LINKUPDATE_ONCALL == nLinkType
						? ADVISEMODE_ONLYONCE
						: 0 );
	AddConnectAdvise( pSvLink );
	SetUpdateTimeout( 0 );
	return TRUE;
}
=====================================================================
Found a 65 line (789 tokens) duplication in the following files: 
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BFunctions.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OFunctions.cxx

	if(( pODBC3SQLGetFunctions	=	(T3SQLGetFunctions)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetFunctions").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLGetTypeInfo	=	(T3SQLGetTypeInfo)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetTypeInfo").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLSetConnectAttr	=	(T3SQLSetConnectAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetConnectAttr").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLGetConnectAttr	=	(T3SQLGetConnectAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetConnectAttr").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLSetEnvAttr	=	(T3SQLSetEnvAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetEnvAttr").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLGetEnvAttr	=	(T3SQLGetEnvAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetEnvAttr").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLSetStmtAttr	=	(T3SQLSetStmtAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetStmtAttr").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLGetStmtAttr	=	(T3SQLGetStmtAttr)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetStmtAttr").pData )) == NULL )
		return sal_False;
	/*if( ( pODBC3SQLSetDescField	=	(T3SQLSetDescField)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetDescField").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLGetDescField	=	(T3SQLGetDescField)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetDescField").pData )) == NULL )
		return sal_False;*/
	/*if( ( pODBC3SQLGetDescRec	=	(T3SQLGetDescRec)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetDescRec").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLSetDescRec	=	(T3SQLSetDescRec)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetDescRec").pData )) == NULL )
		return sal_False;*/
	if( ( pODBC3SQLPrepare		=	(T3SQLPrepare)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLPrepare").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLBindParameter =	(T3SQLBindParameter)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBindParameter").pData )) == NULL )
		return sal_False;
//	if( ( pODBC3SQLGetCursorName =	(T3SQLGetCursorName)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetCursorName").pData )) == NULL )
//		return sal_False;
	if( ( pODBC3SQLSetCursorName =	(T3SQLSetCursorName)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetCursorName").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLExecute		=	(T3SQLExecute)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLExecute").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLExecDirect	=	(T3SQLExecDirect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLExecDirect").pData )) == NULL )
		return sal_False;
	/*if( ( pODBC3SQLNativeSql		=	(T3SQLNativeSql)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLNativeSql").pData )) == NULL )
		return sal_False;*/
	if( ( pODBC3SQLDescribeParam =   (T3SQLDescribeParam)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDescribeParam").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLNumParams		=	(T3SQLNumParams)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLNumParams").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLParamData		=	(T3SQLParamData)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLParamData").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLPutData		=	(T3SQLPutData)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLPutData").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLRowCount		=	(T3SQLRowCount)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLRowCount").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLNumResultCols =	(T3SQLNumResultCols)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLNumResultCols").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLDescribeCol	=	(T3SQLDescribeCol)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDescribeCol").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLColAttribute =	(T3SQLColAttribute)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLColAttribute").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLBindCol		=	(T3SQLBindCol)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBindCol").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLFetch			=	(T3SQLFetch)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLFetch").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLFetchScroll	=	(T3SQLFetchScroll)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLFetchScroll").pData )) == NULL )
		return sal_False;					
	if( ( pODBC3SQLGetData		=	(T3SQLGetData)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetData").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLSetPos		=	(T3SQLSetPos)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSetPos").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLBulkOperations	=	(T3SQLBulkOperations)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBulkOperations").pData )) == NULL )
=====================================================================
Found a 177 line (788 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{
    
void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#ifdef DEBUG
    char const * start = p;
#endif
    
    // example: N3com3sun4star4lang24IllegalArgumentExceptionE
    
	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N
    
    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }
    
#ifdef DEBUG
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;
    
    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;
    
public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );
    
    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
    : m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
//__________________________________________________________________________________________________
RTTI::~RTTI() SAL_THROW( () )
{
    dlclose( m_hApp );
}

//__________________________________________________________________________________________________
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW( () )
{
    type_info * rtti;
    
    OUString const & unoName = *(OUString const *)&pTypeDescr->aBase.pTypeName;
    
    MutexGuard guard( m_mutex );
    t_rtti_map::const_iterator iFind( m_rttis.find( unoName ) );
    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );
        
        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iiFind( m_generatedRttis.find( unoName ) );
            if (iiFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#ifdef DEBUG
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iiFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 177 line (788 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{
    
void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if OSL_DEBUG_LEVEL > 1
    char const * start = p;
#endif
    
    // example: N3com3sun4star4lang24IllegalArgumentExceptionE
    
	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N
    
    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }
    
#if OSL_DEBUG_LEVEL > 1
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;
    
    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;
    
public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );
    
    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
    : m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
//__________________________________________________________________________________________________
RTTI::~RTTI() SAL_THROW( () )
{
    dlclose( m_hApp );
}

//__________________________________________________________________________________________________
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW( () )
{
    type_info * rtti;
    
    OUString const & unoName = *(OUString const *)&pTypeDescr->aBase.pTypeName;
    
    MutexGuard guard( m_mutex );
    t_rtti_map::const_iterator iFind( m_rttis.find( unoName ) );
    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );
        
        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 196 line (784 tokens) duplication in the following files: 
Starting at line 833 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/ScriptInfo.cxx
Starting at line 1394 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/porlay.cxx

}

/*************************************************************************
 *                        SwScriptInfo::GetBoundsOfHiddenRange(..)
 * static version
 **************************************************************************/

bool SwScriptInfo::GetBoundsOfHiddenRange( const SwTxtNode& rNode, xub_StrLen nPos,
                                           xub_StrLen& rnStartPos, xub_StrLen& rnEndPos,
                                           PositionList* pList )
{
    rnStartPos = STRING_LEN;
    rnEndPos = 0;

    bool bNewContainsHiddenChars = false;

    //
    // Optimization: First examine the flags at the text node:
    //
    if ( !rNode.IsCalcHiddenCharFlags() )
    {
        bool bWholePara = rNode.HasHiddenCharAttribute( true );
        bool bContainsHiddenChars = rNode.HasHiddenCharAttribute( false );
        if ( !bContainsHiddenChars )
            return false;

        if ( bWholePara )
        {
            if ( pList )
            {
                pList->push_back( 0 );
                pList->push_back( rNode.GetTxt().Len() );
            }

            rnStartPos = 0;
            rnEndPos = rNode.GetTxt().Len();
            return true;
        }
    }

    const SwScriptInfo* pSI = SwScriptInfo::GetScriptInfo( rNode );
    if ( pSI )
    {
        //
        // Check first, if we have a valid SwScriptInfo object for this text node:
        //
        bNewContainsHiddenChars = pSI->GetBoundsOfHiddenRange( nPos, rnStartPos, rnEndPos, pList );
        const bool bNewHiddenCharsHidePara = ( rnStartPos == 0 && rnEndPos >= rNode.GetTxt().Len() );
        rNode.SetHiddenCharAttribute( bNewHiddenCharsHidePara, bNewContainsHiddenChars );
    }
    else
    {
        //
        // No valid SwScriptInfo Object, we have to do it the hard way:
        //
        Range aRange( 0, rNode.GetTxt().Len() ? rNode.GetTxt().Len() - 1 : 0 );
        MultiSelection aHiddenMulti( aRange );
        SwScriptInfo::CalcHiddenRanges( rNode, aHiddenMulti );
        for( USHORT i = 0; i < aHiddenMulti.GetRangeCount(); ++i )
        {
            const Range& rRange = aHiddenMulti.GetRange( i );
            const xub_StrLen nHiddenStart = (xub_StrLen)rRange.Min();
            const xub_StrLen nHiddenEnd = (xub_StrLen)rRange.Max() + 1;

            if ( nHiddenStart > nPos )
                break;
            else if ( nHiddenStart <= nPos && nPos < nHiddenEnd )
            {
                rnStartPos = nHiddenStart;
                rnEndPos   = Min( nHiddenEnd, rNode.GetTxt().Len() );
                break;
            }
        }

        if ( pList )
        {
            for( USHORT i = 0; i < aHiddenMulti.GetRangeCount(); ++i )
            {
                const Range& rRange = aHiddenMulti.GetRange( i );
                pList->push_back( (xub_StrLen)rRange.Min() );
                pList->push_back( (xub_StrLen)rRange.Max() + 1 );
            }
        }

        bNewContainsHiddenChars = aHiddenMulti.GetRangeCount() > 0;
    }

    return bNewContainsHiddenChars;
}

/*************************************************************************
 *                        SwScriptInfo::GetBoundsOfHiddenRange(..)
 * non-static version
 **************************************************************************/

bool SwScriptInfo::GetBoundsOfHiddenRange( xub_StrLen nPos, xub_StrLen& rnStartPos,
                                           xub_StrLen& rnEndPos, PositionList* pList ) const
{
    rnStartPos = STRING_LEN;
    rnEndPos = 0;

    USHORT nEnd = CountHiddenChg();
    for( USHORT nX = 0; nX < nEnd; ++nX )
    {
        const xub_StrLen nHiddenStart = GetHiddenChg( nX++ );
        const xub_StrLen nHiddenEnd = GetHiddenChg( nX );

        if ( nHiddenStart > nPos )
            break;
        else if ( nHiddenStart <= nPos && nPos < nHiddenEnd )
        {
            rnStartPos = nHiddenStart;
            rnEndPos   = nHiddenEnd;
            break;
        }
    }

    if ( pList )
    {
        for( USHORT nX = 0; nX < nEnd; ++nX )
        {
            pList->push_back( GetHiddenChg( nX++ ) );
            pList->push_back( GetHiddenChg( nX ) );
        }
    }

    return CountHiddenChg() > 0;
}

/*************************************************************************
 *                        SwScriptInfo::IsInHiddenRange()
 **************************************************************************/

bool SwScriptInfo::IsInHiddenRange( const SwTxtNode& rNode, xub_StrLen nPos )
{
    xub_StrLen nStartPos;
    xub_StrLen nEndPos;
    SwScriptInfo::GetBoundsOfHiddenRange( rNode, nPos, nStartPos, nEndPos );
    return nStartPos != STRING_LEN;
}


#if OSL_DEBUG_LEVEL > 1
/*************************************************************************
 *                        SwScriptInfo::CompType(..)
 * returns the type of the compressed character
 *************************************************************************/

BYTE SwScriptInfo::CompType( const xub_StrLen nPos ) const
{
    USHORT nEnd = CountCompChg();
    for( USHORT nX = 0; nX < nEnd; ++nX )
    {
        xub_StrLen nChg = GetCompStart( nX );

        if ( nPos < nChg )
            return NONE;

        if( nPos < nChg + GetCompLen( nX ) )
            return GetCompType( nX );
    }
    return NONE;
}
#endif

/*************************************************************************
 *                      SwScriptInfo::HasKana()
 * returns, if there are compressable kanas or specials
 * betwenn nStart and nEnd
 *************************************************************************/

USHORT SwScriptInfo::HasKana( xub_StrLen nStart, const xub_StrLen nLen ) const
{
    USHORT nCnt = CountCompChg();
    xub_StrLen nEnd = nStart + nLen;

    for( USHORT nX = 0; nX < nCnt; ++nX )
    {
        xub_StrLen nKanaStart  = GetCompStart( nX );
        xub_StrLen nKanaEnd = nKanaStart + GetCompLen( nX );

        if ( nKanaStart >= nEnd )
            return USHRT_MAX;

        if ( nStart < nKanaEnd )
            return nX;
    }

    return USHRT_MAX;
}

/*************************************************************************
 *                      SwScriptInfo::Compress()
 *************************************************************************/

long SwScriptInfo::Compress( sal_Int32* pKernArray, xub_StrLen nIdx, xub_StrLen nLen,
=====================================================================
Found a 105 line (781 tokens) duplication in the following files: 
Starting at line 1136 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 1618 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx

						com::sun::star::beans::PropertyValues& rPropValues = seqHandles2[ i ];
						rPropValues.realloc( nPropertiesNeeded );

						// POSITION
						{
							const rtl::OUString	sPosition( RTL_CONSTASCII_USTRINGPARAM ( "Position" ) );
							::com::sun::star::drawing::EnhancedCustomShapeParameterPair aPosition;
							EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aPosition.First, pData->nPositionX, sal_True, sal_True );
							EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aPosition.Second, pData->nPositionY, sal_True, sal_False );
							rPropValues[ n ].Name = sPosition;
							rPropValues[ n++ ].Value <<= aPosition;
						}
						if ( nFlags & MSDFF_HANDLE_FLAGS_MIRRORED_X )
						{
							const rtl::OUString	sMirroredX( RTL_CONSTASCII_USTRINGPARAM ( "MirroredX" ) );
							sal_Bool bMirroredX = sal_True;
							rPropValues[ n ].Name = sMirroredX;
							rPropValues[ n++ ].Value <<= bMirroredX;
						}
						if ( nFlags & MSDFF_HANDLE_FLAGS_MIRRORED_Y )
						{
							const rtl::OUString	sMirroredY( RTL_CONSTASCII_USTRINGPARAM ( "MirroredY" ) );
							sal_Bool bMirroredY = sal_True;
							rPropValues[ n ].Name = sMirroredY;
							rPropValues[ n++ ].Value <<= bMirroredY;
						}
						if ( nFlags & MSDFF_HANDLE_FLAGS_SWITCHED )
						{
							const rtl::OUString	sSwitched( RTL_CONSTASCII_USTRINGPARAM ( "Switched" ) );
							sal_Bool bSwitched = sal_True;
							rPropValues[ n ].Name = sSwitched;
							rPropValues[ n++ ].Value <<= bSwitched;
						}
						if ( nFlags & MSDFF_HANDLE_FLAGS_POLAR )
						{
							const rtl::OUString	sPolar( RTL_CONSTASCII_USTRINGPARAM ( "Polar" ) );
							::com::sun::star::drawing::EnhancedCustomShapeParameterPair aCenter;
							EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aCenter.First,  pData->nCenterX,
								( nFlags & MSDFF_HANDLE_FLAGS_CENTER_X_IS_SPECIAL ) != 0, sal_True  );
							EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aCenter.Second, pData->nCenterY,
								( nFlags & MSDFF_HANDLE_FLAGS_CENTER_Y_IS_SPECIAL ) != 0, sal_False );
							rPropValues[ n ].Name = sPolar;
							rPropValues[ n++ ].Value <<= aCenter;
							if ( nFlags & MSDFF_HANDLE_FLAGS_RADIUS_RANGE )
							{
								if ( pData->nRangeXMin != DEFAULT_MINIMUM_SIGNED_COMPARE )
								{
									const rtl::OUString	sRadiusRangeMinimum( RTL_CONSTASCII_USTRINGPARAM ( "RadiusRangeMinimum" ) );
									::com::sun::star::drawing::EnhancedCustomShapeParameter aRadiusRangeMinimum;
									EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aRadiusRangeMinimum, pData->nRangeXMin,
										( nFlags & MSDFF_HANDLE_FLAGS_RANGE_X_MIN_IS_SPECIAL ) != 0, sal_True  );
									rPropValues[ n ].Name = sRadiusRangeMinimum;
									rPropValues[ n++ ].Value <<= aRadiusRangeMinimum;
								}
								if ( pData->nRangeXMax != DEFAULT_MAXIMUM_SIGNED_COMPARE )
								{
									const rtl::OUString	sRadiusRangeMaximum( RTL_CONSTASCII_USTRINGPARAM ( "RadiusRangeMaximum" ) );
									::com::sun::star::drawing::EnhancedCustomShapeParameter aRadiusRangeMaximum;
									EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aRadiusRangeMaximum, pData->nRangeXMax,
										( nFlags & MSDFF_HANDLE_FLAGS_RANGE_X_MAX_IS_SPECIAL ) != 0, sal_False );
									rPropValues[ n ].Name = sRadiusRangeMaximum;
									rPropValues[ n++ ].Value <<= aRadiusRangeMaximum;
								}
							}
						}
						else if ( nFlags & MSDFF_HANDLE_FLAGS_RANGE )
						{
							if ( pData->nRangeXMin != DEFAULT_MINIMUM_SIGNED_COMPARE )
							{
								const rtl::OUString	sRangeXMinimum( RTL_CONSTASCII_USTRINGPARAM ( "RangeXMinimum" ) );
								::com::sun::star::drawing::EnhancedCustomShapeParameter aRangeXMinimum;
								EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aRangeXMinimum, pData->nRangeXMin,
									( nFlags & MSDFF_HANDLE_FLAGS_RANGE_X_MIN_IS_SPECIAL ) != 0, sal_True  );
								rPropValues[ n ].Name = sRangeXMinimum;
								rPropValues[ n++ ].Value <<= aRangeXMinimum;
							}
							if ( pData->nRangeXMax != DEFAULT_MAXIMUM_SIGNED_COMPARE )
							{
								const rtl::OUString	sRangeXMaximum( RTL_CONSTASCII_USTRINGPARAM ( "RangeXMaximum" ) );
								::com::sun::star::drawing::EnhancedCustomShapeParameter aRangeXMaximum;
								EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aRangeXMaximum, pData->nRangeXMax,
									( nFlags & MSDFF_HANDLE_FLAGS_RANGE_X_MAX_IS_SPECIAL ) != 0, sal_False );
								rPropValues[ n ].Name = sRangeXMaximum;
								rPropValues[ n++ ].Value <<= aRangeXMaximum;
							}
							if ( pData->nRangeYMin != DEFAULT_MINIMUM_SIGNED_COMPARE )
							{
								const rtl::OUString	sRangeYMinimum( RTL_CONSTASCII_USTRINGPARAM ( "RangeYMinimum" ) );
								::com::sun::star::drawing::EnhancedCustomShapeParameter aRangeYMinimum;
								EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aRangeYMinimum, pData->nRangeYMin,
									( nFlags & MSDFF_HANDLE_FLAGS_RANGE_Y_MIN_IS_SPECIAL ) != 0, sal_True );
								rPropValues[ n ].Name = sRangeYMinimum;
								rPropValues[ n++ ].Value <<= aRangeYMinimum;
							}
							if ( pData->nRangeYMax != DEFAULT_MAXIMUM_SIGNED_COMPARE )
							{
								const rtl::OUString	sRangeYMaximum( RTL_CONSTASCII_USTRINGPARAM ( "RangeYMaximum" ) );
								::com::sun::star::drawing::EnhancedCustomShapeParameter aRangeYMaximum;
								EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aRangeYMaximum, pData->nRangeYMax,
									( nFlags & MSDFF_HANDLE_FLAGS_RANGE_Y_MAX_IS_SPECIAL ) != 0, sal_False );
								rPropValues[ n ].Name = sRangeYMaximum;
								rPropValues[ n++ ].Value <<= aRangeYMaximum;
							}
						}
					}
=====================================================================
Found a 66 line (779 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h

int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
=====================================================================
Found a 66 line (776 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/solaris/public.h

t_attr Rcp_attribute ANSI((char *));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
=====================================================================
Found a 66 line (775 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/macosx/gnu/public.h

PUBLIC int main ANSI((int argc, char **argv));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
=====================================================================
Found a 66 line (768 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/386ix/public.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/gnu/public.h

int Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
int If_root_path ANSI((char *));
void Remove_prq ANSI((CELLPTR));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
int Wait_for_child ANSI((int, int));
void Clean_up_processes ANSI(());
time_t CacheStat ANSI((char *, int));
=====================================================================
Found a 67 line (764 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/propertyids.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/propertyids.cxx

		const sal_Char* getSQLSTATE_GENERAL()				{ return 	"HY0000"; }
		const sal_Char* getSTR_DELIMITER()					{ return 	"/"; }

		OPropertyMap::~OPropertyMap()
		{
			::std::map<sal_Int32 , rtl_uString*>::iterator aIter = m_aPropertyMap.begin();
			for(;aIter != m_aPropertyMap.end();++aIter)
				if(aIter->second)
					rtl_uString_release(aIter->second);
		}
		// ------------------------------------------------------------------------------
		::rtl::OUString OPropertyMap::getNameByIndex(sal_Int32 _nIndex) const
		{
			::rtl::OUString sRet;
			::std::map<sal_Int32 , rtl_uString*>::const_iterator aIter = m_aPropertyMap.find(_nIndex);
			if(aIter == m_aPropertyMap.end())
				sRet = const_cast<OPropertyMap*>(this)->fillValue(_nIndex);
			else
				sRet = aIter->second;
			return sRet;
		}
		// ------------------------------------------------------------------------------
		::rtl::OUString OPropertyMap::fillValue(sal_Int32 _nIndex)
		{
			rtl_uString* pStr = NULL;
			switch(_nIndex)
			{
				case PROPERTY_ID_QUERYTIMEOUT:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_QUERYTIMEOUT()			); break; }        
				case PROPERTY_ID_MAXFIELDSIZE:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_MAXFIELDSIZE()			); break; }        
				case PROPERTY_ID_MAXROWS:					{ rtl_uString_newFromAscii(&pStr,getPROPERTY_MAXROWS()				); break;		}             	
				case PROPERTY_ID_CURSORNAME:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_CURSORNAME()			); break;	}          	
				case PROPERTY_ID_RESULTSETCONCURRENCY:		{ rtl_uString_newFromAscii(&pStr,getPROPERTY_RESULTSETCONCURRENCY()	); break; }
				case PROPERTY_ID_RESULTSETTYPE:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_RESULTSETTYPE()			); break; }       
				case PROPERTY_ID_FETCHDIRECTION:			{ rtl_uString_newFromAscii(&pStr,getPROPERTY_FETCHDIRECTION()		); break; }      	
				case PROPERTY_ID_FETCHSIZE:					{ rtl_uString_newFromAscii(&pStr,getPROPERTY_FETCHSIZE()				); break;	}           
				case PROPERTY_ID_ESCAPEPROCESSING:			{ rtl_uString_newFromAscii(&pStr,getPROPERTY_ESCAPEPROCESSING()		); break; }    
				case PROPERTY_ID_USEBOOKMARKS:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_USEBOOKMARKS()			); break; }        
				// Column                                   
				case PROPERTY_ID_NAME:						{ rtl_uString_newFromAscii(&pStr,getPROPERTY_NAME()				); break; }           
				case PROPERTY_ID_TYPE:						{ rtl_uString_newFromAscii(&pStr,getPROPERTY_TYPE()				); break; }           
				case PROPERTY_ID_TYPENAME:					{ rtl_uString_newFromAscii(&pStr,getPROPERTY_TYPENAME()			); break; }       
				case PROPERTY_ID_PRECISION:					{ rtl_uString_newFromAscii(&pStr,getPROPERTY_PRECISION()			); break; }      
				case PROPERTY_ID_SCALE:						{ rtl_uString_newFromAscii(&pStr,getPROPERTY_SCALE()				); break; }          
				case PROPERTY_ID_ISNULLABLE:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_ISNULLABLE()		); break; }     
				case PROPERTY_ID_ISAUTOINCREMENT:			{ rtl_uString_newFromAscii(&pStr,getPROPERTY_ISAUTOINCREMENT()	); break; }
				case PROPERTY_ID_ISROWVERSION:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_ISROWVERSION()		); break; }   
				case PROPERTY_ID_DESCRIPTION:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_DESCRIPTION()		); break; }    
				case PROPERTY_ID_DEFAULTVALUE:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_DEFAULTVALUE()		); break; }   
                                            
				case PROPERTY_ID_REFERENCEDTABLE:			{ rtl_uString_newFromAscii(&pStr,getPROPERTY_REFERENCEDTABLE()	); break; }     
				case PROPERTY_ID_UPDATERULE:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_UPDATERULE()		); break; }          
				case PROPERTY_ID_DELETERULE:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_DELETERULE()		); break; }          
				case PROPERTY_ID_CATALOG:					{ rtl_uString_newFromAscii(&pStr,getPROPERTY_CATALOG()			); break; }             
				case PROPERTY_ID_ISUNIQUE:					{ rtl_uString_newFromAscii(&pStr,getPROPERTY_ISUNIQUE()			); break; }            
				case PROPERTY_ID_ISPRIMARYKEYINDEX:			{ rtl_uString_newFromAscii(&pStr,getPROPERTY_ISPRIMARYKEYINDEX()	); break; }   
				case PROPERTY_ID_ISCLUSTERED:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_ISCLUSTERED()			); break; }         
				case PROPERTY_ID_ISASCENDING:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_ISASCENDING()			); break; }         
				case PROPERTY_ID_SCHEMANAME:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_SCHEMANAME()			); break; }          
				case PROPERTY_ID_CATALOGNAME:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_CATALOGNAME()			); break; }         
                                            				       							 									
				case PROPERTY_ID_COMMAND:					{ rtl_uString_newFromAscii(&pStr,getPROPERTY_COMMAND()				); break; }           
				case PROPERTY_ID_CHECKOPTION:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_CHECKOPTION()			); break; }       
				case PROPERTY_ID_PASSWORD:					{ rtl_uString_newFromAscii(&pStr,getPROPERTY_PASSWORD()				); break; }          
				case PROPERTY_ID_RELATEDCOLUMN:				{ rtl_uString_newFromAscii(&pStr,getPROPERTY_RELATEDCOLUMN()		); break;  }
                                            				  
				case PROPERTY_ID_FUNCTION:           		{ rtl_uString_newFromAscii(&pStr,getPROPERTY_FUNCTION()				); break; }                
				case PROPERTY_ID_TABLENAME:          		{ rtl_uString_newFromAscii(&pStr,getPROPERTY_TABLENAME()				); break; }             
=====================================================================
Found a 115 line (761 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YUser.cxx

void OMySQLUser::findPrivilegesAndGrantPrivileges(const ::rtl::OUString& objName, sal_Int32 objType,sal_Int32& nRights,sal_Int32& nRightsWithGrant) throw(SQLException, RuntimeException)
{
	nRightsWithGrant = nRights = 0;
	// first we need to create the sql stmt to select the privs
	Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData();
	::rtl::OUString sCatalog,sSchema,sTable;
	::dbtools::qualifiedNameComponents(xMeta,objName,sCatalog,sSchema,sTable,::dbtools::eInDataManipulation);
	Reference<XResultSet> xRes;
	switch(objType)
	{
		case PrivilegeObject::TABLE:
		case PrivilegeObject::VIEW:
			{
				Any aCatalog;
				if ( sCatalog.getLength() )
					aCatalog <<= sCatalog;
				xRes = xMeta->getTablePrivileges(aCatalog,sSchema,sTable);
			}
			break;
		
		case PrivilegeObject::COLUMN:
			{
				Any aCatalog;
				if ( sCatalog.getLength() )
					aCatalog <<= sCatalog;
				xRes = xMeta->getColumnPrivileges(aCatalog,sSchema,sTable,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("%")));
			}
			break;
	}
	
	if ( xRes.is() )
	{
		static const ::rtl::OUString sSELECT	= ::rtl::OUString::createFromAscii("SELECT");
		static const ::rtl::OUString sINSERT	= ::rtl::OUString::createFromAscii("INSERT");
		static const ::rtl::OUString sUPDATE	= ::rtl::OUString::createFromAscii("UPDATE");
		static const ::rtl::OUString sDELETE	= ::rtl::OUString::createFromAscii("DELETE");
		static const ::rtl::OUString sREAD		= ::rtl::OUString::createFromAscii("READ");
		static const ::rtl::OUString sCREATE	= ::rtl::OUString::createFromAscii("CREATE");
		static const ::rtl::OUString sALTER		= ::rtl::OUString::createFromAscii("ALTER");
		static const ::rtl::OUString sREFERENCE = ::rtl::OUString::createFromAscii("REFERENCE");
		static const ::rtl::OUString sDROP		= ::rtl::OUString::createFromAscii("DROP");
		static const ::rtl::OUString sYes		= ::rtl::OUString::createFromAscii("YES");

		nRightsWithGrant = nRights = 0;

		Reference<XRow> xCurrentRow(xRes,UNO_QUERY);
		while( xCurrentRow.is() && xRes->next() )
		{
			::rtl::OUString sGrantee	= xCurrentRow->getString(5);
			::rtl::OUString sPrivilege	= xCurrentRow->getString(6);
			::rtl::OUString sGrantable	= xCurrentRow->getString(7);
			
			if (!m_Name.equalsIgnoreAsciiCase(sGrantee))
				continue;

			if (sPrivilege.equalsIgnoreAsciiCase(sSELECT))
			{
				nRights |= Privilege::SELECT;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::SELECT;
			}
			else if (sPrivilege.equalsIgnoreAsciiCase(sINSERT))
			{
				nRights |= Privilege::INSERT;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::INSERT;
			}
			else if (sPrivilege.equalsIgnoreAsciiCase(sUPDATE))
			{
				nRights |= Privilege::UPDATE;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::UPDATE;
			}
			else if (sPrivilege.equalsIgnoreAsciiCase(sDELETE))
			{
				nRights |= Privilege::DELETE;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::DELETE;
			}
			else if (sPrivilege.equalsIgnoreAsciiCase(sREAD))
			{
				nRights |= Privilege::READ;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::READ;
			}
			else if (sPrivilege.equalsIgnoreAsciiCase(sCREATE))
			{
				nRights |= Privilege::CREATE;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::CREATE;
			}
			else if (sPrivilege.equalsIgnoreAsciiCase(sALTER))
			{
				nRights |= Privilege::ALTER;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::ALTER;
			}
			else if (sPrivilege.equalsIgnoreAsciiCase(sREFERENCE))
			{
				nRights |= Privilege::REFERENCE;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::REFERENCE;
			}
			else if (sPrivilege.equalsIgnoreAsciiCase(sDROP))
			{
				nRights |= Privilege::DROP;
				if ( sGrantable.equalsIgnoreAsciiCase(sYes) )
					nRightsWithGrant |= Privilege::DROP;
			}
		}
		::comphelper::disposeComponent(xRes);
	}
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL OMySQLUser::getGrantablePrivileges( const ::rtl::OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
=====================================================================
Found a 147 line (750 tokens) duplication in the following files: 
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LNoException.cxx
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ENoException.cxx

	OFlatConnection* pConnection = (OFlatConnection*)m_pConnection;
	// ----------------------------------------------------------
	// Positionierung vorbereiten:

	m_nFilePos = nCurPos;

	switch(eCursorPosition)
	{
		case IResultSetHelper::FIRST:
			m_nFilePos = 0;
			m_nRowPos = 1;
			// run through
		case IResultSetHelper::NEXT:
			if(eCursorPosition != IResultSetHelper::FIRST)
				++m_nRowPos;
			m_pFileStream->Seek(m_nFilePos);
			if (m_pFileStream->IsEof() || !checkHeaderLine())
			{
				m_nMaxRowCount = m_nRowPos;
				return sal_False;
			}

			m_aRowToFilePos.insert(::std::map<sal_Int32,sal_Int32>::value_type(m_nRowPos,m_nFilePos));

			m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
			if (m_pFileStream->IsEof())
			{
				m_nMaxRowCount = m_nRowPos;
				return sal_False;
			}
			nCurPos = m_pFileStream->Tell();
			break;
		case IResultSetHelper::PRIOR:
			--m_nRowPos;
			if(m_nRowPos > 0)
			{
				m_nFilePos = m_aRowToFilePos.find(m_nRowPos)->second;
				m_pFileStream->Seek(m_nFilePos);
				if (m_pFileStream->IsEof() || !checkHeaderLine())
					return sal_False;
				m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
				if (m_pFileStream->IsEof())
					return sal_False;
				nCurPos = m_pFileStream->Tell();
			}
			else
				m_nRowPos = 0;

			break;

			break;
		case IResultSetHelper::LAST:
			if(m_nMaxRowCount)
			{
				m_nFilePos = m_aRowToFilePos.rbegin()->second;
				m_nRowPos  = m_aRowToFilePos.rbegin()->first;
				m_pFileStream->Seek(m_nFilePos);
				if (m_pFileStream->IsEof() || !checkHeaderLine())
					return sal_False;
				m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
				if (m_pFileStream->IsEof())
					return sal_False;
				nCurPos = m_pFileStream->Tell();
			}
			else
			{
				while(seekRow(IResultSetHelper::NEXT,1,nCurPos)) ; // run through after last row
				// now I know all
				seekRow(IResultSetHelper::PRIOR,1,nCurPos);
			}
			break;
		case IResultSetHelper::RELATIVE:
			if(nOffset > 0)
			{
				for(sal_Int32 i = 0;i<nOffset;++i)
					seekRow(IResultSetHelper::NEXT,1,nCurPos);
			}
			else if(nOffset < 0)
			{
				for(sal_Int32 i = nOffset;i;++i)
					seekRow(IResultSetHelper::PRIOR,1,nCurPos);
			}
			break;
		case IResultSetHelper::ABSOLUTE:
			{
				if(nOffset < 0)
					nOffset = m_nRowPos + nOffset;
				::std::map<sal_Int32,sal_Int32>::const_iterator aIter = m_aRowToFilePos.find(nOffset);
				if(aIter != m_aRowToFilePos.end())
				{
					m_nFilePos = aIter->second;
					m_pFileStream->Seek(m_nFilePos);
					if (m_pFileStream->IsEof() || !checkHeaderLine())
						return sal_False;
					m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
					if (m_pFileStream->IsEof())
						return sal_False;
					nCurPos = m_pFileStream->Tell();
				}
				else if(m_nMaxRowCount && nOffset > m_nMaxRowCount) // offset is outside the table
				{
					m_nRowPos = m_nMaxRowCount;
					return sal_False;
				}
				else
				{
					aIter = m_aRowToFilePos.upper_bound(nOffset);
					if(aIter == m_aRowToFilePos.end())
					{
						m_nRowPos	= m_aRowToFilePos.rbegin()->first;
						nCurPos = m_nFilePos = m_aRowToFilePos.rbegin()->second;
						while(m_nRowPos != nOffset)
							seekRow(IResultSetHelper::NEXT,1,nCurPos);
					}
					else
					{
						--aIter;
						m_nRowPos	= aIter->first;
						m_nFilePos	= aIter->second;
						m_pFileStream->Seek(m_nFilePos);
						if (m_pFileStream->IsEof() || !checkHeaderLine())
							return sal_False;
						m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
						if (m_pFileStream->IsEof())
							return sal_False;
						nCurPos = m_pFileStream->Tell();
					}
				}
			}

			break;
		case IResultSetHelper::BOOKMARK:
			m_pFileStream->Seek(nOffset);
			if (m_pFileStream->IsEof())
				return sal_False;

			m_nFilePos = m_pFileStream->Tell();	// Byte-Position in der Datei merken (am ZeilenANFANG)
			m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
			if (m_pFileStream->IsEof())
				return sal_False;
			nCurPos  = m_pFileStream->Tell();
			break;
	}


	return sal_True;
}
=====================================================================
Found a 145 line (748 tokens) duplication in the following files: 
Starting at line 773 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 686 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

	OFlatConnection* pConnection = (OFlatConnection*)m_pConnection;
	// ----------------------------------------------------------
	// Positionierung vorbereiten:

	m_nFilePos = nCurPos;

	switch(eCursorPosition)
	{
		case IResultSetHelper::FIRST:
			m_nFilePos = 0;
			m_nRowPos = 1;
			// run through
		case IResultSetHelper::NEXT:
			if(eCursorPosition != IResultSetHelper::FIRST)
				++m_nRowPos;
			m_pFileStream->Seek(m_nFilePos);
			if (m_pFileStream->IsEof() || !checkHeaderLine())
			{
				m_nMaxRowCount = m_nRowPos;
				return sal_False;
			}

			m_aRowToFilePos.insert(::std::map<sal_Int32,sal_Int32>::value_type(m_nRowPos,m_nFilePos));

			m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
			if (m_pFileStream->IsEof())
			{
				m_nMaxRowCount = m_nRowPos;
				return sal_False;
			}
			nCurPos = m_pFileStream->Tell();
			break;
		case IResultSetHelper::PRIOR:
			--m_nRowPos;
			if(m_nRowPos > 0)
			{
				m_nFilePos = m_aRowToFilePos.find(m_nRowPos)->second;
				m_pFileStream->Seek(m_nFilePos);
				if (m_pFileStream->IsEof() || !checkHeaderLine())
					return sal_False;
				m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
				if (m_pFileStream->IsEof())
					return sal_False;
				nCurPos = m_pFileStream->Tell();
			}
			else
				m_nRowPos = 0;

			break;
		case IResultSetHelper::LAST:
			if(m_nMaxRowCount)
			{
				m_nFilePos = m_aRowToFilePos.rbegin()->second;
				m_nRowPos  = m_aRowToFilePos.rbegin()->first;
				m_pFileStream->Seek(m_nFilePos);
				if (m_pFileStream->IsEof() || !checkHeaderLine())
					return sal_False;
				m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
				if (m_pFileStream->IsEof())
					return sal_False;
				nCurPos = m_pFileStream->Tell();
			}
			else
			{
				while(seekRow(IResultSetHelper::NEXT,1,nCurPos)) ; // run through after last row
				// now I know all
				seekRow(IResultSetHelper::PRIOR,1,nCurPos);
			}
			break;
		case IResultSetHelper::RELATIVE:
			if(nOffset > 0)
			{
				for(sal_Int32 i = 0;i<nOffset;++i)
					seekRow(IResultSetHelper::NEXT,1,nCurPos);
			}
			else if(nOffset < 0)
			{
				for(sal_Int32 i = nOffset;i;++i)
					seekRow(IResultSetHelper::PRIOR,1,nCurPos);
			}
			break;
		case IResultSetHelper::ABSOLUTE:
			{
				if(nOffset < 0)
					nOffset = m_nRowPos + nOffset;
				::std::map<sal_Int32,sal_Int32>::const_iterator aIter = m_aRowToFilePos.find(nOffset);
				if(aIter != m_aRowToFilePos.end())
				{
					m_nFilePos = aIter->second;
					m_pFileStream->Seek(m_nFilePos);
					if (m_pFileStream->IsEof() || !checkHeaderLine())
						return sal_False;
					m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
					if (m_pFileStream->IsEof())
						return sal_False;
					nCurPos = m_pFileStream->Tell();
				}
				else if(m_nMaxRowCount && nOffset > m_nMaxRowCount) // offset is outside the table
				{
					m_nRowPos = m_nMaxRowCount;
					return sal_False;
				}
				else
				{
					aIter = m_aRowToFilePos.upper_bound(nOffset);
					if(aIter == m_aRowToFilePos.end())
					{
						m_nRowPos	= m_aRowToFilePos.rbegin()->first;
						nCurPos = m_nFilePos = m_aRowToFilePos.rbegin()->second;
						while(m_nRowPos != nOffset)
							seekRow(IResultSetHelper::NEXT,1,nCurPos);
					}
					else
					{
						--aIter;
						m_nRowPos	= aIter->first;
						m_nFilePos	= aIter->second;
						m_pFileStream->Seek(m_nFilePos);
						if (m_pFileStream->IsEof() || !checkHeaderLine())
							return sal_False;
						m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
						if (m_pFileStream->IsEof())
							return sal_False;
						nCurPos = m_pFileStream->Tell();
					}
				}
			}

			break;
		case IResultSetHelper::BOOKMARK:
			m_pFileStream->Seek(nOffset);
			if (m_pFileStream->IsEof())
				return sal_False;

			m_nFilePos = m_pFileStream->Tell();	// Byte-Position in der Datei merken (am ZeilenANFANG)
			m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
			if (m_pFileStream->IsEof())
				return sal_False;
			nCurPos  = m_pFileStream->Tell();
			break;
	}


	return sal_True;
}
=====================================================================
Found a 256 line (746 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/sal/typesconfig/typesconfig.c
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/solar/solar.c

  return nStackAlignment;
}


/*************************************************************************
|*
|*	Typdeclarations for memory access test functions
|*
*************************************************************************/
typedef enum { t_char, t_short, t_int, t_long, t_double } Type;
typedef int (*TestFunc)( Type, void* );


/*************************************************************************
|*
|*	PrintArgs()
|*
|*	Beschreibung		Testfunktion fuer variable Parameter
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
#ifdef I_STDARG
void PrintArgs( int p, ... )
#else
void PrintArgs( p, va_alist )
int p;
va_dcl
#endif
{
	int value;
	va_list ap;

#ifdef I_STDARG
    va_start( ap, p );
#else
    va_start( ap );
#endif

	printf( "value = %d", p );

	while ( ( value = va_arg(ap, int) ) != 0 )
	  printf( " %d", value );

	printf( "\n" );
	va_end(ap);
}

#ifndef USE_FORK_TO_CHECK
/*************************************************************************
|*
|*	SignalHdl()
|*
|*	Beschreibung		faengt SIGBUS und SIGSEGV in check() ab
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
static jmp_buf check_env;
static int bSignal;
void SignalHdl( int sig )
{
  bSignal = 1;
  
  fprintf( stderr, "Signal %d caught\n", sig );
  signal( SIGSEGV,	SIG_DFL );
  signal( SIGBUS,	SIG_DFL );
  siglongjmp( check_env, sig );
}
#endif

/*************************************************************************
|*
|*	check()
|*
|*	Beschreibung		Testet MemoryZugriff (read/write)
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
int check( TestFunc func, Type eT, void* p )
{
#ifdef USE_FORK_TO_CHECK
  pid_t nChild = fork();
  if ( nChild )
  {
    int exitVal;
    wait( &exitVal );
    if ( exitVal & 0xff )
      return -1;
    else
      return exitVal >> 8;
  }
  else
  {
    exit( func( eT, p ) );
  }
#else
  int result;

  bSignal = 0;

  if ( !sigsetjmp( check_env, 1 ) )
  {
	signal( SIGSEGV,	SignalHdl );
	signal( SIGBUS,		SignalHdl );
	result = func( eT, p );
	signal( SIGSEGV,	SIG_DFL );
	signal( SIGBUS,		SIG_DFL );
  }

  if ( bSignal )
	return -1;
  else
	return 0;
#endif
}

/*************************************************************************
|*
|*	GetAtAddress()
|*
|*	Beschreibung		memory read access
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
int GetAtAddress( Type eT, void* p )
{
  switch ( eT )
  {
  case t_char:		return *((char*)p);
  case t_short:		return *((short*)p);
  case t_int:		return *((int*)p);
  case t_long:		return *((long*)p);
  case t_double:	return *((double*)p);
  }
  abort();
}

/*************************************************************************
|*
|*	SetAtAddress()
|*
|*	Beschreibung		memory write access
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
int SetAtAddress( Type eT, void* p )
{
  switch ( eT )
  {
  case t_char:		return *((char*)p)	= 0;
  case t_short:		return *((short*)p)	= 0;
  case t_int:		return *((int*)p)	= 0;
  case t_long:		return *((long*)p)	= 0;
  case t_double:	return *((double*)p)= 0;
  }
  abort();
}

char* TypeName( Type eT )
{
  switch ( eT )
  {
  case t_char:		return "char";
  case t_short:		return "short";
  case t_int:		return "int";
  case t_long:		return "long";
  case t_double:	return "double";
  }
  abort();
}

/*************************************************************************
|*
|*	Check(Get|Set)Access()
|*
|*	Beschreibung		Testet MemoryZugriff (read/write)
|*						Zugriffsverletzungen werden abgefangen
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
int CheckGetAccess( Type eT, void* p )
{
  int b;
  b = -1 != check( (TestFunc)GetAtAddress, eT, p );
#if OSL_DEBUG_LEVEL > 1
  fprintf( stderr,
		   "%s read %s at %p\n",
		   (b? "can" : "can not" ), TypeName(eT), p );
#endif
  return b;
}
int CheckSetAccess( Type eT, void* p )
{
  int b;

  b = -1 != check( (TestFunc)SetAtAddress, eT, p );
#if OSL_DEBUG_LEVEL > 1
  fprintf( stderr,
		   "%s write %s at %p\n",
		   (b? "can" : "can not" ), TypeName(eT), p );
#endif
  return b;
}

/*************************************************************************
|*
|*	GetAlignment()
|*
|*	Beschreibung		Bestimmt das Alignment verschiedener Typen
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
int GetAlignment( Type eT )
{
  char	a[ 16*8 ];
  long	p = (long)(void*)a;
  int	i;

  /* clear a[...] to set legal value for double access */
  for ( i = 0; i < 16*8; i++ )
	a[i] = 0;

  p = ( p + 0xF ) & ~0xF;
  for ( i = 1; i < 16; i++ )
	if ( CheckGetAccess( eT, (void*)(p+i) ) )
	  return i;
  return 0;
}

/*************************************************************************
|*
|*	struct Description
|*
|*	Beschreibung		Beschreibt die Parameter der Architektur
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
struct Description
{
  int	bBigEndian;
  int	bStackGrowsDown;
=====================================================================
Found a 145 line (743 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/ipwin.cxx
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/hatchwindow/ipwin.cxx

SvResizeHelper::SvResizeHelper()
	: aBorder( 5, 5 )
	, nGrab( -1 )
	, bResizeable( TRUE )
{
}

/*************************************************************************
|*    SvResizeHelper::FillHandleRects()
|*
|*    Beschreibung: Die acht Handles zum vergroessern
*************************************************************************/
void SvResizeHelper::FillHandleRectsPixel( Rectangle aRects[ 8 ] ) const
{
	// nur wegen EMPTY_RECT
	Point aBottomRight = aOuter.BottomRight();

	// Links Oben
	aRects[ 0 ] = Rectangle( aOuter.TopLeft(), aBorder );
	// Oben Mitte
	aRects[ 1 ] = Rectangle( Point( aOuter.Center().X() - aBorder.Width() / 2,
									aOuter.Top() ),
							aBorder );
	// Oben Rechts
	aRects[ 2 ] = Rectangle( Point( aBottomRight.X() - aBorder.Width() +1,
									aOuter.Top() ),
							aBorder );
	// Mitte Rechts
	aRects[ 3 ] = Rectangle( Point( aBottomRight.X() - aBorder.Width() +1,
									aOuter.Center().Y() - aBorder.Height() / 2 ),
							aBorder );
	// Unten Rechts
	aRects[ 4 ] = Rectangle( Point( aBottomRight.X() - aBorder.Width() +1,
									aBottomRight.Y() - aBorder.Height() +1 ),
							aBorder );
	// Mitte Unten
	aRects[ 5 ] = Rectangle( Point( aOuter.Center().X() - aBorder.Width() / 2,
									aBottomRight.Y() - aBorder.Height() +1),
							aBorder );
	// Links Unten
	aRects[ 6 ] = Rectangle( Point( aOuter.Left(),
									aBottomRight.Y() - aBorder.Height() +1),
							aBorder );
	// Mitte Links
	aRects[ 7 ] = Rectangle( Point( aOuter.Left(),
									aOuter.Center().Y() - aBorder.Height() / 2 ),
							aBorder );
}

/*************************************************************************
|*    SvResizeHelper::FillMoveRectsPixel()
|*
|*    Beschreibung: Die vier Kanten werden berechnet
*************************************************************************/
void SvResizeHelper::FillMoveRectsPixel( Rectangle aRects[ 4 ] ) const
{
	// Oben
	aRects[ 0 ] = aOuter;
	aRects[ 0 ].Bottom() = aRects[ 0 ].Top() + aBorder.Height() -1;
	// Rechts
	aRects[ 1 ] = aOuter;
	aRects[ 1 ].Left() = aRects[ 1 ].Right() - aBorder.Width() -1;
	//Unten
	aRects[ 2 ] = aOuter;
	aRects[ 2 ].Top() = aRects[ 2 ].Bottom() - aBorder.Height() -1;
	//Links
	aRects[ 3 ] = aOuter;
	aRects[ 3 ].Right() = aRects[ 3 ].Left() + aBorder.Width() -1;
}

/*************************************************************************
|*    SvResizeHelper::Draw()
|*
|*    Beschreibung
*************************************************************************/
void SvResizeHelper::Draw( OutputDevice * pDev )
{
	pDev->Push();
	pDev->SetMapMode( MapMode() );
	Color aColBlack;
	Color aFillColor( COL_LIGHTGRAY );

	pDev->SetFillColor( aFillColor );
	pDev->SetLineColor();

	Rectangle   aMoveRects[ 4 ];
	FillMoveRectsPixel( aMoveRects );
	USHORT i;
	for( i = 0; i < 4; i++ )
		pDev->DrawRect( aMoveRects[ i ] );
	if( bResizeable )
	{
		// Handles malen
		pDev->SetFillColor( aColBlack );
		Rectangle   aRects[ 8 ];
		FillHandleRectsPixel( aRects );
		for( i = 0; i < 8; i++ )
			pDev->DrawRect( aRects[ i ] );
	}
	pDev->Pop();
}

/*************************************************************************
|*    SvResizeHelper::InvalidateBorder()
|*
|*    Beschreibung
*************************************************************************/
void SvResizeHelper::InvalidateBorder( Window * pWin )
{
	Rectangle   aMoveRects[ 4 ];
	FillMoveRectsPixel( aMoveRects );
	for( USHORT i = 0; i < 4; i++ )
		pWin->Invalidate( aMoveRects[ i ] );
}

/*************************************************************************
|*    SvResizeHelper::SelectBegin()
|*
|*    Beschreibung
*************************************************************************/
BOOL SvResizeHelper::SelectBegin( Window * pWin, const Point & rPos )
{
	if( -1 == nGrab )
	{
		nGrab = SelectMove( pWin, rPos );
		if( -1 != nGrab )
		{
			aSelPos = rPos; // Start-Position merken
			pWin->CaptureMouse();
			return TRUE;
		}
	}
	return FALSE;
}

/*************************************************************************
|*    SvResizeHelper::SelectBegin()
|*
|*    Beschreibung
*************************************************************************/
void SvResizeHelper::SelectBegin( Window * pWin, short nGrabP )
{
	nGrab = nGrabP;
	// aSelPos = GetInnerRectPixel().TopLeft(); // Start-Position merken
	aSelPos = GetOuterRectPixel().TopLeft(); // Start-Position merken
=====================================================================
Found a 87 line (740 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/EDatabaseMetaData.cxx

	::osl::MutexGuard aGuard( m_aMutex );

    Reference< XTablesSupplier > xTables = m_pConnection->createCatalog();
	if(!xTables.is())
        throw SQLException();

	Reference< XNameAccess> xNames = xTables->getTables();
	if(!xNames.is())
		throw SQLException();

	ODatabaseMetaDataResultSet::ORows aRows;
	ODatabaseMetaDataResultSet::ORow aRow(19);
	aRow[10] = new ORowSetValueDecorator((sal_Int32)10);
	Sequence< ::rtl::OUString> aTabNames(xNames->getElementNames());
	const ::rtl::OUString* pTabBegin	= aTabNames.getConstArray();
	const ::rtl::OUString* pTabEnd		= pTabBegin + aTabNames.getLength();
	for(;pTabBegin != pTabEnd;++pTabBegin)
	{
		if(match(tableNamePattern,*pTabBegin,'\0'))
		{
			Reference< XColumnsSupplier> xTable;
			::cppu::extractInterface(xTable,xNames->getByName(*pTabBegin));
			aRow[3] = new ORowSetValueDecorator(*pTabBegin);

			Reference< XNameAccess> xColumns = xTable->getColumns();
			if(!xColumns.is())
				throw SQLException();

			Sequence< ::rtl::OUString> aColNames(xColumns->getElementNames());

			const ::rtl::OUString* pBegin = aColNames.getConstArray();
			const ::rtl::OUString* pEnd = pBegin + aColNames.getLength();
			Reference< XPropertySet> xColumn;
			for(sal_Int32 i=1;pBegin != pEnd;++pBegin,++i)
			{
				if(match(columnNamePattern,*pBegin,'\0'))
				{
					aRow[4] = new ORowSetValueDecorator(*pBegin);

					::cppu::extractInterface(xColumn,xColumns->getByName(*pBegin));
					OSL_ENSURE(xColumn.is(),"Columns contains a column who isn't a fastpropertyset!");
					aRow[5] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))));
					aRow[6] = new ORowSetValueDecorator(getString(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME))));
					aRow[7] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION))));
					aRow[9] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE))));
					aRow[11] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISNULLABLE))));
					aRow[13] = new ORowSetValueDecorator(getString(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DEFAULTVALUE))));

					switch((sal_Int32)aRow[5]->getValue())
					{
					case DataType::CHAR:
					case DataType::VARCHAR:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)254);
						break;
					case DataType::LONGVARCHAR:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)65535);
						break;
					default:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)0);
					}
					aRow[17] = new ORowSetValueDecorator(i);
					switch(sal_Int32(aRow[11]->getValue()))
					{
					case ColumnValue::NO_NULLS:
						aRow[18]  = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("NO"));
						break;
					case ColumnValue::NULLABLE:
						aRow[18]  = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("YES"));
						break;
					default:
						aRow[18]  = new ORowSetValueDecorator(::rtl::OUString());
					}
					aRows.push_back(aRow);
				}
			}
		}
	}

	::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet();
	Reference< XResultSet > xRef = pResult;
	pResult->setColumnsMap();
	pResult->setRows(aRows);

	return xRef;
}
// -------------------------------------------------------------------------
Reference< XResultSet > SAL_CALL OFlatDatabaseMetaData::getVersionColumns(
=====================================================================
Found a 17 line (725 tokens) duplication in the following files: 
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c00 - 2c07
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c08 - 2c0f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c10 - 2c17
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c18 - 2c1f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c20 - 2c27
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c28 - 2c2f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c30 - 2c37
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c38 - 2c3f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c40 - 2c47
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c48 - 2c4f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c50 - 2c57
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c58 - 2c5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c60 - 2c67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c68 - 2c6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c70 - 2c77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c78 - 2c7f
    {0x6a, 0x2c81}, {0x15, 0x2c80}, {0x6a, 0x2c83}, {0x15, 0x2c82}, {0x6a, 0x2c85}, {0x15, 0x2c84}, {0x6a, 0x2c87}, {0x15, 0x2c86}, // 2c80 - 2c87, Coptic
=====================================================================
Found a 17 line (723 tokens) duplication in the following files: 
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x14, 0x2168}, {0x14, 0x2169}, {0x14, 0x216A}, {0x14, 0x216B}, {0x14, 0x216C}, {0x14, 0x216D}, {0x14, 0x216E}, {0x14, 0x216F}, // 2178 - 217f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2180 - 2187
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2188 - 218f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2190 - 2197
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2198 - 219f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21a0 - 21a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21a8 - 21af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21b0 - 21b7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21b8 - 21bf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21c0 - 21c7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21c8 - 21cf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21d0 - 21d7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21d8 - 21df
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21e0 - 21e7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21e8 - 21ef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21f0 - 21f7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 21f8 - 21ff
=====================================================================
Found a 204 line (715 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgupdate.cxx

using namespace std;

#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/Type.hxx>
#include <com/sun/star/uno/TypeClass.hpp>

#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XHierarchicalName.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/container/XNameReplace.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/beans/XExactName.hpp>
#ifndef _COM_SUN_STAR_UTIL_XCHANGESBATCH_HPP_
#include <com/sun/star/util/XChangesBatch.hpp>
#endif
#ifndef _COM_SUN_STAR_BEANS_XHIERARCHICALPROPERTYSET_HPP_
#include <com/sun/star/beans/XHierarchicalPropertySet.hpp>
#endif


#include <rtl/ustring.hxx>
#include <rtl/string.hxx>
#include <osl/time.h>

#ifndef _CPPUHELPER_SERVICEFACTORY_HXX_
#include <cppuhelper/servicefactory.hxx>
#endif

#ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_
#include <com/sun/star/uno/Sequence.h>
#endif

#ifndef _COM_SUN_STAR_UNO_ANY_H_
#include <com/sun/star/uno/Any.h>
#endif

#include "createpropertyvalue.hxx"

#include "typeconverter.hxx"

// #include <com/sun/star/configuration/XConfigurationSync.hpp>

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::beans;
//using namespace ::com::sun::star::util;
using namespace ::com::sun::star::util;

using ::rtl::OUString;
using ::rtl::OString;
//using namespace ::configmgr;

using namespace ::cppu;

#define ASCII(x) ::rtl::OUString::createFromAscii(x)

ostream& operator << (ostream& out, rtl::OUString const& aStr)
{
	sal_Unicode const* const pStr = aStr.getStr();
	sal_Unicode const* const pEnd = pStr + aStr.getLength();
	for (sal_Unicode const* p = pStr; p < pEnd; ++p)
		if (0 < *p && *p < 127) // ASCII
			out << char(*p);
		else
			out << "[\\u" << hex << *p << "]";
	return out;
}

void showSequence(const Sequence<OUString> &aSeq)
{
	OUString aArray;
	const OUString *pStr = aSeq.getConstArray();
	for (int i=0;i<aSeq.getLength();i++)
	{
		OUString aStr = pStr[i];
		// aArray += aStr + ASCII(", ");
		cout << aStr << endl;
	}
	volatile int dummy = 0;
}

//=============================================================================
//=============================================================================
void test_read_access(Reference< XInterface >& xIface, Reference< XMultiServiceFactory > &xMSF);
//=============================================================================
struct prompt_and_wait
{
	char const* myText;
	prompt_and_wait(char const* text = "") : myText(text) {}
	~prompt_and_wait() 
	{
		cout << myText << ">" << endl;
		int const mx = int( (+0u - +1u) >> 1);

		char c=0; 
		if (cin.get(c) && c != '\n')
			cin.ignore(mx,'\n'); 
	}
}; 
static prompt_and_wait exit_prompt("Quitting\nQ");


// -----------------------------------------------------------------------------
Sequence<Any> createSequence(const OUString &sUser, const OUString &sPasswd)
{
	Sequence< Any > aCPArgs;
		
	if (sUser.getLength() > 0)
	{
		aCPArgs.realloc(1);
		aCPArgs[0] <<= configmgr::createPropertyValue(ASCII("user"), sUser);
	}
	if (sPasswd.getLength() > 0)
	{
		aCPArgs.realloc(2);
		aCPArgs[1] <<= configmgr::createPropertyValue(ASCII("password"), sPasswd);
	}
	return aCPArgs;
}

//=============================================================================
#include <string.h>
#if (defined UNX) || (defined OS2)
#else
#include <conio.h>
#endif

OString input(const char* pDefaultText, char cEcho)
{
	// PRE: a Default Text would be shown, cEcho is a Value which will show if a key is pressed.
	const int MAX_INPUT_LEN = 500;
	char aBuffer[MAX_INPUT_LEN];

	strcpy(aBuffer, pDefaultText);
	int nLen = strlen(aBuffer);

#ifdef WNT
	char ch = '\0';

	cout << aBuffer;
	cout.flush();

	while(ch != 13)
	{
		ch = getch();
		if (ch == 8)
		{
			if (nLen > 0)
			{
				cout << "\b \b";
				cout.flush();
				--nLen;
				aBuffer[nLen] = '\0';
			}
			else
			{
				cout << "\a";
				cout.flush();
			}
		}
		else if (ch != 13)
		{
			if (nLen < MAX_INPUT_LEN)
			{
				if (cEcho == 0)
				{
					cout << ch;
				}
				else
				{
					cout << cEcho;
				}
				cout.flush();
				aBuffer[nLen++] = ch;
				aBuffer[nLen] = '\0';
			}
			else
			{
				cout << "\a";
				cout.flush();
			}
		}
	}
#else
	if (!cin.getline(aBuffer,sizeof aBuffer))
		return OString();
#endif
	return OString(aBuffer);
}

// -----------------------------------------------------------------------------
rtl::OUString enterValue(const char* _aStr, const char* _aDefault, bool _bIsAPassword)
{
	cout << _aStr;
	cout.flush();
	OString aTxt = input(_aDefault, _bIsAPassword ? '*' : 0);

	OUString sValue = OUString::createFromAscii(aTxt);
	return sValue;
}
=====================================================================
Found a 31 line (707 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 621 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_OHEIGHT),	SC_WID_UNO_OHEIGHT,	&getBooleanCppuType(),					0, 0 },
        {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PADJUST),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PBMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_LO_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PINDENT),	ATTR_INDENT,		&getCppuType((sal_Int16*)0),			0, 0 }, //! CONVERT_TWIPS
		{MAP_CHAR_LEN(SC_UNONAME_PISCHDIST),ATTR_SCRIPTSPACE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISFORBID),ATTR_FORBIDDEN_RULES,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHANG),	ATTR_HANGPUNCTUATION,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHYPHEN),ATTR_HYPHENATE,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PLASTADJ),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
        {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIXML),	SC_WID_UNO_VALIXML,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLVJUS),	ATTR_VER_JUSTIFY,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_WRITING),	ATTR_WRITINGDIR,	&getCppuType((sal_Int16*)0),			0, 0 },
        {0,0,0,0,0,0}
	};
	return aRowPropertyMap_Impl;
=====================================================================
Found a 71 line (706 tokens) duplication in the following files: 
Starting at line 4189 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 4314 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

void PDFWriterImpl::createDefaultRadioButtonAppearance( PDFWidget& rBox, const PDFWriter::RadioButtonWidget& rWidget )
{
    const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();

    // save graphics state
    push( sal::static_int_cast<sal_uInt16>(~0U) );

    if( rWidget.Background || rWidget.Border )
    {
        setLineColor( rWidget.Border ? replaceColor( rWidget.BorderColor, rSettings.GetCheckedColor() ) : Color( COL_TRANSPARENT ) );
        setFillColor( rWidget.Background ? replaceColor( rWidget.BackgroundColor, rSettings.GetFieldColor() ) : Color( COL_TRANSPARENT ) );
        drawRectangle( rBox.m_aRect );
    }

    Font aFont = replaceFont( rWidget.TextFont, rSettings.GetRadioCheckFont() );
    setFont( aFont );
    Size aFontSize = aFont.GetSize();
    if( aFontSize.Height() > rBox.m_aRect.GetHeight() )
        aFontSize.Height() = rBox.m_aRect.GetHeight();
    sal_Int32 nDelta = aFontSize.Height()/10;
    if( nDelta < 1 )
        nDelta = 1;

    Rectangle aCheckRect, aTextRect;
    if( rWidget.ButtonIsLeft )
    {
        aCheckRect.Left()	= rBox.m_aRect.Left() + nDelta;
        aCheckRect.Top()	= rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
        aCheckRect.Right()	= aCheckRect.Left() + aFontSize.Height();
        aCheckRect.Bottom()	= aCheckRect.Top() + aFontSize.Height();

        // #i74206# handle small controls without text area
        while( aCheckRect.GetWidth() > rBox.m_aRect.GetWidth() && aCheckRect.GetWidth() > nDelta )
        {
            aCheckRect.Right()  -= nDelta;
            aCheckRect.Top()    += nDelta/2;
            aCheckRect.Bottom() -= nDelta - (nDelta/2);
        }

        aTextRect.Left()	= rBox.m_aRect.Left() + aCheckRect.GetWidth()+5*nDelta;
        aTextRect.Top()		= rBox.m_aRect.Top();
        aTextRect.Right()	= aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
        aTextRect.Bottom()	= rBox.m_aRect.Bottom();
    }
    else
    {
        aCheckRect.Left()	= rBox.m_aRect.Right() - nDelta - aFontSize.Height();
        aCheckRect.Top()	= rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
        aCheckRect.Right()	= aCheckRect.Left() + aFontSize.Height();
        aCheckRect.Bottom()	= aCheckRect.Top() + aFontSize.Height();

        // #i74206# handle small controls without text area
        while( aCheckRect.GetWidth() > rBox.m_aRect.GetWidth() && aCheckRect.GetWidth() > nDelta )
        {
            aCheckRect.Left()   += nDelta;
            aCheckRect.Top()    += nDelta/2;
            aCheckRect.Bottom() -= nDelta - (nDelta/2);
        }
        
        aTextRect.Left()	= rBox.m_aRect.Left();
        aTextRect.Top()		= rBox.m_aRect.Top();
        aTextRect.Right()	= aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
        aTextRect.Bottom()	= rBox.m_aRect.Bottom();
    }
    setLineColor( Color( COL_BLACK ) );
    setFillColor( Color( COL_TRANSPARENT ) );
    OStringBuffer aLW( 32 );
    aLW.append( "q " );
    m_aPages[ m_nCurrentPage ].appendMappedLength( nDelta, aLW );
    aLW.append( " w " );
    writeBuffer( aLW.getStr(), aLW.getLength() );
=====================================================================
Found a 243 line (706 tokens) duplication in the following files: 
Starting at line 1474 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

namespace osl_Socket
{

	/** testing the methods:
		inline Socket( );
		inline Socket( const Socket & socket );
		inline Socket( oslSocket socketHandle );
		inline Socket( oslSocket socketHandle, __sal_NoAcquire noacquire );
	*/

	/**  test writer's comment:
	
		class Socket can not be initialized by its protected constructor, though the protected 
		constructor is the most convenient way to create a new socket. 
		it only allow the method of C function osl_createSocket like:
		::osl::Socket sSocket( osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, 
		                                  osl_Socket_ProtocolIp ) );
		the use of C method lost some of the transparent of tester using C++ wrapper.
	*/

	
	class ctors : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
		void ctors_none()
		{
			/// Socket constructor.
			::osl::Socket sSocket();
	
			CPPUNIT_ASSERT_MESSAGE( "test for ctors_none constructor function: check if the socket was created successfully, if no exception occured", 
									1 == 1 );
		}
	
		void ctors_acquire()
		{
			/// Socket constructor.
			::osl::Socket sSocket( sHandle );
	
			CPPUNIT_ASSERT_MESSAGE( "test for ctors_acquire constructor function: check if the socket was created successfully", 
									osl_Socket_TypeStream == sSocket.getType( ) );
		}

		void ctors_no_acquire()
		{
			/// Socket constructor.
			::osl::Socket sSocket( sHandle, SAL_NO_ACQUIRE );
	
			CPPUNIT_ASSERT_MESSAGE(" test for ctors_no_acquire constructor function: check if the socket was created successfully", 
									osl_Socket_TypeStream == sSocket.getType( ) );
		}
		
		void ctors_copy_ctor()
		{
			::osl::Socket sSocket( sHandle );
			/// Socket copy constructor.
			::osl::Socket copySocket( sSocket );
	
			CPPUNIT_ASSERT_MESSAGE(" test for ctors_copy_ctor constructor function: create new Socket instance using copy constructor", 
									osl_Socket_TypeStream == copySocket.getType( ) );
		}

		void ctors_TypeRaw()
		{
#ifdef WNT
			oslSocket sHandleRaw = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeRaw, osl_Socket_ProtocolIp );
// LLA: ?			::osl::Socket sSocket( sHandleRaw );
			CPPUNIT_ASSERT_MESSAGE( " type osl_Socket_TypeRaw socket create failed on UNX ", sHandleRaw != NULL);			
#else
			oslSocket sHandleRaw = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeRaw, osl_Socket_ProtocolIp );
			CPPUNIT_ASSERT_MESSAGE( " can't create socket with type osl_Socket_TypeRaw within UNX is ok.", sHandleRaw == NULL);
#endif
		}
		
		void ctors_family_Ipx()
		{
			oslSocket sHandleIpx = osl_createSocket( osl_Socket_FamilyIpx, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
			CPPUNIT_ASSERT_MESSAGE( " family osl_Socket_FamilyIpx socket create failed! ", sHandleIpx != NULL);
			::osl::Socket sSocket( sHandleIpx );		//, SAL_NO_ACQUIRE );
			t_print("#Type is %d \n", sSocket.getType( ) );
			
			CPPUNIT_ASSERT_MESSAGE(" test for create new Socket instance that family is osl_Socket_FamilyIpx", 
									osl_Socket_TypeStream == sSocket.getType( ) );
		}

		
		
		CPPUNIT_TEST_SUITE( ctors );
		CPPUNIT_TEST( ctors_none );
		CPPUNIT_TEST( ctors_acquire );
		CPPUNIT_TEST( ctors_no_acquire );
		CPPUNIT_TEST( ctors_copy_ctor );
		CPPUNIT_TEST( ctors_TypeRaw );
		CPPUNIT_TEST( ctors_family_Ipx );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class ctors
	
	
	/** testing the methods:
		inline Socket& SAL_CALL operator= ( oslSocket socketHandle);
		inline Socket& SAL_CALL operator= (const Socket& sock);
		inline sal_Bool SAL_CALL operator==( const Socket& rSocket ) const ;
		inline sal_Bool SAL_CALL operator==( const oslSocket socketHandle ) const;
	*/
	
	class operators : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
	/**  test writer's comment:
	
		the assignment operator does not support direct assinment like:
		::osl::Socket sSocket = sHandle.
	*/
		void operators_assignment_handle()
		{
			::osl::Socket sSocket(sHandle);
			::osl::Socket assignSocket = sSocket.getHandle();
	
			CPPUNIT_ASSERT_MESSAGE( "test for operators_assignment_handle function: test the assignment operator.", 
									osl_Socket_TypeStream == assignSocket.getType( )  );
		}
	
		void operators_assignment()
		{
			::osl::Socket sSocket( sHandle );
			::osl::Socket assignSocket = sSocket;
	
			CPPUNIT_ASSERT_MESSAGE( "test for operators_assignment function: assignment operator", 
									osl_Socket_TypeStream == assignSocket.getType( ) );
		}

		void operators_equal_handle_001()
		{
			/// Socket constructor.
			::osl::Socket sSocket( sHandle );
			::osl::Socket equalSocket = sSocket;
	
			CPPUNIT_ASSERT_MESSAGE(" test for operators_equal_handle_001 function: check equal.", 
									equalSocket == sHandle );
		}
		
		void operators_equal_handle_002()
		{
			/// Socket constructor.
			::osl::Socket equalSocket( osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeDgram, osl_Socket_ProtocolIp ) );
	
			CPPUNIT_ASSERT_MESSAGE(" test for operators_equal_handle_001 function: check unequal.", 
									!( equalSocket == sHandle ) );
		}
		
		void operators_equal_001()
		{
			::osl::Socket sSocket( sHandle );
			/// Socket copy constructor.
			::osl::Socket equalSocket( sSocket );
	
			CPPUNIT_ASSERT_MESSAGE(" test for operators_equal function: check equal.", 
									equalSocket == sSocket );
		}
		
		void operators_equal_002()
		{
			::osl::Socket sSocket( sHandle );
			/// Socket copy constructor.
			::osl::Socket equalSocket( osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeDgram, osl_Socket_ProtocolIp ) );
	
			CPPUNIT_ASSERT_MESSAGE(" test for operators_equal_002 function: check unequal.", 
									!( equalSocket == sSocket ) );
		}
		
		CPPUNIT_TEST_SUITE( operators );
		CPPUNIT_TEST( operators_assignment_handle );
		CPPUNIT_TEST( operators_assignment );
		CPPUNIT_TEST( operators_equal_handle_001 );
		CPPUNIT_TEST( operators_equal_handle_002 );
		CPPUNIT_TEST( operators_equal_001 );
		CPPUNIT_TEST( operators_equal_002 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class operators
	
	
	/** testing the methods:
		inline void SAL_CALL shutdown( oslSocketDirection Direction = osl_Socket_DirReadWrite );
		inline void SAL_CALL close();
	*/
	
	class close : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
		void close_001()
		{
			::osl::Socket sSocket(sHandle);
			sSocket.close();
	
			CPPUNIT_ASSERT_MESSAGE( "test for close_001 function: this function is reserved for test.", 
									sSocket.getHandle() == sHandle );
		}
		
		void close_002()
		{
//#if defined(LINUX)
			::osl::AcceptorSocket asSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
			AcceptorThread myAcceptorThread( asSocket, rtl::OUString::createFromAscii("127.0.0.1") );
=====================================================================
Found a 159 line (704 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/xmlnamespaces.cxx
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/xmlnamespaces.cxx

using namespace ::rtl;
using namespace ::com::sun::star::xml::sax;
using namespace ::com::sun::star::uno;

const OUString aXMLAttributeNamespace( RTL_CONSTASCII_USTRINGPARAM( "xmlns" ));

namespace framework
{

XMLNamespaces::XMLNamespaces()
{
}

XMLNamespaces::XMLNamespaces( const XMLNamespaces& aXMLNamespaces )
{
	m_aDefaultNamespace = aXMLNamespaces.m_aDefaultNamespace;
	m_aNamespaceMap = aXMLNamespaces.m_aNamespaceMap;
}

XMLNamespaces::~XMLNamespaces()
{
}

void XMLNamespaces::addNamespace( const OUString& aName, const OUString& aValue ) throw( SAXException )
{
	NamespaceMap::iterator p;
	OUString aNamespaceName( aName );
	sal_Int32 nXMLNamespaceLength = aXMLAttributeNamespace.getLength();

	// delete preceding "xmlns"
	if ( aNamespaceName.compareTo( aXMLAttributeNamespace, nXMLNamespaceLength ) == 0 )
	{
		if ( aNamespaceName.getLength() == nXMLNamespaceLength )
		{
			aNamespaceName = OUString();
		}
		else if ( aNamespaceName.getLength() >= nXMLNamespaceLength+2 )
		{	
			aNamespaceName = aNamespaceName.copy( nXMLNamespaceLength+1 );
		}
		else
		{
			// a xml namespace without name is not allowed (e.g. "xmlns:" )
			OUString aErrorMessage( RTL_CONSTASCII_USTRINGPARAM( "A xml namespace without name is not allowed!" ));
			throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
		}
	}

	if ( aValue.getLength() == 0 && aNamespaceName.getLength() > 0 )
	{
		// namespace should be reseted - as xml draft states this is only allowed
		// for the default namespace - check and throw exception if check fails
		OUString aErrorMessage( RTL_CONSTASCII_USTRINGPARAM( "Clearing xml namespace only allowed for default namespace!" ));
		throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
	}
	else
	{
		if ( aNamespaceName.getLength() == 0 )
			m_aDefaultNamespace = aValue;
		else
		{
			p = m_aNamespaceMap.find( aNamespaceName );
			if ( p != m_aNamespaceMap.end() )
			{
				// replace current namespace definition
				m_aNamespaceMap.erase( p );
				m_aNamespaceMap.insert( NamespaceMap::value_type( aNamespaceName, aValue ));
			}	
			else
			{
				m_aNamespaceMap.insert( NamespaceMap::value_type( aNamespaceName, aValue ));
			}
		}
	}
}

OUString XMLNamespaces::applyNSToAttributeName( const OUString& aName ) const throw( SAXException )
{
	// xml draft: there is no default namespace for attributes!

	int	index;
	if (( index = aName.indexOf( ':' )) > 0 )
	{
		if ( aName.getLength() > index+1 )
		{
			OUString aAttributeName = getNamespaceValue( aName.copy( 0, index ) );
			aAttributeName += OUString::createFromAscii( "^" );
			aAttributeName += aName.copy( index+1 );
			return aAttributeName;
		}
		else
		{
			// attribute with namespace but without name "namespace:" is not allowed!!
			OUString aErrorMessage( RTL_CONSTASCII_USTRINGPARAM( "Attribute has no name only preceding namespace!" ));
			throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
		}
	}

	return aName;
}

OUString XMLNamespaces::applyNSToElementName( const OUString& aName ) const	throw( SAXException )
{
	// xml draft: element names can have a default namespace

	int			index = aName.indexOf( ':' );
	OUString	aNamespace;
	OUString	aElementName = aName;

	if ( index > 0 )
		aNamespace = getNamespaceValue( aName.copy( 0, index ) );
	else
		aNamespace = m_aDefaultNamespace;

	if ( aNamespace.getLength() > 0 )
	{
		aElementName = aNamespace;
		aElementName += OUString::createFromAscii( "^" );
	}
	else
		return aName;

	if ( index > 0 )
	{
		if ( aName.getLength() > index+1 )
			aElementName += aName.copy( index+1 );
		else
		{
			// attribute with namespace but without a name is not allowed (e.g. "cfg:" )
			OUString aErrorMessage( RTL_CONSTASCII_USTRINGPARAM( "Attribute has no name only preceding namespace!" ));
			throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
		}
	}
	else
		aElementName += aName;
			
	return aElementName;
}

OUString XMLNamespaces::getNamespaceValue( const OUString& aNamespace ) const throw( SAXException )
{
	if ( aNamespace.getLength() == 0 )
		return m_aDefaultNamespace;
	else
	{
		NamespaceMap::const_iterator p;
		p = m_aNamespaceMap.find( aNamespace );
		if ( p != m_aNamespaceMap.end() )
			return p->second;
		else
		{
			// namespace not defined => throw exception!
			OUString aErrorMessage( RTL_CONSTASCII_USTRINGPARAM( "XML namespace used but not defined!" ));
			throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
		}
	}
}

}
=====================================================================
Found a 215 line (702 tokens) duplication in the following files: 
Starting at line 5562 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5828 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    else if (rFib.nFib < 67) // old Version ? (need to find this again to fix)
        cbStshi = 4;    // -> Laengenfeld fehlt
    else    // neue Version:
        // lies die Laenge der in der Datei gespeicherten Struktur
        rSt >> cbStshi;

    UINT16 nRead = cbStshi;
    do
    {
        UINT16 a16Bit;

        if(  2 > nRead ) break;
        rSt >> cstd;

        if(  4 > nRead ) break;
        rSt >> cbSTDBaseInFile;

        if(  6 > nRead ) break;
        rSt >> a16Bit;
        fStdStylenamesWritten = a16Bit & 0x0001;

        if(  8 > nRead ) break;
        rSt >> stiMaxWhenSaved;

        if( 10 > nRead ) break;
        rSt >> istdMaxFixedWhenSaved;

        if( 12 > nRead ) break;
        rSt >> nVerBuiltInNamesWhenSaved;

        if( 14 > nRead ) break;
        rSt >> ftcStandardChpStsh;

        if( 16 > nRead ) break;
        rSt >> ftcStandardChpCJKStsh;

        if ( 18 > nRead ) break;
        rSt >> ftcStandardChpCTLStsh;

        // ggfs. den Rest ueberlesen
        if( 18 < nRead )
            rSt.SeekRel( nRead-18 );
    }
    while( !this ); // Trick: obiger Block wird genau einmal durchlaufen
                    //   und kann vorzeitig per "break" verlassen werden.

    if( 0 != rSt.GetError() )
    {
        // wie denn nun den Error melden?
    }
}

// Read1STDFixed() liest ein Style ein. Wenn der Style vollstaendig vorhanden
// ist, d.h. kein leerer Slot, dann wird Speicher alloziert und ein Pointer auf
// die ( evtl. mit Nullen aufgefuellten ) STD geliefert. Ist es ein leerer
// Slot, dann wird ein Nullpointer zurueckgeliefert.
WW8_STD* WW8Style::Read1STDFixed( short& rSkip, short* pcbStd )
{
    WW8_STD* pStd = 0;

    UINT16 cbStd;
    rSt >> cbStd;   // lies Laenge

    UINT16 nRead = cbSTDBaseInFile;
    if( cbStd >= cbSTDBaseInFile )
    {
        // Fixed part vollst. vorhanden

        // read fixed part of STD
        pStd = new WW8_STD;
        memset( pStd, 0, sizeof( *pStd ) );

        do
        {
            UINT16 a16Bit;

            if( 2 > nRead ) break;
            rSt >> a16Bit;
            pStd->sti          =        a16Bit & 0x0fff  ;
            pStd->fScratch     = 0 != ( a16Bit & 0x1000 );
            pStd->fInvalHeight = 0 != ( a16Bit & 0x2000 );
            pStd->fHasUpe      = 0 != ( a16Bit & 0x4000 );
            pStd->fMassCopy    = 0 != ( a16Bit & 0x8000 );

            if( 4 > nRead ) break;
            rSt >> a16Bit;
            pStd->sgc      =   a16Bit & 0x000f       ;
            pStd->istdBase = ( a16Bit & 0xfff0 ) >> 4;

            if( 6 > nRead ) break;
            rSt >> a16Bit;
            pStd->cupx     =   a16Bit & 0x000f       ;
            pStd->istdNext = ( a16Bit & 0xfff0 ) >> 4;

            if( 8 > nRead ) break;
            rSt >> pStd->bchUpe;

            // ab Ver8 sollten diese beiden Felder dazukommen:
            if(10 > nRead ) break;
            rSt >> a16Bit;
            pStd->fAutoRedef =   a16Bit & 0x0001       ;
            pStd->fHidden    = ( a16Bit & 0x0002 ) >> 2;

            // man kann nie wissen: vorsichtshalber ueberlesen
            // wir eventuelle Fuellsel, die noch zum BASE-Part gehoeren...
            if( 10 < nRead )
                rSt.SeekRel( nRead-10 );
        }
        while( !this ); // Trick: obiger Block wird genau einmal durchlaufen
                        //   und kann vorzeitig per "break" verlassen werden.

        if( (0 != rSt.GetError()) || !nRead )
            DELETEZ( pStd );        // per NULL den Error melden

      rSkip = cbStd - cbSTDBaseInFile;
    }
    else
    {           // Fixed part zu kurz
        if( cbStd )
            rSt.SeekRel( cbStd );           // ueberlies Reste
        rSkip = 0;
    }
    if( pcbStd )
        *pcbStd = cbStd;
    return pStd;
}

WW8_STD* WW8Style::Read1Style( short& rSkip, String* pString, short* pcbStd )
{
    // Attention: MacWord-Documents have their Stylenames
    // always in ANSI, even if eStructCharSet == CHARSET_MAC !!

    WW8_STD* pStd = Read1STDFixed( rSkip, pcbStd );         // lese STD

    // String gewuenscht ?
    if( pString )
    {   // echter Style ?
        if ( pStd )
        {
            switch( rFib.nVersion )
            {
                case 6:
                case 7:
                    // lies Pascal-String
                    *pString = WW8ReadPString( rSt, RTL_TEXTENCODING_MS_1252 );
                    // leading len and trailing zero --> 2
                    rSkip -= 2+ pString->Len();
                    break;
                case 8:
                    // handle Unicode-String with leading length short and
                    // trailing zero
                    if (ww8String::TestBeltAndBraces(rSt))
                    {
                        *pString = WW8Read_xstz(rSt, 0, true);
                        rSkip -= (pString->Len() + 2) * 2;
                    }
                    else
                    {
                        /*
                        #i8114#
                        This is supposed to be impossible, its just supposed
                        to be 16 bit count followed by the string and ending
                        in a 0 short. But "Lotus SmartSuite Product: Word Pro"
                        is creating invalid style names in ww7- format. So we
                        use the belt and braces of the ms strings to see if
                        they are not corrupt. If they are then we try them as
                        8bit ones
                        */
                        *pString = WW8ReadPString(rSt,RTL_TEXTENCODING_MS_1252);
                        // leading len and trailing zero --> 2
                        rSkip -= 2+ pString->Len();
                    }
                    break;
                default:
                    ASSERT(!this, "Es wurde vergessen, nVersion zu kodieren!");
                    break;
            }
        }
        else
            *pString = aEmptyStr;   // Kann keinen Namen liefern
    }
    return pStd;
}


//-----------------------------------------


struct WW8_FFN_Ver6 : public WW8_FFN_BASE
{
    // ab Ver6
    sal_Char szFfn[65]; // 0x6 bzw. 0x40 ab Ver8 zero terminated string that
                        // records name of font.
                        // Maximal size of szFfn is 65 characters.
                        // Vorsicht: Dieses Array kann auch kleiner sein!!!
                        // Possibly followed by a second sz which records the
                        // name of an alternate font to use if the first named
                        // font does not exist on this system.
};
struct WW8_FFN_Ver8 : public WW8_FFN_BASE
{
    // ab Ver8 sind folgende beiden Felder eingeschoben,
    // werden von uns ignoriert.
    sal_Char panose[ 10 ];  //  0x6   PANOSE
    sal_Char fs[ 24     ];  //  0x10  FONTSIGNATURE

    // ab Ver8 als Unicode
    UINT16 szFfn[65];   // 0x6 bzw. 0x40 ab Ver8 zero terminated string that
                        // records name of font.
                        // Maximal size of szFfn is 65 characters.
                        // Vorsicht: Dieses Array kann auch kleiner sein!!!
                        // Possibly followed by a second sz which records the
                        // name of an alternate font to use if the first named
                        // font does not exist on this system.
};
=====================================================================
Found a 16 line (699 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x15, 0x0550}, {0x15, 0x0551}, {0x15, 0x0552}, {0x15, 0x0553}, {0x15, 0x0554}, {0x15, 0x0555}, {0x15, 0x0556}, {0xd5, 0x004C}, // 0580 - 0587
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0588 - 058f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0590 - 0597
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0598 - 059f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05a0 - 05a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05a8 - 05af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05b0 - 05b7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05b8 - 05bf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05c0 - 05c7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05c8 - 05cf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05d0 - 05d7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05d8 - 05df
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05e0 - 05e7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05e8 - 05ef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05f0 - 05f7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05f8 - 05ff
=====================================================================
Found a 115 line (696 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/attributelist.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/attributelist.cxx

	return sal::static_int_cast< sal_Int16 >(m_pImpl->vecAttribute.size());
}

OUString SAL_CALL AttributeList::getNameByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException )
{
	if( i < static_cast < sal_Int16 > (m_pImpl->vecAttribute.size()) ) {
		return m_pImpl->vecAttribute[i].sName;
	}
	return OUString();
}

OUString SAL_CALL AttributeList::getTypeByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException )
{
	if( i < static_cast < sal_Int16 > (m_pImpl->vecAttribute.size() ) ) {
		return m_pImpl->vecAttribute[i].sType;
	}
	return OUString();
}

OUString SAL_CALL  AttributeList::getValueByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException )
{
	if( i < static_cast < sal_Int16 > (m_pImpl->vecAttribute.size() ) ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString SAL_CALL AttributeList::getTypeByName( const OUString& sName ) throw( ::com::sun::star::uno::RuntimeException )
{
	::std::vector<struct TagAttribute_Impl>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString SAL_CALL AttributeList::getValueByName(const OUString& sName) throw( ::com::sun::star::uno::RuntimeException )
{
	::std::vector<struct TagAttribute_Impl>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}


AttributeList::AttributeList()
{
	m_pImpl = new AttributeList_Impl;
}



AttributeList::~AttributeList()
{
	delete m_pImpl;
}

void AttributeList::AddAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute_Impl( sName , sType , sValue ) );
}

void AttributeList::Clear()
{
	m_pImpl->vecAttribute.clear();

	VOS_ENSURE( ! getLength(), "Length > 0 after AttributeList::Clear!");
}

void AttributeList::RemoveAttribute( const OUString sName )
{
	::std::vector<struct TagAttribute_Impl>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			m_pImpl->vecAttribute.erase( ii );
			break;
		}
	}
}


void AttributeList::SetAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList >  &r )
{
	Clear();
	AppendAttributeList( r );
}

void AttributeList::AppendAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList >  &r )
{
	VOS_ENSURE( r.is(), "r isn't!" );

	sal_Int32 nMax = r->getLength();
	sal_Int32 nTotalSize = m_pImpl->vecAttribute.size() + nMax;
	m_pImpl->vecAttribute.reserve( nTotalSize );

	for( sal_Int16 i = 0 ; i < nMax ; i ++ ) {
		m_pImpl->vecAttribute.push_back( TagAttribute_Impl(
			r->getNameByIndex( i ) ,
			r->getTypeByIndex( i ) ,
			r->getValueByIndex( i )));
	}

	VOS_ENSURE( nTotalSize == getLength(), "nTotalSize != getLength()");
}
=====================================================================
Found a 115 line (693 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/xml/attributelist.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/attributelist.cxx

	return static_cast< sal_Int16 >( m_pImpl->vecAttribute.size() );
}

OUString SAL_CALL AttributeList::getNameByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException )
{
	if( i < static_cast < sal_Int16 > (m_pImpl->vecAttribute.size()) ) {
		return m_pImpl->vecAttribute[i].sName;
	}
	return OUString();
}

OUString SAL_CALL AttributeList::getTypeByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException )
{
	if( i < static_cast < sal_Int16 > (m_pImpl->vecAttribute.size() ) ) {
		return m_pImpl->vecAttribute[i].sType;
	}
	return OUString();
}

OUString SAL_CALL  AttributeList::getValueByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException )
{
	if( i < static_cast < sal_Int16 > (m_pImpl->vecAttribute.size() ) ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString SAL_CALL AttributeList::getTypeByName( const OUString& sName ) throw( ::com::sun::star::uno::RuntimeException )
{
	::std::vector<struct TagAttribute_Impl>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString SAL_CALL AttributeList::getValueByName(const OUString& sName) throw( ::com::sun::star::uno::RuntimeException )
{
	::std::vector<struct TagAttribute_Impl>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}


AttributeList::AttributeList()
{
	m_pImpl = new AttributeList_Impl;
}



AttributeList::~AttributeList()
{
	delete m_pImpl;
}

void AttributeList::AddAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute_Impl( sName , sType , sValue ) );
}

void AttributeList::Clear()
{
	m_pImpl->vecAttribute.clear();

	VOS_ENSURE( ! getLength(), "Length > 0 after AttributeList::Clear!");
}

void AttributeList::RemoveAttribute( const OUString sName )
{
	::std::vector<struct TagAttribute_Impl>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			m_pImpl->vecAttribute.erase( ii );
			break;
		}
	}
}


void AttributeList::SetAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList >  &r )
{
	Clear();
	AppendAttributeList( r );
}

void AttributeList::AppendAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList >  &r )
{
	VOS_ENSURE( r.is(), "r isn't!" );

	sal_Int32 nMax = r->getLength();
	sal_Int32 nTotalSize = m_pImpl->vecAttribute.size() + nMax;
	m_pImpl->vecAttribute.reserve( nTotalSize );

	for( sal_Int16 i = 0 ; i < nMax ; i ++ ) {
		m_pImpl->vecAttribute.push_back( TagAttribute_Impl(
			r->getNameByIndex( i ) ,
			r->getTypeByIndex( i ) ,
			r->getValueByIndex( i )));
	}

	VOS_ENSURE( nTotalSize == getLength(), "nTotalSize != getLength()");
}
=====================================================================
Found a 88 line (691 tokens) duplication in the following files: 
Starting at line 1919 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2696 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0x69, 0xdd },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x00, 0xa6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x00, 0xa9, 0xa9 },
{ 0x00, 0xaa, 0xaa },
{ 0x00, 0xab, 0xab },
{ 0x00, 0xac, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x00, 0xb3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x01, 0xe0, 0xc0 },
=====================================================================
Found a 60 line (688 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/gnu/public.h

int Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
=====================================================================
Found a 16 line (687 tokens) duplication in the following files: 
Starting at line 410 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 444 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xd5, 0x014F}, {0xd5, 0x0152}, {0xd5, 0x0155}, {0xd5, 0x0158}, {0xd5, 0x015B}, // fb10 - fb17
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb18 - fb1f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb20 - fb27
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb28 - fb2f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb30 - fb37
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb38 - fb3f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb40 - fb47
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb48 - fb4f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb50 - fb57
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb58 - fb5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb60 - fb67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb68 - fb6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb70 - fb77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb78 - fb7f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb80 - fb87
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fb88 - fb8f
=====================================================================
Found a 153 line (682 tokens) duplication in the following files: 
Starting at line 63 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DNoException.cxx
Starting at line 2268 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DTable.cxx

sal_Bool ODbaseTable::seekRow(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Int32& nCurPos)
{
	// ----------------------------------------------------------
	// Positionierung vorbereiten:
	OSL_ENSURE(m_pFileStream,"ODbaseTable::seekRow: FileStream is NULL!");

	sal_uInt32  nNumberOfRecords = (sal_uInt32)m_aHeader.db_anz;
	sal_uInt32 nTempPos = m_nFilePos;
	m_nFilePos = nCurPos;

	switch(eCursorPosition)
	{
		case IResultSetHelper::NEXT:
			++m_nFilePos;
			break;
		case IResultSetHelper::PRIOR:
			if (m_nFilePos > 0)
				--m_nFilePos;
			break;
		case IResultSetHelper::FIRST:
			m_nFilePos = 1;
			break;
		case IResultSetHelper::LAST:
			m_nFilePos = nNumberOfRecords;
			break;
		case IResultSetHelper::RELATIVE:
			m_nFilePos = (((sal_Int32)m_nFilePos) + nOffset < 0) ? 0L
							: (sal_uInt32)(((sal_Int32)m_nFilePos) + nOffset);
			break;
		case IResultSetHelper::ABSOLUTE:
		case IResultSetHelper::BOOKMARK:
			m_nFilePos = (sal_uInt32)nOffset;
			break;
	}

	if (m_nFilePos > (sal_Int32)nNumberOfRecords)
		m_nFilePos = (sal_Int32)nNumberOfRecords + 1;

	if (m_nFilePos == 0 || m_nFilePos == (sal_Int32)nNumberOfRecords + 1)
		goto Error;
	else
	{
		sal_uInt16 nEntryLen = m_aHeader.db_slng;

		OSL_ENSURE(m_nFilePos >= 1,"SdbDBFCursor::FileFetchRow: ungueltige Record-Position");
		sal_Int32 nPos = m_aHeader.db_kopf + (sal_Int32)(m_nFilePos-1) * nEntryLen;

		ULONG nLen = m_pFileStream->Seek(nPos);
		if (m_pFileStream->GetError() != ERRCODE_NONE)
			goto Error;

		nLen = m_pFileStream->Read((char*)m_pBuffer, nEntryLen);
		if (m_pFileStream->GetError() != ERRCODE_NONE)
			goto Error;
	}
	goto End;

Error:
	switch(eCursorPosition)
	{
		case IResultSetHelper::PRIOR:
		case IResultSetHelper::FIRST:
			m_nFilePos = 0;
			break;
		case IResultSetHelper::LAST:
		case IResultSetHelper::NEXT:
		case IResultSetHelper::ABSOLUTE:
		case IResultSetHelper::RELATIVE:
			if (nOffset > 0)
				m_nFilePos = nNumberOfRecords + 1;
			else if (nOffset < 0)
				m_nFilePos = 0;
			break;
		case IResultSetHelper::BOOKMARK:
			m_nFilePos = nTempPos;	 // vorherige Position
	}
	//	aStatus.Set(SDB_STAT_NO_DATA_FOUND);
	return sal_False;

End:
	nCurPos = m_nFilePos;
	return sal_True;
}
// -----------------------------------------------------------------------------
BOOL ODbaseTable::ReadMemo(ULONG nBlockNo, ORowSetValue& aVariable)
{
	BOOL bIsText = TRUE;
	//	SdbConnection* pConnection = GetConnection();

	m_pMemoStream->Seek(nBlockNo * m_aMemoHeader.db_size);
	switch (m_aMemoHeader.db_typ)
	{
		case MemodBaseIII: // dBase III-Memofeld, endet mit Ctrl-Z
		{
			const char cEOF = (char) 0x1a;
			ByteString aBStr;
			static char aBuf[514];
			aBuf[512] = 0;			// sonst kann der Zufall uebel mitspielen
			BOOL bReady = sal_False;

			do
			{
				m_pMemoStream->Read(&aBuf,512);

				USHORT i = 0;
				while (aBuf[i] != cEOF && ++i < 512)
					;
				bReady = aBuf[i] == cEOF;

				aBuf[i] = 0;
				aBStr += aBuf;

			} while (!bReady && !m_pMemoStream->IsEof() && aBStr.Len() < STRING_MAXLEN);

			::rtl::OUString aStr(aBStr.GetBuffer(), aBStr.Len(),getConnection()->getTextEncoding());
			aVariable = aStr;

		} break;
		case MemoFoxPro:
		case MemodBaseIV: // dBase IV-Memofeld mit Laengenangabe
		{
			char sHeader[4];
			m_pMemoStream->Read(sHeader,4);
			// Foxpro stores text and binary data
			if (m_aMemoHeader.db_typ == MemoFoxPro)
			{
				if (((BYTE)sHeader[0]) != 0 || ((BYTE)sHeader[1]) != 0 || ((BYTE)sHeader[2]) != 0)
				{
//					String aText = String(SdbResId(STR_STAT_IResultSetHelper::INVALID));
//					aText.SearchAndReplace(String::CreateFromAscii("%%d"),m_pMemoStream->GetFileName());
//					aText.SearchAndReplace(String::CreateFromAscii("%%t"),aStatus.TypeToString(MEMO));
//					aStatus.Set(SDB_STAT_ERROR,
//							String::CreateFromAscii("01000"),
//							aStatus.CreateErrorMessage(aText),
//							0, String() );
					return sal_False;
				}

				bIsText = sHeader[3] != 0;
			}
			else if (((BYTE)sHeader[0]) != 0xFF || ((BYTE)sHeader[1]) != 0xFF || ((BYTE)sHeader[2]) != 0x08)
			{
//				String aText = String(SdbResId(STR_STAT_IResultSetHelper::INVALID));
//				aText.SearchAndReplace(String::CreateFromAscii("%%d"),m_pMemoStream->GetFileName());
//				aText.SearchAndReplace(String::CreateFromAscii("%%t"),aStatus.TypeToString(MEMO));
//				aStatus.Set(SDB_STAT_ERROR,
//						String::CreateFromAscii("01000"),
//						aStatus.CreateErrorMessage(aText),
//						0, String() );
				return sal_False;
			}

			sal_uInt32 nLength(0);
=====================================================================
Found a 130 line (680 tokens) duplication in the following files: 
Starting at line 5874 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par.cxx

            }
            // <--

			pTextObj->SetMergedItemSet(aSet);
            pTextObj->SetModel(pSdrModel);

            if (bVerticalText)
                pTextObj->SetVerticalWriting(sal_True);

            if (nTextRotationAngle)
			{
                long nMinWH = rTextRect.GetWidth() < rTextRect.GetHeight() ?
                    rTextRect.GetWidth() : rTextRect.GetHeight();
                nMinWH /= 2;
                Point aPivot(rTextRect.TopLeft());
                aPivot.X() += nMinWH;
                aPivot.Y() += nMinWH;
				double a = nTextRotationAngle * nPi180;
				pTextObj->NbcRotate(aPivot, nTextRotationAngle, sin(a), cos(a));
			}

			// rotate text with shape ?
			if ( mnFix16Angle )
			{
				double a = mnFix16Angle * nPi180;
				pTextObj->NbcRotate( rObjData.rBoundRect.Center(), mnFix16Angle,
                    sin( a ), cos( a ) );
			}

			if( !pObj )
			{
				pObj = pTextObj;
			}
			else
			{
				if( pTextObj != pObj )
				{
					SdrObject* pGroup = new SdrObjGroup;
					pGroup->GetSubList()->NbcInsertObject( pObj );
					pGroup->GetSubList()->NbcInsertObject( pTextObj );
                    if (pOrgObj == pObj)
                        pOrgObj = pGroup;
                    else
					    pOrgObj = pObj;
                    pObj = pGroup;
				}
			}
		}
		else if( !pObj )
		{
			// simple rectangular objects are ignored by ImportObj()  :-(
			// this is OK for Draw but not for Calc and Writer
			// cause here these objects have a default border
			pObj = new SdrRectObj(rTextRect);
			pOrgObj = pObj;
			pObj->SetModel( pSdrModel );
            SfxItemSet aSet( pSdrModel->GetItemPool() );
            ApplyAttributes( rSt, aSet, rObjData.eShapeType, rObjData.nSpFlags );

			const SfxPoolItem* pPoolItem=NULL;
			SfxItemState eState = aSet.GetItemState( XATTR_FILLCOLOR,
													 FALSE, &pPoolItem );
			if( SFX_ITEM_DEFAULT == eState )
				aSet.Put( XFillColorItem( String(),
						  Color( mnDefaultColor ) ) );
			pObj->SetMergedItemSet(aSet);
		}

        //Means that fBehindDocument is set
        if (GetPropertyValue(DFF_Prop_fPrint) & 0x20)
		    pImpRec->bDrawHell = TRUE;
        else
		    pImpRec->bDrawHell = FALSE;
        if (GetPropertyValue(DFF_Prop_fPrint) & 0x02)
            pImpRec->bHidden = TRUE;
		pTextImpRec->bDrawHell	= pImpRec->bDrawHell;
		pTextImpRec->bHidden = pImpRec->bHidden;
		pImpRec->nNextShapeId	= GetPropertyValue( DFF_Prop_hspNext, 0 );
		pTextImpRec->nNextShapeId=pImpRec->nNextShapeId;

		if ( nTextId )
		{
			pTextImpRec->aTextId.nTxBxS = (UINT16)( nTextId >> 16 );
			pTextImpRec->aTextId.nSequence = (UINT16)nTextId;
		}

		pTextImpRec->nDxWrapDistLeft = GetPropertyValue(
									DFF_Prop_dxWrapDistLeft, 114935L ) / 635L;
		pTextImpRec->nDyWrapDistTop = GetPropertyValue(
									DFF_Prop_dyWrapDistTop, 0 ) / 635L;
		pTextImpRec->nDxWrapDistRight = GetPropertyValue(
									DFF_Prop_dxWrapDistRight, 114935L ) / 635L;
		pTextImpRec->nDyWrapDistBottom = GetPropertyValue(
									DFF_Prop_dyWrapDistBottom, 0 ) / 635L;
        // 16.16 fraction times total image width or height, as appropriate.

        if (SeekToContent(DFF_Prop_pWrapPolygonVertices, rSt))
        {
            delete pTextImpRec->pWrapPolygon;
            sal_uInt16 nNumElemVert, nNumElemMemVert, nElemSizeVert;
            rSt >> nNumElemVert >> nNumElemMemVert >> nElemSizeVert;
            if (nNumElemVert && ((nElemSizeVert == 8) || (nElemSizeVert == 4)))
            {
                pTextImpRec->pWrapPolygon = new Polygon(nNumElemVert);
                for (sal_uInt16 i = 0; i < nNumElemVert; ++i)
                {
                    sal_Int32 nX, nY;
                    if (nElemSizeVert == 8)
                        rSt >> nX >> nY;
                    else
                    {
                        sal_Int16 nSmallX, nSmallY;
                        rSt >> nSmallX >> nSmallY;
                        nX = nSmallX;
                        nY = nSmallY;
                    }
                    (*(pTextImpRec->pWrapPolygon))[i].X() = nX;
                    (*(pTextImpRec->pWrapPolygon))[i].Y() = nY;
                }
            }
        }

		pImpRec->nCropFromTop = GetPropertyValue(
									DFF_Prop_cropFromTop, 0 );
		pImpRec->nCropFromBottom = GetPropertyValue(
									DFF_Prop_cropFromBottom, 0 );
		pImpRec->nCropFromLeft = GetPropertyValue(
									DFF_Prop_cropFromLeft, 0 );
		pImpRec->nCropFromRight = GetPropertyValue(
									DFF_Prop_cropFromRight, 0 );
=====================================================================
Found a 40 line (676 tokens) duplication in the following files: 
Starting at line 5296 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4961 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptWedgeEllipseCalloutGluePoints, sizeof( mso_sptWedgeEllipseCalloutGluePoints ) / sizeof( SvxMSDffVertPair )
};

static const SvxMSDffVertPair mso_sptCloudCalloutVert[] =
{
	{ 1930,7160 },										// p
	{ 1530,4490	}, { 3400,1970 }, { 5270,1970 },		// ccp
	{ 5860,1950	}, { 6470,2210 }, { 6970,2600 },		// ccp
	{ 7450,1390	}, { 8340,650 }, { 9340,650	},			// ccp
	{ 10004,690	}, { 10710,1050	}, { 11210,1700	},		// ccp
	{ 11570,630	}, { 12330,0 }, { 13150,0 },			// ccp
	{ 13840,0 }, { 14470,460 }, { 14870,1160 },			// ccp
	{ 15330,440 }, { 16020,0 }, { 16740,0 },			// ccp
	{ 17910,0 }, { 18900,1130 }, { 19110,2710 },		// ccp
	{ 20240,3150 }, { 21060,4580 }, { 21060,6220 },		// ccp
	{ 21060,6720 }, { 21000,7200 }, { 20830,7660 },		// ccp
	{ 21310,8460 }, { 21600,9450 }, { 21600,10460 },	// ccp
	{ 21600,12750 }, { 20310,14680 }, { 18650,15010	},	// ccp
	{ 18650,17200 }, { 17370,18920 }, { 15770,18920 },	// ccp
	{ 15220,18920 }, { 14700,18710 }, { 14240,18310	},	// ccp
	{ 13820,20240 }, { 12490,21600 }, { 11000,21600 },	// ccp
	{ 9890,21600 }, { 8840,20790 }, { 8210,19510 },		// ccp
	{ 7620,20000 }, { 7930,20290 }, { 6240,20290 },		// ccp
	{ 4850,20290 }, { 3570,19280 }, { 2900,17640 },		// ccp
	{ 1300,17600 }, { 480,16300 }, { 480,14660 },		// ccp
	{ 480,13900	}, { 690,13210 }, { 1070,12640 },		// ccp
	{ 380,12160	}, { 0,11210 }, { 0,10120 },			// ccp
	{ 0,8590 },	{ 840,7330 }, { 1930,7160 },			// ccp

	{ 1930, 7160 }, { 1950, 7410 }, { 2040, 7690 }, { 2090, 7920 },			// pccp
	{ 6970, 2600 }, { 7200, 2790 }, { 7480, 3050 }, { 7670, 3310 },			// pccp
	{ 11210, 1700 }, { 11130, 1910 }, { 11080, 2160 }, { 11030, 2400 },		// pccp
	{ 14870, 1160 }, { 14720, 1400 }, { 14640, 1720 }, { 14540, 2010 },		// pccp
	{ 19110, 2710 }, { 19130, 2890 }, { 19230, 3290 }, { 19190, 3380 },		// pccp
	{ 20830, 7660 }, { 20660, 8170 }, { 20430, 8620 }, { 20110, 8990 },		// pccp
	{ 18660, 15010 }, { 18740, 14200 }, { 18280, 12200 }, { 17000, 11450 },	// pccp
	{ 14240, 18310 }, { 14320, 17980 }, { 14350, 17680 }, { 14370, 17360 },	// pccp
	{ 8220, 19510 }, { 8060, 19250 }, { 7960, 18950 }, { 7860, 18640 },		// pccp
	{ 2900, 17640 }, { 3090, 17600 }, { 3280, 17540 }, { 3460, 17450 },		// pccp
	{ 1070, 12640 }, { 1400, 12900 }, { 1780, 13130 }, { 2330, 13040 }		// pccp
=====================================================================
Found a 77 line (676 tokens) duplication in the following files: 
Starting at line 2724 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3146 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

				fSQR += -pQ->GetDouble(i, M+1)*pE->GetDouble(i);
			fSQE = fSQT-fSQR;
			if (fSQT == 0.0)
				pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 0, 2);
			else
				pResMat->PutDouble (fSQE/fSQT, 0, 2);
			pResMat->PutDouble(fSQE, 0, 4);
			pResMat->PutDouble(fSQR, 1, 4);
			for (i = 2; i < 5; i++)
				for (j = 2; j < M+1; j++)
					pResMat->PutString(ScGlobal::GetRscString(STR_NV_STR), j, i);
			if (bConstant)
			{
				if (N-M-1 == 0)
				{
					pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 1, 2);
					for (i = 0; i < M+1; i++)
						pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i, 1);
				}
				else
				{
					double fSE2 = fSQR/(N-M-1);
					pResMat->PutDouble(sqrt(fSE2), 1, 2);
					if ( RGetVariances( pV, pMatX, M+1, N, nCase != 2, FALSE ) )
					{
						for (i = 0; i < M+1; i++)
							pResMat->PutDouble( sqrt(fSE2 * pV->GetDouble(i)), M-i, 1 );
					}
					else
					{
						for (i = 0; i < M+1; i++)
							pResMat->PutString(ScGlobal::GetRscString(STR_NV_STR), i, 1);
					}
				}
				if (fSQR == 0.0)
					pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 0, 3);
				else
					pResMat->PutDouble(((double)(N-M-1))*fSQE/fSQR/((double)M),0, 3);
				pResMat->PutDouble(((double)(N-M-1)), 1, 3);
			}
			else
			{
				if (N-M == 0)
				{
					pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 1, 2);
					for (i = 0; i < M+1; i++)
						pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i, 1);
				}
				else
				{
					double fSE2 = fSQR/(N-M);
					pResMat->PutDouble(sqrt(fSE2), 1, 2);
					if ( RGetVariances( pV, pMatX, M, N, nCase != 2, TRUE ) )
					{
						for (i = 0; i < M; i++)
							pResMat->PutDouble( sqrt(fSE2 * pV->GetDouble(i)), M-i-1, 1 );
						pResMat->PutString(ScGlobal::GetRscString(STR_NV_STR), M, 1);
					}
					else
					{
						for (i = 0; i < M+1; i++)
							pResMat->PutString(ScGlobal::GetRscString(STR_NV_STR), i, 1);
					}
				}
				if (fSQR == 0.0)
					pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 0, 3);
				else
					pResMat->PutDouble(((double)(N-M))*fSQE/fSQR/((double)M),0, 3);
				pResMat->PutDouble(((double)(N-M)), 1, 3);
			}
		}
	}
	PushMatrix(pResMat);
}


void ScInterpreter::ScTrend()
=====================================================================
Found a 13 line (673 tokens) duplication in the following files: 
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 575 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

/* N */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* O */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* P */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* Q */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* R */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* S */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* T */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* U */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* V */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* W */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* X */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* Y */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* Z */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
=====================================================================
Found a 108 line (672 tokens) duplication in the following files: 
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_color_rgba.h
Starting at line 481 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_color_rgba.h

            a(value_type((             a_ << 8) | c.a)) {}

        //--------------------------------------------------------------------
        void clear()
        {
            r = g = b = a = 0;
        }
        
        //--------------------------------------------------------------------
        const self_type& transparent()
        {
            a = 0;
            return *this;
        }

        //--------------------------------------------------------------------
        const self_type& opacity(double a_)
        {
            if(a_ < 0.0) a_ = 0.0;
            if(a_ > 1.0) a_ = 1.0;
            a = value_type(a_ * double(base_mask) + 0.5);
            return *this;
        }

        //--------------------------------------------------------------------
        double opacity() const
        {
            return double(a) / double(base_mask);
        }

        //--------------------------------------------------------------------
        const self_type& premultiply()
        {
            if(a == base_mask) return *this;
            if(a == 0)
            {
                r = g = b = 0;
                return *this;
            }
            r = value_type((calc_type(r) * a) >> base_shift);
            g = value_type((calc_type(g) * a) >> base_shift);
            b = value_type((calc_type(b) * a) >> base_shift);
            return *this;
        }

        //--------------------------------------------------------------------
        const self_type& premultiply(unsigned a_)
        {
            if(a == base_mask && a_ >= base_mask) return *this;
            if(a == 0 || a_ == 0)
            {
                r = g = b = a = 0;
                return *this;
            }
            calc_type r_ = (calc_type(r) * a_) / a;
            calc_type g_ = (calc_type(g) * a_) / a;
            calc_type b_ = (calc_type(b) * a_) / a;
            r = value_type((r_ > a_) ? a_ : r_);
            g = value_type((g_ > a_) ? a_ : g_);
            b = value_type((b_ > a_) ? a_ : b_);
            a = value_type(a_);
            return *this;
        }

        //--------------------------------------------------------------------
        const self_type& demultiply()
        {
            if(a == base_mask) return *this;
            if(a == 0)
            {
                r = g = b = 0;
                return *this;
            }
            calc_type r_ = (calc_type(r) * base_mask) / a;
            calc_type g_ = (calc_type(g) * base_mask) / a;
            calc_type b_ = (calc_type(b) * base_mask) / a;
            r = value_type((r_ > base_mask) ? base_mask : r_);
            g = value_type((g_ > base_mask) ? base_mask : g_);
            b = value_type((b_ > base_mask) ? base_mask : b_);
            return *this;
        }

        //--------------------------------------------------------------------
        self_type gradient(const self_type& c, double k) const
        {
            self_type ret;
            calc_type ik = calc_type(k * base_size);
            ret.r = value_type(calc_type(r) + (((calc_type(c.r) - r) * ik) >> base_shift));
            ret.g = value_type(calc_type(g) + (((calc_type(c.g) - g) * ik) >> base_shift));
            ret.b = value_type(calc_type(b) + (((calc_type(c.b) - b) * ik) >> base_shift));
            ret.a = value_type(calc_type(a) + (((calc_type(c.a) - a) * ik) >> base_shift));
            return ret;
        }

        //--------------------------------------------------------------------
        static self_type no_color() { return self_type(0,0,0,0); }

        //--------------------------------------------------------------------
        static self_type from_wavelength(double wl, double gamma = 1.0)
        {
            return self_type(rgba::from_wavelength(wl, gamma));
        }
    };



    //--------------------------------------------------------------rgba16_pre
    inline rgba16 rgba16_pre(unsigned r, unsigned g, unsigned b, 
=====================================================================
Found a 28 line (671 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_OWIDTH),	SC_WID_UNO_OWIDTH,	&getBooleanCppuType(),					0, 0 },
        {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PADJUST),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PBMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_LO_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PINDENT),	ATTR_INDENT,		&getCppuType((sal_Int16*)0),			0, 0 }, //! CONVERT_TWIPS
		{MAP_CHAR_LEN(SC_UNONAME_PISCHDIST),ATTR_SCRIPTSPACE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISFORBID),ATTR_FORBIDDEN_RULES,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHANG),	ATTR_HANGPUNCTUATION,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHYPHEN),ATTR_HYPHENATE,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PLASTADJ),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
        {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIXML),	SC_WID_UNO_VALIXML,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLVJUS),	ATTR_VER_JUSTIFY,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLWID),	SC_WID_UNO_CELLWID,	&getCppuType((sal_Int32*)0),			0, 0 },
=====================================================================
Found a 124 line (671 tokens) duplication in the following files: 
Starting at line 513 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DNoException.cxx
Starting at line 952 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/dindexnode.cxx

		rStream.Write((BYTE*)pEmptyData,nRemainSize);
		rStream.Seek(nTell);
		delete [] pEmptyData;
	}
	return rStream;
}
// -----------------------------------------------------------------------------
#if OSL_DEBUG_LEVEL > 1
//------------------------------------------------------------------
void ONDXPage::PrintPage()
{
	DBG_TRACE4("\nSDB: -----------Page: %d  Parent: %d  Count: %d  Child: %d-----",
		nPagePos, HasParent() ? aParent->GetPagePos() : 0 ,nCount, aChild.GetPagePos());

	for (USHORT i = 0; i < nCount; i++)
	{
		ONDXNode rNode = (*this)[i];
		ONDXKey&  rKey = rNode.GetKey();
		if (!IsLeaf())
			rNode.GetChild(&rIndex, this);

		if (rKey.getValue().isNull())
		{
			DBG_TRACE2("SDB: [%d,NULL,%d]",rKey.GetRecord(), rNode.GetChild().GetPagePos());
		}
		else if (rIndex.getHeader().db_keytype)
		{
			DBG_TRACE3("SDB: [%d,%f,%d]",rKey.GetRecord(), rKey.getValue().getDouble(),rNode.GetChild().GetPagePos());
		}
		else
		{
			DBG_TRACE3("SDB: [%d,%s,%d]",rKey.GetRecord(), (const char* )ByteString(rKey.getValue().getString().getStr(), rIndex.m_pTable->getConnection()->getTextEncoding()).GetBuffer(),rNode.GetChild().GetPagePos());
		}
	}
	DBG_TRACE("SDB: -----------------------------------------------\n");
	if (!IsLeaf())
	{
#if OSL_DEBUG_LEVEL > 1
		GetChild(&rIndex)->PrintPage();
		for (USHORT i = 0; i < nCount; i++)
		{
			ONDXNode rNode = (*this)[i];
			rNode.GetChild(&rIndex,this)->PrintPage();
		}
#endif
	}
	DBG_TRACE("SDB: ===============================================\n");
}
#endif
// -----------------------------------------------------------------------------
BOOL ONDXPage::IsFull() const
{
	return Count() == rIndex.getHeader().db_maxkeys;
}
// -----------------------------------------------------------------------------
//------------------------------------------------------------------
USHORT ONDXPage::Search(const ONDXKey& rSearch)
{
	// binare Suche spaeter
	USHORT i = 0xFFFF;
	while (++i < Count())
		if ((*this)[i].GetKey() == rSearch)
			break;

	return (i < Count()) ? i : NODE_NOTFOUND;
}

//------------------------------------------------------------------
USHORT ONDXPage::Search(const ONDXPage* pPage)
{
	USHORT i = 0xFFFF;
	while (++i < Count())
		if (((*this)[i]).GetChild() == pPage)
			break;

	// wenn nicht gefunden, dann wird davon ausgegangen, dass die Seite selbst
	// auf die Page zeigt
	return (i < Count()) ? i : NODE_NOTFOUND;
}
// -----------------------------------------------------------------------------
// laeuft rekursiv
void ONDXPage::SearchAndReplace(const ONDXKey& rSearch,
								  ONDXKey& rReplace)
{
	OSL_ENSURE(rSearch != rReplace,"Invalid here:rSearch == rReplace");
	if (rSearch != rReplace)
	{
		USHORT nPos = NODE_NOTFOUND;
		ONDXPage* pPage = this;

		while (pPage && (nPos = pPage->Search(rSearch)) == NODE_NOTFOUND)
			pPage = pPage->aParent;

		if (pPage)
		{
			(*pPage)[nPos].GetKey() = rReplace;
			pPage->SetModified(TRUE);
		}
	}
}
// -----------------------------------------------------------------------------
ONDXNode& ONDXPage::operator[] (USHORT nPos)
{
	DBG_ASSERT(nCount > nPos, "falscher Indexzugriff");
	return ppNodes[nPos];
}

//------------------------------------------------------------------
const ONDXNode& ONDXPage::operator[] (USHORT nPos) const
{
	DBG_ASSERT(nCount > nPos, "falscher Indexzugriff");
	return ppNodes[nPos];
}
// -----------------------------------------------------------------------------
void ONDXPage::Remove(USHORT nPos)
{
	DBG_ASSERT(nCount > nPos, "falscher Indexzugriff");

	for (USHORT i = nPos; i < (nCount-1); i++)
		(*this)[i] = (*this)[i+1];

	nCount--;
	bModified = TRUE;
}
=====================================================================
Found a 186 line (665 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/solaris/getcwd.c
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/pwd/getcwd.c
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/xenix/pwd/getcwd.c

typedef char	*pointer;		/* (void *) if you have it */

extern void	free();
extern pointer	malloc();
extern int	fstat(), stat();

extern int	errno;			/* normally done by <errno.h> */

#ifndef NULL
#define	NULL	0			/* amorphous null pointer constant */
#endif

#ifndef NAME_MAX
#define	NAME_MAX	255		/* maximum directory entry size */
#endif


char	*
getcwd( buf, size )			/* returns pointer to CWD pathname */
	char		*buf;		/* where to put name (NULL to malloc) */
	int		size;		/* size of buf[] or malloc()ed memory */
	{
	static char	dotdots[] =
"../../../../../../../../../../../../../../../../../../../../../../../../../..";
	char		*dotdot;	/* -> dotdots[.], right to left */
	DIR		*dirp;		/* -> parent directory stream */
	struct dirent	*dir;		/* -> directory entry */
	struct stat	stat1,
			stat2;		/* info from stat() */
	struct stat	*d = &stat1;	/* -> info about "." */
	struct stat	*dd = &stat2;	/* -> info about ".." */
	register char	*buffer;	/* local copy of buf, or malloc()ed */
	char		*bufend;	/* -> buffer[size] */
	register char	*endp;		/* -> end of reversed string */
	register char	*dname;		/* entry name ("" for root) */
	int		serrno = errno;	/* save entry errno */

	if ( buf != NULL && size <= 0
#ifndef XPG2
	  || buf == NULL
#endif
	   )	{
		errno = EINVAL;		/* invalid argument */
		return NULL;
		}

	buffer = buf;
#ifdef XPG2
	if ( buf == NULL		/* wants us to malloc() the string */
	  && (buffer = (char *) malloc( (unsigned) size )) == NULL
	/* XXX -- actually should probably not pay attention to "size" arg */
	   )	{
		errno = ENOMEM;		/* cannot malloc() specified size */
		return NULL;
		}
#endif

	if ( stat( ".", dd ) != 0 )	/* prime the pump */
		goto error;		/* errno already set */

	endp = buffer;			/* initially, empty string */
	bufend = &buffer[size];

	for ( dotdot = &dotdots[sizeof dotdots]; dotdot != dotdots; )
		{
		dotdot -= 3;		/* include one more "/.." section */
					/* (first time is actually "..") */

		/* swap stat() info buffers */
		{
		register struct stat	*temp = d;

		d = dd;			/* new current dir is old parent dir */
		dd = temp;
		}

		if ( (dirp = opendir( dotdot )) == NULL )	/* new parent */
			goto error;	/* errno already set */

		if ( fstat( dirp->dd_fd, dd ) != 0 )
			{
			serrno = errno;	/* set by fstat() */
			(void)closedir( dirp );
			errno = serrno;	/* in case closedir() clobbered it */
			goto error;
			}

		if ( d->st_dev == dd->st_dev )
			{		/* not crossing a mount point */
			if ( d->st_ino == dd->st_ino )
				{	/* root directory */
				dname = "";
				goto append;
				}

			do
				if ( (dir = readdir( dirp )) == NULL )
					{
					(void)closedir( dirp );
					errno = ENOENT;	/* missing entry */
					goto error;
					}
			while ( dir->d_ino != d->st_ino );
			}
		else	{		/* crossing a mount point */
			struct stat	t;	/* info re. test entry */
			char		name[sizeof dotdots + 1 + NAME_MAX];

			(void)strcpy( name, dotdot );
			dname = &name[strlen( name )];
			*dname++ = '/';

			do	{
				if ( (dir = readdir( dirp )) == NULL )
					{
					(void)closedir( dirp );
					errno = ENOENT;	/* missing entry */
					goto error;
					}

				(void)strcpy( dname, dir->d_name );
				/* must fit if NAME_MAX is not a lie */
				}
			while ( stat( name, &t ) != 0
			     || t.st_ino != d->st_ino
			     || t.st_dev != d->st_dev
			      );
			}

		dname = dir->d_name;

		/* append "/" and reversed dname string onto buffer */
    append:
		if ( endp != buffer	/* avoid trailing / in final name */
		  || dname[0] == '\0'	/* but allow "/" when CWD is root */
		   )
			*endp++ = '/';

		{
		register char	*app;	/* traverses dname string */

		for ( app = dname; *app != '\0'; ++app )
			;

		if ( app - dname >= bufend - endp )
			{
			(void)closedir( dirp );
			errno = ERANGE;	/* won't fit allotted space */
			goto error;
			}

		while ( app != dname )
			*endp++ = *--app;
		}

		(void)closedir( dirp );

		if ( dname[0] == '\0' )	/* reached root; wrap it up */
			{
			register char	*startp;	/* -> buffer[.] */

			*endp = '\0';	/* plant null terminator */

			/* straighten out reversed pathname string */
			for ( startp = buffer; --endp > startp; ++startp )
				{
				char	temp = *endp;

				*endp = *startp;
				*startp = temp;
				}

			errno = serrno;	/* restore entry errno */
			/* XXX -- if buf==NULL, realloc here? */
			return buffer;
			}
		}

	errno = ENOMEM;			/* actually, algorithm failure */

    error:
	if ( buf == NULL )
		free( (pointer)buffer );

	return NULL;
	}
=====================================================================
Found a 86 line (662 tokens) duplication in the following files: 
Starting at line 3282 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3541 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xad, 0xbd }, /* g'' */
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x01, 0xa3, 0xb3 },
{ 0x00, 0xb4, 0xb4 }, /* IE */
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 }, /* I */
{ 0x00, 0xb7, 0xb7 }, /* II */
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x00, 0xc0, 0xe0 },
{ 0x00, 0xc1, 0xe1 },
{ 0x00, 0xc2, 0xe2 },
{ 0x00, 0xc3, 0xe3 },
{ 0x00, 0xc4, 0xe4 },
{ 0x00, 0xc5, 0xe5 },
{ 0x00, 0xc6, 0xe6 },
{ 0x00, 0xc7, 0xe7 },
{ 0x00, 0xc8, 0xe8 },
{ 0x00, 0xc9, 0xe9 },
{ 0x00, 0xca, 0xea },
{ 0x00, 0xcb, 0xeb },
{ 0x00, 0xcc, 0xec },
{ 0x00, 0xcd, 0xed },
{ 0x00, 0xce, 0xee },
{ 0x00, 0xcf, 0xef },
{ 0x00, 0xd0, 0xf0 },
{ 0x00, 0xd1, 0xf1 },
{ 0x00, 0xd2, 0xf2 },
{ 0x00, 0xd3, 0xf3 },
{ 0x00, 0xd4, 0xf4 },
{ 0x00, 0xd5, 0xf5 },
{ 0x00, 0xd6, 0xf6 },
{ 0x00, 0xd7, 0xf7 },
{ 0x00, 0xd8, 0xf8 },
{ 0x00, 0xd9, 0xf9 },
{ 0x00, 0xda, 0xfa },
{ 0x00, 0xdb, 0xfb },
{ 0x00, 0xdc, 0xfc },
{ 0x00, 0xdd, 0xfd },
{ 0x00, 0xde, 0xfe },
{ 0x00, 0xdf, 0xff },
{ 0x01, 0xc0, 0xe0 },
{ 0x01, 0xc1, 0xe1 },
{ 0x01, 0xc2, 0xe2 },
{ 0x01, 0xc3, 0xe3 },
{ 0x01, 0xc4, 0xe4 },
{ 0x01, 0xc5, 0xe5 },
{ 0x01, 0xc6, 0xe6 },
{ 0x01, 0xc7, 0xe7 },
{ 0x01, 0xc8, 0xe8 },
{ 0x01, 0xc9, 0xe9 },
{ 0x01, 0xca, 0xea },
{ 0x01, 0xcb, 0xeb },
{ 0x01, 0xcc, 0xec },
{ 0x01, 0xcd, 0xed },
{ 0x01, 0xce, 0xee },
{ 0x01, 0xcf, 0xef },
{ 0x01, 0xd0, 0xf0 },
{ 0x01, 0xd1, 0xf1 },
{ 0x01, 0xd2, 0xf2 },
{ 0x01, 0xd3, 0xf3 },
{ 0x01, 0xd4, 0xf4 },
{ 0x01, 0xd5, 0xf5 },
{ 0x01, 0xd6, 0xf6 },
{ 0x01, 0xd7, 0xf7 },
{ 0x01, 0xd8, 0xf8 },
{ 0x01, 0xd9, 0xf9 },
{ 0x01, 0xda, 0xfa },
{ 0x01, 0xdb, 0xfb },
{ 0x01, 0xdc, 0xfc },
{ 0x01, 0xdd, 0xfd },
{ 0x01, 0xde, 0xfe },
{ 0x01, 0xdf, 0xff },
};

struct cs_info cp1251_tbl[] = {
=====================================================================
Found a 57 line (661 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/gnu/public.h

int Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
=====================================================================
Found a 144 line (656 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx

namespace rtl
{
	inline OString& operator+=( OString& rString, sal_Char cAdd )
	{
		sal_Char add[2];
		add[0] = cAdd;
		add[1] = 0;
		return rString += add;
	}
}

using namespace std;
using namespace osl;
using namespace rtl;
using namespace com::sun::star::uno;

namespace CPPU_CURRENT_NAMESPACE
{

//==================================================================================================
static OString toUNOname( const OString & rRTTIname )
{
	OString aRet;

	const sal_Char* pRTTI = rRTTIname.getStr();
	const sal_Char* pOrg  = pRTTI;
	const sal_Char* pLast = pRTTI;

	while( 1 )
	{
		if( *pRTTI == ':' || ! *pRTTI )
		{
			if( aRet.getLength() )
				aRet += ".";
			aRet += rRTTIname.copy( pLast - pOrg, pRTTI - pLast );
			while( *pRTTI == ':' )
				pRTTI++;
			pLast = pRTTI;
			if( ! *pRTTI )
				break;
		}
		else
			pRTTI++;
	}

	return aRet;
}
//==================================================================================================
static OString toRTTIname( const OString & rUNOname )
{
	OStringBuffer aRet( rUNOname.getLength()*2 );

    sal_Int32 nIndex = 0;
    do
    {
        if( nIndex > 0 )
            aRet.append( "::" );
        aRet.append( rUNOname.getToken( 0, '.', nIndex ) );
    } while( nIndex != -1 );

	return aRet.makeStringAndClear();
}
//==================================================================================================

static OString toRTTImangledname( const OString & rRTTIname )
{
	if( ! rRTTIname.getLength() )
		return OString();

	OStringBuffer aRet( rRTTIname.getLength()*2 );

    aRet.append( "__1n" );
    sal_Int32 nIndex = 0;
    do
    {
        OString aToken( rRTTIname.getToken( 0, ':', nIndex ) );
        int nBytes = aToken.getLength();
        if( nBytes )
        {
            if( nBytes  > 25 )
            {
                aRet.append( (sal_Char)( nBytes/26 + 'a' ) );
                aRet.append( (sal_Char)( nBytes%26 + 'A' ) );
            }
            else
                aRet.append( (sal_Char)( nBytes + 'A' ) );
            aRet.append( aToken );
        }
    } while( nIndex != -1 );

	aRet.append( '_' );

	return aRet.makeStringAndClear();
}


//##################################################################################################
//#### RTTI simulation #############################################################################
//##################################################################################################

class RTTIHolder
{
	std::map< OString, void* > aAllRTTI;
public:
	~RTTIHolder();

	void* getRTTI( const OString& rTypename );
	void* getRTTI_UnoName( const OString& rUnoTypename )
		{ return getRTTI( toRTTIname( rUnoTypename ) ); }

	void* insertRTTI( const OString& rTypename );
	void* insertRTTI_UnoName( const OString& rTypename )
		{ return insertRTTI( toRTTIname( rTypename ) ); }
	void* generateRTTI( typelib_CompoundTypeDescription* pCompTypeDescr );
};

RTTIHolder::~RTTIHolder()
{
	for ( std::map< OString, void* >::const_iterator iPos( aAllRTTI.begin() );
		  iPos != aAllRTTI.end(); ++iPos )
	{
        delete[] static_cast< char * >(iPos->second);
	}
}

#if OSL_DEBUG_LEVEL > 1
#include <stdio.h>
#endif

void* RTTIHolder::getRTTI( const OString& rTypename )
{
	std::map< OString, void* >::iterator element;

	element = aAllRTTI.find( rTypename );
	if( element != aAllRTTI.end() )
		return (*element).second;

	// create rtti structure
	element = aAllRTTI.find( rTypename );
	if( element != aAllRTTI.end() )
		return (*element).second;

	return NULL;
}
=====================================================================
Found a 70 line (655 tokens) duplication in the following files: 
Starting at line 2530 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 2961 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

			pResMat->PutDouble(exp(b), 1, 0);
			if (bStats)
			{
				double fY = fCount*fSumSqrY-fSumY*fSumY;
				double fSyx = fSumSqrY-b*fSumY-m*fSumXY;
				double fR2 = f1*f1/(fX*fY);
				pResMat->PutDouble (fR2, 0, 2);
				if (fCount < 3.0)
				{
					pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 0, 1 );
					pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 1, 1 );
					pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 1, 2 );
					pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 0, 3 );
				}
				else
				{
					pResMat->PutDouble(sqrt(fSyx*fCount/(fX*(fCount-2.0))), 0, 1);
					pResMat->PutDouble(sqrt(fSyx*fSumSqrX/fX/(fCount-2.0)), 1, 1);
					pResMat->PutDouble(
						sqrt((fCount*fSumSqrY - fSumY*fSumY - f1*f1/fX)/
							 (fCount*(fCount-2.0))), 1, 2);
					if (fR2 == 1.0)
						pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), 0, 3 );
					else
						pResMat->PutDouble(fR2*(fCount-2.0)/(1.0-fR2), 0, 3);
				}
				pResMat->PutDouble(((double)(nCY*nRY))-2.0, 1, 3);
				pResMat->PutDouble(fY/fCount-fSyx, 0, 4);
				pResMat->PutDouble(fSyx, 1, 4);
			}
		}
	}
	else
	{
		SCSIZE i, j, k;
		if (!bStats)
			pResMat = GetNewMat(M+1,1);
		else
			pResMat = GetNewMat(M+1,5);
		if (!pResMat)
		{
			PushError();
			return;
		}
		ScMatrixRef pQ = GetNewMat(M+1, M+2);
		ScMatrixRef pE = GetNewMat(M+2, 1);
		ScMatrixRef pV = GetNewMat(M+1, 1);
		pE->PutDouble(0.0, M+1);
		pQ->FillDouble(0.0, 0, 0, M, M+1);
		if (nCase == 2)
		{
			for (k = 0; k < N; k++)
			{
				double Yk = pMatY->GetDouble(k);
				pE->PutDouble( pE->GetDouble(M+1)+Yk*Yk, M+1 );
				double sumYk = pQ->GetDouble(0, M+1) + Yk;
				pQ->PutDouble( sumYk, 0, M+1 );
				pE->PutDouble( sumYk, 0 );
				for (i = 0; i < M; i++)
				{
					double Xik = pMatX->GetDouble(i,k);
					double sumXik = pQ->GetDouble(0, i+1) + Xik;
					pQ->PutDouble( sumXik, 0, i+1);
					pQ->PutDouble( sumXik, i+1, 0);
					double sumXikYk = pQ->GetDouble(i+1, M+1) + Xik * Yk;
					pQ->PutDouble( sumXikYk, i+1, M+1);
					pE->PutDouble( sumXikYk, i+1);
					for (j = i; j < M; j++)
					{
						double sumXikXjk = pQ->GetDouble(j+1, i+1) +
=====================================================================
Found a 214 line (653 tokens) duplication in the following files: 
Starting at line 344 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BDriver.cxx
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ORealDriver.cxx

			pFunction = (oslGenericFunction)pODBC3SQLAllocHandle;
			break;
		case ODBC3SQLConnect:
			pFunction = (oslGenericFunction)pODBC3SQLConnect;
			break;
		case ODBC3SQLDriverConnect:
			pFunction = (oslGenericFunction)pODBC3SQLDriverConnect;
			break;
		case ODBC3SQLBrowseConnect:
			pFunction = (oslGenericFunction)pODBC3SQLBrowseConnect;
			break;
		case ODBC3SQLDataSources:
			pFunction = (oslGenericFunction)pODBC3SQLDataSources;
			break;
		case ODBC3SQLDrivers:
			pFunction = (oslGenericFunction)pODBC3SQLDrivers;
			break;
		case ODBC3SQLGetInfo:

			pFunction = (oslGenericFunction)pODBC3SQLGetInfo;
			break;
		case ODBC3SQLGetFunctions:

			pFunction = (oslGenericFunction)pODBC3SQLGetFunctions;
			break;
		case ODBC3SQLGetTypeInfo:

			pFunction = (oslGenericFunction)pODBC3SQLGetTypeInfo;
			break;
		case ODBC3SQLSetConnectAttr:

			pFunction = (oslGenericFunction)pODBC3SQLSetConnectAttr;
			break;
		case ODBC3SQLGetConnectAttr:

			pFunction = (oslGenericFunction)pODBC3SQLGetConnectAttr;
			break;
		case ODBC3SQLSetEnvAttr:

			pFunction = (oslGenericFunction)pODBC3SQLSetEnvAttr;
			break;
		case ODBC3SQLGetEnvAttr:

			pFunction = (oslGenericFunction)pODBC3SQLGetEnvAttr;
			break;
		case ODBC3SQLSetStmtAttr:

			pFunction = (oslGenericFunction)pODBC3SQLSetStmtAttr;
			break;
		case ODBC3SQLGetStmtAttr:

			pFunction = (oslGenericFunction)pODBC3SQLGetStmtAttr;
			break;
		case ODBC3SQLPrepare:

			pFunction = (oslGenericFunction)pODBC3SQLPrepare;
			break;
		case ODBC3SQLBindParameter:

			pFunction = (oslGenericFunction)pODBC3SQLBindParameter;
			break;
		case ODBC3SQLSetCursorName:

			pFunction = (oslGenericFunction)pODBC3SQLSetCursorName;
			break;
		case ODBC3SQLExecute:

			pFunction = (oslGenericFunction)pODBC3SQLExecute;
			break;
		case ODBC3SQLExecDirect:

			pFunction = (oslGenericFunction)pODBC3SQLExecDirect;
			break;
		case ODBC3SQLDescribeParam:

			pFunction = (oslGenericFunction)pODBC3SQLDescribeParam;
			break;
		case ODBC3SQLNumParams:

			pFunction = (oslGenericFunction)pODBC3SQLNumParams;
			break;
		case ODBC3SQLParamData:

			pFunction = (oslGenericFunction)pODBC3SQLParamData;
			break;
		case ODBC3SQLPutData:

			pFunction = (oslGenericFunction)pODBC3SQLPutData;
			break;
		case ODBC3SQLRowCount:

			pFunction = (oslGenericFunction)pODBC3SQLRowCount;
			break;
		case ODBC3SQLNumResultCols:

			pFunction = (oslGenericFunction)pODBC3SQLNumResultCols;
			break;
		case ODBC3SQLDescribeCol:

			pFunction = (oslGenericFunction)pODBC3SQLDescribeCol;
			break;
		case ODBC3SQLColAttribute:

			pFunction = (oslGenericFunction)pODBC3SQLColAttribute;
			break;
		case ODBC3SQLBindCol:

			pFunction = (oslGenericFunction)pODBC3SQLBindCol;
			break;
		case ODBC3SQLFetch:

			pFunction = (oslGenericFunction)pODBC3SQLFetch;
			break;
		case ODBC3SQLFetchScroll:

			pFunction = (oslGenericFunction)pODBC3SQLFetchScroll;
			break;
		case ODBC3SQLGetData:

			pFunction = (oslGenericFunction)pODBC3SQLGetData;
			break;
		case ODBC3SQLSetPos:

			pFunction = (oslGenericFunction)pODBC3SQLSetPos;
			break;
		case ODBC3SQLBulkOperations:

			pFunction = (oslGenericFunction)pODBC3SQLBulkOperations;
			break;
		case ODBC3SQLMoreResults:

			pFunction = (oslGenericFunction)pODBC3SQLMoreResults;
			break;
		case ODBC3SQLGetDiagRec:

			pFunction = (oslGenericFunction)pODBC3SQLGetDiagRec;
			break;
		case ODBC3SQLColumnPrivileges:

			pFunction = (oslGenericFunction)pODBC3SQLColumnPrivileges;
			break;
		case ODBC3SQLColumns:

			pFunction = (oslGenericFunction)pODBC3SQLColumns;
			break;
		case ODBC3SQLForeignKeys:

			pFunction = (oslGenericFunction)pODBC3SQLForeignKeys;
			break;
		case ODBC3SQLPrimaryKeys:

			pFunction = (oslGenericFunction)pODBC3SQLPrimaryKeys;
			break;
		case ODBC3SQLProcedureColumns:

			pFunction = (oslGenericFunction)pODBC3SQLProcedureColumns;
			break;
		case ODBC3SQLProcedures:

			pFunction = (oslGenericFunction)pODBC3SQLProcedures;
			break;
		case ODBC3SQLSpecialColumns:

			pFunction = (oslGenericFunction)pODBC3SQLSpecialColumns;
			break;
		case ODBC3SQLStatistics:

			pFunction = (oslGenericFunction)pODBC3SQLStatistics;
			break;
		case ODBC3SQLTablePrivileges:

			pFunction = (oslGenericFunction)pODBC3SQLTablePrivileges;
			break;
		case ODBC3SQLTables:

			pFunction = (oslGenericFunction)pODBC3SQLTables;
			break;
		case ODBC3SQLFreeStmt:

			pFunction = (oslGenericFunction)pODBC3SQLFreeStmt;
			break;
		case ODBC3SQLCloseCursor:

			pFunction = (oslGenericFunction)pODBC3SQLCloseCursor;
			break;
		case ODBC3SQLCancel:

			pFunction = (oslGenericFunction)pODBC3SQLCancel;
			break;
		case ODBC3SQLEndTran:

			pFunction = (oslGenericFunction)pODBC3SQLEndTran;
			break;
		case ODBC3SQLDisconnect:

			pFunction = (oslGenericFunction)pODBC3SQLDisconnect;
			break;
		case ODBC3SQLFreeHandle:

			pFunction = (oslGenericFunction)pODBC3SQLFreeHandle;
			break;
		case ODBC3SQLGetCursorName:

			pFunction = (oslGenericFunction)pODBC3SQLGetCursorName;
			break;
		case ODBC3SQLNativeSql:

			pFunction = (oslGenericFunction)pODBC3SQLNativeSql;
			break;
		default:
			OSL_ENSURE(0,"Function unknown!");
	}
	return pFunction;
}
=====================================================================
Found a 166 line (652 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_String_Utils.cxx
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_String_Utils.cxx

    return( i == len );
}
//------------------------------------------------------------------------
sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len )
{
    const sal_Unicode* pBuf1 = str1;
    const sal_Unicode* pBuf2 = str2;
    sal_uInt32 i = 0;

    while ( (*pBuf1 == *pBuf2) && i < len )
    {
        (pBuf1)++;
        (pBuf2)++;
        i++;
    }
    return( i == len );
}

//-----------------------------------------------------------------------
sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2 )
{
    const sal_Unicode* pBuf1 = str1;
    const sal_Unicode* pBuf2 = str2;
    sal_Bool res = sal_True;
   
    while ( (*pBuf1 == *pBuf2) && *pBuf1 !='\0' && *pBuf2 != '\0')
    {
        (pBuf1)++;
        (pBuf2)++;
    }
    if (*pBuf1 == '\0' && *pBuf2 == '\0')
        res = sal_True;
    else
        res = sal_False;
    return (res);
}

sal_Char* createName( sal_Char* dst, const sal_Char* meth, sal_uInt32 cnt )
{
    sal_Char* pdst = dst;
    sal_Char nstr[16];
    sal_Char* pstr = nstr;
    rtl_str_valueOfInt32( pstr, cnt, 10 );

    cpystr( pdst, meth );
    cpystr( pdst+ AStringLen(meth), "_" );

    if ( cnt < 100 )
    {
        cpystr(pdst + AStringLen(pdst), "0" );
    }
    if ( cnt < 10 )
    {
        cpystr(pdst + AStringLen(pdst), "0" );
    }

    cpystr( pdst + AStringLen(pdst), nstr );
    return( pdst );
}

//------------------------------------------------------------------------
//  testing the method compareTo( const OString & aStr )
//------------------------------------------------------------------------
void makeComment( char *com, const char *str1, const char *str2,
                                                            sal_Int32 sgn )
{
    cpystr(com, str1);
    int str1Length = AStringLen( str1 );
    const char *sign = (sgn == 0) ? " == " : (sgn > 0) ? " > " : " < " ;
    cpystr(com + str1Length, sign);
    int signLength = AStringLen(sign);
    cpystr(com + str1Length + signLength, str2);
    com[str1Length + signLength + AStringLen(str2)] = 0;
}


//------------------------------------------------------------------------

sal_Bool AStringToFloatCompare ( const sal_Char  *pStr,
                                 const float      nX,
                                 const float      nEPS
                                )
{
	sal_Bool cmp = sal_False;

	if ( pStr != NULL )
	{
		::rtl::OString aStr(pStr);

		float actNum = 0;
		float expNum = nX;
		float eps    = nEPS;

		actNum = aStr.toFloat();

        if ( abs( (int)(actNum - expNum) ) <= eps )
		{
			cmp = sal_True;
		} // if
	} // if

	return cmp;
} // AStringToFloatCompare

//------------------------------------------------------------------------

sal_Bool AStringToDoubleCompare ( const sal_Char  *pStr,
                                  const double     nX,
                                  const double     nEPS
                                )
{
	sal_Bool cmp = sal_False;

	if ( pStr != NULL )
	{
		::rtl::OString aStr(pStr);

		double actNum = 0;
		double expNum = nX;
		double eps    = nEPS;

		actNum = aStr.toDouble();

        if ( abs( (int)(actNum - expNum) ) <= eps )
		{
			cmp = sal_True;
		} // if
	} // if

	return cmp;
} // AStringToDoubleCompare

//------------------------------------------------------------------------


//------------------------------------------------------------------------

sal_uInt32 UStringLen( const sal_Unicode *pUStr )
{
	sal_uInt32 nUStrLen = 0;

	if ( pUStr != NULL )
	{
		const sal_Unicode *pTempUStr = pUStr;

		while( *pTempUStr )
		{
			pTempUStr++;
		} // while

		nUStrLen = (sal_uInt32)( pTempUStr - pUStr );
	} // if

	return nUStrLen;
} // UStringLen

//------------------------------------------------------------------------

sal_Bool AStringIsValid( const sal_Char  *pAStr )
{
	if ( pAStr != NULL )
	{
		sal_uInt32 nLen  = AStringLen( pAStr );
		sal_uChar  uChar = 0;

		while ( ( nLen >= 0 ) && ( *pAStr ) )
=====================================================================
Found a 121 line (652 tokens) duplication in the following files: 
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

		for( sal_uInt32 i = 0; i < nQuadCount; i++ )
		{
			const sal_Int32 nA = *pTmpSrc++;
			const sal_Int32 nB = *pTmpSrc++;
			const sal_Int32 nC = *pTmpSrc++;

			*pTmpDst++ = pBase64[ ( nA >> 2 ) & 0x3f ];
			*pTmpDst++ = pBase64[ ( ( nA << 4 ) & 0x30 ) + ( ( nB >> 4 ) & 0xf ) ];
			*pTmpDst++ = pBase64[ ( ( nB << 2 ) & 0x3c ) + ( ( nC >> 6 ) & 0x3 ) ];
			*pTmpDst++ = pBase64[ nC & 0x3f ];
		}

		if( 1 == nRest )
		{
			const sal_Int32 nA = *pTmpSrc;

			*pTmpDst++ = pBase64[ ( nA >> 2 ) & 0x3f ];
			*pTmpDst++ = pBase64[ ( nA << 4 ) & 0x30 ];
			*pTmpDst++ = '=';
			*pTmpDst = '=';
		}
		else if( 2 == nRest )
		{
			const sal_Int32 nA = *pTmpSrc++;
			const sal_Int32 nB = *pTmpSrc;

			*pTmpDst++ = pBase64[ ( nA >> 2 ) & 0x3f ];
			*pTmpDst++ = pBase64[ ( ( nA << 4 ) & 0x30 ) + ( ( nB >> 4 ) & 0xf ) ];
			*pTmpDst++ = pBase64[ ( nB << 2 ) & 0x3c ];
			*pTmpDst = '=';
		}
	}
	else
	{
		mpBuffer = new sal_Unicode[ ( mnBufLen = 1 ) * sizeof( sal_Unicode ) ];
		mnCurLen = 0;
	}
}

// -----------------------------------------------------------------------------

FastString::~FastString()
{
	delete[] mpBuffer;
}

// -----------------------------------------------------------------------------

FastString& FastString::operator+=( const NMSP_RTL::OUString& rStr )
{
	if( rStr.getLength() )
	{
		if( ( mnCurLen + rStr.getLength() ) > mnBufLen )
		{
			const sal_uInt32	nNewBufLen = ( mnBufLen + ( ( ( mnCurLen + rStr.getLength() ) - mnBufLen ) / mnBufInc + 1 ) * mnBufInc );
			sal_Unicode*		pNewBuffer = new sal_Unicode[ nNewBufLen * sizeof( sal_Unicode ) ];

			memcpy( pNewBuffer, mpBuffer, mnBufLen * sizeof( sal_Unicode )  );
			delete[] mpBuffer;
			mpBuffer = pNewBuffer;
			mnBufLen = nNewBufLen;
		}

		memcpy( mpBuffer + mnCurLen, rStr.getStr(), rStr.getLength() * sizeof( sal_Unicode ) );
		mnCurLen += rStr.getLength();

		if( maString.getLength() )
			maString = NMSP_RTL::OUString();
	}

	return *this;
}

// -----------------------------------------------------------------------------

const NMSP_RTL::OUString& FastString::GetString() const
{
	if( !maString.getLength() && mnCurLen )
		( (FastString*) this )->maString = NMSP_RTL::OUString( mpBuffer, mnCurLen );

	return maString;
}

// -----------------------------------------------------------------------------

sal_Bool FastString::GetFirstPartString( const sal_uInt32 nPartLen, NMSP_RTL::OUString& rPartString )
{
	const sal_uInt32 nLength = Min( mnCurLen, nPartLen );

	mnPartPos = 0;

	if( nLength )
	{
		rPartString = NMSP_RTL::OUString( mpBuffer, nLength );
		mnPartPos = nLength;
	}

	return( rPartString.getLength() > 0 );
}

// -----------------------------------------------------------------------------

sal_Bool FastString::GetNextPartString( const sal_uInt32 nPartLen, NMSP_RTL::OUString& rPartString )
{
	if( mnPartPos < mnCurLen )
	{
		const sal_uInt32 nLength = Min( mnCurLen - mnPartPos, nPartLen );
		rPartString = NMSP_RTL::OUString( mpBuffer + mnPartPos, nLength );
		mnPartPos += nLength;
	}
	else
		rPartString = NMSP_RTL::OUString();

	return( rPartString.getLength() > 0 );
}

// ----------------------
// - SVGAttributeWriter -
// ----------------------

SVGAttributeWriter::SVGAttributeWriter( SvXMLExport& rExport, SVGFontExport& rFontExport ) :
=====================================================================
Found a 88 line (651 tokens) duplication in the following files: 
Starting at line 111 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/pspgraphics.h
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salgdi.h

    virtual void			GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
    virtual void			GetScreenFontResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
    virtual USHORT			GetBitCount();
    virtual long			GetGraphicsWidth() const;

    virtual void			ResetClipRegion();
    virtual void			BeginSetClipRegion( ULONG nCount );
    virtual BOOL			unionClipRegion( long nX, long nY, long nWidth, long nHeight );
    virtual void			EndSetClipRegion();

    virtual void			SetLineColor();
    virtual void			SetLineColor( SalColor nSalColor );
    virtual void			SetFillColor();

    virtual void          	SetFillColor( SalColor nSalColor );

    virtual void			SetXORMode( BOOL bSet );

    virtual void			SetROPLineColor( SalROPColor nROPColor );
    virtual void			SetROPFillColor( SalROPColor nROPColor );

    virtual void			SetTextColor( SalColor nSalColor );
    virtual USHORT         SetFont( ImplFontSelectData*, int nFallbackLevel );
    virtual void			GetFontMetric( ImplFontMetricData* );
    virtual ULONG			GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
    virtual ImplFontCharMap* GetImplFontCharMap() const;
    virtual void			GetDevFontList( ImplDevFontList* );
    virtual void			GetDevFontSubstList( OutputDevice* );
    virtual bool			AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
    virtual BOOL			CreateFontSubset( const rtl::OUString& rToFile,
                                              ImplFontData* pFont,
                                              sal_Int32* pGlyphIDs,
                                              sal_uInt8* pEncoding,
                                              sal_Int32* pWidths,
                                              int nGlyphs,
                                              FontSubsetInfo& rInfo
                                              );
    virtual const std::map< sal_Unicode, sal_Int32 >* GetFontEncodingVector( ImplFontData* pFont, const std::map< sal_Unicode, rtl::OString >** ppNonEncoded );
    virtual const void*	GetEmbedFontData( ImplFontData* pFont,
                                          const sal_Unicode* pUnicodes,
                                          sal_Int32* pWidths,
                                          FontSubsetInfo& rInfo,
                                          long* pDataLen );
    virtual void			FreeEmbedFontData( const void* pData, long nDataLen );
    virtual void            GetGlyphWidths( ImplFontData* pFont,
                                            bool bVertical,
                                            std::vector< sal_Int32 >& rWidths,
                                            std::map< sal_Unicode, sal_uInt32 >& rUnicodeEnc );
    virtual BOOL			GetGlyphBoundRect( long nIndex, Rectangle& );
    virtual BOOL			GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
    virtual SalLayout*		GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
    virtual void			DrawServerFontLayout( const ServerFontLayout& );
    virtual void			drawPixel( long nX, long nY );
    virtual void			drawPixel( long nX, long nY, SalColor nSalColor );
    virtual void			drawLine( long nX1, long nY1, long nX2, long nY2 );
    virtual void			drawRect( long nX, long nY, long nWidth, long nHeight );
    virtual void			drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
    virtual void			drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
    virtual void			drawPolyPolygon( sal_uInt32 nPoly,
                                             const sal_uInt32* pPoints,
                                             PCONSTSALPOINT* pPtAry );
    virtual sal_Bool		drawPolyLineBezier( ULONG nPoints,
                                                const SalPoint* pPtAry,
                                                const BYTE* pFlgAry );
    virtual sal_Bool		drawPolygonBezier( ULONG nPoints,
                                               const SalPoint* pPtAry,
                                               const BYTE* pFlgAry );
    virtual sal_Bool		drawPolyPolygonBezier( sal_uInt32 nPoly,
                                                   const sal_uInt32* pPoints,
                                                   const SalPoint* const* pPtAry,
                                                   const BYTE* const* pFlgAry );
	virtual void			copyArea( long nDestX,
                                      long nDestY,
                                      long nSrcX,
                                      long nSrcY,
                                      long nSrcWidth,
                                      long nSrcHeight,
                                      USHORT nFlags );
    virtual void			copyBits( const SalTwoRect* pPosAry,
                                      SalGraphics* pSrcGraphics );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap,
                                        SalColor nTransparentColor );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap,
                                        const SalBitmap& rMaskBitmap );
=====================================================================
Found a 133 line (643 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx

                rtti = iFind2->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
#if OSL_DEBUG_LEVEL > 1
    OString cstr(
        OUStringToOString(
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> uno exception occured: %s\n", cstr.getStr() );
#endif
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("cannot get typedescription for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no rtti for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    }

	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping * pCpp2Uno )
{
    if (! header)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no exception header!") ),
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
        return;
    }

	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
#if OSL_DEBUG_LEVEL > 1
    OString cstr_unoName( OUStringToOString( unoName, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> c++ exception occured: %s\n", cstr_unoName.getStr() );
#endif
	typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    if (0 == pExcTypeDescr)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("exception type not found: ") ) + unoName,
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
    }
    else
    {
        // construct uno exception any
        uno_any_constructAndConvert( pUnoExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
        typelib_typedescription_release( pExcTypeDescr );
    }
}

}
=====================================================================
Found a 143 line (641 tokens) duplication in the following files: 
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LFolderList.cxx
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx

		sal_Int32 eType;
		UINT16 nPrecision = 0;
		UINT16 nScale = 0;

		BOOL bNumeric = FALSE;
		ULONG  nIndex = 0;

		// first without fielddelimiter
		String aField;
		aFirstLine.GetTokenSpecial(aField,nStartPosFirstLine,pConnection->getFieldDelimiter(),'\0');
		//OSL_TRACE("OEvoabTable::aField = %s\n", ((OUtoCStr(::rtl::OUString(aField))) ? (OUtoCStr(::rtl::OUString(aField))):("NULL")) );

		if (aField.Len() == 0 ||
			(pConnection->getStringDelimiter() && pConnection->getStringDelimiter() == aField.GetChar(0)))
		{
			bNumeric = FALSE;
		}
		else
		{
			String aField2;
			if ( pConnection->getStringDelimiter() != '\0' )
				aFirstLine.GetTokenSpecial(aField2,nStartPosFirstLine2,pConnection->getFieldDelimiter(),pConnection->getStringDelimiter());
			else
				aField2 = aField;

			//OSL_TRACE("OEvoabTable::aField2 = %s\n", ((OUtoCStr(::rtl::OUString(aField2))) ? (OUtoCStr(::rtl::OUString(aField2))):("NULL")) );

			if (aField2.Len() == 0)
			{
				bNumeric = FALSE;
			}
			else
			{
				bNumeric = TRUE;
				xub_StrLen nDot = 0;
				for (xub_StrLen j = 0; j < aField2.Len(); j++)
				{
					sal_Unicode c = aField2.GetChar(j);
					// nur Ziffern und Dezimalpunkt und Tausender-Trennzeichen?
					if ((!cDecimalDelimiter || c != cDecimalDelimiter) &&
						(!cThousandDelimiter || c != cThousandDelimiter) &&
						!aCharClass.isDigit(aField2,j))
					{
						bNumeric = FALSE;
						break;
					}
					if (cDecimalDelimiter && c == cDecimalDelimiter)
					{
						nPrecision = 15; // we have an decimal value
						nScale = 2;
						nDot++;
					}
				}

				if (nDot > 1) // if there is more than one dot it isn't a number
					bNumeric = FALSE;
				if (bNumeric && cThousandDelimiter)
				{
					// Ist der Trenner richtig angegeben?
					String aValue = aField2.GetToken(0,cDecimalDelimiter);
					for (sal_Int32 j = aValue.Len() - 4; j >= 0; j -= 4)
					{
						sal_Unicode c = aValue.GetChar(j);
						// nur Ziffern und Dezimalpunkt und Tausender-Trennzeichen?
						if (c == cThousandDelimiter && j)
							continue;
						else
						{
							bNumeric = FALSE;
							break;
						}
					}
				}

                // jetzt koennte es noch ein Datumsfeld sein
				if (!bNumeric)
				{
					try
					{
						nIndex = m_xNumberFormatter->detectNumberFormat(::com::sun::star::util::NumberFormat::ALL,aField2);
					}
					catch(Exception&)
					{
					}
				}
			}
		}

		sal_Int32 nFlags = 0;
		if (bNumeric)
		{
			if (cDecimalDelimiter)
			{
				if(nPrecision)
				{
					eType = DataType::DECIMAL;
					aTypeName = ::rtl::OUString::createFromAscii("DECIMAL");
				}
				else
				{
					eType = DataType::DOUBLE;
					aTypeName = ::rtl::OUString::createFromAscii("DOUBLE");
				}
			}
			else
				eType = DataType::INTEGER;
			nFlags = ColumnSearch::BASIC;
		}
		else
		{

			switch (comphelper::getNumberFormatType(m_xNumberFormatter,nIndex))
			{
				case NUMBERFORMAT_DATE:
					eType = DataType::DATE;
					aTypeName = ::rtl::OUString::createFromAscii("DATE");
					break;
				case NUMBERFORMAT_DATETIME:
					eType = DataType::TIMESTAMP;
					aTypeName = ::rtl::OUString::createFromAscii("TIMESTAMP");
					break;
				case NUMBERFORMAT_TIME:
					eType = DataType::TIME;
					aTypeName = ::rtl::OUString::createFromAscii("TIME");
					break;
				default:
					eType = DataType::VARCHAR;
					nPrecision = 0;	// nyi: Daten koennen aber laenger sein!
					nScale = 0;
					aTypeName = ::rtl::OUString::createFromAscii("VARCHAR");
			};
			nFlags |= ColumnSearch::CHAR;
		}

		// check if the columname already exists
		String aAlias(aColumnName);
		OSQLColumns::const_iterator aFind = connectivity::find(m_aColumns->begin(),m_aColumns->end(),aAlias,aCase);
		sal_Int32 nExprCnt = 0;
		while(aFind != m_aColumns->end())
		{
			(aAlias = aColumnName) += String::CreateFromInt32(++nExprCnt);
			aFind = connectivity::find(m_aColumns->begin(),m_aColumns->end(),aAlias,aCase);
		}
=====================================================================
Found a 151 line (639 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/saxdemo.cxx

	int m_iCharCount;
};

//--------------------------------------
// helper implementation for writing
// implements an XAttributeList
//-------------------------------------
struct AttributeListImpl_impl;
class AttributeListImpl : public WeakImplHelper1< XAttributeList >
{
public:
	AttributeListImpl();
	AttributeListImpl( const AttributeListImpl & );
	~AttributeListImpl();

public:
    virtual sal_Int16 SAL_CALL getLength(void) throw  (RuntimeException);
    virtual OUString SAL_CALL getNameByIndex(sal_Int16 i) throw  (RuntimeException);
    virtual OUString SAL_CALL getTypeByIndex(sal_Int16 i) throw  (RuntimeException);
    virtual OUString SAL_CALL getTypeByName(const OUString& aName) throw  (RuntimeException);
    virtual OUString SAL_CALL getValueByIndex(sal_Int16 i) throw  (RuntimeException);
    virtual OUString SAL_CALL getValueByName(const OUString& aName) throw  (RuntimeException);

public:
	void addAttribute( const OUString &sName ,
					   const OUString &sType ,
					   const OUString &sValue );
	void clear();

private:
	struct AttributeListImpl_impl *m_pImpl;
};


struct TagAttribute
{
	TagAttribute(){}
	TagAttribute( const OUString &sName,
				  const OUString &sType ,
				  const OUString &sValue )
	{
		this->sName 	= sName;
		this->sType 	= sType;
		this->sValue 	= sValue;
	}

	OUString sName;
	OUString sType;
	OUString sValue;
};

struct AttributeListImpl_impl
{
	AttributeListImpl_impl()
	{
		// performance improvement during adding
		vecAttribute.reserve(20);
	}
	vector<struct TagAttribute> vecAttribute;
};



sal_Int16 AttributeListImpl::getLength(void) throw  (RuntimeException)
{
	return m_pImpl->vecAttribute.size();
}


AttributeListImpl::AttributeListImpl( const AttributeListImpl &r )
{
	m_pImpl = new AttributeListImpl_impl;
	*m_pImpl = *(r.m_pImpl);
}

OUString AttributeListImpl::getNameByIndex(sal_Int16 i) throw  (RuntimeException)
{
	if( i < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sName;
	}
	return OUString();
}


OUString AttributeListImpl::getTypeByIndex(sal_Int16 i) throw  (RuntimeException)
{
	if( i < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sType;
	}
	return OUString();
}

OUString AttributeListImpl::getValueByIndex(sal_Int16 i) throw  (RuntimeException)
{
	if( i < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw  (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString AttributeListImpl::getValueByName(const OUString& sName) throw  (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}



AttributeListImpl::AttributeListImpl()
{
	m_pImpl = new AttributeListImpl_impl;
}



AttributeListImpl::~AttributeListImpl()
{
	delete m_pImpl;
}


void AttributeListImpl::addAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}

void AttributeListImpl::clear()
{
	m_pImpl->vecAttribute.clear();
}
=====================================================================
Found a 131 line (639 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/except.cxx

            }
    }
    else
    {
        rtti = iRttiFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
#if OSL_DEBUG_LEVEL > 1
    OString cstr(
        OUStringToOString(
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> uno exception occured: %s\n", cstr.getStr() );
#endif
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("cannot get typedescription for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no rtti for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    }

	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping * pCpp2Uno )
{
    if (! header)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no exception header!") ),
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
        return;
    }

	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
#if OSL_DEBUG_LEVEL > 1
    OString cstr_unoName( OUStringToOString( unoName, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> c++ exception occured: %s\n", cstr_unoName.getStr() );
#endif
	typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    if (0 == pExcTypeDescr)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("exception type not found: ") ) + unoName,
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
    }
    else
    {
        // construct uno exception any
        uno_any_constructAndConvert( pUnoExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
        typelib_typedescription_release( pExcTypeDescr );
    }
}

}
=====================================================================
Found a 154 line (638 tokens) duplication in the following files: 
Starting at line 2004 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 2063 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

xub_StrLen WW8ScannerBase::WW8ReadString( SvStream& rStrm, String& rStr,
    WW8_CP nAktStartCp, long nTotalLen, rtl_TextEncoding eEnc ) const
{
    // Klartext einlesen, der sich ueber mehrere Pieces erstrecken kann
    rStr.Erase();

    long nTotalRead = 0;
    WW8_CP nBehindTextCp = nAktStartCp + nTotalLen;
    WW8_CP nNextPieceCp  = nBehindTextCp; // Initialisierung wichtig fuer Ver6
    do
    {
        bool bIsUnicode, bPosOk;
        WW8_FC fcAct = WW8Cp2Fc(nAktStartCp,&bIsUnicode,&nNextPieceCp,&bPosOk);

        // vermutlich uebers Dateiende hinaus gezielt, macht nix!
        if( !bPosOk )
            break;

        rStrm.Seek( fcAct );

        long nLen = ( (nNextPieceCp < nBehindTextCp) ? nNextPieceCp
            : nBehindTextCp ) - nAktStartCp;

        if( 0 >= nLen )
            break;

        if( nLen > USHRT_MAX - 1 )
            nLen = USHRT_MAX - 1;

        if( bIsUnicode )
            rStr.Append(WW8Read_xstz(rStrm, (USHORT)nLen, false));
        else
        {
            // Alloc method automatically sets Zero at the end
            ByteString aByteStr;
            SafeReadString(aByteStr,(USHORT)nLen,rStrm);
            rStr += String( aByteStr, eEnc );
        }
        nTotalRead  += nLen;
        nAktStartCp += nLen;
        if ( nTotalRead != rStr.Len() )
            break;
    }
    while( nTotalRead < nTotalLen );

    return rStr.Len();
}

//-----------------------------------------
//              WW8PLCFspecial
//-----------------------------------------

// Bei nStartPos < 0 wird das erste Element des PLCFs genommen
WW8PLCFspecial::WW8PLCFspecial(SvStream* pSt, long nFilePos, long nPLCF,
    long nStruct, long nStartPos, bool bNoEnd)
    : nIdx(0), nStru(nStruct)
{
    nIMax = ( nPLCF - 4 ) / ( 4 + nStruct );
    // Pointer auf Pos- u. Struct-Array
    pPLCF_PosArray = new INT32[ ( nPLCF + 3 ) / 4 ];

    long nOldPos = pSt->Tell();

    pSt->Seek( nFilePos );
    pSt->Read( pPLCF_PosArray, nPLCF );
#ifdef OSL_BIGENDIAN
    for( nIdx = 0; nIdx <= nIMax; nIdx++ )
        pPLCF_PosArray[nIdx] = SWAPLONG( pPLCF_PosArray[nIdx] );
    nIdx = 0;
#endif // OSL_BIGENDIAN
    if( bNoEnd )
        nIMax++;
    if( nStruct ) // Pointer auf Inhalts-Array
        pPLCF_Contents = (BYTE*)&pPLCF_PosArray[nIMax + 1];
    else
        pPLCF_Contents = 0;                         // kein Inhalt
    if( nStartPos >= 0 )
        SeekPos( nStartPos );

    pSt->Seek( nOldPos );
}

// WW8PLCFspecial::SeekPos() stellt den WW8PLCFspecial auf die Stelle nPos, wobei auch noch der
// Eintrag benutzt wird, der vor nPos beginnt und bis hinter nPos reicht.
// geeignet fuer normale Attribute. Allerdings wird der Attributanfang nicht
// auf die Position nPos korrigiert.
bool WW8PLCFspecial::SeekPos(long nP)
{
    if( nP < pPLCF_PosArray[0] )
    {
        nIdx = 0;
        return false;   // Not found: nP unterhalb kleinstem Eintrag
    }

    // Search from beginning?
    if( (1 > nIdx) || (nP < pPLCF_PosArray[ nIdx-1 ]) )
        nIdx = 1;

    long nI   = nIdx ? nIdx : 1;
    long nEnd = nIMax;

    for(int n = (1==nIdx ? 1 : 2); n; --n )
    {
        for( ; nI <=nEnd; ++nI)
        {                                   // Suchen mit um 1 erhoehtem Index
            if( nP < pPLCF_PosArray[nI] )
            {                               // Position gefunden
                nIdx = nI - 1;              // nI - 1 ist der richtige Index
                return true;                // ... und fertig
            }
        }
        nI   = 1;
        nEnd = nIdx-1;
    }
    nIdx = nIMax;               // Nicht gefunden, groesser als alle Eintraege
    return false;
}

// WW8PLCFspecial::SeekPosExact() wie SeekPos(), aber es wird sichergestellt,
// dass kein Attribut angeschnitten wird, d.h. das naechste gelieferte
// Attribut beginnt auf oder hinter nPos. Wird benutzt fuer Felder +
// Bookmarks.
bool WW8PLCFspecial::SeekPosExact(long nP)
{
    if( nP < pPLCF_PosArray[0] )
    {
        nIdx = 0;
        return false;       // Not found: nP unterhalb kleinstem Eintrag
    }
    // Search from beginning?
    if( nP <=pPLCF_PosArray[nIdx] )
        nIdx = 0;

    long nI   = nIdx ? nIdx-1 : 0;
    long nEnd = nIMax;

    for(int n = (0==nIdx ? 1 : 2); n; --n )
    {
        for( ; nI < nEnd; ++nI)
        {
            if( nP <=pPLCF_PosArray[nI] )
            {                           // Position gefunden
                nIdx = nI;              // nI     ist der richtige Index
                return true;            // ... und fertig
            }
        }
        nI   = 0;
        nEnd = nIdx;
    }
    nIdx = nIMax;               // Not found, groesser als alle Eintraege
    return false;
}

bool WW8PLCFspecial::Get(WW8_CP& rPos, void*& rpValue) const
=====================================================================
Found a 93 line (636 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/editview.cxx
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/lingu/olmenu.cxx

static LanguageType lcl_GuessLocale2Lang( const lang::Locale &rLocale )
{
	struct Loc2Lang
	{
		const char *	pLang;
		const char *	pCountry;
		LanguageType	nLang;
	};
	static const Loc2Lang aLoc2Lang[] =
	{
		{"af", "",      LANGUAGE_AFRIKAANS},
		{"sq", "",      LANGUAGE_ALBANIAN},
		{"am", "",      LANGUAGE_AMHARIC_ETHIOPIA},
		{"ar", "",      LANGUAGE_ARABIC_EGYPT},
		{"eu", "",      LANGUAGE_BASQUE},
		{"be", "",      LANGUAGE_BELARUSIAN},
		{"bs", "",      LANGUAGE_BOSNIAN_LATIN_BOSNIA_HERZEGOVINA},
		{"br", "",      LANGUAGE_BRETON_FRANCE},
		{"ca", "",      LANGUAGE_CATALAN},
		{"zh", "CN",    LANGUAGE_CHINESE_SIMPLIFIED},
		{"zh", "TW",    LANGUAGE_CHINESE_TRADITIONAL},
		{"hr", "",      LANGUAGE_CROATIAN},
		{"cs", "",      LANGUAGE_CZECH},
		{"da", "",      LANGUAGE_DANISH},
		{"nl", "",      LANGUAGE_DUTCH},
		{"en", "",      LANGUAGE_ENGLISH_US},
		{"eo", "",      LANGUAGE_USER_ESPERANTO},
		{"et", "",      LANGUAGE_ESTONIAN},
		{"fi", "",      LANGUAGE_FINNISH},
		{"fr", "",      LANGUAGE_FRENCH},
		{"fy", "",      LANGUAGE_FRISIAN_NETHERLANDS},
		{"ka", "",      LANGUAGE_GEORGIAN},
		{"de", "",      LANGUAGE_GERMAN},
		{"el", "",      LANGUAGE_GREEK},
		{"he", "",      LANGUAGE_HEBREW},
		{"hi", "",      LANGUAGE_HINDI},
		{"hu", "",      LANGUAGE_HUNGARIAN},
		{"is", "",      LANGUAGE_ICELANDIC},
		{"id", "",      LANGUAGE_INDONESIAN},
		{"ga", "",      LANGUAGE_GAELIC_IRELAND},
		{"it", "",      LANGUAGE_ITALIAN},
		{"ja", "",      LANGUAGE_JAPANESE},
		{"ko", "",      LANGUAGE_KOREAN},
		{"la", "",      LANGUAGE_LATIN},
		{"lv", "",      LANGUAGE_LATVIAN},
		{"lt", "",      LANGUAGE_LITHUANIAN},
		{"ms", "",      LANGUAGE_MALAY_MALAYSIA},
		{"gv", "",        LANGUAGE_NONE},
		{"mr", "",      LANGUAGE_MARATHI},
		{"ne", "",      LANGUAGE_NEPALI},
		{"nb", "",      LANGUAGE_NORWEGIAN_BOKMAL},
		{"fa", "",      LANGUAGE_FARSI},
		{"pl", "",      LANGUAGE_POLISH},
		{"pt", "PT",    LANGUAGE_PORTUGUESE},
		{"ro", "",      LANGUAGE_ROMANIAN},
		{"rm", "",      LANGUAGE_RHAETO_ROMAN},
		{"ru", "",      LANGUAGE_RUSSIAN},
		{"sa", "",      LANGUAGE_SANSKRIT},
		{"sco","",        LANGUAGE_NONE},
		{"gd", "",      LANGUAGE_GAELIC_SCOTLAND},
		{"sh", "YU",    LANGUAGE_SERBIAN_LATIN},
		{"sk", "SK",    LANGUAGE_SLOVAK},
		{"sl", "",      LANGUAGE_SLOVENIAN},
		{"es", "",      LANGUAGE_SPANISH},
		{"sw", "",      LANGUAGE_SWAHILI},
		{"sv", "",      LANGUAGE_SWEDISH},
		{"tl", "",        LANGUAGE_NONE},
		{"ta", "",      LANGUAGE_TAMIL},
		{"th", "",      LANGUAGE_THAI},
		{"tr", "",      LANGUAGE_TURKISH},
		{"uk", "",      LANGUAGE_UKRAINIAN},
		{"vi", "",      LANGUAGE_VIETNAMESE},
		{"cy", "",      LANGUAGE_WELSH}
	};

	LanguageType nRes = LANGUAGE_DONTKNOW;
	const sal_Int16 nNum = sizeof(aLoc2Lang) / sizeof(aLoc2Lang[0]);
	for (sal_Int16 i = 0;  i < nNum;  ++i)
	{
		if (rLocale.Language.equalsAscii( aLoc2Lang[i].pLang ) &&
			rLocale.Country .equalsAscii( aLoc2Lang[i].pCountry ))
		{
			nRes = aLoc2Lang[i].nLang;
			break;
		}
	}
	return nRes;
}

// tries to determine the language of 'rText'
// 
LanguageType lcl_CheckLanguage( 
	const OUString &rText,
=====================================================================
Found a 50 line (636 tokens) duplication in the following files: 
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BFunctions.cxx
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OFunctions.cxx

	if( ( pODBC3SQLBulkOperations	=	(T3SQLBulkOperations)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBulkOperations").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLMoreResults	=	(T3SQLMoreResults)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLMoreResults").pData )) == NULL )
		return sal_False;
	/*if( ( pODBC3SQLGetDiagField	=	(T3SQLGetDiagField)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetDiagField").pData )) == NULL )
		return sal_False;*/
	if( ( pODBC3SQLGetDiagRec	=	(T3SQLGetDiagRec)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetDiagRec").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLColumnPrivileges = (T3SQLColumnPrivileges)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLColumnPrivileges").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLColumns		=	(T3SQLColumns)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLColumns").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLForeignKeys	=	(T3SQLForeignKeys)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLForeignKeys").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLPrimaryKeys	=	(T3SQLPrimaryKeys)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLPrimaryKeys").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLProcedureColumns =  (T3SQLProcedureColumns)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLProcedureColumns").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLProcedures	=	(T3SQLProcedures)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLProcedures").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLSpecialColumns =  (T3SQLSpecialColumns)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLSpecialColumns").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLStatistics	=   (T3SQLStatistics)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLStatistics").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLTablePrivileges =	(T3SQLTablePrivileges)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLTablePrivileges").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLTables		=   (T3SQLTables)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLTables").pData )) == NULL )
		return sal_False;					
	if( ( pODBC3SQLFreeStmt		=	(T3SQLFreeStmt)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLFreeStmt").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLCloseCursor	=	(T3SQLCloseCursor)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLCloseCursor").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLCancel		=	(T3SQLCancel)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLCancel").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLEndTran		=	(T3SQLEndTran)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLEndTran").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLDisconnect	=	(T3SQLDisconnect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDisconnect").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLFreeHandle	=	(T3SQLFreeHandle)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLFreeHandle").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLGetCursorName	=	(T3SQLGetCursorName)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLGetCursorName").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLNativeSql	=	(T3SQLNativeSql)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLNativeSql").pData )) == NULL )
		return sal_False;

	return sal_True;
}
// -------------------------------------------------------------------------

}
=====================================================================
Found a 57 line (633 tokens) duplication in the following files: 
Starting at line 1818 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxdr.cxx

	if (aGeo.nShearWink!=0) ShearPoint(aPos,aTmpRect.TopLeft(),-aGeo.nTan);
	//
	FASTBOOL bLft=(eHdl==HDL_UPLFT || eHdl==HDL_LEFT  || eHdl==HDL_LWLFT);
	FASTBOOL bRgt=(eHdl==HDL_UPRGT || eHdl==HDL_RIGHT || eHdl==HDL_LWRGT);
	FASTBOOL bTop=(eHdl==HDL_UPRGT || eHdl==HDL_UPPER || eHdl==HDL_UPLFT);
	FASTBOOL bBtm=(eHdl==HDL_LWRGT || eHdl==HDL_LOWER || eHdl==HDL_LWLFT);
	if (bLft) aTmpRect.Left()  =aPos.X();
	if (bRgt) aTmpRect.Right() =aPos.X();
	if (bTop) aTmpRect.Top()   =aPos.Y();
	if (bBtm) aTmpRect.Bottom()=aPos.Y();
	if (bOrtho) { // Ortho
		long nWdt0=aRect.Right() -aRect.Left();
		long nHgt0=aRect.Bottom()-aRect.Top();
		long nXMul=aTmpRect.Right() -aTmpRect.Left();
		long nYMul=aTmpRect.Bottom()-aTmpRect.Top();
		long nXDiv=nWdt0;
		long nYDiv=nHgt0;
		FASTBOOL bXNeg=(nXMul<0)!=(nXDiv<0);
		FASTBOOL bYNeg=(nYMul<0)!=(nYDiv<0);
		nXMul=Abs(nXMul);
		nYMul=Abs(nYMul);
		nXDiv=Abs(nXDiv);
		nYDiv=Abs(nYDiv);
		Fraction aXFact(nXMul,nXDiv); // Fractions zum kuerzen
		Fraction aYFact(nYMul,nYDiv); // und zum vergleichen
		nXMul=aXFact.GetNumerator();
		nYMul=aYFact.GetNumerator();
		nXDiv=aXFact.GetDenominator();
		nYDiv=aYFact.GetDenominator();
		if (bEcke) { // Eckpunkthandles
			FASTBOOL bUseX=(aXFact<aYFact) != bBigOrtho;
			if (bUseX) {
				long nNeed=long(BigInt(nHgt0)*BigInt(nXMul)/BigInt(nXDiv));
				if (bYNeg) nNeed=-nNeed;
				if (bTop) aTmpRect.Top()=aTmpRect.Bottom()-nNeed;
				if (bBtm) aTmpRect.Bottom()=aTmpRect.Top()+nNeed;
			} else {
				long nNeed=long(BigInt(nWdt0)*BigInt(nYMul)/BigInt(nYDiv));
				if (bXNeg) nNeed=-nNeed;
				if (bLft) aTmpRect.Left()=aTmpRect.Right()-nNeed;
				if (bRgt) aTmpRect.Right()=aTmpRect.Left()+nNeed;
			}
		} else { // Scheitelpunkthandles
			if ((bLft || bRgt) && nXDiv!=0) {
				long nHgt0b=aRect.Bottom()-aRect.Top();
				long nNeed=long(BigInt(nHgt0b)*BigInt(nXMul)/BigInt(nXDiv));
				aTmpRect.Top()-=(nNeed-nHgt0b)/2;
				aTmpRect.Bottom()=aTmpRect.Top()+nNeed;
			}
			if ((bTop || bBtm) && nYDiv!=0) {
				long nWdt0b=aRect.Right()-aRect.Left();
				long nNeed=long(BigInt(nWdt0b)*BigInt(nYMul)/BigInt(nYDiv));
				aTmpRect.Left()-=(nNeed-nWdt0b)/2;
				aTmpRect.Right()=aTmpRect.Left()+nNeed;
			}
		}
	}
=====================================================================
Found a 127 line (632 tokens) duplication in the following files: 
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx

        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
#if OSL_DEBUG_LEVEL > 1
    OString cstr(
        OUStringToOString(
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> uno exception occured: %s\n", cstr.getStr() );
#endif
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("cannot get typedescription for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
    {
        throw RuntimeException(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no rtti for type ") ) +
            *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
            Reference< XInterface >() );
    }
    }

	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping * pCpp2Uno )
{
    if (! header)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("no exception header!") ),
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
        return;
    }

	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
#if OSL_DEBUG_LEVEL > 1
    OString cstr_unoName( OUStringToOString( unoName, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> c++ exception occured: %s\n", cstr_unoName.getStr() );
#endif
	typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    if (0 == pExcTypeDescr)
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM("exception type not found: ") ) + unoName,
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
    }
    else
    {
        // construct uno exception any
        uno_any_constructAndConvert( pUnoExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
        typelib_typedescription_release( pExcTypeDescr );
    }
}

}
=====================================================================
Found a 157 line (627 tokens) duplication in the following files: 
Starting at line 604 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sspellimp.cxx

	return A2OU( "OpenOffice example spellchecker" );
}


void SAL_CALL 
	SpellChecker::initialize( const Sequence< Any >& rArguments ) 
		throw(Exception, RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	if (!pPropHelper)
	{
		INT32 nLen = rArguments.getLength();
		if (2 == nLen)
		{
			Reference< XPropertySet	>	xPropSet;
			rArguments.getConstArray()[0] >>= xPropSet;
			//rArguments.getConstArray()[1] >>= xDicList;

			//! Pointer allows for access of the non-UNO functions.
			//! And the reference to the UNO-functions while increasing
			//! the ref-count and will implicitly free the memory
			//! when the object is not longer used.
			pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) this, xPropSet );
			xPropHelper = pPropHelper;
			pPropHelper->AddAsPropListener();	//! after a reference is established
		}
		else
			DBG_ERROR( "wrong number of arguments in sequence" );
	}
}


void SAL_CALL 
	SpellChecker::dispose() 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	if (!bDisposing)
	{
		bDisposing = TRUE;
		EventObject	aEvtObj( (XSpellChecker *) this );
		aEvtListeners.disposeAndClear( aEvtObj );
	}
}


void SAL_CALL 
	SpellChecker::addEventListener( const Reference< XEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	if (!bDisposing && rxListener.is())
		aEvtListeners.addInterface( rxListener );
}


void SAL_CALL 
	SpellChecker::removeEventListener( const Reference< XEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	if (!bDisposing && rxListener.is())
		aEvtListeners.removeInterface( rxListener );
}


///////////////////////////////////////////////////////////////////////////
// Service specific part
//

OUString SAL_CALL SpellChecker::getImplementationName() 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	return getImplementationName_Static();
}


sal_Bool SAL_CALL SpellChecker::supportsService( const OUString& ServiceName )
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );

	Sequence< OUString > aSNL = getSupportedServiceNames();
	const OUString * pArray = aSNL.getConstArray();
	for( INT32 i = 0; i < aSNL.getLength(); i++ )
		if( pArray[i] == ServiceName )
			return TRUE;
	return FALSE;
}


Sequence< OUString > SAL_CALL SpellChecker::getSupportedServiceNames()
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	return getSupportedServiceNames_Static();
}


Sequence< OUString > SpellChecker::getSupportedServiceNames_Static() 
		throw()
{
	MutexGuard	aGuard( GetLinguMutex() );

	Sequence< OUString > aSNS( 1 );	// auch mehr als 1 Service moeglich
	aSNS.getArray()[0] = A2OU( SN_SPELLCHECKER );
	return aSNS;
}


sal_Bool SAL_CALL SpellChecker_writeInfo(
			void * /*pServiceManager*/, registry::XRegistryKey * pRegistryKey )
{
	try
	{
		String aImpl( '/' );
		aImpl += SpellChecker::getImplementationName_Static().getStr();
		aImpl.AppendAscii( "/UNO/SERVICES" );
		Reference< registry::XRegistryKey > xNewKey =
				pRegistryKey->createKey( aImpl );
		Sequence< OUString > aServices =
				SpellChecker::getSupportedServiceNames_Static();
		for( INT32 i = 0; i < aServices.getLength(); i++ )
			xNewKey->createKey( aServices.getConstArray()[i] );

		return sal_True;
	}
	catch(Exception &)
	{
		return sal_False;
	}
}


void * SAL_CALL SpellChecker_getFactory( const sal_Char * pImplName,
			XMultiServiceFactory * pServiceManager, void *  )
{
	void * pRet = 0;
	if ( !SpellChecker::getImplementationName_Static().compareToAscii( pImplName ) )
	{
		Reference< XSingleServiceFactory > xFactory =
			cppu::createOneInstanceFactory(
				pServiceManager,
				SpellChecker::getImplementationName_Static(),
				SpellChecker_CreateInstance,
				SpellChecker::getSupportedServiceNames_Static());
		// acquire, because we return an interface pointer instead of a reference
		xFactory->acquire();
		pRet = xFactory.get();
	}
	return pRet;
}
=====================================================================
Found a 64 line (624 tokens) duplication in the following files: 
Starting at line 7316 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 5096 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

		case mso_sptCube :						pCustomShape = &msoCube; break;
		case mso_sptActionButtonBlank :			pCustomShape = &msoActionButtonBlank; break;
		case mso_sptActionButtonHome :			pCustomShape = &msoActionButtonHome; break;
		case mso_sptActionButtonHelp :			pCustomShape = &msoActionButtonHelp; break;
		case mso_sptActionButtonInformation :	pCustomShape = &msoActionButtonInformation; break;
		case mso_sptActionButtonBackPrevious :	pCustomShape = &msoActionButtonBackPrevious; break;
		case mso_sptActionButtonForwardNext :	pCustomShape = &msoActionButtonForwardNext; break;
		case mso_sptActionButtonBeginning :		pCustomShape = &msoActionButtonBeginning; break;
		case mso_sptActionButtonEnd :			pCustomShape = &msoActionButtonEnd; break;
		case mso_sptActionButtonReturn :		pCustomShape = &msoActionButtonReturn;	break;
		case mso_sptActionButtonDocument :		pCustomShape = &msoActionButtonDocument; break;
		case mso_sptActionButtonSound :			pCustomShape = &msoActionButtonSound; break;
		case mso_sptActionButtonMovie :			pCustomShape = &msoActionButtonMovie; break;
		case mso_sptBevel :						pCustomShape = &msoBevel; break;
		case mso_sptFoldedCorner :				pCustomShape = &msoFoldedCorner; break;
		case mso_sptSmileyFace :				pCustomShape = &msoSmileyFace;	break;
		case mso_sptDonut :						pCustomShape = &msoDonut; break;
		case mso_sptNoSmoking :					pCustomShape = &msoNoSmoking; break;
		case mso_sptBlockArc :					pCustomShape = &msoBlockArc; break;
		case mso_sptHeart :						pCustomShape = &msoHeart; break;
		case mso_sptLightningBolt :				pCustomShape = &msoLightningBold; break;
		case mso_sptSun	:						pCustomShape = &msoSun; break;
		case mso_sptMoon :						pCustomShape = &msoMoon; break;
		case mso_sptBracketPair :				pCustomShape = &msoBracketPair; break;
		case mso_sptBracePair :					pCustomShape = &msoBracePair; break;
		case mso_sptPlaque :					pCustomShape = &msoPlaque; break;
		case mso_sptLeftBracket :				pCustomShape = &msoLeftBracket; break;
		case mso_sptRightBracket :				pCustomShape = &msoRightBracket; break;
		case mso_sptLeftBrace :					pCustomShape = &msoLeftBrace; break;
		case mso_sptRightBrace :				pCustomShape = &msoRightBrace; break;
		case mso_sptArrow :						pCustomShape = &msoArrow; break;
		case mso_sptUpArrow :					pCustomShape = &msoUpArrow; break;
		case mso_sptDownArrow :					pCustomShape = &msoDownArrow; break;
		case mso_sptLeftArrow :					pCustomShape = &msoLeftArrow; break;
		case mso_sptLeftRightArrow :			pCustomShape = &msoLeftRightArrow; break;
		case mso_sptUpDownArrow :				pCustomShape = &msoUpDownArrow; break;
		case mso_sptQuadArrow :					pCustomShape = &msoQuadArrow; break;
		case mso_sptLeftRightUpArrow :			pCustomShape = &msoLeftRightUpArrow; break;
		case mso_sptBentArrow :					pCustomShape = &msoBentArrow; break;
		case mso_sptUturnArrow :				pCustomShape = &msoUturnArrow; break;
		case mso_sptLeftUpArrow :				pCustomShape = &msoLeftUpArrow; break;
		case mso_sptBentUpArrow :				pCustomShape = &msoBentUpArrow; break;
		case mso_sptCurvedRightArrow :			pCustomShape = &msoCurvedArrow; break;
		case mso_sptCurvedLeftArrow :			pCustomShape = &msoCurvedArrow; break;
		case mso_sptCurvedUpArrow :				pCustomShape = &msoCurvedArrow; break;
		case mso_sptCurvedDownArrow :			pCustomShape = &msoCurvedArrow; break;
		case mso_sptStripedRightArrow :			pCustomShape = &msoStripedRightArrow; break;
		case mso_sptNotchedRightArrow :			pCustomShape = &msoNotchedRightArrow; break;
		case mso_sptHomePlate :					pCustomShape = &msoHomePlate; break;
		case mso_sptChevron :					pCustomShape = &msoChevron; break;
		case mso_sptRightArrowCallout :			pCustomShape = &msoRightArrowCallout; break;
		case mso_sptLeftArrowCallout :			pCustomShape = &msoLeftArrowCallout; break;
		case mso_sptUpArrowCallout :			pCustomShape = &msoUpArrowCallout; break;
		case mso_sptDownArrowCallout :			pCustomShape = &msoDownArrowCallout; break;
		case mso_sptLeftRightArrowCallout :		pCustomShape = &msoLeftRightArrowCallout; break;
		case mso_sptUpDownArrowCallout :		pCustomShape = &msoUpDownArrowCallout; break;
		case mso_sptQuadArrowCallout :			pCustomShape = &msoQuadArrowCallout; break;
		case mso_sptCircularArrow :				pCustomShape = &msoCircularArrow; break;
		case mso_sptIrregularSeal1 :			pCustomShape = &msoIrregularSeal1; break;
		case mso_sptIrregularSeal2 :			pCustomShape = &msoIrregularSeal2; break;
		case mso_sptSeal4 :						pCustomShape = &msoSeal4; break;
		case mso_sptStar :						pCustomShape = &msoStar; break;
		case mso_sptSeal8 :						pCustomShape = &msoSeal8; break;
		case mso_sptSeal16 :					pCustomShape = &msoSeal16; break;
=====================================================================
Found a 50 line (618 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h

int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
=====================================================================
Found a 100 line (617 tokens) duplication in the following files: 
Starting at line 574 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 677 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        a.getValueType() == getCppuType(static_cast< sal_uInt16 const * >(0)));
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", (a >>= b) && b == 1);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", (a >>= b) && b == 1);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", (a >>= b) && b == 1);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", (a >>= b) && b == 1);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", (a >>= b) && b == 1);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", (a >>= b) && b == 1);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", (a >>= b) && b == 1);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", (a >>= b) && b == 1);
    }
    {
        sal_Unicode b = '2';
        if (boost::is_same< sal_Unicode, sal_uInt16 >::value) {
            CPPUNIT_ASSERT_MESSAGE("@sal_Unicode", (a >>= b) && b == 1);
        } else {
            CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
        }
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testLong() {
=====================================================================
Found a 50 line (615 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/solaris/public.h

t_attr Rcp_attribute ANSI((char *));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
=====================================================================
Found a 50 line (614 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/macosx/gnu/public.h

PUBLIC int main ANSI((int argc, char **argv));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
=====================================================================
Found a 78 line (611 tokens) duplication in the following files: 
Starting at line 2178 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2696 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0x69, 0xdd },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
{ 0x00, 0xa2, 0xa2 },
{ 0x00, 0xa3, 0xa3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x00, 0xa6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x00, 0xa9, 0xa9 },
{ 0x00, 0xaa, 0xaa },
{ 0x00, 0xab, 0xab },
{ 0x00, 0xac, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x00, 0xb3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
=====================================================================
Found a 80 line (610 tokens) duplication in the following files: 
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/license.cxx

	return 0;
}

static DateTime _oslDateTimeToDateTime(const oslDateTime& aDateTime)
{
    return DateTime(
        Date(aDateTime.Day, aDateTime.Month, aDateTime.Year), 
        Time(aDateTime.Hours, aDateTime.Minutes, aDateTime.Seconds));
}

static OUString _makeDateTimeString (const DateTime& aDateTime, sal_Bool bUTC = sal_False)
{
    OStringBuffer aDateTimeString;
    aDateTimeString.append((sal_Int32)aDateTime.GetYear());
    aDateTimeString.append("-");
    if (aDateTime.GetMonth()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetMonth());
    aDateTimeString.append("-");
    if (aDateTime.GetDay()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetDay());
    aDateTimeString.append("T");
    if (aDateTime.GetHour()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetHour());
    aDateTimeString.append(":");
    if (aDateTime.GetMin()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetMin());
    aDateTimeString.append(":");
    if (aDateTime.GetSec()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetSec());
    if (bUTC) aDateTimeString.append("Z");

    return OStringToOUString(aDateTimeString.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US);
}

static sal_Bool _parseDateTime(const OUString& aString, DateTime& aDateTime)
{
    // take apart a canonical literal xsd:dateTime string
    //CCYY-MM-DDThh:mm:ss(Z)

    OUString aDateTimeString = aString.trim();

    // check length
    if (aDateTimeString.getLength() < 19 || aDateTimeString.getLength() > 20)
        return sal_False;

    sal_Int32 nDateLength = 10;
    sal_Int32 nTimeLength = 8;

    OUString aDateTimeSep = OUString::createFromAscii("T");
    OUString aDateSep = OUString::createFromAscii("-");
    OUString aTimeSep = OUString::createFromAscii(":");
    OUString aUTCString = OUString::createFromAscii("Z");

    OUString aDateString = aDateTimeString.copy(0, nDateLength);
    OUString aTimeString = aDateTimeString.copy(nDateLength+1, nTimeLength);

    sal_Int32 nIndex = 0;
    sal_Int32 nYear = aDateString.getToken(0, '-', nIndex).toInt32();
    sal_Int32 nMonth = aDateString.getToken(0, '-', nIndex).toInt32();
    sal_Int32 nDay = aDateString.getToken(0, '-', nIndex).toInt32();
    nIndex = 0;
    sal_Int32 nHour = aTimeString.getToken(0, ':', nIndex).toInt32();
    sal_Int32 nMinute = aTimeString.getToken(0, ':', nIndex).toInt32();
    sal_Int32 nSecond = aTimeString.getToken(0, ':', nIndex).toInt32();

    Date tmpDate((USHORT)nDay, (USHORT)nMonth, (USHORT)nYear);
    Time tmpTime(nHour, nMinute, nSecond);
    DateTime tmpDateTime(tmpDate, tmpTime);
    if (aString.indexOf(aUTCString) < 0)
        tmpDateTime.ConvertToUTC();

    aDateTime = tmpDateTime;
    return sal_True;
}

static OUString _getCurrentDateString()
{
    OUString aString;
    return _makeDateTimeString(DateTime());   
}
=====================================================================
Found a 212 line (608 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/helper.cxx
Starting at line 8 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/helper.cxx

Reference< XInputStream > createStreamFromFile( const OUString sFile )
{
	const sal_Char* pcFile ;
	OString aString ;

	aString = OUStringToOString( sFile , RTL_TEXTENCODING_ASCII_US ) ;
	pcFile = aString.getStr() ;
	if( pcFile != NULL ) {
		FILE *f = fopen( pcFile , "rb" );
		Reference<  XInputStream >  r;
	
		if( f ) {
			fseek( f , 0 , SEEK_END );
			int nLength = ftell( f );
			fseek( f , 0 , SEEK_SET );

			Sequence<sal_Int8> seqIn(nLength);
			fread( seqIn.getArray() , nLength , 1 , f );

			r = Reference< XInputStream > ( new OInputStream( seqIn ) );
			fclose( f );				
		}
		return r;
	} else {
		return NULL ;
	}

	return NULL ;
}

/*-
 * Helper : set a output stream to a file
 */
Reference< XOutputStream > createStreamToFile( const OUString sFile )
{
	const sal_Char* pcFile ;
	OString aString ;

	aString = OUStringToOString( sFile , RTL_TEXTENCODING_ASCII_US ) ;
	pcFile = aString.getStr() ;
	if( pcFile != NULL )
		return Reference< XOutputStream >( new OOutputStream( pcFile ) ) ;
	else
		return NULL ;
}

/*-
 * Helper : get service manager and context
 */
Reference< XMultiComponentFactory > serviceManager( Reference< XComponentContext >& xContext , OUString sUnoUrl , OUString sRdbUrl ) throw( RuntimeException , Exception )
{
	Reference< XMultiComponentFactory > xLocalServiceManager = NULL ;
	Reference< XComponentContext > xLocalComponentContext = NULL ;
	Reference< XMultiComponentFactory > xUsedServiceManager = NULL ;
	Reference< XComponentContext > xUsedComponentContext = NULL ;

	OSL_ENSURE( !sUnoUrl.equalsAscii( "" ) ,
		"serviceManager - "
		"No uno URI specified" ) ;

	OSL_ENSURE( !sRdbUrl.equalsAscii( "" ) ,
		"serviceManager - "
		"No rdb URI specified" ) ;

	if( sUnoUrl.equalsAscii( "local" ) ) {
		Reference< XSimpleRegistry > xSimpleRegistry = createSimpleRegistry(); 
		OSL_ENSURE( xSimpleRegistry.is() ,
			"serviceManager - "
			"Cannot create simple registry" ) ;

		//xSimpleRegistry->open(OUString::createFromAscii("xmlsecurity.rdb"), sal_False, sal_False);
		xSimpleRegistry->open(sRdbUrl, sal_True, sal_False);
		OSL_ENSURE( xSimpleRegistry->isValid() ,
			"serviceManager - "
			"Cannot open xml security registry rdb" ) ;

		xLocalComponentContext = bootstrap_InitialComponentContext( xSimpleRegistry ) ;
		OSL_ENSURE( xLocalComponentContext.is() ,
			"serviceManager - "
			"Cannot create intial component context" ) ;

		xLocalServiceManager = xLocalComponentContext->getServiceManager() ;
		OSL_ENSURE( xLocalServiceManager.is() ,
			"serviceManager - "
			"Cannot create intial service manager" ) ;

		/*-
		 * Because of the exception rasied from
		 * ucbhelper/source/provider/provconf.cxx, lin 323
		 * I do not use the content broker at present
		 ********************************************************************
		//init ucb
		if( ::ucb::ContentBroker::get() == NULL ) {
			Reference< lang::XMultiServiceFactory > xSvmg( xLocalServiceManager , UNO_QUERY ) ;
			OSL_ENSURE( xLocalServiceManager.is() ,
				"serviceManager - "
				"Cannot get multi-service factory" ) ;

			Sequence< Any > args( 2 ) ;
			args[ 0 ] <<= OUString::createFromAscii( UCB_CONFIGURATION_KEY1_LOCAL ) ;
			args[ 1 ] <<= OUString::createFromAscii( UCB_CONFIGURATION_KEY2_OFFICE ) ;
			if( ! ::ucb::ContentBroker::initialize( xSvmg , args ) ) {
				throw RuntimeException( OUString::createFromAscii( "Cannot inlitialize ContentBroker" ) , Reference< XInterface >() , Any() ) ;
			}
		}
		********************************************************************/

// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_xmlsecurity.hxx"

		xUsedComponentContext = xLocalComponentContext ;
		xUsedServiceManager = xLocalServiceManager ;
	} else {
		Reference< XComponentContext > xLocalComponentContext = defaultBootstrap_InitialComponentContext() ;
		OSL_ENSURE( xLocalComponentContext.is() ,
			"serviceManager - "
			"Cannot create intial component context" ) ;

		Reference< XMultiComponentFactory > xLocalServiceManager = xLocalComponentContext->getServiceManager();
		OSL_ENSURE( xLocalServiceManager.is() ,
			"serviceManager - "
			"Cannot create intial service manager" ) ;

		Reference< XInterface > urlResolver =
			xLocalServiceManager->createInstanceWithContext( OUString::createFromAscii("com.sun.star.bridge.UnoUrlResolver") , xLocalComponentContext ) ;
		OSL_ENSURE( urlResolver.is() ,
			"serviceManager - "
			"Cannot get service instance of \"bridge.UnoUrlResolver\"" ) ;

		Reference< XUnoUrlResolver > xUnoUrlResolver( urlResolver , UNO_QUERY ) ;
		OSL_ENSURE( xUnoUrlResolver.is() ,
			"serviceManager - "
			"Cannot get interface of \"XUnoUrlResolver\" from service \"bridge.UnoUrlResolver\"" ) ;

		Reference< XInterface > initialObject = xUnoUrlResolver->resolve( sUnoUrl ) ;
		OSL_ENSURE( initialObject.is() ,
			"serviceManager - "
			"Cannot resolve uno url" ) ;

		/*-
		 * Method 1: with Naming Service
		 ********************************************************************
		Reference< XNamingService > xNamingService( initialObject , UNO_QUERY ) ;
		OSL_ENSURE( xNamingService.is() ,
			"serviceManager - "
			"Cannot get interface of \"XNamingService\" from URL resolver" ) ;

		Reference< XInterface > serviceManager =
			xNamingService->getRegisteredObject( OUString::createFromAscii( "StarOffice.ServiceManager" ) ) ;
		OSL_ENSURE( serviceManager.is() ,
			"serviceManager - "
			"Cannot get service instance of \"StarOffice.ServiceManager\"" ) ;

		xUsedServiceManager = Reference< XMultiComponentFactory >( serviceManager , UNO_QUERY );
		OSL_ENSURE( xUsedServiceManager.is() ,
			"serviceManager - "
			"Cannot get interface of \"XMultiComponentFactory\" from service \"StarOffice.ServiceManager\"" ) ;

		Reference< XPropertySet > xPropSet( xUsedServiceManager , UNO_QUERY ) ;
		OSL_ENSURE( xPropSet.is() ,
			"serviceManager - "
			"Cannot get interface of \"XPropertySet\" from service \"StarOffice.ServiceManager\"" ) ;

		xPropSet->getPropertyValue( OUString::createFromAscii( "DefaultContext" ) ) >>= xUsedComponentContext ;
		OSL_ENSURE( xUsedComponentContext.is() ,
			"serviceManager - "
			"Cannot create remote component context" ) ;

		********************************************************************/

		/*-
		 * Method 2: with Componnent context
		 ********************************************************************
		Reference< XPropertySet > xPropSet( initialObject , UNO_QUERY ) ;
		OSL_ENSURE( xPropSet.is() ,
			"serviceManager - "
			"Cannot get interface of \"XPropertySet\" from URL resolver" ) ;

		xPropSet->getPropertyValue( OUString::createFromAscii( "DefaultContext" ) ) >>= xUsedComponentContext ;
		OSL_ENSURE( xUsedComponentContext.is() ,
			"serviceManager - "
			"Cannot create remote component context" ) ;

		xUsedServiceManager = xUsedComponentContext->getServiceManager();
		OSL_ENSURE( xUsedServiceManager.is() ,
			"serviceManager - "
			"Cannot create remote service manager" ) ;
		********************************************************************/

		/*-
		 * Method 3: with Service Manager
		 ********************************************************************/
		xUsedServiceManager = Reference< XMultiComponentFactory >( initialObject , UNO_QUERY );
		OSL_ENSURE( xUsedServiceManager.is() ,
			"serviceManager - "
			"Cannot create remote service manager" ) ;

		Reference< XPropertySet > xPropSet( xUsedServiceManager , UNO_QUERY ) ;
		OSL_ENSURE( xPropSet.is() ,
			"serviceManager - "
			"Cannot get interface of \"XPropertySet\" from service \"StarOffice.ServiceManager\"" ) ;

		xPropSet->getPropertyValue( OUString::createFromAscii( "DefaultContext" ) ) >>= xUsedComponentContext ;
		OSL_ENSURE( xUsedComponentContext.is() ,
			"serviceManager - "
			"Cannot create remote component context" ) ;
		/********************************************************************/
	}

	xContext = xUsedComponentContext ;
	return xUsedServiceManager ;
}
=====================================================================
Found a 32 line (607 tokens) duplication in the following files: 
Starting at line 4051 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3673 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x2082, 0x400, 10800, 3543 }
};
static const SvxMSDffVertPair mso_sptSeal32Vert[] =
{
	{ 0x05 MSO_I, 0x06 MSO_I }, { 0x07 MSO_I, 0x08 MSO_I }, { 0x09 MSO_I, 0x0a MSO_I }, { 0x0b MSO_I, 0x0c MSO_I },
	{ 0x0d MSO_I, 0x0e MSO_I }, { 0x0f MSO_I, 0x10 MSO_I }, { 0x11 MSO_I, 0x12 MSO_I }, { 0x13 MSO_I, 0x14 MSO_I },
	{ 0x15 MSO_I, 0x16 MSO_I }, { 0x17 MSO_I, 0x18 MSO_I }, { 0x19 MSO_I, 0x1a MSO_I }, { 0x1b MSO_I, 0x1c MSO_I },
	{ 0x1d MSO_I, 0x1e MSO_I }, { 0x1f MSO_I, 0x20 MSO_I }, { 0x21 MSO_I, 0x22 MSO_I }, { 0x23 MSO_I, 0x24 MSO_I },
	{ 0x25 MSO_I, 0x26 MSO_I }, { 0x27 MSO_I, 0x28 MSO_I }, { 0x29 MSO_I, 0x2a MSO_I }, { 0x2b MSO_I, 0x2c MSO_I },
	{ 0x2d MSO_I, 0x2e MSO_I }, { 0x2f MSO_I, 0x30 MSO_I }, { 0x31 MSO_I, 0x32 MSO_I }, { 0x33 MSO_I, 0x34 MSO_I },
	{ 0x35 MSO_I, 0x36 MSO_I }, { 0x37 MSO_I, 0x38 MSO_I }, { 0x39 MSO_I, 0x3a MSO_I }, { 0x3b MSO_I, 0x3c MSO_I },
	{ 0x3d MSO_I, 0x3e MSO_I }, { 0x3f MSO_I, 0x40 MSO_I }, { 0x41 MSO_I, 0x42 MSO_I }, { 0x43 MSO_I, 0x44 MSO_I },
	{ 0x45 MSO_I, 0x46 MSO_I }, { 0x47 MSO_I, 0x48 MSO_I }, { 0x49 MSO_I, 0x4a MSO_I }, { 0x4b MSO_I, 0x4c MSO_I },
	{ 0x4d MSO_I, 0x4e MSO_I }, { 0x4f MSO_I, 0x50 MSO_I }, { 0x51 MSO_I, 0x52 MSO_I }, { 0x53 MSO_I, 0x54 MSO_I },
	{ 0x55 MSO_I, 0x56 MSO_I }, { 0x57 MSO_I, 0x58 MSO_I }, { 0x59 MSO_I, 0x5a MSO_I }, { 0x5b MSO_I, 0x5c MSO_I },
	{ 0x5d MSO_I, 0x5e MSO_I }, { 0x5f MSO_I, 0x60 MSO_I }, { 0x61 MSO_I, 0x62 MSO_I }, { 0x63 MSO_I, 0x64 MSO_I },
	{ 0x65 MSO_I, 0x66 MSO_I }, { 0x67 MSO_I, 0x68 MSO_I }, { 0x69 MSO_I, 0x6a MSO_I }, { 0x6b MSO_I, 0x6c MSO_I },
	{ 0x6d MSO_I, 0x6e MSO_I }, { 0x6f MSO_I, 0x70 MSO_I }, { 0x71 MSO_I, 0x72 MSO_I }, { 0x73 MSO_I, 0x74 MSO_I },
	{ 0x75 MSO_I, 0x76 MSO_I }, { 0x77 MSO_I, 0x78 MSO_I }, { 0x79 MSO_I, 0x7a MSO_I }, { 0x7b MSO_I, 0x7c MSO_I },
	{ 0x7d MSO_I, 0x7e MSO_I }, { 0x7f MSO_I, 0x80 MSO_I }, { 0x81 MSO_I, 0x82 MSO_I }, { 0x83 MSO_I, 0x84 MSO_I },
	{ 0x05 MSO_I, 0x06 MSO_I }
};
static const mso_CustomShape msoSeal32 = 
{
	(SvxMSDffVertPair*)mso_sptSeal32Vert, sizeof( mso_sptSeal32Vert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	(SvxMSDffCalculationData*)mso_sptSeal32Calc, sizeof( mso_sptSeal32Calc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptDefault2500,
	(SvxMSDffTextRectangles*)mso_sptSealTextRect, sizeof( mso_sptSealTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 89 line (604 tokens) duplication in the following files: 
Starting at line 299 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx

	Point   aCenter( aRect.Left() + nZWidth, aRect.Top() + nZHeight );

	// Rand beruecksichtigen
	aSize.Width()   -= nBorderX;
	aSize.Height()  -= nBorderY;

	// Ausgaberechteck neu setzen
	aRect.Left() = aCenter.X() - (aSize.Width() >> 1);
	aRect.Top()  = aCenter.Y() - (aSize.Height() >> 1);
	aRect.SetSize( aSize );

	long nMinRect = Min( aRect.GetWidth(), aRect.GetHeight() );

	// Anzahl der Schritte berechnen, falls nichts uebergeben wurde
	if ( !nStepCount )
	{
		long nInc = ((nMinRect >> 9) + 1) << 3;

		if ( !nInc )
			nInc = 1;

		nStepCount = (USHORT)(nMinRect / nInc);
	}
	// minimal drei Schritte
	long nSteps = Max( nStepCount, (USHORT)3 );

	// Ausgabebegrenzungen und Schrittweite fuer jede Richtung festlegen
	double fScanLeft   = aRect.Left();
	double fScanTop    = aRect.Top();
	double fScanRight  = aRect.Right();
	double fScanBottom = aRect.Bottom();
	double fScanInc    = (double)nMinRect / (double)nSteps * 0.5;

	// Intensitaeten von Start- und Endfarbe ggf. aendern und
	// Farbschrittweiten berechnen
	long            nFactor;
	const Color&    rStartCol   = rGradient.GetStartColor();
	const Color&    rEndCol     = rGradient.GetEndColor();
	long            nRed        = rStartCol.GetRed();
	long            nGreen      = rStartCol.GetGreen();
	long            nBlue       = rStartCol.GetBlue();
	long            nEndRed     = rEndCol.GetRed();
	long            nEndGreen   = rEndCol.GetGreen();
	long            nEndBlue    = rEndCol.GetBlue();
	nFactor                     = rGradient.GetStartIntensity();
	nRed                        = (nRed   * nFactor) / 100;
	nGreen                      = (nGreen * nFactor) / 100;
	nBlue                       = (nBlue  * nFactor) / 100;
	nFactor                     = rGradient.GetEndIntensity();
	nEndRed                     = (nEndRed   * nFactor) / 100;
	nEndGreen                   = (nEndGreen * nFactor) / 100;
	nEndBlue                    = (nEndBlue  * nFactor) / 100;
	long            nStepRed    = (nEndRed   - nRed)   / nSteps;
	long            nStepGreen  = (nEndGreen - nGreen) / nSteps;
	long            nStepBlue   = (nEndBlue  - nBlue)  / nSteps;
	Color           aCol( (BYTE) nRed, (BYTE) nGreen, (BYTE) nBlue );

	// GDI-Objekte sichern und setzen
	aSetFillInBrushRecordHdl.Call(&aCol);

	// Recteck erstmal ausgeben
	PolyPolygon aPolyPoly( 2 );
	Polygon     aPoly( rRect );

	aPolyPoly.Insert( aPoly );
	aPoly = Polygon( aRect );
	aPoly.Rotate( aCenter, rGradient.GetAngle() );
	aPolyPoly.Insert( aPoly );

	PolyPolygon aTempPolyPoly = aPolyPoly;
	aTempPolyPoly.Clip( aClipRect );
	aDrawPolyPolyRecordHdl.Call(&aTempPolyPoly);

	// Schleife, um nacheinander die Polygone/PolyPolygone auszugeben
	for ( long i = 0; i < nSteps; i++ )
	{
		Color aCol( (BYTE) nRed, (BYTE) nGreen, (BYTE) nBlue );
		aSetFillInBrushRecordHdl.Call(&aCol);

		// neues Polygon berechnen
		aRect.Left()    = (long)(fScanLeft  += fScanInc);
		aRect.Top()     = (long)(fScanTop   += fScanInc);
		aRect.Right()   = (long)(fScanRight -= fScanInc);
		aRect.Bottom()  = (long)(fScanBottom-= fScanInc);

		if ( (aRect.GetWidth() < 2) || (aRect.GetHeight() < 2) )
			break;

		aPoly = Polygon( aRect );
=====================================================================
Found a 142 line (603 tokens) duplication in the following files: 
Starting at line 6472 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6818 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        Set_UInt16(pData, a16Bit);
    }
    rStrm.Write( aData, nLen );
    return 0 == rStrm.GetError();
}

void WW8DopTypography::ReadFromMem(BYTE *&pData)
{
    USHORT a16Bit = Get_UShort(pData);
    fKerningPunct = (a16Bit & 0x0001);
    iJustification = (a16Bit & 0x0006) >>  1;
    iLevelOfKinsoku = (a16Bit & 0x0018) >>  3;
    f2on1 = (a16Bit & 0x0020) >>  5;
    reserved1 = (a16Bit & 0x03C0) >>  6;
    reserved2 = (a16Bit & 0xFC00) >>  10;

    cchFollowingPunct = Get_Short(pData);
    cchLeadingPunct = Get_Short(pData);

    INT16 i;
    for (i=0; i < nMaxFollowing; ++i)
        rgxchFPunct[i] = Get_Short(pData);
    for (i=0; i < nMaxLeading; ++i)
        rgxchLPunct[i] = Get_Short(pData);

    rgxchFPunct[cchFollowingPunct]=0;
    rgxchLPunct[cchLeadingPunct]=0;
}

void WW8DopTypography::WriteToMem(BYTE *&pData) const
{
    USHORT a16Bit = fKerningPunct;
    a16Bit |= (iJustification << 1) & 0x0006;
    a16Bit |= (iLevelOfKinsoku << 3) & 0x0018;
    a16Bit |= (f2on1 << 5) & 0x002;
    a16Bit |= (reserved1 << 6) & 0x03C0;
    a16Bit |= (reserved2 << 10) & 0xFC00;
    Set_UInt16(pData,a16Bit);

    Set_UInt16(pData,cchFollowingPunct);
    Set_UInt16(pData,cchLeadingPunct);

    INT16 i;
    for (i=0; i < nMaxFollowing; ++i)
        Set_UInt16(pData,rgxchFPunct[i]);
    for (i=0; i < nMaxLeading; ++i)
        Set_UInt16(pData,rgxchLPunct[i]);
}

USHORT WW8DopTypography::GetConvertedLang() const
{
    USHORT nLang;
    //I have assumed peoples republic/taiwan == simplified/traditional

    //This isn't a documented issue, so we might have it all wrong,
    //i.e. i.e. whats with the powers of two ?

    /*
    #84082#
    One example of 3 for reserved1 which was really Japanese, perhaps last bit
    is for some other use ?, or redundant. If more examples trigger the assert
    we might be able to figure it out.
    */
    switch(reserved1 & 0xE)
    {
        case 2:     //Japan
            nLang = LANGUAGE_JAPANESE;
            break;
        case 4:     //Chinese (Peoples Republic)
            nLang = LANGUAGE_CHINESE_SIMPLIFIED;
            break;
        case 6:     //Korean
            nLang = LANGUAGE_KOREAN;
            break;
        case 8:     //Chinese (Taiwan)
            nLang = LANGUAGE_CHINESE_TRADITIONAL;
            break;
        default:
            ASSERT(!this, "Unknown MS Asian Typography language, report");
            nLang = LANGUAGE_CHINESE;
            break;
        case 0:
            //And here we have the possibility that it says 2, but its really
            //a bug and only japanese level 2 has been selected after a custom
            //version was chosen on last save!
            nLang = LANGUAGE_JAPANESE;
            break;
    }
    return nLang;
}

//-----------------------------------------
//              Sprms
//-----------------------------------------
USHORT wwSprmParser::GetSprmTailLen(sal_uInt16 nId, const sal_uInt8* pSprm)
    const
{
    SprmInfo aSprm = GetSprmInfo(nId);
    USHORT nL = 0;                      // number of Bytes to read

    //sprmPChgTabs
    switch( nId )
    {
        case 23:
        case 0xC615:
            if( pSprm[1 + mnDelta] != 255 )
                nL = pSprm[1 + mnDelta] + aSprm.nLen;
            else
            {
                BYTE nDel = pSprm[2 + mnDelta];
                BYTE nIns = pSprm[3 + mnDelta + 4 * nDel];

                nL = 2 + 4 * nDel + 3 * nIns;
            }
            break;
        case 0xD608:
            nL = SVBT16ToShort( &pSprm[1 + mnDelta] );
            break;
        default:
            switch (aSprm.nVari)
            {
                case L_FIX:
                    nL = aSprm.nLen;        // Excl. Token
                    break;
                case L_VAR:
                    // Variable 1-Byte Length?
                    // Excl. Token + Var-Lengthbyte
                    nL = pSprm[1 + mnDelta] + aSprm.nLen;
                    break;
                case L_VAR2:
                    // Variable 2-Byte Length?
                    // Excl. Token + Var-Lengthbyte
                    nL = SVBT16ToShort( &pSprm[1 + mnDelta] ) + aSprm.nLen - 1;
                    break;
                default:
                    ASSERT(!this, "Unknown sprm varient");
                    break;
            }
            break;
    }
    return nL;
}
=====================================================================
Found a 96 line (603 tokens) duplication in the following files: 
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx
Starting at line 508 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx

		delete p;
		return FALSE;
	}
	return TRUE;
}

/************************************************************************/
void Impl_OlePres::Write( SvStream & rStm )
{
	WriteClipboardFormat( rStm, FORMAT_GDIMETAFILE );
	rStm << (INT32)(nJobLen +4);       // immer leeres TargetDevice
	if( nJobLen )
		rStm.Write( pJob, nJobLen );
	rStm << (UINT32)nAspect;
	rStm << (INT32)-1;      //L-Index immer -1
	rStm << (INT32)nAdvFlags;
	rStm << (INT32)0;       //Compression
	rStm << (INT32)aSize.Width();
	rStm << (INT32)aSize.Height();
	ULONG nPos = rStm.Tell();
	rStm << (INT32)0;

	if( GetFormat() == FORMAT_GDIMETAFILE && pMtf )
	{
		// Immer auf 1/100 mm, bis Mtf-Loesung gefunden
		// Annahme (keine Skalierung, keine Org-Verschiebung)
		DBG_ASSERT( pMtf->GetPrefMapMode().GetScaleX() == Fraction( 1, 1 ),
					"X-Skalierung im Mtf" )
		DBG_ASSERT( pMtf->GetPrefMapMode().GetScaleY() == Fraction( 1, 1 ),
					"Y-Skalierung im Mtf" )
		DBG_ASSERT( pMtf->GetPrefMapMode().GetOrigin() == Point(),
					"Origin-Verschiebung im Mtf" )
		MapUnit nMU = pMtf->GetPrefMapMode().GetMapUnit();
		if( MAP_100TH_MM != nMU )
		{
			Size aPrefS( pMtf->GetPrefSize() );
			Size aS( aPrefS );
			aS = OutputDevice::LogicToLogic( aS, nMU, MAP_100TH_MM );

			pMtf->Scale( Fraction( aS.Width(), aPrefS.Width() ),
						 Fraction( aS.Height(), aPrefS.Height() ) );
			pMtf->SetPrefMapMode( MAP_100TH_MM );
			pMtf->SetPrefSize( aS );
		}
		WriteWindowMetafileBits( rStm, *pMtf );
	}
	else
	{
		DBG_ERROR( "unknown format" )
	}
	ULONG nEndPos = rStm.Tell();
	rStm.Seek( nPos );
	rStm << (UINT32)(nEndPos - nPos - 4);
	rStm.Seek( nEndPos );
}

Impl_OlePres * CreateCache_Impl( SotStorage * pStor )
{
	SotStorageStreamRef xOleObjStm =pStor->OpenSotStream( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "Ole-Object" ) ),
														STREAM_READ | STREAM_NOCREATE );
	if( xOleObjStm->GetError() )
		return NULL;
	SotStorageRef xOleObjStor = new SotStorage( *xOleObjStm );
	if( xOleObjStor->GetError() )
		return NULL;

	String aStreamName;
	if( xOleObjStor->IsContained( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\002OlePres000" ) ) ) )
		aStreamName = String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\002OlePres000" ) );
	else if( xOleObjStor->IsContained( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\1Ole10Native" ) ) ) )
		aStreamName = String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\1Ole10Native" ) );

	if( aStreamName.Len() == 0 )
		return NULL;


	for( USHORT i = 1; i < 10; i++ )
	{
		SotStorageStreamRef xStm = xOleObjStor->OpenSotStream( aStreamName,
												STREAM_READ | STREAM_NOCREATE );
		if( xStm->GetError() )
			break;

		xStm->SetBufferSize( 8192 );
        Impl_OlePres * pEle = new Impl_OlePres( 0 );
		if( pEle->Read( *xStm ) && !xStm->GetError() )
		{
			if( pEle->GetFormat() == FORMAT_GDIMETAFILE || pEle->GetFormat() == FORMAT_BITMAP )
				return pEle;
		}
		delete pEle;
		aStreamName = String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\002OlePres00" ) );
		aStreamName += String( i );
	};
	return NULL;
}
=====================================================================
Found a 105 line (603 tokens) duplication in the following files: 
Starting at line 1574 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 1658 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

static const sal_Char* insertLine(osl_TProfileImpl* pProfile, const sal_Char* Line, sal_uInt32 LineNo)
{
	if (pProfile->m_NoLines >= pProfile->m_MaxLines)
	{
		if (pProfile->m_Lines == NULL)
		{
			pProfile->m_MaxLines = LINES_INI;
			pProfile->m_Lines = (sal_Char **)malloc(pProfile->m_MaxLines * sizeof(sal_Char *));
			memset(pProfile->m_Lines,0,pProfile->m_MaxLines * sizeof(sal_Char *));
		}
		else
		{
			pProfile->m_MaxLines += LINES_ADD;
			pProfile->m_Lines = (sal_Char **)realloc(pProfile->m_Lines,
												 pProfile->m_MaxLines * sizeof(sal_Char *));

			memset(&pProfile->m_Lines[pProfile->m_NoLines],
				0,
				(pProfile->m_MaxLines - pProfile->m_NoLines - 1) * sizeof(sal_Char*));
		}

		if (pProfile->m_Lines == NULL)
		{
			pProfile->m_NoLines  = 0;
			pProfile->m_MaxLines = 0;
			return (NULL);
		}
	}

	LineNo = LineNo > pProfile->m_NoLines ? pProfile->m_NoLines : LineNo;

	if (LineNo < pProfile->m_NoLines)
	{
		sal_uInt32 i, n;
		osl_TProfileSection* pSec;

		memmove(&pProfile->m_Lines[LineNo + 1], &pProfile->m_Lines[LineNo],
				(pProfile->m_NoLines - LineNo) * sizeof(sal_Char *));


		/* adjust line references */
		for (i = 0; i < pProfile->m_NoSections; i++)
		{
			pSec = &pProfile->m_Sections[i];

			if (pSec->m_Line >= LineNo)
				pSec->m_Line++;

			for (n = 0; n < pSec->m_NoEntries; n++)
				if (pSec->m_Entries[n].m_Line >= LineNo)
					pSec->m_Entries[n].m_Line++;
		}
	}

	pProfile->m_NoLines++;

	pProfile->m_Lines[LineNo] = strdup(Line);

	return (pProfile->m_Lines[LineNo]);
}

static void removeLine(osl_TProfileImpl* pProfile, sal_uInt32 LineNo)
{
	if (LineNo < pProfile->m_NoLines)
	{
		free(pProfile->m_Lines[LineNo]);
		pProfile->m_Lines[LineNo]=0;
		if (pProfile->m_NoLines - LineNo > 1)
		{
			sal_uInt32 i, n;
			osl_TProfileSection* pSec;

			memmove(&pProfile->m_Lines[LineNo], &pProfile->m_Lines[LineNo + 1],
					(pProfile->m_NoLines - LineNo - 1) * sizeof(sal_Char *));

			memset(&pProfile->m_Lines[pProfile->m_NoLines - 1],
				0,
				(pProfile->m_MaxLines - pProfile->m_NoLines) * sizeof(sal_Char*));

			/* adjust line references */
			for (i = 0; i < pProfile->m_NoSections; i++)
			{
				pSec = &pProfile->m_Sections[i];

				if (pSec->m_Line > LineNo)
					pSec->m_Line--;

				for (n = 0; n < pSec->m_NoEntries; n++)
					if (pSec->m_Entries[n].m_Line > LineNo)
						pSec->m_Entries[n].m_Line--;
			}
		}
		else
		{
			pProfile->m_Lines[LineNo] = 0;
		}

		pProfile->m_NoLines--;
	}

	return;
}

static void setEntry(osl_TProfileImpl* pProfile, osl_TProfileSection* pSection,
					 sal_uInt32 NoEntry, sal_uInt32 Line,
=====================================================================
Found a 140 line (598 tokens) duplication in the following files: 
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/Hservices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/Yservices.cxx

using namespace connectivity::mysql;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pT
		);

//***************************************************************************************
//
// Die vorgeschriebene C-Api muss erfuellt werden!
// Sie besteht aus drei Funktionen, die von dem Modul exportiert werden muessen.
//

//---------------------------------------------------------------------------------------
void REGISTER_PROVIDER(
		const OUString& aServiceImplName,
		const Sequence< OUString>& Services,
		const Reference< ::com::sun::star::registry::XRegistryKey > & xKey)
{
	OUString aMainKeyName;
	aMainKeyName = OUString::createFromAscii("/");
	aMainKeyName += aServiceImplName;
	aMainKeyName += OUString::createFromAscii("/UNO/SERVICES");

	Reference< ::com::sun::star::registry::XRegistryKey >  xNewKey( xKey->createKey(aMainKeyName) );
	OSL_ENSURE(xNewKey.is(), "ADABAS::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(...)
		{
		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
			ODriverDelegator::getImplementationName_Static(),
			ODriverDelegator::getSupportedServiceNames_Static(), xKey);

		return sal_True;
	}
	catch (::com::sun::star::registry::InvalidRegistryException& )
	{
		OSL_ENSURE(sal_False, "ODBC::component_writeInfo : could not create a registry key ! ## InvalidRegistryException !");
	}

	return sal_False;
}

//---------------------------------------------------------------------------------------
extern "C" void* SAL_CALL component_getFactory(
					const sal_Char* pImplementationName,
					void* pServiceManager,
					void* /*pRegistryKey*/)
{
	void* pRet = 0;
	if (pServiceManager)
	{
		ProviderRequest aReq(pServiceManager,pImplementationName);

		aReq.CREATE_PROVIDER(
			ODriverDelegator::getImplementationName_Static(),
			ODriverDelegator::getSupportedServiceNames_Static(),
			ODriverDelegator_CreateInstance, ::cppu::createSingleFactory)
		;

		if(aReq.xRet.is())
			aReq.xRet->acquire();

		pRet = aReq.getProvider();
	}

	return pRet;
};
=====================================================================
Found a 140 line (598 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/Cservices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/Dservices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/Eservices.cxx

using namespace connectivity::flat;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pT
		);

//***************************************************************************************
//
// Die vorgeschriebene C-Api muss erfuellt werden!
// Sie besteht aus drei Funktionen, die von dem Modul exportiert werden muessen.
//

//---------------------------------------------------------------------------------------
void REGISTER_PROVIDER(
		const OUString& aServiceImplName,
		const Sequence< OUString>& Services,
		const Reference< ::com::sun::star::registry::XRegistryKey > & xKey)
{
	OUString aMainKeyName;
	aMainKeyName = OUString::createFromAscii("/");
	aMainKeyName += aServiceImplName;
	aMainKeyName += OUString::createFromAscii("/UNO/SERVICES");

	Reference< ::com::sun::star::registry::XRegistryKey >  xNewKey( xKey->createKey(aMainKeyName) );
	OSL_ENSURE(xNewKey.is(), "FILE::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(...)
		{
		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
			ODriver::getImplementationName_Static(),
			ODriver::getSupportedServiceNames_Static(), xKey);

		return sal_True;
	}
	catch (::com::sun::star::registry::InvalidRegistryException& )
	{
		OSL_ENSURE(sal_False, "FILE::component_writeInfo : could not create a registry key ! ## InvalidRegistryException !");
	}

	return sal_False;
}

//---------------------------------------------------------------------------------------
extern "C" void* SAL_CALL component_getFactory(
					const sal_Char* pImplementationName,
					void* pServiceManager,
					void* /*pRegistryKey*/)
{
	void* pRet = 0;
	if (pServiceManager)
	{
		ProviderRequest aReq(pServiceManager,pImplementationName);

		aReq.CREATE_PROVIDER(
			ODriver::getImplementationName_Static(),
			ODriver::getSupportedServiceNames_Static(),
			ODriver_CreateInstance, ::cppu::createSingleFactory)
		;

		if(aReq.xRet.is())
			aReq.xRet->acquire();

		pRet = aReq.getProvider();
	}

	return pRet;
};
=====================================================================
Found a 13 line (597 tokens) duplication in the following files: 
Starting at line 465 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x15, 0xFF38}, {0x15, 0xFF39}, {0x15, 0xFF3A}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff58 - ff5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff60 - ff67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff68 - ff6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff70 - ff77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff78 - ff7f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff80 - ff87
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff88 - ff8f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff90 - ff97
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ff98 - ff9f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffa0 - ffa7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffa8 - ffaf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffb0 - ffb7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffb8 - ffbf
=====================================================================
Found a 68 line (597 tokens) duplication in the following files: 
Starting at line 318 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 690 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

void Test_Impl::setValues( sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
						   sal_Int16 nShort, sal_uInt16 nUShort,
						   sal_Int32 nLong, sal_uInt32 nULong,
						   sal_Int64 nHyper, sal_uInt64 nUHyper,
						   float fFloat, double fDouble,
						   test::TestEnum eEnum, const ::rtl::OUString& rStr,
						   const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
						   const ::com::sun::star::uno::Any& rAny,
						   const ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
						   const test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
{
	assign( _aData,
			bBool, cChar, nByte, nShort, nUShort, nLong, nULong, nHyper, nUHyper, fFloat, fDouble,
			eEnum, rStr, xTest, rAny, rSequence );
	_aStructData = rStruct;
}
//__________________________________________________________________________________________________
test::TestData Test_Impl::setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									  sal_Int16& nShort, sal_uInt16& nUShort,
									  sal_Int32& nLong, sal_uInt32& nULong,
									  sal_Int64& nHyper, sal_uInt64& nUHyper,
									  float& fFloat, double& fDouble,
									  test::TestEnum& eEnum, rtl::OUString& rStr,
									  ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									  ::com::sun::star::uno::Any& rAny,
									  ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									  test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
{
	assign( _aData,
			bBool, cChar, nByte, nShort, nUShort, nLong, nULong, nHyper, nUHyper, fFloat, fDouble,
			eEnum, rStr, xTest, rAny, rSequence );
	_aStructData = rStruct;
	return _aStructData;
}
//__________________________________________________________________________________________________
test::TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									 sal_Int16& nShort, sal_uInt16& nUShort,
									 sal_Int32& nLong, sal_uInt32& nULong,
									 sal_Int64& nHyper, sal_uInt64& nUHyper,
									 float& fFloat, double& fDouble,
									 test::TestEnum& eEnum, rtl::OUString& rStr,
									 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									 ::com::sun::star::uno::Any& rAny,
									 ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									 test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
{
	 bBool = _aData.Bool;
	 cChar = _aData.Char;
	 nByte = _aData.Byte;
	 nShort = _aData.Short;
	 nUShort = _aData.UShort;
	 nLong = _aData.Long;
	 nULong = _aData.ULong;
	 nHyper = _aData.Hyper;
	 nUHyper = _aData.UHyper;
	 fFloat = _aData.Float;
	 fDouble = _aData.Double;
	 eEnum = _aData.Enum;
	 rStr = _aData.String;
	 xTest = _aData.Interface;
	 rAny = _aData.Any;
	 rSequence = _aData.Sequence;
	 rStruct = _aStructData;
	 return _aStructData;
}
=====================================================================
Found a 81 line (596 tokens) duplication in the following files: 
Starting at line 2630 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3059 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

							 Xki * pMatX->GetDouble(k,j);
						pQ->PutDouble( sumXkiXkj, j+1, i+1);
						pQ->PutDouble( sumXkiXkj, i+1, j+1);
					}
				}
			}
		}
		pQ->PutDouble((double)N, 0, 0);
		if (bConstant)
		{
			SCSIZE S, L;
			for (S = 0; S < M+1; S++)
			{
				i = S;
				while (i < M+1 && pQ->GetDouble(i, S) == 0.0)
					i++;
				if (i >= M+1)
				{
					SetNoValue();
					return;
				}
				double fVal;
				for (L = 0; L < M+2; L++)
				{
					fVal = pQ->GetDouble(S, L);
					pQ->PutDouble(pQ->GetDouble(i, L), S, L);
					pQ->PutDouble(fVal, i, L);
				}
				fVal = 1.0/pQ->GetDouble(S, S);
				for (L = 0; L < M+2; L++)
					pQ->PutDouble(pQ->GetDouble(S, L)*fVal, S, L);
				for (i = 0; i < M+1; i++)
				{
					if (i != S)
					{
						fVal = -pQ->GetDouble(i, S);
						for (L = 0; L < M+2; L++)
							pQ->PutDouble(
								pQ->GetDouble(i,L)+fVal*pQ->GetDouble(S,L),i,L);
					}
				}
			}
		}
		else
		{
			SCSIZE S, L;
			for (S = 1; S < M+1; S++)
			{
				i = S;
				while (i < M+1 && pQ->GetDouble(i, S) == 0.0)
					i++;
				if (i >= M+1)
				{
					SetNoValue();
					return;
				}
				double fVal;
				for (L = 1; L < M+2; L++)
				{
					fVal = pQ->GetDouble(S, L);
					pQ->PutDouble(pQ->GetDouble(i, L), S, L);
					pQ->PutDouble(fVal, i, L);
				}
				fVal = 1.0/pQ->GetDouble(S, S);
				for (L = 1; L < M+2; L++)
					pQ->PutDouble(pQ->GetDouble(S, L)*fVal, S, L);
				for (i = 1; i < M+1; i++)
				{
					if (i != S)
					{
						fVal = -pQ->GetDouble(i, S);
						for (L = 1; L < M+2; L++)
							pQ->PutDouble(
								pQ->GetDouble(i,L)+fVal*pQ->GetDouble(S,L),i,L);
					}
				}
				pQ->PutDouble(0.0, 0, M+1);
			}
		}
		for (i = 0; i < M+1; i++)
			pResMat->PutDouble(exp(pQ->GetDouble(M-i,M+1)), i, 0);
=====================================================================
Found a 94 line (593 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/sddetect.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/swdetect.cxx

::rtl::OUString SAL_CALL SwFilterDetect::detect( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lDescriptor ) throw( ::com::sun::star::uno::RuntimeException )
{
    REFERENCE< XInputStream > xStream;
    REFERENCE< XContent > xContent;
    REFERENCE< XInteractionHandler > xInteraction;
    String aURL;
	::rtl::OUString sTemp;
    String aTypeName;            // a name describing the type (from MediaDescriptor, usually from flat detection)
    String aPreselectedFilterName;      // a name describing the filter to use (from MediaDescriptor, usually from UI action)

	::rtl::OUString aDocumentTitle; // interesting only if set in this method

	// opening as template is done when a parameter tells to do so and a template filter can be detected
    // (otherwise no valid filter would be found) or if the detected filter is a template filter and
	// there is no parameter that forbids to open as template
	sal_Bool bOpenAsTemplate = sal_False;
    sal_Bool bWasReadOnly = sal_False, bReadOnly = sal_False;

	sal_Bool bRepairPackage = sal_False;
	sal_Bool bRepairAllowed = sal_False;

	// now some parameters that can already be in the array, but may be overwritten or new inserted here
	// remember their indices in the case new values must be added to the array
	sal_Int32 nPropertyCount = lDescriptor.getLength();
    sal_Int32 nIndexOfFilterName = -1;
    sal_Int32 nIndexOfInputStream = -1;
    sal_Int32 nIndexOfContent = -1;
    sal_Int32 nIndexOfReadOnlyFlag = -1;
    sal_Int32 nIndexOfTemplateFlag = -1;
    sal_Int32 nIndexOfDocumentTitle = -1;

    for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty )
	{
        // extract properties
        if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("URL")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
			aURL = sTemp;
		}
        else if( !aURL.Len() && lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("FileName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
			aURL = sTemp;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
            aTypeName = sTemp;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("FilterName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
            aPreselectedFilterName = sTemp;

            // if the preselected filter name is not correct, it must be erased after detection
            // remember index of property to get access to it later
            nIndexOfFilterName = nProperty;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("InputStream")) )
            nIndexOfInputStream = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("ReadOnly")) )
            nIndexOfReadOnlyFlag = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("UCBContent")) )
            nIndexOfContent = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("AsTemplate")) )
		{
			lDescriptor[nProperty].Value >>= bOpenAsTemplate;
            nIndexOfTemplateFlag = nProperty;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("InteractionHandler")) )
            lDescriptor[nProperty].Value >>= xInteraction;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("RapairPackage")) )
            lDescriptor[nProperty].Value >>= bRepairPackage;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentTitle")) )
            nIndexOfDocumentTitle = nProperty;
	}

    // can't check the type for external filters, so set the "dont" flag accordingly
    ::vos::OGuard aGuard( Application::GetSolarMutex() );
    //SfxFilterFlags nMust = SFX_FILTER_IMPORT, nDont = SFX_FILTER_NOTINSTALLED;

    SfxApplication* pApp = SFX_APP();
    SfxAllItemSet *pSet = new SfxAllItemSet( pApp->GetPool() );
    TransformParameters( SID_OPENDOC, lDescriptor, *pSet );
    SFX_ITEMSET_ARG( pSet, pItem, SfxBoolItem, SID_DOC_READONLY, FALSE );

    bWasReadOnly = pItem && pItem->GetValue();

	const SfxFilter* pFilter = 0;
	String aFilterName;
	String aPrefix = String::CreateFromAscii( "private:factory/" );
	if( aURL.Match( aPrefix ) == aPrefix.Len() )
	{
		if( SvtModuleOptions().IsWriter() )
=====================================================================
Found a 96 line (592 tokens) duplication in the following files: 
Starting at line 972 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1069 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< sal_uInt64 >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", (a >>= b) && b == 1);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", (a >>= b) && b == 1);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testFloat() {
=====================================================================
Found a 75 line (591 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2590 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

struct cs_info iso9_tbl[] = {
{ 0x00, 0x00, 0x00 },
{ 0x00, 0x01, 0x01 },
{ 0x00, 0x02, 0x02 },
{ 0x00, 0x03, 0x03 },
{ 0x00, 0x04, 0x04 },
{ 0x00, 0x05, 0x05 },
{ 0x00, 0x06, 0x06 },
{ 0x00, 0x07, 0x07 },
{ 0x00, 0x08, 0x08 },
{ 0x00, 0x09, 0x09 },
{ 0x00, 0x0a, 0x0a },
{ 0x00, 0x0b, 0x0b },
{ 0x00, 0x0c, 0x0c },
{ 0x00, 0x0d, 0x0d },
{ 0x00, 0x0e, 0x0e },
{ 0x00, 0x0f, 0x0f },
{ 0x00, 0x10, 0x10 },
{ 0x00, 0x11, 0x11 },
{ 0x00, 0x12, 0x12 },
{ 0x00, 0x13, 0x13 },
{ 0x00, 0x14, 0x14 },
{ 0x00, 0x15, 0x15 },
{ 0x00, 0x16, 0x16 },
{ 0x00, 0x17, 0x17 },
{ 0x00, 0x18, 0x18 },
{ 0x00, 0x19, 0x19 },
{ 0x00, 0x1a, 0x1a },
{ 0x00, 0x1b, 0x1b },
{ 0x00, 0x1c, 0x1c },
{ 0x00, 0x1d, 0x1d },
{ 0x00, 0x1e, 0x1e },
{ 0x00, 0x1f, 0x1f },
{ 0x00, 0x20, 0x20 },
{ 0x00, 0x21, 0x21 },
{ 0x00, 0x22, 0x22 },
{ 0x00, 0x23, 0x23 },
{ 0x00, 0x24, 0x24 },
{ 0x00, 0x25, 0x25 },
{ 0x00, 0x26, 0x26 },
{ 0x00, 0x27, 0x27 },
{ 0x00, 0x28, 0x28 },
{ 0x00, 0x29, 0x29 },
{ 0x00, 0x2a, 0x2a },
{ 0x00, 0x2b, 0x2b },
{ 0x00, 0x2c, 0x2c },
{ 0x00, 0x2d, 0x2d },
{ 0x00, 0x2e, 0x2e },
{ 0x00, 0x2f, 0x2f },
{ 0x00, 0x30, 0x30 },
{ 0x00, 0x31, 0x31 },
{ 0x00, 0x32, 0x32 },
{ 0x00, 0x33, 0x33 },
{ 0x00, 0x34, 0x34 },
{ 0x00, 0x35, 0x35 },
{ 0x00, 0x36, 0x36 },
{ 0x00, 0x37, 0x37 },
{ 0x00, 0x38, 0x38 },
{ 0x00, 0x39, 0x39 },
{ 0x00, 0x3a, 0x3a },
{ 0x00, 0x3b, 0x3b },
{ 0x00, 0x3c, 0x3c },
{ 0x00, 0x3d, 0x3d },
{ 0x00, 0x3e, 0x3e },
{ 0x00, 0x3f, 0x3f },
{ 0x00, 0x40, 0x40 },
{ 0x01, 0x61, 0x41 },
{ 0x01, 0x62, 0x42 },
{ 0x01, 0x63, 0x43 },
{ 0x01, 0x64, 0x44 },
{ 0x01, 0x65, 0x45 },
{ 0x01, 0x66, 0x46 },
{ 0x01, 0x67, 0x47 },
{ 0x01, 0x68, 0x48 },
{ 0x01, 0xfd, 0x49 },
=====================================================================
Found a 96 line (589 tokens) duplication in the following files: 
Starting at line 778 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 875 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< sal_uInt32 >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", (a >>= b) && b == 1);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", (a >>= b) && b == 1);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", (a >>= b) && b == 1);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", (a >>= b) && b == 1);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", (a >>= b) && b == 1);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testHyper() {
=====================================================================
Found a 93 line (589 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 2104 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        == getCppuType< css::uno::Reference< Interface2a > >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
=====================================================================
Found a 137 line (589 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
        bridges::cpp_uno::shared::UnoInterfaceProxy * pThis 
            = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy *> (pUnoI);
	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{

        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));

		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
                        aVtableSlot.index += 1; //get then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{

        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 130 line (585 tokens) duplication in the following files: 
Starting at line 3387 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 1610 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

					 IdlOptions* pOptions)
	throw( CannotDumpException )
{
	if (typeDependencies.isGenerated(typeName))
		return sal_True;

	TypeReader reader(typeMgr.getTypeReader(typeName));

	if (!reader.isValid())
	{
		if (typeName.equals("/"))
			return sal_True;
		else
			return sal_False;
	}

	if( !checkTypeDependencies(typeMgr, typeDependencies, typeName))
		return sal_False;

	RTTypeClass typeClass = reader.getTypeClass();
	sal_Bool 	ret = sal_False;
	switch (typeClass)
	{
		case RT_TYPE_INTERFACE:
			{
				InterfaceType iType(reader, typeName, typeMgr, typeDependencies);
				ret = iType.dump(pOptions);
				if (ret) typeDependencies.setGenerated(typeName);
				ret = iType.dumpDependedTypes(pOptions);
			}
			break;
		case RT_TYPE_MODULE:
			{
				ModuleType mType(reader, typeName, typeMgr, typeDependencies);
				if (mType.hasConstants())
				{
					ret = mType.dump(pOptions);
					if (ret) typeDependencies.setGenerated(typeName);
//					ret = mType.dumpDependedTypes(pOptions);
				} else
				{
					typeDependencies.setGenerated(typeName);
					ret = sal_True;
				}
			}
			break;
		case RT_TYPE_STRUCT:
			{
				StructureType sType(reader, typeName, typeMgr, typeDependencies);
				ret = sType.dump(pOptions);
				if (ret) typeDependencies.setGenerated(typeName);
				ret = sType.dumpDependedTypes(pOptions);
			}
			break;
		case RT_TYPE_ENUM:
			{
				EnumType enType(reader, typeName, typeMgr, typeDependencies);
				ret = enType.dump(pOptions);
				if (ret) typeDependencies.setGenerated(typeName);
				ret = enType.dumpDependedTypes(pOptions);
			}
			break;
		case RT_TYPE_EXCEPTION:
			{
				ExceptionType eType(reader, typeName, typeMgr, typeDependencies);
				ret = eType.dump(pOptions);
				if (ret) typeDependencies.setGenerated(typeName);
				ret = eType.dumpDependedTypes(pOptions);
			}
			break;
		case RT_TYPE_TYPEDEF:
			{
				TypeDefType tdType(reader, typeName, typeMgr, typeDependencies);
				ret = tdType.dump(pOptions);
				if (ret) typeDependencies.setGenerated(typeName);
				ret = tdType.dumpDependedTypes(pOptions);
			}
			break;
		case RT_TYPE_CONSTANTS:
			{
				ConstantsType cType(reader, typeName, typeMgr, typeDependencies);
				if (cType.hasConstants())
				{
					ret = cType.dump(pOptions);
					if (ret) typeDependencies.setGenerated(typeName);
//					ret = cType.dumpDependedTypes(pOptions);
				} else
				{
					typeDependencies.setGenerated(typeName);
					ret = sal_True;
				}
			}
			break;
		case RT_TYPE_SERVICE:
		case RT_TYPE_OBJECT:
			ret = sal_True;
			break;
	}

	return ret;
}

//*************************************************************************
// scopedName
//*************************************************************************
OString scopedName(const OString& scope, const OString& type,
				   sal_Bool bNoNameSpace)
{
    sal_Int32 nPos = type.lastIndexOf( '/' );
	if (nPos == -1)
		return type;

	if (bNoNameSpace)
		return type.copy(nPos+1);

	OStringBuffer tmpBuf(type.getLength()*2);
    nPos = 0;
    do
	{
		tmpBuf.append("::");
		tmpBuf.append(type.getToken(0, '/', nPos));
	} while( nPos != -1 );

	return tmpBuf.makeStringAndClear();
}

//*************************************************************************
// shortScopedName
//*************************************************************************
OString scope(const OString& scope, const OString& type )
=====================================================================
Found a 225 line (584 tokens) duplication in the following files: 
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/eval.c
Starting at line 12 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_eval.c

struct value
{
    long val;
    int type;
};

/* conversion types */
#define	RELAT	1
#define	ARITH	2
#define	LOGIC	3
#define	SPCL	4
#define	SHIFT	5
#define	UNARY	6

/* operator priority, arity, and conversion type, indexed by tokentype */
struct pri
{
    char pri;
    char arity;
    char ctype;
}   priority[] =

{
    {
        0, 0, 0
    },                                  /* END */
    {
        0, 0, 0
    },                                  /* UNCLASS */
    {
        0, 0, 0
    },                                  /* NAME */
    {
        0, 0, 0
    },                                  /* NUMBER */
    {
        0, 0, 0
    },                                  /* STRING */
    {
        0, 0, 0
    },                                  /* CCON */
    {
        0, 0, 0
    },                                  /* NL */
    {
        0, 0, 0
    },                                  /* WS */
    {
        0, 0, 0
    },                                  /* DSHARP */
    {
        11, 2, RELAT
    },                                  /* EQ */
    {
        11, 2, RELAT
    },                                  /* NEQ */
    {
        12, 2, RELAT
    },                                  /* LEQ */
    {
        12, 2, RELAT
    },                                  /* GEQ */
    {
        13, 2, SHIFT
    },                                  /* LSH */
    {
        13, 2, SHIFT
    },                                  /* RSH */
    {
        7, 2, LOGIC
    },                                  /* LAND */
    {
        6, 2, LOGIC
    },                                  /* LOR */
    {
        0, 0, 0
    },                                  /* PPLUS */
    {
        0, 0, 0
    },                                  /* MMINUS */
    {
        0, 0, 0
    },                                  /* ARROW */
    {
        0, 0, 0
    },                                  /* SBRA */
    {
        0, 0, 0
    },                                  /* SKET */
    {
        3, 0, 0
    },                                  /* LP */
    {
        3, 0, 0
    },                                  /* RP */
    {
        0, 0, 0
    },                                  /* DOT */
    {
        10, 2, ARITH
    },                                  /* AND */
    {
        15, 2, ARITH
    },                                  /* STAR */
    {
        14, 2, ARITH
    },                                  /* PLUS */
    {
        14, 2, ARITH
    },                                  /* MINUS */
    {
        16, 1, UNARY
    },                                  /* TILDE */
    {
        16, 1, UNARY
    },                                  /* NOT */
    {
        15, 2, ARITH
    },                                  /* SLASH */
    {
        15, 2, ARITH
    },                                  /* PCT */
    {
        12, 2, RELAT
    },                                  /* LT */
    {
        12, 2, RELAT
    },                                  /* GT */
    {
        9, 2, ARITH
    },                                  /* CIRC */
    {
        8, 2, ARITH
    },                                  /* OR */
    {
        5, 2, SPCL
    },                                  /* QUEST */
    {
        5, 2, SPCL
    },                                  /* COLON */
    {
        0, 0, 0
    },                                  /* ASGN */
    {
        4, 2, 0
    },                                  /* COMMA */
    {
        0, 0, 0
    },                                  /* SHARP */
    {
        0, 0, 0
    },                                  /* SEMIC */
    {
        0, 0, 0
    },                                  /* CBRA */
    {
        0, 0, 0
    },                                  /* CKET */
    {
        0, 0, 0
    },                                  /* ASPLUS */
    {
        0, 0, 0
    },                                  /* ASMINUS */
    {
        0, 0, 0
    },                                  /* ASSTAR */
    {
        0, 0, 0
    },                                  /* ASSLASH */
    {
        0, 0, 0
    },                                  /* ASPCT */
    {
        0, 0, 0
    },                                  /* ASCIRC */
    {
        0, 0, 0
    },                                  /* ASLSH */
    {
        0, 0, 0
    },                                  /* ASRSH */
    {
        0, 0, 0
    },                                  /* ASOR */
    {
        0, 0, 0
    },                                  /* ASAND */
    {
        0, 0, 0
    },                                  /* ELLIPS */
    {
        0, 0, 0
    },                                  /* DSHARP1 */
    {
        0, 0, 0
    },                                  /* NAME1 */
    {
        0, 0, 0
    },                                  /* NAME2 */
    {
        16, 1, UNARY
    },                                  /* DEFINED */
    {
        16, 0, UNARY
    },                                  /* UMINUS */
    {
        16, 1, UNARY
    },                                  /* ARCHITECTURE */
};

int evalop(struct pri);
struct value tokval(Token *);
struct value vals[NSTAK], *vp;
enum toktype ops[NSTAK], *op;

/*
 * Evaluate an #if #elif #ifdef #ifndef line.  trp->tp points to the keyword.
 */
long
    eval(Tokenrow * trp, int kw)
{
    Token *tp;
    Nlist *np;
    int ntok, rnd;
=====================================================================
Found a 73 line (578 tokens) duplication in the following files: 
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/alpha.cxx
Starting at line 1050 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap.cxx

							for( long nSrcY = aRectSrc.Top(); nSrcY < nSrcEndY; nSrcY++, nDstY++ )
								for( long nSrcX = aRectSrc.Left(), nDstX = aRectDst.Left(); nSrcX < nSrcEndX; nSrcX++, nDstX++ )
									pWriteAcc->SetPixel( nDstY, nDstX, pReadAcc->GetPixel( nSrcY, nSrcX ) );

						ReleaseAccess( pWriteAcc );
						bRet = ( nWidth > 0L ) && ( nHeight > 0L );
					}

					pSrc->ReleaseAccess( pReadAcc );
				}
			}
		}
		else
		{
			Rectangle aRectSrc( rRectSrc );

			aRectSrc.Intersection( Rectangle( Point(), aSizePix ) );

			if( !aRectSrc.IsEmpty() && ( aRectSrc != aRectDst ) )
			{
				BitmapWriteAccess*	pWriteAcc = AcquireWriteAccess();

				if( pWriteAcc )
				{
					const long	nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
					const long	nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
					const long	nSrcX = aRectSrc.Left();
					const long	nSrcY = aRectSrc.Top();
					const long	nSrcEndX1 = nSrcX + nWidth - 1L;
					const long	nSrcEndY1 = nSrcY + nHeight - 1L;
					const long	nDstX = aRectDst.Left();
					const long	nDstY = aRectDst.Top();
					const long	nDstEndX1 = nDstX + nWidth - 1L;
					const long	nDstEndY1 = nDstY + nHeight - 1L;

					if( ( nDstX <= nSrcX ) && ( nDstY <= nSrcY ) )
					{
						for( long nY = nSrcY, nYN = nDstY; nY <= nSrcEndY1; nY++, nYN++ )
							for( long nX = nSrcX, nXN = nDstX; nX <= nSrcEndX1; nX++, nXN++ )
								pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) );
					}
					else if( ( nDstX <= nSrcX ) && ( nDstY >= nSrcY ) )
					{
						for( long nY = nSrcEndY1, nYN = nDstEndY1; nY >= nSrcY; nY--, nYN-- )
							for( long nX = nSrcX, nXN = nDstX; nX <= nSrcEndX1; nX++, nXN++ )
								pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) );
					}
					else if( ( nDstX >= nSrcX ) && ( nDstY <= nSrcY ) )
					{
						for( long nY = nSrcY, nYN = nDstY; nY <= nSrcEndY1; nY++, nYN++ )
							for( long nX = nSrcEndX1, nXN = nDstEndX1; nX >= nSrcX; nX--, nXN-- )
								pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) );
					}
					else
					{
						for( long nY = nSrcEndY1, nYN = nDstEndY1; nY >= nSrcY; nY--, nYN-- )
							for( long nX = nSrcEndX1, nXN = nDstEndX1; nX >= nSrcX; nX--, nXN-- )
								pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) );
					}

					ReleaseAccess( pWriteAcc );
					bRet = TRUE;
				}
			}
		}
	}

	return bRet;
}

// ------------------------------------------------------------------

BOOL Bitmap::Expand( ULONG nDX, ULONG nDY, const Color* pInitColor )
=====================================================================
Found a 133 line (577 tokens) duplication in the following files: 
Starting at line 2872 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zformat.cxx
Starting at line 3194 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zformat.cxx

                OutString += ImpIntToString( nIx, nSec, 2 );
            break;
            case NF_KEY_M:                  // M
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_MONTH, nNatNum );
            break;
            case NF_KEY_MM:                 // MM
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_MONTH, nNatNum );
            break;
            case NF_KEY_MMM:                // MMM
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_MONTH_NAME, nNatNum );
            break;
            case NF_KEY_MMMM:               // MMMM
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_MONTH_NAME, nNatNum );
            break;
            case NF_KEY_MMMMM:              // MMMMM
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_MONTH_NAME, nNatNum ).GetChar(0);
            break;
            case NF_KEY_Q:                  // Q
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_QUARTER, nNatNum );
            break;
            case NF_KEY_QQ:                 // QQ
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_QUARTER, nNatNum );
            break;
            case NF_KEY_D:                  // D
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_DAY, nNatNum );
            break;
            case NF_KEY_DD:                 // DD
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_DAY, nNatNum );
            break;
            case NF_KEY_DDD:                // DDD
            {
                if ( bOtherCalendar )
                    SwitchToGregorianCalendar( aOrgCalendar, fOrgDateTime );
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_DAY_NAME, nNatNum );
                if ( bOtherCalendar )
                    SwitchToOtherCalendar( aOrgCalendar, fOrgDateTime );
            }
            break;
            case NF_KEY_DDDD:               // DDDD
            {
                if ( bOtherCalendar )
                    SwitchToGregorianCalendar( aOrgCalendar, fOrgDateTime );
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_DAY_NAME, nNatNum );
                if ( bOtherCalendar )
                    SwitchToOtherCalendar( aOrgCalendar, fOrgDateTime );
            }
            break;
            case NF_KEY_YY:                 // YY
            {
                if ( bOtherCalendar )
                    SwitchToGregorianCalendar( aOrgCalendar, fOrgDateTime );
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_YEAR, nNatNum );
                if ( bOtherCalendar )
                    SwitchToOtherCalendar( aOrgCalendar, fOrgDateTime );
            }
            break;
            case NF_KEY_YYYY:               // YYYY
            {
                if ( bOtherCalendar )
                    SwitchToGregorianCalendar( aOrgCalendar, fOrgDateTime );
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_YEAR, nNatNum );
                if ( bOtherCalendar )
                    SwitchToOtherCalendar( aOrgCalendar, fOrgDateTime );
            }
            break;
            case NF_KEY_EC:                 // E
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_YEAR, nNatNum );
            break;
            case NF_KEY_EEC:                // EE
            case NF_KEY_R:                  // R
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_YEAR, nNatNum );
            break;
            case NF_KEY_NN:                 // NN
            case NF_KEY_AAA:                // AAA
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_DAY_NAME, nNatNum );
            break;
            case NF_KEY_NNN:                // NNN
            case NF_KEY_AAAA:               // AAAA
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_DAY_NAME, nNatNum );
            break;
            case NF_KEY_NNNN:               // NNNN
            {
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_DAY_NAME, nNatNum );
                OutString += rLoc().getLongDateDayOfWeekSep();
            }
            break;
            case NF_KEY_WW :                // WW
            {
                sal_Int16 nVal = rCal.getValue( CalendarFieldIndex::WEEK_OF_YEAR );
                OutString += ImpIntToString( nIx, nVal );
            }
            break;
            case NF_KEY_G:                  // G
                ImpAppendEraG( OutString, rCal, nNatNum );
            break;
            case NF_KEY_GG:                 // GG
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::SHORT_ERA, nNatNum );
            break;
            case NF_KEY_GGG:                // GGG
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_ERA, nNatNum );
            break;
            case NF_KEY_RR:                 // RR => GGGEE
                OutString += rCal.getDisplayString(
                        CalendarDisplayCode::LONG_YEAR_AND_ERA, nNatNum );
            break;
        }
    }
    if ( aOrgCalendar.Len() )
        rCal.loadCalendar( aOrgCalendar, rLoc().getLocale() );  // restore calendar
    return bRes;
}

BOOL SvNumberformat::ImpGetNumberOutput(double fNumber,
=====================================================================
Found a 106 line (576 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

            pJobSetup->mnPaperBin = 0;
    }
	

	// copy the whole context
	if( pJobSetup->mpDriverData )
		rtl_freeMemory( pJobSetup->mpDriverData );

	int nBytes;
	void* pBuffer = NULL;
	if( rData.getStreamBuffer( pBuffer, nBytes ) )
	{
		pJobSetup->mnDriverDataLen = nBytes;
		pJobSetup->mpDriverData = (BYTE*)pBuffer;
	}
	else
	{
		pJobSetup->mnDriverDataLen = 0;
		pJobSetup->mpDriverData = NULL;
	}
}

static bool passFileToCommandLine( const String& rFilename, const String& rCommandLine, bool bRemoveFile = true )
{
	bool bSuccess = false;

	rtl_TextEncoding aEncoding = osl_getThreadTextEncoding();
	ByteString aCmdLine( rCommandLine, aEncoding );
	ByteString aFilename( rFilename, aEncoding );

	bool bPipe = aCmdLine.Search( "(TMP)" ) != STRING_NOTFOUND ? false : true;

	// setup command line for exec
	if( ! bPipe )
		while( aCmdLine.SearchAndReplace( "(TMP)", aFilename ) != STRING_NOTFOUND )
			;

#if OSL_DEBUG_LEVEL > 1
	fprintf( stderr, "%s commandline: \"%s\"\n",
			 bPipe ? "piping to" : "executing",
			 aCmdLine.GetBuffer() );
    struct stat aStat;
    if( stat( aFilename.GetBuffer(), &aStat ) )
        fprintf( stderr, "stat( %s ) failed\n", aFilename.GetBuffer() );
    fprintf( stderr, "Tmp file %s has modes: %o\n", aFilename.GetBuffer(), aStat.st_mode );
#endif
	const char* argv[4];
	if( ! ( argv[ 0 ] = getenv( "SHELL" ) ) )
		argv[ 0 ] = "/bin/sh";
	argv[ 1 ] = "-c";
	argv[ 2 ] = aCmdLine.GetBuffer();
	argv[ 3 ] = 0;

	bool bHavePipes = false;
	int pid, fd[2];

	if( bPipe )
		bHavePipes = pipe( fd ) ? false : true;
	if( ( pid = fork() ) > 0 )
	{
		if( bPipe && bHavePipes )
		{
			close( fd[0] );
			char aBuffer[ 2048 ];
			FILE* fp = fopen( aFilename.GetBuffer(), "r" );
			while( fp && ! feof( fp ) )
			{
				int nBytes = fread( aBuffer, 1, sizeof( aBuffer ), fp );
				if( nBytes )
					write( fd[ 1 ], aBuffer, nBytes );
			}
			fclose( fp );
			close( fd[ 1 ] );
		}
		int status = 0;
		waitpid( pid, &status, 0 );
		if( ! status )
			bSuccess = true;
	}
	else if( ! pid )
	{
		if( bPipe && bHavePipes )
		{
			close( fd[1] );
			if( fd[0] != STDIN_FILENO ) // not probable, but who knows :)
				dup2( fd[0], STDIN_FILENO );
		}
		execv( argv[0], const_cast<char**>(argv) );
		fprintf( stderr, "failed to execute \"%s\"\n", aCmdLine.GetBuffer() );
		_exit( 1 );
	}
	else
		fprintf( stderr, "failed to fork\n" );

	// clean up the mess
    if( bRemoveFile )
        unlink( aFilename.GetBuffer() );

	return bSuccess;
}

static bool sendAFax( const String& rFaxNumber, const String& rFileName, const String& rCommand )
{
    std::list< OUString > aFaxNumbers;

	if( ! rFaxNumber.Len() )
=====================================================================
Found a 94 line (575 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svppspgraphics.cxx
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/pspgraphics.cxx

    DBG_ASSERT( !bSet, "Error: PrinterGfx::SetXORMode() not implemented" );
}

void PspGraphics::drawPixel( long nX, long nY )
{
    m_pPrinterGfx->DrawPixel (Point(nX, nY));
}

void PspGraphics::drawPixel( long nX, long nY, SalColor nSalColor )
{
    psp::PrinterColor aColor (SALCOLOR_RED   (nSalColor),
                              SALCOLOR_GREEN (nSalColor),
                              SALCOLOR_BLUE  (nSalColor));
    m_pPrinterGfx->DrawPixel (Point(nX, nY), aColor);
}

void PspGraphics::drawLine( long nX1, long nY1, long nX2, long nY2 )
{
    m_pPrinterGfx->DrawLine (Point(nX1, nY1), Point(nX2, nY2));
}

void PspGraphics::drawRect( long nX, long nY, long nDX, long nDY )
{
    m_pPrinterGfx->DrawRect (Rectangle(Point(nX, nY), Size(nDX, nDY)));
}

void PspGraphics::drawPolyLine( ULONG nPoints, const SalPoint *pPtAry )
{
    m_pPrinterGfx->DrawPolyLine (nPoints, (Point*)pPtAry);
}

void PspGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
{
	// Point must be equal to SalPoint! see vcl/inc/salgtype.hxx
    m_pPrinterGfx->DrawPolygon (nPoints, (Point*)pPtAry);
}

void PspGraphics::drawPolyPolygon( sal_uInt32			nPoly,
								   const sal_uInt32   *pPoints,
								   PCONSTSALPOINT  *pPtAry )
{
    m_pPrinterGfx->DrawPolyPolygon (nPoly, pPoints, (const Point**)pPtAry);
}

sal_Bool PspGraphics::drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry )
{
    m_pPrinterGfx->DrawPolyLineBezier (nPoints, (Point*)pPtAry, pFlgAry);
    return sal_True;
}

sal_Bool PspGraphics::drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry )
{
    m_pPrinterGfx->DrawPolygonBezier (nPoints, (Point*)pPtAry, pFlgAry);
    return sal_True;
}

sal_Bool PspGraphics::drawPolyPolygonBezier( sal_uInt32 nPoly,
                                             const sal_uInt32* pPoints,
                                             const SalPoint* const* pPtAry,
                                             const BYTE* const* pFlgAry )
{
	// Point must be equal to SalPoint! see vcl/inc/salgtype.hxx
    m_pPrinterGfx->DrawPolyPolygonBezier (nPoly, pPoints, (Point**)pPtAry, (BYTE**)pFlgAry);
    return sal_True;
}

void PspGraphics::invert( ULONG,
                          const SalPoint*,
                          SalInvert )
{
    DBG_ASSERT( 0, "Error: PrinterGfx::Invert() not implemented" );
}
BOOL PspGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize )
{
    return m_pPrinterGfx->DrawEPS( Rectangle( Point( nX, nY ), Size( nWidth, nHeight ) ), pPtr, nSize );
}

void PspGraphics::copyBits( const SalTwoRect*,
                            SalGraphics* )
{
    DBG_ERROR( "Error: PrinterGfx::CopyBits() not implemented" );
}

void PspGraphics::copyArea ( long,long,long,long,long,long,USHORT )
{
    DBG_ERROR( "Error: PrinterGfx::CopyArea() not implemented" );
}

void PspGraphics::drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap )
{
    Rectangle aSrc (Point(pPosAry->mnSrcX, pPosAry->mnSrcY),
                    Size(pPosAry->mnSrcWidth, pPosAry->mnSrcHeight));
    Rectangle aDst (Point(pPosAry->mnDestX, pPosAry->mnDestY),
                    Size(pPosAry->mnDestWidth, pPosAry->mnDestHeight));
=====================================================================
Found a 93 line (574 tokens) duplication in the following files: 
Starting at line 2101 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 2217 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    css::uno::Any a = css::uno::Any(css::uno::Reference< Interface2a >());
    CPPUNIT_ASSERT(
        a.getValueType()
        == getCppuType< css::uno::Reference< Interface2a > >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > b(new Impl1);
=====================================================================
Found a 142 line (571 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sprophelp.cxx
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/thesaurus/libnth/ntprophelp.cxx

using namespace osl;
using namespace rtl;
using namespace com::sun::star;
using namespace com::sun::star::beans;
using namespace com::sun::star::lang;
using namespace com::sun::star::uno;
using namespace com::sun::star::linguistic2;
using namespace linguistic;


#define A2OU(x)	::rtl::OUString::createFromAscii( x )

///////////////////////////////////////////////////////////////////////////

	
PropertyChgHelper::PropertyChgHelper(
		const Reference< XInterface > & rxSource,
		Reference< XPropertySet > &rxPropSet,
		const char *pPropNames[], USHORT nPropCount ) :
    aPropNames          (nPropCount),
    xMyEvtObj           (rxSource),
    aLngSvcEvtListeners (GetLinguMutex()),
    xPropSet            (rxPropSet)
{
	OUString *pName = aPropNames.getArray();
	for (INT32 i = 0;  i < nPropCount;  ++i)
	{
		pName[i] = A2OU( pPropNames[i] );
	}
}


/*PropertyChgHelper::PropertyChgHelper( const PropertyChgHelper &rHelper ) :
	aLngSvcEvtListeners	(GetLinguMutex())
{
	xPropSet	= rHelper.xPropSet;
	aPropNames	= rHelper.aPropNames;
	AddAsPropListener();
	
	xMyEvtObj	= rHelper.xMyEvtObj;
} */


PropertyChgHelper::~PropertyChgHelper()
{	
}


void PropertyChgHelper::AddAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->addPropertyChangeListener( pPropName[i], this );
		}
	}
}

void PropertyChgHelper::RemoveAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->removePropertyChangeListener( pPropName[i], this );
		}
	}
}
		 

void PropertyChgHelper::LaunchEvent( const LinguServiceEvent &rEvt )
{
	cppu::OInterfaceIteratorHelper aIt( aLngSvcEvtListeners );
	while (aIt.hasMoreElements())
	{
		Reference< XLinguServiceEventListener > xRef( aIt.next(), UNO_QUERY );
		if (xRef.is())
			xRef->processLinguServiceEvent( rEvt );
	}
}


void SAL_CALL PropertyChgHelper::disposing( const EventObject& rSource ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	if (rSource.Source == xPropSet)
	{
		RemoveAsPropListener();
		xPropSet = NULL;
		aPropNames.realloc( 0 );
	}
}
    
	
sal_Bool SAL_CALL 
	PropertyChgHelper::addLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.addInterface( rxListener ) != nCount;
	}
	return bRes;
}


sal_Bool SAL_CALL 
	PropertyChgHelper::removeLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.removeInterface( rxListener ) != nCount;
	}
	return bRes;
}

///////////////////////////////////////////////////////////////////////////

static const char *aSP[] =
{
	UPN_IS_GERMAN_PRE_REFORM,
	UPN_IS_IGNORE_CONTROL_CHARACTERS,
	UPN_IS_USE_DICTIONARY_LIST,
=====================================================================
Found a 99 line (570 tokens) duplication in the following files: 
Starting at line 360 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uiconfigurationmanager.cxx

    UIElementType& rElementTypeData = m_aUIElements[nElementType];

    Reference< XStorage > xElementTypeStorage = rElementTypeData.xStorage;
    if ( xElementTypeStorage.is() && aUIElementData.aName.getLength() )
    {
        try
        {
            Reference< XStream > xStream = xElementTypeStorage->openStreamElement( aUIElementData.aName, ElementModes::READ );
            Reference< XInputStream > xInputStream = xStream->getInputStream();

            if ( xInputStream.is() )
            {
                switch ( nElementType )
                {
                    case ::com::sun::star::ui::UIElementType::UNKNOWN:
                    break;

                    case ::com::sun::star::ui::UIElementType::MENUBAR:
                    {
                        try
                        {
                            MenuConfiguration aMenuCfg( m_xServiceManager );
                            Reference< XIndexAccess > xContainer( aMenuCfg.CreateMenuBarConfigurationFromXML( xInputStream ));
                            RootItemContainer* pRootItemContainer = RootItemContainer::GetImplementation( xContainer );
                            if ( pRootItemContainer )
                                aUIElementData.xSettings = Reference< XIndexAccess >( static_cast< OWeakObject * >( new ConstItemContainer( pRootItemContainer, sal_True ) ), UNO_QUERY );
                            else
                                aUIElementData.xSettings = Reference< XIndexAccess >( static_cast< OWeakObject * >( new ConstItemContainer( xContainer, sal_True ) ), UNO_QUERY );
                            return;
                        }
                        catch ( ::com::sun::star::lang::WrappedTargetException& )
                        {
                        }
                    }
                    break;

                    case ::com::sun::star::ui::UIElementType::POPUPMENU:
                    {
                        break;
                    }

                    case ::com::sun::star::ui::UIElementType::TOOLBAR:
                    {
                        try
                        {
                            Reference< XIndexContainer > xIndexContainer( static_cast< OWeakObject * >( new RootItemContainer() ), UNO_QUERY );
                            ToolBoxConfiguration::LoadToolBox( m_xServiceManager, xInputStream, xIndexContainer );
                            RootItemContainer* pRootItemContainer = RootItemContainer::GetImplementation( xIndexContainer );
                            aUIElementData.xSettings = Reference< XIndexAccess >( static_cast< OWeakObject * >( new ConstItemContainer( pRootItemContainer, sal_True ) ), UNO_QUERY );
                            return;
                        }
                        catch ( ::com::sun::star::lang::WrappedTargetException& )
                        {
                        }

                        break;
                    }

                    case ::com::sun::star::ui::UIElementType::STATUSBAR:
                    {
                        try
                        {
                            Reference< XIndexContainer > xIndexContainer( static_cast< OWeakObject * >( new RootItemContainer() ), UNO_QUERY );
                            StatusBarConfiguration::LoadStatusBar( m_xServiceManager, xInputStream, xIndexContainer );
                            RootItemContainer* pRootItemContainer = RootItemContainer::GetImplementation( xIndexContainer );
                            aUIElementData.xSettings = Reference< XIndexAccess >( static_cast< OWeakObject * >( new ConstItemContainer( pRootItemContainer, sal_True ) ), UNO_QUERY );
                            return;
                        }
                        catch ( ::com::sun::star::lang::WrappedTargetException& )
                        {
                        }
                        
                        break;
                    }

                    case ::com::sun::star::ui::UIElementType::FLOATINGWINDOW:
                    {
                        break;
                    }
                }
            }
        }
        catch ( ::com::sun::star::embed::InvalidStorageException& )
        {
        }
		catch (	::com::sun::star::lang::IllegalArgumentException& )
        {
        }
        catch ( ::com::sun::star::io::IOException& )
        {
        }
        catch ( ::com::sun::star::embed::StorageWrappedTargetException& )
        {
        }
    }

    // At least we provide an empty settings container!
    aUIElementData.xSettings = Reference< XIndexAccess >( static_cast< OWeakObject * >( new ConstItemContainer()), UNO_QUERY );
}
=====================================================================
Found a 127 line (568 tokens) duplication in the following files: 
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx

}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
        = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;

	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );

			// dependent dispatch
            aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );

			typelib_typedescriptionreference_release( pReturnTypeRef );
		}

		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );

                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );

		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 128 line (566 tokens) duplication in the following files: 
Starting at line 325 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/uno2cpp.cxx

        TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
    }
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
    void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
        = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
            aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
            {
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 20 line (565 tokens) duplication in the following files: 
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0,// 1690 - 169f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16a0 - 16af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16b0 - 16bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16c0 - 16cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16d0 - 16df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16e0 - 16ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16f0 - 16ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1700 - 170f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1710 - 171f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 11 line (563 tokens) duplication in the following files: 
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 562 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

/* A */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* B */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* C */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* D */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* E */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* F */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* G */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* H */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* I */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* J */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* K */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
=====================================================================
Found a 66 line (562 tokens) duplication in the following files: 
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx

			::cppu::extractInterface(xTable,xNames->getByName(*pTabBegin));
			aRow[3] = new ORowSetValueDecorator(*pTabBegin);

			Reference< XNameAccess> xColumns = xTable->getColumns();
			if(!xColumns.is())
				throw SQLException();

			Sequence< ::rtl::OUString> aColNames(xColumns->getElementNames());

			const ::rtl::OUString* pBegin = aColNames.getConstArray();
			const ::rtl::OUString* pEnd = pBegin + aColNames.getLength();
			Reference< XPropertySet> xColumn;
			for(sal_Int32 i=1;pBegin != pEnd;++pBegin,++i)
			{
				if(match(columnNamePattern,*pBegin,'\0'))
				{
					aRow[4] = new ORowSetValueDecorator(*pBegin);

					::cppu::extractInterface(xColumn,xColumns->getByName(*pBegin));
					OSL_ENSURE(xColumn.is(),"Columns contains a column who isn't a fastpropertyset!");
					aRow[5] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))));
					aRow[6] = new ORowSetValueDecorator(getString(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME))));
					aRow[7] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION))));
					aRow[9] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE))));
					aRow[11] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISNULLABLE))));
					aRow[13] = new ORowSetValueDecorator(getString(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DEFAULTVALUE))));

					switch((sal_Int32)aRow[5]->getValue())
					{
					case DataType::CHAR:
					case DataType::VARCHAR:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)254);
						break;
					case DataType::LONGVARCHAR:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)65535);
						break;
					default:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)0);
					}
					aRow[17] = new ORowSetValueDecorator(i);
					switch(sal_Int32(aRow[11]->getValue()))
					{
					case ColumnValue::NO_NULLS:
						aRow[18]  = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("NO"));
						break;
					case ColumnValue::NULLABLE:
						aRow[18]  = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("YES"));
						break;
					default:
						aRow[18]  = new ORowSetValueDecorator(::rtl::OUString());
					}
					aRows.push_back(aRow);
				}
			}
		}
	}

	::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet();
	Reference< XResultSet > xRef = pResult;
	pResult->setColumnsMap();
	pResult->setRows(aRows);

	return xRef;
}
// -------------------------------------------------------------------------
Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getVersionColumns(
=====================================================================
Found a 128 line (561 tokens) duplication in the following files: 
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

	free( pCppStackStart );
#endif
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
    void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
        = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
            aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 129 line (560 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/ostring/rtl_OString2.cxx
Starting at line 364 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/oustring/rtl_OUString2.cxx

                double nValueToDouble = suValue.toDouble();
                //t_print("result data is %e\n", nValueToDouble);

                bool bEqualResult = is_double_equal(nValueToDouble, nValueATOF);
                CPPUNIT_ASSERT_MESSAGE("Values are not equal.", bEqualResult == true);
            }
        
        void toDouble_test(rtl::OString const& _sValue)
            {
                toDouble_test_impl(_sValue);

                // test also the negativ part.
                rtl::OString sNegativValue("-");
                sNegativValue += _sValue;
                toDouble_test_impl(sNegativValue);
            }
        
        // insert your test code here.
        void toDouble_selftest()
            {
                t_print("Start selftest:\n");
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.01) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.0001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.00001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.000001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.0000001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.00000001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.000000001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.0000000001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.00000000001) == false);                
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.000000000001) == false);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.0000000000001) == false);
                // we check til 15 values after comma
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.00000000000001) == true);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.000000000000001) == true);
                CPPUNIT_ASSERT (is_double_equal(1.0, 1.0000000000000001) == true);
                t_print("Selftest done.\n");
            }
        
        void toDouble_test_3()
            {
                rtl::OString sValue("3");
                toDouble_test(sValue);
            }
        void toDouble_test_3_5()
            {
                rtl::OString sValue("3.5");
                toDouble_test(sValue);
            }
        void toDouble_test_3_0625()
            {
                rtl::OString sValue("3.0625");
                toDouble_test(sValue);
            }
        void toDouble_test_pi()
            {
                // value from http://www.angio.net/pi/digits/50.txt
                rtl::OString sValue("3.141592653589793238462643383279502884197169399375");
                toDouble_test(sValue);
            }
        
        void toDouble_test_1()
            {
                rtl::OString sValue("1");
                toDouble_test(sValue);
            }
        void toDouble_test_10()
            {
                rtl::OString sValue("10");
                toDouble_test(sValue);
            }
        void toDouble_test_100()
            {
                rtl::OString sValue("100");
                toDouble_test(sValue);
            }
        void toDouble_test_1000()
            {
                rtl::OString sValue("1000");
                toDouble_test(sValue);
            }
        void toDouble_test_10000()
            {
                rtl::OString sValue("10000");
                toDouble_test(sValue);
            }
        void toDouble_test_1e99()
            {
                rtl::OString sValue("1e99");
                toDouble_test(sValue);
            }
        void toDouble_test_1e_n99()
            {
                rtl::OString sValue("1e-99");
                toDouble_test(sValue);
            }
        void toDouble_test_1e308()
            {
                rtl::OString sValue("1e308");
                toDouble_test(sValue);
            }
        
        // Change the following lines only, if you add, remove or rename 
        // member functions of the current class, 
        // because these macros are need by auto register mechanism.
        
        CPPUNIT_TEST_SUITE(toDouble);
        CPPUNIT_TEST(toDouble_selftest);
        
        CPPUNIT_TEST(toDouble_test_3);
        CPPUNIT_TEST(toDouble_test_3_5);
        CPPUNIT_TEST(toDouble_test_3_0625);
        CPPUNIT_TEST(toDouble_test_pi);
        CPPUNIT_TEST(toDouble_test_1);
        CPPUNIT_TEST(toDouble_test_10);
        CPPUNIT_TEST(toDouble_test_100);
        CPPUNIT_TEST(toDouble_test_1000);
        CPPUNIT_TEST(toDouble_test_10000);
        CPPUNIT_TEST(toDouble_test_1e99);
        CPPUNIT_TEST(toDouble_test_1e_n99);
        CPPUNIT_TEST(toDouble_test_1e308);
        CPPUNIT_TEST_SUITE_END();
    }; // class toDouble

// -----------------------------------------------------------------------------
// - toFloat (tests)
// -----------------------------------------------------------------------------
    class toFloat : public CppUnit::TestFixture
=====================================================================
Found a 138 line (560 tokens) duplication in the following files: 
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hprophelp.cxx
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sprophelp.cxx

using namespace osl;
using namespace rtl;
using namespace com::sun::star;
using namespace com::sun::star::beans;
using namespace com::sun::star::lang;
using namespace com::sun::star::uno;
using namespace com::sun::star::linguistic2;
using namespace linguistic;


#define A2OU(x)	::rtl::OUString::createFromAscii( x )

///////////////////////////////////////////////////////////////////////////

	
PropertyChgHelper::PropertyChgHelper(
		const Reference< XInterface > & rxSource,
		Reference< XPropertySet > &rxPropSet,
		const char *pPropNames[], USHORT nPropCount ) :
    aPropNames          (nPropCount),
    xMyEvtObj           (rxSource),
    aLngSvcEvtListeners (GetLinguMutex()),
    xPropSet            (rxPropSet)
{
	OUString *pName = aPropNames.getArray();
	for (INT32 i = 0;  i < nPropCount;  ++i)
	{
		pName[i] = A2OU( pPropNames[i] );
	}
}


/*PropertyChgHelper::PropertyChgHelper( const PropertyChgHelper &rHelper ) :
	aLngSvcEvtListeners	(GetLinguMutex())
{
	xPropSet	= rHelper.xPropSet;
	aPropNames	= rHelper.aPropNames;
	AddAsPropListener();
	
	xMyEvtObj	= rHelper.xMyEvtObj;
} */


PropertyChgHelper::~PropertyChgHelper()
{	
}


void PropertyChgHelper::AddAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->addPropertyChangeListener( pPropName[i], this );
		}
	}
}

void PropertyChgHelper::RemoveAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->removePropertyChangeListener( pPropName[i], this );
		}
	}
}
		 

void PropertyChgHelper::LaunchEvent( const LinguServiceEvent &rEvt )
{
	cppu::OInterfaceIteratorHelper aIt( aLngSvcEvtListeners );
	while (aIt.hasMoreElements())
	{
		Reference< XLinguServiceEventListener > xRef( aIt.next(), UNO_QUERY );
		if (xRef.is())
			xRef->processLinguServiceEvent( rEvt );
	}
}


void SAL_CALL PropertyChgHelper::disposing( const EventObject& rSource ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	if (rSource.Source == xPropSet)
	{
		RemoveAsPropListener();
		xPropSet = NULL;
		aPropNames.realloc( 0 );
	}
}
    
	
sal_Bool SAL_CALL 
	PropertyChgHelper::addLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.addInterface( rxListener ) != nCount;
	}
	return bRes;
}


sal_Bool SAL_CALL 
	PropertyChgHelper::removeLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.removeInterface( rxListener ) != nCount;
	}
	return bRes;
}

///////////////////////////////////////////////////////////////////////////

static const char *aSP[] =
=====================================================================
Found a 126 line (560 tokens) duplication in the following files: 
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 373 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

}
}

//==================================================================================================

namespace bridges { namespace cpp_uno { namespace shared {
void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
        = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
            aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 77 line (556 tokens) duplication in the following files: 
Starting at line 2632 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3447 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

						pQ->PutDouble(pQ->GetDouble(j+1, i+1), i+1, j+1);
					}
				}
			}
		}
		pQ->PutDouble((double)N, 0, 0);
		if (bConstant)
		{
			SCSIZE S, L;
			for (S = 0; S < M+1; S++)
			{
				i = S;
				while (i < M+1 && pQ->GetDouble(i, S) == 0.0)
					i++;
				if (i >= M+1)
				{
					SetNoValue();
					return;
				}
				double fVal;
				for (L = 0; L < M+2; L++)
				{
					fVal = pQ->GetDouble(S, L);
					pQ->PutDouble(pQ->GetDouble(i, L), S, L);
					pQ->PutDouble(fVal, i, L);
				}
				fVal = 1.0/pQ->GetDouble(S, S);
				for (L = 0; L < M+2; L++)
					pQ->PutDouble(pQ->GetDouble(S, L)*fVal, S, L);
				for (i = 0; i < M+1; i++)
				{
					if (i != S)
					{
						fVal = -pQ->GetDouble(i, S);
						for (L = 0; L < M+2; L++)
							pQ->PutDouble(
								pQ->GetDouble(i,L)+fVal*pQ->GetDouble(S,L),i,L);
					}
				}
			}
		}
		else
		{
			SCSIZE S, L;
			for (S = 1; S < M+1; S++)
			{
				i = S;
				while (i < M+1 && pQ->GetDouble(i, S) == 0.0)
					i++;
				if (i >= M+1)
				{
					SetNoValue();
					return;
				}
				double fVal;
				for (L = 1; L < M+2; L++)
				{
					fVal = pQ->GetDouble(S, L);
					pQ->PutDouble(pQ->GetDouble(i, L), S, L);
					pQ->PutDouble(fVal, i, L);
				}
				fVal = 1.0/pQ->GetDouble(S, S);
				for (L = 1; L < M+2; L++)
					pQ->PutDouble(pQ->GetDouble(S, L)*fVal, S, L);
				for (i = 1; i < M+1; i++)
				{
					if (i != S)
					{
						fVal = -pQ->GetDouble(i, S);
						for (L = 1; L < M+2; L++)
							pQ->PutDouble(
								pQ->GetDouble(i,L)+fVal*pQ->GetDouble(S,L),i,L);
					}
				}
				pQ->PutDouble(0.0, 0, M+1);
			}
		}
=====================================================================
Found a 105 line (556 tokens) duplication in the following files: 
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 674 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

sal_Bool ModuleImageManager::implts_storeUserImages(
    ImageType nImageType,
    const uno::Reference< XStorage >& xUserImageStorage,
    const uno::Reference< XStorage >& xUserBitmapsStorage )
{
    ResetableGuard aGuard( m_aLock );

    if ( m_bModified )
    {
        ImageList* pImageList = implts_getUserImageList( nImageType );
        if ( pImageList->GetImageCount() > 0 )
        {
            ImageListsDescriptor aUserImageListInfo;
            aUserImageListInfo.pImageList = new ImageListDescriptor;

            ImageListItemDescriptor* pList = new ImageListItemDescriptor;
            aUserImageListInfo.pImageList->Insert( pList, 0 );

            pList->pImageItemList = new ImageItemListDescriptor;
            for ( USHORT i=0; i < pImageList->GetImageCount(); i++ )
            {
                ImageItemDescriptor* pItem = new ::framework::ImageItemDescriptor;

                pItem->nIndex = i;
                pItem->aCommandURL = pImageList->GetImageName( i );
                pList->pImageItemList->Insert( pItem, pList->pImageItemList->Count() );
            }

            pList->aURL = String::CreateFromAscii("Bitmaps/");
            pList->aURL += String::CreateFromAscii( BITMAP_FILE_NAMES[nImageType] );

            uno::Reference< XTransactedObject > xTransaction;
            uno::Reference< XOutputStream >     xOutputStream;
            uno::Reference< XStream > xStream = xUserImageStorage->openStreamElement( rtl::OUString::createFromAscii( IMAGELIST_XML_FILE[nImageType] ),
                                                                                      ElementModes::WRITE|ElementModes::TRUNCATE );
            if ( xStream.is() )
            {
                uno::Reference< XStream > xBitmapStream =
                    xUserBitmapsStorage->openStreamElement( rtl::OUString::createFromAscii( BITMAP_FILE_NAMES[nImageType] ),
                                                            ElementModes::WRITE|ElementModes::TRUNCATE );
                if ( xBitmapStream.is() )
                {
                    SvStream* pSvStream = utl::UcbStreamHelper::CreateStream( xBitmapStream );
                    {
                        vcl::PNGWriter aPngWriter( pImageList->GetAsHorizontalStrip() );
                        aPngWriter.Write( *pSvStream );
                    }
                    delete pSvStream;

                    // Commit user bitmaps storage
                    xTransaction = uno::Reference< XTransactedObject >( xUserBitmapsStorage, UNO_QUERY );
					if ( xTransaction.is() )
                    	xTransaction->commit();
                }

                xOutputStream = xStream->getOutputStream();
                if ( xOutputStream.is() )
                    ImagesConfiguration::StoreImages( m_xServiceManager, xOutputStream, aUserImageListInfo );

                // Commit user image storage
                xTransaction = uno::Reference< XTransactedObject >( xUserImageStorage, UNO_QUERY );
				if ( xTransaction.is() )
                	xTransaction->commit();
            }

            return sal_True;
        }
        else
        {
            // Remove the streams from the storage, if we have no data. We have to catch
            // the NoSuchElementException as it can be possible that there is no stream at all!
            try
            {
                xUserImageStorage->removeElement( rtl::OUString::createFromAscii( IMAGELIST_XML_FILE[nImageType] ));
            }
            catch ( ::com::sun::star::container::NoSuchElementException& )
            {
            }

            try
            {
                xUserBitmapsStorage->removeElement( rtl::OUString::createFromAscii( BITMAP_FILE_NAMES[nImageType] ));
            }
            catch ( ::com::sun::star::container::NoSuchElementException& )
            {
            }

            uno::Reference< XTransactedObject > xTransaction;
            
            // Commit user image storage
            xTransaction = uno::Reference< XTransactedObject >( xUserImageStorage, UNO_QUERY );
			if ( xTransaction.is() )
                xTransaction->commit();

            // Commit user bitmaps storage
            xTransaction = uno::Reference< XTransactedObject >( xUserBitmapsStorage, UNO_QUERY );
			if ( xTransaction.is() )
                xTransaction->commit();
            
            return sal_True;
        }
    }

    return sal_False;
}
=====================================================================
Found a 102 line (554 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/signer.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/verifier.cxx

		n_pCertStore = argv[3] ;
		n_hStoreHandle = CertOpenSystemStore( NULL, n_pCertStore ) ;
		if( n_hStoreHandle == NULL ) {
			fprintf( stderr, "Can not open the system cert store %s\n", n_pCertStore ) ;
			return 1 ;
		}
	} else {
		n_pCertStore = NULL ;
		n_hStoreHandle = NULL ;
	}
	xmlSecMSCryptoAppInit( n_pCertStore ) ;

	//Load XML document
	doc = xmlParseFile( argv[1] ) ;
	if( doc == NULL || xmlDocGetRootElement( doc ) == NULL ) {
		fprintf( stderr , "### Cannot load template xml document!\n" ) ;
		goto done ;
	}

	//Find the signature template
	tplNode = xmlSecFindNode( xmlDocGetRootElement( doc ), xmlSecNodeSignature, xmlSecDSigNs ) ;
	if( tplNode == NULL ) {
		fprintf( stderr , "### Cannot find the signature template!\n" ) ;
		goto done ;
	}

	//Find the element with ID attribute
	tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", ( xmlChar* )"http://openoffice.org/2000/office" ) ;
	if( tarNode == NULL ) {
		tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", NULL ) ;
	}
										
	//Find the "id" attrbute in the element
	if( tarNode != NULL ) {
		if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"id" ) ) != NULL ) {
			//NULL
		} else if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"Id" ) ) != NULL ) {
			//NULL
		} else {
			idAttr = NULL ;
		}
	}
										
	//Add ID to DOM
	if( idAttr != NULL ) {
		idValue = xmlNodeListGetString( tarNode->doc, idAttr->children, 1 ) ;
		if( idValue == NULL ) {
			fprintf( stderr , "### the ID value is NULL!\n" ) ;
			goto done ;
		}
										
		if( xmlAddID( NULL, doc, idValue, idAttr ) == NULL ) {
			fprintf( stderr , "### Can not add the ID value!\n" ) ;
			goto done ;
		}
	}

	//Reference handler
	//Find the signature reference
	tarNode = xmlSecFindNode( tplNode, xmlSecNodeReference, xmlSecDSigNs ) ;
	if( tarNode == NULL ) {
		fprintf( stderr , "### Cannot find the signature reference!\n" ) ;
		goto done ;
	}

	//Find the "URI" attrbute in the reference
	uriAttr = xmlHasProp( tarNode, ( xmlChar* )"URI" ) ;
	if( tarNode == NULL ) {
		fprintf( stderr , "### Cannot find URI of the reference!\n" ) ;
		goto done ;
	}

	//Get the "URI" attrbute value
	uriValue = xmlNodeListGetString( tarNode->doc, uriAttr->children, 1 ) ;
	if( uriValue == NULL ) {
		fprintf( stderr , "### the URI value is NULL!\n" ) ;
		goto done ;
	}

	if( strchr( ( const char* )uriValue, '/' ) != NULL && strchr( ( const char* )uriValue, '#' ) == NULL ) {
		fprintf( stdout , "### Find a stream URI [%s]\n", uriValue ) ;
	//	uri = new ::rtl::OUString( ( const sal_Unicode* )uriValue ) ;
		uri = new ::rtl::OUString( ( const sal_Char* )uriValue, xmlStrlen( uriValue ), RTL_TEXTENCODING_ASCII_US ) ;
	}

	if( uri != NULL ) {
		fprintf( stdout , "### Find the URI [%s]\n", OUStringToOString( *uri , RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
		Reference< XInputStream > xStream = createStreamFromFile( *uri ) ;
		if( !xStream.is() ) {
			fprintf( stderr , "### Can not get the URI stream!\n" ) ;
			goto done ;
		}

		xUriBinding = new OUriBinding( *uri, xStream ) ;
	}


	try {
		Reference< XMultiComponentFactory > xManager = NULL ;
		Reference< XComponentContext > xContext = NULL ;

		xManager = serviceManager( xContext , OUString::createFromAscii( "local" ),  OUString::createFromAscii( argv[2] ) ) ;
=====================================================================
Found a 97 line (553 tokens) duplication in the following files: 
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/prj.cxx
Starting at line 996 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/prj.cxx

StarWriter::StarWriter( GenericInformationList *pStandLst, ByteString &rVersion,         
	BOOL bLocal, const char *pSourceRoot )
/*****************************************************************************/
{
	ByteString sPath( rVersion );
	String sSrcRoot;
	if ( pSourceRoot )
		sSrcRoot = String::CreateFromAscii( pSourceRoot );

#ifdef UNX
	sPath += "/settings/UNXSOLARLIST";
#else
	sPath += "/settings/SOLARLIST";
#endif
	GenericInformation *pInfo = pStandLst->GetInfo( sPath, TRUE );

	if( pInfo && pInfo->GetValue().Len()) {
		ByteString sFile( pInfo->GetValue());
		if ( bLocal ) {
			IniManager aIniManager;
			aIniManager.ToLocal( sFile );
		}
		String sFileName( sFile, RTL_TEXTENCODING_ASCII_US );
		nStarMode = STAR_MODE_SINGLE_PARSE;
		Read( sFileName );
	}
	else {
		SolarFileList *pFileList = new SolarFileList();

		sPath = rVersion;
		sPath += "/drives";

		GenericInformation *pInfo2 = pStandLst->GetInfo( sPath, TRUE );
		if ( pInfo2 && pInfo2->GetSubList())  {
			GenericInformationList *pDrives = pInfo2->GetSubList();
			for ( ULONG i = 0; i < pDrives->Count(); i++ ) {
				GenericInformation *pDrive = pDrives->GetObject( i );
				if ( pDrive ) {
					DirEntry aEntry;
					BOOL bOk = FALSE;
					if ( sSrcRoot.Len()) {
						aEntry = DirEntry( sSrcRoot );
						bOk = TRUE;
					}
					else {
#ifdef UNX
						sPath = "UnixVolume";
						GenericInformation *pUnixVolume = pDrive->GetSubInfo( sPath );
						if ( pUnixVolume ) {
							String sRoot( pUnixVolume->GetValue(), RTL_TEXTENCODING_ASCII_US );
							aEntry = DirEntry( sRoot );
							bOk = TRUE;
				 		}
#else
						bOk = TRUE;
						String sRoot( *pDrive, RTL_TEXTENCODING_ASCII_US );
						sRoot += String::CreateFromAscii( "\\" );
						aEntry = DirEntry( sRoot );
#endif
					}
					if ( bOk ) {
						sPath = "projects";
						GenericInformation *pProjectsKey = pDrive->GetSubInfo( sPath, TRUE );
						if ( pProjectsKey ) {
							if ( !sSrcRoot.Len()) {
								sPath = rVersion;
								sPath += "/settings/PATH";
								GenericInformation *pPath = pStandLst->GetInfo( sPath, TRUE );
								if( pPath ) {
									ByteString sAddPath( pPath->GetValue());
#ifdef UNX
									sAddPath.SearchAndReplaceAll( "\\", "/" );
#else
									sAddPath.SearchAndReplaceAll( "/", "\\" );
#endif
									String ssAddPath( sAddPath, RTL_TEXTENCODING_ASCII_US );
									aEntry += DirEntry( ssAddPath );
								}
							}
							GenericInformationList *pProjects = pProjectsKey->GetSubList();
							if ( pProjects ) {
								String sPrjDir( String::CreateFromAscii( "prj" ));
								String sSolarFile( String::CreateFromAscii( "build.lst" ));

								for ( ULONG j = 0; j < pProjects->Count(); j++ ) {
									ByteString sProject( *pProjects->GetObject( j ));
									String ssProject( sProject, RTL_TEXTENCODING_ASCII_US );

									DirEntry aPrjEntry( aEntry );

									aPrjEntry += DirEntry( ssProject );
									aPrjEntry += DirEntry( sPrjDir );
									aPrjEntry += DirEntry( sSolarFile );

									pFileList->Insert( new String( aPrjEntry.GetFull()), LIST_APPEND );										   

									ByteString sFile( aPrjEntry.GetFull(), RTL_TEXTENCODING_ASCII_US );
=====================================================================
Found a 19 line (553 tokens) duplication in the following files: 
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1265 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18b0 - 18bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18c0 - 18cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18d0 - 18df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18e0 - 18ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18f0 - 18ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f00 - 1f0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f10 - 1f1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f20 - 1f2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f30 - 1f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f40 - 1f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f50 - 1f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f60 - 1f6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f70 - 1f7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f80 - 1f8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f90 - 1f9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1fa0 - 1faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,// 1fb0 - 1fbf
=====================================================================
Found a 89 line (552 tokens) duplication in the following files: 
Starting at line 484 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 585 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", (a >>= b) && b == 1);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", (a >>= b) && b == 1);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", (a >>= b) && b == 1);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", (a >>= b) && b == 1);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", (a >>= b) && b == 1);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", (a >>= b) && b == 1);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", (a >>= b) && b == 1);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", (a >>= b) && b == 1);
    }
    {
        sal_Unicode b = '2';
        if (boost::is_same< sal_Unicode, sal_uInt16 >::value) {
            CPPUNIT_ASSERT_MESSAGE("@sal_Unicode", (a >>= b) && b == 1);
        } else {
            CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
        }
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testUnsignedShort() {
=====================================================================
Found a 119 line (551 tokens) duplication in the following files: 
Starting at line 4422 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 4632 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    else if (p->nSprmsLen)  //Normal
    {
        // Length of actual sprm
        pRes->nMemLen = maSprmParser.GetSprmSize(pRes->nSprmId, pRes->pMemPos);
    }
}

void WW8PLCFMan::GetSprmEnd( short nIdx, WW8PLCFManResult* pRes ) const
{
    memset( pRes, 0, sizeof( WW8PLCFManResult ) );

    register const WW8PLCFxDesc* p = &aD[nIdx];

    if (!(p->pIdStk->empty()))
        pRes->nSprmId = p->pIdStk->top();       // get end position
    else
    {
        ASSERT( !this, "No Id on the Stack" );
        pRes->nSprmId = 0;
    }
}

void WW8PLCFMan::GetNoSprmStart( short nIdx, WW8PLCFManResult* pRes ) const
{
    register const WW8PLCFxDesc* p = &aD[nIdx];

    pRes->nCpPos = p->nStartPos;
    pRes->nMemLen = p->nSprmsLen;
    pRes->nCp2OrIdx = p->nCp2OrIdx;

    if( p == pFld )
        pRes->nSprmId = eFLD;
    else if( p == pFtn )
        pRes->nSprmId = eFTN;
    else if( p == pEdn )
        pRes->nSprmId = eEDN;
    else if( p == pBkm )
        pRes->nSprmId = eBKN;
    else if( p == pAnd )
        pRes->nSprmId = eAND;
    else if( p == pPcd )
    {
        //We slave the piece table attributes to the piece table, the piece
        //table attribute iterator contains the sprms for this piece.
        GetSprmStart( nIdx+1, pRes );
    }
    else
        pRes->nSprmId = 0;          // default: not found
}

void WW8PLCFMan::GetNoSprmEnd( short nIdx, WW8PLCFManResult* pRes ) const
{
    pRes->nMemLen = -1;     // Ende-Kennzeichen

    if( &aD[nIdx] == pBkm )
        pRes->nSprmId = eBKN;
    else if( &aD[nIdx] == pPcd )
    {
        //We slave the piece table attributes to the piece table, the piece
        //table attribute iterator contains the sprms for this piece.
        GetSprmEnd( nIdx+1, pRes );
    }
    else
        pRes->nSprmId = 0;
}

bool WW8PLCFMan::TransferOpenSprms(std::stack<USHORT> &rStack)
{
    for (int i = 0; i < nPLCF; ++i)
    {
        WW8PLCFxDesc* p = &aD[i];
        if (!p || !p->pIdStk)
            continue;
        while (!p->pIdStk->empty())
        {
            rStack.push(p->pIdStk->top());
            p->pIdStk->pop();
        }
    }
    return rStack.empty();
}

void WW8PLCFMan::AdvSprm(short nIdx, bool bStart)
{
    WW8PLCFxDesc* p = &aD[nIdx];    // Sprm-Klasse(!) ermitteln

    p->bFirstSprm = false;
    if( bStart )
    {
        USHORT nLastId = GetId(p);
        p->pIdStk->push(nLastId);   // merke Id fuer Attribut-Ende

        if( p->nSprmsLen )
        {   /*
                Pruefe, ob noch Sprm(s) abzuarbeiten sind
            */
            if( p->pMemPos )
            {
                // Length of last sprm
                USHORT nSprmL = maSprmParser.GetSprmSize(nLastId, p->pMemPos);

                // Gesamtlaenge Sprms um SprmLaenge verringern
                p->nSprmsLen -= nSprmL;

                // Pos des evtl. naechsten Sprm
                if (p->nSprmsLen < maSprmParser.MinSprmLen())
                {
                    // sicherheitshalber auf Null setzen, da Enden folgen!
                    p->pMemPos = 0;
                    p->nSprmsLen = 0;
                }
                else
                    p->pMemPos += nSprmL;
            }
            else
                p->nSprmsLen = 0;
        }
        if (p->nSprmsLen < maSprmParser.MinSprmLen())
            p->nStartPos = WW8_CP_MAX;    // es folgen Enden
=====================================================================
Found a 87 line (551 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/sddetect.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/smdetect.cxx

::rtl::OUString SAL_CALL SmFilterDetect::detect( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lDescriptor ) throw( ::com::sun::star::uno::RuntimeException )
{
    REFERENCE< XInputStream > xStream;
    REFERENCE< XContent > xContent;
    REFERENCE< XInteractionHandler > xInteraction;
    String aURL;
	::rtl::OUString sTemp;
    String aTypeName;            // a name describing the type (from MediaDescriptor, usually from flat detection)
    String aPreselectedFilterName;      // a name describing the filter to use (from MediaDescriptor, usually from UI action)

	::rtl::OUString aDocumentTitle; // interesting only if set in this method

	// opening as template is done when a parameter tells to do so and a template filter can be detected
    // (otherwise no valid filter would be found) or if the detected filter is a template filter and
	// there is no parameter that forbids to open as template
	sal_Bool bOpenAsTemplate = sal_False;
    sal_Bool bWasReadOnly = sal_False, bReadOnly = sal_False;

	sal_Bool bRepairPackage = sal_False;
	sal_Bool bRepairAllowed = sal_False;

	// now some parameters that can already be in the array, but may be overwritten or new inserted here
	// remember their indices in the case new values must be added to the array
	sal_Int32 nPropertyCount = lDescriptor.getLength();
    sal_Int32 nIndexOfFilterName = -1;
    sal_Int32 nIndexOfInputStream = -1;
    sal_Int32 nIndexOfContent = -1;
    sal_Int32 nIndexOfReadOnlyFlag = -1;
    sal_Int32 nIndexOfTemplateFlag = -1;
    sal_Int32 nIndexOfDocumentTitle = -1;

    for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty )
	{
        // extract properties
        if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("URL")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
			aURL = sTemp;
		}
        else if( !aURL.Len() && lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("FileName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
			aURL = sTemp;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
            aTypeName = sTemp;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("FilterName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
            aPreselectedFilterName = sTemp;

            // if the preselected filter name is not correct, it must be erased after detection
            // remember index of property to get access to it later
            nIndexOfFilterName = nProperty;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("InputStream")) )
            nIndexOfInputStream = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("ReadOnly")) )
            nIndexOfReadOnlyFlag = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("UCBContent")) )
            nIndexOfContent = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("AsTemplate")) )
		{
			lDescriptor[nProperty].Value >>= bOpenAsTemplate;
            nIndexOfTemplateFlag = nProperty;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("InteractionHandler")) )
            lDescriptor[nProperty].Value >>= xInteraction;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("RapairPackage")) )
            lDescriptor[nProperty].Value >>= bRepairPackage;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentTitle")) )
            nIndexOfDocumentTitle = nProperty;
	}

    // can't check the type for external filters, so set the "dont" flag accordingly
    ::vos::OGuard aGuard( Application::GetSolarMutex() );
    //SfxFilterFlags nMust = SFX_FILTER_IMPORT, nDont = SFX_FILTER_NOTINSTALLED;

    SfxApplication* pApp = SFX_APP();
    SfxAllItemSet *pSet = new SfxAllItemSet( pApp->GetPool() );
    TransformParameters( SID_OPENDOC, lDescriptor, *pSet );
    SFX_ITEMSET_ARG( pSet, pItem, SfxBoolItem, SID_DOC_READONLY, FALSE );

    bWasReadOnly = pItem && pItem->GetValue();
=====================================================================
Found a 19 line (551 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1265 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18b0 - 18bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18c0 - 18cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18d0 - 18df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18e0 - 18ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18f0 - 18ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f00 - 1f0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f10 - 1f1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f20 - 1f2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f30 - 1f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f40 - 1f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f50 - 1f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f60 - 1f6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f70 - 1f7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f80 - 1f8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f90 - 1f9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1fa0 - 1faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,// 1fb0 - 1fbf
=====================================================================
Found a 117 line (551 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			    break;
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
                        *pPT++='I';
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
  
        // terminate the signature string
        *pPT++='X';
        *pPT=0;

	try
	{
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic)" );
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr->eTypeClass, pParamType,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis 
           = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * > (pUnoI);
=====================================================================
Found a 87 line (545 tokens) duplication in the following files: 
Starting at line 854 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1223 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

void SAL_CALL ModuleImageManager::insertImages( ::sal_Int16 nImageType, const Sequence< ::rtl::OUString >& aCommandURLSequence, const Sequence< uno::Reference< XGraphic > >& aGraphicSequence )
throw ( ::com::sun::star::container::ElementExistException,
        ::com::sun::star::lang::IllegalArgumentException,
        ::com::sun::star::lang::IllegalAccessException,
        ::com::sun::star::uno::RuntimeException)
{
    CmdToXGraphicNameAccess* pInsertedImages( 0 );
    CmdToXGraphicNameAccess* pReplacedImages( 0 );

    {
        ResetableGuard aLock( m_aLock );

        /* SAFE AREA ----------------------------------------------------------------------------------------------- */
        if ( m_bDisposed )
            throw DisposedException();

        if (( aCommandURLSequence.getLength() != aGraphicSequence.getLength() ) ||
            (( nImageType < 0 ) || ( nImageType > MAX_IMAGETYPE_VALUE )))
            throw IllegalArgumentException();

        if ( m_bReadOnly )
            throw IllegalAccessException();

        sal_Int16 nIndex = implts_convertImageTypeToIndex( nImageType );
        ImageList* pImageList = implts_getUserImageList( ImageType( nIndex ));

        uno::Reference< XGraphic > xGraphic;
        for ( sal_Int32 i = 0; i < aCommandURLSequence.getLength(); i++ )
        {
            if ( !implts_checkAndScaleGraphic( xGraphic, aGraphicSequence[i], nIndex ))
                continue;

            USHORT nPos = pImageList->GetImagePos( aCommandURLSequence[i] );
            if ( nPos == IMAGELIST_IMAGE_NOTFOUND )
            {
                pImageList->AddImage( aCommandURLSequence[i], xGraphic );
                if ( !pInsertedImages )
                    pInsertedImages = new CmdToXGraphicNameAccess();
                pInsertedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
            else
            {
                pImageList->ReplaceImage( aCommandURLSequence[i], xGraphic );
                if ( !pReplacedImages )
                    pReplacedImages = new CmdToXGraphicNameAccess();
                pReplacedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
        }
        
        if (( pInsertedImages != 0 ) || ( pReplacedImages != 0 ))
        {
            m_bModified = sal_True;
            m_bUserImageListModified[nIndex] = true;
        }
    }

    // Notify listeners
    uno::Reference< XImageManager > xThis( static_cast< OWeakObject* >( this ), UNO_QUERY );
    uno::Reference< XInterface > xIfac( xThis, UNO_QUERY );

    if ( pInsertedImages != 0 )
    {
        ConfigurationEvent aInsertEvent;
        aInsertEvent.aInfo           = uno::makeAny( nImageType );
        aInsertEvent.Accessor        = uno::makeAny( xThis );
        aInsertEvent.Source          = xIfac;
        aInsertEvent.ResourceURL     = m_aResourceString;
        aInsertEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                        static_cast< OWeakObject *>( pInsertedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aInsertEvent, NotifyOp_Insert );
    }
    if ( pReplacedImages != 0 )
    {
        ConfigurationEvent aReplaceEvent;
        aReplaceEvent.aInfo           = uno::makeAny( nImageType );
        aReplaceEvent.Accessor        = uno::makeAny( xThis );
        aReplaceEvent.Source          = xIfac;
        aReplaceEvent.ResourceURL     = m_aResourceString;
        aReplaceEvent.ReplacedElement = Any();
        aReplaceEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                         static_cast< OWeakObject *>( pReplacedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aReplaceEvent, NotifyOp_Replace );
    }
}

// XUIConfiguration
void SAL_CALL ModuleImageManager::addConfigurationListener( const uno::Reference< ::com::sun::star::ui::XUIConfigurationListener >& xListener ) 
=====================================================================
Found a 89 line (545 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1986 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< Exception2a >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
=====================================================================
Found a 54 line (544 tokens) duplication in the following files: 
Starting at line 1560 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 1662 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_ImageButton::Export(SvStorageRef &rObj,
	const uno::Reference< beans::XPropertySet > &rPropSet,
	const awt::Size &rSize)
{
	static sal_uInt8 __READONLY_DATA aCompObj[] = {
			0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
			0xFF, 0xFF, 0xFF, 0xFF, 0x40, 0x32, 0x05, 0xD7,
			0x69, 0xCE, 0xCD, 0x11, 0xA7, 0x77, 0x00, 0xDD,
			0x01, 0x14, 0x3C, 0x57, 0x22, 0x00, 0x00, 0x00,
			0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
			0x74, 0x20, 0x46, 0x6F, 0x72, 0x6d, 0x73, 0x20,
			0x32, 0x2e, 0x30, 0x20, 0x43, 0x6F, 0x6D, 0x6D,
			0x61, 0x6E, 0x64, 0x42, 0x75, 0x74, 0x74, 0x6F,
			0x6E, 0x00, 0x10, 0x00, 0x00, 0x00, 0x45, 0x6D,
			0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x4F,
			0x62, 0x6A, 0x65, 0x63, 0x74, 0x00, 0x16, 0x00,
			0x00, 0x00, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x2E,
			0x43, 0x6F, 0x6D, 0x6D, 0x61, 0x6E, 0x64, 0x42,
			0x75, 0x74, 0x74, 0x6F, 0x6E, 0x2E, 0x31, 0x00,
			0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00,
			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
		0x43, 0x00, 0x6F, 0x00, 0x6D, 0x00, 0x6D, 0x00,
		0x61, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x42, 0x00,
		0x75, 0x00, 0x74, 0x00, 0x74, 0x00, 0x6F, 0x00,
		0x6E, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00
	};

	{
	SvStorageStreamRef xStor2( rObj->OpenSotStream( C2S("\3OCXNAME")));
	xStor2->Write(aOCXNAME,sizeof(aOCXNAME));
	DBG_ASSERT((xStor2.Is() && (SVSTREAM_OK == xStor2->GetError())),"damn");
	}

	SvStorageStreamRef xContents( rObj->OpenSotStream( C2S("contents")));
	return WriteContents(xContents,rPropSet,rSize);
}


sal_Bool OCX_OptionButton::Import(com::sun::star::uno::Reference<
=====================================================================
Found a 92 line (542 tokens) duplication in the following files: 
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

        span_image_resample_rgba(alloc_type& alloc,
                                 const rendering_buffer& src, 
                                 const color_type& back_color,
                                 interpolator_type& inter,
                                 const image_filter_lut& filter) :
            base_type(alloc, src, back_color, inter, filter)
        {}

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
            long_type fg[4];
            value_type back_r = base_type::background_color().r;
            value_type back_g = base_type::background_color().g;
            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;

            const int16* weight_array = base_type::filter().weight_array();

            do
            {
                int rx;
                int ry;
                int rx_inv = image_subpixel_size;
                int ry_inv = image_subpixel_size;
                base_type::interpolator().coordinates(&x,  &y);
                base_type::interpolator().local_scale(&rx, &ry);

                rx = (rx * base_type::m_blur_x) >> image_subpixel_shift;
                ry = (ry * base_type::m_blur_y) >> image_subpixel_shift;

                if(rx < image_subpixel_size)
                {
                    rx = image_subpixel_size;
                }
                else
                {
                    if(rx > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        rx = image_subpixel_size * base_type::m_scale_limit;
                    }
                    rx_inv = image_subpixel_size * image_subpixel_size / rx;
                }

                if(ry < image_subpixel_size)
                {
                    ry = image_subpixel_size;
                }
                else
                {
                    if(ry > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        ry = image_subpixel_size * base_type::m_scale_limit;
                    }
                    ry_inv = image_subpixel_size * image_subpixel_size / ry;
                }

                int radius_x = (diameter * rx) >> 1;
                int radius_y = (diameter * ry) >> 1;
                int maxx = base_type::source_image().width() - 1;
                int maxy = base_type::source_image().height() - 1;

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr = y >> image_subpixel_shift;
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                               ry_inv) >> 
                                   image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + (x_lr << 2);
=====================================================================
Found a 226 line (542 tokens) duplication in the following files: 
Starting at line 1227 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1268 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    return nCpStart + (nStartPos - nFcStart) / nUnicodeFactor;
}

//-----------------------------------------
//      Hilfsroutinen fuer alle
//-----------------------------------------

short WW8_BRC::DetermineBorderProperties(bool bVer67, short *pSpace,
    BYTE *pCol, short *pIdx) const
{
    /*
        Word does not factor the width of the border into the width/height
        stored in the information for graphic/table/object widths, so we need
        to figure out this extra width here and utilize the returned size in
        our calculations
    */
    short nMSTotalWidth;
    BYTE nCol;
    short nIdx,nSpace;
    if( bVer67 )
    {
        UINT16 aBrc1 = SVBT16ToShort(aBits1);
        nCol = ((aBrc1 >> 6) & 0x1f);   // aBor.ico
        nSpace = (aBrc1 & 0xF800) >> 11;

        nMSTotalWidth = aBrc1 & 0x07;
        nIdx = (aBrc1 & 0x18) >> 3;
        //Dashed/Dotted unsets double/thick
        if (nMSTotalWidth > 5)
        {
            nMSTotalWidth=1;
            nIdx = 1;
        }
        nMSTotalWidth *= nIdx;
        nMSTotalWidth *= 15;
    }
    else
    {
        nIdx = aBits1[1];
        nCol = aBits2[0];   // aBor.ico
        nSpace = aBits2[1] & 0x1F; //space between line and object

        //Specification in 8ths of a point, 1 Point = 20 Twips, so by 2.5
        nMSTotalWidth  = aBits1[ 0 ] * 20 / 8;

        //Figure out the real size of the border according to word
        switch (nIdx)
        {
            //Note that codes over 25 are undocumented, and I can't create
            //these 4 here in the wild.
            default:
            case 2:
            case 4:
            case 5:
            case 22:
                DBG_WARNING("Can't create these from the menus, please report");
            case 1:
            case 6:
            case 7:
            case 8:
            case 9:
            case 23:    //Only 3pt in the menus, but honours the size setting.
                break;
            case 3:
                /*
                double line is three times the width of an ordinary line,
                except for the smallest 1/4 point size which appears to have
                exactly the same total border width as a 1/2 point size
                ordinary line, i.e. twice the nominal line width
                */
                nMSTotalWidth = (nMSTotalWidth == 5) ?
                    nMSTotalWidth*2 : nMSTotalWidth*3;
                break;
            case 10:
                /*
                triple line is five times the width of an ordinary line,
                except that the smallest 1/4 point size appears to have
                exactly the same total border width as a 3/4 point size
                ordinary line, i.e. three times the nominal line width.  The
                second smallest 1/2 point size appears to have exactly the
                total border width as a 2 1/4 border, i.e 4.5 times the size.
                */
                if (nMSTotalWidth == 5)
                    nMSTotalWidth*=3;
                else if (nMSTotalWidth == 10)
                    nMSTotalWidth = nMSTotalWidth*9/2;
                else
                    nMSTotalWidth*=5;
                break;
            case 11:
            case 12:
                /*
                small gap thin thick and thick thin appears to have a 3/4
                point line, a 3/4 point gap and a thick line of the specified
                width
                */
                nMSTotalWidth = nMSTotalWidth + 15*2;
                break;
            case 13:
                /*
                thin thick thin appears to have two outside 3/4 point lines,
                two 3/4 point gaps and a thick line of the specified width
                */
                nMSTotalWidth = nMSTotalWidth + 15*4;
                break;
            case 14:
            case 15:
                /*
                medium gap thin thick and thick thin appears to have a line
                50% of the thick line, and an equal sized gap and then the
                thick line of the specified width. But it appears to only
                use one of the existing predefined widths for the thin line,
                so the closest smallest existing border to the halved thick
                line is used.
                */
                switch (nMSTotalWidth)
                {
                    case 45:    //2 1/4, closest to half is 1
                        nMSTotalWidth += 20 + (nMSTotalWidth-1)/2;
                        break;
                    case 5:
                    case 10:
                        nMSTotalWidth += 5;
                        break;
                    case 15:    //3/4, closest to half is 1/4
                        nMSTotalWidth += 5 + (nMSTotalWidth-1)/2;
                        break;
                    default:
                        nMSTotalWidth*=2;
                        break;
                }
                break;
            case 16:
                /*
                medium gap thin thick thin appears to have a line
                50% of the thick line, and an equal sized gap and then the
                thick line of the specified width. But it appears to only
                use one of the existing predefined widths for the thin
                line, so the closest smallest existing border to the halved
                thick line is used. Though some fudging at smaller sizes is
                still required.
                */
                switch (nMSTotalWidth)
                {
                    case 45:    //2 1/4, closest to half is 1
                        nMSTotalWidth += nMSTotalWidth + 20 * 2;
                        break;
                    case 20:
                    case 15:
                        nMSTotalWidth += nMSTotalWidth + 7 * 2;
                        break;
                    case 10:
                    case 5:
                        nMSTotalWidth += 5 + 4;
                        break;
                    default:
                        nMSTotalWidth*=3;
                        break;
                }
                break;
            case 17:
            case 18:
                /*
                large gap thin thick and thick thin appears to have a thick
                line of 1 1/2 pt and a narrow of 3/4 point, with a distance
                between the two of the explicitly set line width
                */
                nMSTotalWidth+=15+30;
                break;
            case 19:
                /*
                large gap thin thick thin appears to have a thick line of 1
                1/2 pt and two narrows of 3/4 point, with a distance between
                the two of the explicitly set line width, though the narrowest
                line appears to behave as if it was even smaller
                */
                if (nMSTotalWidth == 5)
                    nMSTotalWidth = 3;
                nMSTotalWidth = nMSTotalWidth*2 + 15*2 + 30;
                break;
            case 20:
                /*
                wave, the dimensions appear to be created by the drawing of
                the wave, so we have only two possibilites in the menus, 3/4
                point is equal to solid 3 point. This calculation seems to
                match well to results.
                */
                nMSTotalWidth +=45;
                break;
            case 21:
                /*
                double wave, the dimensions appear to be created by the
                drawing of the wave, so we have only one possibilites in the
                menus, that of 3/4 point is equal to solid 3 point. This
                calculation seems to match well to results.
                */
                nMSTotalWidth += 45*2;
                break;
            case 24:
            case 25:
                /*
                emboss and engrave consist of a three lines, the central is of
                the explicit point width, the other two (of equal size to each
                other are the shadows and are either 3/4 pt of 1 1/2 depending
                on if the central line is greater of less than 2 1/4 pt
                */
                if (nMSTotalWidth <= 45)
                    nMSTotalWidth += 2*15;
                else
                    nMSTotalWidth += 2*30;
                break;
        }
    }

    if (pIdx)
        *pIdx = nIdx;
    if (pSpace)
        *pSpace = nSpace*20;
    if (pCol)
        *pCol = nCol;
    return nMSTotalWidth;
}

WW8_CP WW8ScannerBase::WW8Fc2Cp( WW8_FC nFcPos ) const
{
    WW8_CP nFallBackCpEnd = WW8_CP_MAX;
=====================================================================
Found a 187 line (541 tokens) duplication in the following files: 
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_String_Utils.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_String_Utils.cxx

	while ( ( nLen >= 0 ) && ( *pAStr ) )
	{
		uChar = (unsigned char)*pAStr;

		if ( uChar > 127 )
		{
			return sal_False;
		} // if

		pAStr++;

		// Since we are dealing with unsigned integers
		// we want to make sure that the last number is
		// indeed zero.

		if ( nLen > 0 )
		{
			nLen--;
		} // if
		else
		{
			break;
		} // else
	} // while

	return sal_True;
} // AStringNIsValid

//------------------------------------------------------------------------

static inline sal_Int32 ACharToUCharCompare( const sal_Unicode *pUStr,
                                             const sal_Char    *pAStr
                                           )
{
	sal_Int32  nCmp   = 0;
	sal_Int32  nUChar = (sal_Int32)*pUStr;
	sal_Int32  nChar  = (sal_Int32)((unsigned char)*pAStr);

	nCmp = nUChar - nChar;

	return  nCmp;
} // ACharToUCharCompare

//------------------------------------------------------------------------

sal_Int32 AStringToUStringCompare( const sal_Unicode *pUStr,
                                   const sal_Char    *pAStr
                                 )
{
 	sal_Int32 nCmp = kErrCompareAStringToUString;

	if ( ( pUStr != NULL ) && ( pAStr != NULL ) )
	{
		nCmp = ACharToUCharCompare( pUStr, pAStr );

		while ( ( nCmp == 0 ) && ( *pAStr ) )
		{
			pUStr++;
			pAStr++;

			nCmp = ACharToUCharCompare( pUStr, pAStr );
		} // while
	} // if

	return nCmp;
} // AStringToUStringCompare

//------------------------------------------------------------------------

sal_Int32 AStringToUStringNCompare( const sal_Unicode  *pUStr,
                                    const sal_Char     *pAStr,
                                    const sal_uInt32    nAStrCount
                                   )
{
	sal_Int32 nCmp = kErrCompareNAStringToUString;

	if ( ( pUStr != NULL ) && ( pAStr != NULL ) )
	{
		sal_uInt32 nCount = nAStrCount;

		nCmp = ACharToUCharCompare( pUStr, pAStr );

		while ( ( nCmp == 0 ) && ( *pAStr ) && ( nCount ) )
		{
			pUStr++;
			pAStr++;

			nCmp = ACharToUCharCompare( pUStr, pAStr );

			// Since we are dealing with unsigned integers
			// we want to make sure that the last number is
			// indeed zero.

			if ( nCount > 0 )
			{
				nCount--;
			} // if
			else
			{
				break;
			} // else
		} // while
	} // if

	return nCmp;
} // AStringToUStringNCompare

//------------------------------------------------------------------------

sal_Int32 AStringToRTLUStringCompare( const rtl_uString  *pRTLUStr,
                                      const sal_Char     *pAStr
                                    )
{
	sal_Int32 nCmp = kErrCompareAStringToRTLUString;

	if ( ( pRTLUStr != NULL ) && ( pAStr != NULL ) )
	{
		rtl_uString *pRTLUStrCopy = NULL;

		rtl_uString_newFromString( &pRTLUStrCopy, pRTLUStr );

		if ( pRTLUStrCopy != NULL )
		{
			const sal_Unicode *pUStr = rtl_uString_getStr( pRTLUStrCopy );

			if ( pUStr != NULL )
			{
				nCmp = AStringToUStringCompare( pUStr, pAStr );
			} // if

			rtl_uString_release( pRTLUStrCopy );

			pRTLUStrCopy = NULL;
		} // if
	} // if

	return nCmp;
} // AStringToRTLUStringCompare

//------------------------------------------------------------------------

sal_Int32 AStringToRTLUStringNCompare( const rtl_uString  *pRTLUStr,
                                       const sal_Char     *pAStr,
                                       const sal_uInt32    nAStrCount
                                     )
{
	sal_Int32 nCmp = kErrCompareNAStringToRTLUString;

	if ( ( pRTLUStr != NULL ) && ( pAStr != NULL ) )
	{
		rtl_uString *pRTLUStrCopy = NULL;

		rtl_uString_newFromString( &pRTLUStrCopy, pRTLUStr );

		if ( pRTLUStrCopy != NULL )
		{
			const sal_Unicode  *pUStr = rtl_uString_getStr( pRTLUStrCopy );

			if ( pUStr != NULL )
			{
				nCmp = AStringToUStringNCompare( pUStr, pAStr, nAStrCount );
			} // if

			rtl_uString_release( pRTLUStrCopy );

			pRTLUStrCopy = NULL;
		} // if
	} // if

	return nCmp;
} // AStringToRTLUStringNCompare

//------------------------------------------------------------------------

sal_Bool AStringToUStringCopy( sal_Unicode     *pDest,
                               const sal_Char  *pSrc
                             )
{
	sal_Bool    bCopied = sal_False;
	sal_uInt32  nCount  = AStringLen( pSrc );
	sal_uInt32  nLen    = nCount;

	if (    ( pDest != NULL )
	     && ( pSrc  != NULL )
	     && ( AStringNIsValid( pSrc, nLen ) )
	   )
	{
=====================================================================
Found a 105 line (540 tokens) duplication in the following files: 
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 482 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

				( parens < 0 && ((lp - 1)->type != LP)))
        {
            if (*narg >= NARG - 1)
				error(FATAL, "Sorry, too many macro arguments");
            ttr.bp = ttr.tp = bp;
            ttr.lp = lp;
            atr[(*narg)++] = normtokenrow(&ttr);
            bp = lp + 1;
        }
    }
    return ntok;
}

/*
 * substitute the argument list into the replacement string
 *  This would be simple except for ## and #
 */
void
	substargs(Nlist * np, Tokenrow * rtr, Tokenrow ** atr)
{
	Tokenrow tatr;
	Token *tp;
	int ntok, argno;

	for (rtr->tp = rtr->bp; rtr->tp < rtr->lp;)
	{
		if (rtr->tp->type == SHARP)
		{                               /* string operator */
			tp = rtr->tp;
			rtr->tp += 1;
			if ((argno = lookuparg(np, rtr->tp)) < 0)
			{
				error(ERROR, "# not followed by macro parameter");
				continue;
			}
			ntok = 1 + (rtr->tp - tp);
			rtr->tp = tp;
			insertrow(rtr, ntok, stringify(atr[argno]));
			continue;
		}
		if (rtr->tp->type == NAME
			&& (argno = lookuparg(np, rtr->tp)) >= 0)
		{
			if (((rtr->tp + 1) < rtr->lp && (rtr->tp + 1)->type == DSHARP)
				|| (rtr->tp != rtr->bp  && (rtr->tp - 1)->type == DSHARP))
			{
				copytokenrow(&tatr, atr[argno]);
				makespace(&tatr, rtr->tp);
				insertrow(rtr, 1, &tatr);
				dofree(tatr.bp);
			}
            else
            {
                copytokenrow(&tatr, atr[argno]);
				makespace(&tatr, rtr->tp);
                expandrow(&tatr, "<macro>");
                insertrow(rtr, 1, &tatr);
                dofree(tatr.bp);
            }
            continue;
        }
        rtr->tp++;
    }
}

/*
 * Evaluate the ## operators in a tokenrow
 */
void
    doconcat(Tokenrow * trp)
{
    Token *ltp, *ntp;
    Tokenrow ntr;
    int len;

    for (trp->tp = trp->bp; trp->tp < trp->lp; trp->tp++)
    {
        if (trp->tp->type == DSHARP1)
            trp->tp->type = DSHARP;
        else
            if (trp->tp->type == DSHARP)
            {
				int  i;
                char tt[NCONCAT];

                ltp = trp->tp - 1;
				ntp = trp->tp + 1;

				if (ltp < trp->bp || ntp >= trp->lp)
                {
                    error(ERROR, "## occurs at border of replacement");
                    continue;
				}

				ntp = ltp;
				i   = 1;
				len = 0;

				do
				{
					if (len + ntp->len + ntp->wslen > sizeof(tt))
					{
						error(ERROR, "## string concatination buffer overrun");
						break;
					}
=====================================================================
Found a 114 line (538 tokens) duplication in the following files: 
Starting at line 4187 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 4322 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx

	if (!reader.isValid()) {
        return false;
    }

	RTTypeClass typeClass = reader.getTypeClass();
	bool ret = false;
	switch (typeClass)
	{
		case RT_TYPE_INTERFACE:
			{
				InterfaceType iType(reader, typeName, typeMgr);
				ret = iType.dump(pOptions);
				if (ret) generated.add(typeName);
				iType.dumpDependedTypes(generated, pOptions);
			}
			break;
		case RT_TYPE_MODULE:
			{
				ModuleType mType(reader, typeName, typeMgr);
				if (mType.hasConstants())
				{
					ret = mType.dump(pOptions);
					if (ret) generated.add(typeName);
				} else
				{
					generated.add(typeName);
					ret = true;
				}
			}
			break;
		case RT_TYPE_STRUCT:
			{
				StructureType sType(reader, typeName, typeMgr);
				ret = sType.dump(pOptions);
				if (ret) generated.add(typeName);
				sType.dumpDependedTypes(generated, pOptions);
			}
			break;
		case RT_TYPE_ENUM:
			{
				EnumType enType(reader, typeName, typeMgr);
				ret = enType.dump(pOptions);
				if (ret) generated.add(typeName);
				enType.dumpDependedTypes(generated, pOptions);
			}
			break;
		case RT_TYPE_EXCEPTION:
			{
				ExceptionType eType(reader, typeName, typeMgr);
				ret = eType.dump(pOptions);
				if (ret) generated.add(typeName);
				eType.dumpDependedTypes(generated, pOptions);
			}
			break;
		case RT_TYPE_TYPEDEF:
			{
				TypeDefType tdType(reader, typeName, typeMgr);
				ret = tdType.dump(pOptions);
				if (ret) generated.add(typeName);
				tdType.dumpDependedTypes(generated, pOptions);
			}
			break;
		case RT_TYPE_CONSTANTS:
			{
				ConstantsType cType(reader, typeName, typeMgr);
				if (cType.hasConstants())
				{
					ret = cType.dump(pOptions);
					if (ret) generated.add(typeName);
				} else
				{
					generated.add(typeName);
					ret = true;
				}
			}
			break;
        case RT_TYPE_SERVICE:
            {
                ServiceType t(reader, typeName, typeMgr);
                if (t.isSingleInterfaceBased()) {
                    ret = t.dump(pOptions);
                    if (ret) {
                        generated.add(typeName);
                        t.dumpDependedTypes(generated, pOptions);
                    }
                } else {
                    ret = true;
                }
            }
            break;
        case RT_TYPE_SINGLETON:
            {
                SingletonType t(reader, typeName, typeMgr);
                if (t.isInterfaceBased()) {
                    ret = t.dump(pOptions);
                    if (ret) {
                        generated.add(typeName);
                        t.dumpDependedTypes(generated, pOptions);
                    }
                } else {
                    ret = true;
                }
            }
            break;
		case RT_TYPE_OBJECT:
			ret = true;
			break;
        default:
            OSL_ASSERT(false);
            break;
	}
	
	return ret;
}
=====================================================================
Found a 89 line (534 tokens) duplication in the following files: 
Starting at line 703 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1043 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

void SAL_CALL ModuleImageManager::replaceImages(
    ::sal_Int16 nImageType,
    const Sequence< ::rtl::OUString >& aCommandURLSequence,
    const Sequence< uno::Reference< XGraphic > >& aGraphicsSequence )
throw ( ::com::sun::star::lang::IllegalArgumentException,
        ::com::sun::star::lang::IllegalAccessException,
        ::com::sun::star::uno::RuntimeException)
{
    CmdToXGraphicNameAccess* pInsertedImages( 0 );
    CmdToXGraphicNameAccess* pReplacedImages( 0 );

    {
        ResetableGuard aLock( m_aLock );

        /* SAFE AREA ----------------------------------------------------------------------------------------------- */
        if ( m_bDisposed )
            throw DisposedException();

        if (( aCommandURLSequence.getLength() != aGraphicsSequence.getLength() ) ||
            (( nImageType < 0 ) || ( nImageType > MAX_IMAGETYPE_VALUE )))
            throw IllegalArgumentException();

        if ( m_bReadOnly )
            throw IllegalAccessException();

        sal_Int16 nIndex = implts_convertImageTypeToIndex( nImageType );
        ImageList* pImageList = implts_getUserImageList( ImageType( nIndex ));

        uno::Reference< XGraphic > xGraphic;
        for ( sal_Int32 i = 0; i < aCommandURLSequence.getLength(); i++ )
        {
            // Check size and scale. If we don't have any graphics ignore it
            if ( !implts_checkAndScaleGraphic( xGraphic, aGraphicsSequence[i], nIndex ))
                continue;

            USHORT nPos = pImageList->GetImagePos( aCommandURLSequence[i] );
            if ( nPos == IMAGELIST_IMAGE_NOTFOUND )
            {
                pImageList->AddImage( aCommandURLSequence[i], xGraphic );
                if ( !pInsertedImages )
                    pInsertedImages = new CmdToXGraphicNameAccess();
                pInsertedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
            else
            {
                pImageList->ReplaceImage( aCommandURLSequence[i], xGraphic );
                if ( !pReplacedImages )
                    pReplacedImages = new CmdToXGraphicNameAccess();
                pReplacedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
        }

        if (( pInsertedImages != 0 ) || (  pReplacedImages != 0 ))
        {
            m_bModified = sal_True;
            m_bUserImageListModified[nIndex] = true;
        }
    }

    // Notify listeners
    uno::Reference< XImageManager > xThis( static_cast< OWeakObject* >( this ), UNO_QUERY );
    uno::Reference< XInterface > xIfac( xThis, UNO_QUERY );

    if ( pInsertedImages != 0 )
    {
        ConfigurationEvent aInsertEvent;
        aInsertEvent.aInfo           = uno::makeAny( nImageType );
        aInsertEvent.Accessor        = uno::makeAny( xThis );
        aInsertEvent.Source          = xIfac;
        aInsertEvent.ResourceURL     = m_aResourceString;
        aInsertEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >(
                                        static_cast< OWeakObject *>( pInsertedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aInsertEvent, NotifyOp_Insert );
    }
    if ( pReplacedImages != 0 )
    {
        ConfigurationEvent aReplaceEvent;
        aReplaceEvent.aInfo           = uno::makeAny( nImageType );
        aReplaceEvent.Accessor        = uno::makeAny( xThis );
        aReplaceEvent.Source          = xIfac;
        aReplaceEvent.ResourceURL     = m_aResourceString;
        aReplaceEvent.ReplacedElement = Any();
        aReplaceEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >(
                                            static_cast< OWeakObject *>( pReplacedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aReplaceEvent, NotifyOp_Replace );
    }
}

void SAL_CALL ModuleImageManager::removeImages( ::sal_Int16 nImageType, const Sequence< ::rtl::OUString >& aCommandURLSequence )
=====================================================================
Found a 118 line (533 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{

void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if OSL_DEBUG_LEVEL > 1
    char const * start = p;
#endif

    // example: N3com3sun4star4lang24IllegalArgumentExceptionE

	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N

    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }

#if OSL_DEBUG_LEVEL > 1
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;

    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;

public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );

    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
    : m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
//__________________________________________________________________________________________________
RTTI::~RTTI() SAL_THROW( () )
{
    dlclose( m_hApp );
}

//__________________________________________________________________________________________________
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW( () )
{
    type_info * rtti;

    OUString const & unoName = *(OUString const *)&pTypeDescr->aBase.pTypeName;

    MutexGuard guard( m_mutex );
    t_rtti_map::const_iterator iFind( m_rttis.find( unoName ) );
    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );

        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind2( m_generatedRttis.find( unoName ) );
=====================================================================
Found a 113 line (532 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic)" );
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
    void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
        = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
=====================================================================
Found a 74 line (531 tokens) duplication in the following files: 
Starting at line 843 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/view/vprint.cxx
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/view/vprint.cxx

        pPrtDoc->setPrinter( new SfxPrinter(*pPrt), true, true );

    const SfxPoolItem* pCpyItem;
    const SfxItemPool& rPool = GetAttrPool();
    for( USHORT nWh = POOLATTR_BEGIN; nWh < POOLATTR_END; ++nWh )
        if( 0 != ( pCpyItem = rPool.GetPoolDefaultItem( nWh ) ) )
            pPrtDoc->GetAttrPool().SetPoolDefaultItem( *pCpyItem );

    // JP 29.07.99 - Bug 67951 - set all Styles from the SourceDoc into
    //                              the PrintDoc - will be replaced!
    pPrtDoc->ReplaceStyles( *GetDoc() );

    SwShellCrsr *pActCrsr = pFESh->_GetCrsr();
    SwShellCrsr *pFirstCrsr = (SwShellCrsr*)*((SwCursor*)pActCrsr->GetNext());
    if( !pActCrsr->HasMark() ) // bei Multiselektion kann der aktuelle Cursor leer sein
        pActCrsr = (SwShellCrsr*)*((SwCursor*)pActCrsr->GetPrev());
    // Die Y-Position der ersten Selektion
    long nMinY = pFESh->IsTableMode() ? pFESh->GetTableCrsr()->GetSttPos().Y()
                               : pFirstCrsr->GetSttPos().Y();
    SwPageFrm* pPage = (SwPageFrm*)GetLayout()->Lower();
    // Suche die zugehoerige Seite
    while ( pPage->GetNext() && nMinY >= pPage->GetNext()->Frm().Top() )
        pPage = (SwPageFrm*)pPage->GetNext();
    // und ihren Seitendescribtor
    SwPageDesc *pSrc = pPage->GetPageDesc();
    SwPageDesc* pPageDesc = pPrtDoc->FindPageDescByName(
                                pPage->GetPageDesc()->GetName() );

    if( !pFESh->IsTableMode() && pActCrsr->HasMark() )
    {   // Am letzten Absatz die Absatzattribute richten:
        SwNodeIndex aNodeIdx( *pPrtDoc->GetNodes().GetEndOfContent().StartOfSectionNode() );
        SwTxtNode* pTxtNd = pPrtDoc->GetNodes().GoNext( &aNodeIdx )->GetTxtNode();
        SwCntntNode *pLastNd =
            pActCrsr->GetCntntNode( (*pActCrsr->GetMark()) <= (*pActCrsr->GetPoint()) );
        // Hier werden die Absatzattribute des ersten Absatzes uebertragen
        if( pLastNd && pLastNd->IsTxtNode() )
            ((SwTxtNode*)pLastNd)->CopyCollFmt( *pTxtNd );
    }

    // es wurde in der CORE eine neu angelegt (OLE-Objekte kopiert!)
//      if( aDocShellRef.Is() )
//          SwDataExchange::InitOle( aDocShellRef, pPrtDoc );
    // und fuellen es mit dem selektierten Bereich
    pFESh->Copy( pPrtDoc );

    //Jetzt noch am ersten Absatz die Seitenvorlage setzen
    {
        SwNodeIndex aNodeIdx( *pPrtDoc->GetNodes().GetEndOfContent().StartOfSectionNode() );
        SwCntntNode* pCNd = pPrtDoc->GetNodes().GoNext( &aNodeIdx ); // gehe zum 1. ContentNode
        if( pFESh->IsTableMode() )
        {
            SwTableNode* pTNd = pCNd->FindTableNode();
            if( pTNd )
                pTNd->GetTable().GetFrmFmt()->SetAttr( SwFmtPageDesc( pPageDesc ) );
        }
        else
        {
            pCNd->SetAttr( SwFmtPageDesc( pPageDesc ) );
            if( pFirstCrsr->HasMark() )
            {
                SwTxtNode *pTxtNd = pCNd->GetTxtNode();
                if( pTxtNd )
                {
                    SwCntntNode *pFirstNd =
                        pFirstCrsr->GetCntntNode( (*pFirstCrsr->GetMark()) > (*pFirstCrsr->GetPoint()) );
                    // Hier werden die Absatzattribute des ersten Absatzes uebertragen
                    if( pFirstNd && pFirstNd->IsTxtNode() )
                        ((SwTxtNode*)pFirstNd)->CopyCollFmt( *pTxtNd );
                }
            }
        }
    }
    return pPrtDoc;
}
=====================================================================
Found a 34 line (530 tokens) duplication in the following files: 
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/defaultregistry/defaultregistry.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/simpleregistry/simpleregistry.cxx

	~RegistryKeyImpl();

	// XRegistryKey	
    virtual OUString SAL_CALL getKeyName() throw(RuntimeException);
    virtual sal_Bool SAL_CALL isReadOnly(  ) throw(InvalidRegistryException, RuntimeException);
    virtual sal_Bool SAL_CALL isValid(  ) throw(RuntimeException);
    virtual RegistryKeyType SAL_CALL getKeyType( const OUString& rKeyName ) throw(InvalidRegistryException, RuntimeException);
    virtual RegistryValueType SAL_CALL getValueType(  ) throw(InvalidRegistryException, RuntimeException);
    virtual sal_Int32 SAL_CALL getLongValue(  ) throw(InvalidRegistryException, InvalidValueException, RuntimeException);
    virtual void SAL_CALL setLongValue( sal_Int32 value ) throw(InvalidRegistryException, RuntimeException);
    virtual Sequence< sal_Int32 > SAL_CALL getLongListValue(  ) throw(InvalidRegistryException, InvalidValueException, RuntimeException);
    virtual void SAL_CALL setLongListValue( const ::com::sun::star::uno::Sequence< sal_Int32 >& seqValue ) throw(InvalidRegistryException, RuntimeException);
    virtual OUString SAL_CALL getAsciiValue(  ) throw(InvalidRegistryException, InvalidValueException, RuntimeException);
    virtual void SAL_CALL setAsciiValue( const OUString& value ) throw(InvalidRegistryException, RuntimeException);
    virtual Sequence< OUString > SAL_CALL getAsciiListValue(  ) throw(InvalidRegistryException, InvalidValueException, RuntimeException);
    virtual void SAL_CALL setAsciiListValue( const ::com::sun::star::uno::Sequence< OUString >& seqValue ) throw(InvalidRegistryException, RuntimeException);
    virtual OUString SAL_CALL getStringValue(  ) throw(InvalidRegistryException, InvalidValueException, RuntimeException);
    virtual void SAL_CALL setStringValue( const OUString& value ) throw(InvalidRegistryException, RuntimeException);
    virtual Sequence< OUString > SAL_CALL getStringListValue(  ) throw(InvalidRegistryException, InvalidValueException, RuntimeException);
    virtual void SAL_CALL setStringListValue( const ::com::sun::star::uno::Sequence< OUString >& seqValue ) throw(InvalidRegistryException, RuntimeException);
    virtual Sequence< sal_Int8 > SAL_CALL getBinaryValue(  ) throw(InvalidRegistryException, InvalidValueException, RuntimeException);
    virtual void SAL_CALL setBinaryValue( const ::com::sun::star::uno::Sequence< sal_Int8 >& value ) throw(InvalidRegistryException, RuntimeException);
    virtual Reference< XRegistryKey > SAL_CALL openKey( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException);
    virtual Reference< XRegistryKey > SAL_CALL createKey( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException);
    virtual void SAL_CALL closeKey(  ) throw(InvalidRegistryException, RuntimeException);
    virtual void SAL_CALL deleteKey( const OUString& rKeyName ) throw(InvalidRegistryException, RuntimeException);
    virtual Sequence< Reference< XRegistryKey > > SAL_CALL openKeys(  ) throw(InvalidRegistryException, RuntimeException);
    virtual Sequence< OUString > SAL_CALL getKeyNames(  ) throw(InvalidRegistryException, RuntimeException);
    virtual sal_Bool SAL_CALL createLink( const OUString& aLinkName, const OUString& aLinkTarget ) throw(InvalidRegistryException, RuntimeException);
    virtual void SAL_CALL deleteLink( const OUString& rLinkName ) throw(InvalidRegistryException, RuntimeException);
    virtual OUString SAL_CALL getLinkTarget( const OUString& rLinkName ) throw(InvalidRegistryException, RuntimeException);
    virtual OUString SAL_CALL getResolvedName( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException);

protected:
=====================================================================
Found a 114 line (529 tokens) duplication in the following files: 
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsdocumenthandler.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsdocumenthandler.cxx

	for ( int i = 0; i < (int)EV_XML_ENTRY_COUNT; i++ )
	{
		if ( EventEntries[i].nNamespace == EV_NS_EVENT )
		{
			OUString temp( aNamespaceEvent );
			temp += aSeparator;
			temp += OUString::createFromAscii( EventEntries[i].aEntryName );
			m_aEventsMap.insert( EventsHashMap::value_type( temp, (Events_XML_Entry)i ) );
		}
		else
		{
			OUString temp( aNamespaceXLink );
			temp += aSeparator;
			temp += OUString::createFromAscii( EventEntries[i].aEntryName );
			m_aEventsMap.insert( EventsHashMap::value_type( temp, (Events_XML_Entry)i ) );
		}
	}

	m_bEventsStartFound				= sal_False;
	m_bEventsEndFound				= sal_False;
	m_bEventStartFound				= sal_False;
}

OReadEventsDocumentHandler::~OReadEventsDocumentHandler()
{
}

Any SAL_CALL OReadEventsDocumentHandler::queryInterface( const Type & rType )
throw( RuntimeException )
{
	Any a = ::cppu::queryInterface(
				rType ,
				SAL_STATIC_CAST( XDocumentHandler*, this ));
	if ( a.hasValue() )
		return a;

	return OWeakObject::queryInterface( rType );
}

// XDocumentHandler
void SAL_CALL OReadEventsDocumentHandler::startDocument(void)
throw (	SAXException, RuntimeException )
{
}

void SAL_CALL OReadEventsDocumentHandler::endDocument(void)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	if (( m_bEventsStartFound && !m_bEventsEndFound ) ||
		( !m_bEventsStartFound && m_bEventsEndFound )		)
	{
		OUString aErrorMessage = getErrorLineString();
		aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "No matching start or end element 'event:events' found!" ));
		throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
	}
}

void SAL_CALL OReadEventsDocumentHandler::startElement(
	const OUString& aName, const Reference< XAttributeList > &xAttribs )
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	EventsHashMap::const_iterator pEventEntry = m_aEventsMap.find( aName );
	if ( pEventEntry != m_aEventsMap.end() )
	{
		switch ( pEventEntry->second )
		{
			case EV_ELEMENT_EVENTS:
			{
				if ( m_bEventsStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'event:events' cannot be embeded into 'event:events'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bEventsStartFound = sal_True;
			}
			break;

			case EV_ELEMENT_EVENT:
			{
				if ( !m_bEventsStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'event:event' must be embeded into element 'event:events'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				if ( m_bEventStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element event:event is not a container!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				OUString aLanguage;
				OUString aURL;
				OUString aMacroName;
				OUString aLibrary;
				OUString aEventName;

				m_bEventStartFound = sal_True;

				long					  nIndex = m_aEventItems.aEventNames.getLength();
				long					  nPropCount = 2; // every event config entry needs at least 2 properties
				Sequence< PropertyValue > aEventProperties( nPropCount ); 

				m_aEventItems.aEventNames.realloc(  nIndex + 1 );

				for ( sal_Int16 n = 0; n < xAttribs->getLength(); n++ )
=====================================================================
Found a 100 line (529 tokens) duplication in the following files: 
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LNoException.cxx
Starting at line 820 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx

				m_nRowPos = 0;

			break;
		case IResultSetHelper::LAST:
			if(m_nMaxRowCount)
			{
				m_nFilePos = m_aRowToFilePos.rbegin()->second;
				m_nRowPos  = m_aRowToFilePos.rbegin()->first;
				m_pFileStream->Seek(m_nFilePos);
				if (m_pFileStream->IsEof() || !checkHeaderLine())
					return sal_False;
				m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
				if (m_pFileStream->IsEof())
					return sal_False;
				nCurPos = m_pFileStream->Tell();
			}
			else
			{
				while(seekRow(IResultSetHelper::NEXT,1,nCurPos)) ; // run through after last row
				// now I know all
				seekRow(IResultSetHelper::PRIOR,1,nCurPos);
			}
			break;
		case IResultSetHelper::RELATIVE:
			if(nOffset > 0)
			{
				for(sal_Int32 i = 0;i<nOffset;++i)
					seekRow(IResultSetHelper::NEXT,1,nCurPos);
			}
			else if(nOffset < 0)
			{
				for(sal_Int32 i = nOffset;i;++i)
					seekRow(IResultSetHelper::PRIOR,1,nCurPos);
			}
			break;
		case IResultSetHelper::ABSOLUTE:
			{
				if(nOffset < 0)
					nOffset = m_nRowPos + nOffset;
				::std::map<sal_Int32,sal_Int32>::const_iterator aIter = m_aRowToFilePos.find(nOffset);
				if(aIter != m_aRowToFilePos.end())
				{
					m_nFilePos = aIter->second;
					m_pFileStream->Seek(m_nFilePos);
					if (m_pFileStream->IsEof() || !checkHeaderLine())
						return sal_False;
					m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
					if (m_pFileStream->IsEof())
						return sal_False;
					nCurPos = m_pFileStream->Tell();
				}
				else if(m_nMaxRowCount && nOffset > m_nMaxRowCount) // offset is outside the table
				{
					m_nRowPos = m_nMaxRowCount;
					return sal_False;
				}
				else
				{
					aIter = m_aRowToFilePos.upper_bound(nOffset);
					if(aIter == m_aRowToFilePos.end())
					{
						m_nRowPos	= m_aRowToFilePos.rbegin()->first;
						nCurPos = m_nFilePos = m_aRowToFilePos.rbegin()->second;
						while(m_nRowPos != nOffset)
							seekRow(IResultSetHelper::NEXT,1,nCurPos);
					}
					else
					{
						--aIter;
						m_nRowPos	= aIter->first;
						m_nFilePos	= aIter->second;
						m_pFileStream->Seek(m_nFilePos);
						if (m_pFileStream->IsEof() || !checkHeaderLine())
							return sal_False;
						m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
						if (m_pFileStream->IsEof())
							return sal_False;
						nCurPos = m_pFileStream->Tell();
					}
				}
			}

			break;
		case IResultSetHelper::BOOKMARK:
			m_pFileStream->Seek(nOffset);
			if (m_pFileStream->IsEof())
				return sal_False;

			m_nFilePos = m_pFileStream->Tell();	// Byte-Position in der Datei merken (am ZeilenANFANG)
			m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
			if (m_pFileStream->IsEof())
				return sal_False;
			nCurPos  = m_pFileStream->Tell();
			break;
	}

	//OSL_TRACE("OEvoabTable::(after SeekRow)m_aCurrentLine = %d\n", ((OUtoCStr(::rtl::OUString(m_aCurrentLine))) ? (OUtoCStr(::rtl::OUString(m_aCurrentLine))):("NULL")) );

	return sal_True;
}
=====================================================================
Found a 116 line (529 tokens) duplication in the following files: 
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/uno2cpp.cxx

	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
       = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
	 VtableSlot aVtableSlot(
  	           getVtableSlot(
  	               reinterpret_cast<
  	                   typelib_InterfaceAttributeTypeDescription const * >(
  	                       pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
			aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );

			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		VtableSlot aVtableSlot(
		getVtableSlot(
		 reinterpret_cast<
		  typelib_InterfaceMethodTypeDescription const * >(
		  pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
 		(*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
 		  pThis->pBridge->getUnoEnv(),
				   (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 84 line (527 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

static bool m_bChange = false;
// -----------------------------------------------------------------------------
static void loadDefaults()
{
	if (s_bInitialized)
		return;

	s_bInitialized = sal_True;

	try
	{
		// the executable file name
		::rtl::OUString sExecutable;
		osl_getExecutableFile(&sExecutable.pData);
		// cut the name, add a cfgapi.ini to the path
		sal_Int32 nLastSep = sExecutable.lastIndexOf('/');
		if (-1 != nLastSep)
			sExecutable = sExecutable.copy(0, nLastSep + 1);
#ifdef UNX
		sExecutable += ::rtl::OUString::createFromAscii("cfgapirc");
#else
		sExecutable += ::rtl::OUString::createFromAscii("cfgapi.ini");
#endif
		::rtl::OUString sNormalized;
		sNormalized = sExecutable;
		if (1) // osl_File_E_None == osl_normalizePath(sExecutable.pData, &sNormalized.pData))
		{
			::osl::Profile aProfile(sNormalized);

			static ::rtl::OString	sSection("defaults");
			static ::rtl::OString	sSourcePath("sourcepath");
			static ::rtl::OString	sUpdatePath("updatepath");
			static ::rtl::OString	sRootNode("rootnode");
			static ::rtl::OString	sServerType("servertype");
			static ::rtl::OString	sLocale("Locale");
			static ::rtl::OString	sServer("Server");
			static ::rtl::OString	sUser("User");
			static ::rtl::OString	sPassword("Password");

			// read some strings.
			// Do this static because we want to redirect the global static character pointers to the buffers.
			static ::rtl::OString s_sSourcePath	= aProfile.readString(sSection, sSourcePath, s_pSourcePath);
			static ::rtl::OString s_sUpdatePath	= aProfile.readString(sSection, sUpdatePath, s_pUpdatePath);
			static ::rtl::OString s_sRootNode	= aProfile.readString(sSection, sRootNode, s_pRootNode);
			static ::rtl::OString s_sServerType	= aProfile.readString(sSection, sServerType, s_pServerType);
			static ::rtl::OString s_sLocale		= aProfile.readString(sSection, sLocale, s_pLocale);
			static ::rtl::OString s_sServer		= aProfile.readString(sSection, sServer, s_pServer);
			static ::rtl::OString s_sUser		= aProfile.readString(sSection, sUser, s_pUser);
			static ::rtl::OString s_sPassword	= aProfile.readString(sSection, sPassword, s_pPassword);

			// do this redirection
			s_pSourcePath	=	s_sSourcePath.getStr();
			s_pUpdatePath	=	s_sUpdatePath.getStr();
			s_pRootNode		=	s_sRootNode.getStr();
			s_pServerType	=	s_sServerType.getStr();
			s_pLocale		=	s_sLocale.getStr();
			s_pServer		=	s_sServer.getStr();
			s_pUser			=	s_sUser.getStr();
			s_pPassword		=	s_sPassword.getStr();
		}
	}
	catch(std::exception& e)
	{
		e.what();	// silence warnings
	}
}

// -----------------------------------------------------------------------------
Sequence<Any> createSequence(const OUString &sUser, const OUString &sPasswd)
{
	Sequence< Any > aCPArgs;
		
	if (sUser.getLength() > 0)
	{
		aCPArgs.realloc(1);
		aCPArgs[0] <<= configmgr::createPropertyValue(ASCII("user"), sUser);
	}
	if (sPasswd.getLength() > 0)
	{
		aCPArgs.realloc(2);
		aCPArgs[1] <<= configmgr::createPropertyValue(ASCII("password"), sPasswd);
	}
	return aCPArgs;
}
=====================================================================
Found a 69 line (526 tokens) duplication in the following files: 
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1486 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xbe, 0xae },
{ 0x00, 0xbf, 0xbf },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x00, 0xd7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0xdd },
{ 0x00, 0xfe, 0xde },
{ 0x00, 0xff, 0xff },
};

struct cs_info iso5_tbl[] = {
=====================================================================
Found a 94 line (526 tokens) duplication in the following files: 
Starting at line 617 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/lex.c
Starting at line 595 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_lex.c

    while (s->inp + (n + 1) >= s->inl && fillbuf(s) != EOF);

    /* skip DOS line ends */
    if (((s->inp[n] == '\r') && (s->inp[n+1] == '\n')) ||
		((s->inp[n] == '\n') && (s->inp[n+1] == '\r')))
        n++;

    if ((s->inp[n] == '\n') || (s->inp[n] == '\r'))
    {
        memmove(s->inp, s->inp + n + 1, s->inl - s->inp + n + 2);
        s->inl -= n + 1;
        return 1;
    }
    return 0;
}

int
    fillbuf(Source * s)
{
    int n;

    if (s->fd < 0 || (n = read(s->fd, (char *) s->inl, INS / 8)) <= 0)
        n = 0;
    s->inl += n;
    s->inl[0] = s->inl[1] = s->inl[2] = s->inl[3] = EOB;
    if (n == 0)
    {
        s->inl[0] = s->inl[1] = s->inl[2] = s->inl[3] = EOFC;
        return EOF;
    }
    return 0;
}

/*
 * Push down to new source of characters.
 * If fd>0 and str==NULL, then from a file `name';
 * if fd==-1 and str, then from the string.
 */
Source *
    setsource(char *name, int path, int fd, char *str, int wrap)
{
    Source *s = new(Source);
    int len;

    s->line = 1;
    s->lineinc = 0;
    s->fd = fd;
    s->filename = name;
    s->next = cursource;
    s->ifdepth = 0;
    s->pathdepth = path;
	s->wrap = wrap;

    cursource = s;

	if (s->wrap)
		genwrap(0);

    /* slop at right for EOB */
    if (str)
    {
        len = strlen(str);
        s->inb = domalloc(len + 4);
        s->inp = s->inb;
        strncpy((char *) s->inp, str, len);
    }
    else
    {
        s->inb = domalloc(INS + 4);
        s->inp = s->inb;
        len = 0;
    }
    s->inl = s->inp + len;
    s->inl[0] = s->inl[1] = EOB;

    return s;
}

void
    unsetsource(void)
{
    Source *s = cursource;

	if (s->wrap)
		genwrap(1);

    if (s->fd >= 0)
    {
        close(s->fd);
        dofree(s->inb);
    }
    cursource = s->next;
    dofree(s);
}
=====================================================================
Found a 116 line (523 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_devicehelper.cxx
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_devicehelper.cxx

        return geometry::RealSize2D( 210, 280 );
    }

    uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon( 
        const uno::Reference< rendering::XGraphicDevice >& 				/*rDevice*/,
        const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >&	points )
    {
        // disposed?
        if( !mpSpriteCanvas )
            return uno::Reference< rendering::XLinePolyPolygon2D >(); // we're disposed

        return uno::Reference< rendering::XLinePolyPolygon2D >( 
            new ::canvas::LinePolyPolygonBase( 
                ::basegfx::unotools::polyPolygonFromPoint2DSequenceSequence( points ) ) );
    }

    uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon( 
        const uno::Reference< rendering::XGraphicDevice >& 						/*rDevice*/,
        const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >&	points )
    {
        // disposed?
        if( !mpSpriteCanvas )
            return uno::Reference< rendering::XBezierPolyPolygon2D >(); // we're disposed

        return uno::Reference< rendering::XBezierPolyPolygon2D >( 
            new ::canvas::LinePolyPolygonBase( 
                ::basegfx::unotools::polyPolygonFromBezier2DSequenceSequence( points ) ) );
    }

    uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap( 
        const uno::Reference< rendering::XGraphicDevice >& 	/*rDevice*/,
        const geometry::IntegerSize2D& 						size )
    {
        // disposed?
        if( !mpSpriteCanvas )
            return uno::Reference< rendering::XBitmap >(); // we're disposed

        return uno::Reference< rendering::XBitmap >(
            new CanvasBitmap(
                ::basegfx::unotools::b2ISizeFromIntegerSize2D( size ),
                mpSpriteCanvas,
                false )); 
    }

    uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap( 
        const uno::Reference< rendering::XGraphicDevice >& 	/*rDevice*/,
        const geometry::IntegerSize2D& 						/*size*/ )
    {
        return uno::Reference< rendering::XVolatileBitmap >();
    }

    uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap( 
        const uno::Reference< rendering::XGraphicDevice >& 	/*rDevice*/,
        const geometry::IntegerSize2D& 						size )
    {
        // disposed?
        if( !mpSpriteCanvas )
            return uno::Reference< rendering::XBitmap >(); // we're disposed

        return uno::Reference< rendering::XBitmap >(
            new CanvasBitmap(
                ::basegfx::unotools::b2ISizeFromIntegerSize2D( size ),
                mpSpriteCanvas,
                true )); 
    }

    uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap( 
        const uno::Reference< rendering::XGraphicDevice >& 	/*rDevice*/,
        const geometry::IntegerSize2D& 						/*size*/ )
    {
        return uno::Reference< rendering::XVolatileBitmap >();
    }

    sal_Bool DeviceHelper::hasFullScreenMode()
    {
        // TODO(F3): offer fullscreen mode the XCanvas way
        return false;
    }

    sal_Bool DeviceHelper::enterFullScreenMode( sal_Bool /*bEnter*/ )
    {
        // TODO(F3): offer fullscreen mode the XCanvas way
        return false;
    }
    
    ::sal_Int32 DeviceHelper::createBuffers( ::sal_Int32 /*nBuffers*/ )
    {
        // TODO(F3): implement XBufferStrategy interface. For now, we
        // _always_ will have exactly one backbuffer
        return 1;
    }

    void DeviceHelper::destroyBuffers()
    {
        // TODO(F3): implement XBufferStrategy interface. For now, we
        // _always_ will have exactly one backbuffer
    }

    ::sal_Bool DeviceHelper::showBuffer( ::sal_Bool bUpdateAll )
    {
        // forward to sprite canvas helper
        if( !mpSpriteCanvas )
            return false;

        return mpSpriteCanvas->updateScreen( bUpdateAll );
    }

    ::sal_Bool DeviceHelper::switchBuffer( ::sal_Bool bUpdateAll )
    {
        // no difference for VCL canvas
        return showBuffer( bUpdateAll );
    }

    uno::Any DeviceHelper::getDeviceHandle() const
    {
        return uno::Any();
=====================================================================
Found a 38 line (521 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx

  WEIGHT_BOLD, // weight type
  ITALIC_NONE, // italic type
  { 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 7
    0, 0, 0, 0, 0, 0, 0, 0, // 8 - 15
    0, 0, 0, 0, 0, 0, 0, 0, // 16 - 23
    0, 0, 0, 0, 0, 0, 0, 0, // 24 - 31
    600, 600, 600, 600, 600, 600, 600, 600, // 32 - 39
    600, 600, 600, 600, 600, 600, 600, 600, // 40 - 47
    600, 600, 600, 600, 600, 600, 600, 600, // 48 - 55
    600, 600, 600, 600, 600, 600, 600, 600, // 56 - 63
    600, 600, 600, 600, 600, 600, 600, 600, // 64 - 71
    600, 600, 600, 600, 600, 600, 600, 600, // 72 - 79
    600, 600, 600, 600, 600, 600, 600, 600, // 80 - 87
    600, 600, 600, 600, 600, 600, 600, 600, // 88 - 95
    600, 600, 600, 600, 600, 600, 600, 600, // 96 - 103
    600, 600, 600, 600, 600, 600, 600, 600, // 104 - 111
    600, 600, 600, 600, 600, 600, 600, 600, // 112 - 119
    600, 600, 600, 600, 600, 600, 600, 0, // 120 - 127
    600, 0, 600, 600, 600, 600, 600, 600, // 128 - 135
    600, 600, 600, 600, 600, 0, 600, 0, // 136 - 143
    0, 600, 600, 600, 600, 600, 600, 600, // 144 - 151
    600, 600, 600, 600, 600, 0, 600, 600, // 152 - 159
    600, 600, 600, 600, 600, 600, 600, 600, // 160 - 167
    600, 600, 600, 600, 600, 600, 600, 600, // 168 - 175
    600, 600, 600, 600, 600, 600, 600, 600, // 176 - 183
    600, 600, 600, 600, 600, 600, 600, 600, // 184 - 191
    600, 600, 600, 600, 600, 600, 600, 600, // 192 - 199
    600, 600, 600, 600, 600, 600, 600, 600, // 200 - 207
    600, 600, 600, 600, 600, 600, 600, 600, // 208 - 215
    600, 600, 600, 600, 600, 600, 600, 600, // 216 - 223
    600, 600, 600, 600, 600, 600, 600, 600, // 224 - 231
    600, 600, 600, 600, 600, 600, 600, 600, // 232 - 239
    600, 600, 600, 600, 600, 600, 600, 600, // 240 - 247
    600, 600, 600, 600, 600, 600, 600, 600 // 248 - 255
    }
},

{ "Courier", // family name
=====================================================================
Found a 66 line (521 tokens) duplication in the following files: 
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4595 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xff, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x00, 0xd7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0xdd },
{ 0x00, 0xfe, 0xde },
{ 0x00, 0xff, 0xbe },
=====================================================================
Found a 116 line (521 tokens) duplication in the following files: 
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 495 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
       = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
//	typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
	 VtableSlot aVtableSlot(
  	           getVtableSlot(
  	               reinterpret_cast<
  	                   typelib_InterfaceAttributeTypeDescription const * >(
  	                       pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
			aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );

			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		VtableSlot aVtableSlot(
		getVtableSlot(
		 reinterpret_cast<
		  typelib_InterfaceMethodTypeDescription const * >(
		  pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
 		(*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
 		  pThis->pBridge->getUnoEnv(),
				   (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 37 line (519 tokens) duplication in the following files: 
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx

  ITALIC_NORMAL, // italic type
  { 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 7
    0, 0, 0, 0, 0, 0, 0, 0, // 8 - 15
    0, 0, 0, 0, 0, 0, 0, 0, // 16 - 23
    0, 0, 0, 0, 0, 0, 0, 0, // 24 - 31
    278, 278, 355, 556, 556, 889, 667, 191, // 32 - 39
    333, 333, 389, 584, 278, 333, 278, 278, // 40 - 47
    556, 556, 556, 556, 556, 556, 556, 556, // 48 - 55
    556, 556, 278, 278, 584, 584, 584, 556, // 56 - 63
    1015, 667, 667, 722, 722, 667, 611, 778, // 64 - 71
    722, 278, 500, 667, 556, 833, 722, 778, // 72 - 79
    667, 778, 722, 667, 611, 722, 667, 944, // 80 - 87
    667, 667, 611, 278, 278, 278, 469, 556, // 88 - 95
    333, 556, 556, 500, 556, 556, 278, 556, // 96 - 103
    556, 222, 222, 500, 222, 833, 556, 556, // 104 - 111
    556, 556, 333, 500, 278, 556, 500, 722, // 112 - 119
    500, 500, 500, 334, 260, 334, 584, 0, // 120 - 127
    556, 0, 222, 556, 333, 1000, 556, 556, // 128 - 135
    333, 1000, 667, 333, 1000, 0, 500, 0, // 136 - 143
    0, 222, 222, 333, 333, 350, 556, 1000, // 144 - 151
    333, 1000, 500, 333, 944, 0, 500, 667, // 152 - 159
    278, 333, 556, 556, 556, 556, 260, 556, // 160 - 167
    333, 737, 370, 556, 584, 333, 737, 333, // 168 - 175
    400, 584, 333, 333, 333, 556, 537, 278, // 176 - 183
    333, 333, 365, 556, 834, 834, 834, 611, // 184 - 191
    667, 667, 667, 667, 667, 667, 1000, 722, // 192 - 199
    667, 667, 667, 667, 278, 278, 278, 278, // 200 - 207
    722, 722, 778, 778, 778, 778, 778, 584, // 208 - 215
    778, 722, 722, 722, 722, 667, 667, 611, // 216 - 223
    556, 556, 556, 556, 556, 556, 889, 500, // 224 - 231
    556, 556, 556, 556, 278, 278, 278, 278, // 232 - 239
    556, 556, 556, 556, 556, 556, 556, 584, // 240 - 247
    611, 556, 556, 556, 556, 500, 556, 500 // 248 - 255
    }
},

{ "Helvetica", // family name
=====================================================================
Found a 37 line (519 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx

  ITALIC_NONE, // italic type
  { 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 7
    0, 0, 0, 0, 0, 0, 0, 0, // 8 - 15
    0, 0, 0, 0, 0, 0, 0, 0, // 16 - 23
    0, 0, 0, 0, 0, 0, 0, 0, // 24 - 31
    600, 600, 600, 600, 600, 600, 600, 600, // 32 - 39
    600, 600, 600, 600, 600, 600, 600, 600, // 40 - 47
    600, 600, 600, 600, 600, 600, 600, 600, // 48 - 55
    600, 600, 600, 600, 600, 600, 600, 600, // 56 - 63
    600, 600, 600, 600, 600, 600, 600, 600, // 64 - 71
    600, 600, 600, 600, 600, 600, 600, 600, // 72 - 79
    600, 600, 600, 600, 600, 600, 600, 600, // 80 - 87
    600, 600, 600, 600, 600, 600, 600, 600, // 88 - 95
    600, 600, 600, 600, 600, 600, 600, 600, // 96 - 103
    600, 600, 600, 600, 600, 600, 600, 600, // 104 - 111
    600, 600, 600, 600, 600, 600, 600, 600, // 112 - 119
    600, 600, 600, 600, 600, 600, 600, 0, // 120 - 127
    600, 0, 600, 600, 600, 600, 600, 600, // 128 - 135
    600, 600, 600, 600, 600, 0, 600, 0, // 136 - 143
    0, 600, 600, 600, 600, 600, 600, 600, // 144 - 151
    600, 600, 600, 600, 600, 0, 600, 600, // 152 - 159
    600, 600, 600, 600, 600, 600, 600, 600, // 160 - 167
    600, 600, 600, 600, 600, 600, 600, 600, // 168 - 175
    600, 600, 600, 600, 600, 600, 600, 600, // 176 - 183
    600, 600, 600, 600, 600, 600, 600, 600, // 184 - 191
    600, 600, 600, 600, 600, 600, 600, 600, // 192 - 199
    600, 600, 600, 600, 600, 600, 600, 600, // 200 - 207
    600, 600, 600, 600, 600, 600, 600, 600, // 208 - 215
    600, 600, 600, 600, 600, 600, 600, 600, // 216 - 223
    600, 600, 600, 600, 600, 600, 600, 600, // 224 - 231
    600, 600, 600, 600, 600, 600, 600, 600, // 232 - 239
    600, 600, 600, 600, 600, 600, 600, 600, // 240 - 247
    600, 600, 600, 600, 600, 600, 600, 600 // 248 - 255
    }
},

{ "Courier", // family name
=====================================================================
Found a 38 line (519 tokens) duplication in the following files: 
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx

  WEIGHT_BOLD, // weight type
  ITALIC_NORMAL, // italic type
  { 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 7
    0, 0, 0, 0, 0, 0, 0, 0, // 8 - 15
    0, 0, 0, 0, 0, 0, 0, 0, // 16 - 23
    0, 0, 0, 0, 0, 0, 0, 0, // 24 - 31
    600, 600, 600, 600, 600, 600, 600, 600, // 32 - 39
    600, 600, 600, 600, 600, 600, 600, 600, // 40 - 47
    600, 600, 600, 600, 600, 600, 600, 600, // 48 - 55
    600, 600, 600, 600, 600, 600, 600, 600, // 56 - 63
    600, 600, 600, 600, 600, 600, 600, 600, // 64 - 71
    600, 600, 600, 600, 600, 600, 600, 600, // 72 - 79
    600, 600, 600, 600, 600, 600, 600, 600, // 80 - 87
    600, 600, 600, 600, 600, 600, 600, 600, // 88 - 95
    600, 600, 600, 600, 600, 600, 600, 600, // 96 - 103
    600, 600, 600, 600, 600, 600, 600, 600, // 104 - 111
    600, 600, 600, 600, 600, 600, 600, 600, // 112 - 119
    600, 600, 600, 600, 600, 600, 600, 0, // 120 - 127
    600, 0, 600, 600, 600, 600, 600, 600, // 128 - 135
    600, 600, 600, 600, 600, 0, 600, 0, // 136 - 143
    0, 600, 600, 600, 600, 600, 600, 600, // 144 - 151
    600, 600, 600, 600, 600, 0, 600, 600, // 152 - 159
    600, 600, 600, 600, 600, 600, 600, 600, // 160 - 167
    600, 600, 600, 600, 600, 600, 600, 600, // 168 - 175
    600, 600, 600, 600, 600, 600, 600, 600, // 176 - 183
    600, 600, 600, 600, 600, 600, 600, 600, // 184 - 191
    600, 600, 600, 600, 600, 600, 600, 600, // 192 - 199
    600, 600, 600, 600, 600, 600, 600, 600, // 200 - 207
    600, 600, 600, 600, 600, 600, 600, 600, // 208 - 215
    600, 600, 600, 600, 600, 600, 600, 600, // 216 - 223
    600, 600, 600, 600, 600, 600, 600, 600, // 224 - 231
    600, 600, 600, 600, 600, 600, 600, 600, // 232 - 239
    600, 600, 600, 600, 600, 600, 600, 600, // 240 - 247
    600, 600, 600, 600, 600, 600, 600, 600 // 248 - 255
    }
},

{ "Helvetica", // family name
=====================================================================
Found a 37 line (519 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx

  ITALIC_NORMAL, // italic type
  { 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 7
    0, 0, 0, 0, 0, 0, 0, 0, // 8 - 15
    0, 0, 0, 0, 0, 0, 0, 0, // 16 - 23
    0, 0, 0, 0, 0, 0, 0, 0, // 24 - 31
    600, 600, 600, 600, 600, 600, 600, 600, // 32 - 39
    600, 600, 600, 600, 600, 600, 600, 600, // 40 - 47
    600, 600, 600, 600, 600, 600, 600, 600, // 48 - 55
    600, 600, 600, 600, 600, 600, 600, 600, // 56 - 63
    600, 600, 600, 600, 600, 600, 600, 600, // 64 - 71
    600, 600, 600, 600, 600, 600, 600, 600, // 72 - 79
    600, 600, 600, 600, 600, 600, 600, 600, // 80 - 87
    600, 600, 600, 600, 600, 600, 600, 600, // 88 - 95
    600, 600, 600, 600, 600, 600, 600, 600, // 96 - 103
    600, 600, 600, 600, 600, 600, 600, 600, // 104 - 111
    600, 600, 600, 600, 600, 600, 600, 600, // 112 - 119
    600, 600, 600, 600, 600, 600, 600, 0, // 120 - 127
    600, 0, 600, 600, 600, 600, 600, 600, // 128 - 135
    600, 600, 600, 600, 600, 0, 600, 0, // 136 - 143
    0, 600, 600, 600, 600, 600, 600, 600, // 144 - 151
    600, 600, 600, 600, 600, 0, 600, 600, // 152 - 159
    600, 600, 600, 600, 600, 600, 600, 600, // 160 - 167
    600, 600, 600, 600, 600, 600, 600, 600, // 168 - 175
    600, 600, 600, 600, 600, 600, 600, 600, // 176 - 183
    600, 600, 600, 600, 600, 600, 600, 600, // 184 - 191
    600, 600, 600, 600, 600, 600, 600, 600, // 192 - 199
    600, 600, 600, 600, 600, 600, 600, 600, // 200 - 207
    600, 600, 600, 600, 600, 600, 600, 600, // 208 - 215
    600, 600, 600, 600, 600, 600, 600, 600, // 216 - 223
    600, 600, 600, 600, 600, 600, 600, 600, // 224 - 231
    600, 600, 600, 600, 600, 600, 600, 600, // 232 - 239
    600, 600, 600, 600, 600, 600, 600, 600, // 240 - 247
    600, 600, 600, 600, 600, 600, 600, 600 // 248 - 255
    }
},

{ "Courier", // family name
=====================================================================
Found a 67 line (519 tokens) duplication in the following files: 
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    static const SprmInfo aSprms[] =
    {
        {  0, 0, L_FIX}, // "Default-sprm",  wird uebersprungen
        {  2, 2, L_FIX}, // "sprmPIstd",  pap.istd (style code)
        {  3, 3, L_VAR}, // "sprmPIstdPermute pap.istd permutation
        {  4, 1, L_FIX}, // "sprmPIncLv1" pap.istddifference
        {  5, 1, L_FIX}, // "sprmPJc" pap.jc (justification)
        {  6, 1, L_FIX}, // "sprmPFSideBySide" pap.fSideBySide
        {  7, 1, L_FIX}, // "sprmPFKeep" pap.fKeep
        {  8, 1, L_FIX}, // "sprmPFKeepFollow " pap.fKeepFollow
        {  9, 1, L_FIX}, // "sprmPPageBreakBefore" pap.fPageBreakBefore
        { 10, 1, L_FIX}, // "sprmPBrcl" pap.brcl
        { 11, 1, L_FIX}, // "sprmPBrcp" pap.brcp
        { 12, 0, L_VAR}, // "sprmPAnld" pap.anld (ANLD structure)
        { 13, 1, L_FIX}, // "sprmPNLvlAnm" pap.nLvlAnm nn
        { 14, 1, L_FIX}, // "sprmPFNoLineNumb" pap.fNoLnn
        { 15, 0, L_VAR}, // "?sprmPChgTabsPapx" pap.itbdMac, ...
        { 16, 2, L_FIX}, // "sprmPDxaRight" pap.dxaRight
        { 17, 2, L_FIX}, // "sprmPDxaLeft" pap.dxaLeft
        { 18, 2, L_FIX}, // "sprmPNest" pap.dxaLeft
        { 19, 2, L_FIX}, // "sprmPDxaLeft1" pap.dxaLeft1
        { 20, 4, L_FIX}, // "sprmPDyaLine" pap.lspd an LSPD
        { 21, 2, L_FIX}, // "sprmPDyaBefore" pap.dyaBefore
        { 22, 2, L_FIX}, // "sprmPDyaAfter" pap.dyaAfter
        { 23, 0, L_VAR}, // "?sprmPChgTabs" pap.itbdMac, pap.rgdxaTab, ...
        { 24, 1, L_FIX}, // "sprmPFInTable" pap.fInTable
        { 25, 1, L_FIX}, // "sprmPTtp" pap.fTtp
        { 26, 2, L_FIX}, // "sprmPDxaAbs" pap.dxaAbs
        { 27, 2, L_FIX}, // "sprmPDyaAbs" pap.dyaAbs
        { 28, 2, L_FIX}, // "sprmPDxaWidth" pap.dxaWidth
        { 29, 1, L_FIX}, // "sprmPPc" pap.pcHorz, pap.pcVert
        { 30, 2, L_FIX}, // "sprmPBrcTop10" pap.brcTop BRC10
        { 31, 2, L_FIX}, // "sprmPBrcLeft10" pap.brcLeft BRC10
        { 32, 2, L_FIX}, // "sprmPBrcBottom10" pap.brcBottom BRC10
        { 33, 2, L_FIX}, // "sprmPBrcRight10" pap.brcRight BRC10
        { 34, 2, L_FIX}, // "sprmPBrcBetween10" pap.brcBetween BRC10
        { 35, 2, L_FIX}, // "sprmPBrcBar10" pap.brcBar BRC10
        { 36, 2, L_FIX}, // "sprmPFromText10" pap.dxaFromText dxa
        { 37, 1, L_FIX}, // "sprmPWr" pap.wr wr
        { 38, 2, L_FIX}, // "sprmPBrcTop" pap.brcTop BRC
        { 39, 2, L_FIX}, // "sprmPBrcLeft" pap.brcLeft BRC
        { 40, 2, L_FIX}, // "sprmPBrcBottom" pap.brcBottom BRC
        { 41, 2, L_FIX}, // "sprmPBrcRight" pap.brcRight BRC
        { 42, 2, L_FIX}, // "sprmPBrcBetween" pap.brcBetween BRC
        { 43, 2, L_FIX}, // "sprmPBrcBar" pap.brcBar BRC word
        { 44, 1, L_FIX}, // "sprmPFNoAutoHyph" pap.fNoAutoHyph
        { 45, 2, L_FIX}, // "sprmPWHeightAbs" pap.wHeightAbs w
        { 46, 2, L_FIX}, // "sprmPDcs" pap.dcs DCS
        { 47, 2, L_FIX}, // "sprmPShd" pap.shd SHD
        { 48, 2, L_FIX}, // "sprmPDyaFromText" pap.dyaFromText dya
        { 49, 2, L_FIX}, // "sprmPDxaFromText" pap.dxaFromText dxa
        { 50, 1, L_FIX}, // "sprmPFLocked" pap.fLocked 0 or 1 byte
        { 51, 1, L_FIX}, // "sprmPFWidowControl" pap.fWidowControl 0 or 1 byte
        { 52, 0, L_FIX}, // "?sprmPRuler 52"
        { 64, 0, L_VAR}, // rtl property ?
        { 65, 1, L_FIX}, // "sprmCFStrikeRM" chp.fRMarkDel 1 or 0 bit
        { 66, 1, L_FIX}, // "sprmCFRMark" chp.fRMark 1 or 0 bit
        { 67, 1, L_FIX}, // "sprmCFFldVanish" chp.fFldVanish 1 or 0 bit
        { 68, 0, L_VAR}, // "sprmCPicLocation" chp.fcPic and chp.fSpec
        { 69, 2, L_FIX}, // "sprmCIbstRMark" chp.ibstRMark index into sttbRMark
        { 70, 4, L_FIX}, // "sprmCDttmRMark" chp.dttm DTTM long
        { 71, 1, L_FIX}, // "sprmCFData" chp.fData 1 or 0 bit
        { 72, 2, L_FIX}, // "sprmCRMReason" chp.idslRMReason an index to a table
        { 73, 3, L_FIX}, // "sprmCChse" chp.fChsDiff and chp.chse
        { 74, 0, L_VAR}, // "sprmCSymbol" chp.fSpec, chp.chSym and chp.ftcSym
        { 75, 1, L_FIX}, // "sprmCFOle2" chp.fOle2 1 or 0   bit
        { 77, 0, L_VAR}, // unknown
=====================================================================
Found a 101 line (519 tokens) duplication in the following files: 
Starting at line 608 of /local/ooo-build/ooo-build/src/oog680-m3/sax/source/expatwrap/sax_expat.cxx
Starting at line 664 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/fastsax/fastparser.cxx

Sequence< OUString > FastSaxParser::getSupportedServiceNames(void) throw (RuntimeException)
{
    
    Sequence<OUString> seq(1);
    seq.getArray()[0] = OUString::createFromAscii( SERVICE_NAME );
    return seq;
}


/*---------------------------------------
*
* Helper functions and classes
*
*-------------------------------------------*/
OUString getErrorMessage( XML_Error xmlE, OUString sSystemId , sal_Int32 nLine )
{
	OUString Message;
	if( XML_ERROR_NONE == xmlE ) {
		Message = OUString::createFromAscii( "No" );
	}
	else if( XML_ERROR_NO_MEMORY == xmlE ) {
		Message = OUString::createFromAscii( "no memory" );
	}
	else if( XML_ERROR_SYNTAX == xmlE ) {
		Message = OUString::createFromAscii( "syntax" );
	}
	else if( XML_ERROR_NO_ELEMENTS == xmlE ) {
		Message = OUString::createFromAscii( "no elements" );
	}
	else if( XML_ERROR_INVALID_TOKEN == xmlE ) {
		Message = OUString::createFromAscii( "invalid token" );
	}
	else if( XML_ERROR_UNCLOSED_TOKEN == xmlE ) {
		Message = OUString::createFromAscii( "unclosed token" );
	}
	else if( XML_ERROR_PARTIAL_CHAR == xmlE ) {
		Message = OUString::createFromAscii( "partial char" );
	}
	else if( XML_ERROR_TAG_MISMATCH == xmlE ) {
		Message = OUString::createFromAscii( "tag mismatch" );
	}
	else if( XML_ERROR_DUPLICATE_ATTRIBUTE == xmlE ) {
		Message = OUString::createFromAscii( "duplicate attribute" );
	}
	else if( XML_ERROR_JUNK_AFTER_DOC_ELEMENT == xmlE ) {
		Message = OUString::createFromAscii( "junk after doc element" );
	}
	else if( XML_ERROR_PARAM_ENTITY_REF == xmlE ) {
		Message = OUString::createFromAscii( "parameter entity reference" );
	}
	else if( XML_ERROR_UNDEFINED_ENTITY == xmlE ) {
		Message = OUString::createFromAscii( "undefined entity" );
	}
	else if( XML_ERROR_RECURSIVE_ENTITY_REF == xmlE ) {
		Message = OUString::createFromAscii( "recursive entity reference" );
	}
	else if( XML_ERROR_ASYNC_ENTITY == xmlE ) {
		Message = OUString::createFromAscii( "async entity" );
	}
	else if( XML_ERROR_BAD_CHAR_REF == xmlE ) {
		Message = OUString::createFromAscii( "bad char reference" );
	}
	else if( XML_ERROR_BINARY_ENTITY_REF == xmlE ) {
		Message = OUString::createFromAscii( "binary entity reference" );
	}
	else if( XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF == xmlE ) {
		Message = OUString::createFromAscii( "attribute external entity reference" );
	}
	else if( XML_ERROR_MISPLACED_XML_PI == xmlE ) {
		Message = OUString::createFromAscii( "misplaced xml processing instruction" );
	}
	else if( XML_ERROR_UNKNOWN_ENCODING == xmlE ) {
		Message = OUString::createFromAscii( "unknown encoding" );
	}
	else if( XML_ERROR_INCORRECT_ENCODING == xmlE ) {
		Message = OUString::createFromAscii( "incorrect encoding" );
	}
	else if( XML_ERROR_UNCLOSED_CDATA_SECTION == xmlE ) {
		Message = OUString::createFromAscii( "unclosed cdata section" );
	}
	else if( XML_ERROR_EXTERNAL_ENTITY_HANDLING == xmlE ) {
		Message = OUString::createFromAscii( "external entity reference" );
	}
	else if( XML_ERROR_NOT_STANDALONE == xmlE ) {
		Message = OUString::createFromAscii( "not standalone" );	
	}

	OUString str = OUString::createFromAscii( "[" );
	str += sSystemId;
	str += OUString::createFromAscii( " line " );
	str += OUString::valueOf( nLine );
	str += OUString::createFromAscii( "]: " );
	str += Message;
	str += OUString::createFromAscii( "error" );

	return str;
}


// starts parsing with actual parser !
void FastSaxParser::parse( )
=====================================================================
Found a 18 line (519 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10a0 - 10af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10b0 - 10bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10c0 - 10cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10d0 - 10df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10e0 - 10ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10f0 - 10ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1600 - 160f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1610 - 161f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1620 - 162f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1630 - 163f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1640 - 164f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1650 - 165f
=====================================================================
Found a 69 line (518 tokens) duplication in the following files: 
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 968 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xbf, 0xaf },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x00, 0xd7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0xdd },
{ 0x00, 0xfe, 0xde },
{ 0x00, 0xff, 0xff },
};


struct cs_info iso3_tbl[] = {
=====================================================================
Found a 35 line (518 tokens) duplication in the following files: 
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/idl/source/cmptools/char.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/string/strcvt.cxx

static sal_uChar aImplByteTab[256] =
{
	0,	 1,   2,   3,	4,	 5,   6,   7,
	8,	 9,  10,  11,  12,	13,  14,  15,
   16,	17,  18,  19,  20,	21,  22,  23,
   24,	25,  26,  27,  28,	29,  30,  31,
   32,	33,  34,  35,  36,	37,  38,  39,
   40,	41,  42,  43,  44,	45,  46,  47,
   48,	49,  50,  51,  52,	53,  54,  55,
   56,	57,  58,  59,  60,	61,  62,  63,
   64,	65,  66,  67,  68,	69,  70,  71,
   72,	73,  74,  75,  76,	77,  78,  79,
   80,	81,  82,  83,  84,	85,  86,  87,
   88,	89,  90,  91,  92,	93,  94,  95,
   96,	97,  98,  99, 100, 101, 102, 103,
  104, 105, 106, 107, 108, 109, 110, 111,
  112, 113, 114, 115, 116, 117, 118, 119,
  120, 121, 122, 123, 124, 125, 126, 127,
  128, 129, 130, 131, 132, 133, 134, 135,
  136, 137, 138, 139, 140, 141, 142, 143,
  144, 145, 146, 147, 148, 149, 150, 151,
  152, 153, 154, 155, 156, 157, 158, 159,
  160, 161, 162, 163, 164, 165, 166, 167,
  168, 169, 170, 171, 172, 173, 174, 175,
  176, 177, 178, 179, 180, 181, 182, 183,
  184, 185, 186, 187, 188, 189, 190, 191,
  192, 193, 194, 195, 196, 197, 198, 199,
  200, 201, 202, 203, 204, 205, 206, 207,
  208, 209, 210, 211, 212, 213, 214, 215,
  216, 217, 218, 219, 220, 221, 222, 223,
  224, 225, 226, 227, 228, 229, 230, 231,
  232, 233, 234, 235, 236, 237, 238, 239,
  240, 241, 242, 243, 244, 245, 246, 247,
  248, 249, 250, 251, 252, 253, 254, 255
};
=====================================================================
Found a 37 line (517 tokens) duplication in the following files: 
Starting at line 343 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx

  ITALIC_NORMAL, // italic type
  { 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 7
    0, 0, 0, 0, 0, 0, 0, 0, // 8 - 15
    0, 0, 0, 0, 0, 0, 0, 0, // 16 - 23
    0, 0, 0, 0, 0, 0, 0, 0, // 24 - 31
    278, 333, 474, 556, 556, 889, 722, 238, // 32 - 39
    333, 333, 389, 584, 278, 333, 278, 278, // 40 - 47
    556, 556, 556, 556, 556, 556, 556, 556, // 48 - 55
    556, 556, 333, 333, 584, 584, 584, 611, // 56 - 63
    975, 722, 722, 722, 722, 667, 611, 778, // 64 - 71
    722, 278, 556, 722, 611, 833, 722, 778, // 72 - 79
    667, 778, 722, 667, 611, 722, 667, 944, // 80 - 87
    667, 667, 611, 333, 278, 333, 584, 556, // 88 - 95
    333, 556, 611, 556, 611, 556, 333, 611, // 96 - 103
    611, 278, 278, 556, 278, 889, 611, 611, // 104 - 111
    611, 611, 389, 556, 333, 611, 556, 778, // 112 - 119
    556, 556, 500, 389, 280, 389, 584, 0, // 120 - 127
    556, 0, 278, 556, 500, 1000, 556, 556, // 128 - 135
    333, 1000, 667, 333, 1000, 0, 500, 0, // 136 - 143
    0, 278, 278, 500, 500, 350, 556, 1000, // 144 - 151
    333, 1000, 556, 333, 944, 0, 500, 667, // 152 - 159
    278, 333, 556, 556, 556, 556, 280, 556, // 160 - 167
    333, 737, 370, 556, 584, 333, 737, 333, // 168 - 175
    400, 584, 333, 333, 333, 611, 556, 278, // 176 - 183
    333, 333, 365, 556, 834, 834, 834, 611, // 184 - 191
    722, 722, 722, 722, 722, 722, 1000, 722, // 192 - 199
    667, 667, 667, 667, 278, 278, 278, 278, // 200 - 207
    722, 722, 778, 778, 778, 778, 778, 584, // 208 - 215
    778, 722, 722, 722, 722, 667, 667, 611, // 216 - 223
    556, 556, 556, 556, 556, 556, 889, 556, // 224 - 231
    556, 556, 556, 556, 278, 278, 278, 278, // 232 - 239
    611, 611, 611, 611, 611, 611, 611, 584, // 240 - 247
    611, 611, 611, 611, 611, 556, 611, 556 // 248 - 255
    }
},

{ "Times", // family name
=====================================================================
Found a 37 line (517 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx

  ITALIC_NORMAL, // italic type
  { 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 7
    0, 0, 0, 0, 0, 0, 0, 0, // 8 - 15
    0, 0, 0, 0, 0, 0, 0, 0, // 16 - 23
    0, 0, 0, 0, 0, 0, 0, 0, // 24 - 31
    600, 600, 600, 600, 600, 600, 600, 600, // 32 - 39
    600, 600, 600, 600, 600, 600, 600, 600, // 40 - 47
    600, 600, 600, 600, 600, 600, 600, 600, // 48 - 55
    600, 600, 600, 600, 600, 600, 600, 600, // 56 - 63
    600, 600, 600, 600, 600, 600, 600, 600, // 64 - 71
    600, 600, 600, 600, 600, 600, 600, 600, // 72 - 79
    600, 600, 600, 600, 600, 600, 600, 600, // 80 - 87
    600, 600, 600, 600, 600, 600, 600, 600, // 88 - 95
    600, 600, 600, 600, 600, 600, 600, 600, // 96 - 103
    600, 600, 600, 600, 600, 600, 600, 600, // 104 - 111
    600, 600, 600, 600, 600, 600, 600, 600, // 112 - 119
    600, 600, 600, 600, 600, 600, 600, 0, // 120 - 127
    600, 0, 600, 600, 600, 600, 600, 600, // 128 - 135
    600, 600, 600, 600, 600, 0, 600, 0, // 136 - 143
    0, 600, 600, 600, 600, 600, 600, 600, // 144 - 151
    600, 600, 600, 600, 600, 0, 600, 600, // 152 - 159
    600, 600, 600, 600, 600, 600, 600, 600, // 160 - 167
    600, 600, 600, 600, 600, 600, 600, 600, // 168 - 175
    600, 600, 600, 600, 600, 600, 600, 600, // 176 - 183
    600, 600, 600, 600, 600, 600, 600, 600, // 184 - 191
    600, 600, 600, 600, 600, 600, 600, 600, // 192 - 199
    600, 600, 600, 600, 600, 600, 600, 600, // 200 - 207
    600, 600, 600, 600, 600, 600, 600, 600, // 208 - 215
    600, 600, 600, 600, 600, 600, 600, 600, // 216 - 223
    600, 600, 600, 600, 600, 600, 600, 600, // 224 - 231
    600, 600, 600, 600, 600, 600, 600, 600, // 232 - 239
    600, 600, 600, 600, 600, 600, 600, 600, // 240 - 247
    600, 600, 600, 600, 600, 600, 600, 600 // 248 - 255
    }
},

{ "Helvetica", // family name
=====================================================================
Found a 103 line (517 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/crc.c
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storbase.cxx

const sal_uInt32 store::OStorePageGuard::m_pTable[] =
{
	/* 0 */
	0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 
	0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, 
	0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 
	0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, 

	/* 1 */
	0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 
	0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 
	0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, 
	0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, 

	/* 2 */
	0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172, 
	0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, 
	0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, 
	0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 

	/* 3 */
	0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116, 
	0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F, 
	0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, 
	0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, 

	/* 4 */
	0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, 
	0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433, 
	0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, 
	0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, 

	/* 5 */
	0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, 
	0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 
	0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C, 
	0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, 

	/* 6 */
	0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, 
	0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 
	0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 
	0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9, 

	/* 7 */
	0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, 
	0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, 
	0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 
	0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, 

	/* 8 */
	0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 
	0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683, 
	0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, 
	0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 

	/* 9 */
	0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 
	0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, 
	0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC, 
	0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, 

	/* A */
	0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 
	0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, 
	0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 
	0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79, 

	/* B */
	0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, 
	0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, 
	0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 
	0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, 

	/* C */
	0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A, 
	0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, 
	0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, 
	0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 

	/* D */
	0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E, 
	0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, 
	0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, 
	0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, 

	/* E */
	0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 
	0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB, 
	0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, 
	0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, 

	/* F */
	0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 
	0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF, 
	0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94, 
	0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D
};

/*
 * crc32.
 */
sal_uInt32 OStorePageGuard::crc32 (
=====================================================================
Found a 39 line (517 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/gnu/public.h

void Print_cmnd ANSI((char *, int, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
FILE *Openfile ANSI((char *, int, int));
FILE *Closefile ANSI(());
FILE *Search_file ANSI((char *, char **));
char *Filename ANSI(());
int Nestlevel ANSI(());
FILE *TryFiles ANSI((LINKPTR));
void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
=====================================================================
Found a 84 line (516 tokens) duplication in the following files: 
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/plfilter.cxx
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/plfilter.cxx

using namespace std;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::plugin;

struct ltstr
{
	bool operator()( const String& s1, const String& s2 ) const
	{
		return ( s1.CompareTo( s2 ) == COMPARE_LESS );
	}
};

typedef set< String, ltstr > StrSet;
typedef map< String, StrSet, ltstr > FilterMap;


//==================================================================================================
void fillNetscapePluginFilters( Sequence< rtl::OUString >& rPluginNames, Sequence< rtl::OUString >& rPluginTypes )
{
	Reference< XMultiServiceFactory > xMan( ::utl::getProcessServiceFactory() );
	Reference< XPluginManager > xPMgr( xMan->createInstance(
		rtl::OUString::createFromAscii("com.sun.star.plugin.PluginManager") ), UNO_QUERY );

	if ( xPMgr.is() )
	{
		FilterMap aMap;

		// mimetypes zusammenfassen: eine description, mehrere extensions

		Sequence<PluginDescription > aDescriptions( xPMgr->getPluginDescriptions() );
		const PluginDescription * pDescriptions = aDescriptions.getConstArray();
		for ( UINT32 nPos = aDescriptions.getLength(); nPos--; )
		{
			const PluginDescription & rDescr = pDescriptions[nPos];

			StrSet& rTypes = aMap[ rDescr.Description ];
			String aExtension( rDescr.Extension );

			for ( USHORT nCnt = aExtension.GetTokenCount( ';' ); nCnt--; )
			{
				// no default plugins anymore
				String aExt( aExtension.GetToken( nCnt, ';' ) );
				if ( aExt.CompareToAscii( "*.*" ) != COMPARE_EQUAL )
					rTypes.insert( aExt );
			}
		}

        rPluginNames = Sequence< rtl::OUString >( aMap.size() );
        rPluginTypes = Sequence< rtl::OUString >( aMap.size() );
        rtl::OUString* pPluginNames = rPluginNames.getArray();
        rtl::OUString* pPluginTypes = rPluginTypes.getArray();
        int nIndex = 0;
		for ( FilterMap::iterator iPos = aMap.begin(); iPos != aMap.end(); ++iPos )
		{
			String aText( (*iPos).first );
			String aType;
			StrSet& rTypes = (*iPos).second;
			StrSet::iterator i = rTypes.begin();
			while ( i != rTypes.end() )
			{
				aType += (*i);
				++i;
				if ( i != rTypes.end() )
					aType += ';';
			}

			if ( aType.Len() )
			{
				aText += String::CreateFromAscii( " (" );
				aText += aType;
				aText += ')';
                pPluginNames[nIndex] = aText;
                pPluginTypes[nIndex] = aType;
                nIndex++;
			}
		}
        rPluginNames.realloc( nIndex );
        rPluginTypes.realloc( nIndex );
	}
	else
		ShowServiceNotAvailableError( NULL,
			String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.plugin.PluginManager" ) ), TRUE );
}
=====================================================================
Found a 114 line (514 tokens) duplication in the following files: 
Starting at line 3291 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3459 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

            p->nStartPos = p->nEndPos = WW8_CP_MAX;   // Sepx empty
            p->pMemPos = 0;
            p->nSprmsLen = 0;
        }
        else
        {
            pStrm->Seek( nPo );
            *pStrm >> nSprmSiz; // read len

            if( nSprmSiz > nArrMax )
            {               // passt nicht
                delete[] pSprms;
                nArrMax = nSprmSiz;                 // Hole mehr Speicher
                pSprms = new BYTE[nArrMax];
            }
            pStrm->Read( pSprms, nSprmSiz );        // read Sprms

            p->nSprmsLen = nSprmSiz;
            p->pMemPos = pSprms;                    // return Position
        }
    }
}

WW8PLCFx& WW8PLCFx_SEPX::operator ++( int )
{
    if( pPLCF )
        (*pPLCF)++;
    return *this;
}

const BYTE* WW8PLCFx_SEPX::HasSprm( USHORT nId ) const
{
    return HasSprm( nId, pSprms, nSprmSiz);
}

const BYTE* WW8PLCFx_SEPX::HasSprm( USHORT nId, const BYTE*  pOtherSprms,
    long nOtherSprmSiz ) const
{
    const BYTE *pRet = 0;
    if (pPLCF)
    {
        WW8SprmIter aIter(pOtherSprms, nOtherSprmSiz, maSprmParser);
        pRet = aIter.FindSprm(nId);
    }
    return pRet;
}

bool WW8PLCFx_SEPX::Find4Sprms(USHORT nId1,USHORT nId2,USHORT nId3,USHORT nId4,
    BYTE*& p1, BYTE*& p2, BYTE*& p3, BYTE*& p4) const
{
    if( !pPLCF )
        return 0;

    bool bFound = false;
    p1 = 0;
    p2 = 0;
    p3 = 0;
    p4 = 0;

    BYTE* pSp = pSprms;
    USHORT i=0;
    while (i + maSprmParser.MinSprmLen() <= nSprmSiz)
    {
        // Sprm gefunden?
        USHORT nAktId = maSprmParser.GetSprmId(pSp);
        bool bOk = true;
        if( nAktId  == nId1 )
            p1 = pSp + maSprmParser.DistanceToData(nId1);
        else if( nAktId  == nId2 )
            p2 = pSp + maSprmParser.DistanceToData(nId2);
        else if( nAktId  == nId3 )
            p3 = pSp + maSprmParser.DistanceToData(nId3);
        else if( nAktId  == nId4 )
            p4 = pSp + maSprmParser.DistanceToData(nId4);
        else
            bOk = false;
        bFound |= bOk;
        // erhoehe Zeiger, so dass er auf naechsten Sprm zeigt
        USHORT x = maSprmParser.GetSprmSize(nAktId, pSp);
        i += x;
        pSp += x;
    }
    return bFound;
}

const BYTE* WW8PLCFx_SEPX::HasSprm( USHORT nId, BYTE n2nd ) const
{
    if( !pPLCF )
        return 0;

    BYTE* pSp = pSprms;

    USHORT i=0;
    while (i + maSprmParser.MinSprmLen() <= nSprmSiz)
    {
        // Sprm gefunden?
        USHORT nAktId = maSprmParser.GetSprmId(pSp);
        if (nAktId == nId)
        {
            BYTE *pRet = pSp + maSprmParser.DistanceToData(nId);
            if (*pRet == n2nd)
                return pRet;
        }
        // erhoehe Zeiger, so dass er auf naechsten Sprm zeigt
        USHORT x = maSprmParser.GetSprmSize(nAktId, pSp);
        i += x;
        pSp += x;
    }

    return 0;   // Sprm nicht gefunden
}

//-----------------------------------------
WW8PLCFx_SubDoc::WW8PLCFx_SubDoc(SvStream* pSt, ww::WordVersion eVersion,
=====================================================================
Found a 18 line (513 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0,// 1690 - 169f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16a0 - 16af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16b0 - 16bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16c0 - 16cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16d0 - 16df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16e0 - 16ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16f0 - 16ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1700 - 170f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1710 - 171f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
=====================================================================
Found a 125 line (512 tokens) duplication in the following files: 
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/win32/misc/WinImplHelper.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/sysui/source/win32/misc/WinImplHelper.cxx

        hwnd, CB_ADDSTRING, 0, reinterpret_cast< LPARAM >(aString.getStr( )) );

    OSL_ASSERT( (CB_ERR != rc) && (CB_ERRSPACE != rc) );
}

//------------------------------------------------------------
//
//------------------------------------------------------------

OUString SAL_CALL ListboxGetString( HWND hwnd, sal_Int32 aPosition )
{
    OSL_ASSERT( IsWindow( hwnd ) );
    
    OUString aString;
	
	LRESULT lItem = 
        SendMessageW( hwnd, CB_GETLBTEXTLEN, aPosition, 0 );			

	if ( (CB_ERR != lItem) && (lItem > 0) )
	{
	    // message returns the len of a combobox item 
		// without trailing '\0' that's why += 1
		lItem++;
            
        CAutoUnicodeBuffer aBuff( lItem );

		LRESULT lRet = 
            SendMessageW( 
                hwnd, CB_GETLBTEXT, aPosition, 
                reinterpret_cast<LPARAM>(&aBuff) );

        OSL_ASSERT( lRet != CB_ERR );

	    if ( CB_ERR != lRet )			
            aString = OUString( aBuff, lRet );			            
    } 

    return aString;
}

//------------------------------------------------------------
//
//------------------------------------------------------------

void SAL_CALL ListboxAddItem( HWND hwnd, const Any& aItem, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
    throw( IllegalArgumentException )
{
    OSL_ASSERT( IsWindow( hwnd ) );

    if ( !aItem.hasValue( ) || 
         aItem.getValueType( ) != getCppuType((OUString*)0) )
         throw IllegalArgumentException(
            OUString::createFromAscii( "invalid value type or any has no value" ),
            rXInterface,
            aArgPos );

    OUString cbItem;
    aItem >>= cbItem;

    ListboxAddString( hwnd, cbItem );
}

//------------------------------------------------------------
//
//------------------------------------------------------------

void SAL_CALL ListboxAddItems( HWND hwnd, const Any& aItemList, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
    throw( IllegalArgumentException )
{
    OSL_ASSERT( IsWindow( hwnd ) );
    
    if ( !aItemList.hasValue( ) || 
         aItemList.getValueType( ) != getCppuType((Sequence<OUString>*)0) )
         throw IllegalArgumentException(
            OUString::createFromAscii( "invalid value type or any has no value" ),
            rXInterface,
            aArgPos );

    Sequence< OUString > aStringList;
    aItemList >>= aStringList;

    sal_Int32 nItemCount = aStringList.getLength( );
    for( sal_Int32 i = 0; i < nItemCount; i++ )
    {
        ListboxAddString( hwnd, aStringList[i] );
    }
}

//------------------------------------------------------------
//
//------------------------------------------------------------

void SAL_CALL ListboxDeleteItem( HWND hwnd, const Any& aPosition, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
    throw( IllegalArgumentException )
{
    OSL_ASSERT( IsWindow( hwnd ) );

    if ( !aPosition.hasValue( ) || 
         ( (aPosition.getValueType( ) != getCppuType((sal_Int32*)0)) &&
           (aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
           (aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
         throw IllegalArgumentException(
            OUString::createFromAscii( "invalid value type or any has no value" ),
            rXInterface,
            aArgPos );

    sal_Int32 nPos;
    aPosition >>= nPos;

    LRESULT lRet = SendMessage( hwnd, CB_DELETESTRING, nPos, 0 );

    // if the return value is CB_ERR the given
    // index was not correct
    if ( CB_ERR == lRet )
        throw IllegalArgumentException(
            OUString::createFromAscii( "inavlid item position" ),
            rXInterface,
            aArgPos );
}

//------------------------------------------------------------
//
//------------------------------------------------------------

void SAL_CALL ListboxDeleteItems( HWND hwnd, const Any& /*unused*/, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
=====================================================================
Found a 133 line (511 tokens) duplication in the following files: 
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpresultsetbase.cxx
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx

using namespace chelp;
using namespace com::sun::star;

ResultSetBase::ResultSetBase( const uno::Reference< lang::XMultiServiceFactory >&  xMSF,
							  const uno::Reference< ucb::XContentProvider >&  xProvider,
							  sal_Int32 nOpenMode,
							  const uno::Sequence< beans::Property >& seq,
							  const uno::Sequence< ucb::NumberedSortingInfo >& seqSort )
	: m_xMSF( xMSF ),
	  m_xProvider( xProvider ),
	  m_nRow( -1 ),
	  m_nWasNull( true ),
	  m_nOpenMode( nOpenMode ),
	  m_bRowCountFinal( true ),
	  m_sProperty( seq ),
	  m_sSortingInfo( seqSort ),
	  m_pDisposeEventListeners( 0 ),
	  m_pRowCountListeners( 0 ),
	  m_pIsFinalListeners( 0 )
{
}

ResultSetBase::~ResultSetBase()
{
	delete m_pIsFinalListeners;
	delete m_pRowCountListeners;
	delete m_pDisposeEventListeners;
}


// XInterface

void SAL_CALL
ResultSetBase::acquire(
	void )
	throw()
{
	OWeakObject::acquire();
}


void SAL_CALL
ResultSetBase::release(
	void )
	throw()
{
	OWeakObject::release();
}



uno::Any SAL_CALL
ResultSetBase::queryInterface(
	const uno::Type& rType )
	throw( uno::RuntimeException )
{
	uno::Any aRet = cppu::queryInterface( rType,
										  SAL_STATIC_CAST( lang::XComponent*, this),
										  SAL_STATIC_CAST( sdbc::XRow*, this),
										  SAL_STATIC_CAST( sdbc::XResultSet*, this),
										  SAL_STATIC_CAST( sdbc::XResultSetMetaDataSupplier*, this),
										  SAL_STATIC_CAST( beans::XPropertySet*, this ),
										  SAL_STATIC_CAST( ucb::XContentAccess*, this) );
	return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}



// XComponent


void SAL_CALL
ResultSetBase::addEventListener(
	const uno::Reference< lang::XEventListener >& Listener )
	throw( uno::RuntimeException )
{
	osl::MutexGuard aGuard( m_aMutex );
	
	if ( ! m_pDisposeEventListeners )
		m_pDisposeEventListeners =
			new cppu::OInterfaceContainerHelper( m_aMutex );
	
	m_pDisposeEventListeners->addInterface( Listener );
}


void SAL_CALL
ResultSetBase::removeEventListener(
	const uno::Reference< lang::XEventListener >& Listener )
	throw( uno::RuntimeException )
{
	osl::MutexGuard aGuard( m_aMutex );

	if ( m_pDisposeEventListeners )
		m_pDisposeEventListeners->removeInterface( Listener );
}



void SAL_CALL
ResultSetBase::dispose()
	throw( uno::RuntimeException )
{
	osl::MutexGuard aGuard( m_aMutex );

	lang::EventObject aEvt;
	aEvt.Source = static_cast< lang::XComponent * >( this );

	if ( m_pDisposeEventListeners && m_pDisposeEventListeners->getLength() )
	{
		m_pDisposeEventListeners->disposeAndClear( aEvt );
	}
	if( m_pRowCountListeners && m_pRowCountListeners->getLength() )
	{
		m_pRowCountListeners->disposeAndClear( aEvt );
	}
	if( m_pIsFinalListeners && m_pIsFinalListeners->getLength() )
	{
		m_pIsFinalListeners->disposeAndClear( aEvt );
	}
}



//  XResultSet

sal_Bool SAL_CALL
ResultSetBase::next(
	void )
	throw( sdbc::SQLException,
		   uno::RuntimeException )
{
	sal_Bool test;
=====================================================================
Found a 41 line (511 tokens) duplication in the following files: 
Starting at line 4084 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3705 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptRibbon2Vert[] =	// adjustment1 : x 2700	 - 8100		def 5400
{														// adjustment2 : y 14400 - 21600	def 18900
	{ 12 MSO_I, 1 MSO_I }, { 12 MSO_I, 13 MSO_I },										// pp
	{ 12 MSO_I, 14 MSO_I }, { 15 MSO_I, 21600 }, { 16 MSO_I, 21600 },					// ccp
	{ 0, 21600 }, { 2750, 7 MSO_I }, { 0, 2 MSO_I }, { 0 MSO_I, 2 MSO_I },				// pppp
	{ 0 MSO_I, 4 MSO_I },																// p
	{ 0 MSO_I, 5 MSO_I }, { 10 MSO_I, 0 }, { 11 MSO_I, 0 },								// ccp
	{ 17 MSO_I, 0 },																	// p
	{ 18 MSO_I, 0 }, { 19 MSO_I, 5 MSO_I }, { 19 MSO_I, 4 MSO_I },						// ccp
	{ 19 MSO_I, 2 MSO_I }, { 21600, 2 MSO_I }, { 18850, 7 MSO_I }, { 21600, 21600 },	// pppp
	{ 20 MSO_I, 21600 },																// p
	{ 21 MSO_I, 21600 }, { 22 MSO_I, 14 MSO_I }, { 22 MSO_I, 13 MSO_I },				// ccp
	{ 22 MSO_I, 1 MSO_I }, { 12 MSO_I, 1 MSO_I }, { 12 MSO_I, 13 MSO_I },				// ppp
	{ 12 MSO_I, 23 MSO_I }, { 15 MSO_I, 24 MSO_I }, { 16 MSO_I, 24 MSO_I },				// ccp
	{ 11 MSO_I, 24 MSO_I },																// p
	{ 10 MSO_I, 24 MSO_I }, { 0 MSO_I, 26 MSO_I }, { 0 MSO_I, 25 MSO_I },				// ccp
	{ 0 MSO_I, 27 MSO_I }, { 10 MSO_I, 1 MSO_I }, { 11 MSO_I, 1 MSO_I },				// ccp

	{ 22 MSO_I, 1 MSO_I }, { 22 MSO_I, 13 MSO_I },										// pp
	{ 22 MSO_I, 23 MSO_I }, { 21 MSO_I, 24 MSO_I }, { 20 MSO_I, 24 MSO_I },				// ccp
	{ 17 MSO_I, 24 MSO_I },																// p
	{ 18 MSO_I, 24 MSO_I }, { 19 MSO_I, 26 MSO_I }, { 19 MSO_I, 25 MSO_I },				// ccp
	{ 19 MSO_I, 27 MSO_I }, { 18 MSO_I, 1 MSO_I }, { 17 MSO_I, 1 MSO_I },				// ccp

	{ 0 MSO_I, 25 MSO_I }, { 0 MSO_I, 2 MSO_I },										// pp

	{ 19 MSO_I, 25 MSO_I }, { 19 MSO_I, 2 MSO_I }										// pp
};
static const sal_uInt16 mso_sptRibbon2Segm[] =
{
	0x4000, 0x0001, 0x2001, 0x0005, 0x2001, 0x0001, 0x2001, 0x0005, 0x2001, 0x0001, 0x6001, 0x8000,
	0x4000, 0x0001, 0x2001, 0x0001, 0x2002, 0x6001, 0x8000,
	0x4000, 0x0001, 0x2001, 0x0001, 0x2002, 0x6001, 0x8000,
	0x4000, 0x0001, 0x8000,
	0x4000, 0x0001, 0x8000
};
static const SvxMSDffCalculationData mso_sptRibbon2Calc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },				// 00
=====================================================================
Found a 65 line (511 tokens) duplication in the following files: 
Starting at line 968 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4596 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xbf, 0xbf },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x00, 0xd7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0xdd },
{ 0x00, 0xfe, 0xde },
{ 0x00, 0xff, 0xbe },
=====================================================================
Found a 18 line (511 tokens) duplication in the following files: 
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1232 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16b0 - 16bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16c0 - 16cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16d0 - 16df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16e0 - 16ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16f0 - 16ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1700 - 170f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1710 - 171f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 57 line (509 tokens) duplication in the following files: 
Starting at line 5751 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 8823 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 11470 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 14542 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

        CPPUNIT_TEST_SUITE( append_007_Int64_Negative );
        CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
        CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
        CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
        CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
        CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
        CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
        CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
        CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
        CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
        CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
        CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
        CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
        CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
        CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
        CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
        CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
        CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
        CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
        CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
        CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
        CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
        CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
        CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
        CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
        CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
        CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
        CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
        CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
        CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
        CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
        CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
        CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
        CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
        CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
        CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
        CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
        CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
        CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
        CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
        CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
        CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
        CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
        CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
        CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
        CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
        CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
        CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
        CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
        CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
        CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
        CPPUNIT_TEST_SUITE_END();
    };
//------------------------------------------------------------------------
// testing the method append( sal_Int64 i, sal_Int16 radix ) where radix = -5
//------------------------------------------------------------------------
    class  append_007_Int64_WrongRadix : public CppUnit::TestFixture
=====================================================================
Found a 18 line (509 tokens) duplication in the following files: 
Starting at line 783 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 815 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d700 - d70f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d710 - d71f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d720 - d72f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d730 - d73f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d740 - d74f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d750 - d75f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d760 - d76f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d770 - d77f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d780 - d78f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d790 - d79f
     5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7a0 - d7af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7b0 - d7bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7c0 - d7cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7d0 - d7df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7e0 - d7ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7f0 - d7ff
=====================================================================
Found a 87 line (508 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/performance/ubtest.cxx
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/processfactory/componentfactory.cxx

	oslModule lib = osl_loadModule( rLibName.pData, SAL_LOADMODULE_LAZY | SAL_LOADMODULE_GLOBAL );
	if (lib)
	{
		void * pSym;

		// ========================= LATEST VERSION =========================
		OUString aGetEnvName( RTL_CONSTASCII_USTRINGPARAM(COMPONENT_GETENV) );
		if (pSym = osl_getSymbol( lib, aGetEnvName.pData ))
		{
			uno_Environment * pCurrentEnv = 0;
			uno_Environment * pEnv = 0;
			const sal_Char * pEnvTypeName = 0;
			(*((component_getImplementationEnvironmentFunc)pSym))( &pEnvTypeName, &pEnv );

			sal_Bool bNeedsMapping =
				(pEnv || 0 != rtl_str_compare( pEnvTypeName, CPPU_CURRENT_LANGUAGE_BINDING_NAME ));

			OUString aEnvTypeName( OUString::createFromAscii( pEnvTypeName ) );

			if (bNeedsMapping)
			{
				if (! pEnv)
					uno_getEnvironment( &pEnv, aEnvTypeName.pData, 0 );
				if (pEnv)
				{
					OUString aCppEnvTypeName( RTL_CONSTASCII_USTRINGPARAM(CPPU_CURRENT_LANGUAGE_BINDING_NAME) );
					uno_getEnvironment( &pCurrentEnv, aCppEnvTypeName.pData, 0 );
					if (pCurrentEnv)
						bNeedsMapping = (pEnv != pCurrentEnv);
				}
			}

			OUString aGetFactoryName( RTL_CONSTASCII_USTRINGPARAM(COMPONENT_GETFACTORY) );
			if (pSym = osl_getSymbol( lib, aGetFactoryName.pData ))
			{
				OString aImplName( OUStringToOString( rImplName, RTL_TEXTENCODING_ASCII_US ) );

				if (bNeedsMapping)
				{
					if (pEnv && pCurrentEnv)
					{
						Mapping aCurrent2Env( pCurrentEnv, pEnv );
						Mapping aEnv2Current( pEnv, pCurrentEnv );

						if (aCurrent2Env.is() && aEnv2Current.is())
						{
							void * pSMgr = aCurrent2Env.mapInterface(
								xSF.get(), ::getCppuType( (const Reference< XMultiServiceFactory > *)0 ) );
							void * pKey = aCurrent2Env.mapInterface(
								xKey.get(), ::getCppuType( (const Reference< XRegistryKey > *)0 ) );

							void * pSSF = (*((component_getFactoryFunc)pSym))(
								aImplName.getStr(), pSMgr, pKey );

							if (pKey)
								(*pEnv->pExtEnv->releaseInterface)( pEnv->pExtEnv, pKey );
							if (pSMgr)
								(*pEnv->pExtEnv->releaseInterface)( pEnv->pExtEnv, pSMgr );

							if (pSSF)
							{
								aEnv2Current.mapInterface(
									reinterpret_cast< void ** >( &xRet ),
									pSSF, ::getCppuType( (const Reference< XSingleServiceFactory > *)0 ) );
								(*pEnv->pExtEnv->releaseInterface)( pEnv->pExtEnv, pSSF );
							}
						}
					}
				}
				else
				{
					XSingleServiceFactory * pRet = (XSingleServiceFactory *)
						(*((component_getFactoryFunc)pSym))(
							aImplName.getStr(), xSF.get(), xKey.get() );
					if (pRet)
					{
						xRet = pRet;
						pRet->release();
					}
				}
			}

			if (pEnv)
				(*pEnv->release)( pEnv );
			if (pCurrentEnv)
				(*pCurrentEnv->release)( pCurrentEnv );
		}
=====================================================================
Found a 89 line (506 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/signer.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/verifier.cxx

	doc = xmlParseFile( argv[2] ) ;
	if( doc == NULL || xmlDocGetRootElement( doc ) == NULL ) {
		fprintf( stderr , "### Cannot load template xml document!\n" ) ;
		goto done ;
	}

	//Find the signature template
	tplNode = xmlSecFindNode( xmlDocGetRootElement( doc ), xmlSecNodeSignature, xmlSecDSigNs ) ;
	if( tplNode == NULL ) {
		fprintf( stderr , "### Cannot find the signature template!\n" ) ;
		goto done ;
	}

	//Find the element with ID attribute
	tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", ( xmlChar* )"http://openoffice.org/2000/office" ) ;
	if( tarNode == NULL ) {
		tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", NULL ) ;
	}
										
	//Find the "id" attrbute in the element
	if( tarNode != NULL ) {
		if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"id" ) ) != NULL ) {
			//NULL
		} else if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"Id" ) ) != NULL ) {
			//NULL
		} else {
			idAttr = NULL ;
		}
	}
										
	//Add ID to DOM
	if( idAttr != NULL ) {
		idValue = xmlNodeListGetString( tarNode->doc, idAttr->children, 1 ) ;
		if( idValue == NULL ) {
			fprintf( stderr , "### the ID value is NULL!\n" ) ;
			goto done ;
		}
										
		if( xmlAddID( NULL, doc, idValue, idAttr ) == NULL ) {
			fprintf( stderr , "### Can not add the ID value!\n" ) ;
			goto done ;
		}
	}

	//Reference handler
	//Find the signature reference
	tarNode = xmlSecFindNode( tplNode, xmlSecNodeReference, xmlSecDSigNs ) ;
	if( tarNode == NULL ) {
		fprintf( stderr , "### Cannot find the signature reference!\n" ) ;
		goto done ;
	}

	//Find the "URI" attrbute in the reference
	uriAttr = xmlHasProp( tarNode, ( xmlChar* )"URI" ) ;
	if( tarNode == NULL ) {
		fprintf( stderr , "### Cannot find URI of the reference!\n" ) ;
		goto done ;
	}

	//Get the "URI" attrbute value
	uriValue = xmlNodeListGetString( tarNode->doc, uriAttr->children, 1 ) ;
	if( uriValue == NULL ) {
		fprintf( stderr , "### the URI value is NULL!\n" ) ;
		goto done ;
	}

	if( strchr( ( const char* )uriValue, '/' ) != NULL && strchr( ( const char* )uriValue, '#' ) == NULL ) {
		fprintf( stdout , "### Find a stream URI [%s]\n", uriValue ) ;
	//	uri = new ::rtl::OUString( ( const sal_Unicode* )uriValue ) ;
		uri = new ::rtl::OUString( ( const sal_Char* )uriValue, xmlStrlen( uriValue ), RTL_TEXTENCODING_ASCII_US ) ;
	}

	if( uri != NULL ) {
		fprintf( stdout , "### Find the URI [%s]\n", OUStringToOString( *uri , RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
		Reference< XInputStream > xStream = createStreamFromFile( *uri ) ;
		if( !xStream.is() ) {
			fprintf( stderr , "### Can not get the URI stream!\n" ) ;
			goto done ;
		}

		xUriBinding = new OUriBinding( *uri, xStream ) ;
	}


	try {
		Reference< XMultiComponentFactory > xManager = NULL ;
		Reference< XComponentContext > xContext = NULL ;

		xManager = serviceManager( xContext , OUString::createFromAscii( "local" ),  OUString::createFromAscii( argv[3] ) ) ;
=====================================================================
Found a 75 line (506 tokens) duplication in the following files: 
Starting at line 2641 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 4803 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

void SAL_CALL OStorage::insertRelationships(  const uno::Sequence< uno::Sequence< beans::StringPair > >& aEntries, ::sal_Bool bReplace  )
		throw ( container::ElementExistException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	::rtl::OUString aIDTag( RTL_CONSTASCII_USTRINGPARAM( "Id" ) );
	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	uno::Sequence< uno::Sequence< beans::StringPair > > aResultSeq( aSeq.getLength() + aEntries.getLength() );
	sal_Int32 nResultInd = 0;

	for ( sal_Int32 nIndTarget1 = 0; nIndTarget1 < aSeq.getLength(); nIndTarget1++ )
		for ( sal_Int32 nIndTarget2 = 0; nIndTarget2 < aSeq[nIndTarget1].getLength(); nIndTarget2++ )
			if ( aSeq[nIndTarget1][nIndTarget2].First.equals( aIDTag ) )
			{
				sal_Int32 nIndSourceSame = -1;

				for ( sal_Int32 nIndSource1 = 0; nIndSource1 < aEntries.getLength(); nIndSource1++ )
					for ( sal_Int32 nIndSource2 = 0; nIndSource2 < aEntries[nIndSource1].getLength(); nIndSource2++ )
					{
						if ( aEntries[nIndSource1][nIndSource2].First.equals( aIDTag ) )
						{
							if ( aEntries[nIndSource1][nIndSource2].Second.equals( aSeq[nIndTarget1][nIndTarget2].Second ) )
							{
								if ( !bReplace )
									throw container::ElementExistException();

								nIndSourceSame = nIndSource1;
							}
							
							break;
						}
					}

				if ( nIndSourceSame == -1 )
				{
					// no such element in the provided sequence
					aResultSeq[nResultInd++] = aSeq[nIndTarget1];
				}

				break;
			}

	for ( sal_Int32 nIndSource1 = 0; nIndSource1 < aEntries.getLength(); nIndSource1++ )
	{
		aResultSeq[nResultInd].realloc( aEntries[nIndSource1].getLength() );
		sal_Bool bHasID = sal_False;
		sal_Int32 nResInd2 = 1;

		for ( sal_Int32 nIndSource2 = 0; nIndSource2 < aEntries[nIndSource1].getLength(); nIndSource2++ )
			if ( aEntries[nIndSource1][nIndSource2].First.equals( aIDTag ) )
			{
				aResultSeq[nResultInd][0] = aEntries[nIndSource1][nIndSource2];
				bHasID = sal_True;
			}
			else if ( nResInd2 < aResultSeq[nResultInd].getLength() )
				aResultSeq[nResultInd][nResInd2++] = aEntries[nIndSource1][nIndSource2];
			else
				throw io::IOException(); // TODO: illegal relation ( no ID )

		if ( !bHasID )
			throw io::IOException(); // TODO: illegal relations

		nResultInd++;
	}

	aResultSeq.realloc( nResultInd );
	m_pImpl->m_aRelInfo = aResultSeq;
=====================================================================
Found a 89 line (504 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/verifier.cxx
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/signer.cxx

	doc = xmlParseFile( argv[1] ) ;
	if( doc == NULL || xmlDocGetRootElement( doc ) == NULL ) {
		fprintf( stderr , "### Cannot load template xml document!\n" ) ;
		goto done ;
	}

	//Find the signature template
	tplNode = xmlSecFindNode( xmlDocGetRootElement( doc ), xmlSecNodeSignature, xmlSecDSigNs ) ;
	if( tplNode == NULL ) {
		fprintf( stderr , "### Cannot find the signature template!\n" ) ;
		goto done ;
	}

	//Find the element with ID attribute
	//Here we only try to find the "document" node.
	tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", ( xmlChar* )"http://openoffice.org/2000/office" ) ;
	if( tarNode == NULL ) {
		tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", NULL ) ;
	}

	//Find the "id" attrbute in the element
	if( tarNode != NULL ) {
		if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"id" ) ) != NULL ) {
			//NULL
		} else if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"Id" ) ) != NULL ) {
			//NULL
		} else {
			idAttr = NULL ;
		}
	}

	//Add ID to DOM
	if( idAttr != NULL ) {
		idValue = xmlNodeListGetString( tarNode->doc, idAttr->children, 1 ) ;
		if( idValue == NULL ) {
			fprintf( stderr , "### the ID value is NULL!\n" ) ;
			goto done ;
		}

		if( xmlAddID( NULL, doc, idValue, idAttr ) == NULL ) {
			fprintf( stderr , "### Can not add the ID value!\n" ) ;
			goto done ;
		}
	}

	//Reference handler
	//Find the signature reference
	tarNode = xmlSecFindNode( tplNode, xmlSecNodeReference, xmlSecDSigNs ) ;
	if( tarNode == NULL ) {
		fprintf( stderr , "### Cannot find the signature reference!\n" ) ;
		goto done ;
	}

	//Find the "URI" attrbute in the reference
	uriAttr = xmlHasProp( tarNode, ( xmlChar* )"URI" ) ;
	if( tarNode == NULL ) {
		fprintf( stderr , "### Cannot find URI of the reference!\n" ) ;
		goto done ;
	}

	//Get the "URI" attrbute value
	uriValue = xmlNodeListGetString( tarNode->doc, uriAttr->children, 1 ) ;
	if( uriValue == NULL ) {
		fprintf( stderr , "### the URI value is NULL!\n" ) ;
		goto done ;
	}

	if( strchr( ( const char* )uriValue, '/' ) != NULL && strchr( ( const char* )uriValue, '#' ) == NULL ) {
		fprintf( stdout , "### Find a stream URI [%s]\n", uriValue ) ;
	//	uri = new ::rtl::OUString( ( const sal_Unicode* )uriValue ) ;
		uri = new ::rtl::OUString( ( const sal_Char* )uriValue, xmlStrlen( uriValue ), RTL_TEXTENCODING_ASCII_US ) ;
	}

	if( uri != NULL ) {
		fprintf( stdout , "### Find the URI [%s]\n", OUStringToOString( *uri , RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
		Reference< XInputStream > xStream = createStreamFromFile( *uri ) ;
		if( !xStream.is() ) {
			fprintf( stderr , "### Can not get the URI stream!\n" ) ;
			goto done ;
		}

		xUriBinding = new OUriBinding( *uri, xStream ) ;
	}

	try {
		Reference< XMultiComponentFactory > xManager = NULL ;
		Reference< XComponentContext > xContext = NULL ;

		xManager = serviceManager( xContext , OUString::createFromAscii( "local" ), OUString::createFromAscii( argv[3] ) ) ;
=====================================================================
Found a 129 line (504 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/padmin/source/prgsbar.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/prgsbar.cxx

		Color aColor = rStyleSettings.GetHighlightColor();
		if ( IsControlForeground() )
			aColor = GetControlForeground();
		if ( aColor.IsRGBEqual( GetBackground().GetColor() ) )
		{
			if ( aColor.GetLuminance() > 100 )
				aColor.DecreaseLuminance( 64 );
			else
				aColor.IncreaseLuminance( 64 );
		}
		SetLineColor();
		SetFillColor( aColor );
/* !!! Derzeit unterstuetzen wir keine Textausgaben
		SetTextColor( aColor );
		SetTextFillColor();
*/
	}
}

// -----------------------------------------------------------------------

void ProgressBar::ImplDrawProgress( USHORT nOldPerc, USHORT nNewPerc )
{
	if ( mbCalcNew )
	{
		mbCalcNew = FALSE;

		Size aSize = GetOutputSizePixel();
		mnPrgsHeight = aSize.Height()-(PROGRESSBAR_WIN_OFFSET*2);
		mnPrgsWidth = (mnPrgsHeight*2)/3;
		maPos.Y() = PROGRESSBAR_WIN_OFFSET;
		long nMaxWidth = (aSize.Width()-(PROGRESSBAR_WIN_OFFSET*2)+PROGRESSBAR_OFFSET);
		USHORT nMaxCount = (USHORT)(nMaxWidth / (mnPrgsWidth+PROGRESSBAR_OFFSET));
		if ( nMaxCount <= 1 )
			nMaxCount = 1;
		else
		{
			while ( ((10000/(10000/nMaxCount))*(mnPrgsWidth+PROGRESSBAR_OFFSET)) > nMaxWidth )
				nMaxCount--;
		}
		mnPercentCount = 10000/nMaxCount;
		nMaxWidth = ((10000/(10000/nMaxCount))*(mnPrgsWidth+PROGRESSBAR_OFFSET))-PROGRESSBAR_OFFSET;
		maPos.X() = (aSize.Width()-nMaxWidth)/2;
	}

	::DrawProgress( this, maPos, PROGRESSBAR_OFFSET, mnPrgsWidth, mnPrgsHeight,
					nOldPerc*100, nNewPerc*100, mnPercentCount,
                    Rectangle( Point(), GetSizePixel() ) );
}

// -----------------------------------------------------------------------

void ProgressBar::Paint( const Rectangle& )
{
	ImplDrawProgress( 0, mnPercent );
}

// -----------------------------------------------------------------------

void ProgressBar::Resize()
{
	mbCalcNew = TRUE;
	if ( IsReallyVisible() )
		Invalidate();
}

// -----------------------------------------------------------------------

void ProgressBar::SetValue( USHORT nNewPercent )
{
	DBG_ASSERTWARNING( nNewPercent <= 100, "StatusBar::SetProgressValue(): nPercent > 100" );

	if ( nNewPercent < mnPercent )
	{
		mbCalcNew = TRUE;
		mnPercent = nNewPercent;
		if ( IsReallyVisible() )
		{
			Invalidate();
			Update();
		}
	}
	else
	{
		ImplDrawProgress( mnPercent, nNewPercent );
		mnPercent = nNewPercent;
	}
}

// -----------------------------------------------------------------------

void ProgressBar::StateChanged( StateChangedType nType )
{
/* !!! Derzeit unterstuetzen wir keine Textausgaben
	if ( (nType == STATE_CHANGE_ZOOM) ||
		 (nType == STATE_CHANGE_CONTROLFONT) )
	{
		ImplInitSettings( TRUE, FALSE, FALSE );
		Invalidate();
	}
	else
*/
	if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
	{
		ImplInitSettings( FALSE, TRUE, FALSE );
		Invalidate();
	}
	else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
	{
		ImplInitSettings( FALSE, FALSE, TRUE );
		Invalidate();
	}

	Window::StateChanged( nType );
}

// -----------------------------------------------------------------------

void ProgressBar::DataChanged( const DataChangedEvent& rDCEvt )
{
	if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
		 (rDCEvt.GetFlags() & SETTINGS_STYLE) )
	{
		ImplInitSettings( TRUE, TRUE, TRUE );
		Invalidate();
	}

	Window::DataChanged( rDCEvt );
}
=====================================================================
Found a 18 line (503 tokens) duplication in the following files: 
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0,17,17,17,17, 0,17,17, 0, 0, 0, 0, 0, 0,// 0480 - 048f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0490 - 049f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04a0 - 04af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04b0 - 04bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04c0 - 04cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04d0 - 04df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04e0 - 04ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04f0 - 04ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0500 - 050f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0510 - 051f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0520 - 052f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0530 - 053f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0540 - 054f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 80 line (502 tokens) duplication in the following files: 
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testByte() {
=====================================================================
Found a 96 line (501 tokens) duplication in the following files: 
Starting at line 460 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpresultsetbase.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx

	if( 0 <= m_nRow && sal::static_int_cast<sal_uInt32>( m_nRow ) < m_aItems.size() )
		return m_xProvider->queryContent( queryContentIdentifier() );
	else
		return uno::Reference< ucb::XContent >();
}



class XPropertySetInfoImpl
    : public cppu::OWeakObject,
      public beans::XPropertySetInfo
{
public:
    
    XPropertySetInfoImpl( const uno::Sequence< beans::Property >& aSeq )
        : m_aSeq( aSeq )
    {
    }
    
    void SAL_CALL acquire( void )
        throw()
    {
        OWeakObject::acquire();
    }

    
    void SAL_CALL release( void )
        throw()
    {
        OWeakObject::release();
    }
    
    uno::Any SAL_CALL queryInterface( const uno::Type& rType )
        throw( uno::RuntimeException )
    {
        uno::Any aRet = cppu::queryInterface( rType,
                                              SAL_STATIC_CAST( beans::XPropertySetInfo*, this ) );
        return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
    }    
    
    uno::Sequence< beans::Property > SAL_CALL getProperties()
        throw( uno::RuntimeException )
    {
        return m_aSeq;
    }
    
    beans::Property SAL_CALL getPropertyByName( const ::rtl::OUString& aName )
        throw( beans::UnknownPropertyException,
               uno::RuntimeException)
    {
        for( int i = 0; i < m_aSeq.getLength(); ++i )
            if( aName == m_aSeq[i].Name )
                return m_aSeq[i];
        throw beans::UnknownPropertyException();
    }
    
    sal_Bool SAL_CALL hasPropertyByName( const ::rtl::OUString& Name )
        throw( uno::RuntimeException )
    {
        for( int i = 0; i < m_aSeq.getLength(); ++i )
            if( Name == m_aSeq[i].Name )
                return true;
        return false;
    }

private:
    
    uno::Sequence< beans::Property > m_aSeq;
};



// XPropertySet
uno::Reference< beans::XPropertySetInfo > SAL_CALL
ResultSetBase::getPropertySetInfo()
	throw( uno::RuntimeException)
{
	uno::Sequence< beans::Property > seq(2);
	seq[0].Name = rtl::OUString::createFromAscii( "RowCount" );
	seq[0].Handle = -1;
	seq[0].Type = getCppuType( static_cast< sal_Int32* >(0) );
	seq[0].Attributes = beans::PropertyAttribute::READONLY;
    
	seq[1].Name = rtl::OUString::createFromAscii( "IsRowCountFinal" );
	seq[1].Handle = -1;
	seq[1].Type = getCppuType( static_cast< sal_Bool* >(0) );
	seq[1].Attributes = beans::PropertyAttribute::READONLY;

	//t
	return uno::Reference< beans::XPropertySetInfo > ( new XPropertySetInfoImpl( seq ) );
}



void SAL_CALL ResultSetBase::setPropertyValue(
	const rtl::OUString& aPropertyName, const uno::Any& aValue )
=====================================================================
Found a 85 line (500 tokens) duplication in the following files: 
Starting at line 1249 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx
Starting at line 1401 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

                                     const ::rtl::OUString& rString )
{
    sal_Bool bSuccess = sal_True;

    rtl::OUString aDateStr, aTimeStr, sDoubleStr;
    sal_Int32 nPos = rString.indexOf( (sal_Unicode) 'T' );
    sal_Int32 nPos2 = rString.indexOf( (sal_Unicode) ',' );
    if (nPos2 < 0)
        nPos2 = rString.indexOf( (sal_Unicode) '.' );
    if ( nPos >= 0 )
    {
        aDateStr = rString.copy( 0, nPos );
        if ( nPos2 >= 0 )
        {
            aTimeStr = rString.copy( nPos + 1, nPos2 - nPos - 1 );
            sDoubleStr = OUString(RTL_CONSTASCII_USTRINGPARAM("0."));
            sDoubleStr += rString.copy( nPos2 + 1 );
        }
        else
        {
            aTimeStr = rString.copy(nPos + 1);
            sDoubleStr = OUString(RTL_CONSTASCII_USTRINGPARAM("0.0"));
        }
    }
    else
        aDateStr = rString;         // no separator: only date part

    sal_Int32 nYear  = 1899;
    sal_Int32 nMonth = 12;
    sal_Int32 nDay   = 30;
    sal_Int32 nHour  = 0;
    sal_Int32 nMin   = 0;
    sal_Int32 nSec   = 0;

    const sal_Unicode* pStr = aDateStr.getStr();
    sal_Int32 nDateTokens = 1;
    while ( *pStr )
    {
        if ( *pStr == '-' )
            nDateTokens++;
        pStr++;
    }
    if ( nDateTokens > 3 || aDateStr.getLength() == 0 )
        bSuccess = sal_False;
    else
    {
        sal_Int32 n = 0;
        if ( !convertNumber( nYear, aDateStr.getToken( 0, '-', n ), 0, 9999 ) )
            bSuccess = sal_False;
        if ( nDateTokens >= 2 )
            if ( !convertNumber( nMonth, aDateStr.getToken( 0, '-', n ), 0, 12 ) )
                bSuccess = sal_False;
        if ( nDateTokens >= 3 )
            if ( !convertNumber( nDay, aDateStr.getToken( 0, '-', n ), 0, 31 ) )
                bSuccess = sal_False;
    }

    if ( aTimeStr.getLength() > 0 )           // time is optional
    {
        pStr = aTimeStr.getStr();
        sal_Int32 nTimeTokens = 1;
        while ( *pStr )
        {
            if ( *pStr == ':' )
                nTimeTokens++;
            pStr++;
        }
        if ( nTimeTokens > 3 )
            bSuccess = sal_False;
        else
        {
            sal_Int32 n = 0;
            if ( !convertNumber( nHour, aTimeStr.getToken( 0, ':', n ), 0, 23 ) )
                bSuccess = sal_False;
            if ( nTimeTokens >= 2 )
                if ( !convertNumber( nMin, aTimeStr.getToken( 0, ':', n ), 0, 59 ) )
                    bSuccess = sal_False;
            if ( nTimeTokens >= 3 )
                if ( !convertNumber( nSec, aTimeStr.getToken( 0, ':', n ), 0, 59 ) )
                    bSuccess = sal_False;
        }
    }

    if (bSuccess)
    {
=====================================================================
Found a 121 line (500 tokens) duplication in the following files: 
Starting at line 444 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

	PrinterInfoManager& rManager( PrinterInfoManager::get() );
	return rManager.getDefaultPrinter();
}

// =======================================================================

PspSalInfoPrinter::PspSalInfoPrinter()
{
	m_pGraphics = NULL;
    m_bPapersInit = false;
}

// -----------------------------------------------------------------------

PspSalInfoPrinter::~PspSalInfoPrinter()
{
	if( m_pGraphics )
	{
		delete m_pGraphics;
		m_pGraphics = NULL;
	}
}

// -----------------------------------------------------------------------

void PspSalInfoPrinter::InitPaperFormats( const ImplJobSetup* )
{
    m_aPaperFormats.clear();
    m_bPapersInit = true;

    if( m_aJobData.m_pParser )
    {
        const PPDKey* pKey = m_aJobData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) );
        if( pKey )
        {
            int nValues = pKey->countValues();
            for( int i = 0; i < nValues; i++ )
            {
                const PPDValue* pValue = pKey->getValue( i );
                vcl::PaperInfo aInfo;
                aInfo.m_aPaperName = pValue->m_aOptionTranslation;
                if( ! aInfo.m_aPaperName.Len() )
                    aInfo.m_aPaperName = pValue->m_aOption;
                int nWidth = 0, nHeight = 0;
                m_aJobData.m_pParser->getPaperDimension( pValue->m_aOption, nWidth, nHeight );
                aInfo.m_nPaperWidth = (unsigned long)((PtTo10Mu( nWidth )+50)/100);
                aInfo.m_nPaperHeight = (unsigned long)((PtTo10Mu( nHeight )+50)/100);
                m_aPaperFormats.push_back( aInfo );
            }
        }
    }
}

// -----------------------------------------------------------------------

DuplexMode PspSalInfoPrinter::GetDuplexMode( const ImplJobSetup* pJobSetup )
{
    DuplexMode aRet = DUPLEX_UNKNOWN;
	PrinterInfo aInfo( PrinterInfoManager::get().getPrinterInfo( pJobSetup->maPrinterName ) );
	if ( pJobSetup->mpDriverData )
		JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aInfo );
    if( aInfo.m_pParser )
    {
        const PPDKey * pKey = aInfo.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "Duplex" ) ) );
        if( pKey )
        {
            const PPDValue* pVal = aInfo.m_aContext.getValue( pKey );
            if( pVal && (
                pVal->m_aOption.EqualsIgnoreCaseAscii( "None" )          ||
                pVal->m_aOption.EqualsIgnoreCaseAscii( "Simplex", 0, 7 )
                ) )
            {
                aRet = DUPLEX_OFF;
            }
            else
                aRet = DUPLEX_ON;
        }
    }
    return aRet;
}

// -----------------------------------------------------------------------

int PspSalInfoPrinter::GetLandscapeAngle( const ImplJobSetup* )
{
    return 900;
}

// -----------------------------------------------------------------------

SalGraphics* PspSalInfoPrinter::GetGraphics()
{
	// return a valid pointer only once
	// the reasoning behind this is that we could have different
	// SalGraphics that can run in multiple threads
	// (future plans)
	SalGraphics* pRet = NULL;
	if( ! m_pGraphics )
	{
		m_pGraphics = new PspGraphics( &m_aJobData, &m_aPrinterGfx, NULL, false, this );
        m_pGraphics->SetLayout( 0 );
		pRet = m_pGraphics;
	}
	return pRet;
}

// -----------------------------------------------------------------------

void PspSalInfoPrinter::ReleaseGraphics( SalGraphics* pGraphics )
{
	if( pGraphics == m_pGraphics )
	{
		delete pGraphics;
		m_pGraphics = NULL;
	}
	return;
}

// -----------------------------------------------------------------------

BOOL PspSalInfoPrinter::Setup( SalFrame* pFrame, ImplJobSetup* pJobSetup )
=====================================================================
Found a 41 line (500 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/gnu/public.h

int Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist)));
void No_ram ANSI(());
void Usage ANSI((int));
void Version ANSI(());
char *Get_suffix ANSI((char *));
char *Basename ANSI((char *));
char *Filedir ANSI((char *));
char *Build_path ANSI((char *, char *));
void Make_rules ANSI(());
void Create_macro_vars ANSI(());
time_t Do_stat ANSI((char *, char *, char **, int));
int Do_touch ANSI((char *, char *, char **));
void Void_lib_cache ANSI((char *, char *));
time_t Do_time ANSI(());
void Do_profile_output ANSI((char *, uint16, CELLPTR));
int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int));
char ** Pack_argv ANSI((int, int, char *));
char *Read_env_string ANSI((char *));
int Write_env_string ANSI((char *, char *));
void ReadEnvironment ANSI(());
void Catch_signals ANSI((void (*)(int)));
void Clear_signals ANSI(());
void Prolog ANSI((int, char* []));
void Epilog ANSI((int));
char *Get_current_dir ANSI(());
int Set_dir ANSI((char*));
char Get_switch_char ANSI(());
FILE* Get_temp ANSI((char **, char *));
FILE *Start_temp ANSI((char *, CELLPTR, char **));
void Open_temp_error ANSI((char *, char *));
void Link_temp ANSI((CELLPTR, FILE *, char *));
void Close_temp ANSI((CELLPTR, FILE *));
void Unlink_temp_files ANSI((CELLPTR));
void Handle_result ANSI((int, int, int, CELLPTR));
void Update_time_stamp ANSI((CELLPTR));
int Remove_file ANSI((char *));
void Parse ANSI((FILE *));
int Get_line ANSI((char *, FILE *));
char *Do_comment ANSI((char *, char **, int));
char *Get_token ANSI((TKSTRPTR, char *, int));
void Quit ANSI((int));
=====================================================================
Found a 89 line (499 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/signer.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/verifier.cxx

	doc = xmlParseFile( argv[1] ) ;
	if( doc == NULL || xmlDocGetRootElement( doc ) == NULL ) {
		fprintf( stderr , "### Cannot load template xml document!\n" ) ;
		goto done ;
	}

	//Find the signature template
	tplNode = xmlSecFindNode( xmlDocGetRootElement( doc ), xmlSecNodeSignature, xmlSecDSigNs ) ;
	if( tplNode == NULL ) {
		fprintf( stderr , "### Cannot find the signature template!\n" ) ;
		goto done ;
	}

	//Find the element with ID attribute
	tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", ( xmlChar* )"http://openoffice.org/2000/office" ) ;
	if( tarNode == NULL ) {
		tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", NULL ) ;
	}
										
	//Find the "id" attrbute in the element
	if( tarNode != NULL ) {
		if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"id" ) ) != NULL ) {
			//NULL
		} else if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"Id" ) ) != NULL ) {
			//NULL
		} else {
			idAttr = NULL ;
		}
	}
										
	//Add ID to DOM
	if( idAttr != NULL ) {
		idValue = xmlNodeListGetString( tarNode->doc, idAttr->children, 1 ) ;
		if( idValue == NULL ) {
			fprintf( stderr , "### the ID value is NULL!\n" ) ;
			goto done ;
		}
										
		if( xmlAddID( NULL, doc, idValue, idAttr ) == NULL ) {
			fprintf( stderr , "### Can not add the ID value!\n" ) ;
			goto done ;
		}
	}

	//Reference handler
	//Find the signature reference
	tarNode = xmlSecFindNode( tplNode, xmlSecNodeReference, xmlSecDSigNs ) ;
	if( tarNode == NULL ) {
		fprintf( stderr , "### Cannot find the signature reference!\n" ) ;
		goto done ;
	}

	//Find the "URI" attrbute in the reference
	uriAttr = xmlHasProp( tarNode, ( xmlChar* )"URI" ) ;
	if( tarNode == NULL ) {
		fprintf( stderr , "### Cannot find URI of the reference!\n" ) ;
		goto done ;
	}

	//Get the "URI" attrbute value
	uriValue = xmlNodeListGetString( tarNode->doc, uriAttr->children, 1 ) ;
	if( uriValue == NULL ) {
		fprintf( stderr , "### the URI value is NULL!\n" ) ;
		goto done ;
	}

	if( strchr( ( const char* )uriValue, '/' ) != NULL && strchr( ( const char* )uriValue, '#' ) == NULL ) {
		fprintf( stdout , "### Find a stream URI [%s]\n", uriValue ) ;
	//	uri = new ::rtl::OUString( ( const sal_Unicode* )uriValue ) ;
		uri = new ::rtl::OUString( ( const sal_Char* )uriValue, xmlStrlen( uriValue ), RTL_TEXTENCODING_ASCII_US ) ;
	}

	if( uri != NULL ) {
		fprintf( stdout , "### Find the URI [%s]\n", OUStringToOString( *uri , RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
		Reference< XInputStream > xStream = createStreamFromFile( *uri ) ;
		if( !xStream.is() ) {
			fprintf( stderr , "### Can not get the URI stream!\n" ) ;
			goto done ;
		}

		xUriBinding = new OUriBinding( *uri, xStream ) ;
	}


	try {
		Reference< XMultiComponentFactory > xManager = NULL ;
		Reference< XComponentContext > xContext = NULL ;

		xManager = serviceManager( xContext , OUString::createFromAscii( "local" ),  OUString::createFromAscii( argv[2] ) ) ;
=====================================================================
Found a 96 line (499 tokens) duplication in the following files: 
Starting at line 4327 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 4535 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

            if( (pD->nEndPos < nNext) && (pD->nStartPos == WW8_CP_MAX) )
            {
                // sonst ist Anfang = Ende
                nNext = pD->nEndPos;
                nNextIdx = i;
                bStart = false;
            }
        }
    }
    for (i=nPLCF; i > 0; i--)
    {
        pD = &aD[i-1];
        if (pD != pPcdA)
        {
            if( pD->nStartPos < nNext )
            {
                nNext = pD->nStartPos;
                nNextIdx = i-1;
                bStart = true;
            }
        }
    }
    if( pPos )
        *pPos = nNext;
    if( pbStart )
        *pbStart = bStart;
    return nNextIdx;
}

// gibt die CP-Pos der naechsten Attribut-Aenderung zurueck
WW8_CP WW8PLCFMan::Where() const
{
    long l;
    WhereIdx(0, &l);
    return l;
}

void WW8PLCFMan::SeekPos( long nNewCp )
{
    pChp->pPLCFx->SeekPos( nNewCp + nCpO ); // Attribute neu
    pPap->pPLCFx->SeekPos( nNewCp + nCpO ); // aufsetzen
    pFld->pPLCFx->SeekPos( nNewCp );
    if( pPcd )
        pPcd->pPLCFx->SeekPos( nNewCp + nCpO );
    if( pBkm )
        pBkm->pPLCFx->SeekPos( nNewCp + nCpO );
}

void WW8PLCFMan::SaveAllPLCFx( WW8PLCFxSaveAll& rSave ) const
{
    USHORT i, n=0;
    if( pPcd )
        pPcd->Save(  rSave.aS[n++] );
    if( pPcdA )
        pPcdA->Save( rSave.aS[n++] );

    for(i=0; i<nPLCF; ++i)
        if( pPcd != &aD[i] && pPcdA != &aD[i] )
            aD[i].Save( rSave.aS[n++] );
}

void WW8PLCFMan::RestoreAllPLCFx( const WW8PLCFxSaveAll& rSave )
{
    USHORT i, n=0;
    if( pPcd )
        pPcd->Restore(  rSave.aS[n++] );
    if( pPcdA )
        pPcdA->Restore( rSave.aS[n++] );

    for(i=0; i<nPLCF; ++i)
        if( pPcd != &aD[i] && pPcdA != &aD[i] )
            aD[i].Restore( rSave.aS[n++] );
}

void WW8PLCFMan::GetSprmStart( short nIdx, WW8PLCFManResult* pRes ) const
{
    memset( pRes, 0, sizeof( WW8PLCFManResult ) );

    // Pruefen !!!

    pRes->nMemLen = 0;

    register const WW8PLCFxDesc* p = &aD[nIdx];

    // first Sprm in a Group
    if( p->bFirstSprm )
    {
        if( p == pPap )
            pRes->nFlags |= MAN_MASK_NEW_PAP;
        else if( p == pSep )
            pRes->nFlags |= MAN_MASK_NEW_SEP;
    }
    pRes->pMemPos = p->pMemPos;
    pRes->nSprmId = GetId(p);
    pRes->nCp2OrIdx = p->nCp2OrIdx;
    if ((p == pFtn) || (p == pEdn) || (p == pAnd))
=====================================================================
Found a 84 line (499 tokens) duplication in the following files: 
Starting at line 1861 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 2220 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        == getCppuType< css::uno::Reference< Interface2a > >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
=====================================================================
Found a 77 line (498 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 2120 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
=====================================================================
Found a 84 line (498 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1861 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< Struct2a >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
=====================================================================
Found a 114 line (497 tokens) duplication in the following files: 
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 339 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx

        = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
	
	switch (pMemberDescr->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription const * >(
                        pMemberDescr)));
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
            aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot,
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
        VtableSlot aVtableSlot(
            getVtableSlot(
                reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription const * >(
                        pMemberDescr)));
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
                    pThis->pBridge->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 53 line (496 tokens) duplication in the following files: 
Starting at line 2154 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2302 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_FieldControl::Export(SvStorageRef &rObj,
	const uno::Reference< beans::XPropertySet > &rPropSet,
	const awt::Size &rSize)
{
	static sal_uInt8 __READONLY_DATA aCompObj[] = {
		0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
		0xFF, 0xFF, 0xFF, 0xFF, 0x10, 0x1D, 0xD2, 0x8B,
		0x42, 0xEC, 0xCE, 0x11, 0x9E, 0x0D, 0x00, 0xAA,
		0x00, 0x60, 0x02, 0xF3, 0x1C, 0x00, 0x00, 0x00,
		0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
		0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
		0x32, 0x2E, 0x30, 0x20, 0x54, 0x65, 0x78, 0x74,
		0x42, 0x6F, 0x78, 0x00, 0x10, 0x00, 0x00, 0x00,
		0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
		0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00,
		0x10, 0x00, 0x00, 0x00, 0x46, 0x6F, 0x72, 0x6D,
		0x73, 0x2E, 0x54, 0x65, 0x78, 0x74, 0x42, 0x6F,
		0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39, 0xB2, 0x71,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
		0x54, 0x00, 0x65, 0x00, 0x78, 0x00, 0x74, 0x00,
		0x42, 0x00, 0x6F, 0x00, 0x78, 0x00, 0x31, 0x00,
		0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor2( rObj->OpenSotStream( C2S("\3OCXNAME")));
	xStor2->Write(aOCXNAME,sizeof(aOCXNAME));
	DBG_ASSERT((xStor2.Is() && (SVSTREAM_OK == xStor2->GetError())),"damn");
	}

	SvStorageStreamRef xContents( rObj->OpenSotStream( C2S("contents")));
	return WriteContents(xContents, rPropSet, rSize);
}



sal_Bool OCX_ToggleButton::Import(com::sun::star::uno::Reference<
=====================================================================
Found a 79 line (496 tokens) duplication in the following files: 
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/sddetect.cxx

::rtl::OUString SAL_CALL SdFilterDetect::detect( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lDescriptor ) throw( ::com::sun::star::uno::RuntimeException )
{
    REFERENCE< XInputStream > xStream;
    REFERENCE< XContent > xContent;
    REFERENCE< XInteractionHandler > xInteraction;
    String aURL;
	::rtl::OUString sTemp;
    String aTypeName;            // a name describing the type (from MediaDescriptor, usually from flat detection)
    String aPreselectedFilterName;      // a name describing the filter to use (from MediaDescriptor, usually from UI action)

	::rtl::OUString aDocumentTitle; // interesting only if set in this method

	// opening as template is done when a parameter tells to do so and a template filter can be detected
    // (otherwise no valid filter would be found) or if the detected filter is a template filter and
	// there is no parameter that forbids to open as template
	sal_Bool bOpenAsTemplate = sal_False;
    sal_Bool bWasReadOnly = sal_False, bReadOnly = sal_False;

	sal_Bool bRepairPackage = sal_False;
	sal_Bool bRepairAllowed = sal_False;

	// now some parameters that can already be in the array, but may be overwritten or new inserted here
	// remember their indices in the case new values must be added to the array
	sal_Int32 nPropertyCount = lDescriptor.getLength();
    sal_Int32 nIndexOfFilterName = -1;
    sal_Int32 nIndexOfInputStream = -1;
    sal_Int32 nIndexOfContent = -1;
    sal_Int32 nIndexOfReadOnlyFlag = -1;
    sal_Int32 nIndexOfTemplateFlag = -1;
    sal_Int32 nIndexOfDocumentTitle = -1;

    for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty )
	{
        // extract properties
        if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("URL")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
			aURL = sTemp;
		}
        else if( !aURL.Len() && lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("FileName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
			aURL = sTemp;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
            aTypeName = sTemp;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("FilterName")) )
		{
			lDescriptor[nProperty].Value >>= sTemp;
            aPreselectedFilterName = sTemp;

            // if the preselected filter name is not correct, it must be erased after detection
            // remember index of property to get access to it later
            nIndexOfFilterName = nProperty;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("InputStream")) )
            nIndexOfInputStream = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("ReadOnly")) )
            nIndexOfReadOnlyFlag = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("UCBContent")) )
            nIndexOfContent = nProperty;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("AsTemplate")) )
		{
			lDescriptor[nProperty].Value >>= bOpenAsTemplate;
            nIndexOfTemplateFlag = nProperty;
		}
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("InteractionHandler")) )
            lDescriptor[nProperty].Value >>= xInteraction;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("RapairPackage")) )
            lDescriptor[nProperty].Value >>= bRepairPackage;
        else if( lDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentTitle")) )
            nIndexOfDocumentTitle = nProperty;
	}

    // can't check the type for external filters, so set the "dont" flag accordingly
    ::vos::OGuard aGuard( Application::GetSolarMutex() );
=====================================================================
Found a 89 line (495 tokens) duplication in the following files: 
Starting at line 482 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/pastedlg.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/insdlg.cxx

String SvPasteObjectHelper::GetSotFormatUIName( SotFormatStringId nId )
{
    struct SotResourcePair
    {
        SotFormatStringId   mnSotId;
        USHORT              mnResId;
    };

    static const SotResourcePair aSotResourcePairs[] =
    {
        { SOT_FORMAT_STRING,                    STR_FORMAT_STRING },
        { SOT_FORMAT_BITMAP,                    STR_FORMAT_BITMAP },
        { SOT_FORMAT_GDIMETAFILE,               STR_FORMAT_GDIMETAFILE },
        { SOT_FORMAT_RTF,                       STR_FORMAT_RTF },
        { SOT_FORMATSTR_ID_DRAWING,             STR_FORMAT_ID_DRAWING },
        { SOT_FORMATSTR_ID_SVXB,                STR_FORMAT_ID_SVXB },
        { SOT_FORMATSTR_ID_INTERNALLINK_STATE,  STR_FORMAT_ID_INTERNALLINK_STATE },
        { SOT_FORMATSTR_ID_SOLK,                STR_FORMAT_ID_SOLK },
        { SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK,   STR_FORMAT_ID_NETSCAPE_BOOKMARK },
        { SOT_FORMATSTR_ID_STARSERVER,          STR_FORMAT_ID_STARSERVER },
        { SOT_FORMATSTR_ID_STAROBJECT,          STR_FORMAT_ID_STAROBJECT },
        { SOT_FORMATSTR_ID_APPLETOBJECT,        STR_FORMAT_ID_APPLETOBJECT },
        { SOT_FORMATSTR_ID_PLUGIN_OBJECT,       STR_FORMAT_ID_PLUGIN_OBJECT },
        { SOT_FORMATSTR_ID_STARWRITER_30,       STR_FORMAT_ID_STARWRITER_30 },
        { SOT_FORMATSTR_ID_STARWRITER_40,       STR_FORMAT_ID_STARWRITER_40 },
        { SOT_FORMATSTR_ID_STARWRITER_50,       STR_FORMAT_ID_STARWRITER_50 },
        { SOT_FORMATSTR_ID_STARWRITERWEB_40,    STR_FORMAT_ID_STARWRITERWEB_40 },
        { SOT_FORMATSTR_ID_STARWRITERWEB_50,    STR_FORMAT_ID_STARWRITERWEB_50 },
        { SOT_FORMATSTR_ID_STARWRITERGLOB_40,   STR_FORMAT_ID_STARWRITERGLOB_40 },
        { SOT_FORMATSTR_ID_STARWRITERGLOB_50,   STR_FORMAT_ID_STARWRITERGLOB_50 },
        { SOT_FORMATSTR_ID_STARDRAW,            STR_FORMAT_ID_STARDRAW },
        { SOT_FORMATSTR_ID_STARDRAW_40,         STR_FORMAT_ID_STARDRAW_40 },
        { SOT_FORMATSTR_ID_STARIMPRESS_50,      STR_FORMAT_ID_STARIMPRESS_50 },
        { SOT_FORMATSTR_ID_STARDRAW_50,         STR_FORMAT_ID_STARDRAW_50 },
        { SOT_FORMATSTR_ID_STARCALC,            STR_FORMAT_ID_STARCALC },
        { SOT_FORMATSTR_ID_STARCALC_40,         STR_FORMAT_ID_STARCALC_40 },
        { SOT_FORMATSTR_ID_STARCALC_50,         STR_FORMAT_ID_STARCALC_50 },
        { SOT_FORMATSTR_ID_STARCHART,           STR_FORMAT_ID_STARCHART },
        { SOT_FORMATSTR_ID_STARCHART_40,        STR_FORMAT_ID_STARCHART_40 },
        { SOT_FORMATSTR_ID_STARCHART_50,        STR_FORMAT_ID_STARCHART_50 },
        { SOT_FORMATSTR_ID_STARIMAGE,           STR_FORMAT_ID_STARIMAGE },
        { SOT_FORMATSTR_ID_STARIMAGE_40,        STR_FORMAT_ID_STARIMAGE_40 },
        { SOT_FORMATSTR_ID_STARIMAGE_50,        STR_FORMAT_ID_STARIMAGE_50 },
        { SOT_FORMATSTR_ID_STARMATH,            STR_FORMAT_ID_STARMATH },
        { SOT_FORMATSTR_ID_STARMATH_40,         STR_FORMAT_ID_STARMATH_40 },
        { SOT_FORMATSTR_ID_STARMATH_50,         STR_FORMAT_ID_STARMATH_50 },
        { SOT_FORMATSTR_ID_STAROBJECT_PAINTDOC, STR_FORMAT_ID_STAROBJECT_PAINTDOC },
        { SOT_FORMATSTR_ID_HTML,                STR_FORMAT_ID_HTML },
        { SOT_FORMATSTR_ID_HTML_SIMPLE,         STR_FORMAT_ID_HTML_SIMPLE },
        { SOT_FORMATSTR_ID_BIFF_5,              STR_FORMAT_ID_BIFF_5 },
        { SOT_FORMATSTR_ID_BIFF_8,              STR_FORMAT_ID_BIFF_8 },
        { SOT_FORMATSTR_ID_SYLK,                STR_FORMAT_ID_SYLK },
        { SOT_FORMATSTR_ID_LINK,                STR_FORMAT_ID_LINK },
        { SOT_FORMATSTR_ID_DIF,                 STR_FORMAT_ID_DIF },
        { SOT_FORMATSTR_ID_MSWORD_DOC,          STR_FORMAT_ID_MSWORD_DOC },
        { SOT_FORMATSTR_ID_STAR_FRAMESET_DOC,   STR_FORMAT_ID_STAR_FRAMESET_DOC },
        { SOT_FORMATSTR_ID_OFFICE_DOC,          STR_FORMAT_ID_OFFICE_DOC },
        { SOT_FORMATSTR_ID_NOTES_DOCINFO,       STR_FORMAT_ID_NOTES_DOCINFO },
        { SOT_FORMATSTR_ID_SFX_DOC,             STR_FORMAT_ID_SFX_DOC },
        { SOT_FORMATSTR_ID_STARCHARTDOCUMENT_50,STR_FORMAT_ID_STARCHARTDOCUMENT_50 },
        { SOT_FORMATSTR_ID_GRAPHOBJ,            STR_FORMAT_ID_GRAPHOBJ },
        { SOT_FORMATSTR_ID_STARWRITER_60,       STR_FORMAT_ID_STARWRITER_60 },
        { SOT_FORMATSTR_ID_STARWRITERWEB_60,    STR_FORMAT_ID_STARWRITERWEB_60 },
        { SOT_FORMATSTR_ID_STARWRITERGLOB_60,   STR_FORMAT_ID_STARWRITERGLOB_60 },
        { SOT_FORMATSTR_ID_STARDRAW_60,         STR_FORMAT_ID_STARDRAW_60 },
        { SOT_FORMATSTR_ID_STARIMPRESS_60,      STR_FORMAT_ID_STARIMPRESS_60 },
        { SOT_FORMATSTR_ID_STARCALC_60,         STR_FORMAT_ID_STARCALC_60 },
        { SOT_FORMATSTR_ID_STARCHART_60,        STR_FORMAT_ID_STARCHART_60 },
        { SOT_FORMATSTR_ID_STARMATH_60,         STR_FORMAT_ID_STARMATH_60 },
        { SOT_FORMATSTR_ID_WMF,                 STR_FORMAT_ID_WMF },
        { SOT_FORMATSTR_ID_DBACCESS_QUERY,      STR_FORMAT_ID_DBACCESS_QUERY },
        { SOT_FORMATSTR_ID_DBACCESS_TABLE,      STR_FORMAT_ID_DBACCESS_TABLE },
        { SOT_FORMATSTR_ID_DBACCESS_COMMAND,    STR_FORMAT_ID_DBACCESS_COMMAND },
        { SOT_FORMATSTR_ID_DIALOG_60,           STR_FORMAT_ID_DIALOG_60 },
        { SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR,   STR_FORMAT_ID_FILEGRPDESCRIPTOR },
        { SOT_FORMATSTR_ID_HTML_NO_COMMENT,     STR_FORMAT_ID_HTML_NO_COMMENT }
    };

    String aUIName;
    USHORT nResId = 0;

    for( sal_uInt32 i = 0, nCount = sizeof( aSotResourcePairs ) / sizeof( aSotResourcePairs[ 0 ] ); ( i < nCount ) && !nResId; i++ )
    {
        if( aSotResourcePairs[ i ].mnSotId == nId )
            nResId = aSotResourcePairs[ i ].mnResId;
    }

    if( nResId )
        aUIName = String( SvtResId( nResId ) );
=====================================================================
Found a 11 line (494 tokens) duplication in the following files: 
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 496 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffa8 - ffaf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffb0 - ffb7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffb8 - ffbf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffc0 - ffc7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffc8 - ffcf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd0 - ffd7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd8 - ffdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe0 - ffe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe8 - ffef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff0 - fff7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff8 - ffff
=====================================================================
Found a 118 line (493 tokens) duplication in the following files: 
Starting at line 1275 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/embobj.cxx
Starting at line 7275 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx

	return xStm->GetError() == SVSTREAM_OK;
}

struct ClsIDs {
	UINT32		nId;
	const sal_Char* pSvrName;
	const sal_Char* pDspName;
};
static ClsIDs aClsIDs[] = {

	{ 0x000212F0, "MSWordArt",     		"Microsoft Word Art"	 		},
	{ 0x000212F0, "MSWordArt.2",   		"Microsoft Word Art 2.0" 		},

	// MS Apps
	{ 0x00030000, "ExcelWorksheet",		"Microsoft Excel Worksheet"		},
	{ 0x00030001, "ExcelChart",			"Microsoft Excel Chart"			},
	{ 0x00030002, "ExcelMacrosheet",	"Microsoft Excel Macro"			},
	{ 0x00030003, "WordDocument",		"Microsoft Word Document"		},
	{ 0x00030004, "MSPowerPoint",		"Microsoft PowerPoint"			},
	{ 0x00030005, "MSPowerPointSho",	"Microsoft PowerPoint Slide Show"},
	{ 0x00030006, "MSGraph",			"Microsoft Graph"				},
	{ 0x00030007, "MSDraw",				"Microsoft Draw"				},
	{ 0x00030008, "Note-It",			"Microsoft Note-It"				},
	{ 0x00030009, "WordArt",			"Microsoft Word Art"			},
	{ 0x0003000a, "PBrush",				"Microsoft PaintBrush Picture"	},
	{ 0x0003000b, "Equation",			"Microsoft Equation Editor"		},
	{ 0x0003000c, "Package",			"Package"						},
	{ 0x0003000d, "SoundRec",			"Sound"							},
	{ 0x0003000e, "MPlayer",			"Media Player"					},
	// MS Demos
	{ 0x0003000f, "ServerDemo",			"OLE 1.0 Server Demo"			},
	{ 0x00030010, "Srtest",				"OLE 1.0 Test Demo"				},
	{ 0x00030011, "SrtInv",				"OLE 1.0 Inv Demo"				},
	{ 0x00030012, "OleDemo",			"OLE 1.0 Demo"					},

	// Coromandel / Dorai Swamy / 718-793-7963
	{ 0x00030013, "CoromandelIntegra",	"Coromandel Integra"			},
	{ 0x00030014, "CoromandelObjServer","Coromandel Object Server"		},

	// 3-d Visions Corp / Peter Hirsch / 310-325-1339
	{ 0x00030015, "StanfordGraphics",	"Stanford Graphics"				},

	// Deltapoint / Nigel Hearne / 408-648-4000
	{ 0x00030016, "DGraphCHART",		"DeltaPoint Graph Chart"		},
	{ 0x00030017, "DGraphDATA",			"DeltaPoint Graph Data"			},

	// Corel / Richard V. Woodend / 613-728-8200 x1153
	{ 0x00030018, "PhotoPaint",			"Corel PhotoPaint"				},
	{ 0x00030019, "CShow",				"Corel Show"					},
	{ 0x0003001a, "CorelChart",			"Corel Chart"					},
	{ 0x0003001b, "CDraw",				"Corel Draw"					},

	// Inset Systems / Mark Skiba / 203-740-2400
	{ 0x0003001c, "HJWIN1.0",			"Inset Systems"					},

	// Mark V Systems / Mark McGraw / 818-995-7671
	{ 0x0003001d, "ObjMakerOLE",		"MarkV Systems Object Maker"	},

	// IdentiTech / Mike Gilger / 407-951-9503
	{ 0x0003001e, "FYI",				"IdentiTech FYI"				},
	{ 0x0003001f, "FYIView",			"IdentiTech FYI Viewer"			},

	// Inventa Corporation / Balaji Varadarajan / 408-987-0220
	{ 0x00030020, "Stickynote",			"Inventa Sticky Note"			},

	// ShapeWare Corp. / Lori Pearce / 206-467-6723
	{ 0x00030021, "ShapewareVISIO10",   "Shapeware Visio 1.0"			},
	{ 0x00030022, "ImportServer",		"Spaheware Import Server"		},

	// test app SrTest
	{ 0x00030023, "SrvrTest",			"OLE 1.0 Server Test"			},

	// test app ClTest.  Doesn't really work as a server but is in reg db
	{ 0x00030025, "Cltest",				"OLE 1.0 Client Test"			},

	// Microsoft ClipArt Gallery   Sherry Larsen-Holmes
	{ 0x00030026, "MS_ClipArt_Gallery",	"Microsoft ClipArt Gallery"		},
	// Microsoft Project  Cory Reina
	{ 0x00030027, "MSProject",			"Microsoft Project"				},

	// Microsoft Works Chart
	{ 0x00030028, "MSWorksChart",		"Microsoft Works Chart"			},

	// Microsoft Works Spreadsheet
	{ 0x00030029, "MSWorksSpreadsheet",	"Microsoft Works Spreadsheet"	},

	// AFX apps - Dean McCrory
	{ 0x0003002A, "MinSvr",				"AFX Mini Server"				},
	{ 0x0003002B, "HierarchyList",		"AFX Hierarchy List"			},
	{ 0x0003002C, "BibRef",				"AFX BibRef"					},
	{ 0x0003002D, "MinSvrMI",			"AFX Mini Server MI"			},
	{ 0x0003002E, "TestServ",			"AFX Test Server"				},

	// Ami Pro
	{ 0x0003002F, "AmiProDocument",		"Ami Pro Document"				},

	// WordPerfect Presentations For Windows
	{ 0x00030030, "WPGraphics",			"WordPerfect Presentation"		},
	{ 0x00030031, "WPCharts",			"WordPerfect Chart"				},

	// MicroGrafx Charisma
	{ 0x00030032, "Charisma",			"MicroGrafx Charisma"			},
	{ 0x00030033, "Charisma_30",		"MicroGrafx Charisma 3.0"		},
	{ 0x00030034, "CharPres_30",		"MicroGrafx Charisma 3.0 Pres"	},
	// MicroGrafx Draw
	{ 0x00030035, "Draw",				"MicroGrafx Draw"				},
	// MicroGrafx Designer
	{ 0x00030036, "Designer_40",		"MicroGrafx Designer 4.0"		},

	// STAR DIVISION
//	{ 0x000424CA, "StarMath",			"StarMath 1.0"					},
	{ 0x00043AD2, "FontWork",			"Star FontWork"					},
//	{ 0x000456EE, "StarMath2",			"StarMath 2.0"					},

	{ 0, "", "" } };


BOOL SvxMSDffManager::ConvertToOle2( SvStream& rStm, UINT32 nReadLen,
=====================================================================
Found a 113 line (492 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javaoptions.cxx

					break;
				case 'G':
					if (av[i][2] == 'c')
					{
						if (av[i][3] != '\0')
						{
							OString tmp("'-Gc', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i]) + "'";
							}

							throw IllegalArgument(tmp);
						}

						m_options["-Gc"] = OString("");
						break;
					} else
					if (av[i][2] != '\0')
					{
						OString tmp("'-G', please check");
						if (i <= ac - 1)
						{
							tmp += " your input '" + OString(av[i]) + "'";
						}

						throw IllegalArgument(tmp);
					}
					
					m_options["-G"] = OString("");
					break;
				case 'X': // support for eXtra type rdbs
                {
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-X', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
                    
                    m_extra_input_files.push_back( s );
					break;
                }
                
				default:
					throw IllegalArgument("the option is unknown" + OString(av[i]));
			}
		} else
		{
			if (av[i][0] == '@')
			{
				FILE* cmdFile = fopen(av[i]+1, "r");
		  		if( cmdFile == NULL )
      			{
					fprintf(stderr, "%s", prepareHelp().getStr());
					ret = sal_False;
				} else
				{
					int rargc=0;
					char* rargv[512];
					char  buffer[512];

					while ( fscanf(cmdFile, "%s", buffer) != EOF )
					{
						rargv[rargc]= strdup(buffer);
						rargc++;
					}
					fclose(cmdFile);
					
					ret = initOptions(rargc, rargv, bCmdFile);
					
					for (long j=0; j < rargc; j++) 
					{
						free(rargv[j]);
					}
				}		
			} else
			{
                if (bCmdFile)
                {
                    m_inputFiles.push_back(av[i]);
                } else
                {
                    OUString system_filepath;
                    if (osl_getCommandArg( i-1, &system_filepath.pData )
                        != osl_Process_E_None)
                    {
                        OSL_ASSERT(false);
                    }
                    m_inputFiles.push_back(OUStringToOString(system_filepath, osl_getThreadTextEncoding()));
                }
			}		
		}
	}
	
	return ret;	
}	

OString	JavaOptions::prepareHelp()
=====================================================================
Found a 109 line (491 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

	for ( int i = 0; i < (int)IMG_XML_ENTRY_COUNT; i++ )
	{
		OUStringBuffer temp( 20 );

		if ( ImagesEntries[i].nNamespace == IMG_NS_IMAGE )
			temp.appendAscii( XMLNS_IMAGE );
		else
			temp.appendAscii( XMLNS_XLINK );

		temp.appendAscii( XMLNS_FILTER_SEPARATOR );
		temp.appendAscii( ImagesEntries[i].aEntryName );
		m_aImageMap.insert( ImageHashMap::value_type( temp.makeStringAndClear(), (Image_XML_Entry)i ) );
	}

	// reset states
	m_bImageContainerStartFound		= sal_False;
	m_bImageContainerEndFound		= sal_False;
	m_bImagesStartFound				= sal_False;
	m_bImagesEndFound				= sal_False;
	m_bImageStartFound				= sal_False;
	m_bExternalImagesStartFound		= sal_False;
	m_bExternalImagesEndFound		= sal_False;
	m_bExternalImageStartFound		= sal_False;
}

OReadImagesDocumentHandler::~OReadImagesDocumentHandler()
{
}

Any SAL_CALL OReadImagesDocumentHandler::queryInterface( const Type & rType )
throw( RuntimeException )
{
	Any a = ::cppu::queryInterface(
				rType ,
				SAL_STATIC_CAST( XDocumentHandler*, this ));
	if ( a.hasValue() )
		return a;

	return OWeakObject::queryInterface( rType );
}

// XDocumentHandler
void SAL_CALL OReadImagesDocumentHandler::startDocument(void)
throw (	SAXException, RuntimeException )
{
}

void SAL_CALL OReadImagesDocumentHandler::endDocument(void)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	if (( m_bImageContainerStartFound && !m_bImageContainerEndFound ) ||
		( !m_bImageContainerStartFound && m_bImageContainerEndFound )	 )
	{
		OUString aErrorMessage = getErrorLineString();
		aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "No matching start or end element 'image:imagecontainer' found!" ));
		throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
	}
}

void SAL_CALL OReadImagesDocumentHandler::startElement(
	const OUString& aName, const Reference< XAttributeList > &xAttribs )
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	ImageHashMap::const_iterator pImageEntry = m_aImageMap.find( aName ) ;
	if ( pImageEntry != m_aImageMap.end() )
	{
		switch ( pImageEntry->second )
		{
			case IMG_ELEMENT_IMAGECONTAINER:
			{
				// image:imagecontainer element (container element for all further image elements)
				if ( m_bImageContainerStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'image:imagecontainer' cannot be embeded into 'image:imagecontainer'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bImageContainerStartFound = sal_True;
			}
			break;

			case IMG_ELEMENT_IMAGES:
			{
				if ( !m_bImageContainerStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'image:images' must be embeded into element 'image:imagecontainer'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				if ( m_bImagesStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'image:images' cannot be embeded into 'image:images'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				if ( !m_aImageList.pImageList )
					m_aImageList.pImageList = new ImageListDescriptor;

				m_bImagesStartFound = sal_True;
				m_pImages = new ImageListItemDescriptor;

				for ( sal_Int16 n = 0; n < xAttribs->getLength(); n++ )
=====================================================================
Found a 119 line (487 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
            // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32 nFunctionIndex,
    sal_Int32 nVtableOffset,
	void ** pCallStack,
	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );
=====================================================================
Found a 70 line (486 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/uriproc/UriReferenceFactory.cxx
Starting at line 192 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx

            scheme, false, false, rtl::OUString(), path, false, rtl::OUString())
    {}

    virtual rtl::OUString SAL_CALL getUriReference()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getUriReference(); }

    virtual sal_Bool SAL_CALL isAbsolute()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.isAbsolute(); }

    virtual rtl::OUString SAL_CALL getScheme()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getScheme(); }

    virtual rtl::OUString SAL_CALL getSchemeSpecificPart()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getSchemeSpecificPart(); }

    virtual sal_Bool SAL_CALL isHierarchical()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.isHierarchical(); }

    virtual sal_Bool SAL_CALL hasAuthority()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.hasAuthority(); }

    virtual rtl::OUString SAL_CALL getAuthority()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getAuthority(); }

    virtual rtl::OUString SAL_CALL getPath()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getPath(); }

    virtual sal_Bool SAL_CALL hasRelativePath()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.hasRelativePath(); }

    virtual sal_Int32 SAL_CALL getPathSegmentCount()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getPathSegmentCount(); }

    virtual rtl::OUString SAL_CALL getPathSegment(sal_Int32 index)
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getPathSegment(index); }

    virtual sal_Bool SAL_CALL hasQuery()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.hasQuery(); }

    virtual rtl::OUString SAL_CALL getQuery()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getQuery(); }

    virtual sal_Bool SAL_CALL hasFragment()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.hasFragment(); }

    virtual rtl::OUString SAL_CALL getFragment()
        throw (com::sun::star::uno::RuntimeException)
    { return m_base.getFragment(); }

    virtual void SAL_CALL setFragment(rtl::OUString const & fragment)
        throw (com::sun::star::uno::RuntimeException)
    { m_base.setFragment(fragment); }

    virtual void SAL_CALL clearFragment()
        throw (com::sun::star::uno::RuntimeException)
    { m_base.clearFragment(); }
=====================================================================
Found a 119 line (485 tokens) duplication in the following files: 
Starting at line 709 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

	::rtl::OUString aValue;
	return aValue;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName(  ) throw(SQLException, RuntimeException)
{
	::rtl::OUString aValue;
	return aValue;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getProcedureTerm(  ) throw(SQLException, RuntimeException)
{
	::rtl::OUString aValue;
	return aValue;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getSchemaTerm(  ) throw(SQLException, RuntimeException)
{
	::rtl::OUString aValue;
	return aValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion(  ) throw(RuntimeException)
{
	return 1;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation(  ) throw(SQLException, RuntimeException)
{
	return TransactionIsolation::NONE;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion(  ) throw(RuntimeException)
{
	return 0;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getSQLKeywords(  ) throw(SQLException, RuntimeException)
{
	::rtl::OUString aValue;
	return aValue;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape(  ) throw(SQLException, RuntimeException)
{
	::rtl::OUString aValue;
	return aValue;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getStringFunctions(  ) throw(SQLException, RuntimeException)
{
	return ::rtl::OUString();
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions(  ) throw(SQLException, RuntimeException)
{
	return ::rtl::OUString();
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getSystemFunctions(  ) throw(SQLException, RuntimeException)
{
	return ::rtl::OUString();
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getNumericFunctions(  ) throw(SQLException, RuntimeException)
{
	return ::rtl::OUString();
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar(  ) throw(SQLException, RuntimeException)
{
	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw(SQLException, RuntimeException)
=====================================================================
Found a 78 line (484 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/borland/tempnam.c
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/winnt/borland/tempnam.c

extern char *mktemp();
extern int access();
int d_access();

/* Turbo C stdio.h doesn't define P_tmpdir, so let's do it here */
/* Under DOS leave the default tmpdir pointing here!		*/
#ifndef P_tmpdir
static char *P_tmpdir = "";
#endif

char *
tempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

#if defined(__WIN32__)
	unsigned int _psp = rand();
#endif

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", _psp );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q   = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;

   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 62 line (480 tokens) duplication in the following files: 
Starting at line 361 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/bigint.cxx
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/bigint.cxx

    short  i, j;
    long   nTmp;
    sal_uInt16 nK, nQ, nMult;
    short  nLenB  = rB.nLen;
    short  nLenB1 = rB.nLen - 1;
    BigInt aTmpA, aTmpB;

    nMult = (sal_uInt16)(0x10000L / ((long)rB.nNum[nLenB1] + 1));

    aTmpA.Mult( *this, nMult);
    if ( aTmpA.nLen == nLen )
    {
        aTmpA.nNum[aTmpA.nLen] = 0;
        aTmpA.nLen++;
    }

    aTmpB.Mult( rB, nMult);

    for (j = aTmpA.nLen - 1; j >= nLenB; j--)
    { // Raten des Divisors
        nTmp = ( (long)aTmpA.nNum[j] << 16 ) + aTmpA.nNum[j - 1];
        if (aTmpA.nNum[j] == aTmpB.nNum[nLenB1])
            nQ = 0xFFFF;
        else
            nQ = (sal_uInt16)(((sal_uInt32)nTmp) / aTmpB.nNum[nLenB1]);

        if ( ((sal_uInt32)aTmpB.nNum[nLenB1 - 1] * nQ) >
            ((((sal_uInt32)nTmp) - aTmpB.nNum[nLenB1] * nQ) << 16) + aTmpA.nNum[j - 2])
            nQ--;
        // Und hier faengt das Teilen an
        nK = 0;
        nTmp = 0;
        for (i = 0; i < nLenB; i++)
        {
            nTmp = (long)aTmpA.nNum[j - nLenB + i]
                   - ((long)aTmpB.nNum[i] * nQ)
                   - nK;
            aTmpA.nNum[j - nLenB + i] = (sal_uInt16)nTmp;
            nK = (sal_uInt16) (nTmp >> 16);
            if ( nK )
                nK = (sal_uInt16)(0x10000UL - nK);
        }
        unsigned short& rNum( aTmpA.nNum[j - nLenB + i] );
        rNum = rNum - nK;
        if (aTmpA.nNum[j - nLenB + i] == 0)
            rErg.nNum[j - nLenB] = nQ;
        else
        {
            rErg.nNum[j - nLenB] = nQ - 1;
            nK = 0;
            for (i = 0; i < nLenB; i++) {
                nTmp = aTmpA.nNum[j - nLenB + i] + aTmpB.nNum[i] + nK;
                aTmpA.nNum[j - nLenB + i] = (sal_uInt16)(nTmp & 0xFFFFL);
                if (nTmp & 0xFFFF0000L)
                    nK = 1;
                else
                    nK = 0;
            }
        }
    }

    rErg = aTmpA;
=====================================================================
Found a 74 line (479 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/microsft/tempnam.c
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/winnt/microsft/tempnam.c

extern char *mktemp();
extern int access();
int d_access();

/* MSC stdio.h defines P_tmpdir, so let's undo it here */
/* Under DOS leave the default tmpdir pointing here!		*/
#ifdef P_tmpdir
#undef P_tmpdir
#endif
static char *P_tmpdir = "";

char *
dtempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", getpid() );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;
   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 36 line (479 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/macosx/gnu/public.h

void Infer_recipe ANSI((CELLPTR, CELLPTR));
int Make_targets ANSI(());
int Make ANSI((CELLPTR, CELLPTR));
int Exec_commands ANSI((CELLPTR));
void Print_cmnd ANSI((char *, int, int));
int Push_dir ANSI((char *, char *, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
=====================================================================
Found a 93 line (479 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/Map/Map.test.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/Shield/Shield.test.cxx

using namespace com::sun::star;


static rtl::OUString    s_comment;
static uno::Environment s_env;

extern "C" {
static void s_callee_in(rtl_uString *  pMethod_name)
{
	rtl::OUString method_name(pMethod_name);

	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t\ts_callee_in  method:\""));
	s_comment += method_name;

	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\" env: \""));
	s_comment += uno::Environment::getCurrent().getTypeName();
	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\""));

	if (!s_env.is())
	{
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE: s_env not set"));
		return;
	}

	rtl::OUString reason;
	int valid = s_env.isValid(&reason);

	if (valid)
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));

	else
	{
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE: "));
		s_comment += reason;
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));
	}
}

static void s_callee_out(rtl_uString *  pMethod_name)
{
	rtl::OUString method_name(pMethod_name);

	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t\ts_callee_out method:\""));
	s_comment += method_name;

	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\" env: \""));
	s_comment += uno::Environment::getCurrent().getTypeName();
	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\""));

	if (!s_env.is())
	{
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE: s_env not set"));
		return;
	}

	rtl::OUString reason;
	int valid = s_env.isValid(&reason);

	if (!valid)
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));

	else
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE: is in\n"));
}
}

static uno::Reference<uno::XInterface> s_get_envObject(void)
{
	cppu::EnvGuard envGuard(s_env);

	uno::XInterface * pObject = reinterpret_cast<uno::XInterface *>(
		createObject(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV))),
					 s_callee_in));
	
	return uno::Reference<uno::XInterface>(pObject, SAL_NO_ACQUIRE);
}

static uno::XInterface * s_x_get_flatObject(void)
{
	uno::XInterface * pObject = reinterpret_cast<uno::XInterface *>(
		createObject(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV))),
					 s_callee_out));
	
	return pObject;
}

static uno::Reference<uno::XInterface> s_get_flatObject(void)
{
	return uno::Reference<uno::XInterface>(s_x_get_flatObject(), SAL_NO_ACQUIRE);
}


static void s_test__shield(void)
=====================================================================
Found a 107 line (479 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{

void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if OSL_DEBUG_LEVEL > 1
    char const * start = p;
#endif

    // example: N3com3sun4star4lang24IllegalArgumentExceptionE

	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N

    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }

#if OSL_DEBUG_LEVEL > 1
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;

    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;

public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );

    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
    : m_hApp( dlopen( 0 , RTLD_LAZY ) )
{
}
//__________________________________________________________________________________________________
RTTI::~RTTI() SAL_THROW( () )
{
    dlclose( m_hApp );
}

//__________________________________________________________________________________________________
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW( () )
{
    type_info * rtti;

    OUString const & unoName = *(OUString const *)&pTypeDescr->aBase.pTypeName;

    MutexGuard guard( m_mutex );
    t_rtti_map::const_iterator iFind( m_rttis.find( unoName ) );
    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );

        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );
=====================================================================
Found a 39 line (478 tokens) duplication in the following files: 
Starting at line 1066 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx
Starting at line 1202 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx

         bRet = FALSE;
    //calculate number of data sets to be printed

    Sequence<PropertyValue> aViewProperties(16);
    PropertyValue* pViewProperties =  aViewProperties.getArray();
    pViewProperties[0].Name = C2U("MailMergeCount");
    pViewProperties[0].Value <<= (sal_Int32)rOpt.nMergeCnt;
    pViewProperties[1].Name = C2U("PrintGraphics");
    pViewProperties[1].Value <<= (sal_Bool)rOpt.IsPrintGraphic();
    pViewProperties[2].Name = C2U("PrintTables");
    pViewProperties[2].Value <<= (sal_Bool)rOpt.IsPrintTable();
    pViewProperties[3].Name = C2U("PrintDrawings");
    pViewProperties[3].Value <<= (sal_Bool)rOpt.IsPrintDraw();
    pViewProperties[4].Name = C2U("PrintLeftPages");
    pViewProperties[4].Value <<= (sal_Bool)rOpt.IsPrintLeftPage();
    pViewProperties[5].Name = C2U("PrintRightPages");
    pViewProperties[5].Value <<= (sal_Bool)rOpt.IsPrintRightPage();
    pViewProperties[6].Name = C2U("PrintControls");
    pViewProperties[6].Value <<= (sal_Bool)rOpt.IsPrintControl();
    pViewProperties[7].Name = C2U("PrintReversed");
    pViewProperties[7].Value <<= (sal_Bool)rOpt.IsPrintReverse();
    pViewProperties[8].Name = C2U("PrintPaperFromSetup");
    pViewProperties[8].Value <<= (sal_Bool)rOpt.IsPaperFromSetup();
    pViewProperties[9].Name = C2U("PrintFaxName");
    pViewProperties[9].Value <<= rOpt.GetFaxName();
    pViewProperties[10].Name = C2U("PrintAnnotationMode");
    pViewProperties[10].Value <<= (com::sun::star::text::NotePrintMode) rOpt.GetPrintPostIts();
    pViewProperties[11].Name = C2U("PrintProspect");
    pViewProperties[11].Value <<= (sal_Bool)rOpt.IsPrintProspect();
    pViewProperties[12].Name = C2U("PrintPageBackground");
    pViewProperties[12].Value <<= (sal_Bool)rOpt.IsPrintPageBackground();
    pViewProperties[13].Name = C2U("PrintBlackFonts");
    pViewProperties[13].Value <<= (sal_Bool)rOpt.IsPrintBlackFont();
    pViewProperties[14].Name = C2U("IsSinglePrintJob");
    pViewProperties[14].Value <<= (sal_Bool)rOpt.IsPrintSingleJobs();
    pViewProperties[15].Name = C2U("PrintEmptyPages");
    pViewProperties[15].Value <<= (sal_Bool)rOpt.IsPrintEmptyPages();

    rView.SetAdditionalPrintOptions(aViewProperties);
=====================================================================
Found a 27 line (478 tokens) duplication in the following files: 
Starting at line 3888 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3511 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};
static const SvxMSDffVertPair mso_sptSeal24Vert[] =
{
	{ 0x05 MSO_I, 0x06 MSO_I }, { 0x07 MSO_I, 0x08 MSO_I }, { 0x09 MSO_I, 0x0a MSO_I }, { 0x0b MSO_I, 0x0c MSO_I },
	{ 0x0d MSO_I, 0x0e MSO_I }, { 0x0f MSO_I, 0x10 MSO_I }, { 0x11 MSO_I, 0x12 MSO_I }, { 0x13 MSO_I, 0x14 MSO_I },
	{ 0x15 MSO_I, 0x16 MSO_I }, { 0x17 MSO_I, 0x18 MSO_I }, { 0x19 MSO_I, 0x1a MSO_I }, { 0x1b MSO_I, 0x1c MSO_I },
	{ 0x1d MSO_I, 0x1e MSO_I }, { 0x1f MSO_I, 0x20 MSO_I }, { 0x21 MSO_I, 0x22 MSO_I }, { 0x23 MSO_I, 0x24 MSO_I },
	{ 0x25 MSO_I, 0x26 MSO_I }, { 0x27 MSO_I, 0x28 MSO_I }, { 0x29 MSO_I, 0x2a MSO_I }, { 0x2b MSO_I, 0x2c MSO_I },
	{ 0x2d MSO_I, 0x2e MSO_I }, { 0x2f MSO_I, 0x30 MSO_I }, { 0x31 MSO_I, 0x32 MSO_I }, { 0x33 MSO_I, 0x34 MSO_I },
	{ 0x35 MSO_I, 0x36 MSO_I }, { 0x37 MSO_I, 0x38 MSO_I }, { 0x39 MSO_I, 0x3a MSO_I }, { 0x3b MSO_I, 0x3c MSO_I },
	{ 0x3d MSO_I, 0x3e MSO_I }, { 0x3f MSO_I, 0x40 MSO_I }, { 0x41 MSO_I, 0x42 MSO_I }, { 0x43 MSO_I, 0x44 MSO_I },
	{ 0x45 MSO_I, 0x46 MSO_I }, { 0x47 MSO_I, 0x48 MSO_I }, { 0x49 MSO_I, 0x4a MSO_I }, { 0x4b MSO_I, 0x4c MSO_I },
	{ 0x4d MSO_I, 0x4e MSO_I }, { 0x4f MSO_I, 0x50 MSO_I }, { 0x51 MSO_I, 0x52 MSO_I }, { 0x53 MSO_I, 0x54 MSO_I },
	{ 0x55 MSO_I, 0x56 MSO_I }, { 0x57 MSO_I, 0x58 MSO_I }, { 0x59 MSO_I, 0x5a MSO_I }, { 0x5b MSO_I, 0x5c MSO_I },
	{ 0x5d MSO_I, 0x5e MSO_I }, { 0x5f MSO_I, 0x60 MSO_I }, { 0x61 MSO_I, 0x62 MSO_I }, { 0x63 MSO_I, 0x64 MSO_I },
	{ 0x05 MSO_I, 0x06 MSO_I }
};
static const mso_CustomShape msoSeal24 = 
{
	(SvxMSDffVertPair*)mso_sptSeal24Vert, sizeof( mso_sptSeal24Vert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	(SvxMSDffCalculationData*)mso_sptSeal24Calc, sizeof( mso_sptSeal24Calc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptDefault2500,
	(SvxMSDffTextRectangles*)mso_sptSealTextRect, sizeof( mso_sptSealTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 78 line (478 tokens) duplication in the following files: 
Starting at line 329 of /local/ooo-build/ooo-build/src/oog680-m3/padmin/source/padialog.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svptest.cxx

}

// -----------------------------------------------------------------------

static Point project( const Point& rPoint )
{
	const double angle_x = M_PI / 6.0;
	const double angle_z = M_PI / 6.0;

	// transform planar coordinates to 3d
	double x = rPoint.X();
	double y = rPoint.Y();
	//double z = 0;

	// rotate around X axis
	double x1 = x;
	double y1 = y * cos( angle_x );
	double z1 = y * sin( angle_x );

	// rotate around Z axis
	double x2 = x1 * cos( angle_z ) + y1 * sin( angle_z );
	//double y2 = y1 * cos( angle_z ) - x1 * sin( angle_z );
	double z2 = z1;

	return Point( (sal_Int32)x2, (sal_Int32)z2 );
}

static Color approachColor( const Color& rFrom, const Color& rTo )
{
	Color aColor;
	UINT8 nDiff;
	// approach red
	if( rFrom.GetRed() < rTo.GetRed() )
	{
		nDiff = rTo.GetRed() - rFrom.GetRed();
		aColor.SetRed( rFrom.GetRed() + ( nDiff < 10 ? nDiff : 10 ) );
	}
	else if( rFrom.GetRed() > rTo.GetRed() )
	{
		nDiff = rFrom.GetRed() - rTo.GetRed();
		aColor.SetRed( rFrom.GetRed() - ( nDiff < 10 ? nDiff : 10 ) );
	}
	else
		aColor.SetRed( rFrom.GetRed() );

	// approach Green
	if( rFrom.GetGreen() < rTo.GetGreen() )
	{
		nDiff = rTo.GetGreen() - rFrom.GetGreen();
		aColor.SetGreen( rFrom.GetGreen() + ( nDiff < 10 ? nDiff : 10 ) );
	}
	else if( rFrom.GetGreen() > rTo.GetGreen() )
	{
		nDiff = rFrom.GetGreen() - rTo.GetGreen();
		aColor.SetGreen( rFrom.GetGreen() - ( nDiff < 10 ? nDiff : 10 ) );
	}
	else
		aColor.SetGreen( rFrom.GetGreen() );

	// approach blue
	if( rFrom.GetBlue() < rTo.GetBlue() )
	{
		nDiff = rTo.GetBlue() - rFrom.GetBlue();
		aColor.SetBlue( rFrom.GetBlue() + ( nDiff < 10 ? nDiff : 10 ) );
	}
	else if( rFrom.GetBlue() > rTo.GetBlue() )
	{
		nDiff = rFrom.GetBlue() - rTo.GetBlue();
		aColor.SetBlue( rFrom.GetBlue() - ( nDiff < 10 ? nDiff : 10 ) );
	}
	else
		aColor.SetBlue( rFrom.GetBlue() );

	return aColor;
}

#define DELTA 5.0
void MyWin::Paint( const Rectangle& rRect )
=====================================================================
Found a 17 line (477 tokens) duplication in the following files: 
Starting at line 767 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 815 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d700 - d70f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d710 - d71f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d720 - d72f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d730 - d73f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d740 - d74f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d750 - d75f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d760 - d76f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d770 - d77f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d780 - d78f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d790 - d79f
     5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7a0 - d7af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7b0 - d7bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7c0 - d7cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7d0 - d7df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7e0 - d7ef
=====================================================================
Found a 74 line (477 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/microsft/tempnam.c
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/microsft/vpp40/tempnam.c
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/winnt/microsft/vpp40/tempnam.c

extern char *mktemp();
extern int access();
int d_access();

/* MSC stdio.h defines P_tmpdir, so let's undo it here */
/* Under DOS leave the default tmpdir pointing here!		*/
#ifdef P_tmpdir
#undef P_tmpdir
#endif
static char *P_tmpdir = "";

char *
tempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", _psp );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;
   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 100 line (474 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

    fprintf(stderr, "calling %s\n", rtl::OUStringToOString(aMemberDescr.get()->pTypeName, RTL_TEXTENCODING_UTF8).getStr());
#endif    
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pReturnValue );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pReturnValue );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[1] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *static_cast< void ** >(pReturnValue) = pCallStack[1];
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				pCallStack, pReturnValue );
		}
		break;
	}
	default:
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("no member description found!"),
            (XInterface *)pThis );
	}
	}
}

//==================================================================================================
extern "C" void privateSnippetExecutorGeneral();
extern "C" void privateSnippetExecutorVoid();
extern "C" void privateSnippetExecutorHyper();
extern "C" void privateSnippetExecutorFloat();
extern "C" void privateSnippetExecutorDouble();
extern "C" void privateSnippetExecutorClass();
extern "C" typedef void (*PrivateSnippetExecutor)();

int const codeSnippetSize = 16;

unsigned char * codeSnippet(
    unsigned char * code, sal_Int32 functionIndex, sal_Int32 vtableOffset,
=====================================================================
Found a 100 line (473 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/statusbardocumenthandler.cxx
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/statusbardocumenthandler.cxx

	for ( int i = 0; i < (int)SB_XML_ENTRY_COUNT; i++ )
	{
		if ( StatusBarEntries[i].nNamespace == SB_NS_STATUSBAR )
		{
			OUString temp( aNamespaceStatusBar );
			temp += aSeparator;
			temp += OUString::createFromAscii( StatusBarEntries[i].aEntryName );
			m_aStatusBarMap.insert( StatusBarHashMap::value_type( temp, (StatusBar_XML_Entry)i ) );
		}
		else
		{
			OUString temp( aNamespaceXLink );
			temp += aSeparator;
			temp += OUString::createFromAscii( StatusBarEntries[i].aEntryName );
			m_aStatusBarMap.insert( StatusBarHashMap::value_type( temp, (StatusBar_XML_Entry)i ) );
		}
	}

	m_bStatusBarStartFound			= sal_False;
	m_bStatusBarEndFound			= sal_False;
	m_bStatusBarItemStartFound		= sal_False;
}

OReadStatusBarDocumentHandler::~OReadStatusBarDocumentHandler()
{
}

Any SAL_CALL OReadStatusBarDocumentHandler::queryInterface( const Type & rType ) 
throw( RuntimeException )
{
	Any a = ::cppu::queryInterface(
				rType ,
				SAL_STATIC_CAST( XDocumentHandler*, this ));
	if ( a.hasValue() )
		return a;

	return OWeakObject::queryInterface( rType );
}

// XDocumentHandler
void SAL_CALL OReadStatusBarDocumentHandler::startDocument(void)
throw (	SAXException, RuntimeException )
{
}

void SAL_CALL OReadStatusBarDocumentHandler::endDocument(void)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	if (( m_bStatusBarStartFound && !m_bStatusBarEndFound ) ||
		( !m_bStatusBarStartFound && m_bStatusBarEndFound )		)
	{
		OUString aErrorMessage = getErrorLineString();
		aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "No matching start or end element 'statusbar' found!" ));
		throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
	}
}

void SAL_CALL OReadStatusBarDocumentHandler::startElement(
	const OUString& aName, const Reference< XAttributeList > &xAttribs )
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	StatusBarHashMap::const_iterator pStatusBarEntry = m_aStatusBarMap.find( aName ) ;
	if ( pStatusBarEntry != m_aStatusBarMap.end() )
	{
		switch ( pStatusBarEntry->second )
		{
			case SB_ELEMENT_STATUSBAR:
			{
				if ( m_bStatusBarStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'statusbar:statusbar' cannot be embeded into 'statusbar:statusbar'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bStatusBarStartFound = sal_True;
			}
			break;

			case SB_ELEMENT_STATUSBARITEM:
			{
				if ( !m_bStatusBarStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'statusbar:statusbaritem' must be embeded into element 'statusbar:statusbar'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}
				
				if ( m_bStatusBarItemStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element statusbar:statusbaritem is not a container!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				OUString    aCommandURL;
=====================================================================
Found a 80 line (473 tokens) duplication in the following files: 
Starting at line 1760 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1986 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< Exception2a >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
=====================================================================
Found a 67 line (472 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/tempnam.c
Starting at line 36 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/macosx/tempnam.c

extern char *mktemp();
extern int access();
int d_access();

char *
dtempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", getpid() );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;
   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 80 line (472 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1760 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< Enum2 >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
=====================================================================
Found a 107 line (470 tokens) duplication in the following files: 
Starting at line 1288 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/embobj.cxx
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/soconv.cxx

} aClsIDs[] = {

	{ 0x000212F0, "MSWordArt",     		"Microsoft Word Art"	 		},
	{ 0x000212F0, "MSWordArt.2",   		"Microsoft Word Art 2.0" 		},

	// MS Apps
	{ 0x00030000, "ExcelWorksheet",		"Microsoft Excel Worksheet"		},
	{ 0x00030001, "ExcelChart",			"Microsoft Excel Chart"			},
	{ 0x00030002, "ExcelMacrosheet",	"Microsoft Excel Macro"			},
	{ 0x00030003, "WordDocument",		"Microsoft Word Document"		},
	{ 0x00030004, "MSPowerPoint",		"Microsoft PowerPoint"			},
	{ 0x00030005, "MSPowerPointSho",	"Microsoft PowerPoint Slide Show"},
	{ 0x00030006, "MSGraph",			"Microsoft Graph"				},
	{ 0x00030007, "MSDraw",				"Microsoft Draw"				},
	{ 0x00030008, "Note-It",			"Microsoft Note-It"				},
	{ 0x00030009, "WordArt",			"Microsoft Word Art"			},
	{ 0x0003000a, "PBrush",				"Microsoft PaintBrush Picture"	},
	{ 0x0003000b, "Equation",			"Microsoft Equation Editor"		},
	{ 0x0003000c, "Package",			"Package"						},
	{ 0x0003000d, "SoundRec",			"Sound"							},
	{ 0x0003000e, "MPlayer",			"Media Player"					},
	// MS Demos
	{ 0x0003000f, "ServerDemo",			"OLE 1.0 Server Demo"			},
	{ 0x00030010, "Srtest",				"OLE 1.0 Test Demo"				},
	{ 0x00030011, "SrtInv",				"OLE 1.0 Inv Demo"				},
	{ 0x00030012, "OleDemo",			"OLE 1.0 Demo"					},

	// Coromandel / Dorai Swamy / 718-793-7963
	{ 0x00030013, "CoromandelIntegra",	"Coromandel Integra"			},
	{ 0x00030014, "CoromandelObjServer","Coromandel Object Server"		},

	// 3-d Visions Corp / Peter Hirsch / 310-325-1339
	{ 0x00030015, "StanfordGraphics",	"Stanford Graphics"				},

	// Deltapoint / Nigel Hearne / 408-648-4000
	{ 0x00030016, "DGraphCHART",		"DeltaPoint Graph Chart"		},
	{ 0x00030017, "DGraphDATA",			"DeltaPoint Graph Data"			},

	// Corel / Richard V. Woodend / 613-728-8200 x1153
	{ 0x00030018, "PhotoPaint",			"Corel PhotoPaint"				},
	{ 0x00030019, "CShow",				"Corel Show"					},
	{ 0x0003001a, "CorelChart",			"Corel Chart"					},
	{ 0x0003001b, "CDraw",				"Corel Draw"					},

	// Inset Systems / Mark Skiba / 203-740-2400
	{ 0x0003001c, "HJWIN1.0",			"Inset Systems"					},

	// Mark V Systems / Mark McGraw / 818-995-7671
	{ 0x0003001d, "ObjMakerOLE",		"MarkV Systems Object Maker"	},

	// IdentiTech / Mike Gilger / 407-951-9503
	{ 0x0003001e, "FYI",				"IdentiTech FYI"				},
	{ 0x0003001f, "FYIView",			"IdentiTech FYI Viewer"			},

	// Inventa Corporation / Balaji Varadarajan / 408-987-0220
	{ 0x00030020, "Stickynote",			"Inventa Sticky Note"			},

	// ShapeWare Corp. / Lori Pearce / 206-467-6723
	{ 0x00030021, "ShapewareVISIO10",   "Shapeware Visio 1.0"			},
	{ 0x00030022, "ImportServer",		"Spaheware Import Server"		},

	// test app SrTest
	{ 0x00030023, "SrvrTest",			"OLE 1.0 Server Test"			},

	// test app ClTest.  Doesn't really work as a server but is in reg db
	{ 0x00030025, "Cltest",				"OLE 1.0 Client Test"			},

	// Microsoft ClipArt Gallery   Sherry Larsen-Holmes
	{ 0x00030026, "MS_ClipArt_Gallery",	"Microsoft ClipArt Gallery"		},
	// Microsoft Project  Cory Reina
	{ 0x00030027, "MSProject",			"Microsoft Project"				},

	// Microsoft Works Chart
	{ 0x00030028, "MSWorksChart",		"Microsoft Works Chart"			},

	// Microsoft Works Spreadsheet
	{ 0x00030029, "MSWorksSpreadsheet",	"Microsoft Works Spreadsheet"	},

	// AFX apps - Dean McCrory
	{ 0x0003002A, "MinSvr",				"AFX Mini Server"				},
	{ 0x0003002B, "HierarchyList",		"AFX Hierarchy List"			},
	{ 0x0003002C, "BibRef",				"AFX BibRef"					},
	{ 0x0003002D, "MinSvrMI",			"AFX Mini Server MI"			},
	{ 0x0003002E, "TestServ",			"AFX Test Server"				},

	// Ami Pro
	{ 0x0003002F, "AmiProDocument",		"Ami Pro Document"				},

	// WordPerfect Presentations For Windows
	{ 0x00030030, "WPGraphics",			"WordPerfect Presentation"		},
	{ 0x00030031, "WPCharts",			"WordPerfect Chart"				},

	// MicroGrafx Charisma
	{ 0x00030032, "Charisma",			"MicroGrafx Charisma"			},
	{ 0x00030033, "Charisma_30",		"MicroGrafx Charisma 3.0"		},
	{ 0x00030034, "CharPres_30",		"MicroGrafx Charisma 3.0 Pres"	},
	// MicroGrafx Draw
	{ 0x00030035, "Draw",				"MicroGrafx Draw"				},
	// MicroGrafx Designer
	{ 0x00030036, "Designer_40",		"MicroGrafx Designer 4.0"		},

	// STAR DIVISION
//	{ 0x000424CA, "StarMath",			"StarMath 1.0"					},
	{ 0x00043AD2, "FontWork",			"Star FontWork"					},
//	{ 0x000456EE, "StarMath2",			"StarMath 2.0"					},

	{ 0, "", "" } };
=====================================================================
Found a 63 line (469 tokens) duplication in the following files: 
Starting at line 2076 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/tabview.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/chartins.cxx

        BOOL bLayoutRTL = ::GetActiveView()->GetWrtShell().IsTableRightToLeft();
        bool bCenterHor = false;

        if ( aDesktop.Bottom() - aObjAbs.Bottom() >= rDialogSize.Height() + aSpace.Height() )
        {
            // first preference: below the chart
            aRet.Y() = aObjAbs.Bottom() + aSpace.Height();
            bCenterHor = true;
        }
        else if ( aObjAbs.Top() - aDesktop.Top() >= rDialogSize.Height() + aSpace.Height() )
        {
            // second preference: above the chart
            aRet.Y() = aObjAbs.Top() - rDialogSize.Height() - aSpace.Height();
            bCenterHor = true;
        }
        else
        {
            bool bFitLeft = ( aObjAbs.Left() - aDesktop.Left() >= rDialogSize.Width() + aSpace.Width() );
            bool bFitRight = ( aDesktop.Right() - aObjAbs.Right() >= rDialogSize.Width() + aSpace.Width() );

            if ( bFitLeft || bFitRight )
            {
                // if both fit, prefer right in RTL mode, left otherwise
                bool bPutRight = bFitRight && ( bLayoutRTL || !bFitLeft );
                if ( bPutRight )
                    aRet.X() = aObjAbs.Right() + aSpace.Width();
                else
                    aRet.X() = aObjAbs.Left() - rDialogSize.Width() - aSpace.Width();

                // center vertically
                aRet.Y() = aObjAbs.Top() + ( aObjAbs.GetHeight() - rDialogSize.Height() ) / 2;
            }
            else
            {
                // doesn't fit on any edge - put at the bottom of the screen
                aRet.Y() = aDesktop.Bottom() - rDialogSize.Height();
                bCenterHor = true;
            }
        }
        if ( bCenterHor )
            aRet.X() = aObjAbs.Left() + ( aObjAbs.GetWidth() - rDialogSize.Width() ) / 2;

        // limit to screen (centering might lead to invalid positions)
        if ( aRet.X() + rDialogSize.Width() - 1 > aDesktop.Right() )
            aRet.X() = aDesktop.Right() - rDialogSize.Width() + 1;
        if ( aRet.X() < aDesktop.Left() )
            aRet.X() = aDesktop.Left();
        if ( aRet.Y() + rDialogSize.Height() - 1 > aDesktop.Bottom() )
            aRet.Y() = aDesktop.Bottom() - rDialogSize.Height() + 1;
        if ( aRet.Y() < aDesktop.Top() )
            aRet.Y() = aDesktop.Top();
    }

    return aRet;
}


/*------------------------------------------------------------------------
	Beschreibung:
------------------------------------------------------------------------*/


void SwInsertChart(Window* pParent, SfxBindings* pBindings )
=====================================================================
Found a 80 line (469 tokens) duplication in the following files: 
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

using namespace com::sun::star::uno;

namespace
{
//==================================================================================================
static typelib_TypeClass cpp2uno_call(
	 bridges::cpp_uno::shared::CppInterfaceProxy * pThis,
	const typelib_TypeDescription * pMemberTypeDescr,
	typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void ** pCallStack,
	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	// pCallStack: [ret ptr], this, params
	char * pCppStack = (char *)pCallStack;

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	if (pReturnTypeRef)
		TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	
	void * pUnoReturn = 0;
	void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
			pUnoReturn = pRegisterReturn; // direct way for simple types
		else // complex return via ptr (pCppReturn)
		{
			pCppReturn = *(void**)pCppStack;
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                             pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
			pCppStack += sizeof( void* );
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

	 	if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))  // value
		{
			pCppArgs[nPos] = pUnoArgs[nPos] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr);
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
            		case typelib_TypeClass_DOUBLE:
            		{
			if ((reinterpret_cast< long >(pCppStack) & 7) != 0)
              		{
		   		OSL_ASSERT( sizeof (double) == sizeof (sal_Int64) );
                   		void * pDest = alloca( sizeof (sal_Int64) );
                  	 	*reinterpret_cast< sal_Int32 * >(pDest) =
                   		*reinterpret_cast< sal_Int32 const * >(pCppStack);
                   		*(reinterpret_cast< sal_Int32 * >(pDest) + 1) =
                   		*(reinterpret_cast< sal_Int32 const * >(pCppStack) + 1);
                   		pCppArgs[nPos] = pUnoArgs[nPos] = pDest;
			}
		   	pCppStack += sizeof (sal_Int32); // extra long
                   	break;
=====================================================================
Found a 117 line (465 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
            // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32 nFunctionIndex,
    sal_Int32 nVtableOffset,
	void ** pCallStack,
=====================================================================
Found a 95 line (464 tokens) duplication in the following files: 
Starting at line 696 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 856 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

				if( nPaperBin >= pKey->countValues() )
					pValue = pKey->getDefaultValue();
				else
                    pValue = pKey->getValue( pJobSetup->mnPaperBin );

                // may fail due to constraints;
                // real paper bin is copied back to jobsetup in that case
				aData.m_aContext.setValue( pKey, pValue );
			}
			// if printer has no InputSlot key simply ignore this setting
			// (e.g. SGENPRT has no InputSlot)
		}

		// merge orientation if necessary
		if( nSetDataFlags & SAL_JOBSET_ORIENTATION )
			aData.m_eOrientation = pJobSetup->meOrientation == ORIENTATION_LANDSCAPE ? orientation::Landscape : orientation::Portrait;

		m_aJobData = aData;
		copyJobDataToJobSetup( pJobSetup, aData );
		return TRUE;
	}

	return FALSE;
}

// -----------------------------------------------------------------------

void PspSalInfoPrinter::GetPageInfo(
	const ImplJobSetup* pJobSetup,
	long& rOutWidth, long& rOutHeight,
	long& rPageOffX, long& rPageOffY,
	long& rPageWidth, long& rPageHeight )
{
	if( ! pJobSetup )
		return;

	JobData aData;
	JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData );

	// get the selected page size
	if( aData.m_pParser )
	{

		String aPaper;
		int width, height;
		int left = 0, top = 0, right = 0, bottom = 0;
		int nDPI = aData.m_aContext.getRenderResolution();


        if( aData.m_eOrientation == psp::orientation::Portrait )
        {
            aData.m_aContext.getPageSize( aPaper, width, height );
            aData.m_pParser->getMargins( aPaper, left, right, top, bottom );
        }
        else
        {
            aData.m_aContext.getPageSize( aPaper, height, width );
            aData.m_pParser->getMargins( aPaper, top, bottom, right, left );
        }

		rPageWidth	= width * nDPI / 72;
		rPageHeight	= height * nDPI / 72;
		rPageOffX	= left * nDPI / 72;
		rPageOffY	= top * nDPI / 72;
		rOutWidth	= ( width  - left - right ) * nDPI / 72;
		rOutHeight	= ( height - top  - bottom ) * nDPI / 72;
	}
}

// -----------------------------------------------------------------------

ULONG PspSalInfoPrinter::GetPaperBinCount( const ImplJobSetup* pJobSetup )
{
	if( ! pJobSetup )
		return 0;

	JobData aData;
	JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData );

	const PPDKey* pKey = aData.m_pParser ? aData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) ): NULL;
    return pKey ? pKey->countValues() : 0;
}

// -----------------------------------------------------------------------

String PspSalInfoPrinter::GetPaperBinName( const ImplJobSetup* pJobSetup, ULONG nPaperBin )
{
	JobData aData;
	JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData );

	String aRet;
	if( aData.m_pParser )
	{
		const PPDKey* pKey = aData.m_pParser ? aData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) ): NULL;
		if( ! pKey || nPaperBin >= (ULONG)pKey->countValues() )
=====================================================================
Found a 89 line (464 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/misc/propertysethelper.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/config/ldap/propertysethelper.cxx

namespace extensions {
    namespace apihelper {
//..........................................................................
        namespace uno   = com::sun::star::uno;
        namespace lang  = com::sun::star::lang;
        namespace beans = com::sun::star::beans;
//..........................................................................
PropertySetHelper::PropertySetHelper()
: BroadcasterBase()
, cppu::OWeakObject()
, cppu::OPropertySetHelper( BroadcasterBase::getBroadcastHelper() )
, m_pHelper(0)
{
}

//..........................................................................
PropertySetHelper::~PropertySetHelper()
{
    delete m_pHelper;
}

//..........................................................................
// XInterface
uno::Any SAL_CALL PropertySetHelper::queryInterface( uno::Type const & rType ) throw (uno::RuntimeException)
{
    uno::Any aResult = cppu::OPropertySetHelper::queryInterface(rType);
    if (!aResult.hasValue())
        aResult = OWeakObject::queryInterface(rType);
    return aResult;
}

void SAL_CALL PropertySetHelper::acquire() throw ()
{
    OWeakObject::acquire();
}

void SAL_CALL PropertySetHelper::release() throw ()
{
    if (m_refCount == 1)
        this->disposing();

    OWeakObject::release();
}

//..........................................................................
// XTypeProvider
uno::Sequence< uno::Type > SAL_CALL PropertySetHelper::getTypes() throw (uno::RuntimeException)
{
    // could be static instance
    cppu::OTypeCollection aTypes(
        ::getCppuType( static_cast< uno::Reference< beans::XPropertySet > const * >(0) ),
        ::getCppuType( static_cast< uno::Reference< beans::XMultiPropertySet > const * >(0) ),
        ::getCppuType( static_cast< uno::Reference< beans::XFastPropertySet > const * >(0) ),
        ::getCppuType( static_cast< uno::Reference< lang::XTypeProvider > const * >(0) ) );

    return aTypes.getTypes();
}

//..........................................................................
// cppu::OPropertySetHelper
uno::Reference< beans::XPropertySetInfo > SAL_CALL PropertySetHelper::getPropertySetInfo(  ) 
    throw (uno::RuntimeException)
{
    return createPropertySetInfo(getInfoHelper());
}
	
//..........................................................................
cppu::IPropertyArrayHelper & SAL_CALL PropertySetHelper::getInfoHelper()
{
    osl::MutexGuard aGuard( getBroadcastMutex() );
    if (!m_pHelper)
        m_pHelper = newInfoHelper();

    OSL_ENSURE(m_pHelper,"Derived class did not create new PropertyInfoHelper");
    if (!m_pHelper)
        throw uno::RuntimeException(rtl::OUString::createFromAscii("No PropertyArrayHelper available"),*this);

    return *m_pHelper;
}

//..........................................................................
sal_Bool SAL_CALL PropertySetHelper::convertFastPropertyValue(
    uno::Any & rConvertedValue, uno::Any & rOldValue, sal_Int32 nHandle, const uno::Any& rValue )
		throw (lang::IllegalArgumentException)
{
    this->getFastPropertyValue(rOldValue, nHandle);
    rConvertedValue = rValue;
    return rValue.isExtractableTo( rOldValue.getValueType() );   
}
=====================================================================
Found a 116 line (464 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( 
         pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( 
                    &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
                // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32 nFunctionIndex,
        sal_Int32 nVtableOffset,
        void ** gpreg, void ** fpreg, void ** ovrflw,
=====================================================================
Found a 96 line (462 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linksrc.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linksrc.cxx

				p->xSink->DataChanged( rMimeType, rVal );

				if( p->nAdviseModes & ADVISEMODE_ONLYONCE )
				{
					USHORT nFndPos = pImpl->aArr.GetPos( p );
					if( USHRT_MAX != nFndPos )
						pImpl->aArr.DeleteAndDestroy( nFndPos );
				}
			}
		}

		if( pImpl->pTimer )
		{
			delete pImpl->pTimer;
			pImpl->pTimer = NULL;
		}
	}
}


// only one link is correct
void SvLinkSource::AddDataAdvise( SvBaseLink * pLink, const String& rMimeType,
									USHORT nAdviseModes )
{
	SvLinkSource_Entry_ImplPtr pNew = new SvLinkSource_Entry_Impl(
					pLink, rMimeType, nAdviseModes );
	pImpl->aArr.Insert( pNew, pImpl->aArr.Count() );
}

void SvLinkSource::RemoveAllDataAdvise( SvBaseLink * pLink )
{
	SvLinkSource_EntryIter_Impl aIter( pImpl->aArr );
	for( SvLinkSource_Entry_ImplPtr p = aIter.Curr(); p; p = aIter.Next() )
		if( p->bIsDataSink && &p->xSink == pLink )
		{
			USHORT nFndPos = pImpl->aArr.GetPos( p );
			if( USHRT_MAX != nFndPos )
				pImpl->aArr.DeleteAndDestroy( nFndPos );
		}
}

// only one link is correct
void SvLinkSource::AddConnectAdvise( SvBaseLink * pLink )
{
	SvLinkSource_Entry_ImplPtr pNew = new SvLinkSource_Entry_Impl( pLink );
	pImpl->aArr.Insert( pNew, pImpl->aArr.Count() );
}

void SvLinkSource::RemoveConnectAdvise( SvBaseLink * pLink )
{
	SvLinkSource_EntryIter_Impl aIter( pImpl->aArr );
	for( SvLinkSource_Entry_ImplPtr p = aIter.Curr(); p; p = aIter.Next() )
		if( !p->bIsDataSink && &p->xSink == pLink )
		{
			USHORT nFndPos = pImpl->aArr.GetPos( p );
			if( USHRT_MAX != nFndPos )
				pImpl->aArr.DeleteAndDestroy( nFndPos );
		}
}

BOOL SvLinkSource::HasDataLinks( const SvBaseLink* pLink ) const
{
	BOOL bRet = FALSE;
	const SvLinkSource_Entry_Impl* p;
	for( USHORT n = 0, nEnd = pImpl->aArr.Count(); n < nEnd; ++n )
		if( ( p = pImpl->aArr[ n ] )->bIsDataSink &&
			( !pLink || &p->xSink == pLink ) )
		{
			bRet = TRUE;
			break;
		}
	return bRet;
}

// TRUE => waitinmg for data
BOOL SvLinkSource::IsPending() const
{
	return FALSE;
}

// TRUE => data complete loaded
BOOL SvLinkSource::IsDataComplete() const
{
	return TRUE;
}

BOOL SvLinkSource::Connect( SvBaseLink * )
{
	return TRUE;
}

BOOL SvLinkSource::GetData( ::com::sun::star::uno::Any & ,
						const String & , BOOL )
{
	return FALSE;
}
=====================================================================
Found a 115 line (462 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilteradaptor/streamwrap.cxx
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/java/streamwrap.cxx

	return nAvailable;
}

//------------------------------------------------------------------------------
void SAL_CALL OInputStreamWrapper::closeInput() throw( stario::NotConnectedException, staruno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	if (m_bSvStreamOwner)
		delete m_pSvStream;

	m_pSvStream = NULL;
}

//------------------------------------------------------------------------------
void OInputStreamWrapper::checkConnected() const
{
	if (!m_pSvStream)
		throw stario::NotConnectedException(::rtl::OUString(), const_cast<staruno::XWeak*>(static_cast<const staruno::XWeak*>(this)));
}

//------------------------------------------------------------------------------
void OInputStreamWrapper::checkError() const
{
	checkConnected();
}

//==================================================================
//= OSeekableInputStreamWrapper
//==================================================================
//------------------------------------------------------------------------------
OSeekableInputStreamWrapper::OSeekableInputStreamWrapper(File& _rStream)
	:OInputStreamWrapper(_rStream)
{
}

//------------------------------------------------------------------------------
OSeekableInputStreamWrapper::OSeekableInputStreamWrapper(File* _pStream, sal_Bool _bOwner)
	:OInputStreamWrapper(_pStream, _bOwner)
{
}

//------------------------------------------------------------------------------
Any SAL_CALL OSeekableInputStreamWrapper::queryInterface( const Type& _rType ) throw (RuntimeException)
{
	Any aReturn = OInputStreamWrapper::queryInterface(_rType);
	if (!aReturn.hasValue())
		aReturn = OSeekableInputStreamWrapper_Base::queryInterface(_rType);
	return aReturn;
}

//------------------------------------------------------------------------------
void SAL_CALL OSeekableInputStreamWrapper::acquire(  ) throw ()
{
	OInputStreamWrapper::acquire();
}

//------------------------------------------------------------------------------
void SAL_CALL OSeekableInputStreamWrapper::release(  ) throw ()
{
	OInputStreamWrapper::release();
}

//------------------------------------------------------------------------------
void SAL_CALL OSeekableInputStreamWrapper::seek( sal_Int64 _nLocation ) throw (IllegalArgumentException, IOException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	m_pSvStream->setPos(Pos_Current,(sal_uInt32)_nLocation);
	checkError();
}

//------------------------------------------------------------------------------
sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getPosition(  ) throw (IOException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	sal_uInt64 nPos = 0;
	nPos = m_pSvStream->getPos(nPos);
	checkError();
	return nPos;
}

//------------------------------------------------------------------------------
sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getLength(  ) throw (IOException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	sal_uInt64 nCurrentPos = 0;
	m_pSvStream->getPos(nCurrentPos);
	checkError();

	m_pSvStream->setPos(osl_Pos_End,0);
	sal_uInt64 nEndPos = 0;
	m_pSvStream->getPos(nEndPos);
	m_pSvStream->setPos(osl_Pos_Absolut,nCurrentPos);

	checkError();

	return nEndPos;
}

//==================================================================
//= OOutputStreamWrapper
//==================================================================
//------------------------------------------------------------------------------
void SAL_CALL OOutputStreamWrapper::writeBytes(const staruno::Sequence< sal_Int8 >& aData) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	sal_uInt64 nWritten = 0;
	rStream.write(aData.getConstArray(),aData.getLength(),nWritten);
	if (nWritten != aData.getLength())
=====================================================================
Found a 95 line (462 tokens) duplication in the following files: 
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propertysethelper.cxx
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/property/propertysethelper.cxx

		delete [] pEntries;

		if( bUnknown )
			throw UnknownPropertyException();
	}

	return aValues;
}

void SAL_CALL PropertySetHelper::addPropertiesChangeListener( const Sequence< ::rtl::OUString >& /*aPropertyNames*/, const Reference< XPropertiesChangeListener >& /*xListener*/ ) throw(RuntimeException)
{
	// todo
}

void SAL_CALL PropertySetHelper::removePropertiesChangeListener( const Reference< XPropertiesChangeListener >& /*xListener*/ ) throw(RuntimeException)
{
	// todo
}

void SAL_CALL PropertySetHelper::firePropertiesChangeEvent( const Sequence< ::rtl::OUString >& /*aPropertyNames*/, const Reference< XPropertiesChangeListener >& /*xListener*/ ) throw(RuntimeException)
{
	// todo
}

// XPropertyState
PropertyState SAL_CALL PropertySetHelper::getPropertyState( const ::rtl::OUString& PropertyName ) throw(UnknownPropertyException, RuntimeException)
{
	PropertyMapEntry* aEntries[2];

	aEntries[0] = mp->find( PropertyName );
	if( aEntries[0] == NULL )
		throw UnknownPropertyException();

	aEntries[1] = NULL;

	PropertyState aState;
	_getPropertyStates( (const PropertyMapEntry**)aEntries, &aState );

	return aState;
}

Sequence< PropertyState > SAL_CALL PropertySetHelper::getPropertyStates( const Sequence< ::rtl::OUString >& aPropertyName ) throw(UnknownPropertyException, RuntimeException)
{
	const sal_Int32 nCount = aPropertyName.getLength();

	Sequence< PropertyState > aStates( nCount );

	if( nCount )
	{
		const OUString* pNames = aPropertyName.getConstArray();

		sal_Bool bUnknown = sal_False;

		PropertyMapEntry** pEntries = new PropertyMapEntry*[nCount+1];

		sal_Int32 n;
		for( n = 0; !bUnknown && (n < nCount); n++, pNames++ )
		{
			pEntries[n] = mp->find( *pNames );
			bUnknown = NULL == pEntries[n];
		}

		pEntries[nCount] = NULL;

		if( !bUnknown )
			_getPropertyStates( (const PropertyMapEntry**)pEntries, aStates.getArray() );

		delete [] pEntries;

		if( bUnknown )
			throw UnknownPropertyException();
	}

	return aStates;
}

void SAL_CALL PropertySetHelper::setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(UnknownPropertyException, RuntimeException)
{
	PropertyMapEntry *pEntry  = mp->find( PropertyName );
	if( NULL == pEntry )
		throw UnknownPropertyException();

	_setPropertyToDefault( pEntry );
}

Any SAL_CALL PropertySetHelper::getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
	PropertyMapEntry* pEntry = mp->find( aPropertyName );
	if( NULL == pEntry )
		throw UnknownPropertyException();

	return _getPropertyDefault( pEntry );
}

void PropertySetHelper::_getPropertyStates( const utl::PropertyMapEntry** /*ppEntries*/, PropertyState* /*pStates*/ ) throw(UnknownPropertyException )
=====================================================================
Found a 95 line (462 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunomaker.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idlmaker.cxx

	IdlOptions options;

	try 
	{
		if (!options.initOptions(argc, argv))
		{
			exit(1);
		}
	}
	catch( IllegalArgument& e)
	{
		fprintf(stderr, "Illegal option: %s\n", e.m_message.getStr());
		exit(99);
	}

	RegistryTypeManager typeMgr;
	TypeDependency		typeDependencies;
	
	if (!typeMgr.init(!options.isValid("-T"), options.getInputFiles()))
	{
		fprintf(stderr, "%s : init registries failed, check your registry files.\n", options.getProgramName().getStr());
		exit(99);
	}

	if (options.isValid("-B"))
	{
		typeMgr.setBase(options.getOption("-B"));
	}

	try 
	{
		if (options.isValid("-T"))
		{
			OString tOption(options.getOption("-T"));

			OString typeName, tmpName;
			sal_Bool ret = sal_False;
            sal_Int32 nIndex = 0;
            do
			{
				typeName = tOption.getToken(0, ';', nIndex);

                sal_Int32 nPos = typeName.lastIndexOf( '.' );
                tmpName = typeName.copy( nPos != -1 ? nPos+1 : 0 );
				if (tmpName == "*")
				{
					// produce this type and his scope, but the scope is not recursively  generated.
					if (typeName.equals("*"))
					{
						tmpName = "/";
					} else
					{
						tmpName = typeName.copy(0, typeName.lastIndexOf('.')).replace('.', '/');
						if (tmpName.getLength() == 0) 
							tmpName = "/";
						else
							tmpName.replace('.', '/');
					}
					ret = produceAllTypes(tmpName, typeMgr, typeDependencies, &options, sal_False);
				} else
				{
					// produce only this type
					ret = produceType(typeName.replace('.', '/'), typeMgr, typeDependencies, &options);
				}

				if (!ret)
				{
					fprintf(stderr, "%s ERROR: %s\n", 
							options.getProgramName().getStr(), 
							OString("cannot dump Type '" + typeName + "'").getStr());
					exit(99);
				}
			} while( nIndex != -1 );
		} else
		{
			// produce all types
			if (!produceAllTypes("/", typeMgr, typeDependencies, &options, sal_True))
			{
				fprintf(stderr, "%s ERROR: %s\n", 
						options.getProgramName().getStr(), 
						"an error occurs while dumping all types.");
				exit(99);
			}
		}
	}
	catch( CannotDumpException& e)
	{
		fprintf(stderr, "%s ERROR: %s\n", 
				options.getProgramName().getStr(), 
				e.m_message.getStr());
		exit(99);
	}

	return 0;
}
=====================================================================
Found a 81 line (460 tokens) duplication in the following files: 
Starting at line 1565 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin4.cxx
Starting at line 1753 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin4.cxx

    ScInvertMerger aInvert( &rPixelRects );

	Point aScrPos = pViewData->GetScrPos( nX1, nY1, eWhich );
	long nScrY = aScrPos.Y();
	BOOL bWasHidden = FALSE;
	for (SCROW nY=nY1; nY<=nY2; nY++)
	{
		BOOL bFirstRow = ( nY == nPosY );						// first visible row?
		BOOL bDoHidden = FALSE;									// versteckte nachholen ?
		USHORT nHeightTwips = pDoc->GetRowHeight( nY,nTab );
		BOOL bDoRow = ( nHeightTwips != 0 );
		if (bDoRow)
		{
			if (bTestMerge)
				if (bWasHidden)					// auf versteckte zusammengefasste testen
				{
					bDoHidden = TRUE;
					bDoRow = TRUE;
				}

			bWasHidden = FALSE;
		}
		else
		{
			bWasHidden = TRUE;
			if (bTestMerge)
				if (nY==nY2)
					bDoRow = TRUE;				// letzte Zeile aus Block
		}

		if ( bDoRow )
		{
			SCCOL nLoopEndX = nX2;
			if (nX2 < nX1)						// Rest von zusammengefasst
			{
				SCCOL nStartX = nX1;
				while ( ((const ScMergeFlagAttr*)pDoc->
							GetAttr(nStartX,nY,nTab,ATTR_MERGE_FLAG))->IsHorOverlapped() )
					--nStartX;
				if (nStartX <= nX2)
					nLoopEndX = nX1;
			}

			long nEndY = nScrY + ScViewData::ToPixel( nHeightTwips, nPPTY ) - 1;
			long nScrX = aScrPos.X();
			for (SCCOL nX=nX1; nX<=nLoopEndX; nX++)
			{
				long nWidth = ScViewData::ToPixel( pDoc->GetColWidth( nX,nTab ), nPPTX );
				if ( nWidth > 0 )
				{
					long nEndX = nScrX + ( nWidth - 1 ) * nLayoutSign;
					if (bTestMerge)
					{
						SCROW nThisY = nY;
						const ScPatternAttr* pPattern = pDoc->GetPattern( nX, nY, nTab );
						const ScMergeFlagAttr* pMergeFlag = (const ScMergeFlagAttr*) &pPattern->
																		GetItem(ATTR_MERGE_FLAG);
						if ( pMergeFlag->IsVerOverlapped() && ( bDoHidden || bFirstRow ) )
						{
							while ( pMergeFlag->IsVerOverlapped() && nThisY > 0 &&
										( (pDoc->GetRowFlags( nThisY-1, nTab ) & CR_HIDDEN) || bFirstRow ) )
							{
								--nThisY;
								pPattern = pDoc->GetPattern( nX, nThisY, nTab );
								pMergeFlag = (const ScMergeFlagAttr*) &pPattern->GetItem(ATTR_MERGE_FLAG);
							}
						}

						// nur Rest von zusammengefasster zu sehen ?
						SCCOL nThisX = nX;
						if ( pMergeFlag->IsHorOverlapped() && nX == nPosX && nX > nRealX1 )
						{
							while ( pMergeFlag->IsHorOverlapped() )
							{
								--nThisX;
								pPattern = pDoc->GetPattern( nThisX, nThisY, nTab );
								pMergeFlag = (const ScMergeFlagAttr*) &pPattern->GetItem(ATTR_MERGE_FLAG);
							}
						}

						if ( aMultiMark.IsCellMarked( nThisX, nThisY, TRUE ) == bRepeat )
=====================================================================
Found a 81 line (459 tokens) duplication in the following files: 
Starting at line 3757 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3958 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    : WW8PLCFx(rFib.GetFIBVersion(), false), pStatus(0), nIsEnd(0)
{
    if( !rFib.fcPlcfbkf || !rFib.lcbPlcfbkf || !rFib.fcPlcfbkl ||
        !rFib.lcbPlcfbkl || !rFib.fcSttbfbkmk || !rFib.lcbSttbfbkmk )
    {
        pBook[0] = pBook[1] = 0;
        nIMax = 0;
    }
    else
    {
        pBook[0] = new WW8PLCFspecial(pTblSt,rFib.fcPlcfbkf,rFib.lcbPlcfbkf,4);

        pBook[1] = new WW8PLCFspecial( pTblSt, rFib.fcPlcfbkl, rFib.lcbPlcfbkl,
            0, -1, true);

        rtl_TextEncoding eStructChrSet = WW8Fib::GetFIBCharset(rFib.chseTables);

        WW8ReadSTTBF( (7 < rFib.nVersion), *pTblSt, rFib.fcSttbfbkmk,
            rFib.lcbSttbfbkmk, 0, eStructChrSet, aBookNames );

        nIMax = aBookNames.size();

        if( pBook[0]->GetIMax() < nIMax )   // Count of Bookmarks
            nIMax = pBook[0]->GetIMax();
        if( pBook[1]->GetIMax() < nIMax )
            nIMax = pBook[1]->GetIMax();
        pStatus = new eBookStatus[ nIMax ];
        memset( pStatus, 0, nIMax * sizeof( eBookStatus ) );
    }
}

WW8PLCFx_Book::~WW8PLCFx_Book()
{
    delete[] pStatus;
    delete pBook[1];
    delete pBook[0];
}

ULONG WW8PLCFx_Book::GetIdx() const
{
    return nIMax ? pBook[0]->GetIdx() : 0;
}

void WW8PLCFx_Book::SetIdx( ULONG nI )
{
    if( nIMax )
        pBook[0]->SetIdx( nI );
}

ULONG WW8PLCFx_Book::GetIdx2() const
{
    return nIMax ? ( pBook[1]->GetIdx() | ( ( nIsEnd ) ? 0x80000000 : 0 ) ) : 0;
}

void WW8PLCFx_Book::SetIdx2( ULONG nI )
{
    if( nIMax )
    {
        pBook[1]->SetIdx( nI & 0x7fffffff );
        nIsEnd = (USHORT)( ( nI >> 31 ) & 1 );  // 0 oder 1
    }
}

bool WW8PLCFx_Book::SeekPos(WW8_CP nCpPos)
{
    if( !pBook[0] )
        return false;

    bool bOk = pBook[0]->SeekPosExact( nCpPos );
    bOk &= pBook[1]->SeekPosExact( nCpPos );
    nIsEnd = 0;

    return bOk;
}

WW8_CP WW8PLCFx_Book::Where()
{
    return pBook[nIsEnd]->Where();
}

long WW8PLCFx_Book::GetNoSprms( WW8_CP& rStart, WW8_CP& rEnd, sal_Int32& rLen )
=====================================================================
Found a 10 line (459 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2468 - 246f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2470 - 2477
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2478 - 247f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2480 - 2487
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2488 - 248f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2490 - 2497
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2498 - 249f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24a0 - 24a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24a8 - 24af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x68, 0x24D0}, {0x68, 0x24D1}, // 24b0 - 24b7
=====================================================================
Found a 75 line (458 tokens) duplication in the following files: 
Starting at line 1265 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 1393 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

	for ( size_t nPos = 0; nPos < _radios.size(); ++nPos )
	{
		Reference< xml::input::XElement > xRadio( _radios[ nPos ] );
		Reference< xml::input::XAttributes > xAttributes(
            xRadio->getAttributes() );
		
		ControlImportContext ctx(
			_pImport, getControlId( xAttributes ),
			OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlRadioButtonModel") ) );
		Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
		
		Reference< xml::input::XElement > xStyle( getStyle( xAttributes ) );
		if (xStyle.is())
		{
			StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () );
            pStyle->importBackgroundColorStyle( xControlModel );
			pStyle->importTextColorStyle( xControlModel );
            pStyle->importTextLineColorStyle( xControlModel );
			pStyle->importFontStyle( xControlModel );
			pStyle->importVisualEffectStyle( xControlModel );
		}
		
		ctx.importDefaults( _nBasePosX, _nBasePosY, xAttributes );
		ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
								   OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
								   xAttributes );
		ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
								  OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
								  xAttributes );
        ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
                                 OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
                                 xAttributes );
        ctx.importVerticalAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
                                         OUString( RTL_CONSTASCII_USTRINGPARAM("valign") ),
                                         xAttributes );
        ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ),
                                  OUString( RTL_CONSTASCII_USTRINGPARAM("image-src") ),
                                  xAttributes );
        ctx.importImagePositionProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
                                         OUString( RTL_CONSTASCII_USTRINGPARAM("image-position") ),
                                         xAttributes );
        ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
                                   OUString( RTL_CONSTASCII_USTRINGPARAM("multiline") ),
                                   xAttributes );
		
		sal_Int16 nVal = 0;
		sal_Bool bChecked = sal_False;
		if (getBoolAttr( &bChecked,
                         OUString( RTL_CONSTASCII_USTRINGPARAM("checked") ),
                         xAttributes,
                         _pImport->XMLNS_DIALOGS_UID ) &&
			bChecked)
		{
			nVal = 1;
		}
		xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ),
										 makeAny( nVal ) );
		
        ::std::vector< Reference< xml::input::XElement > > * radioEvents =
            static_cast< RadioElement * >( xRadio.get() )->getEvents();
		ctx.importEvents( *radioEvents );
        // avoid ring-reference:
        // vector< event elements > holding event elements holding this (via _pParent)
        radioEvents->clear();
	}
    // avoid ring-reference:
    // vector< radio elements > holding radio elements holding this (via _pParent)
    _radios.clear();
}

//##################################################################################################

// menupopup
//__________________________________________________________________________________________________
Reference< xml::input::XElement > MenuPopupElement::startChildElement(
=====================================================================
Found a 17 line (457 tokens) duplication in the following files: 
Starting at line 1324 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f00 - 2f0f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f10 - 2f1f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f20 - 2f2f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f30 - 2f3f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f40 - 2f4f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f50 - 2f5f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f60 - 2f6f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f70 - 2f7f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f80 - 2f8f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f90 - 2f9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fa0 - 2faf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fb0 - 2fbf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fc0 - 2fcf
    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2fd0 - 2fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2fe0 - 2fef
=====================================================================
Found a 102 line (457 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/Cservices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LServices.cxx

using namespace connectivity::evoab;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pT
		);

//***************************************************************************************
//
// Die vorgeschriebene C-Api muss erfuellt werden!
// Sie besteht aus drei Funktionen, die von dem Modul exportiert werden muessen.
//

//---------------------------------------------------------------------------------------
void REGISTER_PROVIDER(
		const OUString& aServiceImplName,
		const Sequence< OUString>& Services,
		const Reference< ::com::sun::star::registry::XRegistryKey > & xKey)
{
	OUString aMainKeyName;
	aMainKeyName = OUString::createFromAscii("/");
	aMainKeyName += aServiceImplName;
	aMainKeyName += OUString::createFromAscii("/UNO/SERVICES");

	Reference< ::com::sun::star::registry::XRegistryKey >  xNewKey( xKey->createKey(aMainKeyName) );
	OSL_ENSURE(xNewKey.is(), "FILE::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(...)
		{
		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
=====================================================================
Found a 102 line (457 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/Hservices.cxx

using namespace connectivity::hsqldb;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pT
		);

//***************************************************************************************
//
// Die vorgeschriebene C-Api muss erfuellt werden!
// Sie besteht aus drei Funktionen, die von dem Modul exportiert werden muessen.
//

//---------------------------------------------------------------------------------------
void REGISTER_PROVIDER(
		const OUString& aServiceImplName,
		const Sequence< OUString>& Services,
		const Reference< ::com::sun::star::registry::XRegistryKey > & xKey)
{
	OUString aMainKeyName;
	aMainKeyName = OUString::createFromAscii("/");
	aMainKeyName += aServiceImplName;
	aMainKeyName += OUString::createFromAscii("/UNO/SERVICES");

	Reference< ::com::sun::star::registry::XRegistryKey >  xNewKey( xKey->createKey(aMainKeyName) );
	OSL_ENSURE(xNewKey.is(), "ADABAS::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(...)
		{
		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
=====================================================================
Found a 74 line (456 tokens) duplication in the following files: 
Starting at line 878 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/tdmanager/testtdmanager.cxx

    return rtl::OUString::createFromAscii("test.tdmanager.impl");
}

css::uno::Sequence< rtl::OUString > Service::getSupportedServiceNames() {
    return css::uno::Sequence< rtl::OUString >();
}

css::uno::Reference< css::uno::XInterface > Service::createInstance(
    css::uno::Reference< css::uno::XComponentContext > const & context)
    throw (css::uno::Exception)
{
    return static_cast< cppu::OWeakObject * >(new Service(context));
}

extern "C" void SAL_CALL component_getImplementationEnvironment(
    char const ** envTypeName, uno_Environment **)
{
    if (envTypeName != 0) {
        *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
    }
}

extern "C" void * SAL_CALL component_getFactory(char const * implName,
                                                void * serviceManager, void *) {
    void * p = 0;
    if (serviceManager != 0) {
        css::uno::Reference< css::lang::XSingleComponentFactory > f;
        if (Service::getImplementationName().equalsAscii(implName)) {
            f = cppu::createSingleComponentFactory(
                &Service::createInstance, Service::getImplementationName(),
                Service::getSupportedServiceNames());
        }
        if (f.is()) {
            f->acquire();
            p = f.get();
        }
    }
    return p;
}

namespace {

bool writeInfo(void * registryKey, rtl::OUString const & implementationName,
               css::uno::Sequence< rtl::OUString > const & serviceNames) {
    rtl::OUString keyName(rtl::OUString::createFromAscii("/"));
    keyName += implementationName;
    keyName += rtl::OUString::createFromAscii("/UNO/SERVICES");
    css::uno::Reference< css::registry::XRegistryKey > key;
    try {
        key = static_cast< css::registry::XRegistryKey * >(registryKey)->
            createKey(keyName);
    } catch (css::registry::InvalidRegistryException &) {}
    if (!key.is()) {
        return false;
    }
    bool success = true;
    for (sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {
        try {
            key->createKey(serviceNames[i]);
        } catch (css::registry::InvalidRegistryException &) {
            success = false;
            break;
        }
    }
    return success;
}

}

extern "C" sal_Bool SAL_CALL component_writeInfo(void *, void * registryKey) {
    return registryKey
        && writeInfo(registryKey, Service::getImplementationName(),
                     Service::getSupportedServiceNames());
}
=====================================================================
Found a 65 line (455 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/tempnam.c
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/microsft/tempnam.c

static char *P_tmpdir = "";

char *
dtempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", getpid() );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;
   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 21 line (455 tokens) duplication in the following files: 
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/cx_c_std.cxx
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idl/cx_idlco.cxx

	 wht,fig,wht,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig, // 48 ...
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig, // 80 ...
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,err  // 112 ...
	};

	const INT16 A_nBezeichnerStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{fbz,err,err,err,err,err,err,err,err,fbz,fbz,fbz,fbz,fbz,err,err,
	 err,err,err,err,err,err,err,err,err,err,fbz,err,err,err,err,err, // 16 ...
	 fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,fbz,fbz, // 48 ...
	 fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,bez, // 80 ...
	 fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,err  // 112 ...
	};

	const INT16 A_nPunctDefStatus[C_nStatusSize] =
=====================================================================
Found a 84 line (452 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/spelldta.cxx
Starting at line 63 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/spelldta.cxx

using namespace utl;
using namespace osl;
using namespace rtl;
using namespace com::sun::star;
using namespace com::sun::star::beans;
using namespace com::sun::star::lang;
using namespace com::sun::star::uno;
using namespace com::sun::star::linguistic2;

namespace linguistic
{
	
///////////////////////////////////////////////////////////////////////////


#define MAX_PROPOSALS	40

Reference< XSpellAlternatives > MergeProposals(
			Reference< XSpellAlternatives > &rxAlt1,
			Reference< XSpellAlternatives > &rxAlt2)
{
	Reference< XSpellAlternatives > xMerged;

	if (!rxAlt1.is())
		xMerged = rxAlt2;
	else if (!rxAlt2.is())
		xMerged = rxAlt1;
	else
	{
		INT32 nAltCount1 = rxAlt1->getAlternativesCount();
		Sequence< OUString > aAlt1( rxAlt1->getAlternatives() );
		const OUString *pAlt1 = aAlt1.getConstArray();

		INT32 nAltCount2 = rxAlt2->getAlternativesCount();
		Sequence< OUString > aAlt2( rxAlt2->getAlternatives() );
		const OUString *pAlt2 = aAlt2.getConstArray();

		INT32 nCountNew = Min( nAltCount1 + nAltCount2, (INT32) MAX_PROPOSALS );
		Sequence< OUString > aAltNew( nCountNew );
		OUString *pAltNew = aAltNew.getArray();

		INT32 nIndex = 0;
		INT32 i = 0;
		for (int j = 0;  j < 2;  j++)
		{
			INT32 			nCount 	= j == 0 ? nAltCount1 : nAltCount2;
			const OUString  *pAlt 	= j == 0 ? pAlt1 : pAlt2;
			for (i = 0;  i < nCount  &&  nIndex < MAX_PROPOSALS;  i++)
			{
				if (pAlt[i].getLength())
					pAltNew[ nIndex++ ] = pAlt[ i ];
			}
		}
		DBG_ASSERT(nIndex == nCountNew, "lng : wrong number of proposals");

		SpellAlternatives *pSpellAlt = new SpellAlternatives;
		pSpellAlt->SetWordLanguage( rxAlt1->getWord(),
							LocaleToLanguage( rxAlt1->getLocale() ) );
		pSpellAlt->SetFailureType( rxAlt1->getFailureType() );
		pSpellAlt->SetAlternatives( aAltNew );
		xMerged = pSpellAlt;
	}

	return xMerged;
}


BOOL SeqHasEntry( 
        const Sequence< OUString > &rSeq, 
        const OUString &rTxt)
{
    BOOL bRes = FALSE;
    INT32 nLen = rSeq.getLength();
    const OUString *pEntry = rSeq.getConstArray();
    for (INT32 i = 0;  i < nLen  &&  !bRes;  ++i)
    {
        if (rTxt == pEntry[i])
            bRes = TRUE;
    }
    return bRes;
}


void SearchSimilarText( const OUString &rText, INT16 nLanguage, 
=====================================================================
Found a 76 line (451 tokens) duplication in the following files: 
Starting at line 1657 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 2104 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        == getCppuType< css::uno::Reference< Interface2a > >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
=====================================================================
Found a 83 line (450 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/localbe/localschemasupplier.cxx
Starting at line 623 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/localbe/localsinglebackend.cxx

    LocalSingleBackend::getComponentSchema(const rtl::OUString& aComponent) 
        throw (backend::BackendAccessException, lang::IllegalArgumentException,
                uno::RuntimeException)
{
    rtl::OUString subPath = componentToPath(aComponent) ;

    osl::File * schemaFile = NULL;
    OUString errorMessage;
    bool bInsufficientAccess = false;
    for (sal_Int32 ix = 0; ix < mSchemaDataUrls.getLength(); ++ix)
    {
        rtl::OUStringBuffer schemaUrl(mSchemaDataUrls[ix]) ;

        schemaUrl.append(subPath).append(kSchemaSuffix) ;

        OUString const aFileUrl = schemaUrl.makeStringAndClear();

        std::auto_ptr<osl::File> checkFile( new osl::File(aFileUrl) );
        osl::File::RC rc = checkFile->open(OpenFlag_Read) ;

        if (rc == osl::File::E_None)
        {
            schemaFile = checkFile.release();
            break;
        }
        else if (rc != osl::File::E_NOENT)
        {
            if (rc == osl::File::E_ACCES)
                bInsufficientAccess =true;

            // accumulate error messages
            rtl::OUStringBuffer sMsg(errorMessage);
            if (errorMessage.getLength())
                sMsg.appendAscii("LocalFile SchemaSupplier - Error accessing schema: ");

            sMsg.appendAscii("\n- Cannot open input file \"");
            sMsg.append(aFileUrl);
            sMsg.appendAscii("\" : ");
            sMsg.append(FileHelper::createOSLErrorString(rc));
            
            errorMessage = sMsg.makeStringAndClear();
        }
    }

    if (NULL == schemaFile)
    {
        if (errorMessage.getLength() != 0)
        {
            // a real error occured
            io::IOException ioe(errorMessage,*this);

            rtl::OUStringBuffer sMsg;
            sMsg.appendAscii("LocalFileLayer - Cannot readData: ").append(errorMessage);
        
            if (bInsufficientAccess)
                throw backend::InsufficientAccessRightsException(sMsg.makeStringAndClear(),*this,uno::makeAny(ioe));
            else
                throw backend::BackendAccessException(sMsg.makeStringAndClear(),*this,uno::makeAny(ioe));
        }
        // simply not found
        return NULL;
    }

    uno::Sequence<uno::Any> arguments(1) ;
    uno::Reference<io::XInputStream> stream( new OSLInputStreamWrapper(schemaFile, true) );

    arguments [0] <<= stream ;
    uno::Reference<backend::XSchema> schema(
            mFactory->createInstanceWithArguments(kXMLSchemaParser, arguments),
            uno::UNO_QUERY) ;

    if (!schema.is()) 
    {
        throw uno::RuntimeException(
                rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                        "Cannot instantiate Schema Parser for ")) + aComponent, 
                *this) ;
    }
    return schema ;
}
//------------------------------------------------------------------------------

static
=====================================================================
Found a 76 line (449 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1657 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        a.getValueType() == getCppuType< css::uno::Sequence< sal_Int32 > >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
=====================================================================
Found a 76 line (448 tokens) duplication in the following files: 
Starting at line 2398 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 2609 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

						  padd(ascii("fo:border"), sXML_CDATA, ascii("none"));
                    break;
                case 1:                           /* ���½Ǽ� */
                case 3:                           /* a�� -> ��Ÿ���ǽ����� a���� ���. */
                    padd(ascii("fo:border"), sXML_CDATA,ascii("0.002cm solid #000000"));
                    break;
                case 2:                           /* ��:�Ǽ� */
                    padd(ascii("fo:border"), sXML_CDATA,ascii("0.035cm solid #000000"));
                    break;
                case 4:                           /* 2�߼� */
                    padd(ascii("style:border-line-width"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm"));
                    padd(ascii("fo:border"), sXML_CDATA,ascii("0.039cm double #000000"));
                    break;
            }
        }
        else
        {
            switch( cell->linetype[0] )
            {
                case 1:                           /* ���½Ǽ� */
                case 3:                           /* a�� -> ��Ÿ���ǽ����� a���� ���. */
                    padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.002cm solid #000000"));
                    break;
                case 2:                           /* ��:�Ǽ� */
                    padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.035cm solid #000000"));
                    break;
                case 4:                           /* 2�߼� */
                    padd(ascii("style:border-line-width-left"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm"));
                    padd(ascii("fo:border-left"), sXML_CDATA,ascii("0.039cm double #000000"));
                    break;
            }
            switch( cell->linetype[1] )
            {
                case 1:                           /* ���½Ǽ� */
                case 3:                           /* a�� -> ��Ÿ���ǽ����� a���� ���. */
                    padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.002cm solid #000000"));
                    break;
                case 2:                           /* ��:�Ǽ� */
                    padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.035cm solid #000000"));
                    break;
                case 4:                           /* 2�߼� */
                    padd(ascii("style:border-line-width-right"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm"));
                    padd(ascii("fo:border-right"), sXML_CDATA,ascii("0.039cm double #000000"));
                    break;
            }
            switch( cell->linetype[2] )
            {
                case 1:                           /* ���½Ǽ� */
                case 3:                           /* a�� -> ��Ÿ���ǽ����� a���� ���. */
                    padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.002cm solid #000000"));
                    break;
                case 2:                           /* ��:�Ǽ� */
                    padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.035cm solid #000000"));
                    break;
                case 4:                           /* 2�߼� */
                    padd(ascii("style:border-line-width-top"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm"));
                    padd(ascii("fo:border-top"), sXML_CDATA,ascii("0.039cm double #000000"));
                    break;
            }
            switch( cell->linetype[3] )
            {
                case 1:                           /* ���½Ǽ� */
                case 3:                           /* a�� -> ��Ÿ���ǽ����� a���� ���. */
                    padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.002cm solid #000000"));
                    break;
                case 2:                           /* ��:�Ǽ� */
                    padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.035cm solid #000000"));
                    break;
                case 4:                           /* 2�߼� */
                    padd(ascii("style:border-line-width-bottom"), sXML_CDATA,ascii("0.002cm 0.035cm 0.002cm"));
                    padd(ascii("fo:border-bottom"), sXML_CDATA,ascii("0.039cm double #000000"));
                    break;
            }
        }

		  if( cell->linetype[0] == 0 && cell->linetype[1] == 0 &&
=====================================================================
Found a 83 line (448 tokens) duplication in the following files: 
Starting at line 507 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 959 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

OString	CunoType::getTypeClass(const OString& type, sal_Bool bCStyle)
{
	OString 	typeName = (type.getLength() > 0 ? type : m_typeName);
	RTTypeClass	rtTypeClass = RT_TYPE_INVALID;

	if (type.getLength() > 0)
	{
		typeName = type;
		rtTypeClass = m_typeMgr.getTypeClass(typeName);
	} else
	{
		typeName = m_typeName;
		rtTypeClass = m_reader.getTypeClass();
	}

	if (typeName.lastIndexOf(']') > 0)
		return bCStyle ? "typelib_TypeClass_SEQUENCE" : "::com::sun::star::uno::TypeClass_SEQUENCE";

	switch (rtTypeClass)
	{
		case RT_TYPE_INTERFACE:
			return bCStyle ? "typelib_TypeClass_INTERFACE" : "::com::sun::star::uno::TypeClass_INTERFACE";
			break;
		case RT_TYPE_MODULE:
			return bCStyle ? "typelib_TypeClass_MODULE" : "::com::sun::star::uno::TypeClass_MODULE";
			break;
		case RT_TYPE_STRUCT:
			return bCStyle ? "typelib_TypeClass_STRUCT" : "::com::sun::star::uno::TypeClass_STRUCT";
			break;
		case RT_TYPE_ENUM:
			return bCStyle ? "typelib_TypeClass_ENUM" : "::com::sun::star::uno::TypeClass_ENUM";
			break;
		case RT_TYPE_EXCEPTION:
			return bCStyle ? "typelib_TypeClass_EXCEPTION" : "::com::sun::star::uno::TypeClass_EXCEPTION";
			break;
		case RT_TYPE_TYPEDEF:
			{
				OString realType = checkRealBaseType( typeName );
				return getTypeClass( realType, bCStyle );
			}
//			return bCStyle ? "typelib_TypeClass_TYPEDEF" : "::com::sun::star::uno::TypeClass_TYPEDEF";
			break;
		case RT_TYPE_SERVICE:
			return bCStyle ? "typelib_TypeClass_SERVICE" : "::com::sun::star::uno::TypeClass_SERVICE";
			break;
		case RT_TYPE_INVALID:
			{
				if (type.equals("long"))
					return bCStyle ? "typelib_TypeClass_LONG" : "::com::sun::star::uno::TypeClass_LONG";
				if (type.equals("short"))
					return bCStyle ? "typelib_TypeClass_SHORT" : "::com::sun::star::uno::TypeClass_SHORT";
				if (type.equals("hyper"))
					return bCStyle ? "typelib_TypeClass_HYPER" : "::com::sun::star::uno::TypeClass_HYPER";
				if (type.equals("string"))
					return bCStyle ? "typelib_TypeClass_STRING" : "::com::sun::star::uno::TypeClass_STRING";
				if (type.equals("boolean"))
					return bCStyle ? "typelib_TypeClass_BOOLEAN" : "::com::sun::star::uno::TypeClass_BOOLEAN";
				if (type.equals("char"))
					return bCStyle ? "typelib_TypeClass_CHAR" : "::com::sun::star::uno::TypeClass_CHAR";
				if (type.equals("byte"))
					return bCStyle ? "typelib_TypeClass_BYTE" : "::com::sun::star::uno::TypeClass_BYTE";
				if (type.equals("any"))
					return bCStyle ? "typelib_TypeClass_ANY" : "::com::sun::star::uno::TypeClass_ANY";
				if (type.equals("type"))
					return bCStyle ? "typelib_TypeClass_TYPE" : "::com::sun::star::uno::TypeClass_TYPE";
				if (type.equals("float"))
					return bCStyle ? "typelib_TypeClass_FLOAT" : "::com::sun::star::uno::TypeClass_FLOAT";
				if (type.equals("double"))
					return bCStyle ? "typelib_TypeClass_DOUBLE" : "::com::sun::star::uno::TypeClass_DOUBLE";
				if (type.equals("void"))
					return bCStyle ? "typelib_TypeClass_VOID" : "::com::sun::star::uno::TypeClass_VOID";
				if (type.equals("unsigned long"))
					return bCStyle ? "typelib_TypeClass_UNSIGNED_LONG" : "::com::sun::star::uno::TypeClass_UNSIGNED_LONG";
				if (type.equals("unsigned short"))
					return bCStyle ? "typelib_TypeClass_UNSIGNED_SHORT" : "::com::sun::star::uno::TypeClass_UNSIGNED_SHORT";
				if (type.equals("unsigned hyper"))
					return bCStyle ? "typelib_TypeClass_UNSIGNED_HYPER" : "::com::sun::star::uno::TypeClass_UNSIGNED_HYPER";
			}
			break;
	}

	return bCStyle ? "typelib_TypeClass_UNKNOWN" : "::com::sun::star::uno::TypeClass_UNKNOWN";
}
=====================================================================
Found a 102 line (447 tokens) duplication in the following files: 
Starting at line 153 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx

BOOL Impl_OlePres::Read( SvStream & rStm )
{
	ULONG nBeginPos = rStm.Tell();
	INT32 n;
	rStm >> n;
	if( n != -1 )
	{
		pBmp = new Bitmap;
		rStm >> *pBmp;
		if( rStm.GetError() == SVSTREAM_OK )
		{
			nFormat = FORMAT_BITMAP;
			aSize = pBmp->GetPrefSize();
			MapMode aMMSrc;
			if( !aSize.Width() || !aSize.Height() )
			{
				// letzte Chance
				aSize = pBmp->GetSizePixel();
				aMMSrc = MAP_PIXEL;
			}
			else
				aMMSrc = pBmp->GetPrefMapMode();
			MapMode aMMDst( MAP_100TH_MM );
			aSize = OutputDevice::LogicToLogic( aSize, aMMSrc, aMMDst );
			return TRUE;
		}
		else
		{
			delete pBmp;
			pBmp = NULL;

			pMtf = new GDIMetaFile();
			rStm.ResetError();
			rStm >> *pMtf;
			if( rStm.GetError() == SVSTREAM_OK )
			{
				nFormat = FORMAT_GDIMETAFILE;
				aSize = pMtf->GetPrefSize();
				MapMode aMMSrc = pMtf->GetPrefMapMode();
				MapMode aMMDst( MAP_100TH_MM );
				aSize = OutputDevice::LogicToLogic( aSize, aMMSrc, aMMDst );
				return TRUE;
			}
			else
			{
				delete pMtf;
				pMtf = NULL;
			}
		}

	}

	rStm.ResetError();
	rStm.Seek( nBeginPos );
	nFormat = ReadClipboardFormat( rStm );
	// JobSetup, bzw. TargetDevice ueberlesen
	// Information aufnehmen, um sie beim Schreiben nicht zu verlieren
	nJobLen = 0;
	rStm >> nJobLen;
	if( nJobLen >= 4 )
	{
		nJobLen -= 4;
		if( nJobLen )
		{
			pJob = new BYTE[ nJobLen ];
			rStm.Read( pJob, nJobLen );
		}
	}
	else
	{
		rStm.SetError( SVSTREAM_GENERALERROR );
		return FALSE;
	}
	UINT32 nAsp;
	rStm >> nAsp;
	USHORT nSvAsp = USHORT( nAsp );
	SetAspect( nSvAsp );
	rStm.SeekRel( 4 ); //L-Index ueberlesen
	rStm >> nAdvFlags;
	rStm.SeekRel( 4 ); //Compression
	UINT32 nWidth  = 0;
	UINT32 nHeight = 0;
	UINT32 nSize   = 0;
	rStm >> nWidth >> nHeight >> nSize;
	aSize.Width() = nWidth;
	aSize.Height() = nHeight;

	if( nFormat == FORMAT_GDIMETAFILE )
	{
		pMtf = new GDIMetaFile();
		ReadWindowMetafile( rStm, *pMtf, NULL );
	}
	else if( nFormat == FORMAT_BITMAP )
	{
		pBmp = new Bitmap();
		rStm >> *pBmp;
	}
	else
	{
		BYTE * p = new BYTE[ nSize ];
		rStm.Read( p, nSize );
		delete p;
=====================================================================
Found a 11 line (447 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 415 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c30 - 2c37
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c38 - 2c3f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c40 - 2c47
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c48 - 2c4f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c50 - 2c57
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c58 - 2c5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c60 - 2c67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c68 - 2c6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c70 - 2c77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c78 - 2c7f
    {0x6a, 0x2c81}, {0x15, 0x2c80}, {0x6a, 0x2c83}, {0x15, 0x2c82}, {0x6a, 0x2c85}, {0x15, 0x2c84}, {0x6a, 0x2c87}, {0x15, 0x2c86}, // 2c80 - 2c87, Coptic
=====================================================================
Found a 109 line (446 tokens) duplication in the following files: 
Starting at line 901 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 1351 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx

								EnhancedCustomShapeSegment& rSegInfo = seqSegments2[ i ];
								sal_uInt16 nSDat = pDefCustomShape->pElements[ i ];
								switch( nSDat >> 8 )
								{
									case 0x00 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::LINETO;
										rSegInfo.Count   = nSDat & 0xff;
										if ( !rSegInfo.Count )
											rSegInfo.Count = 1;
									}
									break;
									case 0x20 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::CURVETO;
										rSegInfo.Count   = nSDat & 0xff;
										if ( !rSegInfo.Count )
											rSegInfo.Count = 1;
									}
									break;
									case 0x40 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::MOVETO;
										rSegInfo.Count   = nSDat & 0xff;
										if ( !rSegInfo.Count )
											rSegInfo.Count = 1;
									}
									break;
									case 0x60 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::CLOSESUBPATH;
										rSegInfo.Count   = 0;
									}
									break;
									case 0x80 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::ENDSUBPATH;
										rSegInfo.Count   = 0;
									}
									break;
									case 0xa1 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::ANGLEELLIPSETO;
										rSegInfo.Count   = ( nSDat & 0xff ) / 3;
									}
									break;
									case 0xa2 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::ANGLEELLIPSE;
										rSegInfo.Count   = ( nSDat & 0xff ) / 3;
									}
									break;
									case 0xa3 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::ARCTO;
										rSegInfo.Count   = ( nSDat & 0xff ) >> 2;
									}
									break;
									case 0xa4 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::ARC;
										rSegInfo.Count   = ( nSDat & 0xff ) >> 2;
									}
									break;
									case 0xa5 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::CLOCKWISEARCTO;
										rSegInfo.Count   = ( nSDat & 0xff ) >> 2;
									}
									break;
									case 0xa6 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::CLOCKWISEARC;
										rSegInfo.Count   = ( nSDat & 0xff ) >> 2;
									}
									break;
									case 0xa7 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::ELLIPTICALQUADRANTX;
										rSegInfo.Count   = nSDat & 0xff;
									}
									break;
									case 0xa8 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::ELLIPTICALQUADRANTY;
										rSegInfo.Count   = nSDat & 0xff;
									}
									break;
									case 0xaa :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::NOFILL;
										rSegInfo.Count   = 0;
									}
									break;
									case 0xab :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::NOSTROKE;
										rSegInfo.Count   = 0;
									}
									break;
									default:
									case 0xf8 :
									{
										rSegInfo.Command = EnhancedCustomShapeSegmentCommand::UNKNOWN;
										rSegInfo.Count   = nSDat;
									}
									break;
								}
							}
=====================================================================
Found a 72 line (443 tokens) duplication in the following files: 
Starting at line 5440 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5700 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    Set_UInt32( pData, lcbSttbfAssoc );
    Set_UInt32( pData, fcClx );
    Set_UInt32( pData, lcbClx );
    Set_UInt32( pData, fcPlcfpgdFtn );
    Set_UInt32( pData, lcbPlcfpgdFtn );
    Set_UInt32( pData, fcAutosaveSource );
    Set_UInt32( pData, lcbAutosaveSource );
    Set_UInt32( pData, fcGrpStAtnOwners );
    Set_UInt32( pData, lcbGrpStAtnOwners );
    Set_UInt32( pData, fcSttbfAtnbkmk );
    Set_UInt32( pData, lcbSttbfAtnbkmk );

    // weiteres short nur bei Ver67 ueberspringen
    if( !bVer8 )
    {
        pData += 1*sizeof( INT16);
        Set_UInt16( pData, (UINT16)pnChpFirst );
        Set_UInt16( pData, (UINT16)pnPapFirst );
        Set_UInt16( pData, (UINT16)cpnBteChp );
        Set_UInt16( pData, (UINT16)cpnBtePap );
    }

    Set_UInt32( pData, fcPlcfdoaMom ); // nur bei Ver67, in Ver8 unused
    Set_UInt32( pData, lcbPlcfdoaMom ); // nur bei Ver67, in Ver8 unused
    Set_UInt32( pData, fcPlcfdoaHdr ); // nur bei Ver67, in Ver8 unused
    Set_UInt32( pData, lcbPlcfdoaHdr ); // nur bei Ver67, in Ver8 unused

    Set_UInt32( pData, fcPlcfspaMom ); // in Ver67 leere Reserve
    Set_UInt32( pData, lcbPlcfspaMom ); // in Ver67 leere Reserve
    Set_UInt32( pData, fcPlcfspaHdr ); // in Ver67 leere Reserve
    Set_UInt32( pData, lcbPlcfspaHdr ); // in Ver67 leere Reserve

    Set_UInt32( pData, fcPlcfAtnbkf );
    Set_UInt32( pData, lcbPlcfAtnbkf );
    Set_UInt32( pData, fcPlcfAtnbkl );
    Set_UInt32( pData, lcbPlcfAtnbkl );
    Set_UInt32( pData, fcPms );
    Set_UInt32( pData, lcbPMS );
    Set_UInt32( pData, fcFormFldSttbf );
    Set_UInt32( pData, lcbFormFldSttbf );
    Set_UInt32( pData, fcPlcfendRef );
    Set_UInt32( pData, lcbPlcfendRef );
    Set_UInt32( pData, fcPlcfendTxt );
    Set_UInt32( pData, lcbPlcfendTxt );
    Set_UInt32( pData, fcPlcffldEdn );
    Set_UInt32( pData, lcbPlcffldEdn );
    Set_UInt32( pData, fcPlcfpgdEdn );
    Set_UInt32( pData, lcbPlcfpgdEdn );
    Set_UInt32( pData, fcDggInfo ); // in Ver67 leere Reserve
    Set_UInt32( pData, lcbDggInfo ); // in Ver67 leere Reserve
    Set_UInt32( pData, fcSttbfRMark );
    Set_UInt32( pData, lcbSttbfRMark );
    Set_UInt32( pData, fcSttbfCaption );
    Set_UInt32( pData, lcbSttbfCaption );
    Set_UInt32( pData, fcSttbAutoCaption );
    Set_UInt32( pData, lcbSttbAutoCaption );
    Set_UInt32( pData, fcPlcfwkb );
    Set_UInt32( pData, lcbPlcfwkb );
    Set_UInt32( pData, fcPlcfspl ); // in Ver67 leere Reserve
    Set_UInt32( pData, lcbPlcfspl ); // in Ver67 leere Reserve
    Set_UInt32( pData, fcPlcftxbxTxt );
    Set_UInt32( pData, lcbPlcftxbxTxt );
    Set_UInt32( pData, fcPlcffldTxbx );
    Set_UInt32( pData, lcbPlcffldTxbx );
    Set_UInt32( pData, fcPlcfHdrtxbxTxt );
    Set_UInt32( pData, lcbPlcfHdrtxbxTxt );
    Set_UInt32( pData, fcPlcffldHdrTxbx );
    Set_UInt32( pData, lcbPlcffldHdrTxbx );

    if( bVer8 )
    {
        pData += 0x2da - 0x27a;         // Pos + Offset (fcPlcfLst - fcStwUser)
=====================================================================
Found a 117 line (443 tokens) duplication in the following files: 
Starting at line 950 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1028 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        if (IsSevenMinus(GetFIBVersion()))
        {
            aShortSprm[0] = (BYTE)( ( nPrm & 0xfe) >> 1 );
            aShortSprm[1] = (BYTE)(   nPrm         >> 8 );
            p->nSprmsLen = ( nPrm ) ? 2 : 0;        // Laenge

            // store Postion of internal mini storage in Data Pointer
            p->pMemPos = aShortSprm;
        }
        else
        {
            p->pMemPos = 0;
            p->nSprmsLen = 0;
            BYTE nSprmListIdx = (BYTE)((nPrm & 0xfe) >> 1);
            if( nSprmListIdx )
            {
                // process Sprm Id Matching as explained in MS Doku
                //
                // ''Property Modifier(variant 1) (PRM)''
                // see file: s62f39.htm
                //
                // Since isprm is 7 bits, rgsprmPrm can hold 0x80 entries.
                static const USHORT aSprmId[0x80] =
                {
                    // sprmNoop, sprmNoop, sprmNoop, sprmNoop
                    0x0000,0x0000,0x0000,0x0000,
                    // sprmPIncLvl, sprmPJc, sprmPFSideBySide, sprmPFKeep
                    0x2402,0x2403,0x2404,0x2405,
                    // sprmPFKeepFollow, sprmPFPageBreakBefore, sprmPBrcl,
                    // sprmPBrcp
                    0x2406,0x2407,0x2408,0x2409,
                    // sprmPIlvl, sprmNoop, sprmPFNoLineNumb, sprmNoop
                    0x260A,0x0000,0x240C,0x0000,
                    // sprmNoop, sprmNoop, sprmNoop, sprmNoop
                    0x0000,0x0000,0x0000,0x0000,
                    // sprmNoop, sprmNoop, sprmNoop, sprmNoop
                    0x0000,0x0000,0x0000,0x0000,
                    // sprmPFInTable, sprmPFTtp, sprmNoop, sprmNoop
                    0x2416,0x2417,0x0000,0x0000,
                    // sprmNoop, sprmPPc,  sprmNoop, sprmNoop
                    0x0000,0x261B,0x0000,0x0000,
                    // sprmNoop, sprmNoop, sprmNoop, sprmNoop
                    0x0000,0x0000,0x0000,0x0000,
                    // sprmNoop, sprmPWr,  sprmNoop, sprmNoop
                    0x0000,0x2423,0x0000,0x0000,
                    // sprmNoop, sprmNoop, sprmNoop, sprmNoop
                    0x0000,0x0000,0x0000,0x0000,
                    // sprmPFNoAutoHyph, sprmNoop, sprmNoop, sprmNoop
                    0x242A,0x0000,0x0000,0x0000,
                    // sprmNoop, sprmNoop, sprmPFLocked, sprmPFWidowControl
                    0x0000,0x0000,0x2430,0x2431,
                    // sprmNoop, sprmPFKinsoku, sprmPFWordWrap,
                    // sprmPFOverflowPunct
                    0x0000,0x2433,0x2434,0x2435,
                    // sprmPFTopLinePunct, sprmPFAutoSpaceDE,
                    // sprmPFAutoSpaceDN, sprmNoop
                    0x2436,0x2437,0x2438,0x0000,
                    // sprmNoop, sprmPISnapBaseLine, sprmNoop, sprmNoop
                    0x0000,0x243B,0x000,0x0000,
                    // sprmNoop, sprmCFStrikeRM, sprmCFRMark, sprmCFFldVanish
                    0x0000,0x0800,0x0801,0x0802,
                    // sprmNoop, sprmNoop, sprmNoop, sprmCFData
                    0x0000,0x0000,0x0000,0x0806,
                    // sprmNoop, sprmNoop, sprmNoop, sprmCFOle2
                    0x0000,0x0000,0x0000,0x080A,
                    // sprmNoop, sprmCHighlight, sprmCFEmboss, sprmCSfxText
                    0x0000,0x2A0C,0x0858,0x2859,
                    // sprmNoop, sprmNoop, sprmNoop, sprmCPlain
                    0x0000,0x0000,0x0000,0x2A33,
                    // sprmNoop, sprmCFBold, sprmCFItalic, sprmCFStrike
                    0x0000,0x0835,0x0836,0x0837,
                    // sprmCFOutline, sprmCFShadow, sprmCFSmallCaps, sprmCFCaps,
                    0x0838,0x0839,0x083a,0x083b,
                    // sprmCFVanish, sprmNoop, sprmCKul, sprmNoop,
                    0x083C,0x0000,0x2A3E,0x0000,
                    // sprmNoop, sprmNoop, sprmCIco, sprmNoop,
                    0x0000,0x0000,0x2A42,0x0000,
                    // sprmCHpsInc, sprmNoop, sprmCHpsPosAdj, sprmNoop,
                    0x2A44,0x0000,0x2A46,0x0000,
                    // sprmCIss, sprmNoop, sprmNoop, sprmNoop,
                    0x2A48,0x0000,0x0000,0x0000,
                    // sprmNoop, sprmNoop, sprmNoop, sprmNoop,
                    0x0000,0x0000,0x0000,0x0000,
                    // sprmNoop, sprmNoop, sprmNoop, sprmCFDStrike,
                    0x0000,0x0000,0x0000,0x2A53,
                    // sprmCFImprint, sprmCFSpec, sprmCFObj, sprmPicBrcl,
                    0x0854,0x0855,0x0856,0x2E00,
                    // sprmPOutLvl, sprmPFBiDi, sprmNoop, sprmNoop,
                    0x2640,0x2441,0x0000,0x0000,
                    // sprmNoop, sprmNoop, sprmPPnbrRMarkNot
                    0x0000,0x0000,0x0000,0x0000
                };

                // find real Sprm Id:
                USHORT nSprmId = aSprmId[ nSprmListIdx ];

                if( nSprmId )
                {
                    // move Sprm Id and Sprm Param to internal mini storage:
                    aShortSprm[0] = (BYTE)( ( nSprmId & 0x00ff)      );
                    aShortSprm[1] = (BYTE)( ( nSprmId & 0xff00) >> 8 );
                    aShortSprm[2] = (BYTE)( nPrm >> 8 );

                    // store Sprm Length in member:
                    p->nSprmsLen = ( nPrm ) ? 3 : 0;

                    // store Postion of internal mini storage in Data Pointer
                    p->pMemPos = aShortSprm;
                }
            }
        }
    }
}

//------------------------------------------------------------------------

WW8PLCFx_PCD::WW8PLCFx_PCD(ww::WordVersion eVersion, WW8PLCFpcd* pPLCFpcd,
=====================================================================
Found a 59 line (443 tokens) duplication in the following files: 
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/animations/AnimationSchemesPane.cxx
Starting at line 616 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/animations/SlideTransitionPane.cxx

    const long nTextIndent = LogicToPixel( ::Point( RSC_SP_CHK_TEXTINDENT, 1 ), MAP_APPFONT ).getX();

	::Point aUpperLeft( nOffsetX, aPaneSize.getHeight() - nOffsetY );
    long nMaxWidth = aPaneSize.getWidth() - 2 * nOffsetX;

    // auto preview check-box
    ::Size aCtrlSize = maCB_AUTO_PREVIEW.GetSizePixel();
    aCtrlSize.setWidth( maCB_AUTO_PREVIEW.CalcMinimumSize( nMaxWidth ).getWidth());
    aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
    maCB_AUTO_PREVIEW.SetPosSizePixel( aUpperLeft, aCtrlSize );

    // fixed line above check-box
    aCtrlSize = maFL_EMPTY2.GetSizePixel();
    aCtrlSize.setWidth( nMaxWidth );
    aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
    maFL_EMPTY2.SetPosSizePixel( aUpperLeft, aCtrlSize );

    // buttons "Play" and "Slide Show"
    long nPlayButtonWidth = maPB_PLAY.CalcMinimumSize().getWidth() + 2 * nOffsetBtnX;
    long nSlideShowButtonWidth = maPB_SLIDE_SHOW.CalcMinimumSize().getWidth() + 2 * nOffsetBtnX;

    if( (nPlayButtonWidth + nSlideShowButtonWidth + nOffsetX) <= nMaxWidth )
    {
        // place buttons side by side
        aCtrlSize = maPB_PLAY.GetSizePixel();
        aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
        aCtrlSize.setWidth( nPlayButtonWidth );
        maPB_PLAY.SetPosSizePixel( aUpperLeft, aCtrlSize );

        aUpperLeft.setX( aUpperLeft.getX() + nPlayButtonWidth + nOffsetX );
        aCtrlSize.setWidth( nSlideShowButtonWidth );
        maPB_SLIDE_SHOW.SetPosSizePixel( aUpperLeft, aCtrlSize );
        aUpperLeft.setX( nOffsetX );
    }
    else
    {
        // place buttons on top of each other
        aCtrlSize = maPB_SLIDE_SHOW.GetSizePixel();
        aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
        aCtrlSize.setWidth( nSlideShowButtonWidth );
        maPB_SLIDE_SHOW.SetPosSizePixel( aUpperLeft, aCtrlSize );

        aCtrlSize = maPB_PLAY.GetSizePixel();
        aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
        aCtrlSize.setWidth( nPlayButtonWidth );
        maPB_PLAY.SetPosSizePixel( aUpperLeft, aCtrlSize );
    }

    // "Apply to All Slides" button
    aCtrlSize = maPB_APPLY_TO_ALL.GetSizePixel();
    aCtrlSize.setWidth( maPB_APPLY_TO_ALL.CalcMinimumSize( nMaxWidth ).getWidth() + 2 * nOffsetBtnX );
    aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
    maPB_APPLY_TO_ALL.SetPosSizePixel( aUpperLeft, aCtrlSize );

    // fixed line above "Apply to All Slides" button
    aCtrlSize = maFL_EMPTY1.GetSizePixel();
    aCtrlSize.setWidth( nMaxWidth );
    aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
    maFL_EMPTY1.SetPosSizePixel( aUpperLeft, aCtrlSize );
=====================================================================
Found a 57 line (443 tokens) duplication in the following files: 
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2696 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0x69, 0xdd },
{ 0x00, 0x6a, 0x4a },
{ 0x00, 0x6b, 0x4b },
{ 0x00, 0x6c, 0x4c },
{ 0x00, 0x6d, 0x4d },
{ 0x00, 0x6e, 0x4e },
{ 0x00, 0x6f, 0x4f },
{ 0x00, 0x70, 0x50 },
{ 0x00, 0x71, 0x51 },
{ 0x00, 0x72, 0x52 },
{ 0x00, 0x73, 0x53 },
{ 0x00, 0x74, 0x54 },
{ 0x00, 0x75, 0x55 },
{ 0x00, 0x76, 0x56 },
{ 0x00, 0x77, 0x57 },
{ 0x00, 0x78, 0x58 },
{ 0x00, 0x79, 0x59 },
{ 0x00, 0x7a, 0x5a },
{ 0x00, 0x7b, 0x7b },
{ 0x00, 0x7c, 0x7c },
{ 0x00, 0x7d, 0x7d },
{ 0x00, 0x7e, 0x7e },
{ 0x00, 0x7f, 0x7f },
{ 0x00, 0x80, 0x80 },
{ 0x00, 0x81, 0x81 },
{ 0x00, 0x82, 0x82 },
{ 0x00, 0x83, 0x83 },
{ 0x00, 0x84, 0x84 },
{ 0x00, 0x85, 0x85 },
{ 0x00, 0x86, 0x86 },
{ 0x00, 0x87, 0x87 },
{ 0x00, 0x88, 0x88 },
{ 0x00, 0x89, 0x89 },
{ 0x00, 0x8a, 0x8a },
{ 0x00, 0x8b, 0x8b },
{ 0x00, 0x8c, 0x8c },
{ 0x00, 0x8d, 0x8d },
{ 0x00, 0x8e, 0x8e },
{ 0x00, 0x8f, 0x8f },
{ 0x00, 0x90, 0x90 },
{ 0x00, 0x91, 0x91 },
{ 0x00, 0x92, 0x92 },
{ 0x00, 0x93, 0x93 },
{ 0x00, 0x94, 0x94 },
{ 0x00, 0x95, 0x95 },
{ 0x00, 0x96, 0x96 },
{ 0x00, 0x97, 0x97 },
{ 0x00, 0x98, 0x98 },
{ 0x00, 0x99, 0x99 },
{ 0x00, 0x9a, 0x9a },
{ 0x00, 0x9b, 0x9b },
{ 0x00, 0x9c, 0x9c },
{ 0x00, 0x9d, 0x9d },
{ 0x00, 0x9e, 0x9e },
{ 0x00, 0x9f, 0x9f },
{ 0x00, 0xa0, 0xa0 },
{ 0x00, 0xa1, 0xa1 },
=====================================================================
Found a 102 line (443 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/testcomponent.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/testcomponent.cxx

		aDllName += OUString( RTL_CONSTASCII_USTRINGPARAM(".so"));
#endif

		xReg->registerImplementation(
			OUString::createFromAscii( "com.sun.star.loader.SharedLibrary" ) ,
			aDllName,
			xSimpleReg );
	}
	catch( Exception & e )
	{
		printf( "Couldn't reach dll %s\n" , szBuf );
		exit(1);
	}


	// Instantiate test service
	sTestName = "test.";
	sTestName += argv[1];

	Reference < XInterface > xIntTest =
		xSMgr->createInstance( OStringToOUString( sTestName , RTL_TEXTENCODING_ASCII_US ) );
	Reference< XSimpleTest > xTest( xIntTest , UNO_QUERY );

	if( ! xTest.is() ) {
		printf( "Couldn't instantiate test service \n" );
		exit( 1 );
	}


	sal_Int32 nHandle = 0;
	sal_Int32 nNewHandle;
	sal_Int32 nErrorCount = 0;
	sal_Int32 nWarningCount = 0;

	// loop until all test are performed
	while( nHandle != -1 )
	{
		// Instantiate serivce
		Reference< XInterface > x =
			xSMgr->createInstance( OStringToOUString( argv[1] , RTL_TEXTENCODING_ASCII_US ) );
		if( ! x.is() )
		{
			printf( "Couldn't instantiate service !\n" );
			exit( 1 );
		}

		// do the test
		try
		{
			nNewHandle = xTest->test(
				OStringToOUString( argv[1] , RTL_TEXTENCODING_ASCII_US ) , x , nHandle );
		}
		catch( Exception & e ) {
			OString o  = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
			printf( "testcomponent : uncaught exception %s\n" , o.getStr() );
			exit(1);
		}
		catch( ... )
		{
			printf( "testcomponent : uncaught unknown exception\n"  );
			exit(1);
		}


		// print errors and warning
		Sequence<OUString> seqErrors = xTest->getErrors();
		Sequence<OUString> seqWarnings = xTest->getWarnings();
		if( seqWarnings.getLength() > nWarningCount )
		{
			printf( "Warnings during test %d!\n" , nHandle );
			for( ; nWarningCount < seqWarnings.getLength() ; nWarningCount ++ )
			{
				OString o = OUStringToOString(
					seqWarnings.getArray()[nWarningCount], RTL_TEXTENCODING_ASCII_US );
				printf( "Warning\n%s\n---------\n" , o.getStr() );
			}
		}


		if( seqErrors.getLength() > nErrorCount ) {
			printf( "Errors during test %d!\n" , nHandle );
			for( ; nErrorCount < seqErrors.getLength() ; nErrorCount ++ ) {
				OString o = OUStringToOString(
					seqErrors.getArray()[nErrorCount], RTL_TEXTENCODING_ASCII_US );
				printf( "%s\n" , o.getStr() );
			}
		}

		nHandle = nNewHandle;
	}

	if( xTest->testPassed() ) {
		printf( "Test passed !\n" );
	}
	else {
		printf( "Test failed !\n" );
	}

	Reference <XComponent >  rComp( xSMgr , UNO_QUERY );
	rComp->dispose();
	return 0;
}
=====================================================================
Found a 97 line (442 tokens) duplication in the following files: 
Starting at line 5039 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par6.cxx
Starting at line 5195 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par6.cxx

const wwSprmDispatcher *GetWW6SprmDispatcher()
{
    static SprmReadInfo aSprms[] =
    {
          {0, 0},                                    // "0" Default bzw. Error
                                                     //wird uebersprungen! ,
          {2, &SwWW8ImplReader::Read_StyleCode},     //"sprmPIstd",  pap.istd
                                                     //(style code)
          {3, 0},                                    //"sprmPIstdPermute", pap.istd
                                                     //permutation
          {4, 0},                                    //"sprmPIncLv1",
                                                     //pap.istddifference
          {5, &SwWW8ImplReader::Read_Justify},       //"sprmPJc", pap.jc
                                                     //(justification)
          {6, 0},                                    //"sprmPFSideBySide",
                                                     //pap.fSideBySide
          {7, &SwWW8ImplReader::Read_KeepLines},     //"sprmPFKeep", pap.fKeep
          {8, &SwWW8ImplReader::Read_KeepParas},     //"sprmPFKeepFollow ",
                                                     //pap.fKeepFollow
          {9, &SwWW8ImplReader::Read_BreakBefore},   //"sprmPPageBreakBefore",
                                                     //pap.fPageBreakBefore
         {10, 0},                                    //"sprmPBrcl", pap.brcl
         {11, 0},                                    //"sprmPBrcp ", pap.brcp
         {12, &SwWW8ImplReader::Read_ANLevelDesc},   //"sprmPAnld", pap.anld (ANLD
                                                     //structure)
         {13, &SwWW8ImplReader::Read_ANLevelNo},     //"sprmPNLvlAnm", pap.nLvlAnm
                                                     //nn
         {14, &SwWW8ImplReader::Read_NoLineNumb},    //"sprmPFNoLineNumb", ap.fNoLnn
         {15, &SwWW8ImplReader::Read_Tab},           //"?sprmPChgTabsPapx",
                                                     //pap.itbdMac, ...
         {16, &SwWW8ImplReader::Read_LR},            //"sprmPDxaRight", pap.dxaRight
         {17, &SwWW8ImplReader::Read_LR},            //"sprmPDxaLeft", pap.dxaLeft
         {18, 0},                                    //"sprmPNest", pap.dxaLeft
         {19, &SwWW8ImplReader::Read_LR},            //"sprmPDxaLeft1", pap.dxaLeft1
         {20, &SwWW8ImplReader::Read_LineSpace},     //"sprmPDyaLine", pap.lspd
                                                     //an LSPD
         {21, &SwWW8ImplReader::Read_UL},            //"sprmPDyaBefore",
                                                     //pap.dyaBefore
         {22, &SwWW8ImplReader::Read_UL},            //"sprmPDyaAfter", pap.dyaAfter
         {23, 0},                                    //"?sprmPChgTabs", pap.itbdMac,
                                                     //pap.rgdxaTab, ...
         {24, 0},                                    //"sprmPFInTable", pap.fInTable
         {25, &SwWW8ImplReader::Read_TabRowEnd},     //"sprmPTtp", pap.fTtp
         {26, 0},                                    //"sprmPDxaAbs", pap.dxaAbs
         {27, 0},                                    //"sprmPDyaAbs", pap.dyaAbs
         {28, 0},                                    //"sprmPDxaWidth", pap.dxaWidth
         {29, &SwWW8ImplReader::Read_ApoPPC},        //"sprmPPc", pap.pcHorz,
                                                     //pap.pcVert
         {30, 0},                                    //"sprmPBrcTop10", pap.brcTop
                                                     //BRC10
         {31, 0},                                    //"sprmPBrcLeft10",
                                                     //pap.brcLeft BRC10
         {32, 0},                                    //"sprmPBrcBottom10",
                                                     //pap.brcBottom BRC10
         {33, 0},                                    //"sprmPBrcRight10",
                                                     //pap.brcRight BRC10
         {34, 0},                                    //"sprmPBrcBetween10",
                                                     //pap.brcBetween BRC10
         {35, 0},                                    //"sprmPBrcBar10", pap.brcBar
                                                     //BRC10
         {36, 0},                                    //"sprmPFromText10",
                                                     //pap.dxaFromText dxa
         {37, 0},                                    //"sprmPWr", pap.wr wr
         {38, &SwWW8ImplReader::Read_Border},        //"sprmPBrcTop", pap.brcTop BRC
         {39, &SwWW8ImplReader::Read_Border},        //"sprmPBrcLeft",
                                                     //pap.brcLeft BRC
         {40, &SwWW8ImplReader::Read_Border},        //"sprmPBrcBottom",
                                                     //pap.brcBottom BRC
         {41, &SwWW8ImplReader::Read_Border},        //"sprmPBrcRight",
                                                     //pap.brcRight BRC
         {42, &SwWW8ImplReader::Read_Border},        //"sprmPBrcBetween",
                                                     //pap.brcBetween BRC
         {43, 0},                                    //"sprmPBrcBar", pap.brcBar
                                                     //BRC word
         {44, &SwWW8ImplReader::Read_Hyphenation},   //"sprmPFNoAutoHyph",
                                                     //pap.fNoAutoHyph
         {45, 0},                                    //"sprmPWHeightAbs",
                                                     //pap.wHeightAbs w
         {46, 0},                                    //"sprmPDcs", pap.dcs DCS
         {47, &SwWW8ImplReader::Read_Shade},         //"sprmPShd", pap.shd SHD
         {48, 0},                                    //"sprmPDyaFromText",
                                                     //pap.dyaFromText dya
         {49, 0},                                    //"sprmPDxaFromText",
                                                     //pap.dxaFromText dxa
         {50, 0},                                    //"sprmPFLocked", pap.fLocked
                                                     //0 or 1 byte
         {51, &SwWW8ImplReader::Read_WidowControl},  //"sprmPFWidowControl",
                                                     //pap.fWidowControl 0 or 1 byte
         {52, 0},                                    //"?sprmPRuler 52",
         {53, 0},                                    //"??53",
         {54, 0},                                    //"??54",
         {55, 0},                                    //"??55",
         {56, 0},                                    //"??56",
         {57, 0},                                    //"??57",
         {58, 0},                                    //"??58",
         {59, 0},                                    //"??59",
         {60, 0},                                    //"??60",
=====================================================================
Found a 117 line (441 tokens) duplication in the following files: 
Starting at line 1028 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/ScriptInfo.cxx
Starting at line 1589 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/porlay.cxx

long SwScriptInfo::Compress( sal_Int32* pKernArray, xub_StrLen nIdx, xub_StrLen nLen,
                             const USHORT nCompress, const USHORT nFontHeight,
                             Point* pPoint ) const
{
	ASSERT( nCompress, "Compression without compression?!" );
	ASSERT( nLen, "Compression without text?!" );
    USHORT nCompCount = CountCompChg();

    // In asian typography, there are full width and half width characters.
    // Full width punctuation characters can be compressed by 50 %
    // to determine this, we compare the font width with 75 % of its height
    USHORT nMinWidth = ( 3 * nFontHeight ) / 4;

    USHORT nCompIdx = HasKana( nIdx, nLen );

    if ( USHRT_MAX == nCompIdx )
        return 0;

    xub_StrLen nChg = GetCompStart( nCompIdx );
    xub_StrLen nCompLen = GetCompLen( nCompIdx );
    USHORT nI = 0;
    nLen += nIdx;

    if( nChg > nIdx )
    {
        nI = nChg - nIdx;
        nIdx = nChg;
    }
    else if( nIdx < nChg + nCompLen )
        nCompLen -= nIdx - nChg;

    if( nIdx > nLen || nCompIdx >= nCompCount )
		return 0;

    long nSub = 0;
	long nLast = nI ? pKernArray[ nI - 1 ] : 0;
	do
	{
        USHORT nType = GetCompType( nCompIdx );
#if OSL_DEBUG_LEVEL > 1
        ASSERT( nType == CompType( nIdx ), "Gimme the right type!" );
#endif
		nCompLen += nIdx;
		if( nCompLen > nLen )
			nCompLen = nLen;

        // are we allowed to compress the character?
        if ( pKernArray[ nI ] - nLast < nMinWidth )
        {
            nIdx++; nI++;
        }
        else
        {
            while( nIdx < nCompLen )
            {
                ASSERT( SwScriptInfo::NONE != nType, "None compression?!" );

                // nLast is width of current character
                nLast -= pKernArray[ nI ];

                nLast *= nCompress;
                long nMove = 0;
                if( SwScriptInfo::KANA != nType )
                {
                    nLast /= 20000;
                    if( pPoint && SwScriptInfo::SPECIAL_LEFT == nType )
                    {
                        if( nI )
                            nMove = nLast;
                        else
                        {
                            pPoint->X() += nLast;
                            nLast = 0;
                        }
                    }
                }
                else
                    nLast /= 100000;
                nSub -= nLast;
                nLast = pKernArray[ nI ];
                if( nMove )
                    pKernArray[ nI - 1 ] += nMove;
                pKernArray[ nI++ ] -= nSub;
                ++nIdx;
            }
        }

        if( nIdx < nLen )
		{
			xub_StrLen nChg;
			if( ++nCompIdx < nCompCount )
			{
                nChg = GetCompStart( nCompIdx );
				if( nChg > nLen )
					nChg = nLen;
                nCompLen = GetCompLen( nCompIdx );
			}
			else
				nChg = nLen;
			while( nIdx < nChg )
			{
				nLast = pKernArray[ nI ];
				pKernArray[ nI++ ] -= nSub;
				++nIdx;
			}
		}
		else
			break;
	} while( nIdx < nLen );
	return nSub;
}

/*************************************************************************
 *                      SwScriptInfo::KashidaJustify()
 *************************************************************************/

USHORT SwScriptInfo::KashidaJustify( sal_Int32* pKernArray, sal_Int32* pScrArray,
=====================================================================
Found a 105 line (440 tokens) duplication in the following files: 
Starting at line 436 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/tokens.c
Starting at line 427 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_tokens.c

            if( Aflag )
            {
                /* keyword __ToLatin1__ found? -> do conversion! */
                if( EBCDIC_StartTokenDetected )
                {
                    /* previous token was 'extern'? -> don't convert current token! */
                    if( EBCDIC_ExternTokenDetected )
                    {
                        EBCDIC_ExternTokenDetected = 0;
                        memcpy(wbp, p, len);
                    }
                    else
                    {
                        /* current token is keyword 'extern'? -> don't convert following token! */
                        if( (tp->wslen == 0) && (strncmp( (char*)p, "extern", len ) == 0) )
                        {
                            EBCDIC_ExternTokenDetected = 1;
                            memcpy(wbp, p, len);
                        }
                        else
                        {
                            /* token is string or char? -> process EBCDIC to ANSI conversion */
                            if ((tp->type == STRING) || (tp->type == CCON))
                                len = memcpy_EBCDIC(wbp,  p, len);
                            else
                                memcpy(wbp, p, len);
                        }
                    }
                }
                else
                    /* keyword __ToLatin1__ found? -> don't copy keyword and start conversion */
                    if( (tp->type == NAME) && (strncmp( (char*)p, "__ToLatin1__", len) == 0) )
                    {
                        EBCDIC_StartTokenDetected = 1;
                        len = 0;
                    }
                    else
                        memcpy(wbp, p, len);
            }
            else
                memcpy(wbp, p, len);

            wbp += len;
        }
        else
            *wbp++ = '\n';

        if (wbp >= &wbuf[OBS])
        {
            write(1, wbuf, OBS);
            if (wbp > &wbuf[OBS])
                memcpy(wbuf, wbuf + OBS, wbp - &wbuf[OBS]);
            wbp -= OBS;
        }
    }
    trp->tp = tp;
    if (cursource->fd == 0)
        flushout();
}

void
    flushout(void)
{
    if (wbp > wbuf)
    {
        write(1, wbuf, wbp - wbuf);
        wbp = wbuf;
    }
}

/*
 * turn a row into just a newline
 */
void
    setempty(Tokenrow * trp)
{
    trp->tp = trp->bp;
    trp->lp = trp->bp + 1;
    *trp->bp = nltoken;
}

/*
 * generate a number
 */
char *
    outnum(char *p, int n)
{
    if (n >= 10)
        p = outnum(p, n / 10);
    *p++ = (char) (n % 10 + '0');
    return p;
}

/*
 * allocate and initialize a new string from s, of length l, at offset o
 * Null terminated.
 */
uchar *
    newstring(uchar * s, int l, int o)
{
    uchar *ns = (uchar *) domalloc(l + o + 1);

    ns[l + o] = '\0';
    return (uchar *) strncpy((char *) ns + o, (char *) s, l) - o;
}
=====================================================================
Found a 60 line (440 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/microsft/tempnam.c
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/zortech/tempnam.c

const char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", _psp );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;
   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 21 line (438 tokens) duplication in the following files: 
Starting at line 3081 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 3387 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

    const int8u gse8x16_bold[] = 
    {
        16, 0, 32, 128-32,

        0x00,0x00,0x11,0x00,0x22,0x00,0x33,0x00,0x44,0x00,0x55,0x00,0x66,0x00,0x77,0x00,0x88,0x00,
        0x99,0x00,0xaa,0x00,0xbb,0x00,0xcc,0x00,0xdd,0x00,0xee,0x00,0xff,0x00,0x10,0x01,0x21,0x01,
        0x32,0x01,0x43,0x01,0x54,0x01,0x65,0x01,0x76,0x01,0x87,0x01,0x98,0x01,0xa9,0x01,0xba,0x01,
        0xcb,0x01,0xdc,0x01,0xed,0x01,0xfe,0x01,0x0f,0x02,0x20,0x02,0x31,0x02,0x42,0x02,0x53,0x02,
        0x64,0x02,0x75,0x02,0x86,0x02,0x97,0x02,0xa8,0x02,0xb9,0x02,0xca,0x02,0xdb,0x02,0xec,0x02,
        0xfd,0x02,0x0e,0x03,0x1f,0x03,0x30,0x03,0x41,0x03,0x52,0x03,0x63,0x03,0x74,0x03,0x85,0x03,
        0x96,0x03,0xa7,0x03,0xb8,0x03,0xc9,0x03,0xda,0x03,0xeb,0x03,0xfc,0x03,0x0d,0x04,0x1e,0x04,
        0x2f,0x04,0x40,0x04,0x51,0x04,0x62,0x04,0x73,0x04,0x84,0x04,0x95,0x04,0xa6,0x04,0xb7,0x04,
        0xc8,0x04,0xd9,0x04,0xea,0x04,0xfb,0x04,0x0c,0x05,0x1d,0x05,0x2e,0x05,0x3f,0x05,0x50,0x05,
        0x61,0x05,0x72,0x05,0x83,0x05,0x94,0x05,0xa5,0x05,0xb6,0x05,0xc7,0x05,0xd8,0x05,0xe9,0x05,
        0xfa,0x05,0x0b,0x06,0x1c,0x06,0x2d,0x06,0x3e,0x06,0x4f,0x06,

        8, // 0x20 ' '
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

        8, // 0x21 '!'
        0x00,0x00,0x18,0x3c,0x3c,0x3c,0x3c,0x18,0x18,0x00,0x18,0x18,0x00,0x00,0x00,0x00,
=====================================================================
Found a 21 line (436 tokens) duplication in the following files: 
Starting at line 2469 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 2775 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

    const int8u gse7x15_bold[] = 
    {
        15, 0, 32, 128-32,

        0x00,0x00,0x10,0x00,0x20,0x00,0x30,0x00,0x40,0x00,0x50,0x00,0x60,0x00,0x70,0x00,0x80,0x00,
        0x90,0x00,0xa0,0x00,0xb0,0x00,0xc0,0x00,0xd0,0x00,0xe0,0x00,0xf0,0x00,0x00,0x01,0x10,0x01,
        0x20,0x01,0x30,0x01,0x40,0x01,0x50,0x01,0x60,0x01,0x70,0x01,0x80,0x01,0x90,0x01,0xa0,0x01,
        0xb0,0x01,0xc0,0x01,0xd0,0x01,0xe0,0x01,0xf0,0x01,0x00,0x02,0x10,0x02,0x20,0x02,0x30,0x02,
        0x40,0x02,0x50,0x02,0x60,0x02,0x70,0x02,0x80,0x02,0x90,0x02,0xa0,0x02,0xb0,0x02,0xc0,0x02,
        0xd0,0x02,0xe0,0x02,0xf0,0x02,0x00,0x03,0x10,0x03,0x20,0x03,0x30,0x03,0x40,0x03,0x50,0x03,
        0x60,0x03,0x70,0x03,0x80,0x03,0x90,0x03,0xa0,0x03,0xb0,0x03,0xc0,0x03,0xd0,0x03,0xe0,0x03,
        0xf0,0x03,0x00,0x04,0x10,0x04,0x20,0x04,0x30,0x04,0x40,0x04,0x50,0x04,0x60,0x04,0x70,0x04,
        0x80,0x04,0x90,0x04,0xa0,0x04,0xb0,0x04,0xc0,0x04,0xd0,0x04,0xe0,0x04,0xf0,0x04,0x00,0x05,
        0x10,0x05,0x20,0x05,0x30,0x05,0x40,0x05,0x50,0x05,0x60,0x05,0x70,0x05,0x80,0x05,0x90,0x05,
        0xa0,0x05,0xb0,0x05,0xc0,0x05,0xd0,0x05,0xe0,0x05,0xf0,0x05,

        7, // 0x20 ' '
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

        7, // 0x21 '!'
        0x00,0x00,0x00,0x30,0x78,0x78,0x78,0x30,0x30,0x00,0x30,0x30,0x00,0x00,0x00,
=====================================================================
Found a 69 line (436 tokens) duplication in the following files: 
Starting at line 647 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 713 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx

				COUT << "SetMode, insert a Number" << endl;
				cin.getline(buf,sizeof buf);
				bInserted = true;
			}

			else if ((buf[0] == 'p' || buf[0] == 'P') && (0 == buf[1]))
			{
				Reference< XChild > xChild(xIface, UNO_QUERY);
				if (xChild.is())
					xNext = xChild->getParent();
				bHandled = true;
			}

			if (bHandled == false)
			{
				Reference< XNameAccess > xAccess(xIface, UNO_QUERY);
				Reference< XHierarchicalNameAccess > xDeepAccess(xIface, UNO_QUERY);
				Reference< XExactName > xExactName(xIface, UNO_QUERY);

				if (xAccess.is() || xDeepAccess.is())
				{
					OUString aName;
					OUString aInput = OUString::createFromAscii(buf);

					if (xExactName.is())
					{
						::rtl::OUString sTemp = xExactName->getExactName(aInput);
						if (sTemp.getLength())
							aInput = sTemp;
					}

					if (xAccess.is() && xAccess->hasByName(aInput))
					{
						aName = aInput;
					}
					else if (xDeepAccess.is() && xDeepAccess->hasByHierarchicalName(aInput))
					{
						aName = aInput;
					}
					else if ('0' <= buf[0] && buf[0] <= '9' && xAccess.is())
					{
						unsigned int n = unsigned(atoi(buf));
						Sequence<OUString> aNames = xAccess->getElementNames();
						if (n < aNames.getLength())
							aName = aNames[n];
					}

					if (aName.getLength())
					{ 
						bool bNest = aInput.indexOf(sal_Unicode('/')) >= 0;

						Any aElement = bNest	? ( xDeepAccess.is() ? xDeepAccess->getByHierarchicalName(aName) : Any()) 
												: ( xAccess.    is() ? xAccess->    getByName(aName)             : Any() );

						while (aElement.getValueTypeClass() == TypeClass_ANY)
						{
							Any aWrap(aElement);
							aWrap >>= aElement;
						}
						sal_Bool bValue = true;
						sal_Bool bValueOk = false;

						switch (aElement.getValueTypeClass() )
						{
						case TypeClass_INTERFACE: bValue = false; break;
						case TypeClass_BOOLEAN:
							{
								sal_Bool* pVal = (sal_Bool*)aElement.getValue();
								bValueOk = (pVal != 0);
=====================================================================
Found a 94 line (433 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpptest/cpptest.cpp
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpptest/cpptest.cxx

CComModule _Module;
#include<atlcom.h>
#include<atlimpl.cpp>

//CComModule _Module;
BEGIN_OBJECT_MAP(ObjectMap)
END_OBJECT_MAP()


HRESULT doTest();

int main(int argc, char* argv[])
{
	HRESULT hr;
	if( FAILED( hr=CoInitialize(NULL)))
	{
		_tprintf(_T("CoInitialize failed \n"));
		return -1;
	}

	
	_Module.Init( ObjectMap, GetModuleHandle( NULL));

	if( FAILED(hr=doTest()))
	{
		_com_error err( hr);
		const TCHAR * errMsg= err.ErrorMessage();
		MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
	}


	_Module.Term();
	CoUninitialize();
	return 0;
}

HRESULT doTest()
{
	HRESULT hr;
	CComPtr<IUnknown> spUnkMgr;


	if( FAILED(hr= spUnkMgr.CoCreateInstance(L"com.sun.star.ServiceManager")))
		return hr;

	IDispatchPtr starManager;
    //    var starManager=new ActiveXObject("com.sun.star.ServiceManager");
	hr= starManager.CreateInstance(_T("com.sun.star.ServiceManager"));
    //    var starDesktop=starManager.createInstance("com.sun.star.frame.Desktop");
	_variant_t varP1(L"com.sun.star.frame.Desktop");
	_variant_t varRet;
	CComDispatchDriver dispMgr(starManager);
	hr=	dispMgr.Invoke1(L"createInstance", &varP1, &varRet);
	CComDispatchDriver dispDesk(varRet.pdispVal);
	varP1.Clear();
	varRet.Clear();
	//    var bOK=new Boolean(true);

    //    var noArgs=new Array();
    //    var oDoc=starDesktop.loadComponentFromURL("private:factory/swriter", "Test", 40, noArgs);
	IDispatchPtr oDoc;
	SAFEARRAY* ar= SafeArrayCreateVector(VT_DISPATCH, 0, 0);
	_variant_t args[4];
	args[3]= _variant_t(L"private:factory/swriter");
	args[2]= _variant_t(L"Test");
	args[1]= _variant_t((long) 40);
	args[0].vt= VT_ARRAY | VT_DISPATCH;;
	args[0].parray= ar;
	hr= dispDesk.InvokeN(L"loadComponentFromURL", args, 4, &varRet);
	CComDispatchDriver dispDoc(varRet.pdispVal);
	varRet.Clear();

    //var oFieldMaster = oDoc.createInstance("com.sun.star.text.FieldMaster.Database");
	varP1= _variant_t(L"com.sun.star.text.FieldMaster.Database");
	hr= dispDoc.Invoke1(L"createInstance", &varP1, &varRet);
	CComDispatchDriver dispFieldMaster(varRet.pdispVal);
	varP1.Clear();
	varRet.Clear();

    //var oObj = oDoc.createInstance("com.sun.star.text.TextField.Database");
	varP1= _variant_t(L"com.sun.star.text.TextField.Database");
	hr= dispDoc.Invoke1(L"createInstance", &varP1, &varRet);
	CComDispatchDriver dispField(varRet.pdispVal);
	varP1.Clear();
	varRet.Clear();

    //oObj.attachTextFieldMaster(oFieldMaster);
	varP1= _variant_t(dispFieldMaster);
	hr= dispField.Invoke1(L"attachTextFieldMaster", &varP1);


	return S_OK;
	
}
=====================================================================
Found a 86 line (432 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/spelldta.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/spelldta.cxx

}


void SeqRemoveNegEntries( Sequence< OUString > &rSeq, 
        Reference< XDictionaryList > &rxDicList, 
        INT16 nLanguage )
{
    static const OUString aEmpty;
    BOOL bSthRemoved = FALSE;
    INT32 nLen = rSeq.getLength();
    OUString *pEntries = rSeq.getArray();
    for (INT32 i = 0;  i < nLen;  ++i)
    {
        Reference< XDictionaryEntry > xNegEntry( SearchDicList( rxDicList, 
                    pEntries[i], nLanguage, FALSE, TRUE ) );
        if (xNegEntry.is())
        {
            pEntries[i] = aEmpty;
            bSthRemoved = TRUE;
        }
    }
    if (bSthRemoved)
    {
        Sequence< OUString > aNew;
        // merge sequence without duplicates and empty strings in new empty sequence
        aNew = MergeProposalSeqs( aNew, rSeq, FALSE );
        rSeq = aNew;
    }
}


Sequence< OUString > MergeProposalSeqs(
            Sequence< OUString > &rAlt1,
            Sequence< OUString > &rAlt2,
            BOOL bAllowDuplicates )
{
    Sequence< OUString > aMerged;

    if (0 == rAlt1.getLength() && bAllowDuplicates)
        aMerged = rAlt2;
    else if (0 == rAlt2.getLength() && bAllowDuplicates)
        aMerged = rAlt1;
    else
    {
        INT32 nAltCount1 = rAlt1.getLength();
        const OUString *pAlt1 = rAlt1.getConstArray();
        INT32 nAltCount2 = rAlt2.getLength();
        const OUString *pAlt2 = rAlt2.getConstArray();

        INT32 nCountNew = Min( nAltCount1 + nAltCount2, (INT32) MAX_PROPOSALS );
        aMerged.realloc( nCountNew );
        OUString *pMerged = aMerged.getArray();

        INT32 nIndex = 0;
        INT32 i = 0;
        for (int j = 0;  j < 2;  j++)
        {
            INT32           nCount  = j == 0 ? nAltCount1 : nAltCount2;
            const OUString  *pAlt   = j == 0 ? pAlt1 : pAlt2;
            for (i = 0;  i < nCount  &&  nIndex < MAX_PROPOSALS;  i++)
            {
                if (pAlt[i].getLength() && 
                    (bAllowDuplicates || !SeqHasEntry(aMerged, pAlt[i] )))
                    pMerged[ nIndex++ ] = pAlt[ i ];
            }
        }
        //DBG_ASSERT(nIndex == nCountNew, "wrong number of proposals");
        aMerged.realloc( nIndex );
    }

    return aMerged;
}

///////////////////////////////////////////////////////////////////////////


SpellAlternatives::SpellAlternatives()
{
	nLanguage	= LANGUAGE_NONE;
	nType 		= SpellFailure::IS_NEGATIVE_WORD;
}


SpellAlternatives::SpellAlternatives( 
			const OUString &rWord, INT16 nLang,
			INT16 nFailureType, const OUString &rRplcWord ) :
=====================================================================
Found a 15 line (431 tokens) duplication in the following files: 
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 794 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fb0 - 9fbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fc0 - 9fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fd0 - 9fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fe0 - 9fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9ff0 - 9fff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// a400 - a40f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// a410 - a41f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// a420 - a42f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// a430 - a43f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// a440 - a44f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// a450 - a45f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// a460 - a46f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// a470 - a47f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0,// a480 - a48f
=====================================================================
Found a 99 line (431 tokens) duplication in the following files: 
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LFolderList.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

						sal_Unicode c = aValue.GetChar(static_cast<sal_uInt16>(j));
						// nur Ziffern und Dezimalpunkt und Tausender-Trennzeichen?
						if (c == cThousandDelimiter && j)
							continue;
						else
						{
							bNumeric = FALSE;
							break;
						}
					}
				}

                // jetzt koennte es noch ein Datumsfeld sein
				if (!bNumeric)
				{
					try
					{
						nIndex = m_xNumberFormatter->detectNumberFormat(::com::sun::star::util::NumberFormat::ALL,aField2);
					}
					catch(Exception&)
					{
					}
				}
			}
		}

		sal_Int32 nFlags = 0;
		if (bNumeric)
		{
			if (cDecimalDelimiter)
			{
				if(nPrecision)
				{
					eType = DataType::DECIMAL;
					aTypeName = ::rtl::OUString::createFromAscii("DECIMAL");
				}
				else
				{
					eType = DataType::DOUBLE;
					aTypeName = ::rtl::OUString::createFromAscii("DOUBLE");
				}
			}
			else
				eType = DataType::INTEGER;
			nFlags = ColumnSearch::BASIC;
		}
		else
		{

			switch (comphelper::getNumberFormatType(m_xNumberFormatter,nIndex))
			{
				case NUMBERFORMAT_DATE:
					eType = DataType::DATE;
					aTypeName = ::rtl::OUString::createFromAscii("DATE");
					break;
				case NUMBERFORMAT_DATETIME:
					eType = DataType::TIMESTAMP;
					aTypeName = ::rtl::OUString::createFromAscii("TIMESTAMP");
					break;
				case NUMBERFORMAT_TIME:
					eType = DataType::TIME;
					aTypeName = ::rtl::OUString::createFromAscii("TIME");
					break;
				default:
					eType = DataType::VARCHAR;
					nPrecision = 0;	// nyi: Daten koennen aber laenger sein!
					nScale = 0;
					aTypeName = ::rtl::OUString::createFromAscii("VARCHAR");
			};
			nFlags |= ColumnSearch::CHAR;
		}

		// check if the columname already exists
		String aAlias(aColumnName);
		OSQLColumns::const_iterator aFind = connectivity::find(m_aColumns->begin(),m_aColumns->end(),aAlias,aCase);
		sal_Int32 nExprCnt = 0;
		while(aFind != m_aColumns->end())
		{
			(aAlias = aColumnName) += String::CreateFromInt32(++nExprCnt);
			aFind = connectivity::find(m_aColumns->begin(),m_aColumns->end(),aAlias,aCase);
		}

		sdbcx::OColumn* pColumn = new sdbcx::OColumn(aAlias,aTypeName,::rtl::OUString(),
												ColumnValue::NULLABLE,
												nPrecision,
												nScale,
												eType,
												sal_False,
												sal_False,
												sal_False,
												bCase);
		Reference< XPropertySet> xCol = pColumn;
		m_aColumns->push_back(xCol);
		m_aTypes.push_back(eType);
		m_aPrecisions.push_back(nPrecision);
		m_aScales.push_back(nScale);
	}
	m_pFileStream->Seek(STREAM_SEEK_TO_BEGIN);
}
=====================================================================
Found a 81 line (430 tokens) duplication in the following files: 
Starting at line 4189 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 4397 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    pSubdocs = pBase->pSubdocs;

    switch( nType )                 // Feld-Initialisierung
    {
        case MAN_HDFT:
            pFld->pPLCFx = pBase->pFldHdFtPLCF;
            nCpO = pWwFib->ccpText + pWwFib->ccpFtn;
            pFdoa = pBase->pHdFtFdoa;
            pTxbx = pBase->pHdFtTxbx;
            pTxbxBkd = pBase->pHdFtTxbxBkd;
            break;
        case MAN_FTN:
            pFld->pPLCFx = pBase->pFldFtnPLCF;
            nCpO = pWwFib->ccpText;
            pFdoa = pTxbx = pTxbxBkd = 0;
            break;
        case MAN_EDN:
            pFld->pPLCFx = pBase->pFldEdnPLCF;
            nCpO = pWwFib->ccpText + pWwFib->ccpFtn + pWwFib->ccpHdr +
                pWwFib->ccpAtn;
            pFdoa = pTxbx = pTxbxBkd = 0;
            break;
        case MAN_AND:
            pFld->pPLCFx = pBase->pFldAndPLCF;
            nCpO = pWwFib->ccpText + pWwFib->ccpFtn + pWwFib->ccpHdr;
            pFdoa = pTxbx = pTxbxBkd = 0;
            break;
        case MAN_TXBX:
            pFld->pPLCFx = pBase->pFldTxbxPLCF;
            nCpO = pWwFib->ccpText + pWwFib->ccpFtn + pWwFib->ccpHdr +
                pWwFib->ccpMcr + pWwFib->ccpAtn + pWwFib->ccpEdn;
            pTxbx = pBase->pMainTxbx;
            pTxbxBkd = pBase->pMainTxbxBkd;
            pFdoa = 0;
            break;
        case MAN_TXBX_HDFT:
            pFld->pPLCFx = pBase->pFldTxbxHdFtPLCF;
            nCpO = pWwFib->ccpText + pWwFib->ccpFtn + pWwFib->ccpHdr +
                pWwFib->ccpMcr + pWwFib->ccpAtn + pWwFib->ccpEdn +
                pWwFib->ccpTxbx;
            pTxbx = pBase->pHdFtTxbx;
            pTxbxBkd = pBase->pHdFtTxbxBkd;
            pFdoa = 0;
            break;
        default:
            pFld->pPLCFx = pBase->pFldPLCF;
            nCpO = 0;
            pFdoa = pBase->pMainFdoa;
            pTxbx = pBase->pMainTxbx;
            pTxbxBkd = pBase->pMainTxbxBkd;
            break;
    }

    if( nStartCp || nCpO )
        SeekPos( nStartCp );    // PLCFe auf Text-StartPos einstellen

    // initialisieren der Member-Vars Low-Level
    GetChpPLCF()->ResetAttrStartEnd();
    GetPapPLCF()->ResetAttrStartEnd();
    for( i=0; i < nPLCF; i++)
    {
        register WW8PLCFxDesc* p = &aD[i];

        /*
        ##516##,##517##
        For subdocuments we modify the cp of properties to be relative to
        the beginning of subdocuments, we should also do the same for
        piecetable changes, and piecetable properties, otherwise a piece
        change that happens in a subdocument is lost.
        */
        p->nCpOfs = ( p == pChp || p == pPap || p == pBkm || p == pPcd ||
            p == pPcdA ) ? nCpO : 0;

        p->nCp2OrIdx = 0;
        p->bFirstSprm = false;
        p->pIdStk = 0;

        if ((p == pChp) || (p == pPap))
            p->nStartPos = p->nEndPos = nStartCp;
        else
            p->nStartPos = p->nEndPos = WW8_CP_MAX;
=====================================================================
Found a 17 line (429 tokens) duplication in the following files: 
Starting at line 111 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/breakiterator/breakiterator_hi.cxx
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/inputchecker/inputsequencechecker_hi.cxx

static const sal_uInt16 dev_cell_check[14][14] = {
  /*        ND, UP, NP, IV, CN, CK, RC, NM, RM, IM, HL, NK, VD, HD, */
  /* 0  */ { 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }, /* ND */
  /* 1  */ { 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }, /* UP */
  /* 2  */ { 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }, /* NP */
  /* 3  */ { 0,  1,  1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }, /* IV */
  /* 4  */ { 0,  1,  1,  0,  0,  0,  0,  1,  1,  1,  1,  0,  0,  0 }, /* CN */
  /* 5  */ { 0,  1,  1,  0,  0,  0,  0,  1,  1,  1,  1,  1,  0,  0 }, /* CK */
  /* 6  */ { 0,  1,  1,  0,  0,  0,  0,  1,  1,  1,  1,  0,  0,  0 }, /* RC */
  /* 7  */ { 0,  1,  1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }, /* NM */
  /* 8  */ { 0,  1,  1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }, /* RM */
  /* 9  */ { 0,  1,  1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }, /* IM */
  /* 10 */ { 0,  0,  0,  0,  1,  1,  1,  0,  0,  0,  0,  0,  0,  0 }, /* HL */
  /* 11 */ { 0,  1,  1,  0,  0,  0,  0,  1,  1,  1,  1,  0,  0,  0 }, /* NK */
  /* 12 */ { 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }, /* VD */
  /* 13 */ { 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0 }  /* HD */
};
=====================================================================
Found a 72 line (428 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

}

inline int PtTo10Mu( int nPoints ) { return (int)((((double)nPoints)*35.27777778)+0.5); }

inline int TenMuToPt( int nUnits ) { return (int)((((double)nUnits)/35.27777778)+0.5); }

static struct
{
	int			width;
	int			height;
	const char*	name;
	int			namelength;
	Paper		paper;
} aPaperTab[] =
{
	{ 29700, 42000,	"A3",			2,	PAPER_A3		},
	{ 21000, 29700,	"A4",			2,	PAPER_A4		},
	{ 14800, 21000,	"A5",			2,	PAPER_A5		},
	{ 25000, 35300,	"B4",			2,	PAPER_B4		},
	{ 17600, 25000,	"B5",			2,	PAPER_B5		},
	{ 21600, 27900,	"Letter",		6,	PAPER_LETTER	},
	{ 21600, 35600,	"Legal",		5,	PAPER_LEGAL		},
	{ 27900, 43100,	"Tabloid",		7,	PAPER_TABLOID	},
	{ 0, 0,	  		"USER",			4,	PAPER_USER		}
};

static Paper getPaperType( const String& rPaperName )
{
	ByteString aPaper( rPaperName, RTL_TEXTENCODING_ISO_8859_1 );
	for( unsigned int i = 0; i < sizeof( aPaperTab )/sizeof( aPaperTab[0] ); i++ )
	{
		if( ! strcmp( aPaper.GetBuffer(), aPaperTab[i].name ) )
			return aPaperTab[i].paper;
	}
	return PAPER_USER;
}

static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData )
{
	pJobSetup->meOrientation	= (Orientation)(rData.m_eOrientation == orientation::Landscape ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT);

	// copy page size
	String aPaper;
	int width, height;

	rData.m_aContext.getPageSize( aPaper, width, height );
	pJobSetup->mePaperFormat	= getPaperType( aPaper );
	pJobSetup->mnPaperWidth		= 0;
	pJobSetup->mnPaperHeight	= 0;
	if( pJobSetup->mePaperFormat == PAPER_USER )
	{
		// transform to 100dth mm
		width				= PtTo10Mu( width );
		height				= PtTo10Mu( height );

        if( rData.m_eOrientation == psp::orientation::Portrait )
        {
            pJobSetup->mnPaperWidth	= width;
            pJobSetup->mnPaperHeight= height;
        }
        else
        {
            pJobSetup->mnPaperWidth	= height;
            pJobSetup->mnPaperHeight= width;
        }
	}

	// copy input slot
	const PPDKey* pKey = NULL;
	const PPDValue* pValue = NULL;

    pJobSetup->mnPaperBin = 0;
=====================================================================
Found a 21 line (426 tokens) duplication in the following files: 
Starting at line 1857 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 2163 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

    const int8u gse7x11_bold[] = 
    {
        11, 0, 32, 128-32,

        0x00,0x00,0x0c,0x00,0x18,0x00,0x24,0x00,0x30,0x00,0x3c,0x00,0x48,0x00,0x54,0x00,0x60,0x00,
        0x6c,0x00,0x78,0x00,0x84,0x00,0x90,0x00,0x9c,0x00,0xa8,0x00,0xb4,0x00,0xc0,0x00,0xcc,0x00,
        0xd8,0x00,0xe4,0x00,0xf0,0x00,0xfc,0x00,0x08,0x01,0x14,0x01,0x20,0x01,0x2c,0x01,0x38,0x01,
        0x44,0x01,0x50,0x01,0x5c,0x01,0x68,0x01,0x74,0x01,0x80,0x01,0x8c,0x01,0x98,0x01,0xa4,0x01,
        0xb0,0x01,0xbc,0x01,0xc8,0x01,0xd4,0x01,0xe0,0x01,0xec,0x01,0xf8,0x01,0x04,0x02,0x10,0x02,
        0x1c,0x02,0x28,0x02,0x34,0x02,0x40,0x02,0x4c,0x02,0x58,0x02,0x64,0x02,0x70,0x02,0x7c,0x02,
        0x88,0x02,0x94,0x02,0xa0,0x02,0xac,0x02,0xb8,0x02,0xc4,0x02,0xd0,0x02,0xdc,0x02,0xe8,0x02,
        0xf4,0x02,0x00,0x03,0x0c,0x03,0x18,0x03,0x24,0x03,0x30,0x03,0x3c,0x03,0x48,0x03,0x54,0x03,
        0x60,0x03,0x6c,0x03,0x78,0x03,0x84,0x03,0x90,0x03,0x9c,0x03,0xa8,0x03,0xb4,0x03,0xc0,0x03,
        0xcc,0x03,0xd8,0x03,0xe4,0x03,0xf0,0x03,0xfc,0x03,0x08,0x04,0x14,0x04,0x20,0x04,0x2c,0x04,
        0x38,0x04,0x44,0x04,0x50,0x04,0x5c,0x04,0x68,0x04,0x74,0x04,

        7, // 0x20 ' '
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

        7, // 0x21 '!'
        0x00,0x30,0x30,0x30,0x30,0x30,0x00,0x30,0x30,0x00,0x00,
=====================================================================
Found a 49 line (426 tokens) duplication in the following files: 
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 351 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 466 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

				(::_tcslen(CXMergeFilter::m_pszPXLImportShortDesc) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

	// Create the DefaultIcon key.  For the moment, use one of the Async supplied ones
	lRet = ::RegCreateKeyEx(hKey, _T("DefaultIcon"), 0, _T(""), 0, KEY_ALL_ACCESS, NULL, &hDataKey, NULL);
	if (lRet != ERROR_SUCCESS)
		return _signalRegError(lRet, hKey, hDataKey);

	lRet = ::RegSetValueEx(hDataKey, NULL, 0, REG_SZ, (LPBYTE)_T("C:\\Program Files\\Microsoft ActiveSync\\pwdcnv.dll,0"),
							(::_tcslen(_T("C:\\Program Files\\Microsoft ActiveSync\\pwdcnv.dll,0")) 
							   * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS)
		return _signalRegError(lRet, hKey, hDataKey);
	::RegCloseKey(hDataKey);  hDataKey = NULL;

	
	// Create the InprocServer32 key
	lRet = ::RegCreateKeyEx(hKey, _T("InProcServer32"), 0, _T(""), 0, KEY_ALL_ACCESS, NULL, &hDataKey, NULL);
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

	lRet = ::RegSetValueEx(hDataKey, _T("ThreadingModel"), 0, REG_SZ, (LPBYTE)_T("Apartment"), 10);
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	// Create the key for the DLL file.  First find the filename of the dll
	if (!::GetModuleFileName((HMODULE)_Module.m_hInst, sTemp, (_MAX_PATH + 1)))
	{
		lRet = ::GetLastError();
		if (lRet != ERROR_SUCCESS) 
			return _signalRegError(lRet, hKey, hDataKey);	
	}
	
	
	lRet = ::RegSetValueEx(hDataKey, NULL, 0, REG_SZ, (LPBYTE)sTemp, 
				(::_tcslen(sTemp) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);
	::RegCloseKey(hDataKey);	hDataKey = NULL;


	// Setup the PegasusFilter key values
	lRet = ::RegCreateKeyEx(hKey, _T("PegasusFilter"), 0, _T(""), 0, KEY_ALL_ACCESS, NULL, &hDataKey, NULL);
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

		lRet = ::RegSetValueEx(hDataKey, _T("Description"), 0, REG_SZ, (LPBYTE)CXMergeFilter::m_pszPXLImportDesc,
=====================================================================
Found a 32 line (426 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/gnu/public.h

void Print_cmnd ANSI((char *, int, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
int main ANSI((int, char **));
=====================================================================
Found a 35 line (425 tokens) duplication in the following files: 
Starting at line 431 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/autoform.cxx
Starting at line 480 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/tblafmt.cxx

{
    SvxOrientationItem aOrientation( aRotateAngle.GetValue(), aStacked.GetValue(), 0 );

	aFont.Store( rStream, aFont.GetVersion(SOFFICE_FILEFORMAT_40)  );
	aHeight.Store( rStream, aHeight.GetVersion(SOFFICE_FILEFORMAT_40) );
	aWeight.Store( rStream, aWeight.GetVersion(SOFFICE_FILEFORMAT_40) );
	aPosture.Store( rStream, aPosture.GetVersion(SOFFICE_FILEFORMAT_40) );
    aCJKFont.Store( rStream, aCJKFont.GetVersion(SOFFICE_FILEFORMAT_40)  );
    aCJKHeight.Store( rStream, aCJKHeight.GetVersion(SOFFICE_FILEFORMAT_40) );
    aCJKWeight.Store( rStream, aCJKWeight.GetVersion(SOFFICE_FILEFORMAT_40) );
    aCJKPosture.Store( rStream, aCJKPosture.GetVersion(SOFFICE_FILEFORMAT_40) );
    aCTLFont.Store( rStream, aCTLFont.GetVersion(SOFFICE_FILEFORMAT_40)  );
    aCTLHeight.Store( rStream, aCTLHeight.GetVersion(SOFFICE_FILEFORMAT_40) );
    aCTLWeight.Store( rStream, aCTLWeight.GetVersion(SOFFICE_FILEFORMAT_40) );
    aCTLPosture.Store( rStream, aCTLPosture.GetVersion(SOFFICE_FILEFORMAT_40) );
	aUnderline.Store( rStream, aUnderline.GetVersion(SOFFICE_FILEFORMAT_40) );
	aCrossedOut.Store( rStream, aCrossedOut.GetVersion(SOFFICE_FILEFORMAT_40) );
	aContour.Store( rStream, aContour.GetVersion(SOFFICE_FILEFORMAT_40) );
	aShadowed.Store( rStream, aShadowed.GetVersion(SOFFICE_FILEFORMAT_40) );
	aColor.Store( rStream, aColor.GetVersion(SOFFICE_FILEFORMAT_40) );
	aBox.Store( rStream, aBox.GetVersion(SOFFICE_FILEFORMAT_40) );
    aTLBR.Store( rStream, aTLBR.GetVersion(SOFFICE_FILEFORMAT_40) );
    aBLTR.Store( rStream, aBLTR.GetVersion(SOFFICE_FILEFORMAT_40) );
	aBackground.Store( rStream, aBackground.GetVersion(SOFFICE_FILEFORMAT_40) );

	aAdjust.Store( rStream, aAdjust.GetVersion(SOFFICE_FILEFORMAT_40) );

	aHorJustify.Store( rStream, aHorJustify.GetVersion(SOFFICE_FILEFORMAT_40) );
	aVerJustify.Store( rStream, aVerJustify.GetVersion(SOFFICE_FILEFORMAT_40) );
	aOrientation.Store( rStream, aOrientation.GetVersion(SOFFICE_FILEFORMAT_40) );
	aMargin.Store( rStream, aMargin.GetVersion(SOFFICE_FILEFORMAT_40) );
	aLinebreak.Store( rStream, aLinebreak.GetVersion(SOFFICE_FILEFORMAT_40) );
	// Calc Rotation ab SO5
	aRotateAngle.Store( rStream, aRotateAngle.GetVersion(SOFFICE_FILEFORMAT_40) );
	aRotateMode.Store( rStream, aRotateMode.GetVersion(SOFFICE_FILEFORMAT_40) );
=====================================================================
Found a 85 line (423 tokens) duplication in the following files: 
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/swpossizetabpage.cxx
Starting at line 591 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/frmdlg/frmpage.cxx

		::InsertStringSorted(*aIt, rBox, nStartPos );
}

/* -----------------------------20.08.2002 16:12------------------------------

 ---------------------------------------------------------------------------*/
SvxSwFramePosString::StringId lcl_ChangeResIdToVerticalOrRTL(SvxSwFramePosString::StringId eStringId, BOOL bVertical, BOOL bRTL)
{
    //special handling of STR_FROMLEFT
    if(SwFPos::FROMLEFT == eStringId)
    {
        eStringId = bVertical ?
            bRTL ? SwFPos::FROMBOTTOM : SwFPos::FROMTOP :
            bRTL ? SwFPos::FROMRIGHT : SwFPos::FROMLEFT;
        return eStringId;
    }
    if(bVertical)
    {
        //exchange horizontal strings with vertical strings and vice versa
        static const StringIdPair_Impl aHoriIds[] =
        {
            {SwFPos::LEFT,           SwFPos::TOP},
            {SwFPos::RIGHT,          SwFPos::BOTTOM},
            {SwFPos::CENTER_HORI,    SwFPos::CENTER_VERT},
            {SwFPos::FROMTOP,        SwFPos::FROMRIGHT},
            {SwFPos::REL_PG_LEFT,    SwFPos::REL_PG_TOP},
            {SwFPos::REL_PG_RIGHT,   SwFPos::REL_PG_BOTTOM} ,
            {SwFPos::REL_FRM_LEFT,   SwFPos::REL_FRM_TOP},
            {SwFPos::REL_FRM_RIGHT,  SwFPos::REL_FRM_BOTTOM}
        };
        static const StringIdPair_Impl aVertIds[] =
        {
            {SwFPos::TOP,            SwFPos::RIGHT},
            {SwFPos::BOTTOM,         SwFPos::LEFT },
            {SwFPos::CENTER_VERT,    SwFPos::CENTER_HORI},
            {SwFPos::FROMTOP,        SwFPos::FROMRIGHT },
            {SwFPos::REL_PG_TOP,     SwFPos::REL_PG_LEFT },
            {SwFPos::REL_PG_BOTTOM,  SwFPos::REL_PG_RIGHT } ,
            {SwFPos::REL_FRM_TOP,    SwFPos::REL_FRM_LEFT },
            {SwFPos::REL_FRM_BOTTOM, SwFPos::REL_FRM_RIGHT }
        };
        USHORT nIndex;
        for(nIndex = 0; nIndex < sizeof(aHoriIds) / sizeof(StringIdPair_Impl); ++nIndex)
        {
            if(aHoriIds[nIndex].eHori == eStringId)
            {
                eStringId = aHoriIds[nIndex].eVert;
                return eStringId;
            }
        }
        nIndex = 0;
        for(nIndex = 0; nIndex < sizeof(aVertIds) / sizeof(StringIdPair_Impl); ++nIndex)
        {
            if(aVertIds[nIndex].eHori == eStringId)
            {
                eStringId = aVertIds[nIndex].eVert;
                break;
            }
        }
    }
    return eStringId;
}

// OD 12.11.2003 #i22341# - helper method in order to determine all possible
// listbox relations in a relation map for a given relation
ULONG lcl_GetLBRelationsForRelations( const USHORT _nRel )
{
    ULONG nLBRelations = 0L;

    sal_uInt16 nRelMapSize = sizeof(aRelationMap) / sizeof(RelationMap);
    for ( sal_uInt16 nRelMapPos = 0; nRelMapPos < nRelMapSize; ++nRelMapPos )
    {
        if ( aRelationMap[nRelMapPos].nRelation == _nRel )
        {
            nLBRelations |= aRelationMap[nRelMapPos].nLBRelation;
        }
    }

    return nLBRelations;
}

// OD 14.11.2003 #i22341# - helper method on order to determine all possible
// listbox relations in a relation map for a given string ID
ULONG lcl_GetLBRelationsForStrID( const FrmMap* _pMap,
                                  const USHORT _eStrId,
=====================================================================
Found a 101 line (422 tokens) duplication in the following files: 
Starting at line 2866 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3033 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    if( pFkp->Where() == WW8_FC_MAX )
        NewFkp();

    return *this;
}

USHORT WW8PLCFx_Fc_FKP::GetIstd() const
{
    return pFkp ? pFkp->GetIstd() : 0xFFFF;
}

void WW8PLCFx_Fc_FKP::GetPCDSprms( WW8PLCFxDesc& rDesc )
{
    rDesc.pMemPos   = 0;
    rDesc.nSprmsLen = 0;
    if( pPCDAttrs )
    {
        if( !pFkp )
        {
            DBG_WARNING(
                "+Problem: GetPCDSprms: NewFkp necessay (not possible!)" );
            if( !NewFkp() )
                return;
        }
        pPCDAttrs->GetSprms(&rDesc);
    }
}

const BYTE* WW8PLCFx_Fc_FKP::HasSprm( USHORT nId )
{
    // const waere schoener, aber dafuer muesste NewFkp() ersetzt werden oder
    // wegfallen
    if( !pFkp )
    {
        DBG_WARNING( "+Motz: HasSprm: NewFkp noetig ( kein const moeglich )" );
        // Passiert bei BugDoc 31722
        if( !NewFkp() )
            return 0;
    }

    const BYTE* pRes = pFkp->HasSprm( nId );

    if( !pRes )
    {
        WW8PLCFxDesc aDesc;
        GetPCDSprms( aDesc );

        if (aDesc.pMemPos)
        {
            WW8SprmIter aIter(aDesc.pMemPos, aDesc.nSprmsLen,
                pFkp->GetSprmParser());
            pRes = aIter.FindSprm(nId);
        }
    }

    return pRes;
}

bool WW8PLCFx_Fc_FKP::HasSprm(USHORT nId, std::vector<const BYTE *> &rResult)
{
    // const waere schoener, aber dafuer muesste NewFkp() ersetzt werden oder
    // wegfallen
    if (!pFkp)
    {
       DBG_WARNING( "+Motz: HasSprm: NewFkp noetig ( kein const moeglich )" );
       // Passiert bei BugDoc 31722
       if( !NewFkp() )
           return 0;
    }

    pFkp->HasSprm(nId, rResult);

    WW8PLCFxDesc aDesc;
    GetPCDSprms( aDesc );

    if (aDesc.pMemPos)
    {
        WW8SprmIter aIter(aDesc.pMemPos, aDesc.nSprmsLen,
            pFkp->GetSprmParser());
        while(aIter.GetSprms())
        {
            if (aIter.GetAktId() == nId)
                rResult.push_back(aIter.GetAktParams());
            aIter++;
        };
    }
    return !rResult.empty();
}

//-----------------------------------------

WW8PLCFx_Cp_FKP::WW8PLCFx_Cp_FKP( SvStream* pSt, SvStream* pTblSt,
    SvStream* pDataSt, const WW8ScannerBase& rBase, ePLCFT ePl )
    : WW8PLCFx_Fc_FKP(pSt, pTblSt, pDataSt, *rBase.pWw8Fib, ePl,
    rBase.WW8Cp2Fc(0)), rSBase(rBase), nAttrStart(-1), nAttrEnd(-1),
    bLineEnd(false),
    bComplex( (7 < rBase.pWw8Fib->nVersion) || (0 != rBase.pWw8Fib->fComplex) )
{
    ResetAttrStartEnd();

    pPcd = rSBase.pPiecePLCF ? new WW8PLCFx_PCD(GetFIBVersion(),
=====================================================================
Found a 15 line (421 tokens) duplication in the following files: 
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0,10,10, 0,10, 0, 0, 0, 0, 0, 0, 0, 0,// 0380 - 038f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0390 - 039f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 03a0 - 03af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 03b0 - 03bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 03c0 - 03cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 03d0 - 03df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 03e0 - 03ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 03f0 - 03ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0400 - 040f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0410 - 041f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0420 - 042f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0430 - 043f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0440 - 044f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0450 - 045f
=====================================================================
Found a 102 line (420 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/thesaurus/libnth/ntprophelp.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sprophelp.cxx

}


PropertyChgHelper::~PropertyChgHelper()
{	
}


void PropertyChgHelper::AddAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->addPropertyChangeListener( pPropName[i], this );
		}
	}
}

void PropertyChgHelper::RemoveAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->removePropertyChangeListener( pPropName[i], this );
		}
	}
}
		 

void PropertyChgHelper::LaunchEvent( const LinguServiceEvent &rEvt )
{
	cppu::OInterfaceIteratorHelper aIt( aLngSvcEvtListeners );
	while (aIt.hasMoreElements())
	{
		Reference< XLinguServiceEventListener > xRef( aIt.next(), UNO_QUERY );
		if (xRef.is())
			xRef->processLinguServiceEvent( rEvt );
	}
}


void SAL_CALL PropertyChgHelper::disposing( const EventObject& rSource ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	if (rSource.Source == xPropSet)
	{
		RemoveAsPropListener();
		xPropSet = NULL;
		aPropNames.realloc( 0 );
	}
}
    
	
sal_Bool SAL_CALL 
	PropertyChgHelper::addLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.addInterface( rxListener ) != nCount;
	}
	return bRes;
}


sal_Bool SAL_CALL 
	PropertyChgHelper::removeLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.removeInterface( rxListener ) != nCount;
	}
	return bRes;
}

///////////////////////////////////////////////////////////////////////////

static const char *aSP[] =
{
	UPN_IS_GERMAN_PRE_REFORM,
	UPN_IS_IGNORE_CONTROL_CHARACTERS,
	UPN_IS_USE_DICTIONARY_LIST,
=====================================================================
Found a 17 line (419 tokens) duplication in the following files: 
Starting at line 6143 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6449 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        12, 4, 32, 128-32,
        0x00,0x00,0x0D,0x00,0x1A,0x00,0x27,0x00,0x34,0x00,0x41,0x00,0x4E,0x00,0x5B,0x00,0x68,0x00,
        0x75,0x00,0x82,0x00,0x8F,0x00,0x9C,0x00,0xA9,0x00,0xB6,0x00,0xC3,0x00,0xD0,0x00,0xDD,0x00,
        0xEA,0x00,0xF7,0x00,0x04,0x01,0x11,0x01,0x1E,0x01,0x2B,0x01,0x38,0x01,0x45,0x01,0x52,0x01,
        0x5F,0x01,0x6C,0x01,0x79,0x01,0x86,0x01,0x93,0x01,0xA0,0x01,0xAD,0x01,0xBA,0x01,0xC7,0x01,
        0xD4,0x01,0xE1,0x01,0xEE,0x01,0xFB,0x01,0x08,0x02,0x15,0x02,0x22,0x02,0x2F,0x02,0x3C,0x02,
        0x49,0x02,0x56,0x02,0x63,0x02,0x70,0x02,0x7D,0x02,0x8A,0x02,0x97,0x02,0xA4,0x02,0xB1,0x02,
        0xBE,0x02,0xCB,0x02,0xD8,0x02,0xE5,0x02,0xF2,0x02,0xFF,0x02,0x0C,0x03,0x19,0x03,0x26,0x03,
        0x33,0x03,0x40,0x03,0x4D,0x03,0x5A,0x03,0x67,0x03,0x74,0x03,0x81,0x03,0x8E,0x03,0x9B,0x03,
        0xA8,0x03,0xB5,0x03,0xC2,0x03,0xCF,0x03,0xDC,0x03,0xE9,0x03,0xF6,0x03,0x03,0x04,0x10,0x04,
        0x1D,0x04,0x2A,0x04,0x37,0x04,0x44,0x04,0x51,0x04,0x5E,0x04,0x6B,0x04,0x78,0x04,0x85,0x04,
        0x92,0x04,0x9F,0x04,0xAC,0x04,0xB9,0x04,0xC6,0x04,0xD3,0x04,

        7, // 0x20 ' '
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

        7, // 0x21 '!'
=====================================================================
Found a 20 line (419 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_FORMRT),	SC_WID_UNO_FORMRT,	&getCppuType((table::CellContentType*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0), 0, MID_HORJUST_HORJUST },
		{MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
		{MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
        {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PADJUST),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PBMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_LO_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PINDENT),	ATTR_INDENT,		&getCppuType((sal_Int16*)0),			0, 0 }, //! CONVERT_TWIPS
		{MAP_CHAR_LEN(SC_UNONAME_PISCHDIST),ATTR_SCRIPTSPACE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISFORBID),ATTR_FORBIDDEN_RULES,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHANG),	ATTR_HANGPUNCTUATION,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHYPHEN),ATTR_HYPHENATE,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PLASTADJ),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
=====================================================================
Found a 64 line (419 tokens) duplication in the following files: 
Starting at line 413 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 329 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

	CComPtr< CComObject< SOComWindowPeer > > pPeerToSend = new CComObject<SOComWindowPeer>( hwnd );
	pPeerToSend->SetHWNDInternally( hwnd );
	CComQIPtr< IDispatch, &IID_IDispatch > pIDispToSend( pPeerToSend );

	// create rectangle structure
	CComPtr<IDispatch> pdispRectangle;
	HRESULT hr = GetUnoStruct( L"com.sun.star.awt.Rectangle", pdispRectangle );
	if( !SUCCEEDED( hr ) ) return hr;

	OLECHAR* sRectMemberNames[4] = { L"X", 
								 	 L"Y", 
								 	 L"Width", 
								 	 L"Height" };
	CComVariant pRectVariant[4];
	pRectVariant[0] = pRectVariant[1] = pRectVariant[2] = pRectVariant[3] = CComVariant( 0 );

	hr = PutPropertiesToIDisp( pdispRectangle, sRectMemberNames, pRectVariant, 4 );
	if( !SUCCEEDED( hr ) ) return hr;

	// create WindowDescriptor structure
	CComPtr<IDispatch> pdispWinDescr;
	hr = GetUnoStruct( L"com.sun.star.awt.WindowDescriptor", pdispWinDescr );
	if( !SUCCEEDED( hr ) ) return hr;

	// fill in descriptor with info
	OLECHAR* sDescriptorMemberNames[6] = { L"Type", 
								 L"WindowServiceName", 
								 L"ParentIndex", 
								 L"Parent", 
								 L"Bounds",
								 L"WindowAttributes" };
	CComVariant pDescriptorVar[6];
	pDescriptorVar[0] = CComVariant( 0 );
	pDescriptorVar[1] = CComVariant( L"workwindow" );
	pDescriptorVar[2] = CComVariant( 1 );
	pDescriptorVar[3] = CComVariant( pIDispToSend );
	pDescriptorVar[4] = CComVariant( pdispRectangle );
	pDescriptorVar[5] = CComVariant( 33 );
	hr = PutPropertiesToIDisp( pdispWinDescr, sDescriptorMemberNames, pDescriptorVar, 6 );
	if( !SUCCEEDED( hr ) ) return hr;

	// create XToolkit instance
	CComPtr<IDispatch> pdispToolkit;
	hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.awt.Toolkit" ), 1, pdispToolkit );
	if( !SUCCEEDED( hr ) ) return hr;

	// create window with toolkit
	hr = GetIDispByFunc( pdispToolkit, L"createWindow", &CComVariant( pdispWinDescr ), 1, mpDispWin );
	if( !SUCCEEDED( hr ) ) return hr;

	// create frame
	hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.frame.Task" ), 1, mpDispFrame );
	if( !SUCCEEDED( hr ) || !mpDispFrame )
	{
		// the interface com.sun.star.frame.Task is removed in 6.1
		// but the interface com.sun.star.frame.Frame has some bugs in 6.0
		hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.frame.Frame" ), 1, mpDispFrame );
		if( !SUCCEEDED( hr ) ) return hr;
	}

	// initialize frame
	CComVariant dummyResult;
	hr = ExecuteFunc( mpDispFrame, L"initialize", &CComVariant( mpDispWin ), 1, &dummyResult );
	if( !SUCCEEDED( hr ) ) return hr;
=====================================================================
Found a 94 line (419 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_textlayout.cxx
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_textlayout.cxx

                                              nFontSize/2 );
        }
    }

    double SAL_CALL TextLayout::justify( double /*nSize*/ ) throw (lang::IllegalArgumentException, uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return 0.0;
    }

    double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& /*aNextLayouts*/, 
                                                 double /*nSize*/ ) throw (lang::IllegalArgumentException, uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return 0.0;
    }

    rendering::TextHit SAL_CALL TextLayout::getTextHit( const geometry::RealPoint2D& /*aHitPoint*/ ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return rendering::TextHit();
    }

    rendering::Caret SAL_CALL TextLayout::getCaret( sal_Int32 /*nInsertionIndex*/, 
                                                    sal_Bool  /*bExcludeLigatures*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return rendering::Caret();
    }

    sal_Int32 SAL_CALL TextLayout::getNextInsertionIndex( sal_Int32 /*nStartIndex*/, 
                                                          sal_Int32 /*nCaretAdvancement*/, 
                                                          sal_Bool  /*bExcludeLigatures*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return 0;
    }

    uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryVisualHighlighting( sal_Int32 /*nStartIndex*/, 
                                                                                              sal_Int32 /*nEndIndex*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return uno::Reference< rendering::XPolyPolygon2D >();
    }

    uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryLogicalHighlighting( sal_Int32 /*nStartIndex*/, 
                                                                                               sal_Int32 /*nEndIndex*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return uno::Reference< rendering::XPolyPolygon2D >();
    }

    double SAL_CALL TextLayout::getBaselineOffset(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return 0.0;
    }

    sal_Int8 SAL_CALL TextLayout::getMainTextDirection(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        return mnTextDirection;
    }

    uno::Reference< rendering::XCanvasFont > SAL_CALL TextLayout::getFont(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        return mpFont.getRef();
    }

    rendering::StringContext SAL_CALL TextLayout::getText(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        return maText;
    }
=====================================================================
Found a 87 line (418 tokens) duplication in the following files: 
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 410 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

	fprintf(stderr, "members are %d %d\n", nMemberPos, pTypeDescr->nAllMembers);
#endif

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( gpreg[2] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData, 
                    (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( gpreg[0] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *(void **)pRegisterReturn = gpreg[0];
                    eRet = typelib_TypeClass_ANY;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
			}
		} // else perform queryInterface()
		default:
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	default:
	{
=====================================================================
Found a 85 line (416 tokens) duplication in the following files: 
Starting at line 699 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 714 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

		for ( USHORT i = 0; i < m_aImageListsItems.pImageList->Count(); i++ )
		{
			const ImageListItemDescriptor* pImageItems = (*pImageList)[i];
			WriteImageList( pImageItems );
		}
	}

	if ( m_aImageListsItems.pExternalImageList )
	{
		WriteExternalImageList( m_aImageListsItems.pExternalImageList );
	}

	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_IMAGESCONTAINER )) );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endDocument();
}

//_________________________________________________________________________________________________________________
//	protected member functions
//_________________________________________________________________________________________________________________

void OWriteImagesDocumentHandler::WriteImageList( const ImageListItemDescriptor* pImageList ) throw
( SAXException, RuntimeException )
{
	AttributeListImpl*			pList = new AttributeListImpl;
	Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY );

    // save required attributes
	pList->addAttribute( m_aAttributeXlinkType,
						 m_aAttributeType,
						 m_aAttributeValueSimple );

	pList->addAttribute( m_aXMLXlinkNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_HREF )),
						 m_aAttributeType,
						 pImageList->aURL );

	if ( pImageList->nMaskMode == ImageMaskMode_Bitmap )
	{
		pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MASKMODE )),
							 m_aAttributeType,
							 OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MASKMODE_BITMAP )) );

		pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MASKURL )),
							 m_aAttributeType,
							 pImageList->aMaskURL );
		
		if ( pImageList->aHighContrastMaskURL.Len() > 0 )
		{
			pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_HIGHCONTRASTMASKURL )),
								 m_aAttributeType,
								 pImageList->aHighContrastMaskURL );
		}
	}
	else
	{
		OUStringBuffer	aColorStrBuffer( 8 );
		sal_Int64		nValue = pImageList->aMaskColor.GetRGBColor();

		aColorStrBuffer.appendAscii( "#" );
		aColorStrBuffer.append( OUString::valueOf( nValue, 16 ));

		pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MASKCOLOR )),
							 m_aAttributeType,
							 aColorStrBuffer.makeStringAndClear() );

		pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MASKMODE )),
							 m_aAttributeType,
							 OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MASKMODE_COLOR )) );
	}

	if ( pImageList->aHighContrastURL.Len() > 0 )
	{
		pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_HIGHCONTRASTURL )),
							 m_aAttributeType,
							 pImageList->aHighContrastURL );
	}
	
    m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_IMAGES )), xList );
    m_xWriteDocumentHandler->ignorableWhitespace( OUString() );

	ImageItemListDescriptor* pImageItemList = pImageList->pImageItemList;
	if ( pImageItemList )
	{
		for ( USHORT i = 0; i < pImageItemList->Count(); i++ )
=====================================================================
Found a 31 line (416 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/macosx/gnu/public.h
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr3/gnu/public.h

void Print_cmnd ANSI((char *, int, int));
void Pop_dir ANSI((int));
void Append_line ANSI((char *, int, FILE *, char *, int, int));
void Stat_target ANSI((CELLPTR, int, int));
char *Expand ANSI((char *));
char *Apply_edit ANSI((char *, char *, char *, int, int));
void Map_esc ANSI((char *));
char* Apply_modifiers ANSI((int, char *));
char* Tokenize ANSI((char *, char *, char, int));
char* ScanToken ANSI((char *, char **, int));
char *DmStrJoin ANSI((char *, char *, int, int));
char *DmStrAdd ANSI((char *, char *, int));
char *DmStrApp ANSI((char *, char *));
char *DmStrDup ANSI((char *));
char *DmStrDup2 ANSI((char *));
char *DmStrPbrk ANSI((char *, char *));
char *DmStrSpn ANSI((char *, char *));
char *DmStrStr ANSI((char *, char *));
char *DmSubStr ANSI((char *, char *));
uint16 Hash ANSI((char *, uint32 *));
HASHPTR Get_name ANSI((char *, HASHPTR *, int));
HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
HASHPTR Push_macro ANSI((HASHPTR));
HASHPTR Pop_macro ANSI((HASHPTR));
HASHPTR Def_macro ANSI((char *, char *, int));
CELLPTR Def_cell ANSI((char *));
LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
void Clear_prerequisites ANSI((CELLPTR));
int Test_circle ANSI((CELLPTR, int));
STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
t_attr Rcp_attribute ANSI((char *));
=====================================================================
Found a 87 line (416 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idloptions.cxx

	for (i; i < ac; i++)
	{
		if (av[i][0] == '-')
		{
			switch (av[i][1])
			{
				case 'O':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'G':
=====================================================================
Found a 15 line (415 tokens) duplication in the following files: 
Starting at line 3695 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 5225 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        11, 3, 32, 128-32,
        0x00,0x00,0x0C,0x00,0x18,0x00,0x24,0x00,0x30,0x00,0x3C,0x00,0x48,0x00,0x54,0x00,0x60,0x00,
        0x6C,0x00,0x78,0x00,0x84,0x00,0x90,0x00,0x9C,0x00,0xA8,0x00,0xB4,0x00,0xC0,0x00,0xCC,0x00,
        0xD8,0x00,0xE4,0x00,0xF0,0x00,0xFC,0x00,0x08,0x01,0x14,0x01,0x20,0x01,0x2C,0x01,0x38,0x01,
        0x44,0x01,0x50,0x01,0x5C,0x01,0x68,0x01,0x74,0x01,0x80,0x01,0x8C,0x01,0x98,0x01,0xA4,0x01,
        0xB0,0x01,0xBC,0x01,0xC8,0x01,0xD4,0x01,0xE0,0x01,0xEC,0x01,0xF8,0x01,0x04,0x02,0x10,0x02,
        0x1C,0x02,0x28,0x02,0x34,0x02,0x40,0x02,0x4C,0x02,0x58,0x02,0x64,0x02,0x70,0x02,0x7C,0x02,
        0x88,0x02,0x94,0x02,0xA0,0x02,0xAC,0x02,0xB8,0x02,0xC4,0x02,0xD0,0x02,0xDC,0x02,0xE8,0x02,
        0xF4,0x02,0x00,0x03,0x0C,0x03,0x18,0x03,0x24,0x03,0x30,0x03,0x3C,0x03,0x48,0x03,0x54,0x03,
        0x60,0x03,0x6C,0x03,0x78,0x03,0x84,0x03,0x90,0x03,0x9C,0x03,0xA8,0x03,0xB4,0x03,0xC0,0x03,
        0xCC,0x03,0xD8,0x03,0xE4,0x03,0xF0,0x03,0xFC,0x03,0x08,0x04,0x14,0x04,0x20,0x04,0x2C,0x04,
        0x38,0x04,0x44,0x04,0x50,0x04,0x5C,0x04,0x68,0x04,0x74,0x04,

        5, // 0x20 ' '
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 83 line (415 tokens) duplication in the following files: 
Starting at line 696 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/SwStyleNameMapper.cxx
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/SwStyleNameMapper.cxx

void SwStyleNameMapper::fillNameFromId( sal_uInt16 nId, String& rFillName, sal_Bool bProgName )
{
	sal_uInt16 nStt = 0;
	const SvStringsDtor* pStrArr = 0;

	switch( (USER_FMT | COLL_GET_RANGE_BITS | POOLGRP_NOCOLLID) & nId )
	{
	case COLL_TEXT_BITS:
		if( RES_POOLCOLL_TEXT_BEGIN <= nId && nId < RES_POOLCOLL_TEXT_END )
		{
			pStrArr = bProgName ? &GetTextProgNameArray() : &GetTextUINameArray();
			nStt = RES_POOLCOLL_TEXT_BEGIN;
		}
		break;
	case COLL_LISTS_BITS:
		if( RES_POOLCOLL_LISTS_BEGIN <= nId && nId < RES_POOLCOLL_LISTS_END )
		{
			pStrArr = bProgName ? &GetListsProgNameArray() : &GetListsUINameArray();
			nStt = RES_POOLCOLL_LISTS_BEGIN;
		}
		break;
	case COLL_EXTRA_BITS:
		if( RES_POOLCOLL_EXTRA_BEGIN <= nId && nId < RES_POOLCOLL_EXTRA_END )
		{
			pStrArr = bProgName ? &GetExtraProgNameArray() : &GetExtraUINameArray();
			nStt = RES_POOLCOLL_EXTRA_BEGIN;
		}
		break;
	case COLL_REGISTER_BITS:
		if( RES_POOLCOLL_REGISTER_BEGIN <= nId && nId < RES_POOLCOLL_REGISTER_END )
		{
			pStrArr = bProgName ? &GetRegisterProgNameArray() : &GetRegisterUINameArray();
			nStt = RES_POOLCOLL_REGISTER_BEGIN;
		}
		break;
	case COLL_DOC_BITS:
		if( RES_POOLCOLL_DOC_BEGIN <= nId && nId < RES_POOLCOLL_DOC_END )
		{
			pStrArr = bProgName ? &GetDocProgNameArray() : &GetDocUINameArray();
			nStt = RES_POOLCOLL_DOC_BEGIN;
		}
		break;
	case COLL_HTML_BITS:
		if( RES_POOLCOLL_HTML_BEGIN <= nId && nId < RES_POOLCOLL_HTML_END )
		{
			pStrArr = bProgName ? &GetHTMLProgNameArray() : &GetHTMLUINameArray();
			nStt = RES_POOLCOLL_HTML_BEGIN;
		}
		break;
	case POOLGRP_CHARFMT:
		if( RES_POOLCHR_NORMAL_BEGIN <= nId && nId < RES_POOLCHR_NORMAL_END )
		{
			pStrArr = bProgName ? &GetChrFmtProgNameArray() : &GetChrFmtUINameArray();
			nStt = RES_POOLCHR_NORMAL_BEGIN;
		}
		else if( RES_POOLCHR_HTML_BEGIN <= nId && nId < RES_POOLCHR_HTML_END )
		{
			pStrArr = bProgName ? &GetHTMLChrFmtProgNameArray() : &GetHTMLChrFmtUINameArray();
			nStt = RES_POOLCHR_HTML_BEGIN;
		}
		break;
	case POOLGRP_FRAMEFMT:
		if( RES_POOLFRM_BEGIN <= nId && nId < RES_POOLFRM_END )
		{
			pStrArr = bProgName ? &GetFrmFmtProgNameArray() : &GetFrmFmtUINameArray();
			nStt = RES_POOLFRM_BEGIN;
		}
		break;
	case POOLGRP_PAGEDESC:
		if( RES_POOLPAGE_BEGIN <= nId && nId < RES_POOLPAGE_END )
		{
			pStrArr = bProgName ? &GetPageDescProgNameArray() : &GetPageDescUINameArray();
			nStt = RES_POOLPAGE_BEGIN;
		}
		break;
	case POOLGRP_NUMRULE:
		if( RES_POOLNUMRULE_BEGIN <= nId && nId < RES_POOLNUMRULE_END )
		{
			pStrArr = bProgName ? &GetNumRuleProgNameArray() : &GetNumRuleUINameArray();
			nStt = RES_POOLNUMRULE_BEGIN;
		}
		break;
	}
=====================================================================
Found a 81 line (415 tokens) duplication in the following files: 
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

sal_Bool ModuleImageManager::implts_loadUserImages(
    ImageType nImageType,
    const uno::Reference< XStorage >& xUserImageStorage,
    const uno::Reference< XStorage >& xUserBitmapsStorage )
{
    ResetableGuard aGuard( m_aLock );

    if ( xUserImageStorage.is() && xUserBitmapsStorage.is() )
    {
        try
        {
            uno::Reference< XStream > xStream = xUserImageStorage->openStreamElement( rtl::OUString::createFromAscii( IMAGELIST_XML_FILE[nImageType] ),
                                                                                      ElementModes::READ );
            uno::Reference< XInputStream > xInputStream = xStream->getInputStream();

            ImageListsDescriptor aUserImageListInfo;
            ImagesConfiguration::LoadImages( m_xServiceManager,
                                             xInputStream,
                                             aUserImageListInfo );
            if (( aUserImageListInfo.pImageList != 0 ) &&
                ( aUserImageListInfo.pImageList->Count() > 0 ))
            {
                ImageListItemDescriptor* pList = aUserImageListInfo.pImageList->GetObject(0);
                sal_Int32 nCount = pList->pImageItemList->Count();

                std::vector< OUString > aUserImagesVector;
                for ( USHORT i=0; i < nCount; i++ )
                {
                    const ImageItemDescriptor* pItem = pList->pImageItemList->GetObject(i);
                    aUserImagesVector.push_back( pItem->aCommandURL );
                }

                uno::Reference< XStream > xBitmapStream = xUserBitmapsStorage->openStreamElement(
                                                        rtl::OUString::createFromAscii( BITMAP_FILE_NAMES[nImageType] ),
                                                        ElementModes::READ );

                if ( xBitmapStream.is() )
                {
                    SvStream* pSvStream( 0 );
		            BitmapEx aUserBitmap;
		            {
		                pSvStream = utl::UcbStreamHelper::CreateStream( xBitmapStream );
		                vcl::PNGReader aPngReader( *pSvStream );
		                aUserBitmap = aPngReader.Read();
		            }
                    delete pSvStream;

                    // Delete old image list and create a new one from the read bitmap
                    delete m_pUserImageList[nImageType];
                    m_pUserImageList[nImageType] = new ImageList();
					m_pUserImageList[nImageType]->InsertFromHorizontalStrip
						( aUserBitmap, aUserImagesVector );
                    return sal_True;
                }
            }
        }
        catch ( com::sun::star::container::NoSuchElementException& )
        {
        }
        catch ( ::com::sun::star::embed::InvalidStorageException& )
        {
        }
        catch ( ::com::sun::star::lang::IllegalArgumentException& )
        {
        }
        catch ( ::com::sun::star::io::IOException& )
        {
        }
        catch ( ::com::sun::star::embed::StorageWrappedTargetException& )
        {
        }
    }

    // Destroy old image list - create a new empty one
    delete m_pUserImageList[nImageType];
    m_pUserImageList[nImageType] = new ImageList;

    return sal_True;
}

sal_Bool ModuleImageManager::implts_storeUserImages(
=====================================================================
Found a 71 line (415 tokens) duplication in the following files: 
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsdarm32/tempnam.c
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/solaris/tempnam.c

extern char *mktemp();
extern int access();

static char *cpdir();
static char  seed[4]="AAA";

/* BSD stdio.h doesn't define P_tmpdir, so let's do it here */
#ifndef P_tmpdir
static char *P_tmpdir = "/tmp";
#endif

char *
tempnam(dir, prefix)
const char *dir;		/* use this directory please (if non-NULL) */
const char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+16))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (access( cpdir(p, tmpdir), 3) != 0) )
     if( (dl == 0) || (access( cpdir(p, dir), 3) != 0) )
	if( access( cpdir(p, P_tmpdir),   3) != 0 )
	   if( access( cpdir(p, "/tmp"),  3) != 0 )
	      return(NULL);

   (void) strcat(p, "/");
   if(prefix)
   {
      *(p+strlen(p)+5) = '\0';
      (void)strncat(p, prefix, 5);
   }

   (void)strcat(p, seed);
   (void)strcat(p, "XXXXXX");

   q = seed;
   while(*q == 'Z') *q++ = 'A';
   ++*q;

   if(*mktemp(p) == '\0') return(NULL);
   return(p);
}



static char *
cpdir(buf, str)
char *buf;
char *str;
{
   char *p;

   if(str != NULL)
   {
      (void) strcpy(buf, str);
      p = buf - 1 + strlen(buf);
      if(*p == '/') *p = '\0';
   }

   return(buf);
}
=====================================================================
Found a 72 line (414 tokens) duplication in the following files: 
Starting at line 1422 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/helper/xsecctl.cxx

			sHundredth = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("0"));
        }
    }
    else
        aDateStr = rString;         // no separator: only date part

    sal_Int32 nYear  = 1899;
    sal_Int32 nMonth = 12;
    sal_Int32 nDay   = 30;
    sal_Int32 nHour  = 0;
    sal_Int32 nMin   = 0;
    sal_Int32 nSec   = 0;

    const sal_Unicode* pStr = aDateStr.getStr();
    sal_Int32 nDateTokens = 1;
    while ( *pStr )
    {
        if ( *pStr == '-' )
            nDateTokens++;
        pStr++;
    }
    if ( nDateTokens > 3 || aDateStr.getLength() == 0 )
        bSuccess = sal_False;
    else
    {
        sal_Int32 n = 0;
        if ( !convertNumber( nYear, aDateStr.getToken( 0, '-', n ), 0, 9999 ) )
            bSuccess = sal_False;
        if ( nDateTokens >= 2 )
            if ( !convertNumber( nMonth, aDateStr.getToken( 0, '-', n ), 0, 12 ) )
                bSuccess = sal_False;
        if ( nDateTokens >= 3 )
            if ( !convertNumber( nDay, aDateStr.getToken( 0, '-', n ), 0, 31 ) )
                bSuccess = sal_False;
    }

    if ( aTimeStr.getLength() > 0 )           // time is optional
    {
        pStr = aTimeStr.getStr();
        sal_Int32 nTimeTokens = 1;
        while ( *pStr )
        {
            if ( *pStr == ':' )
                nTimeTokens++;
            pStr++;
        }
        if ( nTimeTokens > 3 )
            bSuccess = sal_False;
        else
        {
            sal_Int32 n = 0;
            if ( !convertNumber( nHour, aTimeStr.getToken( 0, ':', n ), 0, 23 ) )
                bSuccess = sal_False;
            if ( nTimeTokens >= 2 )
                if ( !convertNumber( nMin, aTimeStr.getToken( 0, ':', n ), 0, 59 ) )
                    bSuccess = sal_False;
            if ( nTimeTokens >= 3 )
                if ( !convertNumber( nSec, aTimeStr.getToken( 0, ':', n ), 0, 59 ) )
                    bSuccess = sal_False;
        }
    }

    if (bSuccess)
    {
        rDateTime.Year = (sal_uInt16)nYear;
        rDateTime.Month = (sal_uInt16)nMonth;
        rDateTime.Day = (sal_uInt16)nDay;
        rDateTime.Hours = (sal_uInt16)nHour;
        rDateTime.Minutes = (sal_uInt16)nMin;
        rDateTime.Seconds = (sal_uInt16)nSec;
 //       rDateTime.HundredthSeconds = sDoubleStr.toDouble() * 100;
		rDateTime.HundredthSeconds = static_cast<sal_uInt16>(sHundredth.toInt32());
=====================================================================
Found a 99 line (414 tokens) duplication in the following files: 
Starting at line 2431 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 2862 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

			if (!pMatX->IsValue(nElem))
			{
				SetIllegalArgument();
				return;
			}
		if (nCX == nCY && nRX == nRY)
			nCase = 1;					// einfache Regression
		else if (nCY != 1 && nRY != 1)
		{
			SetIllegalParameter();
			return;
		}
		else if (nCY == 1)
		{
			if (nRX != nRY)
			{
				SetIllegalParameter();
				return;
			}
			else
			{
				nCase = 2;				// zeilenweise
				N = nRY;
				M = nCX;
			}
		}
		else if (nCX != nCY)
		{
			SetIllegalParameter();
			return;
		}
		else
		{
			nCase = 3;					// spaltenweise
			N = nCY;
			M = nRX;
		}
	}
	else
	{
		pMatX = GetNewMat(nCY, nRY);
		if (!pMatX)
		{
			PushError();
			return;
		}
		for ( SCSIZE i = 1; i <= nCountY; i++ )
			pMatX->PutDouble((double)i, i-1);
		nCase = 1;
	}
	ScMatrixRef pResMat;
	if (nCase == 1)
	{
		if (!bStats)
			pResMat = GetNewMat(2,1);
		else
			pResMat = GetNewMat(2,5);
		if (!pResMat)
		{
			PushError();
			return;
		}
		double fCount   = 0.0;
		double fSumX    = 0.0;
		double fSumSqrX = 0.0;
		double fSumY    = 0.0;
		double fSumSqrY = 0.0;
		double fSumXY   = 0.0;
		double fValX, fValY;
		for (SCSIZE i = 0; i < nCY; i++)
			for (SCSIZE j = 0; j < nRY; j++)
			{
				fValX = pMatX->GetDouble(i,j);
				fValY = pMatY->GetDouble(i,j);
				fSumX    += fValX;
				fSumSqrX += fValX * fValX;
				fSumY    += fValY;
				fSumSqrY += fValY * fValY;
				fSumXY   += fValX*fValY;
				fCount++;
			}
		if (fCount < 1.0)
			SetNoValue();
		else
		{
			double f1 = fCount*fSumXY-fSumX*fSumY;
			double fX = fCount*fSumSqrX-fSumX*fSumX;
			double b, m;
			if (bConstant)
			{
				b = fSumY/fCount - f1/fX*fSumX/fCount;
				m = f1/fX;
			}
			else
			{
				b = 0.0;
				m = fSumXY/fSumSqrX;
			}
			pResMat->PutDouble(exp(m), 0, 0);
=====================================================================
Found a 117 line (412 tokens) duplication in the following files: 
Starting at line 509 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 393 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

	return ContentImplHelper::getIdentifier();
}

//=========================================================================
//
// XCommandProcessor methods.
//
//=========================================================================

// virtual
uno::Any SAL_CALL Content::execute(
        const ucb::Command& aCommand,
        sal_Int32 /*CommandId*/,
        const uno::Reference< ucb::XCommandEnvironment >& Environment )
    throw( uno::Exception,
           ucb::CommandAbortedException,
           uno::RuntimeException )
{
    uno::Any aRet;

    if ( aCommand.Name.equalsAsciiL(
			RTL_CONSTASCII_STRINGPARAM( "getPropertyValues" ) ) )
    {
		//////////////////////////////////////////////////////////////////
		// getPropertyValues
		//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::Property > Properties;
        if ( !( aCommand.Argument >>= Properties ) )
		{
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet <<= getPropertyValues( Properties );
	}
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "setPropertyValues" ) ) )
    {
		//////////////////////////////////////////////////////////////////
		// setPropertyValues
		//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::PropertyValue > aProperties;
        if ( !( aCommand.Argument >>= aProperties ) )
		{
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        if ( !aProperties.getLength() )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "No properties!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet <<= setPropertyValues( aProperties, Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "getPropertySetInfo" ) ) )
    {
		//////////////////////////////////////////////////////////////////
		// getPropertySetInfo
		//////////////////////////////////////////////////////////////////

		aRet <<= getPropertySetInfo( Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "getCommandInfo" ) ) )
    {
		//////////////////////////////////////////////////////////////////
		// getCommandInfo
		//////////////////////////////////////////////////////////////////

		aRet <<= getCommandInfo( Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "open" ) ) )
	{
		//////////////////////////////////////////////////////////////////
        // open
		//////////////////////////////////////////////////////////////////

        ucb::OpenCommandArgument2 aOpenCommand;
        if ( !( aCommand.Argument >>= aOpenCommand ) )
		{
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet = open( aOpenCommand, Environment );
    }
    else if ( aCommand.Name.equalsAsciiL(
=====================================================================
Found a 54 line (412 tokens) duplication in the following files: 
Starting at line 1590 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 2002 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

	if ((rv) && (compoundroot) && 
	    (TESTAFF(rv->astr, compoundroot, rv->alen))) {
		wordnum++;
	}

	// first word is acceptable in compound words?
	if (((rv) && 
	  ( checked_prefix || (words && words[wnum]) ||
	    (compoundflag && TESTAFF(rv->astr, compoundflag, rv->alen)) ||
	    ((oldwordnum == 0) && compoundbegin && TESTAFF(rv->astr, compoundbegin, rv->alen)) ||
	    ((oldwordnum > 0) && compoundmiddle && TESTAFF(rv->astr, compoundmiddle, rv->alen)) 
// LANG_hu section: spec. Hungarian rule
	    || ((langnum == LANG_hu) &&	// hu_mov_rule
	        hu_mov_rule && (
		    TESTAFF(rv->astr, 'F', rv->alen) ||
		    TESTAFF(rv->astr, 'G', rv->alen) ||
		    TESTAFF(rv->astr, 'H', rv->alen)
		)
	      )
// END of LANG_hu section
	  )
	  && ! (( checkcompoundtriple && // test triple letters
                   (word[i-1]==word[i]) && (
                      ((i>1) && (word[i-1]==word[i-2])) || 
                      ((word[i-1]==word[i+1])) // may be word[i+1] == '\0'
		   )
               ) ||
	       (
	           // test CHECKCOMPOUNDPATTERN
                   numcheckcpd && cpdpat_check(word, i)
	       ) ||
               ( 
	         checkcompoundcase && cpdcase_check(word, i)
               ))
         )
// LANG_hu section: spec. Hungarian rule
         || ((!rv) && (langnum == LANG_hu) && hu_mov_rule && (rv = affix_check(st,i)) &&
              (sfx && ((SfxEntry*)sfx)->getCont() && (
                        TESTAFF(((SfxEntry*)sfx)->getCont(), (unsigned short) 'x', ((SfxEntry*)sfx)->getContLen()) ||
                        TESTAFF(((SfxEntry*)sfx)->getCont(), (unsigned short) '%', ((SfxEntry*)sfx)->getContLen())
                    )                
               )
	     )
// END of LANG_hu section
         ) {

// LANG_hu section: spec. Hungarian rule
            if (langnum == LANG_hu) {
	        // calculate syllable number of the word
	        numsyllable += get_syllable(st, i);

	        // + 1 word, if syllable number of the prefix > 1 (hungarian convention)
	        if (pfx && (get_syllable(((PfxEntry *)pfx)->getKey(),strlen(((PfxEntry *)pfx)->getKey())) > 1)) wordnum++;
            }
=====================================================================
Found a 59 line (412 tokens) duplication in the following files: 
Starting at line 807 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/hw2fw.cxx

  MAKE_PAIR( 0xFF65, 0x30FB ),	// HALFWIDTH KATAKANA MIDDLE DOT --> KATAKANA MIDDLE DOT
  MAKE_PAIR( 0xFF66, 0x30F2 ),	// HALFWIDTH KATAKANA LETTER WO --> KATAKANA LETTER WO
  MAKE_PAIR( 0xFF67, 0x30A1 ),	// HALFWIDTH KATAKANA LETTER SMALL A --> KATAKANA LETTER SMALL A
  MAKE_PAIR( 0xFF68, 0x30A3 ),	// HALFWIDTH KATAKANA LETTER SMALL I --> KATAKANA LETTER SMALL I
  MAKE_PAIR( 0xFF69, 0x30A5 ),	// HALFWIDTH KATAKANA LETTER SMALL U --> KATAKANA LETTER SMALL U
  MAKE_PAIR( 0xFF6A, 0x30A7 ),	// HALFWIDTH KATAKANA LETTER SMALL E --> KATAKANA LETTER SMALL E
  MAKE_PAIR( 0xFF6B, 0x30A9 ),	// HALFWIDTH KATAKANA LETTER SMALL O --> KATAKANA LETTER SMALL O
  MAKE_PAIR( 0xFF6C, 0x30E3 ),	// HALFWIDTH KATAKANA LETTER SMALL YA --> KATAKANA LETTER SMALL YA
  MAKE_PAIR( 0xFF6D, 0x30E5 ),	// HALFWIDTH KATAKANA LETTER SMALL YU --> KATAKANA LETTER SMALL YU
  MAKE_PAIR( 0xFF6E, 0x30E7 ),	// HALFWIDTH KATAKANA LETTER SMALL YO --> KATAKANA LETTER SMALL YO
  MAKE_PAIR( 0xFF6F, 0x30C3 ),	// HALFWIDTH KATAKANA LETTER SMALL TU --> KATAKANA LETTER SMALL TU
  MAKE_PAIR( 0xFF70, 0x30FC ),	// HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK --> KATAKANA-HIRAGANA PROLONGED SOUND MARK
  MAKE_PAIR( 0xFF71, 0x30A2 ),	// HALFWIDTH KATAKANA LETTER A --> KATAKANA LETTER A
  MAKE_PAIR( 0xFF72, 0x30A4 ),	// HALFWIDTH KATAKANA LETTER I --> KATAKANA LETTER I
  MAKE_PAIR( 0xFF73, 0x30A6 ),	// HALFWIDTH KATAKANA LETTER U --> KATAKANA LETTER U
  MAKE_PAIR( 0xFF74, 0x30A8 ),	// HALFWIDTH KATAKANA LETTER E --> KATAKANA LETTER E
  MAKE_PAIR( 0xFF75, 0x30AA ),	// HALFWIDTH KATAKANA LETTER O --> KATAKANA LETTER O
  MAKE_PAIR( 0xFF76, 0x30AB ),	// HALFWIDTH KATAKANA LETTER KA --> KATAKANA LETTER KA
  MAKE_PAIR( 0xFF77, 0x30AD ),	// HALFWIDTH KATAKANA LETTER KI --> KATAKANA LETTER KI
  MAKE_PAIR( 0xFF78, 0x30AF ),	// HALFWIDTH KATAKANA LETTER KU --> KATAKANA LETTER KU
  MAKE_PAIR( 0xFF79, 0x30B1 ),	// HALFWIDTH KATAKANA LETTER KE --> KATAKANA LETTER KE
  MAKE_PAIR( 0xFF7A, 0x30B3 ),	// HALFWIDTH KATAKANA LETTER KO --> KATAKANA LETTER KO
  MAKE_PAIR( 0xFF7B, 0x30B5 ),	// HALFWIDTH KATAKANA LETTER SA --> KATAKANA LETTER SA
  MAKE_PAIR( 0xFF7C, 0x30B7 ),	// HALFWIDTH KATAKANA LETTER SI --> KATAKANA LETTER SI
  MAKE_PAIR( 0xFF7D, 0x30B9 ),	// HALFWIDTH KATAKANA LETTER SU --> KATAKANA LETTER SU
  MAKE_PAIR( 0xFF7E, 0x30BB ),	// HALFWIDTH KATAKANA LETTER SE --> KATAKANA LETTER SE
  MAKE_PAIR( 0xFF7F, 0x30BD ),	// HALFWIDTH KATAKANA LETTER SO --> KATAKANA LETTER SO
  MAKE_PAIR( 0xFF80, 0x30BF ),	// HALFWIDTH KATAKANA LETTER TA --> KATAKANA LETTER TA
  MAKE_PAIR( 0xFF81, 0x30C1 ),	// HALFWIDTH KATAKANA LETTER TI --> KATAKANA LETTER TI
  MAKE_PAIR( 0xFF82, 0x30C4 ),	// HALFWIDTH KATAKANA LETTER TU --> KATAKANA LETTER TU
  MAKE_PAIR( 0xFF83, 0x30C6 ),	// HALFWIDTH KATAKANA LETTER TE --> KATAKANA LETTER TE
  MAKE_PAIR( 0xFF84, 0x30C8 ),	// HALFWIDTH KATAKANA LETTER TO --> KATAKANA LETTER TO
  MAKE_PAIR( 0xFF85, 0x30CA ),	// HALFWIDTH KATAKANA LETTER NA --> KATAKANA LETTER NA
  MAKE_PAIR( 0xFF86, 0x30CB ),	// HALFWIDTH KATAKANA LETTER NI --> KATAKANA LETTER NI
  MAKE_PAIR( 0xFF87, 0x30CC ),	// HALFWIDTH KATAKANA LETTER NU --> KATAKANA LETTER NU
  MAKE_PAIR( 0xFF88, 0x30CD ),	// HALFWIDTH KATAKANA LETTER NE --> KATAKANA LETTER NE
  MAKE_PAIR( 0xFF89, 0x30CE ),	// HALFWIDTH KATAKANA LETTER NO --> KATAKANA LETTER NO
  MAKE_PAIR( 0xFF8A, 0x30CF ),	// HALFWIDTH KATAKANA LETTER HA --> KATAKANA LETTER HA
  MAKE_PAIR( 0xFF8B, 0x30D2 ),	// HALFWIDTH KATAKANA LETTER HI --> KATAKANA LETTER HI
  MAKE_PAIR( 0xFF8C, 0x30D5 ),	// HALFWIDTH KATAKANA LETTER HU --> KATAKANA LETTER HU
  MAKE_PAIR( 0xFF8D, 0x30D8 ),	// HALFWIDTH KATAKANA LETTER HE --> KATAKANA LETTER HE
  MAKE_PAIR( 0xFF8E, 0x30DB ),	// HALFWIDTH KATAKANA LETTER HO --> KATAKANA LETTER HO
  MAKE_PAIR( 0xFF8F, 0x30DE ),	// HALFWIDTH KATAKANA LETTER MA --> KATAKANA LETTER MA
  MAKE_PAIR( 0xFF90, 0x30DF ),	// HALFWIDTH KATAKANA LETTER MI --> KATAKANA LETTER MI
  MAKE_PAIR( 0xFF91, 0x30E0 ),	// HALFWIDTH KATAKANA LETTER MU --> KATAKANA LETTER MU
  MAKE_PAIR( 0xFF92, 0x30E1 ),	// HALFWIDTH KATAKANA LETTER ME --> KATAKANA LETTER ME
  MAKE_PAIR( 0xFF93, 0x30E2 ),	// HALFWIDTH KATAKANA LETTER MO --> KATAKANA LETTER MO
  MAKE_PAIR( 0xFF94, 0x30E4 ),	// HALFWIDTH KATAKANA LETTER YA --> KATAKANA LETTER YA
  MAKE_PAIR( 0xFF95, 0x30E6 ),	// HALFWIDTH KATAKANA LETTER YU --> KATAKANA LETTER YU
  MAKE_PAIR( 0xFF96, 0x30E8 ),	// HALFWIDTH KATAKANA LETTER YO --> KATAKANA LETTER YO
  MAKE_PAIR( 0xFF97, 0x30E9 ),	// HALFWIDTH KATAKANA LETTER RA --> KATAKANA LETTER RA
  MAKE_PAIR( 0xFF98, 0x30EA ),	// HALFWIDTH KATAKANA LETTER RI --> KATAKANA LETTER RI
  MAKE_PAIR( 0xFF99, 0x30EB ),	// HALFWIDTH KATAKANA LETTER RU --> KATAKANA LETTER RU
  MAKE_PAIR( 0xFF9A, 0x30EC ),	// HALFWIDTH KATAKANA LETTER RE --> KATAKANA LETTER RE
  MAKE_PAIR( 0xFF9B, 0x30ED ),	// HALFWIDTH KATAKANA LETTER RO --> KATAKANA LETTER RO
  MAKE_PAIR( 0xFF9C, 0x30EF ),	// HALFWIDTH KATAKANA LETTER WA --> KATAKANA LETTER WA
  MAKE_PAIR( 0xFF9D, 0x30F3 ),	// HALFWIDTH KATAKANA LETTER N --> KATAKANA LETTER N
  MAKE_PAIR( 0xFF9E, 0x3099 ),	// HALFWIDTH KATAKANA VOICED SOUND MARK --> COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
  MAKE_PAIR( 0xFF9F, 0x309A )	// HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK --> COMBINING KATAKANA-
=====================================================================
Found a 40 line (412 tokens) duplication in the following files: 
Starting at line 63 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MColumnAlias.cxx
Starting at line 508 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx

    static const ::rtl::OUString sAttributeNames[] =
    {
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("FirstName")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("LastName")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("DisplayName")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("NickName")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("PrimaryEmail")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("SecondEmail")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("PreferMailFormat")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WorkPhone")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("HomePhone")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("FaxNumber")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("PagerNumber")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("CellularNumber")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("HomeAddress")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("HomeAddress2")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("HomeCity")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("HomeState")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("HomeZipCode")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("HomeCountry")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WorkAddress")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WorkAddress2")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WorkCity")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WorkState")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WorkZipCode")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WorkCountry")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("JobTitle")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Department")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Company")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WebPage1")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WebPage2")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("BirthYear")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("BirthMonth")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("BirthDay")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Custom1")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Custom2")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Custom3")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Custom4")),
	    ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Notes"))
    };
=====================================================================
Found a 97 line (412 tokens) duplication in the following files: 
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx

                break;
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
            // has to destruct the any
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
=====================================================================
Found a 76 line (412 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

			break;
	}
}

//================================================================================================== 
static void cpp_call(
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis,
    bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
  	// max space for: [complex ret ptr], values|ptr ...
  	char * pCppStack		=
  		(char *)alloca( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
  	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
                   ? alloca( pReturnTypeDescr->nSize )
                   : pUnoReturn); // direct way
			pCppStack += sizeof(void *);
		}
	}
	// push this
    void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
        + aVtableSlot.offset;
	*(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 97 line (412 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

				pCppStack += sizeof(sal_Int32); // extra long
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
            // has to destruct the any
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
=====================================================================
Found a 76 line (412 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

			break;
	}
}

//================================================================================================== 
static void cpp_call(
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis,
    bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
  	// max space for: [complex ret ptr], values|ptr ...
  	char * pCppStack		=
  		(char *)alloca( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
  	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
                   ? alloca( pReturnTypeDescr->nSize )
                   : pUnoReturn); // direct way
			pCppStack += sizeof(void *);
		}
	}
	// push this
    void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
        + aVtableSlot.offset;
	*(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 97 line (412 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

				pCppStack += sizeof(sal_Int32); // extra long
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
            // has to destruct the any
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
=====================================================================
Found a 77 line (412 tokens) duplication in the following files: 
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/win/window.cxx
Starting at line 192 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/xine/window.cxx

void Window::implLayoutVideoWindow()
{
    if( media::ZoomLevel_NOT_AVAILABLE != meZoomLevel )
    {
        awt::Size           aPrefSize( mrPlayer.getPreferredPlayerWindowSize() );
        awt::Rectangle      aRect = getPosSize();
        int                 nW = aRect.Width, nH = aRect.Height;
        int                 nVideoW = nW, nVideoH = nH;
        int                 nX = 0, nY = 0, nWidth = 0, nHeight = 0;
        bool                bDone = false, bZoom = false;

        if( media::ZoomLevel_ORIGINAL == meZoomLevel )
        {
            bZoom = true;
        }
        else if( media::ZoomLevel_ZOOM_1_TO_4 == meZoomLevel )
        {
            aPrefSize.Width >>= 2;
            aPrefSize.Height >>= 2;
            bZoom = true;
        }
        else if( media::ZoomLevel_ZOOM_1_TO_2 == meZoomLevel )
        {
            aPrefSize.Width >>= 1;
            aPrefSize.Height >>= 1;
            bZoom = true;
        }
        else if( media::ZoomLevel_ZOOM_2_TO_1 == meZoomLevel )
        {
            aPrefSize.Width <<= 1;
            aPrefSize.Height <<= 1;
            bZoom = true;
        }
        else if( media::ZoomLevel_ZOOM_4_TO_1 == meZoomLevel )
        {
            aPrefSize.Width <<= 2;
            aPrefSize.Height <<= 2;
            bZoom = true;
        }
        else if( media::ZoomLevel_FIT_TO_WINDOW == meZoomLevel )
        {
            nWidth = nVideoW;
            nHeight = nVideoH;
            bDone = true;
        }

        if( bZoom )
        {
            if( ( aPrefSize.Width <= nVideoW ) && ( aPrefSize.Height <= nVideoH ) )
            {
                nX = ( nVideoW - aPrefSize.Width ) >> 1;
                nY = ( nVideoH - aPrefSize.Height ) >> 1;
                nWidth = aPrefSize.Width;
                nHeight = aPrefSize.Height;
                bDone = true;
            }
        }

        if( !bDone )
        {
            if( aPrefSize.Width > 0 && aPrefSize.Height > 0 && nVideoW > 0 && nVideoH > 0 )
            {
                double fPrefWH = (double) aPrefSize.Width / aPrefSize.Height;

                if( fPrefWH < ( (double) nVideoW / nVideoH ) )
                    nVideoW = (int)( nVideoH * fPrefWH );
                else
                    nVideoH = (int)( nVideoW / fPrefWH );

                nX = ( nW - nVideoW ) >> 1;
                nY = ( nH - nVideoH ) >> 1;
                nWidth = nVideoW;
                nHeight = nVideoH;
            }
            else
                nX = nY = nWidth = nHeight = 0;
        }
=====================================================================
Found a 9 line (411 tokens) duplication in the following files: 
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 390 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2470 - 2477
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2478 - 247f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2480 - 2487
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2488 - 248f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2490 - 2497
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2498 - 249f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24a0 - 24a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24a8 - 24af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x68, 0x24D0}, {0x68, 0x24D1}, // 24b0 - 24b7
=====================================================================
Found a 63 line (410 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_String_Const.h
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_String_Const.h

static const sal_Char *kTestStr1PlusStr6  = "Sun Microsystems" "Java Technology";
//------------------------------------------------------------------------
//------------------------------------------------------------------------

static const sal_Int32 kTestStr1Len  = 16;
static const sal_Int32 kTestStr2Len  = 32;
static const sal_Int32 kTestStr3Len  = 16;
static const sal_Int32 kTestStr4Len  = 16;
static const sal_Int32 kTestStr5Len  = 16;
static const sal_Int32 kTestStr6Len  = 15;
static const sal_Int32 kTestStr7Len  = 4;
static const sal_Int32 kTestStr8Len  = 12;
static const sal_Int32 kTestStr9Len  = 32;
static const sal_Int32 kTestStr10Len = 17;
static const sal_Int32 kTestStr11Len = 17;
static const sal_Int32 kTestStr12Len = 18;
static const sal_Int32 kTestStr13Len = 19;
static const sal_Int32 kTestStr14Len = 19;
static const sal_Int32 kTestStr15Len = 20;
static const sal_Int32 kTestStr16Len = 20;
static const sal_Int32 kTestStr17Len = 22;
static const sal_Int32 kTestStr18Len = 16;
static const sal_Int32 kTestStr19Len = 22;
static const sal_Int32 kTestStr20Len = 3;
static const sal_Int32 kTestStr21Len = 3;
static const sal_Int32 kTestStr22Len = 32;
static const sal_Int32 kTestStr23Len = 16;
static const sal_Int32 kTestStr24Len = 31;
static const sal_Int32 kTestStr25Len = 0;
static const sal_Int32 kTestStr26Len = 4;
static const sal_Int32 kTestStr27Len = 1;
static const sal_Int32 kTestStr28Len = 11;
static const sal_Int32 kTestStr29Len = 18;
static const sal_Int32 kTestStr30Len = 10;
static const sal_Int32 kTestStr31Len = 16;
static const sal_Int32 kTestStr32Len = 16;
static const sal_Int32 kTestStr33Len = 1;
static const sal_Int32 kTestStr34Len = 11;
static const sal_Int32 kTestStr35Len = 11;
static const sal_Int32 kTestStr36Len = 28;
static const sal_Int32 kTestStr37Len = 20;
static const sal_Int32 kTestStr38Len = 7;
static const sal_Int32 kTestStr39Len = 33;
static const sal_Int32 kTestStr40Len = 27;
static const sal_Int32 kTestStr41Len = 3;
static const sal_Int32 kTestStr42Len = 10;
static const sal_Int32 kTestStr43Len = 13;
static const sal_Int32 kTestStr44Len = 2;
static const sal_Int32 kTestStr45Len = 8;
static const sal_Int32 kTestStr46Len = 9;
static const sal_Int32 kTestStr47Len = 4;
static const sal_Int32 kTestStr48Len = 5;
static const sal_Int32 kTestStr49Len = 15;
static const sal_Int32 kTestStr50Len = 16;
static const sal_Int32 kTestStr51Len = 5;
static const sal_Int32 kTestStr52Len = 5;
static const sal_Int32 kTestStr53Len = 5;
static const sal_Int32 kTestStr54Len = 1;
static const sal_Int32 kTestStr55Len = 1;
static const sal_Int32 kTestStr56Len = 12;
static const sal_Int32 kTestStr57Len = 12;
static const sal_Int32 kTestStr58Len = 12;
static const sal_Int32 kTestStr1PlusStr6Len = kTestStr1Len + kTestStr6Len;
=====================================================================
Found a 59 line (409 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

        span_image_resample_rgba_affine(alloc_type& alloc,
                                        const rendering_buffer& src, 
                                        const color_type& back_color,
                                        interpolator_type& inter,
                                        const image_filter_lut& filter) :
            base_type(alloc, src, back_color, inter, filter) 
        {}


        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);

            long_type fg[4];
            value_type back_r = base_type::background_color().r;
            value_type back_g = base_type::background_color().g;
            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            color_type* span = base_type::allocator().span();

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
            int radius_x = (diameter * base_type::m_rx) >> 1;
            int radius_y = (diameter * base_type::m_ry) >> 1;
            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            const int16* weight_array = base_type::filter().weight_array();

            do
            {
                base_type::interpolator().coordinates(&x, &y);

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr = y >> image_subpixel_shift;
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                                base_type::m_ry_inv) >> 
                                    image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   base_type::m_rx_inv) >> 
                                       image_subpixel_shift;
                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + (x_lr << 2);
=====================================================================
Found a 100 line (409 tokens) duplication in the following files: 
Starting at line 2190 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 2576 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

void ScInterpreter::ScSkew()
{
	BYTE nParamCount = GetByte();
	if ( !MustHaveParamCountMin( nParamCount, 1 )  )
		return;
	USHORT i;
	double fSum    = 0.0;
	double vSum    = 0.0;
	std::vector<double> values;
	double fCount  = 0.0;
	double fVal = 0.0;
	ScAddress aAdr;
	ScRange aRange;
	for (i = 0; i < nParamCount; i++)
	{
		switch (GetStackType())
		{
			case svDouble :
			{
				fVal = GetDouble();
				fSum += fVal;
				values.push_back(fVal);
				fCount++;
			}
				break;
			case svSingleRef :
			{
				PopSingleRef( aAdr );
				ScBaseCell* pCell = GetCell( aAdr );
				if (HasCellValueData(pCell))
				{
					fVal = GetCellValue( aAdr, pCell );
					fSum += fVal;
					values.push_back(fVal);
					fCount++;
				}
			}
			break;
			case svDoubleRef :
			{
				PopDoubleRef( aRange );
				USHORT nErr = 0;
				ScValueIterator aValIter(pDok, aRange);
				if (aValIter.GetFirst(fVal, nErr))
				{
					fSum += fVal;
					values.push_back(fVal);
					fCount++;
					SetError(nErr);
					while ((nErr == 0) && aValIter.GetNext(fVal, nErr))
					{
						fSum += fVal;
						values.push_back(fVal);
						fCount++;
					}
					SetError(nErr);
				}
			}
			break;
			case svMatrix :
			{
				ScMatrixRef pMat = PopMatrix();
				if (pMat)
				{
                    SCSIZE nCount = pMat->GetElementCount();
					if (pMat->IsNumeric())
					{
                        for (SCSIZE nElem = 0; nElem < nCount; nElem++)
                        {
                            fVal = pMat->GetDouble(nElem);
                            fSum += fVal;
                            values.push_back(fVal);
                            fCount++;
                        }
					}
					else
					{
                        for (SCSIZE nElem = 0; nElem < nCount; nElem++)
                            if (!pMat->IsString(nElem))
                            {
                                fVal = pMat->GetDouble(nElem);
                                fSum += fVal;
                                values.push_back(fVal);
                                fCount++;
                            }
					}
				}
			}
			break;
			default :
				SetError(errIllegalParameter);
			break;
		}
	}
	
	if (nGlobalError)
	{
		PushInt(0);
		return;
	}
=====================================================================
Found a 98 line (409 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hprophelp.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sprophelp.cxx

}


PropertyChgHelper::~PropertyChgHelper()
{	
}


void PropertyChgHelper::AddAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->addPropertyChangeListener( pPropName[i], this );
		}
	}
}

void PropertyChgHelper::RemoveAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->removePropertyChangeListener( pPropName[i], this );
		}
	}
}
		 

void PropertyChgHelper::LaunchEvent( const LinguServiceEvent &rEvt )
{
	cppu::OInterfaceIteratorHelper aIt( aLngSvcEvtListeners );
	while (aIt.hasMoreElements())
	{
		Reference< XLinguServiceEventListener > xRef( aIt.next(), UNO_QUERY );
		if (xRef.is())
			xRef->processLinguServiceEvent( rEvt );
	}
}


void SAL_CALL PropertyChgHelper::disposing( const EventObject& rSource ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	if (rSource.Source == xPropSet)
	{
		RemoveAsPropListener();
		xPropSet = NULL;
		aPropNames.realloc( 0 );
	}
}
    
	
sal_Bool SAL_CALL 
	PropertyChgHelper::addLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.addInterface( rxListener ) != nCount;
	}
	return bRes;
}


sal_Bool SAL_CALL 
	PropertyChgHelper::removeLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxListener ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.removeInterface( rxListener ) != nCount;
	}
	return bRes;
}

///////////////////////////////////////////////////////////////////////////

static const char *aSP[] =
=====================================================================
Found a 83 line (408 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/so_comp/services.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/splash/services_spl.cxx

    FirstStart::interfaces,
    NULL
};	

static Sequence<OUString>
getSupportedServiceNames(int p) {
    const char **names = pSupportedServices[p];
    Sequence<OUString> aSeq;
    for(int i = 0; names[i] != NULL; i++) {
        aSeq.realloc(i+1);
        aSeq[i] = OUString::createFromAscii(names[i]);
    }
    return aSeq;
}   

extern "C"
{
void SAL_CALL 
component_getImplementationEnvironment(
    const sal_Char** ppEnvironmentTypeName, 
    uno_Environment**)
{
	*ppEnvironmentTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}

sal_Bool SAL_CALL 
component_writeInfo(
    void* pServiceManager, 
    void* pRegistryKey)
{
    Reference<XMultiServiceFactory> xMan( 
        reinterpret_cast< XMultiServiceFactory* >( pServiceManager ) ) ;
    Reference<XRegistryKey> xKey( 
        reinterpret_cast< XRegistryKey* >( pRegistryKey ) ) ;

    // iterate over service names and register them...
    OUString aImpl;
    const char* pServiceName = NULL;
    const char* pImplName = NULL;
    for (int i = 0; (pServices[i]!=NULL)&&(pImplementations[i]!=NULL); i++) {
        pServiceName= pServices[i];
        pImplName = pImplementations[i];
        aImpl = OUString::createFromAscii("/") 
              + OUString::createFromAscii(pImplName)
              + OUString::createFromAscii("/UNO/SERVICES");
        Reference<XRegistryKey> xNewKey = xKey->createKey(aImpl);
        xNewKey->createKey(OUString::createFromAscii(pServiceName));
    }
	return sal_True;
}

void* SAL_CALL 
component_getFactory(
    const sal_Char* pImplementationName,
    void* pServiceManager,
    void*)
{
	// Set default return value for this operation - if it failed.
    if  ( pImplementationName && pServiceManager )
	{
        Reference< XSingleServiceFactory > xFactory;
        Reference< XMultiServiceFactory > xServiceManager( 
            reinterpret_cast< XMultiServiceFactory* >( pServiceManager ) ) ;
    
        // search implementation
        for (int i = 0; (pImplementations[i]!=NULL); i++) {            
            if ( strcmp(pImplementations[i], pImplementationName ) == 0 ) {
                // found implementation
			    xFactory = Reference<XSingleServiceFactory>(cppu::createSingleFactory(
                    xServiceManager, OUString::createFromAscii(pImplementationName),
                    pInstanceProviders[i], getSupportedServiceNames(i)));
                if ( xFactory.is() ) {
                    // Factory is valid - service was found.
			        xFactory->acquire();
			        return xFactory.get();
		        }
            }
        } // for()
	}
	// Return with result of this operation.
	return NULL;
}
} // extern "C"
=====================================================================
Found a 68 line (407 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1877 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
=====================================================================
Found a 101 line (405 tokens) duplication in the following files: 
Starting at line 5651 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx
Starting at line 508 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par.cxx

            if (bIsSimpleDrawingTextBox)
            {
                SdrObject::Free( pObj );
                pObj = pOrgObj = 0;
            }

            // Distance of Textbox to it's surrounding Autoshape
			INT32 nTextLeft = GetPropertyValue( DFF_Prop_dxTextLeft, 91440L);
			INT32 nTextRight = GetPropertyValue( DFF_Prop_dxTextRight, 91440L );
			INT32 nTextTop = GetPropertyValue( DFF_Prop_dyTextTop, 45720L  );
			INT32 nTextBottom = GetPropertyValue( DFF_Prop_dyTextBottom, 45720L );

			ScaleEmu( nTextLeft );
			ScaleEmu( nTextRight );
			ScaleEmu( nTextTop );
			ScaleEmu( nTextBottom );

            INT32 nTextRotationAngle=0;
            bool bVerticalText = false;
            if ( IsProperty( DFF_Prop_txflTextFlow ) )
            {
                MSO_TextFlow eTextFlow = (MSO_TextFlow)(GetPropertyValue(
                    DFF_Prop_txflTextFlow) & 0xFFFF);
                switch( eTextFlow )
                {
                    case mso_txflBtoT:
                        nTextRotationAngle = 9000;
                    break;
                    case mso_txflVertN:
                    case mso_txflTtoBN:
                        nTextRotationAngle = 27000;
                        break;
                    case mso_txflTtoBA:
                        bVerticalText = true;
                    break;
                    case mso_txflHorzA:
                        bVerticalText = true;
                        nTextRotationAngle = 9000;
                    case mso_txflHorzN:
                    default :
                        break;
                }
            }

            if (nTextRotationAngle)
			{
                while (nTextRotationAngle > 360000)
                    nTextRotationAngle-=9000;
                switch (nTextRotationAngle)
                {
                    case 9000:
                        {
                            long nWidth = rTextRect.GetWidth();
                            rTextRect.Right() = rTextRect.Left() + rTextRect.GetHeight();
                            rTextRect.Bottom() = rTextRect.Top() + nWidth;

                            INT32 nOldTextLeft = nTextLeft;
                            INT32 nOldTextRight = nTextRight;
                            INT32 nOldTextTop = nTextTop;
                            INT32 nOldTextBottom = nTextBottom;

                            nTextLeft = nOldTextBottom;
                            nTextRight = nOldTextTop;
                            nTextTop = nOldTextLeft;
                            nTextBottom = nOldTextRight;
                        }
                        break;
                    case 27000:
                        {
                            long nWidth = rTextRect.GetWidth();
                            rTextRect.Right() = rTextRect.Left() + rTextRect.GetHeight();
                            rTextRect.Bottom() = rTextRect.Top() + nWidth;

                            INT32 nOldTextLeft = nTextLeft;
                            INT32 nOldTextRight = nTextRight;
                            INT32 nOldTextTop = nTextTop;
                            INT32 nOldTextBottom = nTextBottom;

                            nTextLeft = nOldTextTop;
                            nTextRight = nOldTextBottom;
                            nTextTop = nOldTextRight;
                            nTextBottom = nOldTextLeft;
                        }
                        break;
                    default:
                        break;
                }
			}

            pTextObj = new SdrRectObj(OBJ_TEXT, rTextRect);
            pTextImpRec = new SvxMSDffImportRec(*pImpRec);

            // Die vertikalen Absatzeinrueckungen sind im BoundRect mit drin,
            // hier rausrechnen
            Rectangle aNewRect(rTextRect);
			aNewRect.Bottom() -= nTextTop + nTextBottom;
            aNewRect.Right() -= nTextLeft + nTextRight;

			// Nur falls es eine einfache Textbox ist, darf der Writer
			// das Objekt durch einen Rahmen ersetzen, ansonsten
			if( bIsSimpleDrawingTextBox )
=====================================================================
Found a 114 line (405 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform8.cxx

                aIn.Ignore( 4 );

				bArrayFormula = TRUE;
				break;
			case 0x03: // Addition								[312 264]
				aStack >> nMerk0;
				aPool <<  aStack << ocAdd << nMerk0;
				aPool >> aStack;
				break;
			case 0x04: // Subtraction							[313 264]
				// SECOMD-TOP minus TOP
				aStack >> nMerk0;
				aPool << aStack << ocSub << nMerk0;
				aPool >> aStack;
				break;
			case 0x05: // Multiplication						[313 264]
				aStack >> nMerk0;
				aPool << aStack << ocMul << nMerk0;
				aPool >> aStack;
				break;
			case 0x06: // Division								[313 264]
				// divide TOP by SECOND-TOP
				aStack >> nMerk0;
				aPool << aStack << ocDiv << nMerk0;
				aPool >> aStack;
				break;
			case 0x07: // Exponetiation							[313 265]
				// raise SECOND-TOP to power of TOP
				aStack >> nMerk0;
				aPool << aStack << ocPow << nMerk0;
				aPool >> aStack;
				break;
			case 0x08: // Concatenation							[313 265]
				// append TOP to SECOND-TOP
				aStack >> nMerk0;
				aPool << aStack << ocAmpersand << nMerk0;
				aPool >> aStack;
				break;
			case 0x09: // Less Than								[313 265]
				// SECOND-TOP < TOP
				aStack >> nMerk0;
				aPool << aStack << ocLess << nMerk0;
				aPool >> aStack;
				break;
			case 0x0A: // Less Than or Equal					[313 265]
				// SECOND-TOP <= TOP
				aStack >> nMerk0;
				aPool << aStack << ocLessEqual << nMerk0;
				aPool >> aStack;
				break;
			case 0x0B: // Equal									[313 265]
				// SECOND-TOP == TOP
				aStack >> nMerk0;
				aPool << aStack << ocEqual << nMerk0;
				aPool >> aStack;
				break;
			case 0x0C: // Greater Than or Equal					[313 265]
				// SECOND-TOP == TOP
				aStack >> nMerk0;
				aPool << aStack << ocGreaterEqual << nMerk0;
				aPool >> aStack;
				break;
			case 0x0D: // Greater Than							[313 265]
				// SECOND-TOP == TOP
				aStack >> nMerk0;
				aPool << aStack << ocGreater << nMerk0;
				aPool >> aStack;
				break;
			case 0x0E: // Not Equal								[313 265]
				// SECOND-TOP == TOP
				aStack >> nMerk0;
				aPool << aStack << ocNotEqual << nMerk0;
				aPool >> aStack;
				break;
			case 0x0F: // Intersection							[314 265]
				aStack >> nMerk0;
				aPool << aStack << ocIntersect << nMerk0;
				aPool >> aStack;
				break;
			case 0x10: // Union									[314 265]
				// ocSep behelfsweise statt 'ocUnion'
				aStack >> nMerk0;
//#100928#      aPool << ocOpen << aStack << ocSep << nMerk0 << ocClose;
                aPool << aStack << ocSep << nMerk0;
					// doesn't fit exactly, but is more Excel-like
				aPool >> aStack;
				break;
			case 0x11: // Range									[314 265]
                PushRangeOperator();
				break;
			case 0x12: // Unary Plus							[312 264]
                aPool << ocAdd << aStack;
                aPool >> aStack;
				break;
			case 0x13: // Unary Minus							[312 264]
				aPool << ocNegSub << aStack;
				aPool >> aStack;
				break;
			case 0x14: // Percent Sign							[312 264]
                aPool << aStack << ocPercentSign;
				aPool >> aStack;
				break;
			case 0x15: // Parenthesis							[326 278]
				aPool << ocOpen << aStack << ocClose;
				aPool >> aStack;
				break;
			case 0x16: // Missing Argument						[314 266]
				aPool << ocMissing;
				aPool >> aStack;
                GetTracer().TraceFormulaMissingArg();
				break;
			case 0x17: // String Constant						[314 266]
				aIn >> nLen;		// und?
                aString = aIn.ReadUniString( nLen );            // reads Grbit even if nLen==0
=====================================================================
Found a 76 line (405 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdate.cxx
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdbl.cxx

				pVal->PutDouble( n );
			else
				SbxBase::SetError( SbxERR_NO_OBJECT );
			break;
		}
		case SbxBYREF | SbxCHAR:
			if( n > SbxMAXCHAR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCHAR;
			}
			else if( n < SbxMINCHAR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINCHAR;
			}
			*p->pChar = (xub_Unicode) n; break;
		case SbxBYREF | SbxBYTE:
			if( n > SbxMAXBYTE )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXBYTE;
			}
			else if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pByte = (BYTE) n; break;
		case SbxBYREF | SbxINTEGER:
		case SbxBYREF | SbxBOOL:
			if( n > SbxMAXINT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXINT;
			}
			else if( n < SbxMININT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMININT;
			}
			*p->pInteger = (INT16) n; break;
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			if( n > SbxMAXUINT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXUINT;
			}
			else if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pUShort = (UINT16) n; break;
		case SbxBYREF | SbxLONG:
			if( n > SbxMAXLNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXLNG;
			}
			else if( n < SbxMINLNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINLNG;
			}
			*p->pLong = (INT32) n; break;
		case SbxBYREF | SbxULONG:
			if( n > SbxMAXULNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXULNG;
			}
			else if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pULong = (UINT32) n; break;
		case SbxBYREF | SbxSINGLE:
			if( n > SbxMAXSNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXSNG;
			}
			else if( n < SbxMINSNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINSNG;
			}
=====================================================================
Found a 89 line (404 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_color_gray.h
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_color_gray.h

            a((value_type(a_) << 8) | c.a) {}

        //--------------------------------------------------------------------
        void clear()
        {
            v = a = 0;
        }

        //--------------------------------------------------------------------
        const self_type& transparent()
        {
            a = 0;
            return *this;
        }

        //--------------------------------------------------------------------
        void opacity(double a_)
        {
            if(a_ < 0.0) a_ = 0.0;
            if(a_ > 1.0) a_ = 1.0;
            a = value_type(a_ * double(base_mask));
        }

        //--------------------------------------------------------------------
        double opacity() const
        {
            return double(a) / double(base_mask);
        }


        //--------------------------------------------------------------------
        const self_type& premultiply()
        {
            if(a == base_mask) return *this;
            if(a == 0)
            {
                v = 0;
                return *this;
            }
            v = value_type((calc_type(v) * a) >> base_shift);
            return *this;
        }

        //--------------------------------------------------------------------
        const self_type& premultiply(unsigned a_)
        {
            if(a == base_mask && a_ >= base_mask) return *this;
            if(a == 0 || a_ == 0)
            {
                v = a = 0;
                return *this;
            }
            calc_type v_ = (calc_type(v) * a_) / a;
            v = value_type((v_ > a_) ? a_ : v_);
            a = value_type(a_);
            return *this;
        }

        //--------------------------------------------------------------------
        const self_type& demultiply()
        {
            if(a == base_mask) return *this;
            if(a == 0)
            {
                v = 0;
                return *this;
            }
            calc_type v_ = (calc_type(v) * base_mask) / a;
            v = value_type((v_ > base_mask) ? base_mask : v_);
            return *this;
        }

        //--------------------------------------------------------------------
        self_type gradient(self_type c, double k) const
        {
            self_type ret;
            calc_type ik = calc_type(k * base_size);
            ret.v = value_type(calc_type(v) + (((calc_type(c.v) - v) * ik) >> base_shift));
            ret.a = value_type(calc_type(a) + (((calc_type(c.a) - a) * ik) >> base_shift));
            return ret;
        }

        //--------------------------------------------------------------------
        static self_type no_color() { return self_type(0,0); }
    };


    //------------------------------------------------------------gray16_pre
    inline gray16 gray16_pre(unsigned v, unsigned a = gray16::base_mask)
=====================================================================
Found a 93 line (402 tokens) duplication in the following files: 
Starting at line 1859 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 2026 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

        = static_cast< Content * >( createNewContent( aContentInfo ).get() );
    if ( !xTarget.is() )
    {
        uno::Any aProps
            = uno::makeAny(beans::PropertyValue(
                                  rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                                    "Folder")),
                                  -1,
                                  uno::makeAny(aId),
                                  beans::PropertyState_DIRECT_VALUE));
        ucbhelper::cancelCommandExecution(
            ucb::IOErrorCode_CANT_CREATE,
            uno::Sequence< uno::Any >(&aProps, 1),
            xEnv,
            rtl::OUString::createFromAscii(
                "XContentCreator::createNewContent failed!" ),
            this );
        // Unreachable
    }

    //////////////////////////////////////////////////////////////////////
    // 2) Copy data from source content to child content.
    //////////////////////////////////////////////////////////////////////

    uno::Sequence< beans::Property > aSourceProps
                    = xSource->getPropertySetInfo( xEnv )->getProperties();
    sal_Int32 nCount = aSourceProps.getLength();

    if ( nCount )
    {
        sal_Bool bHadTitle = ( rInfo.NewTitle.getLength() == 0 );

        // Get all source values.
        uno::Reference< sdbc::XRow > xRow
            = xSource->getPropertyValues( aSourceProps );

        uno::Sequence< beans::PropertyValue > aValues( nCount );
        beans::PropertyValue* pValues = aValues.getArray();

        const beans::Property* pProps = aSourceProps.getConstArray();
        for ( sal_Int32 n = 0; n < nCount; ++n )
        {
            const beans::Property& rProp  = pProps[ n ];
            beans::PropertyValue&  rValue = pValues[ n ];

            rValue.Name   = rProp.Name;
            rValue.Handle = rProp.Handle;

            if ( !bHadTitle && rProp.Name.equalsAsciiL(
                                RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
            {
                // Set new title instead of original.
                bHadTitle = sal_True;
                rValue.Value <<= rInfo.NewTitle;
            }
            else
                rValue.Value
                    = xRow->getObject( n + 1,
                                       uno::Reference<
                                            container::XNameAccess >() );

            rValue.State = beans::PropertyState_DIRECT_VALUE;

            if ( rProp.Attributes & beans::PropertyAttribute::REMOVABLE )
            {
                // Add Additional Core Property.
                try
                {
                    xTarget->addProperty( rProp.Name,
                                          rProp.Attributes,
                                          rValue.Value );
                }
                catch ( beans::PropertyExistException const & )
                {
                }
                catch ( beans::IllegalTypeException const & )
                {
                }
                catch ( lang::IllegalArgumentException const & )
                {
                }
            }
        }

        // Set target values.
        xTarget->setPropertyValues( aValues, xEnv );
    }

    //////////////////////////////////////////////////////////////////////
    // 3) Commit (insert) child.
    //////////////////////////////////////////////////////////////////////

    xTarget->insert( xSource->getInputStream(), rInfo.NameClash, xEnv );
=====================================================================
Found a 87 line (402 tokens) duplication in the following files: 
Starting at line 564 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpresultsetbase.cxx
Starting at line 557 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx

	if( aPropertyName == rtl::OUString::createFromAscii( "IsRowCountFinal" ) ||
		aPropertyName == rtl::OUString::createFromAscii( "RowCount" ) )
		return;
    
	throw beans::UnknownPropertyException();
}


uno::Any SAL_CALL ResultSetBase::getPropertyValue(
	const rtl::OUString& PropertyName )
	throw( beans::UnknownPropertyException,
		   lang::WrappedTargetException,
		   uno::RuntimeException)
{
	if( PropertyName == rtl::OUString::createFromAscii( "IsRowCountFinal" ) )
	{
		uno::Any aAny;
		aAny <<= m_bRowCountFinal;
		return aAny;
	}
	else if ( PropertyName == rtl::OUString::createFromAscii( "RowCount" ) )
	{
		uno::Any aAny;
		sal_Int32 count = m_aItems.size();
		aAny <<= count;
		return aAny;
	}
	else
		throw beans::UnknownPropertyException();
}


void SAL_CALL ResultSetBase::addPropertyChangeListener(
	const rtl::OUString& aPropertyName,
	const uno::Reference< beans::XPropertyChangeListener >& xListener )
	throw( beans::UnknownPropertyException,
		   lang::WrappedTargetException,
		   uno::RuntimeException)
{
	if( aPropertyName == rtl::OUString::createFromAscii( "IsRowCountFinal" ) )
	{
		osl::MutexGuard aGuard( m_aMutex );
		if ( ! m_pIsFinalListeners )
			m_pIsFinalListeners =
				new cppu::OInterfaceContainerHelper( m_aMutex );

		m_pIsFinalListeners->addInterface( xListener );
	}
	else if ( aPropertyName == rtl::OUString::createFromAscii( "RowCount" ) )
	{
		osl::MutexGuard aGuard( m_aMutex );
		if ( ! m_pRowCountListeners )
			m_pRowCountListeners =
				new cppu::OInterfaceContainerHelper( m_aMutex );
		m_pRowCountListeners->addInterface( xListener );
	}
	else
		throw beans::UnknownPropertyException();
}


void SAL_CALL ResultSetBase::removePropertyChangeListener(
	const rtl::OUString& aPropertyName,
	const uno::Reference< beans::XPropertyChangeListener >& aListener )
	throw( beans::UnknownPropertyException,
		   lang::WrappedTargetException,
		   uno::RuntimeException)
{
	if( aPropertyName == rtl::OUString::createFromAscii( "IsRowCountFinal" ) &&
		m_pIsFinalListeners )
	{
		osl::MutexGuard aGuard( m_aMutex );
		m_pIsFinalListeners->removeInterface( aListener );
	}
	else if ( aPropertyName == rtl::OUString::createFromAscii( "RowCount" ) &&
			  m_pRowCountListeners )
	{
		osl::MutexGuard aGuard( m_aMutex );
		m_pRowCountListeners->removeInterface( aListener );
	}
	else
		throw beans::UnknownPropertyException();
}


void SAL_CALL ResultSetBase::addVetoableChangeListener(
	const rtl::OUString& PropertyName,
=====================================================================
Found a 116 line (402 tokens) duplication in the following files: 
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/sax/source/expatwrap/xml2utf.cxx
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/fastsax/xml2utf.cxx

		delete pbTempMem;
	}

	// set to correct unicode size
	seqUnicode.realloc( nTargetCount );

	return seqUnicode;
}



//----------------------------------------------
//
// Unicode2TextConverter
//
//----------------------------------------------
Unicode2TextConverter::Unicode2TextConverter( const OString &sEncoding )
{
	rtl_TextEncoding encoding = rtl_getTextEncodingFromMimeCharset( sEncoding.getStr() );
	if( RTL_TEXTENCODING_DONTKNOW == encoding ) {
		m_bCanContinue = sal_False;
		m_bInitialized = sal_False;
	}
	else {
		init( encoding );
	}

}

Unicode2TextConverter::Unicode2TextConverter( rtl_TextEncoding encoding )
{
	init( encoding );
}


Unicode2TextConverter::~Unicode2TextConverter()
{
	if( m_bInitialized ) {
		rtl_destroyUnicodeToTextContext( m_convUnicode2Text , m_contextUnicode2Text );
		rtl_destroyUnicodeToTextConverter( m_convUnicode2Text );
	}
}


Sequence<sal_Int8> Unicode2TextConverter::convert(const sal_Unicode *puSource , sal_Int32 nSourceSize)
{
	sal_Unicode *puTempMem = 0;

	if( m_seqSource.getLength() ) {
		// For surrogates !
		// put old rest and new byte sequence into one array
		// In general when surrogates are used, they should be rarely
		// cut off between two convert()-calls. So this code is used
		// rarely and the extra copy is acceptable.
		puTempMem = new sal_Unicode[ nSourceSize + m_seqSource.getLength()];
		memcpy( puTempMem ,
				m_seqSource.getConstArray() ,
				m_seqSource.getLength() * sizeof( sal_Unicode ) );
		memcpy(
			&(puTempMem[ m_seqSource.getLength() ]) ,
			puSource ,
			nSourceSize*sizeof( sal_Unicode ) );
		puSource = puTempMem;
		nSourceSize += m_seqSource.getLength();

		m_seqSource = Sequence< sal_Unicode > ();
	}


	sal_Size nTargetCount = 0;
	sal_Size nSourceCount = 0;

	sal_uInt32 uiInfo;
	sal_Size nSrcCvtChars;

	// take nSourceSize * 3 as preference
	// this is an upper boundary for converting to utf8,
	// which most often used as the target.
	sal_Int32 nSeqSize =  nSourceSize * 3;

	Sequence<sal_Int8> 	seqText( nSeqSize );
	sal_Char *pTarget = (sal_Char *) seqText.getArray();
	while( sal_True ) {

		nTargetCount += rtl_convertUnicodeToText(
									m_convUnicode2Text,
									m_contextUnicode2Text,
									&( puSource[nSourceCount] ),
									nSourceSize - nSourceCount ,
									&( pTarget[nTargetCount] ),
									nSeqSize - nTargetCount,
									RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT |
									RTL_UNICODETOTEXT_FLAGS_INVALID_DEFAULT ,
									&uiInfo,
									&nSrcCvtChars);
		nSourceCount += nSrcCvtChars;

		if( uiInfo & RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL ) {
			nSeqSize = nSeqSize *2;
			seqText.realloc( nSeqSize );  // double array size
			pTarget = ( sal_Char * ) seqText.getArray();
			continue;
		}
		break;
	}

	// for surrogates
	if( uiInfo & RTL_UNICODETOTEXT_INFO_SRCBUFFERTOSMALL ) {
		m_seqSource.realloc( nSourceSize - nSourceCount );
		memcpy( m_seqSource.getArray() ,
				&(puSource[nSourceCount]),
				(nSourceSize - nSourceCount) * sizeof( sal_Unicode ) );
	}

	if( puTempMem ) {
		delete puTempMem;
=====================================================================
Found a 86 line (401 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/solar/solar.c
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/solar.c

	signal( SIGBUS,	SignalHandler );
#else
#endif
	result = func( eT, p );
	signal( SIGSEGV,	SIG_DFL );
#ifdef UNX
	signal( SIGBUS,	SIG_DFL );
#else
#endif
  }

  if ( bSignal )
	return -1;
  else
	return 0;
#endif
}

#endif


int GetAtAddress( Type eT, void* p )
{
  switch ( eT )
  {
  case t_char:		return *((char*)p);
  case t_short:		return *((short*)p);
  case t_int:		return *((int*)p);
  case t_long:		return *((long*)p);
  case t_double:	return *((double*)p);
  }
  abort();
}

int SetAtAddress( Type eT, void* p )
{
  switch ( eT )
  {
  case t_char:		return *((char*)p)	= 0;
  case t_short:		return *((short*)p)	= 0;
  case t_int:		return *((int*)p)	= 0;
  case t_long:		return *((long*)p)	= 0;
  case t_double:	return *((double*)p)= 0;
  }
  abort();
}

char* TypeName( Type eT )
{
  switch ( eT )
  {
  case t_char:		return "char";
  case t_short:		return "short";
  case t_int:		return "int";
  case t_long:		return "long";
  case t_double:	return "double";
  }
  abort();
}

int CheckGetAccess( Type eT, void* p )
{
  int b;
  b = -1 != check( (TestFunc)GetAtAddress, eT, p );
#if OSL_DEBUG_LEVEL > 1
  fprintf( stderr,
		   "%s read %s at %p\n",
		   (b? "can" : "can not" ), TypeName(eT), p );
#endif
  return b;
}
int CheckSetAccess( Type eT, void* p )
{
  int b;
  b = -1 != check( (TestFunc)SetAtAddress, eT, p );
#if OSL_DEBUG_LEVEL > 1
  fprintf( stderr,
		   "%s write %s at %p\n",
		   (b? "can" : "can not" ), TypeName(eT), p );
#endif
  return b;
}

int GetAlignment( Type eT )
{
  char	a[ 16*8 ];
=====================================================================
Found a 92 line (401 tokens) duplication in the following files: 
Starting at line 5778 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6077 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    : pFontA(0), nMax(0)
{
    // Attention: MacWord-Documents have their Fontnames
    // always in ANSI, even if eStructCharSet == CHARSET_MAC !!
    if( rFib.lcbSttbfffn <= 2 )
    {
        ASSERT( !this, "Fonttabelle kaputt! (rFib.lcbSttbfffn < 2)" );
        pFontA = 0;
        nMax = 0;
        return;
    }

    bool bVer67 = (8 > rFib.nVersion);

    rSt.Seek( rFib.fcSttbfffn );

    // allocate Font Array
    BYTE* pA   = new BYTE[ rFib.lcbSttbfffn - 2 ];
    WW8_FFN* p = (WW8_FFN*)pA;

    if( !bVer67 )
    {
        // bVer8: read the count of strings in nMax
        rSt >> nMax;
    }

    // Ver8:  skip undefined uint16
    // Ver67: skip the herein stored total byte of structure
    //        - we already got that information in rFib.lcbSttbfffn
    rSt.SeekRel( 2 );

    // read all font information
    rSt.Read( pA, rFib.lcbSttbfffn - 2 );

    if( bVer67 )
    {
        // try to figure out how many fonts are defined here
        nMax = 0;
        long nLeft = rFib.lcbSttbfffn - 2;
        for(;;)
        {
            short nNextSiz;

            nNextSiz = p->cbFfnM1 + 1;
            if( nNextSiz > nLeft )
                break;
            nMax++;
            nLeft -= nNextSiz;
            if( nLeft < 1 )     // can we read the given ammount of bytes ?
                break;
            // increase p by nNextSiz Bytes
            p = (WW8_FFN *)( ( (BYTE*)p ) + nNextSiz );
        }
    }

    if( nMax )
    {
        // allocate Index Array
        pFontA = new WW8_FFN[ nMax ];
        p = pFontA;

        if( bVer67 )
        {
            WW8_FFN_Ver6* pVer6 = (WW8_FFN_Ver6*)pA;
            BYTE c2;
            for(USHORT i=0; i<nMax; ++i, ++p)
            {
                p->cbFfnM1   = pVer6->cbFfnM1;
                c2           = *(((BYTE*)pVer6) + 1);

                p->prg       =  c2 & 0x02;
                p->fTrueType = (c2 & 0x04) >> 2;
                // ein Reserve-Bit ueberspringen
                p->ff        = (c2 & 0x70) >> 4;

                p->wWeight   = SVBT16ToShort( *(SVBT16*)&pVer6->wWeight );
                p->chs       = pVer6->chs;
                p->ibszAlt   = pVer6->ibszAlt;
                /*
                 #i8726# 7- seems to encode the name in the same encoding as
                 the font, e.g load the doc in 97 and save to see the unicode
                 ver of the asian fontnames in that example to confirm.
                 */
                rtl_TextEncoding eEnc = WW8Fib::GetFIBCharset(p->chs);
                if ((eEnc == RTL_TEXTENCODING_SYMBOL) || (eEnc == RTL_TEXTENCODING_DONTKNOW))
                    eEnc = RTL_TEXTENCODING_MS_1252;
                p->sFontname = String(pVer6->szFfn, eEnc);
                if (p->ibszAlt)
                {
                    p->sFontname.Append(';');
                    p->sFontname += String(pVer6->szFfn+p->ibszAlt, eEnc);
                }
=====================================================================
Found a 86 line (401 tokens) duplication in the following files: 
Starting at line 192 of /local/ooo-build/ooo-build/src/oog680-m3/sal/typesconfig/typesconfig.c
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/solar.c

	signal( SIGBUS,	SignalHandler );
#else
#endif
	result = func( eT, p );
	signal( SIGSEGV,	SIG_DFL );
#ifdef UNX
	signal( SIGBUS,	SIG_DFL );
#else
#endif
  }

  if ( bSignal )
	return -1;
  else
	return 0;
#endif
}

#endif


int GetAtAddress( Type eT, void* p )
{
  switch ( eT )
  {
  case t_char:		return *((char*)p);
  case t_short:		return *((short*)p);
  case t_int:		return *((int*)p);
  case t_long:		return *((long*)p);
  case t_double:	return *((double*)p);
  }
  abort();
}

int SetAtAddress( Type eT, void* p )
{
  switch ( eT )
  {
  case t_char:		return *((char*)p)	= 0;
  case t_short:		return *((short*)p)	= 0;
  case t_int:		return *((int*)p)	= 0;
  case t_long:		return *((long*)p)	= 0;
  case t_double:	return *((double*)p)= 0;
  }
  abort();
}

char* TypeName( Type eT )
{
  switch ( eT )
  {
  case t_char:		return "char";
  case t_short:		return "short";
  case t_int:		return "int";
  case t_long:		return "long";
  case t_double:	return "double";
  }
  abort();
}

int CheckGetAccess( Type eT, void* p )
{
  int b;
  b = -1 != check( (TestFunc)GetAtAddress, eT, p );
#if OSL_DEBUG_LEVEL > 1
  fprintf( stderr,
		   "%s read %s at %p\n",
		   (b? "can" : "can not" ), TypeName(eT), p );
#endif
  return b;
}
int CheckSetAccess( Type eT, void* p )
{
  int b;
  b = -1 != check( (TestFunc)SetAtAddress, eT, p );
#if OSL_DEBUG_LEVEL > 1
  fprintf( stderr,
		   "%s write %s at %p\n",
		   (b? "can" : "can not" ), TypeName(eT), p );
#endif
  return b;
}

int GetAlignment( Type eT )
{
  char	a[ 16*8 ];
=====================================================================
Found a 57 line (401 tokens) duplication in the following files: 
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/tempnam.c
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/borland/tempnam.c

	unsigned int _psp = rand();
#endif

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", _psp );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q   = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;

   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 113 line (401 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

using namespace ::rtl;
using namespace ::com::sun::star::uno;

namespace
{

//==================================================================================================
// The call instruction within the asm section of callVirtualMethod may throw
// exceptions.  So that the compiler handles this correctly, it is important
// that (a) callVirtualMethod might call dummy_can_throw_anything (although this
// never happens at runtime), which in turn can throw exceptions, and (b)
// callVirtualMethod is not inlined at its call site (so that any exceptions are
// caught which are thrown from the instruction calling callVirtualMethod):
void callVirtualMethod(
    void * pAdjustedThisPtr,
    sal_Int32 nVtableIndex,
    void * pRegisterReturn,
    typelib_TypeClass eReturnType,
    sal_Int32 * pStackLongs,
    sal_Int32 nStackLongs ) __attribute__((noinline));

void callVirtualMethod(
    void * pAdjustedThisPtr,
    sal_Int32 nVtableIndex,
    void * pRegisterReturn,
    typelib_TypeClass eReturnType,
    sal_Int32 * pStackLongs,
    sal_Int32 nStackLongs )
{
	// parameter list is mixed list of * and values
	// reference parameters are pointers
    
	OSL_ENSURE( pStackLongs && pAdjustedThisPtr, "### null ptr!" );
	OSL_ENSURE( (sizeof(void *) == 4) && (sizeof(sal_Int32) == 4), "### unexpected size of int!" );
	OSL_ENSURE( nStackLongs && pStackLongs, "### no stack in callVirtualMethod !" );
    
    // never called
    if (! pAdjustedThisPtr) CPPU_CURRENT_NAMESPACE::dummy_can_throw_anything("xxx"); // address something

	volatile long edx = 0, eax = 0; // for register returns
    void * stackptr;
	asm volatile (
        "mov   %%esp, %6\n\t"
		// copy values
		"mov   %0, %%eax\n\t"
		"mov   %%eax, %%edx\n\t"
		"dec   %%edx\n\t"
		"shl   $2, %%edx\n\t"
		"add   %1, %%edx\n"
		"Lcopy:\n\t"
		"pushl 0(%%edx)\n\t"
		"sub   $4, %%edx\n\t"
		"dec   %%eax\n\t"
		"jne   Lcopy\n\t"
		// do the actual call
		"mov   %2, %%edx\n\t"
		"mov   0(%%edx), %%edx\n\t"
		"mov   %3, %%eax\n\t"
		"shl   $2, %%eax\n\t"
		"add   %%eax, %%edx\n\t"
		"mov   0(%%edx), %%edx\n\t"
		"call  *%%edx\n\t"
		// save return registers
 		"mov   %%eax, %4\n\t"
 		"mov   %%edx, %5\n\t"
		// cleanup stack
        "mov   %6, %%esp\n\t"
		:
        : "m"(nStackLongs), "m"(pStackLongs), "m"(pAdjustedThisPtr),
          "m"(nVtableIndex), "m"(eax), "m"(edx), "m"(stackptr)
        : "eax", "edx" );
	switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
        default:
            break;
	}
}

//================================================================================================== 
static void cpp_call(
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis,
    bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
  	// max space for: [complex ret ptr], values|ptr ...
  	char * pCppStack		=
#ifdef BROKEN_ALLOCA
  		(char *)malloc( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
=====================================================================
Found a 42 line (400 tokens) duplication in the following files: 
Starting at line 42 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/propertyids.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/propertyids.cxx

{
		const sal_Char* getPROPERTY_QUERYTIMEOUT()			{ return	"QueryTimeOut"; }
		const sal_Char* getPROPERTY_MAXFIELDSIZE()			{ return	"MaxFieldSize"; }
		const sal_Char* getPROPERTY_MAXROWS()				{ return	"MaxRows"; }
		const sal_Char* getPROPERTY_CURSORNAME()			{ return	"CursorName"; }
		const sal_Char* getPROPERTY_RESULTSETCONCURRENCY()	{ return	"ResultSetConcurrency"; }
		const sal_Char* getPROPERTY_RESULTSETTYPE()			{ return	"ResultSetType"; }
		const sal_Char* getPROPERTY_FETCHDIRECTION()		{ return	"FetchDirection"; }
		const sal_Char* getPROPERTY_FETCHSIZE()				{ return	"FetchSize"; }
		const sal_Char* getPROPERTY_ESCAPEPROCESSING()		{ return	"EscapeProcessing"; }
		const sal_Char* getPROPERTY_USEBOOKMARKS()			{ return	"UseBookmarks"; }
															
		const sal_Char* getPROPERTY_NAME()					{ return	"Name"; }
		const sal_Char* getPROPERTY_TYPE()					{ return	"Type"; }
		const sal_Char* getPROPERTY_TYPENAME()				{ return 	"TypeName"; }
		const sal_Char* getPROPERTY_PRECISION()				{ return 	"Precision"; }
		const sal_Char* getPROPERTY_SCALE()					{ return 	"Scale"; }
		const sal_Char* getPROPERTY_ISNULLABLE()			{ return 	"IsNullable"; }
		const sal_Char* getPROPERTY_ISAUTOINCREMENT()		{ return 	"IsAutoIncrement"; }
		const sal_Char* getPROPERTY_ISROWVERSION()			{ return 	"IsRowVersion"; }
		const sal_Char* getPROPERTY_DESCRIPTION()			{ return 	"Description"; }
		const sal_Char* getPROPERTY_DEFAULTVALUE()			{ return 	"DefaultValue"; }
																		
		const sal_Char* getPROPERTY_REFERENCEDTABLE()		{ return 	"ReferencedTable"; }
		const sal_Char* getPROPERTY_UPDATERULE()			{ return 	"UpdateRule"; }
		const sal_Char* getPROPERTY_DELETERULE()			{ return 	"DeleteRule"; }
		const sal_Char* getPROPERTY_CATALOG()				{ return 	"Catalog"; }
		const sal_Char* getPROPERTY_ISUNIQUE()				{ return 	"IsUnique"; }
		const sal_Char* getPROPERTY_ISPRIMARYKEYINDEX()		{ return 	"IsPrimaryKeyIndex"; }
		const sal_Char* getPROPERTY_ISCLUSTERED()			{ return 	"IsClustered"; }
		const sal_Char* getPROPERTY_ISASCENDING()			{ return 	"IsAscending"; }
		const sal_Char* getPROPERTY_SCHEMANAME()			{ return 	"SchemaName"; }
		const sal_Char* getPROPERTY_CATALOGNAME()			{ return 	"CatalogName"; }
		const sal_Char* getPROPERTY_COMMAND()				{ return 	"Command"; }
		const sal_Char* getPROPERTY_CHECKOPTION()			{ return 	"CheckOption"; }
		const sal_Char* getPROPERTY_PASSWORD()				{ return 	"Password"; }
		const sal_Char* getPROPERTY_RELATEDCOLUMN()			{ return 	"RelatedColumn"; }
																		
		const sal_Char* getSTAT_INVALID_INDEX()				{ return 	"Invalid descriptor index"; }
																		
		const sal_Char* getPROPERTY_FUNCTION()				{ return 	"Function"; }
		const sal_Char* getPROPERTY_TABLENAME()				{ return 	"TableName"; }
=====================================================================
Found a 14 line (398 tokens) duplication in the following files: 
Starting at line 5223 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 5835 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

    const int8u mcs6x11_mono[] = 
    {
        11, 3, 32, 128-32,
        0x00,0x00,0x0C,0x00,0x18,0x00,0x24,0x00,0x30,0x00,0x3C,0x00,0x48,0x00,0x54,0x00,0x60,0x00,
        0x6C,0x00,0x78,0x00,0x84,0x00,0x90,0x00,0x9C,0x00,0xA8,0x00,0xB4,0x00,0xC0,0x00,0xCC,0x00,
        0xD8,0x00,0xE4,0x00,0xF0,0x00,0xFC,0x00,0x08,0x01,0x14,0x01,0x20,0x01,0x2C,0x01,0x38,0x01,
        0x44,0x01,0x50,0x01,0x5C,0x01,0x68,0x01,0x74,0x01,0x80,0x01,0x8C,0x01,0x98,0x01,0xA4,0x01,
        0xB0,0x01,0xBC,0x01,0xC8,0x01,0xD4,0x01,0xE0,0x01,0xEC,0x01,0xF8,0x01,0x04,0x02,0x10,0x02,
        0x1C,0x02,0x28,0x02,0x34,0x02,0x40,0x02,0x4C,0x02,0x58,0x02,0x64,0x02,0x70,0x02,0x7C,0x02,
        0x88,0x02,0x94,0x02,0xA0,0x02,0xAC,0x02,0xB8,0x02,0xC4,0x02,0xD0,0x02,0xDC,0x02,0xE8,0x02,
        0xF4,0x02,0x00,0x03,0x0C,0x03,0x18,0x03,0x24,0x03,0x30,0x03,0x3C,0x03,0x48,0x03,0x54,0x03,
        0x60,0x03,0x6C,0x03,0x78,0x03,0x84,0x03,0x90,0x03,0x9C,0x03,0xA8,0x03,0xB4,0x03,0xC0,0x03,
        0xCC,0x03,0xD8,0x03,0xE4,0x03,0xF0,0x03,0xFC,0x03,0x08,0x04,0x14,0x04,0x20,0x04,0x2C,0x04,
        0x38,0x04,0x44,0x04,0x50,0x04,0x5C,0x04,0x68,0x04,0x74,0x04,
=====================================================================
Found a 14 line (398 tokens) duplication in the following files: 
Starting at line 3693 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 3999 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

    const int8u mcs11_prop_condensed[] = 
    {
        11, 2, 32, 128-32,
        0x00,0x00,0x0C,0x00,0x18,0x00,0x24,0x00,0x30,0x00,0x3C,0x00,0x48,0x00,0x54,0x00,0x60,0x00,
        0x6C,0x00,0x78,0x00,0x84,0x00,0x90,0x00,0x9C,0x00,0xA8,0x00,0xB4,0x00,0xC0,0x00,0xCC,0x00,
        0xD8,0x00,0xE4,0x00,0xF0,0x00,0xFC,0x00,0x08,0x01,0x14,0x01,0x20,0x01,0x2C,0x01,0x38,0x01,
        0x44,0x01,0x50,0x01,0x5C,0x01,0x68,0x01,0x74,0x01,0x80,0x01,0x8C,0x01,0x98,0x01,0xA4,0x01,
        0xB0,0x01,0xBC,0x01,0xC8,0x01,0xD4,0x01,0xE0,0x01,0xEC,0x01,0xF8,0x01,0x04,0x02,0x10,0x02,
        0x1C,0x02,0x28,0x02,0x34,0x02,0x40,0x02,0x4C,0x02,0x58,0x02,0x64,0x02,0x70,0x02,0x7C,0x02,
        0x88,0x02,0x94,0x02,0xA0,0x02,0xAC,0x02,0xB8,0x02,0xC4,0x02,0xD0,0x02,0xDC,0x02,0xE8,0x02,
        0xF4,0x02,0x00,0x03,0x0C,0x03,0x18,0x03,0x24,0x03,0x30,0x03,0x3C,0x03,0x48,0x03,0x54,0x03,
        0x60,0x03,0x6C,0x03,0x78,0x03,0x84,0x03,0x90,0x03,0x9C,0x03,0xA8,0x03,0xB4,0x03,0xC0,0x03,
        0xCC,0x03,0xD8,0x03,0xE4,0x03,0xF0,0x03,0xFC,0x03,0x08,0x04,0x14,0x04,0x20,0x04,0x2C,0x04,
        0x38,0x04,0x44,0x04,0x50,0x04,0x5C,0x04,0x68,0x04,0x74,0x04,
=====================================================================
Found a 15 line (398 tokens) duplication in the following files: 
Starting at line 939 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 1551 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

    const int8u gse6x9[] = 
    {
        9, 0, 32, 128-32,

        0x00,0x00,0x0a,0x00,0x14,0x00,0x1e,0x00,0x28,0x00,0x32,0x00,0x3c,0x00,0x46,0x00,0x50,0x00,
        0x5a,0x00,0x64,0x00,0x6e,0x00,0x78,0x00,0x82,0x00,0x8c,0x00,0x96,0x00,0xa0,0x00,0xaa,0x00,
        0xb4,0x00,0xbe,0x00,0xc8,0x00,0xd2,0x00,0xdc,0x00,0xe6,0x00,0xf0,0x00,0xfa,0x00,0x04,0x01,
        0x0e,0x01,0x18,0x01,0x22,0x01,0x2c,0x01,0x36,0x01,0x40,0x01,0x4a,0x01,0x54,0x01,0x5e,0x01,
        0x68,0x01,0x72,0x01,0x7c,0x01,0x86,0x01,0x90,0x01,0x9a,0x01,0xa4,0x01,0xae,0x01,0xb8,0x01,
        0xc2,0x01,0xcc,0x01,0xd6,0x01,0xe0,0x01,0xea,0x01,0xf4,0x01,0xfe,0x01,0x08,0x02,0x12,0x02,
        0x1c,0x02,0x26,0x02,0x30,0x02,0x3a,0x02,0x44,0x02,0x4e,0x02,0x58,0x02,0x62,0x02,0x6c,0x02,
        0x76,0x02,0x80,0x02,0x8a,0x02,0x94,0x02,0x9e,0x02,0xa8,0x02,0xb2,0x02,0xbc,0x02,0xc6,0x02,
        0xd0,0x02,0xda,0x02,0xe4,0x02,0xee,0x02,0xf8,0x02,0x02,0x03,0x0c,0x03,0x16,0x03,0x20,0x03,
        0x2a,0x03,0x34,0x03,0x3e,0x03,0x48,0x03,0x52,0x03,0x5c,0x03,0x66,0x03,0x70,0x03,0x7a,0x03,
        0x84,0x03,0x8e,0x03,0x98,0x03,0xa2,0x03,0xac,0x03,0xb6,0x03,
=====================================================================
Found a 30 line (398 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/parseAFM.cxx
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/parseAFM.cxx

    false, false,  true,  true, false, false, false, false, // 56-63
    
    false, false, false, false, false, false, false, false, // 64 -
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false, // 127
    
    false, false, false, false, false, false, false, false, // 128 -
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false, // 191

    false, false, false, false, false, false, false, false, // 192 -
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false, // 255
};
static char *token( FileInputStream* stream, int& rLen )
=====================================================================
Found a 86 line (398 tokens) duplication in the following files: 
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/attributelist.cxx
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx

sal_Int16 AttributeListImpl::getLength(void) throw  (RuntimeException)
{
	return m_pImpl->vecAttribute.size();
}


AttributeListImpl::AttributeListImpl( const AttributeListImpl &r )
{
	m_pImpl = new AttributeListImpl_impl;
	*m_pImpl = *(r.m_pImpl);
}

OUString AttributeListImpl::getNameByIndex(sal_Int16 i) throw  (RuntimeException)
{
	if( i < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sName;
	}
	return OUString();
}


OUString AttributeListImpl::getTypeByIndex(sal_Int16 i) throw  (RuntimeException)
{
	if( i < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sType;
	}
	return OUString();
}

OUString AttributeListImpl::getValueByIndex(sal_Int16 i) throw  (RuntimeException)
{
	if( i < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw  (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString AttributeListImpl::getValueByName(const OUString& sName) throw  (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}



AttributeListImpl::AttributeListImpl()
{
	m_pImpl = new AttributeListImpl_impl;
}



AttributeListImpl::~AttributeListImpl()
{
	delete m_pImpl;
}


void AttributeListImpl::addAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}

void AttributeListImpl::clear()
{
=====================================================================
Found a 89 line (397 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hprophelp.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/prophelp.cxx

}


void PropertyChgHelper::AddAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->addPropertyChangeListener( pPropName[i], this );
		}
	}
}

void PropertyChgHelper::RemoveAsPropListener()
{
	if (xPropSet.is())
	{
		INT32 nLen = aPropNames.getLength();
		const OUString *pPropName = aPropNames.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			if (pPropName[i].getLength())
				xPropSet->removePropertyChangeListener( pPropName[i], this );
		}
	}
}


void PropertyChgHelper::LaunchEvent( const LinguServiceEvent &rEvt )
{
	cppu::OInterfaceIteratorHelper aIt( aLngSvcEvtListeners );
	while (aIt.hasMoreElements())
	{
		Reference< XLinguServiceEventListener > xRef( aIt.next(), UNO_QUERY );
		if (xRef.is())
			xRef->processLinguServiceEvent( rEvt );
	}
}


void SAL_CALL PropertyChgHelper::disposing( const EventObject& rSource )
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	if (rSource.Source == xPropSet)
	{
		RemoveAsPropListener();
		xPropSet = NULL;
		aPropNames.realloc( 0 );
	}
}


sal_Bool SAL_CALL
	PropertyChgHelper::addLinguServiceEventListener(
			const Reference< XLinguServiceEventListener >& rxListener )
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );

	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.addInterface( rxListener ) != nCount;
	}
	return bRes;
}


sal_Bool SAL_CALL
	PropertyChgHelper::removeLinguServiceEventListener(
			const Reference< XLinguServiceEventListener >& rxListener )
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );

	BOOL bRes = FALSE;
	if (rxListener.is())
	{
		INT32	nCount = aLngSvcEvtListeners.getLength();
		bRes = aLngSvcEvtListeners.removeInterface( rxListener ) != nCount;
	}
	return bRes;
}
=====================================================================
Found a 128 line (397 tokens) duplication in the following files: 
Starting at line 1653 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1247 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx

int yyFlexLexer::yy_get_next_buffer()
	{
	register char *dest = yy_current_buffer->yy_ch_buf;
	register char *source = yytext_ptr;
	register int number_to_move, i;
	int ret_val;

	if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	if ( yy_current_buffer->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a single character, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;

	for ( i = 0; i < number_to_move; ++i )
		*(dest++) = *(source++);

	if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_current_buffer->yy_n_chars = yy_n_chars = 0;

	else
		{
		int num_to_read =
			yy_current_buffer->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
			YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else

			/* just a shorter name for the current buffer */
			YY_BUFFER_STATE b = yy_current_buffer;

			int yy_c_buf_p_offset =
				(int) (yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yy_flex_realloc( (void *) b->yy_ch_buf,
							 b->yy_buf_size + 2 );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

			if ( ! b->yy_ch_buf )
				YY_FATAL_ERROR(
				"fatal error - scanner input buffer overflow" );

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

			num_to_read = yy_current_buffer->yy_buf_size -
						number_to_move - 1;
#endif
			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

		/* Read in more data. */
		YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
			yy_n_chars, num_to_read );

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	if ( yy_n_chars == 0 )
		{
		if ( number_to_move == YY_MORE_ADJ )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			yyrestart( yyin );
			}

		else
			{
			ret_val = EOB_ACT_LAST_MATCH;
			yy_current_buffer->yy_buffer_status =
				YY_BUFFER_EOF_PENDING;
			}
		}

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

	yy_n_chars += number_to_move;
	yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
	yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}
=====================================================================
Found a 105 line (397 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Aservices.cxx

	OSL_ENSURE(xNewKey.is(), "ADO::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(...)
		{
		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
			ODriver::getImplementationName_Static(),
			ODriver::getSupportedServiceNames_Static(), xKey);

		return sal_True;
	}
	catch (::com::sun::star::registry::InvalidRegistryException& )
	{
		OSL_ENSURE(sal_False, "ODBC::component_writeInfo : could not create a registry key ! ## InvalidRegistryException !");
	}

	return sal_False;
}

//---------------------------------------------------------------------------------------
extern "C" void* SAL_CALL component_getFactory(
					const sal_Char* pImplementationName,
					void* pServiceManager,
					void* /*pRegistryKey*/)
{
	void* pRet = 0;
	if (pServiceManager)
	{
		ProviderRequest aReq(pServiceManager,pImplementationName);

		aReq.CREATE_PROVIDER(
			ODriver::getImplementationName_Static(),
			ODriver::getSupportedServiceNames_Static(),
			ODriver_CreateInstance, ::cppu::createSingleFactory)
		;

		if(aReq.xRet.is())
			aReq.xRet->acquire();

		pRet = aReq.getProvider();
	}

	return pRet;
};
=====================================================================
Found a 65 line (397 tokens) duplication in the following files: 
Starting at line 3341 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/classes/sbunoobj.cxx
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/eventattacher/source/eventattacher.cxx

class InvocationToAllListenerMapper : public WeakImplHelper1< XInvocation >
{
public:
	InvocationToAllListenerMapper( const Reference< XIdlClass >& ListenerType, 
		const Reference< XAllListener >& AllListener, const Any& Helper );

	// XInvocation
    virtual Reference< XIntrospectionAccess > SAL_CALL getIntrospection(void) throw( RuntimeException );
    virtual Any SAL_CALL invoke(const OUString& FunctionName, const Sequence< Any >& Params, Sequence< sal_Int16 >& OutParamIndex, Sequence< Any >& OutParam) 
		throw( IllegalArgumentException, CannotConvertException, InvocationTargetException, RuntimeException );
    virtual void SAL_CALL setValue(const OUString& PropertyName, const Any& Value) 
		throw( UnknownPropertyException, CannotConvertException, InvocationTargetException, RuntimeException );
    virtual Any SAL_CALL getValue(const OUString& PropertyName) throw( UnknownPropertyException, RuntimeException );
    virtual sal_Bool SAL_CALL hasMethod(const OUString& Name) throw( RuntimeException );
    virtual sal_Bool SAL_CALL hasProperty(const OUString& Name) throw( RuntimeException );

private:
	Reference< XIdlReflection >  m_xCoreReflection;
	Reference< XAllListener >	 m_xAllListener;
	Reference< XIdlClass >  	 m_xListenerType;
	Any 						 m_Helper;
};


// Function to replace AllListenerAdapterService::createAllListerAdapter
Reference< XInterface > createAllListenerAdapter
(
	const Reference< XInvocationAdapterFactory >& xInvocationAdapterFactory,
	const Reference< XIdlClass >& xListenerType,
	const Reference< XAllListener >& xListener,
	const Any& Helper
)
{
	Reference< XInterface > xAdapter;
	if( xInvocationAdapterFactory.is() && xListenerType.is() && xListener.is() )
	{
	   Reference< XInvocation >	xInvocationToAllListenerMapper =
			(XInvocation*)new InvocationToAllListenerMapper( xListenerType, xListener, Helper );
		Type aListenerType( xListenerType->getTypeClass(), xListenerType->getName());
		xAdapter = xInvocationAdapterFactory->createAdapter( xInvocationToAllListenerMapper, aListenerType );
	}
	return xAdapter;
}


//--------------------------------------------------------------------------------------------------
// InvocationToAllListenerMapper
InvocationToAllListenerMapper::InvocationToAllListenerMapper
	( const Reference< XIdlClass >& ListenerType, const Reference< XAllListener >& AllListener, const Any& Helper )
		: m_xAllListener( AllListener )
		, m_xListenerType( ListenerType )
		, m_Helper( Helper )
{
}

//*************************************************************************
Reference< XIntrospectionAccess > SAL_CALL InvocationToAllListenerMapper::getIntrospection(void) 
	throw( RuntimeException )
{
	return Reference< XIntrospectionAccess >();
}

//*************************************************************************
Any SAL_CALL InvocationToAllListenerMapper::invoke(const OUString& FunctionName, const Sequence< Any >& Params, 
	Sequence< sal_Int16 >& , Sequence< Any >& ) 
=====================================================================
Found a 136 line (396 tokens) duplication in the following files: 
Starting at line 1217 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unoedit/unofored.cxx

	return rEditEngine.CalcFieldValue( rField, nPara, nPos, rpTxtColor, rpFldColor );
}

USHORT GetSvxEditEngineItemState( EditEngine& rEditEngine, const ESelection& rSel, USHORT nWhich )
{
	EECharAttribArray aAttribs;

	const SfxPoolItem*	pLastItem = NULL;

	SfxItemState eState = SFX_ITEM_DEFAULT;

	// check all paragraphs inside the selection
	for( USHORT nPara = rSel.nStartPara; nPara <= rSel.nEndPara; nPara++ )
	{
		SfxItemState eParaState = SFX_ITEM_DEFAULT;

		// calculate start and endpos for this paragraph
		USHORT nPos = 0;
		if( rSel.nStartPara == nPara )
			nPos = rSel.nStartPos;

		USHORT nEndPos = rSel.nEndPos;
		if( rSel.nEndPara != nPara )
			nEndPos = rEditEngine.GetTextLen( nPara );


		// get list of char attribs
		rEditEngine.GetCharAttribs( nPara, aAttribs );

		BOOL bEmpty = TRUE;		// we found no item inside the selektion of this paragraph
		BOOL bGaps  = FALSE;	// we found items but theire gaps between them
		USHORT nLastEnd = nPos;

		const SfxPoolItem* pParaItem = NULL;

		for( USHORT nAttrib = 0; nAttrib < aAttribs.Count(); nAttrib++ )
		{
			struct EECharAttrib aAttrib = aAttribs.GetObject( nAttrib );
			DBG_ASSERT( aAttrib.pAttr, "GetCharAttribs gives corrupt data" );

			const sal_Bool bEmptyPortion = aAttrib.nStart == aAttrib.nEnd;
			if( (!bEmptyPortion && (aAttrib.nStart >= nEndPos)) || (bEmptyPortion && (aAttrib.nStart > nEndPos)) )
				break;	// break if we are already behind our selektion

			if( (!bEmptyPortion && (aAttrib.nEnd <= nPos)) || (bEmptyPortion && (aAttrib.nEnd < nPos)) )
				continue;	// or if the attribute ends before our selektion

			if( aAttrib.pAttr->Which() != nWhich )
				continue; // skip if is not the searched item

			// if we already found an item
			if( pParaItem )
			{
				// ... and its different to this one than the state is dont care
				if( *pParaItem != *aAttrib.pAttr )
					return SFX_ITEM_DONTCARE;
			}
			else
			{
				pParaItem = aAttrib.pAttr;
			}

			if( bEmpty )
				bEmpty = FALSE;

			if( !bGaps && aAttrib.nStart > nLastEnd )
				bGaps = TRUE;

			nLastEnd = aAttrib.nEnd;
		}

		if( !bEmpty && !bGaps && nLastEnd < ( nEndPos - 1 ) )
			bGaps = TRUE;
/*
		// since we have no portion with our item or if there were gaps
		if( bEmpty || bGaps )
		{
			// we need to check the paragraph item
			const SfxItemSet& rParaSet = rEditEngine.GetParaAttribs( nPara );
			if( rParaSet.GetItemState( nWhich ) == SFX_ITEM_SET )
			{
				eState = SFX_ITEM_SET;
				// get item from the paragraph
				const SfxPoolItem* pTempItem = rParaSet.GetItem( nWhich );
				if( pParaItem )
				{
					if( *pParaItem != *pTempItem )
						return SFX_ITEM_DONTCARE;
				} 
				else
				{
					pParaItem = pTempItem;
				}

				// set if theres no last item or if its the same
				eParaState = SFX_ITEM_SET;
			}
			else if( bEmpty )
			{
				eParaState = SFX_ITEM_DEFAULT;
			}
			else if( bGaps )
			{
				// gaps and item not set in paragraph, thats a dont care
				return SFX_ITEM_DONTCARE;
			}
		}
		else
		{
			eParaState = SFX_ITEM_SET;
		}
*/
		if( bEmpty )
			eParaState = SFX_ITEM_DEFAULT;
		else if( bGaps )
			eParaState = SFX_ITEM_DONTCARE;
		else
			eParaState = SFX_ITEM_SET;

		// if we already found an item check if we found the same
		if( pLastItem )
		{
			if( (pParaItem == NULL) || (*pLastItem != *pParaItem) )
				return SFX_ITEM_DONTCARE;
		}
		else
		{
			pLastItem = pParaItem;
			eState = eParaState;
		}
	}

	return eState;
}

USHORT SvxEditEngineForwarder::GetItemState( const ESelection& rSel, USHORT nWhich ) const
=====================================================================
Found a 87 line (395 tokens) duplication in the following files: 
Starting at line 613 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 628 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

	const OUString& /*aTarget*/, const OUString& /*aData*/ )
throw(	SAXException, RuntimeException )
{
}

void SAL_CALL OReadImagesDocumentHandler::setDocumentLocator(
	const Reference< XLocator > &xLocator)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	m_xLocator = xLocator;
}

::rtl::OUString OReadImagesDocumentHandler::getErrorLineString()
{
	ResetableGuard aGuard( m_aLock );

	char buffer[32];

	if ( m_xLocator.is() )
	{
		snprintf( buffer, sizeof(buffer), "Line: %ld - ", m_xLocator->getLineNumber() );
		return OUString::createFromAscii( buffer );
	}
	else
		return OUString();
}


//_________________________________________________________________________________________________________________
//	OWriteImagesDocumentHandler
//_________________________________________________________________________________________________________________

OWriteImagesDocumentHandler::OWriteImagesDocumentHandler(
	const ImageListsDescriptor& aItems,
	Reference< XDocumentHandler > rWriteDocumentHandler ) :
    ThreadHelpBase( &Application::GetSolarMutex() ),
	m_aImageListsItems( aItems ),
	m_xWriteDocumentHandler( rWriteDocumentHandler )
{
	m_xEmptyList			= Reference< XAttributeList >( (XAttributeList *)new AttributeListImpl, UNO_QUERY );
	m_aAttributeType		= OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_TYPE_CDATA ));
	m_aXMLImageNS			= OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_IMAGE_PREFIX ));
	m_aXMLXlinkNS			= OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_XLINK_PREFIX ));
	m_aAttributeXlinkType	= OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XLINK_TYPE ));
	m_aAttributeValueSimple = OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XLINK_TYPE_VALUE ));
}

OWriteImagesDocumentHandler::~OWriteImagesDocumentHandler()
{
}

void OWriteImagesDocumentHandler::WriteImagesDocument() throw
( SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	m_xWriteDocumentHandler->startDocument();

	// write DOCTYPE line!
	Reference< XExtendedDocumentHandler > xExtendedDocHandler( m_xWriteDocumentHandler, UNO_QUERY );
	if ( xExtendedDocHandler.is() )
	{
		xExtendedDocHandler->unknown( OUString( RTL_CONSTASCII_USTRINGPARAM( IMAGES_DOCTYPE )) );
		m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	}

	AttributeListImpl* pList = new AttributeListImpl;
	Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY );

	pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XMLNS_IMAGE )),
						 m_aAttributeType,
						 OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_IMAGE )) );

	pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XMLNS_XLINK )),
						 m_aAttributeType,
						 OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_XLINK )) );

	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_IMAGESCONTAINER )), pList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );

	if ( m_aImageListsItems.pImageList )
	{
		ImageListDescriptor* pImageList = m_aImageListsItems.pImageList;

		for ( USHORT i = 0; i < m_aImageListsItems.pImageList->Count(); i++ )
=====================================================================
Found a 74 line (394 tokens) duplication in the following files: 
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 28 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

    Tokenrow *def, *args;
	static uchar location[(PATH_MAX + 8) * NINC], *cp;

    tp = trp->tp + 1;
    if (tp >= trp->lp || tp->type != NAME)
    {
        error(ERROR, "#defined token is not a name");
        return;
    }
    np = lookup(tp, 1);
    if (np->flag & ISUNCHANGE)
    {
        error(ERROR, "#defined token %t can't be redefined", tp);
        return;
    }
    /* collect arguments */
    tp += 1;
    args = NULL;
    if (tp < trp->lp && tp->type == LP && tp->wslen == 0)
    {
        /* macro with args */
        int narg = 0;

        tp += 1;
        args = new(Tokenrow);
        maketokenrow(2, args);
        if (tp->type != RP)
        {
            int err = 0;

            for (;;)
            {
                Token *atp;

                if (tp->type != NAME)
                {
                    err++;
                    break;
                }
                if (narg >= args->max)
                    growtokenrow(args);
                for (atp = args->bp; atp < args->lp; atp++)
                    if (atp->len == tp->len
                        && strncmp((char *) atp->t, (char *) tp->t, tp->len) == 0)
                        error(ERROR, "Duplicate macro argument");
                *args->lp++ = *tp;
                narg++;
                tp += 1;
                if (tp->type == RP)
                    break;
                if (tp->type != COMMA)
                {
                    err++;
                    break;
                }
                tp += 1;
            }
            if (err)
            {
                error(ERROR, "Syntax error in macro parameters");
                return;
            }
        }
        tp += 1;
    }
    trp->tp = tp;
    if (((trp->lp) - 1)->type == NL)
        trp->lp -= 1;
    def = normtokenrow(trp);
    if (np->flag & ISDEFINED)
    {
        if (comparetokens(def, np->vp)
            || (np->ap == NULL) != (args == NULL)
            || (np->ap && comparetokens(args, np->ap)))
=====================================================================
Found a 69 line (394 tokens) duplication in the following files: 
Starting at line 111 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propertysethelper.cxx
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/property/propertysethelper.cxx

	delete mp;
}

// XPropertySet
Reference< XPropertySetInfo > SAL_CALL PropertySetHelper::getPropertySetInfo(  ) throw(RuntimeException)
{
	return mp->mpInfo;
}

void SAL_CALL PropertySetHelper::setPropertyValue( const ::rtl::OUString& aPropertyName, const Any& aValue ) throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
	PropertyMapEntry* aEntries[2];
	aEntries[0] = mp->find( aPropertyName );

	if( NULL == aEntries[0] )
		throw UnknownPropertyException();

	aEntries[1] = NULL;

	_setPropertyValues( (const PropertyMapEntry**)aEntries, &aValue );
}

Any SAL_CALL PropertySetHelper::getPropertyValue( const ::rtl::OUString& PropertyName ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
	PropertyMapEntry* aEntries[2];
	aEntries[0] = mp->find( PropertyName );

	if( NULL == aEntries[0] )
		throw UnknownPropertyException();

	aEntries[1] = NULL;

	Any aAny;
	_getPropertyValues( (const PropertyMapEntry**)aEntries, &aAny );

	return aAny;
}

void SAL_CALL PropertySetHelper::addPropertyChangeListener( const ::rtl::OUString& /*aPropertyName*/, const Reference< XPropertyChangeListener >& /*xListener*/ ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
	// todo
}

void SAL_CALL PropertySetHelper::removePropertyChangeListener( const ::rtl::OUString& /*aPropertyName*/, const Reference< XPropertyChangeListener >& /*aListener*/ ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
	// todo
}

void SAL_CALL PropertySetHelper::addVetoableChangeListener( const ::rtl::OUString& /*PropertyName*/, const Reference< XVetoableChangeListener >& /*aListener*/ ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
	// todo
}

void SAL_CALL PropertySetHelper::removeVetoableChangeListener( const ::rtl::OUString& /*PropertyName*/, const Reference< XVetoableChangeListener >& /*aListener*/ ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
	// todo
}

// XMultiPropertySet
void SAL_CALL PropertySetHelper::setPropertyValues( const Sequence< ::rtl::OUString >& aPropertyNames, const Sequence< Any >& aValues ) throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
	const sal_Int32 nCount = aPropertyNames.getLength();

	if( nCount != aValues.getLength() )
		throw IllegalArgumentException();

	if( nCount )
	{
		PropertyMapEntry** pEntries = new PropertyMapEntry*[nCount+1];
=====================================================================
Found a 81 line (394 tokens) duplication in the following files: 
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataPointProperties.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/FillProperties.cxx

                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    //optional
//    rOutProperties.push_back(
//        Property( C2U( "FillBitmap" ),
//                  FillProperties::PROP_FILL_BITMAP,
//                  ::getCppuType( reinterpret_cast< const uno::Reference< awt::XBitmap > * >(0)),
//                  beans::PropertyAttribute::BOUND
//                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    //optional
//    rOutProperties.push_back(
//        Property( C2U( "FillBitmapURL" ),
//                  FillProperties::PROP_FILL_BITMAP_URL,
//                  ::getCppuType( reinterpret_cast< const ::rtl::OUString * >(0)),
//                  beans::PropertyAttribute::BOUND
//                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    rOutProperties.push_back(
        Property( C2U( "FillBitmapOffsetX" ),
                  FillProperties::PROP_FILL_BITMAP_OFFSETX,
                  ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    rOutProperties.push_back(
        Property( C2U( "FillBitmapOffsetY" ),
                  FillProperties::PROP_FILL_BITMAP_OFFSETY,
                  ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    rOutProperties.push_back(
        Property( C2U( "FillBitmapPositionOffsetX" ),
                  FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX,
                  ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    rOutProperties.push_back(
        Property( C2U( "FillBitmapPositionOffsetY" ),
                  FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY,
                  ::getCppuType( reinterpret_cast< const sal_Int16 * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));


    rOutProperties.push_back(
        Property( C2U( "FillBitmapRectanglePoint" ),
                  FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT,
                  ::getCppuType( reinterpret_cast< const drawing::RectanglePoint * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    rOutProperties.push_back(
        Property( C2U( "FillBitmapLogicalSize" ),
                  FillProperties::PROP_FILL_BITMAP_LOGICALSIZE,
                  ::getCppuType( reinterpret_cast< const sal_Bool * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    rOutProperties.push_back(
        Property( C2U( "FillBitmapSizeX" ),
                  FillProperties::PROP_FILL_BITMAP_SIZEX,
                  ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    rOutProperties.push_back(
        Property( C2U( "FillBitmapSizeY" ),
                  FillProperties::PROP_FILL_BITMAP_SIZEY,
                  ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));

    rOutProperties.push_back(
        Property( C2U( "FillBitmapMode" ),
                  FillProperties::PROP_FILL_BITMAP_MODE,
                  ::getCppuType( reinterpret_cast< const drawing::BitmapMode * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));
=====================================================================
Found a 52 line (393 tokens) duplication in the following files: 
Starting at line 662 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 735 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        {0x7629, 4, L_FIX}, // "sprmTTextFlow" tap.rgtc[].fVerticaltap,
                            // rgtc[].fBackwardtap, rgtc[].fRotateFont;0 or 10
                            // or 10 or 1;word;
        {0xD62A, 1, L_FIX}, // "sprmTDiagLine" ;;;
        {0xD62B, 0, L_VAR}, // "sprmTVertMerge" tap.rgtc[].vertMerge
        {0xD62C, 0, L_VAR}, // "sprmTVertAlign" tap.rgtc[].vertAlign
        {0xCA78, 0, L_VAR}, // undocumented "sprmCDoubleLine ?"
        {0x6649, 4, L_FIX}, // undocumented
        {0xF614, 3, L_FIX}, // undocumented
        {0xD612, 0, L_VAR}, // undocumented, new background colours.
        {0xD613, 0, L_VAR}, // undocumented
        {0xD61A, 0, L_VAR}, // undocumented
        {0xD61B, 0, L_VAR}, // undocumented
        {0xD61C, 0, L_VAR}, // undocumented
        {0xD61D, 0, L_VAR}, // undocumented
        {0xD632, 0, L_VAR}, // undocumented
        {0xD634, 0, L_VAR}, // undocumented
        {0xD238, 0, L_VAR}, // undocumented sep
        {0xC64E, 0, L_VAR}, // undocumented
        {0xC64F, 0, L_VAR}, // undocumented
        {0xC650, 0, L_VAR}, // undocumented
        {0xC651, 0, L_VAR}, // undocumented
        {0xF661, 3, L_FIX}, // undocumented
        {0x4873, 2, L_FIX}, // undocumented
        {0x4874, 2, L_FIX}, // undocumented
        {0x6463, 4, L_FIX}, // undocumented
        {0x2461, 1, L_FIX}, // undoc, must be asian version of "sprmPJc"
        {0x845D, 2, L_FIX}, // undoc, must be asian version of "sprmPDxaRight"
        {0x845E, 2, L_FIX}, // undoc, must be asian version of "sprmPDxaLeft"
        {0x8460, 2, L_FIX}, // undoc, must be asian version of "sprmPDxaLeft1"
        {0x3615, 1, L_FIX}, // undocumented
        {0x360D, 1, L_FIX}, // undocumented
        {0x703A, 4, L_FIX}, // undocumented, sep, perhaps related to textgrids ?
        {0x303B, 1, L_FIX}, // undocumented, sep
        {0x244B, 1, L_FIX}, // undocumented, subtable "sprmPFInTable" equiv ?
        {0x244C, 1, L_FIX}, // undocumented, subtable "sprmPFTtp" equiv ?
        {0x940E, 2, L_FIX}, // undocumented
        {0x940F, 2, L_FIX}, // undocumented
        {0x9410, 2, L_FIX}, // undocumented
        {0x6815, 4, L_FIX}, // undocumented
        {0x6816, 4, L_FIX}, // undocumented
        {0x6870, 4, L_FIX}, // undocumented, text colour
        {0xC64D, 0, L_VAR}, // undocumented, para back colour
        {0x6467, 4, L_FIX}, // undocumented
        {0x646B, 4, L_FIX}, // undocumented
        {0xF617, 3, L_FIX}, // undocumented
        {0xD660, 0, L_VAR}, // undocumented, something to do with colour.
        {0xD670, 0, L_VAR}, // undocumented, something to do with colour.
        {0xCA71, 0, L_VAR}, // undocumented, text backcolour
        {0x303C, 1, L_FIX}, // undocumented, sep
        {0x245B, 1, L_FIX}, // undocumented, para autobefore
        {0x245C, 1, L_FIX}, // undocumented, para autoafter
=====================================================================
Found a 97 line (393 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

	dofree(ntr.bp);

	return;
}

/*
 * Gather an arglist, starting in trp with tp pointing at the macro name.
 * Return total number of tokens passed, stash number of args found.
 * trp->tp is not changed relative to the tokenrow.
 */
int
	gatherargs(Tokenrow * trp, Tokenrow ** atr, int *narg)
{
	int parens = 1;
	int ntok = 0;
	Token *bp, *lp;
	Tokenrow ttr;
	int ntokp;
	int needspace;

	*narg = -1;                         /* means that there is no macro
										 * call */
	/* look for the ( */
	for (;;)
	{
		trp->tp++;
		ntok++;
		if (trp->tp >= trp->lp)
		{
			gettokens(trp, 0);
			if ((trp->lp - 1)->type == END)
			{
				trp->lp -= 1;
				trp->tp -= ntok;
				return ntok;
			}
		}
		if (trp->tp->type == LP)
			break;
		if (trp->tp->type != NL)
			return ntok;
	}
	*narg = 0;
	ntok++;
	ntokp = ntok;
	trp->tp++;
	/* search for the terminating ), possibly extending the row */
	needspace = 0;
	while (parens > 0)
	{
		if (trp->tp >= trp->lp)
			gettokens(trp, 0);
		if (needspace)
		{
			needspace = 0;
			/* makespace(trp); [rh] */
		}
		if (trp->tp->type == END)
		{
			trp->lp -= 1;
			trp->tp -= ntok;
			error(ERROR, "EOF in macro arglist");
			return ntok;
		}
		if (trp->tp->type == NL)
		{
			trp->tp += 1;
			adjustrow(trp, -1);
			trp->tp -= 1;
			/* makespace(trp); [rh] */
			needspace = 1;
			continue;
		}
		if (trp->tp->type == LP)
			parens++;
		else
			if (trp->tp->type == RP)
				parens--;
		trp->tp++;
		ntok++;
	}
	trp->tp -= ntok;
	/* Now trp->tp won't move underneath us */
	lp = bp = trp->tp + ntokp;
	for (; parens >= 0; lp++)
	{
		if (lp->type == LP)
		{
            parens++;
            continue;
        }
        if (lp->type == RP)
            parens--;
        if (lp->type == DSHARP)
			lp->type = DSHARP1;         /* ## not special in arg */
        if ((lp->type == COMMA && parens == 0) ||
				( parens < 0 && ((lp - 1)->type != LP)))
=====================================================================
Found a 15 line (393 tokens) duplication in the following files: 
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 0,// 27b0 - 27bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27c0 - 27cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27d0 - 27df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27e0 - 27ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27f0 - 27ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2e80 - 2e8f
=====================================================================
Found a 29 line (392 tokens) duplication in the following files: 
Starting at line 1308 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/test.cxx
Starting at line 1341 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/test.cxx

	nFlags = FrameSearchFlag::CHILDREN | FrameSearchFlag::SIBLINGS;
	if	(
			( xD->findFrame( DECLARE_ASCII("T1"		), nFlags )	!=	xT1		)	||
			( xD->findFrame( DECLARE_ASCII("T2"		), nFlags )	!=	xT2		)	||
			( xD->findFrame( DECLARE_ASCII("T3"		), nFlags )	!=	xT3		)	||
			( xD->findFrame( DECLARE_ASCII("F11"	), nFlags )	!=	xF11	)	||
			( xD->findFrame( DECLARE_ASCII("F12"	), nFlags )	!=	xF12	)	||
			( xD->findFrame( DECLARE_ASCII("F21"	), nFlags )	!=	xF21	)	||
			( xD->findFrame( DECLARE_ASCII("F22"	), nFlags )	!=	xF22	)	||
			( xD->findFrame( DECLARE_ASCII("F211"	), nFlags )	!=	xF211	)	||
			( xD->findFrame( DECLARE_ASCII("F212"	), nFlags )	!=	xF212	)	||
			( xD->findFrame( DECLARE_ASCII("F2111"	), nFlags )	!=	xF2111	)	||
			( xD->findFrame( DECLARE_ASCII("F2112"	), nFlags )	!=	xF2112	)	||
			( xD->findFrame( DECLARE_ASCII("F2121"	), nFlags )	!=	xF2121	)	||
			( xD->findFrame( DECLARE_ASCII("F2122"	), nFlags )	!=	xF2122	)	||
			( xD->findFrame( DECLARE_ASCII("F21111"	), nFlags )	!=	xF21111	)	||
			( xD->findFrame( DECLARE_ASCII("F21112"	), nFlags )	!=	xF21112	)	||
			( xD->findFrame( DECLARE_ASCII("F21121"	), nFlags )	!=	xF21121	)	||
			( xD->findFrame( DECLARE_ASCII("F21122"	), nFlags )	!=	xF21122	)	||
			( xD->findFrame( DECLARE_ASCII("F21211"	), nFlags )	!=	xF21211	)	||
			( xD->findFrame( DECLARE_ASCII("F21212"	), nFlags )	!=	xF21212	)	||
			( xD->findFrame( DECLARE_ASCII("F21221"	), nFlags )	!=	xF21221	)	||
			( xD->findFrame( DECLARE_ASCII("F21222"	), nFlags )	!=	xF21222	)	||
			( xD->findFrame( DECLARE_ASCII("F221"	), nFlags )	!=	xF221	)	||
			( xD->findFrame( DECLARE_ASCII("F2211"	), nFlags )	!=	xF2211	)	||
			( xD->findFrame( DECLARE_ASCII("F22111"	), nFlags )	!=	xF22111	)
		)
	{
		LOG_ERROR( "TestApplikation::impl_testTreeSearch()", "flat down search failed" )
=====================================================================
Found a 12 line (391 tokens) duplication in the following files: 
Starting at line 4919 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 5531 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        10, 3, 32, 128-32,
        0x00,0x00,0x0B,0x00,0x16,0x00,0x21,0x00,0x2C,0x00,0x37,0x00,0x42,0x00,0x4D,0x00,0x58,0x00,
        0x63,0x00,0x6E,0x00,0x79,0x00,0x84,0x00,0x8F,0x00,0x9A,0x00,0xA5,0x00,0xB0,0x00,0xBB,0x00,
        0xC6,0x00,0xD1,0x00,0xDC,0x00,0xE7,0x00,0xF2,0x00,0xFD,0x00,0x08,0x01,0x13,0x01,0x1E,0x01,
        0x29,0x01,0x34,0x01,0x3F,0x01,0x4A,0x01,0x55,0x01,0x60,0x01,0x6B,0x01,0x76,0x01,0x81,0x01,
        0x8C,0x01,0x97,0x01,0xA2,0x01,0xAD,0x01,0xB8,0x01,0xC3,0x01,0xCE,0x01,0xD9,0x01,0xE4,0x01,
        0xEF,0x01,0xFA,0x01,0x05,0x02,0x10,0x02,0x1B,0x02,0x26,0x02,0x31,0x02,0x3C,0x02,0x47,0x02,
        0x52,0x02,0x5D,0x02,0x68,0x02,0x73,0x02,0x7E,0x02,0x89,0x02,0x94,0x02,0x9F,0x02,0xAA,0x02,
        0xB5,0x02,0xC0,0x02,0xCB,0x02,0xD6,0x02,0xE1,0x02,0xEC,0x02,0xF7,0x02,0x02,0x03,0x0D,0x03,
        0x18,0x03,0x23,0x03,0x2E,0x03,0x39,0x03,0x44,0x03,0x4F,0x03,0x5A,0x03,0x65,0x03,0x70,0x03,
        0x7B,0x03,0x86,0x03,0x91,0x03,0x9C,0x03,0xA7,0x03,0xB2,0x03,0xBD,0x03,0xC8,0x03,0xD3,0x03,
        0xDE,0x03,0xE9,0x03,0xF4,0x03,0xFF,0x03,0x0A,0x04,0x15,0x04,
=====================================================================
Found a 12 line (391 tokens) duplication in the following files: 
Starting at line 3695 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 5837 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        11, 3, 32, 128-32,
        0x00,0x00,0x0C,0x00,0x18,0x00,0x24,0x00,0x30,0x00,0x3C,0x00,0x48,0x00,0x54,0x00,0x60,0x00,
        0x6C,0x00,0x78,0x00,0x84,0x00,0x90,0x00,0x9C,0x00,0xA8,0x00,0xB4,0x00,0xC0,0x00,0xCC,0x00,
        0xD8,0x00,0xE4,0x00,0xF0,0x00,0xFC,0x00,0x08,0x01,0x14,0x01,0x20,0x01,0x2C,0x01,0x38,0x01,
        0x44,0x01,0x50,0x01,0x5C,0x01,0x68,0x01,0x74,0x01,0x80,0x01,0x8C,0x01,0x98,0x01,0xA4,0x01,
        0xB0,0x01,0xBC,0x01,0xC8,0x01,0xD4,0x01,0xE0,0x01,0xEC,0x01,0xF8,0x01,0x04,0x02,0x10,0x02,
        0x1C,0x02,0x28,0x02,0x34,0x02,0x40,0x02,0x4C,0x02,0x58,0x02,0x64,0x02,0x70,0x02,0x7C,0x02,
        0x88,0x02,0x94,0x02,0xA0,0x02,0xAC,0x02,0xB8,0x02,0xC4,0x02,0xD0,0x02,0xDC,0x02,0xE8,0x02,
        0xF4,0x02,0x00,0x03,0x0C,0x03,0x18,0x03,0x24,0x03,0x30,0x03,0x3C,0x03,0x48,0x03,0x54,0x03,
        0x60,0x03,0x6C,0x03,0x78,0x03,0x84,0x03,0x90,0x03,0x9C,0x03,0xA8,0x03,0xB4,0x03,0xC0,0x03,
        0xCC,0x03,0xD8,0x03,0xE4,0x03,0xF0,0x03,0xFC,0x03,0x08,0x04,0x14,0x04,0x20,0x04,0x2C,0x04,
        0x38,0x04,0x44,0x04,0x50,0x04,0x5C,0x04,0x68,0x04,0x74,0x04,
=====================================================================
Found a 9 line (391 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x15, 0x01B7}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0290 - 0297
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0298 - 029f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02a0 - 02a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02a8 - 02af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02b0 - 02b7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02b8 - 02bf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02c0 - 02c7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02c8 - 02cf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02d0 - 02d7
=====================================================================
Found a 60 line (390 tokens) duplication in the following files: 
Starting at line 962 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1331 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

void SAL_CALL ModuleImageManager::reload() 
throw ( ::com::sun::star::uno::Exception, 
        ::com::sun::star::uno::RuntimeException )
{
    ResetableGuard aGuard( m_aLock );

    uno::Reference< uno::XInterface > xRefThis( static_cast< OWeakObject* >( this ));

    if ( m_bDisposed )
        throw DisposedException();

    CommandMap                   aOldUserCmdImageSet;   
    std::vector< rtl::OUString > aNewUserCmdImageSet;
    
    if ( m_bModified )
    {
        uno::Reference< XImageManager > xThis( static_cast< OWeakObject* >( this ), UNO_QUERY );
        uno::Reference< XInterface > xIfac( xThis, UNO_QUERY );
                
        for ( sal_Int16 i = 0; i < sal_Int16( ImageType_COUNT ); i++ )
        {
            if ( !m_bDisposed && m_bUserImageListModified[i] )
            {
                std::vector< rtl::OUString > aOldUserCmdImageVector;
                ImageList* pImageList = implts_getUserImageList( (ImageType)i );
                pImageList->GetImageNames( aOldUserCmdImageVector );

                // Fill hash map to speed up search afterwards
                sal_uInt32 j( 0 );
				for ( j = 0; j < aOldUserCmdImageVector.size(); j++ )
                    aOldUserCmdImageSet.insert( CommandMap::value_type( aOldUserCmdImageVector[j], false ));
                
                // Attention: This can make the old image list pointer invalid!
                implts_loadUserImages( (ImageType)i, m_xUserImageStorage, m_xUserBitmapsStorage );
                pImageList = implts_getUserImageList( (ImageType)i );
                pImageList->GetImageNames( aNewUserCmdImageSet );
            
                CmdToXGraphicNameAccess* pInsertedImages( 0 );
                CmdToXGraphicNameAccess* pReplacedImages( 0 );
                CmdToXGraphicNameAccess* pRemovedImages( 0 );

                for ( j = 0; j < aNewUserCmdImageSet.size(); j++ )
                {
                    CommandMap::iterator pIter = aOldUserCmdImageSet.find( aNewUserCmdImageSet[j] );
                    if ( pIter != aOldUserCmdImageSet.end() )
                    {
                        pIter->second = true; // mark entry as replaced
                        if ( !pReplacedImages )
                            pReplacedImages = new CmdToXGraphicNameAccess();
                        pReplacedImages->addElement( aNewUserCmdImageSet[j], 
                                                     pImageList->GetImage( aNewUserCmdImageSet[j] ).GetXGraphic() );
                    }
                    else
                    {
                        if ( !pInsertedImages )
                            pInsertedImages = new CmdToXGraphicNameAccess();
                        pInsertedImages->addElement( aNewUserCmdImageSet[j], 
                                                     pImageList->GetImage( aNewUserCmdImageSet[j] ).GetXGraphic() );
                    }
                }
=====================================================================
Found a 15 line (389 tokens) duplication in the following files: 
Starting at line 3889 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4053 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptSeal32Vert[] =
{
	{ 0x05 MSO_I, 0x06 MSO_I }, { 0x07 MSO_I, 0x08 MSO_I }, { 0x09 MSO_I, 0x0a MSO_I }, { 0x0b MSO_I, 0x0c MSO_I },
	{ 0x0d MSO_I, 0x0e MSO_I }, { 0x0f MSO_I, 0x10 MSO_I }, { 0x11 MSO_I, 0x12 MSO_I }, { 0x13 MSO_I, 0x14 MSO_I },
	{ 0x15 MSO_I, 0x16 MSO_I }, { 0x17 MSO_I, 0x18 MSO_I }, { 0x19 MSO_I, 0x1a MSO_I }, { 0x1b MSO_I, 0x1c MSO_I },
	{ 0x1d MSO_I, 0x1e MSO_I }, { 0x1f MSO_I, 0x20 MSO_I }, { 0x21 MSO_I, 0x22 MSO_I }, { 0x23 MSO_I, 0x24 MSO_I },
	{ 0x25 MSO_I, 0x26 MSO_I }, { 0x27 MSO_I, 0x28 MSO_I }, { 0x29 MSO_I, 0x2a MSO_I }, { 0x2b MSO_I, 0x2c MSO_I },
	{ 0x2d MSO_I, 0x2e MSO_I }, { 0x2f MSO_I, 0x30 MSO_I }, { 0x31 MSO_I, 0x32 MSO_I }, { 0x33 MSO_I, 0x34 MSO_I },
	{ 0x35 MSO_I, 0x36 MSO_I }, { 0x37 MSO_I, 0x38 MSO_I }, { 0x39 MSO_I, 0x3a MSO_I }, { 0x3b MSO_I, 0x3c MSO_I },
	{ 0x3d MSO_I, 0x3e MSO_I }, { 0x3f MSO_I, 0x40 MSO_I }, { 0x41 MSO_I, 0x42 MSO_I }, { 0x43 MSO_I, 0x44 MSO_I },
	{ 0x45 MSO_I, 0x46 MSO_I }, { 0x47 MSO_I, 0x48 MSO_I }, { 0x49 MSO_I, 0x4a MSO_I }, { 0x4b MSO_I, 0x4c MSO_I },
	{ 0x4d MSO_I, 0x4e MSO_I }, { 0x4f MSO_I, 0x50 MSO_I }, { 0x51 MSO_I, 0x52 MSO_I }, { 0x53 MSO_I, 0x54 MSO_I },
	{ 0x55 MSO_I, 0x56 MSO_I }, { 0x57 MSO_I, 0x58 MSO_I }, { 0x59 MSO_I, 0x5a MSO_I }, { 0x5b MSO_I, 0x5c MSO_I },
	{ 0x5d MSO_I, 0x5e MSO_I }, { 0x5f MSO_I, 0x60 MSO_I }, { 0x61 MSO_I, 0x62 MSO_I }, { 0x63 MSO_I, 0x64 MSO_I },
	{ 0x65 MSO_I, 0x66 MSO_I }, { 0x67 MSO_I, 0x68 MSO_I }, { 0x69 MSO_I, 0x6a MSO_I }, { 0x6b MSO_I, 0x6c MSO_I },
=====================================================================
Found a 67 line (389 tokens) duplication in the following files: 
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_String_Const.h
Starting at line 758 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_String_Const.h

        };
static const sal_Unicode  expValChar[nCharCount] =
        {
            65,97,48,45,95,
            21,27,29,
            64,10,39,34,
            0,0,83
        };
//------------------------------------------------------------------------
static const sal_Int32 nDefaultCount=6;
static const sal_Unicode input1Default[nDefaultCount] =
        {
            77,115,85,119,32,0
        };
static const sal_Int32 input2Default[nDefaultCount] =
        {
            0,0,0,0,0,0
        };
static const sal_Int32  expValDefault[nDefaultCount] =
        {
            4,9,-1,-1,3,-1
        };
//------------------------------------------------------------------------
static const sal_Int32 nNormalCount=10;
static const sal_Unicode input1Normal[nNormalCount] =
        {
            77,77,77,115,115,115,119,119,0,0
        };
static const sal_Int32 input2Normal[nNormalCount] =
        {
            0,32,80,0,13,20,0,80,0,32
        };
static const sal_Int32  expValNormal[nNormalCount] =
        {
            4,-1,-1,9,15,-1,-1,-1,-1,-1
        };
//------------------------------------------------------------------------
static const sal_Int32 nlastDefaultCount=5;
static const sal_Unicode input1lastDefault[nlastDefaultCount] =
        {
            77,115,119,32,0
        };
static const sal_Int32 input2lastDefault[nlastDefaultCount] =
        {
            31,31,31,31,31
        };
static const sal_Int32  expVallastDefault[nlastDefaultCount] =
        {
            4,15,-1,21,-1
        };
//------------------------------------------------------------------------
static const sal_Int32 nlastNormalCount=8;
static const sal_Unicode input1lastNormal[nlastNormalCount] =
        {
            77,77,77,115,115,119,119,0
        };
static const sal_Int32 input2lastNormal[nlastNormalCount] =
        {
            29,0,80,31,3,31,80,31
        };
static const sal_Int32  expVallastNormal[nlastNormalCount] =
        {
            4,-1,4,15,-1,-1,-1,-1
        };
//------------------------------------------------------------------------
static const sal_Int32 nStrDefaultCount=6;
static const sal_Unicode *input1StrDefault[nStrDefaultCount] =
=====================================================================
Found a 96 line (389 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/unix.c
Starting at line 26 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_unix.c

int Dflag = 0;                          /* add parameter check to delete op */
int Cplusplus = 0;

extern void setup_kwtab(void);

void
    setup(int argc, char **argv)
{
    int c, fd, i, n;
    char *fp, *dp;
    Tokenrow tr;

    setup_kwtab();
    while ((c = getopt(argc, argv, "NOPV:I:D:U:F:A:X:u:l:+")) != -1)
        switch (c)
        {
            case 'N':
                for (i = 0; i < NINCLUDE; i++)
                    if (includelist[i].always == 1)
                        includelist[i].deleted = 1;
                break;

            case 'I':
                for (i = NINCLUDE - 2; i >= 0; i--)
                {
                    if (includelist[i].file == NULL)
                    {
                        includelist[i].always = 1;
                        includelist[i].file = optarg;
                        break;
                    }
                }
                if (i < 0)
                    error(FATAL, "Too many -I directives");
                break;

            case 'D':
            case 'U':
            case 'A':
                setsource("<cmdarg>", -1, -1, optarg, 0);
                maketokenrow(3, &tr);
                gettokens(&tr, 1);
                doadefine(&tr, c);
                unsetsource();
                break;

            case 'P':                   /* Lineinfo */
                Pflag++;
                break;

            case 'V':
				for (n = 0; (c = optarg[n]) != '\0'; n++)
					switch (c)
					{
						case 'i':
							Iflag++;
							break;

						case 'm':
			                Mflag = 1;
							break;

						case 'x':
			                Mflag = 2;
							break;

						case 't':
							Vflag++;
							break;

						case 'v':
			                fprintf(stderr, "%s %s\n", argv[0], rcsid);
							break;

						default:								
							error(WARNING, "Unknown verbose option %c", c);
					}
				break;

            case 'X':
				for (n = 0; (c = optarg[n]) != '\0'; n++)
					switch (c)
					{
						case 'a':
							Aflag++;
							break;

						case 'i':
							Xflag++;
							break;

						case 'c':
							Cflag++;
							break;

						case 'd':
=====================================================================
Found a 15 line (389 tokens) duplication in the following files: 
Starting at line 1029 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 0,// 27b0 - 27bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27c0 - 27cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27d0 - 27df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27e0 - 27ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27f0 - 27ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2e80 - 2e8f
=====================================================================
Found a 14 line (389 tokens) duplication in the following files: 
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 0,// 27b0 - 27bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27c0 - 27cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27d0 - 27df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27e0 - 27ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27f0 - 27ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 14 line (389 tokens) duplication in the following files: 
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1029 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04c0 - 04cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04d0 - 04df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04e0 - 04ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 04f0 - 04ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0500 - 050f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0510 - 051f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0520 - 052f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0530 - 053f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0540 - 054f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 9 line (389 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xf4, 0x0032}, {0x00, 0x0000}, {0x00, 0x0000}, // 0340 - 0347
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0348 - 034f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0350 - 0357
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0358 - 035f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0360 - 0367
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0368 - 036f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0370 - 0377
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0378 - 037f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x6a, 0x03AC}, {0x00, 0x0000}, // 0380 - 0387
=====================================================================
Found a 81 line (389 tokens) duplication in the following files: 
Starting at line 437 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

					 : : "m"(&nRegReturn) );
			break;
	}

	if( bComplex )
	{
		__asm__( "add %i7, 4, %i7\n\t" );
		// after call to complex return valued funcion there is an unimp instruction
	}

}
//__________________________________________________________________________________________________

int const codeSnippetSize = 56;
unsigned char * codeSnippet(
    unsigned char * code, sal_Int32 functionIndex, sal_Int32 vtableOffset,
    bool simpleRetType)
{
    sal_uInt32 index = functionIndex;
    if (!simpleRetType) {
        index |= 0x80000000;
    }
    unsigned int * p = reinterpret_cast< unsigned int * >(code);
    OSL_ASSERT(sizeof (unsigned int) == 4);
    // st %o0, [%sp+68]:
    *p++ = 0xD023A044;
    // st %o1, [%sp+72]:
    *p++ = 0xD223A048;
    // st %o2, [%sp+76]:
    *p++ = 0xD423A04C;
    // st %o3, [%sp+80]:
    *p++ = 0xD623A050;
    // st %o4, [%sp+84]:
    *p++ = 0xD823A054;
    // st %o5, [%sp+88]:
    *p++ = 0xDA23A058;
    // sethi %hi(index), %o0:
    *p++ = 0x11000000 | (index >> 10);
    // or %o0, %lo(index), %o0:
    *p++ = 0x90122000 | (index & 0x3FF);
    // sethi %hi(vtableOffset), %o2:
    *p++ = 0x15000000 | (vtableOffset >> 10);
    // or %o2, %lo(vtableOffset), %o2:
    *p++ = 0x9412A000 | (vtableOffset & 0x3FF);
    // sethi %hi(cpp_vtable_call), %o3:
    *p++ = 0x17000000 | (reinterpret_cast< unsigned int >(cpp_vtable_call) >> 10);
    // or %o3, %lo(cpp_vtable_call), %o3:
    *p++ = 0x9612E000 | (reinterpret_cast< unsigned int >(cpp_vtable_call) & 0x3FF);
    // jmpl %o3, %g0:
    *p++ = 0x81C2C000;
    // mov %sp, %o1:
    *p++ = 0x9210000E;
    OSL_ASSERT(
        reinterpret_cast< unsigned char * >(p) - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

} //end of namespace

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0; //null
    slots[-1] = 0; //destructor
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vTableOffset)
=====================================================================
Found a 39 line (388 tokens) duplication in the following files: 
Starting at line 6657 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6978 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

            nId = 0;
    }

    return nId;
}

// with tokens and length byte
USHORT wwSprmParser::GetSprmSize(sal_uInt16 nId, const sal_uInt8* pSprm) const
{
    return GetSprmTailLen(nId, pSprm) + 1 + mnDelta + SprmDataOfs(nId);
}

BYTE wwSprmParser::SprmDataOfs(USHORT nId) const
{
    return GetSprmInfo(nId).nVari;
}

USHORT wwSprmParser::DistanceToData(USHORT nId) const
{
    return 1 + mnDelta + SprmDataOfs(nId);
}

SEPr::SEPr() :
    bkc(2), fTitlePage(0), fAutoPgn(0), nfcPgn(0), fUnlocked(0), cnsPgn(0),
    fPgnRestart(0), fEndNote(1), lnc(0), grpfIhdt(0), nLnnMod(0), dxaLnn(0),
    dxaPgn(720), dyaPgn(720), fLBetween(0), vjc(0), dmBinFirst(0),
    dmBinOther(0), dmPaperReq(0), fPropRMark(0), ibstPropRMark(0),
    dttmPropRMark(0), dxtCharSpace(0), dyaLinePitch(0), clm(0), reserved1(0),
    dmOrientPage(0), iHeadingPgn(0), pgnStart(1), lnnMin(0), wTextFlow(0),
    reserved2(0), pgbApplyTo(0), pgbPageDepth(0), pgbOffsetFrom(0),
    xaPage(12240), yaPage(15840), xaPageNUp(12240), yaPageNUp(15840),
    dxaLeft(1800), dxaRight(1800), dyaTop(1440), dyaBottom(1440), dzaGutter(0),
    dyaHdrTop(720), dyaHdrBottom(720), ccolM1(0), fEvenlySpaced(1),
    reserved3(0), fBiDi(0), fFacingCol(0), fRTLGutter(0), fRTLAlignment(0),
    dxaColumns(720), dxaColumnWidth(0), dmOrientFirst(0), fLayout(0),
    reserved4(0)
{
    memset(rgdxaColumnWidthSpacing, 0, sizeof(rgdxaColumnWidthSpacing));
}
=====================================================================
Found a 14 line (387 tokens) duplication in the following files: 
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0, 0, 0, 0,// 00f0 - 00ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0200 - 020f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0210 - 021f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0220 - 022f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0230 - 023f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0240 - 024f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0250 - 025f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0260 - 026f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0270 - 027f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0280 - 028f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0290 - 029f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 02a0 - 02af
     0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0,// 02b0 - 02bf
=====================================================================
Found a 9 line (387 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xf4, 0x0032}, {0x00, 0x0000}, {0x00, 0x0000}, // 0340 - 0347
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0348 - 034f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0350 - 0357
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0358 - 035f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0360 - 0367
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0368 - 036f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0370 - 0377
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0378 - 037f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x6a, 0x03AC}, {0x00, 0x0000}, // 0380 - 0387
=====================================================================
Found a 67 line (387 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/tos/tempnam.c
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsd43/tempnam.c

static char  seed[4]="AAA";

/* BSD stdio.h doesn't define P_tmpdir, so let's do it here */
#ifndef P_tmpdir
static char *P_tmpdir = "/tmp";
#endif

char *
tempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+16))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (access( cpdir(p, tmpdir), 3) != 0) )
     if( (dl == 0) || (access( cpdir(p, dir), 3) != 0) )
	if( access( cpdir(p, P_tmpdir),   3) != 0 )
	   if( access( cpdir(p, "/tmp"),  3) != 0 )
	      return(NULL);

   (void) strcat(p, "/");
   if(prefix)
   {
      *(p+strlen(p)+5) = '\0';
      (void)strncat(p, prefix, 5);
   }

   (void)strcat(p, seed);
   (void)strcat(p, "XXXXXX");

   q = seed;
   while(*q == 'Z') *q++ = 'A';
   ++*q;

   if(*mktemp(p) == '\0') return(NULL);
   return(p);
}



static char *
cpdir(buf, str)
char *buf;
char *str;
{
   char *p;

   if(str != NULL)
   {
      (void) strcpy(buf, str);
      p = buf - 1 + strlen(buf);
      if(*p == '/') *p = '\0';
   }

   return(buf);
}
=====================================================================
Found a 82 line (386 tokens) duplication in the following files: 
Starting at line 627 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 674 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

        for (i = 0, cp = tp->t; (unsigned int)i < tp->len; i++)
        {
            if (instring && (*cp == '"' || *cp == '\\'))
                *sp++ = '\\';
            *sp++ = *cp++;
        }
    }
    *sp++ = '"';
    *sp = '\0';
	sp = s;
    t.len = strlen((char *) sp);
    t.t = newstring(sp, t.len, 0);
    return &tr;
}

/*
 * expand a builtin name
 */
void
    builtin(Tokenrow * trp, int biname)
{
    char *op;
    Token *tp;
    Source *s;

    tp = trp->tp;
    trp->tp++;
    /* need to find the real source */
    s = cursource;
    while (s && s->fd == -1)
        s = s->next;
    if (s == NULL)
        s = cursource;
	/* most are strings */
    tp->type = STRING;
    if (tp->wslen)
    {
        *outptr++ = ' ';
        tp->wslen = 1;
    }
    op = outptr;
    *op++ = '"';
    switch (biname)
    {

        case KLINENO:
            tp->type = NUMBER;
            op = outnum(op - 1, s->line);
            break;

        case KFILE:
            {
                char *src = s->filename;

                while ((*op++ = *src++) != 0)
                    if (src[-1] == '\\')
                        *op++ = '\\';
                op--;
                break;
            }

        case KDATE:
            strncpy(op, curtime + 4, 7);
            strncpy(op + 7, curtime + 20, 4);
            op += 11;
            break;

        case KTIME:
            strncpy(op, curtime + 11, 8);
            op += 8;
            break;

        default:
            error(ERROR, "cpp botch: unknown internal macro");
            return;
    }
    if (tp->type == STRING)
        *op++ = '"';
    tp->t = (uchar *) outptr;
    tp->len = op - outptr;
    outptr = op;
}
=====================================================================
Found a 24 line (386 tokens) duplication in the following files: 
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  1,  0,  1,  0,  0,  	0,  0,  0,  0,  0,	  	// <, >
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,  // 100 - 149
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 91 line (386 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx

                rtti = iiFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
    void * pCppExc;
    type_info * rtti;

    {
    // construct cpp exception object
	typelib_TypeDescription * pTypeDescr = 0;
	TYPELIB_DANGER_GET( &pTypeDescr, pUnoExc->pType );
    OSL_ASSERT( pTypeDescr );
    if (! pTypeDescr)
        terminate();
    
	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );
	
	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
        terminate();
    }
    
	__cxa_throw( pCppExc, rtti, deleteException );
}

//==================================================================================================
void fillUnoException( __cxa_exception * header, uno_Any * pExc, uno_Mapping * pCpp2Uno )
{
    OSL_ENSURE( header, "### no exception header!!!" );
    if (! header)
        terminate();
    
	typelib_TypeDescription * pExcTypeDescr = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
	::typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
    OSL_ENSURE( pExcTypeDescr, "### can not get type description for exception!!!" );
    if (! pExcTypeDescr)
        terminate();
    
    // construct uno exception any
    ::uno_any_constructAndConvert( pExc, header->adjustedPtr, pExcTypeDescr, pCpp2Uno );
    ::typelib_typedescription_release( pExcTypeDescr );
}

}
=====================================================================
Found a 88 line (385 tokens) duplication in the following files: 
Starting at line 782 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/sddetect.cxx

                                pFilter = aMatch.GetFilter4FilterName( aName );
                            }
                        }
                    }
				}
			}
		}
	}

    if ( nIndexOfInputStream == -1 && xStream.is() )
    {
        // if input stream wasn't part of the descriptor, now it should be, otherwise the content would be opend twice
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("InputStream");
        lDescriptor[nPropertyCount].Value <<= xStream;
        nPropertyCount++;
    }

    if ( nIndexOfContent == -1 && xContent.is() )
    {
        // if input stream wasn't part of the descriptor, now it should be, otherwise the content would be opend twice
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("UCBContent");
        lDescriptor[nPropertyCount].Value <<= xContent;
        nPropertyCount++;
    }

    if ( bReadOnly != bWasReadOnly )
    {
        if ( nIndexOfReadOnlyFlag == -1 )
        {
            lDescriptor.realloc( nPropertyCount + 1 );
            lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("ReadOnly");
            lDescriptor[nPropertyCount].Value <<= bReadOnly;
            nPropertyCount++;
        }
        else
            lDescriptor[nIndexOfReadOnlyFlag].Value <<= bReadOnly;
    }

	if ( !bRepairPackage && bRepairAllowed )
	{
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("RepairPackage");
        lDescriptor[nPropertyCount].Value <<= bRepairAllowed;
        nPropertyCount++;

		bOpenAsTemplate = sal_True;

		// TODO/LATER: set progress bar that should be used
	}

	if ( bOpenAsTemplate )
	{
		if ( nIndexOfTemplateFlag == -1 )
		{
        	lDescriptor.realloc( nPropertyCount + 1 );
        	lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("AsTemplate");
        	lDescriptor[nPropertyCount].Value <<= bOpenAsTemplate;
        	nPropertyCount++;
		}
		else
        	lDescriptor[nIndexOfTemplateFlag].Value <<= bOpenAsTemplate;
	}

	if ( aDocumentTitle.getLength() )
	{
		// the title was set here
		if ( nIndexOfDocumentTitle == -1 )
		{
        	lDescriptor.realloc( nPropertyCount + 1 );
        	lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("DocumentTitle");
        	lDescriptor[nPropertyCount].Value <<= aDocumentTitle;
        	nPropertyCount++;
		}
		else
        	lDescriptor[nIndexOfDocumentTitle].Value <<= aDocumentTitle;
	}

    if ( pFilter )
        aTypeName = pFilter->GetTypeName();
    else
        aTypeName.Erase();

    return aTypeName;
}

SFX_IMPL_SINGLEFACTORY( SdFilterDetect )
=====================================================================
Found a 24 line (385 tokens) duplication in the following files: 
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  1,  0,  1,  0,  0,  	0,  0,  0,  0,  0,	  	// <, >
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,  // 100 - 149
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 80 line (383 tokens) duplication in the following files: 
Starting at line 1448 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/embobj.cxx
Starting at line 7421 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx

                aSvrName.Assign( String( pBuf, (USHORT) nStrLen-1, gsl_getSystemTextEncoding() ) );
                delete[] pBuf;
			}
			else
				break;
		}
		rStm >> nDummy0;
		rStm >> nDummy1;
		rStm >> nDataLen;

		nBytesRead += 6 * sizeof( UINT32 ) + nStrLen + nDataLen;

		if( !rStm.IsEof() && nReadLen > nBytesRead && nDataLen )
		{
			if( xOle10Stm.Is() )
			{
				pData = new BYTE[ nDataLen ];
				if( !pData )
					return FALSE;

				rStm.Read( pData, nDataLen );

				// write to ole10 stream
				*xOle10Stm << nDataLen;
				xOle10Stm->Write( pData, nDataLen );
				xOle10Stm = SotStorageStreamRef();

				// set the compobj stream
				ClsIDs* pIds;
				for( pIds = aClsIDs; pIds->nId; pIds++ )
				{
					if( COMPARE_EQUAL == aSvrName.CompareToAscii( pIds->pSvrName ) )
						break;
				}
//				SvGlobalName* pClsId = NULL;
				String aShort, aFull;
				if( pIds->nId )
				{
					// gefunden!
					ULONG nCbFmt = SotExchange::RegisterFormatName( aSvrName );
					rDest->SetClass( SvGlobalName( pIds->nId, 0, 0, 0xc0,0,0,0,0,0,0,0x46 ), nCbFmt,
									String( pIds->pDspName, RTL_TEXTENCODING_ASCII_US ) );
				}
				else
				{
					ULONG nCbFmt = SotExchange::RegisterFormatName( aSvrName );
					rDest->SetClass( SvGlobalName(), nCbFmt, aSvrName );
				}

                delete[] pData;
			}
			else if( nRecType == 5 && !pMtf )
			{
				ULONG nPos = rStm.Tell();
				UINT16 sz[4];
				rStm.Read( sz, 8 );
				//rStm.SeekRel( 8 );
				Graphic aGraphic;
				if( ERRCODE_NONE == GraphicConverter::Import( rStm, aGraphic ) && aGraphic.GetType() )
				{
					const GDIMetaFile& rMtf = aGraphic.GetGDIMetaFile();
					MakeContentStream( rDest, rMtf );
					bMtfRead = TRUE;
				}
				// set behind the data
				rStm.Seek( nPos + nDataLen );
            }
			else
				rStm.SeekRel( nDataLen );
		}
	} while( !rStm.IsEof() && nReadLen >= nBytesRead );

	if( !bMtfRead && pMtf )
	{
		MakeContentStream( rDest, *pMtf );
		return TRUE;
    }

	return FALSE;
}
=====================================================================
Found a 45 line (383 tokens) duplication in the following files: 
Starting at line 431 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuconpol.cxx
Starting at line 534 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconbez.cxx

					aPoly.append(aInnerPoly);
					break;
				}
				case SID_DRAW_POLYGON:
				case SID_DRAW_POLYGON_NOFILL:
				{
					basegfx::B2DPolygon aInnerPoly;
					const sal_Int32 nWdt(rRectangle.GetWidth());
					const sal_Int32 nHgt(rRectangle.GetHeight());
					
					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left(), rRectangle.Bottom()));
					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left() + (nWdt * 30) / 100, rRectangle.Top() + (nHgt * 70) / 100));
					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left(), rRectangle.Top() + (nHgt * 15) / 100));
					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left() + (nWdt * 65) / 100, rRectangle.Top()));
					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left() + nWdt, rRectangle.Top() + (nHgt * 30) / 100));
					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left() + (nWdt * 80) / 100, rRectangle.Top() + (nHgt * 50) / 100));
					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left() + (nWdt * 80) / 100, rRectangle.Top() + (nHgt * 75) / 100));
					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Bottom(), rRectangle.Right()));
					
					if(SID_DRAW_POLYGON_NOFILL == nID)
					{
						aInnerPoly.append(basegfx::B2DPoint(rRectangle.Center().X(), rRectangle.Bottom()));
					}
					else
					{
						aInnerPoly.setClosed(true);
					}

					aPoly.append(aInnerPoly);
					break;
				}
			}

			((SdrPathObj*)pObj)->SetPathPoly(aPoly);
		}
		else
		{
			DBG_ERROR("Object is NO path object");
		}

		pObj->SetLogicRect(rRectangle);
	}

	return pObj;
}
=====================================================================
Found a 85 line (382 tokens) duplication in the following files: 
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/shapes/drawinglayeranimation.cxx
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/sdr/animation/ainfoscrolltext.cxx

					double fZeroLogicAlternate(0.0), fOneLogicAlternate(1.0);
					double fZeroRelative, fOneRelative, fInitRelative, fDistanceRelative;

					if(ScrollHorizontal())
					{
						if(DoAlternate())
						{
							if(maPaintRectangleLogic.GetWidth() > maScrollRectangleLogic.GetWidth())
							{
								fZeroLogicAlternate = maScrollRectangleLogic.Right() - maPaintRectangleLogic.GetWidth();
								fOneLogicAlternate = maScrollRectangleLogic.Left();
							}
							else
							{
								fZeroLogicAlternate = maScrollRectangleLogic.Left();
								fOneLogicAlternate = maScrollRectangleLogic.Right() - maPaintRectangleLogic.GetWidth();
							}
						}
						
						fZeroLogic = maScrollRectangleLogic.Left() - maPaintRectangleLogic.GetWidth();
						fOneLogic = maScrollRectangleLogic.Right();
						fInitLogic = maPaintRectangleLogic.Left();
					}
					else
					{
						if(DoAlternate())
						{
							if(maPaintRectangleLogic.GetHeight() > maScrollRectangleLogic.GetHeight())
							{
								fZeroLogicAlternate = maScrollRectangleLogic.Bottom() - maPaintRectangleLogic.GetHeight();
								fOneLogicAlternate = maScrollRectangleLogic.Top();
							}
							else
							{
								fZeroLogicAlternate = maScrollRectangleLogic.Top();
								fOneLogicAlternate = maScrollRectangleLogic.Bottom() - maPaintRectangleLogic.GetHeight();
							}
						}
						
						fZeroLogic = maScrollRectangleLogic.Top() - maPaintRectangleLogic.GetHeight();
						fOneLogic = maScrollRectangleLogic.Bottom();
						fInitLogic = maPaintRectangleLogic.Top();
					}

					fDistanceLogic = fOneLogic - fZeroLogic;
					fInitRelative = (fInitLogic - fZeroLogic) / fDistanceLogic;

					if(DoAlternate())
					{
						fZeroRelative = (fZeroLogicAlternate - fZeroLogic) / fDistanceLogic;
						fOneRelative = (fOneLogicAlternate - fZeroLogic) / fDistanceLogic;
						fDistanceRelative = fOneRelative - fZeroRelative;
					}
					else
					{
						fZeroRelative = 0.0;
						fOneRelative = 1.0;
						fDistanceRelative = 1.0;
					}

					if(mnStartTime)
					{
						// Start time loop
						ScrollTextAnimNode aStartNode(mnStartTime, 1L, 0.0, 0.0, mnStartTime, false);
						maVector.push_back(aStartNode);
					}

					if(IsVisibleWhenStarted())
					{
						double fRelativeStartValue, fRelativeEndValue, fRelativeDistance;

						if(DoScrollForward())
						{
							fRelativeStartValue = fInitRelative;
							fRelativeEndValue = fOneRelative;
							fRelativeDistance = fRelativeEndValue - fRelativeStartValue;
						}
						else
						{
							fRelativeStartValue = fInitRelative;
							fRelativeEndValue = fZeroRelative;
							fRelativeDistance = fRelativeStartValue - fRelativeEndValue;
						}
						
						const double fNumberSteps = (fRelativeDistance * fDistanceLogic) / GetStepWidthLogic(100L);
=====================================================================
Found a 72 line (381 tokens) duplication in the following files: 
Starting at line 1690 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 1774 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

						int Line, const sal_Char* Entry, sal_uInt32 Len)
{
	if (pSection != NULL)
	{
		if (pSection->m_NoEntries >= pSection->m_MaxEntries)
		{
			if (pSection->m_Entries == NULL)
			{
				pSection->m_MaxEntries = ENTRIES_INI;
				pSection->m_Entries = (osl_TProfileEntry *)malloc(
								pSection->m_MaxEntries * sizeof(osl_TProfileEntry));
			}
			else
			{
				pSection->m_MaxEntries += ENTRIES_ADD;
				pSection->m_Entries = (osl_TProfileEntry *)realloc(pSection->m_Entries,
								pSection->m_MaxEntries * sizeof(osl_TProfileEntry));
			}

			if (pSection->m_Entries == NULL)
			{
				pSection->m_NoEntries  = 0;
				pSection->m_MaxEntries = 0;
				return (sal_False);
			}
		}

		pSection->m_NoEntries++;

		Entry = stripBlanks(Entry, &Len);
		setEntry(pProfile, pSection, pSection->m_NoEntries - 1, Line,
				 Entry, Len);

		return (sal_True);
	}

	return (sal_False);
}

static void removeEntry(osl_TProfileSection *pSection, sal_uInt32 NoEntry)
{
	if (NoEntry < pSection->m_NoEntries)
	{
		if (pSection->m_NoEntries - NoEntry > 1)
		{
			memmove(&pSection->m_Entries[NoEntry],
					&pSection->m_Entries[NoEntry + 1],
					(pSection->m_NoEntries - NoEntry - 1) * sizeof(osl_TProfileEntry));
			pSection->m_Entries[pSection->m_NoEntries - 1].m_Line=0;
			pSection->m_Entries[pSection->m_NoEntries - 1].m_Offset=0;
			pSection->m_Entries[pSection->m_NoEntries - 1].m_Len=0;
		}

		pSection->m_NoEntries--;
	}

	return;
}

static sal_Bool addSection(osl_TProfileImpl* pProfile, int Line, const sal_Char* Section, sal_uInt32 Len)
{
	if (pProfile->m_NoSections >= pProfile->m_MaxSections)
	{
		if (pProfile->m_Sections == NULL)
		{
			pProfile->m_MaxSections = SECTIONS_INI;
			pProfile->m_Sections = (osl_TProfileSection *)malloc(pProfile->m_MaxSections * sizeof(osl_TProfileSection));
			memset(pProfile->m_Sections,0,pProfile->m_MaxSections * sizeof(osl_TProfileSection));
		}
		else
		{
			unsigned int index=0;
=====================================================================
Found a 64 line (381 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1776 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
=====================================================================
Found a 80 line (380 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunooptions.cxx

					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'U':
=====================================================================
Found a 93 line (379 tokens) duplication in the following files: 
Starting at line 2702 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 1377 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("123.45.67.89"), IP_PORT_FTP );
			::osl::SocketAddr saLocalSocketAddr;
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);
			sSocket.bind( saBindSocketAddr );//build an error "osl_Socket_E_AddrNotAvail"
			//on Solaris, the error no is EACCES, but it has no mapped value, so getError() returned osl_Socket_E_InvalidError.
#if defined(SOLARIS)
			CPPUNIT_ASSERT_MESSAGE( "trick an error called sSocket.getError( ), check the getError result.Failed on Solaris, returned osl_Socket_E_InvalidError because no entry to map the errno EACCES. ", 
									osl_Socket_E_InvalidError == sSocket.getError( )  );
#else
			//while on Linux & Win32, the errno is EADDRNOTAVAIL, getError returned osl_Socket_E_AddrNotAvail.
			
			CPPUNIT_ASSERT_MESSAGE( "trick an error called sSocket.getError( ), check the getError result.Failed on Solaris, returned osl_Socket_E_InvalidError because no entry to map the errno EACCES. Passed on Linux & Win32", 
									osl_Socket_E_AddrNotAvail == sSocket.getError( )  );
#endif
		}

		CPPUNIT_TEST_SUITE( getError );
		CPPUNIT_TEST( getError_001 );
		CPPUNIT_TEST( getError_002 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class getError

	

	/** testing the methods:
		inline oslSocket getHandle() const;
	*/
	
	class getHandle : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

		void getHandle_001()
		{
			::osl::Socket sSocket(sHandle);
			::osl::Socket assignSocket = sSocket.getHandle();
	
			CPPUNIT_ASSERT_MESSAGE( "test for operators_assignment_handle function: test the assignment operator.", 
									osl_Socket_TypeStream == assignSocket.getType( )  );
		}
	
		void getHandle_002()
		{
			::osl::Socket sSocket( sHandle );
			::osl::Socket assignSocket ( sSocket.getHandle( ) );
	
			CPPUNIT_ASSERT_MESSAGE( "test for operators_assignment function: assignment operator", 
									osl_Socket_TypeStream == assignSocket.getType( ) );
		}

		CPPUNIT_TEST_SUITE( getHandle );
		CPPUNIT_TEST( getHandle_001 );
		CPPUNIT_TEST( getHandle_002 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class getHandle


// -----------------------------------------------------------------------------


CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::ctors, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::operators, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::close, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::getLocalAddr, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::getLocalPort, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::getLocalHost, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::getPeer, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::bind, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::isRecvReady, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::isSendReady, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::getType, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::getOption, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::setOption, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::enableNonBlockingMode, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::isNonBlockingMode, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::clearError, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::getError, "osl_Socket");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::getHandle, "osl_Socket"); 

} // namespace osl_Socket
=====================================================================
Found a 46 line (378 tokens) duplication in the following files: 
Starting at line 1983 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx
Starting at line 481 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/fetab.cxx

			_FndBox* pFndBox = &aFndBox;
			while( 1 == pFndBox->GetLines().Count() &&
					1 == pFndBox->GetLines()[0]->GetBoxes().Count() )
			{
				_FndBox* pTmp = pFndBox->GetLines()[0]->GetBoxes()[0];
				if( pTmp->GetBox()->GetSttNd() )
					break;		// das ist sonst zu weit
				pFndBox = pTmp;
			}

			SwTableLine* pDelLine = pFndBox->GetLines()[
							pFndBox->GetLines().Count()-1 ]->GetLine();
			SwTableBox* pDelBox = pDelLine->GetTabBoxes()[
								pDelLine->GetTabBoxes().Count() - 1 ];
			while( !pDelBox->GetSttNd() )
			{
				SwTableLine* pLn = pDelBox->GetTabLines()[
							pDelBox->GetTabLines().Count()-1 ];
				pDelBox = pLn->GetTabBoxes()[ pLn->GetTabBoxes().Count() - 1 ];
			}
			SwTableBox* pNextBox = pDelLine->FindNextBox( pTblNd->GetTable(),
															pDelBox, TRUE );
			while( pNextBox &&
					pNextBox->GetFrmFmt()->GetProtect().IsCntntProtected() )
				pNextBox = pNextBox->FindNextBox( pTblNd->GetTable(), pNextBox );

			if( !pNextBox )			// keine nachfolgende? dann die vorhergehende
			{
				pDelLine = pFndBox->GetLines()[ 0 ]->GetLine();
				pDelBox = pDelLine->GetTabBoxes()[ 0 ];
				while( !pDelBox->GetSttNd() )
					pDelBox = pDelBox->GetTabLines()[0]->GetTabBoxes()[0];
				pNextBox = pDelLine->FindPreviousBox( pTblNd->GetTable(),
															pDelBox, TRUE );
				while( pNextBox &&
						pNextBox->GetFrmFmt()->GetProtect().IsCntntProtected() )
					pNextBox = pNextBox->FindPreviousBox( pTblNd->GetTable(), pNextBox );
			}

			ULONG nIdx;
			if( pNextBox )		// dann den Cursor hier hinein
				nIdx = pNextBox->GetSttIdx() + 1;
			else				// ansonsten hinter die Tabelle
				nIdx = pTblNd->EndOfSectionIndex() + 1;

			SwNodeIndex aIdx( GetDoc()->GetNodes(), nIdx );
=====================================================================
Found a 77 line (378 tokens) duplication in the following files: 
Starting at line 1382 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx
Starting at line 1903 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx

    ,
	USHORT
)
/*	[Beschreibung]

	Ein Ausgabe ist nicht m"oglich. Deswegen wird eine Bitmap
	und als Unterschrift der URL ausgegeben,

	[Querverweise]

	<SvInPlaceObject::Draw>
*/
{
	if( !pImpl->pOP )
		pImpl->pOP = CreateCache_Impl( pImpl->xWorkingStg );

	Rectangle aOutRect = GetVisArea( ASPECT_CONTENT );
	if( pImpl->pOP )
	{
		GDIMetaFile * pMtf = pImpl->pOP->GetMetaFile();
		if( pMtf )
		{
			pMtf->WindStart();
			pMtf->Play( pDev, aOutRect.TopLeft(), aOutRect.GetSize() );
		}
		else
		{
			Bitmap * pBmp = pImpl->pOP->GetBitmap();
			if( pBmp )
				pDev->DrawBitmap( aOutRect.TopLeft(), aOutRect.GetSize(), *pBmp );
		}

		return;
	}
	else
	{
#ifdef WNT
		BOOL bPlayed = FALSE;
		if (!pImpl->pSO_Cont)
			LoadSO_Cont();

		if( pImpl->pSO_Cont )
		{
			long nMapMode;
			Size aSize;
			HMETAFILE hMet;
			if ( pImpl->pSO_Cont->GetMetaFile( nMapMode, aSize, hMet ) )
			{
				ULONG nBufSize = GetMetaFileBitsEx( hMet, 0, NULL );
				unsigned char* pBuf = new unsigned char[nBufSize+22];
				*((long*)pBuf) = 0x9ac6cdd7L;
				*((short*)(pBuf+6)) = (SHORT) 0;
				*((short*)(pBuf+8)) = (SHORT) 0;
				*((short*)(pBuf+10)) = (SHORT) aSize.Width();
				*((short*)(pBuf+12)) = (SHORT) aSize.Height();
				*((short*)(pBuf+14)) = (USHORT) 2540;
				if ( nBufSize && nBufSize == GetMetaFileBitsEx( hMet, nBufSize, pBuf+22 ) )
				{
					SvMemoryStream aStream( pBuf, nBufSize+22, STREAM_READ );
					//SvFileStream aFile(String::CreateFromAscii("file:///d:/test.wmf"), STREAM_STD_READWRITE);
					//aStream >> aFile;
					aStream.Seek(0);
					GDIMetaFile aMtf;
					if( ReadWindowMetafile( aStream, aMtf, NULL ) )
					{
						aMtf.WindStart();
						MapMode aMode( MAP_100TH_MM );
						//Size aSize = OutputDevice::LogicToLogic( aOutRect.GetSize(), aMode, pDev->GetMapMode() );
	//						AllSettings aNew( pDev->GetSettings() );
	//						StyleSettings aSet ( aNew.GetStyleSettings() );
	//						aSet.SetAntialiasingMinPixelHeight( 5 );
	//						aNew.SetStyleSettings( aSet );
	//						pDev->SetSettings( aNew );

						//Point aPoint;
						//Size aSize( aOutRect.GetSize() );
						Size aSize = OutputDevice::LogicToLogic( rSize, aMode, pDev->GetMapMode() );
=====================================================================
Found a 96 line (378 tokens) duplication in the following files: 
Starting at line 393 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 399 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

                                              break;          
						}
					}
				}

				// Check required attribute "bitmap-index"
				if ( pItem->nIndex < 0 )
				{
					delete pItem;
					delete m_pImages;
					m_pImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Required attribute 'image:bitmap-index' must have a value >= 0!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				// Check required attribute "command"
				if ( pItem->aCommandURL.Len() == 0 )
				{
					delete pItem;
					delete m_pImages;
					m_pImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Required attribute 'image:command' must have a value!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				if ( m_pImages )
					m_pImages->pImageItemList->Insert( pItem, m_pImages->pImageItemList->Count() );
			}
			break;

			case IMG_ELEMENT_EXTERNALIMAGES:
			{
				// Check that image:externalimages is embeded into image:imagecontainer
				if ( !m_bImageContainerStartFound )
				{
					delete m_pImages;
					m_pImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'image:externalimages' must be embeded into element 'image:imagecontainer'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				// Check that image:externalentry is NOT embeded into image:externalentry
				if ( m_bExternalImagesStartFound )
				{
					delete m_pImages;
					m_pImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'image:externalimages' cannot be embeded into 'image:externalimages'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				// Create unique external image container
				m_bExternalImagesStartFound = sal_True;
				m_pExternalImages = new ExternalImageItemListDescriptor;
			}
			break;

			case IMG_ELEMENT_EXTERNALENTRY:
			{
				if ( !m_bExternalImagesStartFound )
				{
					delete m_pImages;
					delete m_pExternalImages;
					m_pImages = NULL;
					m_pExternalImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'image:externalentry' must be embeded into 'image:externalimages'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				if ( m_bExternalImageStartFound )
				{
					delete m_pImages;
					delete m_pExternalImages;
					m_pImages = NULL;
					m_pExternalImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'image:externalentry' cannot be embeded into 'image:externalentry'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bExternalImageStartFound = sal_True;

				ExternalImageItemDescriptor* pItem = new ExternalImageItemDescriptor;

				// Read attributes for this external image definition
				for ( sal_Int16 n = 0; n < xAttribs->getLength(); n++ )
=====================================================================
Found a 17 line (377 tokens) duplication in the following files: 
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/styleuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_CFONT),	ATTR_FONT,			&::getCppuType((const sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFCHARS),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFCHARS),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFCHARS),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNONAME_CFFAMIL),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFFAMIL),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFFAMIL),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFNAME),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFNAME),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFNAME),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CFPITCH),	ATTR_FONT,			&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFPITCH),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFPITCH),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),			0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNONAME_CFSTYLE),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFSTYLE),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFSTYLE),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),		0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CHEIGHT),	ATTR_FONT_HEIGHT,	&::getCppuType((const float*)0),			0, MID_FONTHEIGHT | CONVERT_TWIPS },
=====================================================================
Found a 116 line (376 tokens) duplication in the following files: 
Starting at line 339 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/impldde.cxx
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/impldde.cxx

}

BOOL SvDDEObject::ImplHasOtherFormat( DdeTransaction& rReq )
{
	USHORT nFmt = 0;
	switch( rReq.GetFormat() )
	{
	case FORMAT_RTF:
		nFmt = FORMAT_STRING;
		break;

	case SOT_FORMATSTR_ID_HTML_SIMPLE:
	case SOT_FORMATSTR_ID_HTML:
		nFmt = FORMAT_RTF;
		break;

	case FORMAT_GDIMETAFILE:
		nFmt = FORMAT_BITMAP;
		break;

	case SOT_FORMATSTR_ID_SVXB:
		nFmt = FORMAT_GDIMETAFILE;
		break;

	// sonst noch irgendwas ??
	}
	if( nFmt )
		rReq.SetFormat( nFmt );		// damit nochmal versuchen
	return 0 != nFmt;
}

BOOL SvDDEObject::IsPending() const
/*	[Beschreibung]

	Die Methode stellt fest, ob aus einem DDE-Object die Daten gelesen
	werden kann.
	Zurueckgegeben wird:
		ERRCODE_NONE 			wenn sie komplett gelesen wurde
		ERRCODE_SO_PENDING		wenn sie noch nicht komplett gelesen wurde
		ERRCODE_SO_FALSE		sonst
*/
{
	return bWaitForData;
}

BOOL SvDDEObject::IsDataComplete() const
{
	return bWaitForData;
}

IMPL_LINK( SvDDEObject, ImplGetDDEData, DdeData*, pData )
{
	ULONG nFmt = pData->GetFormat();
	switch( nFmt )
	{
	case FORMAT_GDIMETAFILE:
		break;

	case FORMAT_BITMAP:
		break;

	default:
		{
			const sal_Char* p = (sal_Char*)( pData->operator const void*() );
			long nLen = FORMAT_STRING == nFmt ? (p ? strlen( p ) : 0) : (long)*pData;

			Sequence< sal_Int8 > aSeq( (const sal_Int8*)p, nLen );
			if( pGetData )
			{
				*pGetData <<= aSeq; 	// Daten kopieren
				pGetData = 0;			// und den Pointer bei mir zuruecksetzen
			}
			else
			{
				Any aVal;
				aVal <<= aSeq;
				DataChanged( SotExchange::GetFormatMimeType(
												pData->GetFormat() ), aVal );
				bWaitForData = FALSE;
			}
		}
	}

	return 0;
}

IMPL_LINK( SvDDEObject, ImplDoneDDEData, void*, pData )
{
	BOOL bValid = (BOOL)(ULONG)pData;
	if( !bValid && ( pRequest || pLink ))
	{
		DdeTransaction* pReq = 0;
		if( !pLink || ( pLink && pLink->IsBusy() ))
			pReq = pRequest;		// dann kann nur der fertig sein
		else if( pRequest && pRequest->IsBusy() )
			pReq = pLink;			// dann kann nur der fertig sein

		if( pReq )
		{
			if( ImplHasOtherFormat( *pReq ) )
			{
				pReq->Execute();
			}
			else if( pReq == pRequest )
			{
				// das wars dann
				bWaitForData = FALSE;
			}
		}
	}
	else
		// das warten ist beendet
		bWaitForData = FALSE;

	return 0;
}
=====================================================================
Found a 101 line (376 tokens) duplication in the following files: 
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/win32/misc/WinImplHelper.cxx
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/sysui/source/win32/misc/WinImplHelper.cxx

void SAL_CALL ListboxDeleteItems( HWND hwnd, const Any& /*unused*/, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
    throw( IllegalArgumentException )
{
    OSL_ASSERT( IsWindow( hwnd ) );

    LRESULT lRet = 0;

    do
    {
        // the return value on success is the number 
        // of remaining elements in the listbox 
        lRet = SendMessageW( hwnd, CB_DELETESTRING, 0, 0 );
    }
    while ( (lRet != CB_ERR) && (lRet > 0) );  
}

//------------------------------------------------------------
//
//------------------------------------------------------------

void SAL_CALL ListboxSetSelectedItem( HWND hwnd, const Any& aPosition, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
    throw( IllegalArgumentException )
{
    OSL_ASSERT( IsWindow( hwnd ) );

     if ( !aPosition.hasValue( ) || 
         ( (aPosition.getValueType( ) != getCppuType((sal_Int32*)0)) &&
           (aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
           (aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
         throw IllegalArgumentException(
            OUString::createFromAscii( "invalid value type or any has no value" ),
            rXInterface,
            aArgPos );

    sal_Int32 nPos;
    aPosition >>= nPos;

    if ( nPos < -1 )
        throw IllegalArgumentException(
            OUString::createFromAscii("invalid index"),
            rXInterface,
            aArgPos );

    LRESULT lRet = SendMessageW( hwnd, CB_SETCURSEL, nPos, 0 );

    if ( (CB_ERR == lRet) && (-1 != nPos) )
        throw IllegalArgumentException(
            OUString::createFromAscii("invalid index"),
            rXInterface,
            aArgPos );
}

//------------------------------------------------------------
//
//------------------------------------------------------------

Any SAL_CALL ListboxGetItems( HWND hwnd )
{
    OSL_ASSERT( IsWindow( hwnd ) );

    LRESULT nItemCount = SendMessageW( hwnd, CB_GETCOUNT, 0, 0 );
    
    Sequence< OUString > aItemList;
    
    if ( CB_ERR != nItemCount )
    {
        aItemList.realloc( nItemCount );

        for ( sal_Int32 i = 0; i < nItemCount; i++ )
        {
            aItemList[i] = ListboxGetString( hwnd, i );
        }
    }

    Any aAny;
    aAny <<= aItemList;

    return aAny;
}

//------------------------------------------------------------
//
//------------------------------------------------------------

Any SAL_CALL ListboxGetSelectedItem( HWND hwnd )
{
    OSL_ASSERT( IsWindow( hwnd ) );

    LRESULT idxItem = SendMessageW( hwnd, CB_GETCURSEL, 0, 0 );

    Any aAny;
    aAny <<= ListboxGetString( hwnd, idxItem );

    return aAny;
}

//------------------------------------------------------------
//
//------------------------------------------------------------

Any SAL_CALL CheckboxGetState( HWND hwnd )
=====================================================================
Found a 74 line (375 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acc_pipe.cxx
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/connector/ctr_pipe.cxx

	PipeConnection::PipeConnection( const OUString & sConnectionDescription ) :
		m_nStatus( 0 ),
		m_sDescription( sConnectionDescription )
	{
		g_moduleCount.modCnt.acquire( &g_moduleCount.modCnt );
		// make it unique
		m_sDescription += OUString::createFromAscii( ",uniqueValue=" );
		m_sDescription += OUString::valueOf(
            sal::static_int_cast< sal_Int64 >(
                reinterpret_cast< sal_IntPtr >(&m_pipe)),
            10 );
	}

	PipeConnection::~PipeConnection()
	{
		g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
	}

	sal_Int32 PipeConnection::read( Sequence < sal_Int8 > & aReadBytes , sal_Int32 nBytesToRead )
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException)
	{
		if( ! m_nStatus )
		{
			if( aReadBytes.getLength() != nBytesToRead )
			{
				aReadBytes.realloc( nBytesToRead );
			}
			return m_pipe.read( aReadBytes.getArray()  , aReadBytes.getLength() );
		}
		else {
			throw IOException();
		}
	}

	void PipeConnection::write( const Sequence < sal_Int8 > &seq )
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException)
	{
		if( ! m_nStatus )
		{
			if( m_pipe.write( seq.getConstArray() , seq.getLength() ) != seq.getLength() )
			{
				throw IOException();
			}
		}
		else {
			throw IOException();
		}
	}

	void PipeConnection::flush( )
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException)
	{

	}

	void PipeConnection::close()
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException)
	{
		// ensure that close is called only once
		if(1 == osl_incrementInterlockedCount( (&m_nStatus) ) )
		{
			m_pipe.close();
		}
	}

	OUString PipeConnection::getDescription()
			throw( ::com::sun::star::uno::RuntimeException)
	{
		return m_sDescription;
	}
=====================================================================
Found a 68 line (375 tokens) duplication in the following files: 
Starting at line 2571 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 1057 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/uicmdstohtml.cxx

    return true;
}

bool GetCommandOption( const ::std::vector< OUString >& rArgs, const OUString& rSwitch, OUString& rParam )
{
	bool        bRet = false;
    OUString    aSwitch( OUString::createFromAscii( "-" ));

    aSwitch += rSwitch;
    for( int i = 0, nCount = rArgs.size(); ( i < nCount ) && !bRet; i++ )
	{
		for( int n = 0; ( n < 2 ) && !bRet; n++ )
		{
			if ( aSwitch.equalsIgnoreAsciiCase( rArgs[ i ] ))
			{
				bRet = true;

				if( i < ( nCount - 1 ) )
					rParam = rArgs[ i + 1 ];
				else
					rParam = OUString();
			}
		}
	}

	return bRet;
}

// -----------------------------------------------------------------------

bool GetCommandOptions( const ::std::vector< OUString >& rArgs, const OUString& rSwitch, ::std::vector< OUString >& rParams )
{
	bool bRet = false;

    OUString    aSwitch( OUString::createFromAscii( "-" ));

    aSwitch += rSwitch;
    for( int i = 0, nCount = rArgs.size(); ( i < nCount ); i++ )
	{
		for( int n = 0; ( n < 2 ) && !bRet; n++ )
		{
			if ( aSwitch.equalsIgnoreAsciiCase( rArgs[ i ] ))
			{
				if( i < ( nCount - 1 ) )
					rParams.push_back( rArgs[ i + 1 ] );
				else
					rParams.push_back( OUString() );

			    break;
			}
		}
	}

	return( rParams.size() > 0 );
}

void ShowUsage()
{
    fprintf( stderr, "Usage: uicmdxml output_dir -r res -v version [-p] -s platform -i input_dir [-i input_dir] [-f errfile]\n" );
    fprintf( stderr, "Options:" );
    fprintf( stderr, "   -r [oo|so]    use resources from ooo, so\n" );
    fprintf( stderr, "   -v            name of the version used, f.e. SRX645, SRC680\n" );
    fprintf( stderr, "   -p            use product version\n" );
    fprintf( stderr, "   -s            name of the system to use, f.e. wntmsci8, unxsols4, unxlngi5\n" );
    fprintf( stderr, "   -i ...        name of directory to be searched for input files [multiple occurence is possible]\n" );
    fprintf( stderr, "   -f            name of file, error output should be written to\n" );
    fprintf( stderr, "Examples:\n" );
    fprintf( stderr, "    uicmd2html /home/out -r so -v SRC680 -p unxlngi5 -i /home/res -f /home/out/log.err\n" );
=====================================================================
Found a 89 line (374 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

		aId += m_pImpl->m_aResults[ nIndex ]->rData.aTitle;

		m_pImpl->m_aResults[ nIndex ]->aId = aId;
		return aId;
	}
	return rtl::OUString();
}

//=========================================================================
// virtual
uno::Reference< ucb::XContentIdentifier > 
DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
		uno::Reference< ucb::XContentIdentifier > xId
								= m_pImpl->m_aResults[ nIndex ]->xId;
		if ( xId.is() )
		{
			// Already cached.
			return xId;
		}
	}

	rtl::OUString aId = queryContentIdentifierString( nIndex );
	if ( aId.getLength() )
	{
		uno::Reference< ucb::XContentIdentifier > xId 
            = new ::ucbhelper::ContentIdentifier( aId );
		m_pImpl->m_aResults[ nIndex ]->xId = xId;
		return xId;
	}
	return uno::Reference< ucb::XContentIdentifier >();
}

//=========================================================================
// virtual
uno::Reference< ucb::XContent > 
DataSupplier::queryContent( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
		uno::Reference< ucb::XContent > xContent
								= m_pImpl->m_aResults[ nIndex ]->xContent;
		if ( xContent.is() )
		{
			// Already cached.
			return xContent;
		}
	}

	uno::Reference< ucb::XContentIdentifier > xId 
        = queryContentIdentifier( nIndex );
	if ( xId.is() )
	{
		try
		{
			uno::Reference< ucb::XContent > xContent
				= m_pImpl->m_xContent->getProvider()->queryContent( xId );
			m_pImpl->m_aResults[ nIndex ]->xContent = xContent;
			return xContent;

		}
		catch ( ucb::IllegalIdentifierException& )
		{
		}
	}
	return uno::Reference< ucb::XContent >();
}

//=========================================================================
// virtual
sal_Bool DataSupplier::getResult( sal_uInt32 nIndex )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( m_pImpl->m_aResults.size() > nIndex )
	{
		// Result already present.
		return sal_True;
	}

	// Result not (yet) present.

	if ( m_pImpl->m_bCountFinal )
=====================================================================
Found a 64 line (374 tokens) duplication in the following files: 
Starting at line 626 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/toolbox/tbxitem.cxx
Starting at line 1181 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/toolbox/tbxitem.cxx

	    else
	    {
            SfxItemState eState = SFX_ITEM_DISABLED;
		    SfxPoolItem* pItem = NULL;
		    if ( rEvent.IsEnabled )
		    {
			    eState = SFX_ITEM_AVAILABLE;
			    ::com::sun::star::uno::Type pType =	rEvent.State.getValueType();

                if ( pType == ::getVoidCppuType() )
                {
                    pItem = new SfxVoidItem( nSlotId );
                    eState = SFX_ITEM_UNKNOWN;
                }
                else if ( pType == ::getBooleanCppuType() )
			    {
				    sal_Bool bTemp = false;
				    rEvent.State >>= bTemp ;
				    pItem = new SfxBoolItem( nSlotId, bTemp );
			    }
			    else if ( pType == ::getCppuType((const sal_uInt16*)0) )
			    {
				    sal_uInt16 nTemp = 0;
				    rEvent.State >>= nTemp ;
				    pItem = new SfxUInt16Item( nSlotId, nTemp );
			    }
			    else if ( pType == ::getCppuType((const sal_uInt32*)0) )
			    {
				    sal_uInt32 nTemp = 0;
				    rEvent.State >>= nTemp ;
				    pItem = new SfxUInt32Item( nSlotId, nTemp );
			    }
			    else if ( pType == ::getCppuType((const ::rtl::OUString*)0) )
			    {
				    ::rtl::OUString sTemp ;
				    rEvent.State >>= sTemp ;
				    pItem = new SfxStringItem( nSlotId, sTemp );
			    }
                else if ( pType == ::getCppuType((const ::com::sun::star::frame::status::ItemStatus*)0) )
                {
                    ItemStatus aItemStatus;
                    rEvent.State >>= aItemStatus;
                    eState = aItemStatus.State;
                    pItem = new SfxVoidItem( nSlotId );
                }
                else if ( pType == ::getCppuType((const ::com::sun::star::frame::status::Visibility*)0) )
                {
                    Visibility aVisibilityStatus;
                    rEvent.State >>= aVisibilityStatus;
                    pItem = new SfxVisibilityItem( nSlotId, aVisibilityStatus.bVisible );
                }
			    else
                {
                    if ( pSlot )
                        pItem = pSlot->GetType()->CreateItem();
                    if ( pItem )
                    {
                        pItem->SetWhich( nSlotId );
                        pItem->PutValue( rEvent.State );
                    }
                    else
                        pItem = new SfxVoidItem( nSlotId );
                }
		    }
=====================================================================
Found a 100 line (374 tokens) duplication in the following files: 
Starting at line 325 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/XMLRangeHelper.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/XMLRangeHelper.cxx

    static const sal_Unicode aDoubleQuote( '\"' );
    static const sal_Unicode aDollar( '$' );
    static const sal_Unicode aBackslash( '\\' );

    sal_Int32 nStartPos = 0;
    sal_Int32 nEndPos = nStartPos;
    const sal_Int32 nLength = rXMLString.getLength();

    // reset
    CellRange aResult;

    // iterate over different ranges
    for( sal_Int32 i = 0;
         nEndPos < nLength;
         nStartPos = ++nEndPos, i++ )
    {
        // find start point of next range

        // ignore leading '$'
        if( rXMLString[ nEndPos ] == aDollar)
            nEndPos++;

        bool bInQuotation = false;
        // parse range
        while( nEndPos < nLength &&
               ( bInQuotation || rXMLString[ nEndPos ] != aSpace ))
        {
            // skip escaped characters (with backslash)
            if( rXMLString[ nEndPos ] == aBackslash )
                ++nEndPos;
            // toggle quotation mode when finding single quotes
            else if( rXMLString[ nEndPos ] == aQuote )
                bInQuotation = ! bInQuotation;

            ++nEndPos;
        }

        if( ! lcl_getCellRangeAddressFromXMLString(
                rXMLString,
                nStartPos, nEndPos - 1,
                aResult ))
        {
            // if an error occured, bail out
            return CellRange();
        }
    }

    return aResult;
}

OUString getXMLStringFromCellRange( const CellRange & rRange )
{
    static const sal_Unicode aSpace( ' ' );
    static const sal_Unicode aQuote( '\'' );

    ::rtl::OUStringBuffer aBuffer;

    if( (rRange.aTableName).getLength())
    {
        bool bNeedsEscaping = ( rRange.aTableName.indexOf( aQuote ) > -1 );
        bool bNeedsQuoting = bNeedsEscaping || ( rRange.aTableName.indexOf( aSpace ) > -1 );

        // quote table name if it contains spaces or quotes
        if( bNeedsQuoting )
        {
            // leading quote
            aBuffer.append( aQuote );

            // escape existing quotes
            if( bNeedsEscaping )
            {
                const sal_Unicode * pTableNameBeg = rRange.aTableName.getStr();

                // append the quoted string at the buffer
                ::std::for_each( pTableNameBeg,
                                 pTableNameBeg + rRange.aTableName.getLength(),
                                 lcl_Escape( aBuffer ) );
            }
            else
                aBuffer.append( rRange.aTableName );

            // final quote
            aBuffer.append( aQuote );
        }
        else
            aBuffer.append( rRange.aTableName );
    }
    aBuffer.append( lcl_getXMLStringForCell( rRange.aUpperLeft ));

    if( ! rRange.aLowerRight.empty())
    {
        // we have a range (not a single cell)
        aBuffer.append( sal_Unicode( ':' ));
        aBuffer.append( lcl_getXMLStringForCell( rRange.aLowerRight ));
    }

    return aBuffer.makeStringAndClear();
}

} //  namespace XMLRangeHelper
=====================================================================
Found a 105 line (373 tokens) duplication in the following files: 
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 752 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

	copyJobDataToJobSetup( pJobSetup, m_aJobData );
	
    return TRUE;
}

// -----------------------------------------------------------------------

// This function merges the independ driver data
// and sets the new independ data in pJobSetup
// Only the data must be changed, where the bit
// in nGetDataFlags is set
BOOL PspSalInfoPrinter::SetData(
	ULONG nSetDataFlags,
	ImplJobSetup* pJobSetup )
{
	JobData aData;
	JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData );

	if( aData.m_pParser )
	{
		const PPDKey* pKey;
		const PPDValue* pValue;

		// merge papersize if necessary
		if( nSetDataFlags & SAL_JOBSET_PAPERSIZE )
		{
            int nWidth, nHeight;
            if( pJobSetup->meOrientation == ORIENTATION_PORTRAIT )
            {
                nWidth	= pJobSetup->mnPaperWidth;
                nHeight	= pJobSetup->mnPaperHeight;
            }
            else
            {
                nWidth	= pJobSetup->mnPaperHeight;
                nHeight	= pJobSetup->mnPaperWidth;
            }
			String aPaper;

#ifdef MACOSX
			// For Mac OS X, many printers are directly attached
			// USB/Serial printers with a stripped-down PPD that gives us
			// problems.  We need to do PS->PDF conversion for these printers
			// but they are not able to handle multiple page sizes in the same
			// document at all, since we must pass -o media=... to them to get
			// a good printout.
			// So, we must find a match between the paper size from OOo and what
			// the PPD of the printer has, and pass that paper size to -o media=...
			// If a match cannot be found (ie the paper size from Format->Page is
			// nowhere near anything in the PPD), we default to what has been
			// chosen in File->Print->Properties.
			//
			// For printers capable of directly accepting PostScript data, none
			// of this occurs and we default to the normal OOo behavior.
			const PPDKey	*pCupsFilterKey;
			const PPDValue	*pCupsFilterValue;
			BOOL			bIsCUPSPrinter = TRUE;

			// Printers that need PS->PDF conversion have a "cupsFilter" key and
			// a value of "application/pdf" in that key
			pCupsFilterKey = aData.m_pParser->getKey( String(RTL_CONSTASCII_USTRINGPARAM("cupsFilter")) );
			pCupsFilterValue = pCupsFilterKey != NULL ? aData.m_aContext.getValue( pCupsFilterKey ) : NULL;
			if ( pCupsFilterValue )
			{
				// PPD had a cupsFilter key, check for PS->PDF conversion requirement
				ByteString    aCupsFilterString( pCupsFilterValue->m_aOption, RTL_TEXTENCODING_ISO_8859_1 );
				if ( aCupsFilterString.Search("application/pdf") == 0 )
					bIsCUPSPrinter = FALSE;
			}
			else
				bIsCUPSPrinter = FALSE;

			if ( TRUE == bIsCUPSPrinter )
			{
				// If its a directly attached printer, with a
				// stripped down PPD (most OS X printers are) always
				// match the paper size.
 				aPaper = aData.m_pParser->matchPaper(
 					TenMuToPt( pJobSetup->mnPaperWidth ),
 					TenMuToPt( pJobSetup->mnPaperHeight ) );
			}
 			else
#endif
			{
				if( pJobSetup->mePaperFormat == PAPER_USER )
					aPaper = aData.m_pParser->matchPaper(
						TenMuToPt( pJobSetup->mnPaperWidth ),
						TenMuToPt( pJobSetup->mnPaperHeight ) );
				else
					aPaper = String( ByteString( aPaperTab[ pJobSetup->mePaperFormat ].name ), RTL_TEXTENCODING_ISO_8859_1 );
			}
			pKey = aData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) );
			pValue = pKey ? pKey->getValue( aPaper ) : NULL;
			if( ! ( pKey && pValue && aData.m_aContext.setValue( pKey, pValue, false ) == pValue ) )
				return FALSE;
		}

		// merge paperbin if necessary
		if( nSetDataFlags & SAL_JOBSET_PAPERBIN )
		{
			pKey = aData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) );
			if( pKey )
			{
				int nPaperBin = pJobSetup->mnPaperBin;
				if( nPaperBin >= pKey->countValues() )
=====================================================================
Found a 94 line (373 tokens) duplication in the following files: 
Starting at line 719 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/filtdlg.cxx
Starting at line 487 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/pfiltdlg.cxx

IMPL_LINK( ScPivotFilterDlg, LbSelectHdl, ListBox*, pLb )
{
	/*
	 * Behandlung der Enable/Disable-Logik,
	 * abhaengig davon, welche ListBox angefasst wurde:
	 */

	if ( pLb == &aLbConnect1 )
	{
		if ( !aLbField2.IsEnabled() )
		{
			aLbField2.Enable();
			aLbCond2.Enable();
			aEdVal2.Enable();
		}
	}
	else if ( pLb == &aLbConnect2 )
	{
		if ( !aLbField3.IsEnabled() )
		{
			aLbField3.Enable();
			aLbCond3.Enable();
			aEdVal3.Enable();
		}
	}
	else if ( pLb == &aLbField1 )
	{
		if ( aLbField1.GetSelectEntryPos() == 0 )
		{
			aLbConnect1.SetNoSelection();
			aLbConnect2.SetNoSelection();
			aLbField2.SelectEntryPos( 0 );
			aLbField3.SelectEntryPos( 0 );
			aLbCond2.SelectEntryPos( 0 );
			aLbCond3.SelectEntryPos( 0 );
			ClearValueList( 1 );
			ClearValueList( 2 );
			ClearValueList( 3 );

			aLbConnect1.Disable();
			aLbConnect2.Disable();
			aLbField2.Disable();
			aLbField3.Disable();
			aLbCond2.Disable();
			aLbCond3.Disable();
			aEdVal2.Disable();
			aEdVal3.Disable();
		}
		else
		{
			UpdateValueList( 1 );
			if ( !aLbConnect1.IsEnabled() )
			{
				aLbConnect1.Enable();
			}
		}
	}
	else if ( pLb == &aLbField2 )
	{
		if ( aLbField2.GetSelectEntryPos() == 0 )
		{
			aLbConnect2.SetNoSelection();
			aLbField3.SelectEntryPos( 0 );
			aLbCond3.SelectEntryPos( 0 );
			ClearValueList( 2 );
			ClearValueList( 3 );

			aLbConnect2.Disable();
			aLbField3.Disable();
			aLbCond3.Disable();
			aEdVal3.Disable();
		}
		else
		{
			UpdateValueList( 2 );
			if ( !aLbConnect2.IsEnabled() )
			{
				aLbConnect2.Enable();
			}
		}
	}
	else if ( pLb == &aLbField3 )
	{
		( aLbField3.GetSelectEntryPos() == 0 )
			? ClearValueList( 3 )
			: UpdateValueList( 3 );
	}

	return 0;
}

//----------------------------------------------------------------------------

IMPL_LINK( ScPivotFilterDlg, CheckBoxHdl, CheckBox*, pBox )
=====================================================================
Found a 73 line (373 tokens) duplication in the following files: 
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

	sal_Int32 nFontWeight;

	switch( rFont.GetWeight() )
	{
		case WEIGHT_THIN:			nFontWeight = 100; break;
		case WEIGHT_ULTRALIGHT:		nFontWeight = 200; break;
		case WEIGHT_LIGHT:			nFontWeight = 300; break;
		case WEIGHT_SEMILIGHT:		nFontWeight = 400; break;
		case WEIGHT_NORMAL:			nFontWeight = 400; break;
		case WEIGHT_MEDIUM:			nFontWeight = 500; break;
		case WEIGHT_SEMIBOLD:		nFontWeight = 600; break;
		case WEIGHT_BOLD:			nFontWeight = 700; break;
		case WEIGHT_ULTRABOLD:		nFontWeight = 800; break;
		case WEIGHT_BLACK:			nFontWeight = 900; break;
		default:					nFontWeight = 400; break;
	}

	aStyle += B2UCONST( ";" );
	aStyle += B2UCONST( "font-weight:" );
	aStyle += NMSP_RTL::OUString::valueOf( nFontWeight );
			
	// !!!
	// font-variant
	// font-stretch
	// font-size-adjust

#ifdef _SVG_USE_NATIVE_TEXTDECORATION

	if( rFont.GetUnderline() != UNDERLINE_NONE || rFont.GetStrikeout() != STRIKEOUT_NONE )
	{
		aStyle += B2UCONST( ";" );
		aStyle += B2UCONST( "text-decoration:" );

		if( rFont.GetUnderline() != UNDERLINE_NONE )
			aStyle += B2UCONST( " underline" );

		if( rFont.GetStrikeout() != STRIKEOUT_NONE )
 			aStyle += B2UCONST( " line-through" );
	}

#endif // _SVG_USE_NATIVE_TEXTDECORATION

	return aStyle.GetString();
}

// -----------------------------------------------------------------------------

NMSP_RTL::OUString SVGAttributeWriter::GetPaintStyle( const Color& rLineColor, const Color& rFillColor )
{
	FastString aStyle;

	// line color
	aStyle += B2UCONST( "stroke:" );
	
	if( rLineColor.GetTransparency() == 255 )
		aStyle += B2UCONST( "none" );
	else
	{
		// line color value in rgb
		aStyle += B2UCONST( "rgb(" );
		aStyle += NMSP_RTL::OUString::valueOf( (sal_Int32) rLineColor.GetRed() );
		aStyle += B2UCONST( "," );
		aStyle += NMSP_RTL::OUString::valueOf( (sal_Int32) rLineColor.GetGreen() );
		aStyle += B2UCONST( "," );
		aStyle += NMSP_RTL::OUString::valueOf( (sal_Int32) rLineColor.GetBlue() );
		aStyle += B2UCONST( ")" );

		// line color opacity in percent if neccessary
		if( rLineColor.GetTransparency() )
		{
			aStyle += B2UCONST( ";" );
			aStyle += B2UCONST( "stroke-opacity:" );
			aStyle += NMSP_RTL::OUString::valueOf( ( 255 - (double) rLineColor.GetTransparency() ) / 255.0 );
=====================================================================
Found a 74 line (371 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/decrypter.cxx
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/decrypter.cxx

using namespace ::rtl ;
using namespace ::cppu ;
using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::io ;
using namespace ::com::sun::star::ucb ;
using namespace ::com::sun::star::beans ;
using namespace ::com::sun::star::document ;
using namespace ::com::sun::star::lang ;
using namespace ::com::sun::star::registry ;
using namespace ::com::sun::star::xml::wrapper ;
using namespace ::com::sun::star::xml::crypto ;


int SAL_CALL main( int argc, char **argv )
{
	CERTCertDBHandle*	certHandle = NULL ;
	PK11SlotInfo*		slot = NULL ;
	xmlDocPtr			doc = NULL ;
	xmlNodePtr			tplNode ;
	xmlNodePtr			tarNode ;
	FILE*				dstFile = NULL ;


	if( argc != 5 ) {
		fprintf( stderr, "Usage: %s < CertDir > <input file_url> <output file_url> <rdb file>\n\n" , argv[0] ) ;
		return 1 ;
	}

	//Init libxml and libxslt libraries
	xmlInitParser();
	LIBXML_TEST_VERSION
	xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
	xmlSubstituteEntitiesDefault(1);

	#ifndef XMLSEC_NO_XSLT
	xmlIndentTreeOutput = 1; 
	#endif // XMLSEC_NO_XSLT


	//Initialize NSPR and NSS
	PR_Init( PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1 ) ;
	PK11_SetPasswordFunc( PriPK11PasswordFunc ) ;
	if( NSS_Init( argv[1] ) != SECSuccess ) {
		fprintf( stderr , "### cannot intialize NSS!\n" ) ;
		goto done ;
	}

	certHandle = CERT_GetDefaultCertDB() ;
	slot = PK11_GetInternalKeySlot() ;

	//Load XML document
	doc = xmlParseFile( argv[2] ) ;
	if( doc == NULL || xmlDocGetRootElement( doc ) == NULL ) {
		fprintf( stderr , "### Cannot load template xml document!\n" ) ;
		goto done ;
	}

	//Find the encryption template
	tplNode = xmlSecFindNode( xmlDocGetRootElement( doc ), xmlSecNodeEncryptedData, xmlSecEncNs ) ;
	if( tplNode == NULL ) {
		fprintf( stderr , "### Cannot find the encryption template!\n" ) ;
		goto done ;
	}


	try {
		Reference< XMultiComponentFactory > xManager = NULL ;
		Reference< XComponentContext > xContext = NULL ;

		xManager = serviceManager( xContext , OUString::createFromAscii( "local" ), OUString::createFromAscii( argv[4] ) ) ;

		//Create encryption template
		Reference< XInterface > tplElement =
			xManager->createInstanceWithContext( OUString::createFromAscii( "com.sun.star.xml.xsec.XMLElementWrapper" ) , xContext ) ;
=====================================================================
Found a 38 line (371 tokens) duplication in the following files: 
Starting at line 7380 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 5159 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

		case mso_sptSeal16 :					pCustomShape = &msoSeal16; break;
		case mso_sptSeal24 :					pCustomShape = &msoSeal24; break;
		case mso_sptSeal32 :					pCustomShape = &msoSeal32; break;
		case mso_sptRibbon2 :					pCustomShape = &msoRibbon2; break;
		case mso_sptRibbon :					pCustomShape = &msoRibbon2; break;
		case mso_sptEllipseRibbon2 :			pCustomShape = &msoRibbon2; break;	//!!!!!
		case mso_sptEllipseRibbon :				pCustomShape = &msoRibbon2; break; //!!!!!
		case mso_sptVerticalScroll :			pCustomShape = &msoVerticalScroll;	break;
		case mso_sptHorizontalScroll :			pCustomShape = &msoHorizontalScroll; break;
		case mso_sptFlowChartProcess :			pCustomShape = &msoFlowChartProcess; break;
		case mso_sptFlowChartAlternateProcess :	pCustomShape = &msoFlowChartAlternateProcess; break;
		case mso_sptFlowChartDecision :			pCustomShape = &msoFlowChartDecision; break;
		case mso_sptFlowChartInputOutput :		pCustomShape = &msoFlowChartInputOutput; break;
		case mso_sptFlowChartPredefinedProcess :pCustomShape = &msoFlowChartPredefinedProcess; break;
		case mso_sptFlowChartInternalStorage :	pCustomShape = &msoFlowChartInternalStorage; break;
		case mso_sptFlowChartDocument :			pCustomShape = &msoFlowChartDocument; break;
		case mso_sptFlowChartMultidocument :	pCustomShape = &msoFlowChartMultidocument; break;
		case mso_sptFlowChartTerminator :		pCustomShape = &msoFlowChartTerminator; break;
		case mso_sptFlowChartPreparation :		pCustomShape = &msoFlowChartPreparation; break;
		case mso_sptFlowChartManualInput :		pCustomShape = &msoFlowChartManualInput; break;
		case mso_sptFlowChartManualOperation :	pCustomShape = &msoFlowChartManualOperation; break;
		case mso_sptFlowChartConnector :		pCustomShape = &msoFlowChartConnector; break;
		case mso_sptFlowChartOffpageConnector : pCustomShape = &msoFlowChartOffpageConnector; break;
		case mso_sptFlowChartPunchedCard :		pCustomShape = &msoFlowChartPunchedCard; break;
		case mso_sptFlowChartPunchedTape :		pCustomShape = &msoFlowChartPunchedTape; break;
		case mso_sptFlowChartSummingJunction :	pCustomShape = &msoFlowChartSummingJunction; break;
		case mso_sptFlowChartOr :				pCustomShape = &msoFlowChartOr; break;
		case mso_sptFlowChartCollate :			pCustomShape = &msoFlowChartCollate; break;
		case mso_sptFlowChartSort :				pCustomShape = &msoFlowChartSort; break;
		case mso_sptFlowChartExtract :			pCustomShape = &msoFlowChartExtract; break;
		case mso_sptFlowChartMerge :			pCustomShape = &msoFlowChartMerge; break;
		case mso_sptFlowChartOnlineStorage :	pCustomShape = &msoFlowChartOnlineStorage; break;
		case mso_sptFlowChartDelay :			pCustomShape = &msoFlowChartDelay; break;
		case mso_sptFlowChartMagneticTape :		pCustomShape = &msoFlowChartMagneticTape; break;
		case mso_sptFlowChartMagneticDisk :		pCustomShape = &msoFlowChartMagneticDisk; break;
		case mso_sptFlowChartMagneticDrum :		pCustomShape = &msoFlowChartMagneticDrum; break;
		case mso_sptFlowChartDisplay :			pCustomShape = &msoFlowChartDisplay; break;
		case mso_sptWave :						pCustomShape = &msoWave; break;
=====================================================================
Found a 9 line (371 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x9f, 0x0000}, // 0300 - 0307
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0308 - 030f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0310 - 0317
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0318 - 031f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0320 - 0327
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0328 - 032f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0330 - 0337
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0338 - 033f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xf4, 0x0032}, {0x00, 0x0000}, {0x00, 0x0000}, // 0340 - 0347
=====================================================================
Found a 36 line (371 tokens) duplication in the following files: 
Starting at line 624 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx
Starting at line 664 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx

		case (B3D_TXT_MODE_BND|B3D_TXT_KIND_COL) :
		{
			fS = fS - floor(fS);
			fT = fT - floor(fT);
			long nX2, nY2;

			if(fS > 0.5) {
				nX2 = (nX + 1) % GetBitmapSize().Width();
				fS = 1.0 - fS;
			} else
				nX2 = nX ? nX - 1 : GetBitmapSize().Width() - 1;

			if(fT > 0.5) {
				nY2 = (nY + 1) % GetBitmapSize().Height();
				fT = 1.0 - fT;
			} else
				nY2 = nY ? nY - 1 : GetBitmapSize().Height() - 1;

			fS += 0.5;
			fT += 0.5;
			double fRight = 1.0 - fS;
			double fBottom = 1.0 - fT;

			BitmapColor aColTL = pReadAccess->GetColor(nY, nX);
			BitmapColor aColTR = pReadAccess->GetColor(nY, nX2);
			BitmapColor aColBL = pReadAccess->GetColor(nY2, nX);
			BitmapColor aColBR = pReadAccess->GetColor(nY2, nX2);

			double fRed = ((double)aColTL.GetRed() * fS + (double)aColTR.GetRed() * fRight) * fT
				+ ((double)aColBL.GetRed() * fS + (double)aColBR.GetRed() * fRight) * fBottom;
			double fGreen = ((double)aColTL.GetGreen() * fS + (double)aColTR.GetGreen() * fRight) * fT
				+ ((double)aColBL.GetGreen() * fS + (double)aColBR.GetGreen() * fRight) * fBottom;
			double fBlue = ((double)aColTL.GetBlue() * fS + (double)aColTR.GetBlue() * fRight) * fT
				+ ((double)aColBL.GetBlue() * fS + (double)aColBR.GetBlue() * fRight) * fBottom;

			rCol.SetRed((sal_uInt8)((((double)rCol.GetRed() * (255.0 - fRed)) + ((double)aColBlend.GetRed() * fRed)) / 255.0));
=====================================================================
Found a 35 line (370 tokens) duplication in the following files: 
Starting at line 877 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap3.cxx
Starting at line 973 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap3.cxx

uno::Any SAL_CALL Svx3DExtrudeObject::getPropertyValue( const OUString& aPropertyName )
	throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
	OGuard aGuard( Application::GetSolarMutex() );

	if(mpObj.is() && aPropertyName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_3D_TRANSFORM_MATRIX)) )
	{
		// Transformation in eine homogene Matrix packen
		drawing::HomogenMatrix aHomMat; 
		basegfx::B3DHomMatrix aMat = ((E3dObject*)mpObj.get())->GetTransform(); 

		// pack evtl. transformed matrix to output
		aHomMat.Line1.Column1 = aMat.get(0, 0); 
		aHomMat.Line1.Column2 = aMat.get(0, 1); 
		aHomMat.Line1.Column3 = aMat.get(0, 2); 
		aHomMat.Line1.Column4 = aMat.get(0, 3); 
		aHomMat.Line2.Column1 = aMat.get(1, 0); 
		aHomMat.Line2.Column2 = aMat.get(1, 1); 
		aHomMat.Line2.Column3 = aMat.get(1, 2); 
		aHomMat.Line2.Column4 = aMat.get(1, 3); 
		aHomMat.Line3.Column1 = aMat.get(2, 0); 
		aHomMat.Line3.Column2 = aMat.get(2, 1); 
		aHomMat.Line3.Column3 = aMat.get(2, 2); 
		aHomMat.Line3.Column4 = aMat.get(2, 3); 
		aHomMat.Line4.Column1 = aMat.get(3, 0); 
		aHomMat.Line4.Column2 = aMat.get(3, 1); 
		aHomMat.Line4.Column3 = aMat.get(3, 2); 
		aHomMat.Line4.Column4 = aMat.get(3, 3); 

		return uno::Any( &aHomMat, ::getCppuType((const drawing::HomogenMatrix*)0) );
	}
	else if(mpObj.is() && aPropertyName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_3D_POLYPOLYGON3D)) )
	{
		// Polygondefinition packen
		const basegfx::B2DPolyPolygon& rPolyPoly = ((E3dExtrudeObj*)mpObj.get())->GetExtrudePolygon();
=====================================================================
Found a 71 line (370 tokens) duplication in the following files: 
Starting at line 2516 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zformat.cxx
Starting at line 3048 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zformat.cxx

    ULONG nSeconds = (ULONG)floor( fTime );
    String sSecStr( ::rtl::math::doubleToUString( fTime-nSeconds,
                rtl_math_StringFormat_F, int(nCntPost), '.'));
    sSecStr.EraseLeadingChars('0');
    sSecStr.EraseLeadingChars('.');
    if ( bInputLine )
    {
        sSecStr.EraseTrailingChars('0');
        if ( sSecStr.Len() < xub_StrLen(rInfo.nCntPost) )
            sSecStr.Expand( xub_StrLen(rInfo.nCntPost), '0' );
        ImpTransliterate( sSecStr, NumFor[nIx].GetNatNum() );
        nCntPost = sSecStr.Len();
    }
    else
        ImpTransliterate( sSecStr, NumFor[nIx].GetNatNum() );

    xub_StrLen nSecPos = 0;                     // Zum Ziffernweisen
                                            // abarbeiten
    ULONG nHour, nMin, nSec;
    if (!rInfo.bThousand)      // [] Format
    {
        nHour = (nSeconds/3600) % 24;
        nMin = (nSeconds%3600) / 60;
        nSec = nSeconds%60;
    }
    else if (rInfo.nThousand == 3) // [ss]
    {
        nHour = 0;
        nMin = 0;
        nSec = nSeconds;
    }
    else if (rInfo.nThousand == 2) // [mm]:ss
    {
        nHour = 0;
        nMin = nSeconds / 60;
        nSec = nSeconds % 60;
    }
    else if (rInfo.nThousand == 1) // [hh]:mm:ss
    {
        nHour = nSeconds / 3600;
        nMin = (nSeconds%3600) / 60;
        nSec = nSeconds%60;
    }
    else {
        nHour = 0;  // TODO What should these values be?
        nMin  = 0;
        nSec  = 0;
    }
    sal_Unicode cAmPm = ' ';                   // a oder p
    if (rInfo.nCntExp)     // AM/PM
    {
        if (nHour == 0)
        {
            nHour = 12;
            cAmPm = 'a';
        }
        else if (nHour < 12)
            cAmPm = 'a';
        else
        {
            cAmPm = 'p';
            if (nHour > 12)
                nHour -= 12;
        }
    }
    const USHORT nAnz = NumFor[nIx].GetnAnz();
    for (USHORT i = 0; i < nAnz; i++)
    {
        switch (rInfo.nTypeArray[i])
        {
            case NF_SYMBOLTYPE_CALENDAR :
=====================================================================
Found a 93 line (370 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{
    
void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if OSL_DEBUG_LEVEL > 1
    char const * start = p;
#endif
    
    // example: N3com3sun4star4lang24IllegalArgumentExceptionE
    
	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N
    
    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }
    
#if OSL_DEBUG_LEVEL > 1
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;
    
    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;
    
public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );
    
    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
#if __FreeBSD_version < 602103
    : m_hApp( dlopen( 0, RTLD_NOW | RTLD_GLOBAL ) )
#else
    : m_hApp( dlopen( 0, RTLD_LAZY ) )
#endif
{
}
//__________________________________________________________________________________________________
RTTI::~RTTI() SAL_THROW( () )
{
    dlclose( m_hApp );
}

//__________________________________________________________________________________________________
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW( () )
{
    type_info * rtti;
    
    OUString const & unoName = *(OUString const *)&pTypeDescr->aBase.pTypeName;
    
    MutexGuard guard( m_mutex );
    t_rtti_map::const_iterator iFind( m_rttis.find( unoName ) );
=====================================================================
Found a 42 line (368 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/pspgraphics.h
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salgdi.h

    virtual BOOL		unionClipRegion( long nX, long nY, long nWidth, long nHeight );
    // draw --> LineColor and FillColor and RasterOp and ClipRegion
    virtual void		drawPixel( long nX, long nY );
    virtual void		drawPixel( long nX, long nY, SalColor nSalColor );
    virtual void		drawLine( long nX1, long nY1, long nX2, long nY2 );
    virtual void		drawRect( long nX, long nY, long nWidth, long nHeight );
    virtual void		drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
    virtual void		drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
    virtual void		drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry );
    virtual sal_Bool	drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
    virtual sal_Bool	drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
    virtual sal_Bool	drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );

    // CopyArea --> No RasterOp, but ClipRegion
    virtual void		copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
                                  long nSrcHeight, USHORT nFlags );

    // CopyBits and DrawBitmap --> RasterOp and ClipRegion
    // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
    virtual void		copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
    virtual void		drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
    virtual void		drawBitmap( const SalTwoRect* pPosAry,
                                    const SalBitmap& rSalBitmap,
                                    SalColor nTransparentColor );
    virtual void		drawBitmap( const SalTwoRect* pPosAry,
                                    const SalBitmap& rSalBitmap,
                                    const SalBitmap& rTransparentBitmap );
    virtual void		drawMask( const SalTwoRect* pPosAry,
                                  const SalBitmap& rSalBitmap,
                                  SalColor nMaskColor );

    virtual SalBitmap*	getBitmap( long nX, long nY, long nWidth, long nHeight );
    virtual SalColor	getPixel( long nX, long nY );

    // invert --> ClipRegion (only Windows or VirDevs)
    virtual void		invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
    virtual void		invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );

    virtual BOOL		drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );

    // native widget rendering methods that require mirroring
    virtual BOOL        hitTestNativeControl( ControlType nType, ControlPart nPart, const Region& rControlRegion,
=====================================================================
Found a 28 line (367 tokens) duplication in the following files: 
Starting at line 2741 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2461 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonMovieVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 },	{ 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0x14 MSO_I, 0x12 MSO_I },
	{ 0x16 MSO_I, 0x18 MSO_I }, { 0x16 MSO_I, 0x1a MSO_I }, { 0x1c MSO_I, 0x1a MSO_I }, { 0x1e MSO_I, 0x18 MSO_I },
	{ 0x20 MSO_I, 0x18 MSO_I }, { 0x20 MSO_I, 0x22 MSO_I }, { 0x1e MSO_I, 0x22 MSO_I }, { 0x1c MSO_I, 0x24 MSO_I },
	{ 0x16 MSO_I, 0x24 MSO_I }, { 0x16 MSO_I, 0x26 MSO_I }, { 0x2a MSO_I, 0x26 MSO_I }, { 0x2a MSO_I, 0x28 MSO_I },
	{ 0x10 MSO_I, 0x28 MSO_I },	{ 0xe MSO_I, 0x2c MSO_I }, { 0xa MSO_I, 0x2c MSO_I }
};
static const sal_uInt16 mso_sptActionButtonMovieSegm[] =
{
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0012, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptActionButtonMovieCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 78 line (367 tokens) duplication in the following files: 
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/objuno.cxx
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/meta/xmlmetae.cxx

rtl::OUString lcl_GetProductName()
{
    //  get the correct product name from the configuration

    rtl::OUStringBuffer aName;

	// First product: branded name + version
	// version is <product_versions>_<product_extension>$<platform>
    utl::ConfigManager* pMgr = utl::ConfigManager::GetConfigManager();
    if (pMgr)
    {
		// plain product name
        rtl::OUString aValue;
        uno::Any aAny = pMgr->GetDirectConfigProperty(
											utl::ConfigManager::PRODUCTNAME);
        if ( (aAny >>= aValue) && aValue.getLength() )
		{
            aName.append( aValue.replace( ' ', '_' ) );
			aName.append( (sal_Unicode)'/' );

			aAny = pMgr->GetDirectConfigProperty(
										utl::ConfigManager::PRODUCTVERSION);
			if ( (aAny >>= aValue) && aValue.getLength() )
			{
				aName.append( aValue.replace( ' ', '_' ) );

				aAny = pMgr->GetDirectConfigProperty(
										utl::ConfigManager::PRODUCTEXTENSION);
				if ( (aAny >>= aValue) && aValue.getLength() )
				{
					aName.append( (sal_Unicode)'_' );
					aName.append( aValue.replace( ' ', '_' ) );
				}
			}

			aName.append( (sal_Unicode)'$' );
			aName.append( ::rtl::OUString::createFromAscii( 
									TOOLS_INETDEF_OS ).replace( ' ', '_' ) );

			aName.append( (sal_Unicode)' ' );
		}
    }

	// second product: OpenOffice.org_project/<build_information>
	// build_information has '(' and '[' encoded as '$', ')' and ']' ignored
	// and ':' replaced by '-'
	{
		aName.appendAscii( sOpenOfficeOrgProject );
		aName.append( (sal_Unicode)'/' );
        ::rtl::OUString aDefault;
        ::rtl::OUString aBuildId( utl::Bootstrap::getBuildIdData( aDefault ) );
		for( sal_Int32 i=0; i < aBuildId.getLength(); i++ )
		{
			sal_Unicode c = aBuildId[i];
			switch( c )
			{
			case '(':
			case '[':
				aName.append( (sal_Unicode)'$' );
				break;
			case ')':
			case ']':
				break;
			case ':':
				aName.append( (sal_Unicode)'-' );
				break;
			default:
				aName.append( c );
				break;
			}
		}
	}


    return aName.makeStringAndClear();
}

void SfxXMLMetaExport::Export()
=====================================================================
Found a 14 line (367 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 764 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0,// 33f0 - 33ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d00 - 4d0f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d10 - 4d1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d20 - 4d2f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d30 - 4d3f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d40 - 4d4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d50 - 4d5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d60 - 4d6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d70 - 4d7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d80 - 4d8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d90 - 4d9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4da0 - 4daf
     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4db0 - 4dbf
=====================================================================
Found a 55 line (366 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/nlist.c
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_nlist.c

    static Token deftoken[1] = {{NAME, 0, 0, 7, (uchar *) "defined", 0}};
    static Tokenrow deftr = {deftoken, deftoken, deftoken + 1, 1};

    for (kp = kwtab; kp->kw; kp++)
    {
        t.t = (uchar *) kp->kw;
        t.len = strlen(kp->kw);
        np = lookup(&t, 1);
        np->flag = (char) kp->flag;
        np->val = (char) kp->val;
        if (np->val == KDEFINED)
        {
            kwdefined = np;
            np->val = NAME;
            np->vp = &deftr;
            np->ap = 0;
        }
    }
}

Nlist *
    lookup(Token * tp, int install)
{
    unsigned int h;
    Nlist *np;
    uchar *cp, *cpe;

    h = 0;
    for (cp = tp->t, cpe = cp + tp->len; cp < cpe;)
        h += *cp++;
    h %= NLSIZE;
    np = nlist[h];
    while (np)
    {
        if (*tp->t == *np->name && tp->len == (unsigned int)np->len
            && strncmp((char *)tp->t, (char *)np->name, tp->len) == 0)
            return np;
        np = np->next;
    }
    if (install)
    {
        np = new(Nlist);
        np->vp = NULL;
        np->ap = NULL;
        np->flag = 0;
        np->val = 0;
        np->len = tp->len;
        np->name = newstring(tp->t, tp->len, 0);
        np->next = nlist[h];
        nlist[h] = np;
        quickset(tp->t[0], tp->len > 1 ? tp->t[1] : 0);
        return np;
    }
    return NULL;
}
=====================================================================
Found a 71 line (366 tokens) duplication in the following files: 
Starting at line 1106 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 1007 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx

void MenuBarManager::UpdateSpecialWindowMenu( Menu* pMenu )
{
	// update window list
	::std::vector< ::rtl::OUString > aNewWindowListVector;

	// #110897#
	// Reference< XDesktop > xDesktop( ::comphelper::getProcessServiceFactory()->createInstance( DESKTOP_SERVICE ), UNO_QUERY );
	Reference< XDesktop > xDesktop( getServiceFactory()->createInstance( DESKTOP_SERVICE ), UNO_QUERY );

	USHORT	nActiveItemId = 0;
	USHORT	nItemId = START_ITEMID_WINDOWLIST;

	if ( xDesktop.is() )
	{
        Reference< XFramesSupplier > xTasksSupplier( xDesktop, UNO_QUERY );
		Reference< XFrame > xCurrentFrame = xDesktop->getCurrentFrame();
        Reference< XIndexAccess > xList( xTasksSupplier->getFrames(), UNO_QUERY );
        sal_Int32 nCount = xList->getCount();
        for (sal_Int32 i=0; i<nCount; ++i )
		{
            Any aItem = xList->getByIndex(i);
            Reference< XFrame > xFrame;
            aItem >>= xFrame;
            if (xFrame.is())
            {
                if ( xFrame == xCurrentFrame )
                    nActiveItemId = nItemId;

                Window* pWin = VCLUnoHelper::GetWindow( xFrame->getContainerWindow() );
                if ( pWin && pWin->IsVisible() )
                {
                    aNewWindowListVector.push_back( pWin->GetText() );
                    ++nItemId;
                }
            }
		}
	}

	{
		ResetableGuard aGuard( m_aLock );

		int	nItemCount = pMenu->GetItemCount();

		if ( nItemCount > 0 )
		{
			// remove all old window list entries from menu
			sal_uInt16 nPos = pMenu->GetItemPos( START_ITEMID_WINDOWLIST );
            for ( sal_uInt16 n = nPos; n < pMenu->GetItemCount(); )
                pMenu->RemoveItem( n );

			if ( pMenu->GetItemType( pMenu->GetItemCount()-1 ) == MENUITEM_SEPARATOR )
                pMenu->RemoveItem( pMenu->GetItemCount()-1 );
		}

		if ( aNewWindowListVector.size() > 0 )
		{
			// append new window list entries to menu
			pMenu->InsertSeparator();
			nItemId = START_ITEMID_WINDOWLIST;
			for ( sal_uInt32 i = 0; i < aNewWindowListVector.size(); i++ )
			{
				pMenu->InsertItem( nItemId, aNewWindowListVector.at( i ), MIB_RADIOCHECK );
				if ( nItemId == nActiveItemId )
					pMenu->CheckItem( nItemId );
				++nItemId;
			}
		}
	}
}

void MenuBarManager::CheckAndAddMenuExtension( Menu* pMenu )
=====================================================================
Found a 57 line (366 tokens) duplication in the following files: 
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1011 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", (a >>= b) && b == 1);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testUnsignedHyper() {
=====================================================================
Found a 68 line (366 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdate.cxx
Starting at line 602 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx

				pVal->PutInt64( n );
			else
				SbxBase::SetError( SbxERR_NO_OBJECT );
			break;
		}
		case SbxBYREF | SbxCHAR:
			if( n > SbxMAXCHAR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCHAR;
			}
			else if( n < SbxMINCHAR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINCHAR;
			}
			*p->pChar = (xub_Unicode) n; break;
		case SbxBYREF | SbxBYTE:
			if( n > SbxMAXBYTE )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXBYTE;
			}
			else if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pByte = (BYTE) n; break;
		case SbxBYREF | SbxINTEGER:
		case SbxBYREF | SbxBOOL:
			if( n > SbxMAXINT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXINT;
			}
			else if( n < SbxMININT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMININT;
			}
			*p->pInteger = (INT16) n; break;
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			if( n > SbxMAXUINT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXUINT;
			}
			else if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pUShort = (UINT16) n; break;
		case SbxBYREF | SbxLONG:
			if( n > SbxMAXLNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXLNG;
			}
			else if( n < SbxMINLNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINLNG;
			}
			*p->pLong = (INT32) n; break;
		case SbxBYREF | SbxULONG:
			if( n > SbxMAXULNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXULNG;
			}
			else if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pULong = (UINT32) n; break;
		case SbxBYREF | SbxSINGLE:
=====================================================================
Found a 47 line (365 tokens) duplication in the following files: 
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

		if (tp->type != NAME
			|| quicklook(tp->t[0], tp->len > 1 ? tp->t[1] : 0) == 0
			|| (np = lookup(tp, 0)) == NULL
			|| (np->flag & (ISDEFINED | ISMAC)) == 0
			|| (np->flag & ISACTIVE) != 0)
		{
			tp++;
			continue;
		}
		trp->tp = tp;
		if (np->val == KDEFINED)
		{
			tp->type = DEFINED;
			if ((tp + 1) < trp->lp && (tp + 1)->type == NAME)
				(tp + 1)->type = NAME1;
			else
				if ((tp + 3) < trp->lp && (tp + 1)->type == LP
					&& (tp + 2)->type == NAME && (tp + 3)->type == RP)
					(tp + 2)->type = NAME1;
				else
					error(ERROR, "Incorrect syntax for `defined'");
			tp++;
			continue;
		}
		else
			if (np->val == KMACHINE)
			{
				if (((tp - 1) >= trp->bp) && ((tp - 1)->type == SHARP))
				{
					tp->type = ARCHITECTURE;
					if ((tp + 1) < trp->lp && (tp + 1)->type == NAME)
						(tp + 1)->type = NAME2;
					else
						if ((tp + 3) < trp->lp && (tp + 1)->type == LP
							&& (tp + 2)->type == NAME && (tp + 3)->type == RP)
							(tp + 2)->type = NAME2;
						else
							error(ERROR, "Incorrect syntax for `#machine'");
				}
				tp++;
				continue;
			}

		if (np->flag & ISMAC)
			builtin(trp, np->val);
		else
			expand(trp, np, &validators);
=====================================================================
Found a 58 line (365 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/tos/tempnam.c
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsdarm32/tempnam.c

const char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+16))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (access( cpdir(p, tmpdir), 3) != 0) )
     if( (dl == 0) || (access( cpdir(p, dir), 3) != 0) )
	if( access( cpdir(p, P_tmpdir),   3) != 0 )
	   if( access( cpdir(p, "/tmp"),  3) != 0 )
	      return(NULL);

   (void) strcat(p, "/");
   if(prefix)
   {
      *(p+strlen(p)+5) = '\0';
      (void)strncat(p, prefix, 5);
   }

   (void)strcat(p, seed);
   (void)strcat(p, "XXXXXX");

   q = seed;
   while(*q == 'Z') *q++ = 'A';
   ++*q;

   if(*mktemp(p) == '\0') return(NULL);
   return(p);
}




static char *
cpdir(buf, str)
char *buf;
char *str;
{
   char *p;

   if(str != NULL)
   {
      (void) strcpy(buf, str);
      p = buf - 1 + strlen(buf);
      if(*p == '/') *p = '\0';
   }

   return(buf);
}
=====================================================================
Found a 57 line (365 tokens) duplication in the following files: 
Starting at line 817 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1302 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", (a >>= b) && b == 1);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testChar() {
=====================================================================
Found a 13 line (363 tokens) duplication in the following files: 
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14b0 - 14bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14c0 - 14cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14d0 - 14df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14e0 - 14ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14f0 - 14ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1600 - 160f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1610 - 161f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1620 - 162f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1630 - 163f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1640 - 164f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1650 - 165f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,23,23, 5,// 1660 - 166f
=====================================================================
Found a 73 line (363 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesconfiguration.cxx
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesconfiguration.cxx

using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::xml::sax;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::io;


namespace framework
{

SV_IMPL_PTRARR( ImageItemListDescriptor, ImageItemDescriptorPtr );
SV_IMPL_PTRARR( ExternalImageItemListDescriptor, ExternalImageItemDescriptorPtr ); 
SV_IMPL_PTRARR( ImageListDescriptor, ImageListItemDescriptorPtr );

static Reference< XParser > GetSaxParser(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	//Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	//return Reference< XParser >( xServiceManager->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
	return Reference< XParser >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	//Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	//return Reference< XDocumentHandler >( xServiceManager->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
	return Reference< XDocumentHandler >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

// #110897#
sal_Bool ImagesConfiguration::LoadImages( 
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
	SvStream& rInStream, ImageListsDescriptor& aItems )
{
	Reference< XParser > xParser( GetSaxParser( xServiceFactory ) );
	Reference< XInputStream > xInputStream( 
								(::cppu::OWeakObject *)new utl::OInputStreamWrapper( rInStream ), 
								UNO_QUERY );

	// connect stream to input stream to the parser
	InputSource aInputSource;

	aInputSource.aInputStream = xInputStream;

	// create namespace filter and set document handler inside to support xml namespaces
	Reference< XDocumentHandler > xDocHandler( new OReadImagesDocumentHandler( aItems ));
	Reference< XDocumentHandler > xFilter( new SaxNamespaceFilter( xDocHandler ));

	// connect parser and filter
	xParser->setDocumentHandler( xFilter );

	try
	{
		xParser->parseStream( aInputSource );
		return sal_True;
	}
	catch ( RuntimeException& )
	{
		return sal_False;
	}
	catch( SAXException& )
	{
		return sal_False;
	}
	catch( ::com::sun::star::io::IOException& )
	{
		return sal_False;
	}
=====================================================================
Found a 22 line (362 tokens) duplication in the following files: 
Starting at line 1631 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 1718 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx

				const MetaChordAction*	pA = (const MetaChordAction*) pMA;
				Point					aStartPos,aCenter;
				double					fdx,fdy,fa1,fa2;

				aCenter.X()=(pA->GetRect().Left()+pA->GetRect().Right())/2;
				aCenter.Y()=(pA->GetRect().Top()+pA->GetRect().Bottom())/2;
				fdx=(double)(pA->GetStartPoint().X()-aCenter.X());
				fdy=(double)(pA->GetStartPoint().Y()-aCenter.Y());
				fdx*=(double)pA->GetRect().GetHeight();
				fdy*=(double)pA->GetRect().GetWidth();
				if (fdx==0.0 && fdy==0.0) fdx=1.0;
				fa1=atan2(-fdy,fdx);
				fdx=(double)(pA->GetEndPoint().X()-aCenter.X());
				fdy=(double)(pA->GetEndPoint().Y()-aCenter.Y());
				fdx*=(double)pA->GetRect().GetHeight();
				fdy*=(double)pA->GetRect().GetWidth();
				if (fdx==0.0 && fdy==0.0) fdx=1.0;
				fa2=atan2(-fdy,fdx);
				aStartPos.X()=aCenter.X()+(long)(((double)pA->GetRect().GetWidth())*cos(fa1)/2.0+0.5);
				aStartPos.Y()=aCenter.Y()-(long)(((double)pA->GetRect().GetHeight())*sin(fa1)/2.0+0.5);

				if( aGDIFillColor != Color( COL_TRANSPARENT ) )
=====================================================================
Found a 54 line (362 tokens) duplication in the following files: 
Starting at line 1108 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 2143 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
=====================================================================
Found a 206 line (362 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/uno2cpp.cxx

                        sal_Int32 nStackLongs )
{
	// parameter list is mixed list of * and values
	// reference parameters are pointers

	OSL_ENSURE( pStackLongs && pAdjustedThisPtr, "### null ptr!" );
	OSL_ENSURE( (sizeof(void *) == 4) &&
				 (sizeof(sal_Int32) == 4), "### unexpected size of int!" );
	OSL_ENSURE( nStackLongs && pStackLongs, "### no stack in callVirtualMethod !" );

    // never called
    if (! pAdjustedThisPtr) CPPU_CURRENT_NAMESPACE::dummy_can_throw_anything("xxx"); // address something

	volatile long o0 = 0, o1 = 0; // for register returns
	volatile double f0d = 0;
	volatile float f0f = 0;
	volatile long long saveReg[7];

	__asm__ (
		// save registers
		"std %%l0, [%4]\n\t"
		"mov %4, %%l0\n\t"
		"mov %%l0, %%l1\n\t"
		"add %%l0, 8, %%l0\n\t"
		"std %%l2, [%%l0]\n\t"
		"add %%l0, 8, %%l0\n\t"
		"std %%l4, [%%l0]\n\t"
		"add %%l0, 8, %%l0\n\t"
		"std %%o0, [%%l0]\n\t"
		"add %%l0, 8, %%l0\n\t"
		"std %%o2, [%%l0]\n\t"
		"add %%l0, 8, %%l0\n\t"
		"std %%o4, [%%l0]\n\t"
		"add %%l0, 8, %%l0\n\t"
		"std %%l6, [%%l0]\n\t"
		"mov %%l1, %%l7\n\t"

		// increase our own stackframe if necessary
		"mov %%sp, %%l3\n\t"		// save stack ptr for readjustment

		"subcc %%i5, 7, %%l0\n\t"
		"ble .LmoveOn\n\t"
		"nop\n\t"

		"sll %%l0, 2, %%l0\n\t"
		"add %%l0, 96, %%l0\n\t"
		"mov %%sp, %%l1\n\t"		// old stack ptr
		"sub %%sp, %%l0, %%l0\n\t"	// future stack ptr
		"andcc %%l0, 7, %%g0\n\t"	// align stack to 8
		"be .LisAligned\n\t"
		"nop\n\t"
		"sub %%l0, 4, %%l0\n"
	".LisAligned:\n\t"
		"mov %%l0, %%o5\n\t"			// save newly computed stack ptr
		"add %%g0, 16, %%o4\n"

		// now copy longs down to save register window
		// and local variables
	".LcopyDown:\n\t"
		"ld [%%l1], %%l2\n\t"
		"st %%l2,[%%l0]\n\t"
		"add %%l0, 4, %%l0\n\t"
		"add %%l1, 4, %%l1\n\t"
		"subcc %%o4, 1, %%o4\n\t"
		"bne .LcopyDown\n\t"

		"mov %%o5, %%sp\n\t"		// move new stack ptr (hopefully) atomically
		// while register window is valid in both spaces
		// (scheduling might hit in copyDown loop)

		"sub %%i5, 7, %%l0\n\t"		// copy parameters past the sixth to stack
		"add %%i4, 28, %%l1\n\t"
		"add %%sp, 92, %%l2\n"
	".LcopyLong:\n\t"
		"ld [%%l1], %%o0\n\t"
		"st %%o0, [%%l2]\n\t"
		"add %%l1, 4, %%l1\n\t"
		"add %%l2, 4, %%l2\n\t"
		"subcc %%l0, 1, %%l0\n\t"
		"bne .LcopyLong\n\t"
		"nop\n"

	".LmoveOn:\n\t"
		"mov %%i5, %%l0\n\t"		// prepare out registers
		"mov %%i4, %%l1\n\t"

		"ld [%%l1], %%o0\n\t"		// prepare complex return ptr
		"st %%o0, [%%sp+64]\n\t"
		"sub %%l0, 1, %%l0\n\t"
		"add %%l1, 4, %%l1\n\t"

		"ld [%%l1], %%o0\n\t"
		"subcc %%l0, 1, %%l0\n\t"
		"be .LdoCall\n\t"
		"nop\n\t"

		"add %%l1, 4, %%l1\n\t"
		"ld [%%l1], %%o1\n\t"
		"subcc %%l0, 1, %%l0\n\t"
		"be .LdoCall\n\t"
		"nop\n\t"

		"add %%l1, 4, %%l1\n\t"
		"ld [%%l1], %%o2\n\t"
		"subcc %%l0, 1, %%l0\n\t"
		"be .LdoCall\n\t"
		"nop\n\t"

		"add %%l1, 4, %%l1\n\t"
		"ld [%%l1], %%o3\n\t"
		"subcc %%l0, 1, %%l0\n\t"
		"be .LdoCall\n\t"
		"nop\n\t"

		"add %%l1, 4, %%l1\n\t"
		"ld [%%l1], %%o4\n\t"
		"subcc %%l0, 1, %%l0\n\t"
		"be .LdoCall\n\t"
		"nop\n\t"

		"add %%l1, 4, %%l1\n\t"
		"ld [%%l1], %%o5\n"

	".LdoCall:\n\t"
		"ld [%%i0], %%l0\n\t"		// get vtable ptr

"sll %%i1, 2, %%l6\n\t"
//        "add %%l6, 8, %%l6\n\t"
		"add %%l6, %%l0, %%l0\n\t"
// 		// vtable has 8byte wide entries,
// 		// upper half contains 2 half words, of which the first
// 		// is the this ptr patch !
// 		// first entry is (or __tf)

// 		"ldsh [%%l0], %%l6\n\t"		// load this ptr patch
// 		"add %%l6, %%o0, %%o0\n\t"	// patch this ptr

// 		"add %%l0, 4, %%l0\n\t"		// get virtual function ptr
		"ld [%%l0], %%l0\n\t"

		"ld [%%i4], %%l2\n\t"
		"subcc %%l2, %%g0, %%l2\n\t"
		"bne .LcomplexCall\n\t"
		"nop\n\t"
		"call %%l0\n\t"
		"nop\n\t"
		"ba .LcallReturned\n\t"
		"nop\n"
	".LcomplexCall:\n\t"
		"call %%l0\n\t"
		"nop\n\t"
		"unimp\n"

	".LcallReturned:\n\t"
		"mov %%l3, %%sp\n\t"		// readjust stack so that our locals are where they belong
		"st %%o0, %0\n\t"			// save possible return registers into our locals
		"st %%o1, %1\n\t"
		"std %%f0, %2\n\t"
		"st %%f0, %3\n\t"

		// restore registers
		"ldd [%%l7], %%l0\n\t"
		"add %%l7, 8, %%l7\n\t"
		"ldd [%%l7], %%l2\n\t"
		"add %%l7, 8, %%l7\n\t"
		"ldd [%%l7], %%l4\n\t"
		"add %%l7, 8, %%l7\n\t"
		"ldd [%%l7], %%o0\n\t"
		"add %%l7, 8, %%l7\n\t"
		"ldd [%%l7], %%o2\n\t"
		"add %%l7, 8, %%l7\n\t"
		"ldd [%%l7], %%o4\n\t"
		"add %%l7, 8, %%l7\n\t"
		"ldd [%%l7], %%l6\n\t"
		: :
		"m"(o0),
		"m"(o1),
		"m"(f0d),
		"m"(f0f),
		"r"(&saveReg[0])
		);
	switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = o1;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = o0;
			break;
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = (unsigned short)o0;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = (unsigned char)o0;
			break;
		case typelib_TypeClass_FLOAT:
			*(float*)pRegisterReturn = f0f;
			break;
		case typelib_TypeClass_DOUBLE:
			*(double*)pRegisterReturn = f0d;
			break;
=====================================================================
Found a 80 line (361 tokens) duplication in the following files: 
Starting at line 5555 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par.cxx

SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
									   DffObjData& rObjData,
									   void* pData,
									   Rectangle& rTextRect,
									   SdrObject* pObj
									   )
{
	if( !rTextRect.IsEmpty() )
	{
		SvxMSDffImportData& rImportData = *(SvxMSDffImportData*)pData;
		SvxMSDffImportRec* pImpRec = new SvxMSDffImportRec;
		SvxMSDffImportRec* pTextImpRec = pImpRec;

		// fill Import Record with data
		pImpRec->nShapeId   = rObjData.nShapeId;
		pImpRec->eShapeType = rObjData.eShapeType;

		MSO_WrapMode eWrapMode( (MSO_WrapMode)GetPropertyValue(
															DFF_Prop_WrapText,
															mso_wrapSquare ) );
		rObjData.bClientAnchor = maShapeRecords.SeekToContent( rSt,
											DFF_msofbtClientAnchor,
											SEEK_FROM_CURRENT_AND_RESTART );
		if( rObjData.bClientAnchor )
			ProcessClientAnchor( rSt,
					maShapeRecords.Current()->nRecLen,
					pImpRec->pClientAnchorBuffer, pImpRec->nClientAnchorLen );

		rObjData.bClientData = maShapeRecords.SeekToContent( rSt,
											DFF_msofbtClientData,
											SEEK_FROM_CURRENT_AND_RESTART );
		if( rObjData.bClientData )
			ProcessClientData( rSt,
					maShapeRecords.Current()->nRecLen,
					pImpRec->pClientDataBuffer, pImpRec->nClientDataLen );


		// process user (== Winword) defined parameters in 0xF122 record
		if(    maShapeRecords.SeekToContent( rSt,
											 DFF_msofbtUDefProp,
											 SEEK_FROM_CURRENT_AND_RESTART )
			&& maShapeRecords.Current()->nRecLen )
		{
			UINT32  nBytesLeft = maShapeRecords.Current()->nRecLen;
			UINT32	nUDData;
			UINT16  nPID;
			while( 5 < nBytesLeft )
			{
				rSt >> nPID;
				if ( rSt.GetError() != 0 )
					break;
				rSt >> nUDData;
				switch( nPID )
				{
					case 0x038F: pImpRec->nXAlign = nUDData; break;
					case 0x0390: pImpRec->nXRelTo = nUDData; break;
					case 0x0391: pImpRec->nYAlign = nUDData; break;
					case 0x0392: pImpRec->nYRelTo = nUDData; break;
                    case 0x03BF: pImpRec->nLayoutInTableCell = nUDData; break;
				}
				if ( rSt.GetError() != 0 )
					break;
				pImpRec->bHasUDefProp = TRUE;
				nBytesLeft  -= 6;
			}
		}

		//  Textrahmen, auch Title oder Outline
		SdrObject*  pOrgObj  = pObj;
		SdrRectObj* pTextObj = 0;
		UINT32 nTextId = GetPropertyValue( DFF_Prop_lTxid, 0 );
		if( nTextId )
		{
			SfxItemSet aSet( pSdrModel->GetItemPool() );

            //Originally anything that as a mso_sptTextBox was created as a
            //textbox, this was changed for #88277# to be created as a simple
            //rect to keep impress happy. For the rest of us we'd like to turn
            //it back into a textbox again.
            FASTBOOL bIsSimpleDrawingTextBox = (pImpRec->eShapeType == mso_sptTextBox);
=====================================================================
Found a 51 line (361 tokens) duplication in the following files: 
Starting at line 5209 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 1884 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin4.cxx

	MapMode aOld = GetMapMode(); SetMapMode(MAP_PIXEL);

	SCTAB nTab = pViewData->GetTabNo();

	SCCOL nPosX = pViewData->GetPosX(WhichH(eWhich));
	SCROW nPosY = pViewData->GetPosY(WhichV(eWhich));
	if (nX1 < nPosX) nX1 = nPosX;
	if (nX2 < nPosX) nX2 = nPosX;
	if (nY1 < nPosY) nY1 = nPosY;
	if (nY2 < nPosY) nY2 = nPosY;

	Point aScrPos( pViewData->GetScrPos( nX1, nY1, eWhich ) );

	long nSizeXPix=0;
	long nSizeYPix=0;
	ScDocument* pDoc = pViewData->GetDocument();
	double nPPTX = pViewData->GetPPTX();
	double nPPTY = pViewData->GetPPTY();
	SCCOLROW i;

	BOOL bLayoutRTL = pDoc->IsLayoutRTL( nTab );
	long nLayoutSign = bLayoutRTL ? -1 : 1;

    if (ValidCol(nX2) && nX2>=nX1)
        for (i=nX1; i<=nX2; i++)
            nSizeXPix += ScViewData::ToPixel( pDoc->GetColWidth( static_cast<SCCOL>(i), nTab ), nPPTX );
    else
    {
        aScrPos.X() -= nLayoutSign;
        nSizeXPix   += 2;
    }

	if (ValidRow(nY2) && nY2>=nY1)
		for (i=nY1; i<=nY2; i++)
			nSizeYPix += ScViewData::ToPixel( pDoc->GetRowHeight( i, nTab ), nPPTY );
	else
	{
		aScrPos.Y() -= 1;
		nSizeYPix   += 2;
	}

	aScrPos.X() -= 2 * nLayoutSign;
	aScrPos.Y() -= 2;
//	Rectangle aRect( aScrPos, Size( nSizeXPix + 3, nSizeYPix + 3 ) );
	Rectangle aRect( aScrPos.X(), aScrPos.Y(),
					 aScrPos.X() + ( nSizeXPix + 2 ) * nLayoutSign, aScrPos.Y() + nSizeYPix + 2 );
	if ( bLayoutRTL )
	{
		aRect.Left() = aRect.Right();	// end position is left
		aRect.Right() = aScrPos.X();
	}
=====================================================================
Found a 13 line (361 tokens) duplication in the following files: 
Starting at line 979 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1472 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30e0 - 30ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a400 - a40f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a410 - a41f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a420 - a42f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a430 - a43f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a440 - a44f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a450 - a45f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a460 - a46f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a470 - a47f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a480 - a48f
=====================================================================
Found a 16 line (360 tokens) duplication in the following files: 
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/defltuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_CFCHARS),	ATTR_FONT,			&getCppuType((sal_Int16*)0),		0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFCHARS),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),		0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFCHARS),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),		0, MID_FONT_CHAR_SET },
		{MAP_CHAR_LEN(SC_UNONAME_CFFAMIL),	ATTR_FONT,			&getCppuType((sal_Int16*)0),		0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFFAMIL),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),		0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFFAMIL),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),		0, MID_FONT_FAMILY },
		{MAP_CHAR_LEN(SC_UNONAME_CFNAME),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),	0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFNAME),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),	0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFNAME),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),	0, MID_FONT_FAMILY_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CFPITCH),	ATTR_FONT,			&getCppuType((sal_Int16*)0),		0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFPITCH),	ATTR_CJK_FONT,		&getCppuType((sal_Int16*)0),		0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFPITCH),	ATTR_CTL_FONT,		&getCppuType((sal_Int16*)0),		0, MID_FONT_PITCH },
		{MAP_CHAR_LEN(SC_UNONAME_CFSTYLE),	ATTR_FONT,			&getCppuType((rtl::OUString*)0),	0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CJK_CFSTYLE),	ATTR_CJK_FONT,		&getCppuType((rtl::OUString*)0),	0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNO_CTL_CFSTYLE),	ATTR_CTL_FONT,		&getCppuType((rtl::OUString*)0),	0, MID_FONT_STYLE_NAME },
		{MAP_CHAR_LEN(SC_UNONAME_CLOCAL),	ATTR_FONT_LANGUAGE,	&getCppuType((lang::Locale*)0),		0, MID_LANG_LOCALE },
=====================================================================
Found a 43 line (360 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/os2/ibm/tempnam.c
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/tempnam.c

dtempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", getpid() );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
=====================================================================
Found a 77 line (359 tokens) duplication in the following files: 
Starting at line 785 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/smdetect.cxx

                    }
				}
			}
		}
	}

    if ( nIndexOfInputStream == -1 && xStream.is() )
    {
        // if input stream wasn't part of the descriptor, now it should be, otherwise the content would be opend twice
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("InputStream");
        lDescriptor[nPropertyCount].Value <<= xStream;
        nPropertyCount++;
    }

    if ( nIndexOfContent == -1 && xContent.is() )
    {
        // if input stream wasn't part of the descriptor, now it should be, otherwise the content would be opend twice
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("UCBContent");
        lDescriptor[nPropertyCount].Value <<= xContent;
        nPropertyCount++;
    }

    if ( bReadOnly != bWasReadOnly )
    {
        if ( nIndexOfReadOnlyFlag == -1 )
        {
            lDescriptor.realloc( nPropertyCount + 1 );
            lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("ReadOnly");
            lDescriptor[nPropertyCount].Value <<= bReadOnly;
            nPropertyCount++;
        }
        else
            lDescriptor[nIndexOfReadOnlyFlag].Value <<= bReadOnly;
    }

	if ( !bRepairPackage && bRepairAllowed )
	{
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("RepairPackage");
        lDescriptor[nPropertyCount].Value <<= bRepairAllowed;
        nPropertyCount++;

		bOpenAsTemplate = sal_True;

		// TODO/LATER: set progress bar that should be used
	}

	if ( bOpenAsTemplate )
	{
		if ( nIndexOfTemplateFlag == -1 )
		{
        	lDescriptor.realloc( nPropertyCount + 1 );
        	lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("AsTemplate");
        	lDescriptor[nPropertyCount].Value <<= bOpenAsTemplate;
        	nPropertyCount++;
		}
		else
        	lDescriptor[nIndexOfTemplateFlag].Value <<= bOpenAsTemplate;
	}

	if ( aDocumentTitle.getLength() )
	{
		// the title was set here
		if ( nIndexOfDocumentTitle == -1 )
		{
        	lDescriptor.realloc( nPropertyCount + 1 );
        	lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("DocumentTitle");
        	lDescriptor[nPropertyCount].Value <<= aDocumentTitle;
        	nPropertyCount++;
		}
		else
        	lDescriptor[nIndexOfDocumentTitle].Value <<= aDocumentTitle;
	}

    if ( !aFilterName.Len() )
=====================================================================
Found a 63 line (358 tokens) duplication in the following files: 
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/hdft.cxx
Starting at line 1303 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/page.cxx

void SvxPageDescPage::ResetBackground_Impl( const SfxItemSet& rSet )
{
	USHORT nWhich = GetWhich( SID_ATTR_PAGE_HEADERSET );

	if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
	{
		const SvxSetItem& rSetItem =
			(const SvxSetItem&)rSet.Get( nWhich, FALSE );
		const SfxItemSet& rTmpSet = rSetItem.GetItemSet();
		const SfxBoolItem& rOn =
			(const SfxBoolItem&)rTmpSet.Get( GetWhich( SID_ATTR_PAGE_ON ) );

		if ( rOn.GetValue() )
		{
			nWhich = GetWhich( SID_ATTR_BRUSH );

			if ( rTmpSet.GetItemState( nWhich ) == SFX_ITEM_SET )
			{
				const SvxBrushItem& rItem =
					(const SvxBrushItem&)rTmpSet.Get( nWhich );
				aBspWin.SetHdColor( rItem.GetColor() );
			}
			nWhich = GetWhich( SID_ATTR_BORDER_OUTER );

			if ( rTmpSet.GetItemState( nWhich ) == SFX_ITEM_SET )
			{
				const SvxBoxItem& rItem =
					(const SvxBoxItem&)rTmpSet.Get( nWhich );
				aBspWin.SetHdBorder( rItem );
			}
		}
	}

	nWhich = GetWhich( SID_ATTR_PAGE_FOOTERSET );

	if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
	{
		const SvxSetItem& rSetItem =
			(const SvxSetItem&)rSet.Get( nWhich, FALSE );
		const SfxItemSet& rTmpSet = rSetItem.GetItemSet();
		const SfxBoolItem& rOn =
			(const SfxBoolItem&)rTmpSet.Get( GetWhich( SID_ATTR_PAGE_ON ) );

		if ( rOn.GetValue() )
		{
			nWhich = GetWhich( SID_ATTR_BRUSH );

			if ( rTmpSet.GetItemState( nWhich ) == SFX_ITEM_SET )
			{
				const SvxBrushItem& rItem =
					(const SvxBrushItem&)rTmpSet.Get( nWhich );
				aBspWin.SetFtColor( rItem.GetColor() );
			}
			nWhich = GetWhich( SID_ATTR_BORDER_OUTER );

			if ( rTmpSet.GetItemState( nWhich ) == SFX_ITEM_SET )
			{
				const SvxBoxItem& rItem =
					(const SvxBoxItem&)rTmpSet.Get( nWhich );
				aBspWin.SetFtBorder( rItem );
			}
		}
	}
=====================================================================
Found a 51 line (358 tokens) duplication in the following files: 
Starting at line 36 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/tempnam.c
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/microsft/tempnam.c

extern char *mktemp();
extern int access();
int d_access();

/* MSC stdio.h defines P_tmpdir, so let's undo it here */
/* Under DOS leave the default tmpdir pointing here!		*/
#ifdef P_tmpdir
#undef P_tmpdir
#endif
static char *P_tmpdir = "";

char *
tempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", _psp );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];
=====================================================================
Found a 60 line (358 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1673 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
=====================================================================
Found a 42 line (358 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/surface.cxx
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/surface.cxx

		const ::basegfx::B2DPoint& p3(aTransform * ::basegfx::B2DPoint(aSize.getX(),0.0));

		canvas::Vertex vertex;
		vertex.r = 1.0f;
		vertex.g = 1.0f;
		vertex.b = 1.0f;
		vertex.a = static_cast<float>(fAlpha);
		vertex.z = 0.0f;

        {
            pRenderModule->beginPrimitive( canvas::IRenderModule::PRIMITIVE_TYPE_QUAD );

            // issue an endPrimitive() when leaving the scope
            const ::comphelper::ScopeGuard aScopeGuard(
                boost::bind( &::canvas::IRenderModule::endPrimitive,
                             ::boost::ref(pRenderModule) ) );

            vertex.u=static_cast<float>(u2); vertex.v=static_cast<float>(v2);
            vertex.x=static_cast<float>(p0.getX()); vertex.y=static_cast<float>(p0.getY());
            pRenderModule->pushVertex(vertex);

            vertex.u=static_cast<float>(u1); vertex.v=static_cast<float>(v2);
            vertex.x=static_cast<float>(p1.getX()); vertex.y=static_cast<float>(p1.getY());
            pRenderModule->pushVertex(vertex);

            vertex.u=static_cast<float>(u1); vertex.v=static_cast<float>(v1);
            vertex.x=static_cast<float>(p2.getX()); vertex.y=static_cast<float>(p2.getY());
            pRenderModule->pushVertex(vertex);

            vertex.u=static_cast<float>(u2); vertex.v=static_cast<float>(v1);
            vertex.x=static_cast<float>(p3.getX()); vertex.y=static_cast<float>(p3.getY());
            pRenderModule->pushVertex(vertex);
        }

		return !(pRenderModule->isError());
	}

	//////////////////////////////////////////////////////////////////////////////////
	// Surface::drawWithClip
	//////////////////////////////////////////////////////////////////////////////////

	bool Surface::drawWithClip( double                          fAlpha,
=====================================================================
Found a 89 line (358 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{

void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if OSL_DEBUG_LEVEL > 1
    char const * start = p;
#endif

    // example: N3com3sun4star4lang24IllegalArgumentExceptionE

	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N

    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }

#if OSL_DEBUG_LEVEL > 1
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;

    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;

public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );

    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
    : m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
//__________________________________________________________________________________________________
RTTI::~RTTI() SAL_THROW( () )
{
    dlclose( m_hApp );
}

//__________________________________________________________________________________________________
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW( () )
{
    type_info * rtti;

    OUString const & unoName = *(OUString const *)&pTypeDescr->aBase.pTypeName;

    MutexGuard guard( m_mutex );
    t_rtti_map::const_iterator iFind( m_rttis.find( unoName ) );
=====================================================================
Found a 86 line (357 tokens) duplication in the following files: 
Starting at line 932 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docbm.cxx
Starting at line 1073 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docbm.cxx

				}
				break;

			case 0x0800:
			case 0x0801:
				{
					USHORT nCnt = 0;
					SwCrsrShell* pShell = pDoc->GetEditShell();
					if( pShell )
					{
						FOREACHSHELL_START( pShell )
							register SwPaM *_pStkCrsr = PCURSH->GetStkCrsr();
							if( _pStkCrsr )
							do {
								if( aSave.GetCount() == nCnt )
								{
									pPos = &_pStkCrsr->GetBound( 0x0800 ==
												aSave.GetType() );
									break;
								}
								++nCnt;
							} while ( (_pStkCrsr != 0 ) &&
								((_pStkCrsr=(SwPaM *)_pStkCrsr->GetNext()) != PCURSH->GetStkCrsr()) );

							if( pPos )
								break;

							FOREACHPAM_START( PCURSH->_GetCrsr() )
								if( aSave.GetCount() == nCnt )
								{
									pPos = &PCURCRSR->GetBound( 0x0800 ==
												aSave.GetType() );
									break;
								}
								++nCnt;
							FOREACHPAM_END()
							if( pPos )
								break;

						FOREACHSHELL_END( pShell )
					}
				}
				break;

			case 0x0400:
			case 0x0401:
				{
					USHORT nCnt = 0;
					register const SwUnoCrsrTbl& rTbl = pDoc->GetUnoCrsrTbl();
					for( USHORT i = 0; i < rTbl.Count(); ++i )
					{
						FOREACHPAM_START( rTbl[ i ] )
							if( aSave.GetCount() == nCnt )
							{
								pPos = &PCURCRSR->GetBound( 0x0400 ==
													aSave.GetType() );
								break;
							}
							++nCnt;
						FOREACHPAM_END()
						if( pPos )
							break;

						SwUnoTableCrsr* pUnoTblCrsr = (SwUnoTableCrsr*)*rTbl[ i ];
						if( pUnoTblCrsr )
						{
							FOREACHPAM_START( &pUnoTblCrsr->GetSelRing() )
								if( aSave.GetCount() == nCnt )
								{
									pPos = &PCURCRSR->GetBound( 0x0400 ==
													aSave.GetType() );
									break;
								}
								++nCnt;
							FOREACHPAM_END()
						}
						if( pPos )
							break;
					}
				}
				break;
			}

			if( pPos )
			{
				pPos->nNode = rNd;
=====================================================================
Found a 63 line (357 tokens) duplication in the following files: 
Starting at line 3838 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3904 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

void ScInterpreter::ScIntercept()
{
	if ( !MustHaveParamCount( GetByte(), 2 ) )
		return;
	ScMatrixRef pMat1 = GetMatrix();
	ScMatrixRef pMat2 = GetMatrix();
	if (!pMat1 || !pMat2)
	{
		SetIllegalParameter();
		return;
	}
	SCSIZE nC1, nC2;
	SCSIZE nR1, nR2;
	pMat1->GetDimensions(nC1, nR1);
	pMat2->GetDimensions(nC2, nR2);
	if (nR1 != nR2 || nC1 != nC2)
	{
		SetIllegalParameter();
		return;
	}
	// #i78250# numerical stability improved
	double fCount           = 0.0;
	double fSumX            = 0.0;
	double fSumY            = 0.0;
	double fSumDeltaXDeltaY = 0.0; // sum of (ValX-MeanX)*(ValY-MeanY)
	double fSumSqrDeltaX    = 0.0; // sum of (ValX-MeanX)^2
	for (SCSIZE i = 0; i < nC1; i++)
    {
		for (SCSIZE j = 0; j < nR1; j++)
		{
			if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
			{
				double fValX = pMat1->GetDouble(i,j);
				double fValY = pMat2->GetDouble(i,j);
				fSumX += fValX;
				fSumY += fValY;
				fCount++;
			}
		}
    }
	if (fCount < 1.0)
		SetNoValue();
	else
	{
		double fMeanX = fSumX / fCount;
		double fMeanY = fSumY / fCount;
		for (SCSIZE i = 0; i < nC1; i++)
        {
            for (SCSIZE j = 0; j < nR1; j++)
            {
                if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
                {
                    double fValX = pMat1->GetDouble(i,j);
                    double fValY = pMat2->GetDouble(i,j);
                    fSumDeltaXDeltaY += (fValX - fMeanX) * (fValY - fMeanY);
                    fSumSqrDeltaX    += (fValX - fMeanX) * (fValX - fMeanX);
                }
            }
        }
		if (fSumSqrDeltaX == 0.0)
            PushError( errDivisionByZero);
		else
			PushDouble( fMeanY - fSumDeltaXDeltaY / fSumSqrDeltaX * fMeanX);
=====================================================================
Found a 13 line (357 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4df0 - 4dff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f00 - 9f0f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f10 - 9f1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f20 - 9f2f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f30 - 9f3f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f40 - 9f4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f50 - 9f5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f60 - 9f6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f70 - 9f7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f80 - 9f8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f90 - 9f9f
     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fa0 - 9faf
=====================================================================
Found a 10 line (357 tokens) duplication in the following files: 
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05c0 - 05c7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05c8 - 05cf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05d0 - 05d7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05d8 - 05df
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05e0 - 05e7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05e8 - 05ef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05f0 - 05f7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 05f8 - 05ff

    {0x6a, 0x1E01}, {0x15, 0x1E00}, {0x6a, 0x1E03}, {0x15, 0x1E02}, {0x6a, 0x1E05}, {0x15, 0x1E04}, {0x6a, 0x1E07}, {0x15, 0x1E06}, // 1e00 - 1e07
=====================================================================
Found a 64 line (356 tokens) duplication in the following files: 
Starting at line 1270 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/helper/xsecctl.cxx

			sHundredth = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("0"));
        }
    }
    else
        aDateStr = rString;         // no separator: only date part

    sal_Int32 nYear  = 1899;
    sal_Int32 nMonth = 12;
    sal_Int32 nDay   = 30;
    sal_Int32 nHour  = 0;
    sal_Int32 nMin   = 0;
    sal_Int32 nSec   = 0;

    const sal_Unicode* pStr = aDateStr.getStr();
    sal_Int32 nDateTokens = 1;
    while ( *pStr )
    {
        if ( *pStr == '-' )
            nDateTokens++;
        pStr++;
    }
    if ( nDateTokens > 3 || aDateStr.getLength() == 0 )
        bSuccess = sal_False;
    else
    {
        sal_Int32 n = 0;
        if ( !convertNumber( nYear, aDateStr.getToken( 0, '-', n ), 0, 9999 ) )
            bSuccess = sal_False;
        if ( nDateTokens >= 2 )
            if ( !convertNumber( nMonth, aDateStr.getToken( 0, '-', n ), 0, 12 ) )
                bSuccess = sal_False;
        if ( nDateTokens >= 3 )
            if ( !convertNumber( nDay, aDateStr.getToken( 0, '-', n ), 0, 31 ) )
                bSuccess = sal_False;
    }

    if ( aTimeStr.getLength() > 0 )           // time is optional
    {
        pStr = aTimeStr.getStr();
        sal_Int32 nTimeTokens = 1;
        while ( *pStr )
        {
            if ( *pStr == ':' )
                nTimeTokens++;
            pStr++;
        }
        if ( nTimeTokens > 3 )
            bSuccess = sal_False;
        else
        {
            sal_Int32 n = 0;
            if ( !convertNumber( nHour, aTimeStr.getToken( 0, ':', n ), 0, 23 ) )
                bSuccess = sal_False;
            if ( nTimeTokens >= 2 )
                if ( !convertNumber( nMin, aTimeStr.getToken( 0, ':', n ), 0, 59 ) )
                    bSuccess = sal_False;
            if ( nTimeTokens >= 3 )
                if ( !convertNumber( nSec, aTimeStr.getToken( 0, ':', n ), 0, 59 ) )
                    bSuccess = sal_False;
        }
    }

    if (bSuccess)
    {
=====================================================================
Found a 60 line (356 tokens) duplication in the following files: 
Starting at line 367 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 817 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

  double* v = new double[n];
  if ( !v )
    return 0;

  for (j = 0; j < n; j++)
  {
    for (i = 0; i < j; i++)
      v[i] = A[j][i]*A[i][i];

    v[j] = A[j][j];
    for (i = 0; i < j; i++)
      v[j] -= A[j][i]*v[i];

    A[j][j] = v[j];
    if ( fabs(v[j]) <= tolerance )
    {
      delete[] v;
      return 0;
    }
    for (i = j+1; i < n; i++)
    {
      for (k = 0; k < j; k++)
	A[i][j] -= A[i][k]*v[k];
      A[i][j] /= v[j];
    }
  }
  delete[] v;

	// Solve Ax = b.

	// Forward substitution:  Let z = DL^t x, then Lz = b.  Algorithm
	// stores z terms in b vector.
  for (i = 0; i < n; i++)
  {
    for (j = 0; j < i; j++)
      b[i] -= A[i][j]*b[j];

  }

  // Diagonal division:  Let y = L^t x, then Dy = z.  Algorithm stores
  // y terms in b vector.
  for (i = 0; i < n; i++)
  {
    if ( fabs(A[i][i]) <= tolerance )
      return 0;
    b[i] /= A[i][i];
  }

  // Back substitution:  Solve L^t x = y.  Algorithm stores x terms in
  // b vector.
  for (i = n-2; i >= 0; i--)
  {
    for (j = i+1; j < n; j++)
      b[i] -= A[j][i]*b[j];
  }

  return 1;
}
//---------------------------------------------------------------------------
int mgcLinearSystemD::SymmetricInverse (int n, double** A, double** Ainv)
=====================================================================
Found a 63 line (356 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1559 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< css::uno::Type >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type", (a >>= b) && b == getCppuType< sal_Int32 >());
=====================================================================
Found a 67 line (356 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/misc/componentcontext.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/propctrlr/pcrcomponentcontext.cxx

{
//........................................................................

    /** === begin UNO using === **/
    using ::com::sun::star::uno::Reference;
    using ::com::sun::star::uno::XComponentContext;
    using ::com::sun::star::lang::NullPointerException;
    using ::com::sun::star::lang::ServiceNotRegisteredException;
    using ::com::sun::star::uno::Exception;
    using ::com::sun::star::uno::Any;
    using ::com::sun::star::uno::XInterface;
    using ::com::sun::star::uno::UNO_QUERY_THROW;
    using ::com::sun::star::lang::XMultiServiceFactory;
    using ::com::sun::star::beans::XPropertySet;
    using ::com::sun::star::uno::UNO_QUERY;
    using ::com::sun::star::uno::RuntimeException;
    /** === end UNO using === **/

    //====================================================================
	//= ComponentContext
	//====================================================================
	//--------------------------------------------------------------------
    ComponentContext::ComponentContext( const Reference< XComponentContext >& _rxContext )
        :m_xContext( _rxContext )
    {
        if ( m_xContext.is() )
            m_xORB = m_xContext->getServiceManager();
        if ( !m_xORB.is() )
            throw NullPointerException();
    }

    //------------------------------------------------------------------------
    ComponentContext::ComponentContext( const Reference< XMultiServiceFactory >& _rxLegacyFactory )
    {
        if ( !_rxLegacyFactory.is() )
            throw NullPointerException();

        try
        {
            Reference< XPropertySet > xFactoryProperties( _rxLegacyFactory, UNO_QUERY_THROW );
            m_xContext = Reference< XComponentContext >(
                xFactoryProperties->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ) ) ),
                UNO_QUERY );
        }
        catch( const RuntimeException& ) { throw; }
        catch( const Exception& )
        {
            throw RuntimeException();
        }

        if ( m_xContext.is() )
            m_xORB = m_xContext->getServiceManager();
        if ( !m_xORB.is() )
            throw NullPointerException();
    }

    //------------------------------------------------------------------------
    Any ComponentContext::getContextValueByName( const ::rtl::OUString& _rName ) const
    {
        Any aReturn;
        try
        {
            aReturn = m_xContext->getValueByName( _rName );
        }
        catch( const Exception& )
        {
            OSL_ENSURE( sal_False, "PropertyHandler::getContextValueByName: caught an exception!" );
=====================================================================
Found a 80 line (356 tokens) duplication in the following files: 
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javaoptions.cxx

sal_Bool JavaOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) 
	throw( IllegalArgument )
{
	sal_Bool 	ret = sal_True;
	sal_uInt16	i=0;

	if (!bCmdFile)
	{
		bCmdFile = sal_True;
		
		m_program = av[0];

		if (ac < 2)
		{
			fprintf(stderr, "%s", prepareHelp().getStr());
			ret = sal_False;
		}

		i = 1;
	} else
	{
		i = 0;
	}

	char	*s=NULL;
	for( ; i < ac; i++)
	{
		if (av[i][0] == '-')
		{
			switch (av[i][1])
			{
				case 'O':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'n':
=====================================================================
Found a 72 line (356 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/codemaker/global.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/codemaker/global.cxx

OString createFileNameFromType( const OString& destination,
								const OString typeName,
								const OString postfix,
								sal_Bool bLowerCase,
								const OString prefix )
{
	OString type(typeName);

	if (bLowerCase)
	{
		type = typeName.toAsciiLowerCase();
	}

	sal_uInt32 length = destination.getLength();

	sal_Bool withPoint = sal_False;
	if (length == 0)
	{
		length++;
		withPoint = sal_True;
	}

	length += prefix.getLength() + type.getLength() + postfix.getLength();

	sal_Bool withSeperator = sal_False;
	if (destination.getStr()[destination.getLength()] != '\\' &&
		destination.getStr()[destination.getLength()] != '/' &&
		type.getStr()[0] != '\\' &&
		type.getStr()[0] != '/')
	{
		length++;
		withSeperator = sal_True;
	}

	OStringBuffer nameBuffer(length);

	if (withPoint)
		nameBuffer.append('.');
	else
		nameBuffer.append(destination.getStr(), destination.getLength());

	if (withSeperator)
		nameBuffer.append("/", 1);

	OString tmpStr(type);
	if (prefix.getLength() > 0)
	{
		tmpStr = type.replaceAt(type.lastIndexOf('/')+1, 0, prefix);
	}

	nameBuffer.append(tmpStr.getStr(), tmpStr.getLength());
	nameBuffer.append(postfix.getStr(), postfix.getLength());

	OString fileName(nameBuffer);

	sal_Char token;
#ifdef SAL_UNX
	fileName = fileName.replace('\\', '/');
	token = '/';
#else
	fileName = fileName.replace('/', '\\');
	token = '\\';
#endif

	nameBuffer = OStringBuffer(length);

    sal_Int32 nIndex = 0;
    do
	{
		nameBuffer.append(fileName.getToken( 0, token, nIndex ).getStr());

		if (nameBuffer.getLength() == 0 || OString(".") == nameBuffer.getStr())
=====================================================================
Found a 106 line (355 tokens) duplication in the following files: 
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salgdi.h
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salgdi.h

    virtual bool		drawAlphaRect( long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency );

public:
    // public SalGraphics methods, the interface to teh independent vcl part

    // get device resolution
    virtual void			GetResolution( long& rDPIX, long& rDPIY );
    // get resolution for fonts (an implementations specific adjustment,
    // ideally would be the same as the Resolution)
    virtual void			GetScreenFontResolution( long& rDPIX, long& rDPIY );
    // get the depth of the device
    virtual USHORT			GetBitCount();
    // get the width of the device
    virtual long			GetGraphicsWidth() const;

    // set the clip region to empty
    virtual void			ResetClipRegion();
    // begin setting the clip region, add rectangles to the
    // region with the UnionClipRegion call
    virtual void			BeginSetClipRegion( ULONG nCount );
    // all rectangles were added and the clip region should be set now
    virtual void			EndSetClipRegion();

    // set the line color to transparent (= don't draw lines)
    virtual void			SetLineColor();
    // set the line color to a specific color
    virtual void			SetLineColor( SalColor nSalColor );
    // set the fill color to transparent (= don't fill)
    virtual void			SetFillColor();
    // set the fill color to a specific color, shapes will be
    // filled accordingly
    virtual void          	SetFillColor( SalColor nSalColor );
    // enable/disable XOR drawing
    virtual void			SetXORMode( BOOL bSet );
    // set line color for raster operations
    virtual void			SetROPLineColor( SalROPColor nROPColor );
    // set fill color for raster operations
    virtual void			SetROPFillColor( SalROPColor nROPColor );
    // set the text color to a specific color
    virtual void			SetTextColor( SalColor nSalColor );
    // set the font
    virtual USHORT         SetFont( ImplFontSelectData*, int nFallbackLevel );
    // get the current font's etrics
    virtual void			GetFontMetric( ImplFontMetricData* );
    // get kernign pairs of the current font
    // return only PairCount if (pKernPairs == NULL)
    virtual ULONG			GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
    // get the repertoire of the current font
    virtual ImplFontCharMap* GetImplFontCharMap() const;
    // graphics must fill supplied font list
    virtual void			GetDevFontList( ImplDevFontList* );
    // graphics should call ImplAddDevFontSubstitute on supplied
    // OutputDevice for all its device specific preferred font substitutions
    virtual void			GetDevFontSubstList( OutputDevice* );
    virtual bool			AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
    // CreateFontSubset: a method to get a subset of glyhps of a font
    // inside a new valid font file
    // returns TRUE if creation of subset was successfull
    // parameters: rToFile: contains a osl file URL to write the subset to
    //             pFont: describes from which font to create a subset
    //             pGlyphIDs: the glyph ids to be extracted
    //             pEncoding: the character code corresponding to each glyph
    //             pWidths: the advance widths of the correspoding glyphs (in PS font units)
    //             nGlyphs: the number of glyphs
    //             rInfo: additional outgoing information
    // implementation note: encoding 0 with glyph id 0 should be added implicitly
    // as "undefined character"
    virtual BOOL			CreateFontSubset( const rtl::OUString& rToFile,
                                              ImplFontData* pFont,
                                              long* pGlyphIDs,
                                              sal_uInt8* pEncoding,
                                              sal_Int32* pWidths,
                                              int nGlyphs,
                                              FontSubsetInfo& rInfo // out parameter
                                              );

    // GetFontEncodingVector: a method to get the encoding map Unicode
	// to font encoded character; this is only used for type1 fonts and
    // may return NULL in case of unknown encoding vector
    // if ppNonEncoded is set and non encoded characters (that is type1
    // glyphs with only a name) exist it is set to the corresponding
    // map for non encoded glyphs; the encoding vector contains -1
    // as encoding for these cases
    virtual const std::map< sal_Unicode, sal_Int32 >* GetFontEncodingVector( ImplFontData* pFont, const std::map< sal_Unicode, rtl::OString >** ppNonEncoded );

    // GetEmbedFontData: gets the font data for a font marked
    // embeddable by GetDevFontList or NULL in case of error
    // parameters: pFont: describes the font in question
    //             pWidths: the widths of all glyphs from char code 0 to 255
    //                      pWidths MUST support at least 256 members;
    //             rInfo: additional outgoing information
    //             pDataLen: out parameter, contains the byte length of the returned buffer
    virtual const void*	GetEmbedFontData( ImplFontData* pFont,
                                          const sal_Unicode* pUnicodes,
                                          sal_Int32* pWidths,
                                          FontSubsetInfo& rInfo,
                                          long* pDataLen );
    // frees the font data again
    virtual void			FreeEmbedFontData( const void* pData, long nDataLen );
    virtual void            GetGlyphWidths( ImplFontData* pFont,
                                            bool bVertical,
                                            std::vector< sal_Int32 >& rWidths,
                                            std::map< sal_Unicode, sal_uInt32 >& rUnicodeEnc );

    virtual BOOL                    GetGlyphBoundRect( long nIndex, Rectangle& );
    virtual BOOL                    GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
=====================================================================
Found a 94 line (355 tokens) duplication in the following files: 
Starting at line 2979 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3145 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

            rSBase.pWw8Fib->GetFIBVersion(), pPcd, &rSBase) : 0;
    }

    pPieceIter = rSBase.pPieceIter;
}

WW8PLCFx_Cp_FKP::~WW8PLCFx_Cp_FKP()
{
    delete pPcd;
}

void WW8PLCFx_Cp_FKP::ResetAttrStartEnd()
{
    nAttrStart = -1;
    nAttrEnd   = -1;
    bLineEnd   = false;
}

ULONG WW8PLCFx_Cp_FKP::GetPCDIMax() const
{
    return pPcd ? pPcd->GetIMax() : 0;
}

ULONG WW8PLCFx_Cp_FKP::GetPCDIdx() const
{
    return pPcd ? pPcd->GetIdx() : 0;
}

void WW8PLCFx_Cp_FKP::SetPCDIdx( ULONG nIdx )
{
    if( pPcd )
        pPcd->SetIdx( nIdx );
}

bool WW8PLCFx_Cp_FKP::SeekPos(WW8_CP nCpPos)
{
    if( pPcd )  // Complex
    {
        if( !pPcd->SeekPos( nCpPos ) )  // Piece setzen
            return false;
        if (pPCDAttrs && !pPCDAttrs->GetIter()->SeekPos(nCpPos))
            return false;
        return WW8PLCFx_Fc_FKP::SeekPos(pPcd->AktPieceStartCp2Fc(nCpPos));
    }
                                    // KEINE Piece-Table !!!
    return WW8PLCFx_Fc_FKP::SeekPos( rSBase.WW8Cp2Fc(nCpPos) );
}

WW8_CP WW8PLCFx_Cp_FKP::Where()
{
    WW8_FC nFc = WW8PLCFx_Fc_FKP::Where();
    if( pPcd )
        return pPcd->AktPieceStartFc2Cp( nFc ); // Piece ermitteln
    return rSBase.WW8Fc2Cp( nFc );      // KEINE Piece-Table !!!
}

void WW8PLCFx_Cp_FKP::GetSprms(WW8PLCFxDesc* p)
{
    WW8_CP nOrigCp = p->nStartPos;

    if (!GetDirty())        //Normal case
    {
        p->pMemPos = WW8PLCFx_Fc_FKP::GetSprmsAndPos(p->nStartPos, p->nEndPos,
            p->nSprmsLen);
    }
    else
    {
        /*
        #93702#
        For the odd case where we have a location in a fastsaved file which
        does not have an entry in the FKP, perhaps its para end is in the next
        piece, or perhaps the cp just doesn't exist at all in this document.
        AdvSprm doesn't know so it sets the PLCF as dirty and we figure out
        in this method what the situation is

        It doesn't exist then the piece iterator will not be able to find it.
        Otherwise our cool fastsave algorithm can be brought to bear on the
        problem.
        */
        ULONG nOldPos = pPieceIter->GetIdx();
        bool bOk = pPieceIter->SeekPos(nOrigCp);
        pPieceIter->SetIdx( nOldPos );
        if (!bOk)
            return;
    }

    if( pPcd )  // Piece-Table vorhanden !!!
    {
        // Init ( noch kein ++ gerufen )
        if( (nAttrStart >  nAttrEnd) || (nAttrStart == -1) )
        {
            p->bRealLineEnd = (ePLCF == PAP);

            if ( ((ePLCF == PAP ) || (ePLCF == CHP)) && (nOrigCp != WW8_CP_MAX) )
=====================================================================
Found a 71 line (355 tokens) duplication in the following files: 
Starting at line 787 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx
Starting at line 391 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/swdetect.cxx

            }
		}
	}

    if ( nIndexOfInputStream == -1 && xStream.is() )
    {
        // if input stream wasn't part of the descriptor, now it should be, otherwise the content would be opend twice
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("InputStream");
        lDescriptor[nPropertyCount].Value <<= xStream;
        nPropertyCount++;
    }

    if ( nIndexOfContent == -1 && xContent.is() )
    {
        // if input stream wasn't part of the descriptor, now it should be, otherwise the content would be opend twice
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("UCBContent");
        lDescriptor[nPropertyCount].Value <<= xContent;
        nPropertyCount++;
    }

    if ( bReadOnly != bWasReadOnly )
    {
        if ( nIndexOfReadOnlyFlag == -1 )
        {
            lDescriptor.realloc( nPropertyCount + 1 );
            lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("ReadOnly");
            lDescriptor[nPropertyCount].Value <<= bReadOnly;
            nPropertyCount++;
        }
        else
            lDescriptor[nIndexOfReadOnlyFlag].Value <<= bReadOnly;
    }

	if ( !bRepairPackage && bRepairAllowed )
	{
        lDescriptor.realloc( nPropertyCount + 1 );
        lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("RepairPackage");
        lDescriptor[nPropertyCount].Value <<= bRepairAllowed;
        nPropertyCount++;
		bOpenAsTemplate = sal_True;
		// TODO/LATER: set progress bar that should be used
	}

	if ( bOpenAsTemplate )
	{
		if ( nIndexOfTemplateFlag == -1 )
		{
        	lDescriptor.realloc( nPropertyCount + 1 );
        	lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("AsTemplate");
        	lDescriptor[nPropertyCount].Value <<= bOpenAsTemplate;
        	nPropertyCount++;
		}
		else
        	lDescriptor[nIndexOfTemplateFlag].Value <<= bOpenAsTemplate;
	}

	if ( aDocumentTitle.getLength() )
	{
		// the title was set here
		if ( nIndexOfDocumentTitle == -1 )
		{
        	lDescriptor.realloc( nPropertyCount + 1 );
        	lDescriptor[nPropertyCount].Name = ::rtl::OUString::createFromAscii("DocumentTitle");
        	lDescriptor[nPropertyCount].Value <<= aDocumentTitle;
        	nPropertyCount++;
		}
		else
        	lDescriptor[nIndexOfDocumentTitle].Value <<= aDocumentTitle;
	}
=====================================================================
Found a 46 line (354 tokens) duplication in the following files: 
Starting at line 3808 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 2051 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap2.cxx

			GeoStat aNewGeo( aCustomShapeGeoData.aGeo );
			if ( bMirroredX )
			{
				Polygon aPol( Rect2Poly( aRect, aNewGeo ) );
				Rectangle aBoundRect( aPol.GetBoundRect() );

				Point aRef1( ( aBoundRect.Left() + aBoundRect.Right() ) >> 1, aBoundRect.Top() );
				Point aRef2( aRef1.X(), aRef1.Y() + 1000 );
				USHORT i;
				USHORT nPntAnz=aPol.GetSize();
				for (i=0; i<nPntAnz; i++)
				{
					MirrorPoint(aPol[i],aRef1,aRef2);
				}
				// Polygon wenden und etwas schieben
				Polygon aPol0(aPol);
				aPol[0]=aPol0[1];
				aPol[1]=aPol0[0];
				aPol[2]=aPol0[3];
				aPol[3]=aPol0[2];
				aPol[4]=aPol0[1];
				Poly2Rect(aPol,aRectangle,aNewGeo);
			}
			if ( bMirroredY )
			{
				Polygon aPol( Rect2Poly( aRectangle, aNewGeo ) );
				Rectangle aBoundRect( aPol.GetBoundRect() );

				Point aRef1( aBoundRect.Left(), ( aBoundRect.Top() + aBoundRect.Bottom() ) >> 1 );
				Point aRef2( aRef1.X() + 1000, aRef1.Y() );
				USHORT i;
				USHORT nPntAnz=aPol.GetSize();
				for (i=0; i<nPntAnz; i++)
				{
					MirrorPoint(aPol[i],aRef1,aRef2);
				}
				// Polygon wenden und etwas schieben
				Polygon aPol0(aPol);
				aPol[0]=aPol0[1];
				aPol[1]=aPol0[0];
				aPol[2]=aPol0[3];
				aPol[3]=aPol0[2];
				aPol[4]=aPol0[1];
				Poly2Rect( aPol, aRectangle, aNewGeo );
			}
		}
=====================================================================
Found a 54 line (354 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/component_context.cxx
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno.cxx

		TYPELIB_DANGER_RELEASE( pTypeDescr );
		break;
	}
	case typelib_TypeClass_BOOLEAN:
		if (*(sal_Bool *)pVal)
			buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("true") );
		else
			buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("false") );
		break;
	case typelib_TypeClass_CHAR:
		buf.append( (sal_Unicode)'\'' );
		buf.append( *(sal_Unicode *)pVal );
		buf.append( (sal_Unicode)'\'' );
		break;
	case typelib_TypeClass_FLOAT:
		buf.append( *(float *)pVal );
		break;
	case typelib_TypeClass_DOUBLE:
		buf.append( *(double *)pVal );
		break;
	case typelib_TypeClass_BYTE:
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("0x") );
		buf.append( (sal_Int32)*(sal_Int8 *)pVal, 16 );
		break;
	case typelib_TypeClass_SHORT:
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("0x") );
		buf.append( (sal_Int32)*(sal_Int16 *)pVal, 16 );
		break;
	case typelib_TypeClass_UNSIGNED_SHORT:
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("0x") );
		buf.append( (sal_Int32)*(sal_uInt16 *)pVal, 16 );
		break;
	case typelib_TypeClass_LONG:
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("0x") );
		buf.append( *(sal_Int32 *)pVal, 16 );
		break;
	case typelib_TypeClass_UNSIGNED_LONG:
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("0x") );
		buf.append( (sal_Int64)*(sal_uInt32 *)pVal, 16 );
		break;
	case typelib_TypeClass_HYPER:
	case typelib_TypeClass_UNSIGNED_HYPER:
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("0x") );
#if defined(GCC) && defined(SPARC)
		{
			sal_Int64 aVal;
			*(sal_Int32 *)&aVal = *(sal_Int32 *)pVal;
			*((sal_Int32 *)&aVal +1)= *((sal_Int32 *)pVal +1);
			buf.append( aVal, 16 );
		}
#else
		buf.append( *(sal_Int64 *)pVal, 16 );
#endif
		break;
=====================================================================
Found a 57 line (353 tokens) duplication in the following files: 
Starting at line 2540 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 4702 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

void SAL_CALL OStorage::insertRelationshipByID(  const ::rtl::OUString& sID, const uno::Sequence< beans::StringPair >& aEntry, ::sal_Bool bReplace  )
		throw ( container::ElementExistException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	::rtl::OUString aIDTag( RTL_CONSTASCII_USTRINGPARAM( "Id" ) );

	sal_Int32 nIDInd = -1;

	// TODO/LATER: in future the unification of the ID could be checked
	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	for ( sal_Int32 nInd1 = 0; nInd1 < aSeq.getLength(); nInd1++ )
		for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ )
			if ( aSeq[nInd1][nInd2].First.equals( aIDTag ) )
			{
				if ( aSeq[nInd1][nInd2].Second.equals( sID ) )
					nIDInd = nInd1;

				break;
			}

	if ( nIDInd == -1 || bReplace )
	{
		if ( nIDInd == -1 )
		{
			nIDInd = aSeq.getLength();
			aSeq.realloc( nIDInd + 1 );
		}

		aSeq[nIDInd].realloc( aEntry.getLength() + 1 );

		aSeq[nIDInd][0].First = aIDTag;
		aSeq[nIDInd][0].Second = sID;
		sal_Int32 nIndTarget = 0;
		for ( sal_Int32 nIndOrig = 0;
			  nIndOrig <= aEntry.getLength();
			  nIndOrig++ )
		{
			if ( !aEntry[nIndOrig].First.equals( aIDTag ) )
				aSeq[nIDInd][nIndTarget++] = aEntry[nIndOrig];
		}

		aSeq[nIDInd].realloc( nIndTarget );
	}
	else
		throw container::ElementExistException(); // TODO


	m_pImpl->m_aRelInfo = aSeq;
=====================================================================
Found a 66 line (353 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/propshlp.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/constitemcontainer.cxx

static int SAL_CALL compare_OUString_Property_Impl( const void *arg1, const void *arg2 ) SAL_THROW( () )
{
   return ((OUString *)arg1)->compareTo( ((Property *)arg2)->Name );
}
}
 
class OPropertySetHelperInfo_Impl
    : public WeakImplHelper1< ::com::sun::star::beans::XPropertySetInfo >
{
	Sequence < Property > aInfos;

public:	
	OPropertySetHelperInfo_Impl( IPropertyArrayHelper & rHelper_ ) SAL_THROW( () );
	
	// XPropertySetInfo-Methoden
    virtual Sequence< Property > SAL_CALL getProperties(void) throw(::com::sun::star::uno::RuntimeException);
    virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName) throw(::com::sun::star::uno::RuntimeException);
};


/**
 * Create an object that implements XPropertySetInfo IPropertyArrayHelper.
 */
OPropertySetHelperInfo_Impl::OPropertySetHelperInfo_Impl(
	IPropertyArrayHelper & rHelper_ )
	SAL_THROW( () )
	:aInfos( rHelper_.getProperties() )
{
}

/**
 * Return the sequence of properties, which are provided throug the constructor.
 */
Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) throw(::com::sun::star::uno::RuntimeException)
{
	return aInfos;
}

/**
 * Return the sequence of properties, which are provided throug the constructor.
 */
Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) 
{
	Property * pR;
	pR = (Property *)bsearch( &PropertyName, aInfos.getConstArray(), aInfos.getLength(),
                              sizeof( Property ),
							  compare_OUString_Property_Impl );
	if( !pR ) {
		throw UnknownPropertyException();
	}

	return *pR;	
}

/**
 * Return the sequence of properties, which are provided throug the constructor.
 */
sal_Bool OPropertySetHelperInfo_Impl::hasPropertyByName( const OUString & PropertyName ) throw(::com::sun::star::uno::RuntimeException)
{
	Property * pR;
	pR = (Property *)bsearch( &PropertyName, aInfos.getConstArray(), aInfos.getLength(),
                              sizeof( Property ),
							  compare_OUString_Property_Impl );
	return pR != NULL;
}
=====================================================================
Found a 57 line (353 tokens) duplication in the following files: 
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 431 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

    }
    unsigned char * p = code;
    OSL_ASSERT(sizeof (sal_Int32) == 4);
    // mov function_index, %eax:
    *p++ = 0xB8;
    *reinterpret_cast< sal_Int32 * >(p) = functionIndex;
    p += sizeof (sal_Int32);
    // mov vtable_offset, %edx:
    *p++ = 0xBA;
    *reinterpret_cast< sal_Int32 * >(p) = vtableOffset;
    p += sizeof (sal_Int32);
    // jmp privateSnippetExecutor:
    *p++ = 0xE9;
    *reinterpret_cast< sal_Int32 * >(p)
        = ((unsigned char *) exec) - p - sizeof (sal_Int32);
    p += sizeof (sal_Int32);
    OSL_ASSERT(p - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /*functionCount*/, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                reinterpret_cast< typelib_InterfaceAttributeTypeDescription * >(
                    member)->pAttributeTypeRef);
=====================================================================
Found a 30 line (351 tokens) duplication in the following files: 
Starting at line 2434 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx
Starting at line 3429 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx

        nLineY = aPos.Y() + aSize.Height()/2;

        rMouseRect          = Rectangle( aPos, aSize );
        rMouseRect.Left()   = rPos.X();
        rStateRect.Left()   = rPos.X();
        rStateRect.Top()    = rMouseRect.Top();

        if ( aSize.Height() > rImageSize.Height() )
            rStateRect.Top() += ( aSize.Height() - rImageSize.Height() ) / 2;
        rStateRect.Right()  = rStateRect.Left()+rImageSize.Width()-1;
        rStateRect.Bottom() = rStateRect.Top()+rImageSize.Height()-1;
        if ( rStateRect.Bottom() > rMouseRect.Bottom() )
            rMouseRect.Bottom() = rStateRect.Bottom();
    }
    else
    {
        if ( nWinStyle & WB_CENTER )
            rStateRect.Left() = rPos.X()+((rSize.Width()-rImageSize.Width())/2);
        else if ( nWinStyle & WB_RIGHT )
            rStateRect.Left() = rPos.X()+rSize.Width()-rImageSize.Width();
        else
            rStateRect.Left() = rPos.X();
        if ( nWinStyle & WB_VCENTER )
            rStateRect.Top() = rPos.Y()+((rSize.Height()-rImageSize.Height())/2);
        else if ( nWinStyle & WB_BOTTOM )
            rStateRect.Top() = rPos.Y()+rSize.Height()-rImageSize.Height();
        else
            rStateRect.Top() = rPos.Y();
        rStateRect.Right()  = rStateRect.Left()+rImageSize.Width()-1;
        rStateRect.Bottom() = rStateRect.Top()+rImageSize.Height()-1;
=====================================================================
Found a 60 line (351 tokens) duplication in the following files: 
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/source/bridge/remote_bridge.cxx
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/source/factory/bridgeimpl.cxx

			uno_getEnvironment( &pEnvRemote , sProtocol.pData , pContext );

			if( ! pEnvRemote )
			{
				pContext->aBase.release( (uno_Context*) pContext );
				throw RuntimeException(
					OUString( RTL_CONSTASCII_USTRINGPARAM( "RemoteBridge: bridge already disposed" ) ),
					Reference< XInterface > () );
			}

			Type type = getCppuType( (Reference < XInterface > * ) 0 );
		
			remote_Interface *pRemoteI = 0;
			uno_Any exception;
			uno_Any *pException = &exception;
			
			pContext->getRemoteInstance(
				pEnvRemote,
				&pRemoteI,
				sInstanceName.pData,
				type.getTypeLibType(),
				&pException );
			pContext->aBase.release( (uno_Context*) pContext );
			pContext = 0;

			uno_Environment *pEnvCpp =0;
			OUString sCppuName( RTL_CONSTASCII_USTRINGPARAM( CPPU_CURRENT_LANGUAGE_BINDING_NAME ) );
			uno_getEnvironment( &pEnvCpp ,
								sCppuName.pData ,
								0 );
			Mapping map( pEnvRemote , pEnvCpp );

			pEnvCpp->release( pEnvCpp );
			pEnvRemote->release( pEnvRemote );

			if( pException )
			{
				typelib_CompoundTypeDescription * pCompType = 0 ;
				getCppuType( (Exception*)0 ).getDescription( (typelib_TypeDescription **) &pCompType );

				if( ! ((typelib_TypeDescription *)pCompType)->bComplete )
				{
					typelib_typedescription_complete( (typelib_TypeDescription**) &pCompType );
				}
				XInterface *pXInterface = (XInterface *) map.mapInterface(
					*(remote_Interface**) ( ((char*)pException->pData)+pCompType->pMemberOffsets[1] ),
					getCppuType( (Reference< XInterface > *)0 ) );
				RuntimeException myException(
					*((rtl_uString **)pException->pData),
					Reference< XInterface > ( pXInterface , SAL_NO_ACQUIRE) );
				uno_any_destruct( pException , 0 );

				throw myException;
			}
			else if( pRemoteI )
			{
				// got an interface !
				XInterface * pCppI = ( XInterface * ) map.mapInterface( pRemoteI, type );
				rReturn = Reference<XInterface > ( pCppI, SAL_NO_ACQUIRE );
				pRemoteI->release( pRemoteI );
=====================================================================
Found a 8 line (351 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x15, 0x0058}, {0x15, 0x0059}, {0x15, 0x005A}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0078 - 007f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0080 - 0087
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0088 - 008f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0090 - 0097
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0098 - 009f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 00a0 - 00a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 00a8 - 00af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xf5, 0x0005}, {0x00, 0x0000}, {0x00, 0x0000}, // 00b0 - 00b7
=====================================================================
Found a 58 line (349 tokens) duplication in the following files: 
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 689 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

      double* rowptr = a[irow];
      a[irow] = a[icol];
      a[icol] = rowptr;

      save = b[irow];
      b[irow] = b[icol];
      b[icol] = save;
    }

    indxr[i] = irow;
    indxc[i] = icol;
    if ( a[icol][icol] == 0 )
    {
      delete[] ipiv;
      delete[] indxr;
      delete[] indxc;
      return 0;
    }

    pivinv = 1/a[icol][icol];
    a[icol][icol] = 1;
    for (k = 0; k < n; k++)
      a[icol][k] *= pivinv;
    b[icol] *= pivinv;

    for (j = 0; j < n; j++)
    {
      if ( j != icol )
      {
	save = a[j][icol];
	a[j][icol] = 0;
	for (k = 0; k < n; k++)
	  a[j][k] -= a[icol][k]*save;
	b[j] -= b[icol]*save;
      }
    }
  }

  for (j = n-1; j >= 0; j--)
  {
    if ( indxr[j] != indxc[j] )
    {
      for (k = 0; k < n; k++)
      {
	save = a[k][indxr[j]];
	a[k][indxr[j]] = a[k][indxc[j]];
	a[k][indxc[j]] = save;
      }
    }
  }

  delete[] ipiv;
  delete[] indxr;
  delete[] indxc;
  return 1;
}
//---------------------------------------------------------------------------
int mgcLinearSystemD::SolveTri (int n, double* a, double* b, double* c,
=====================================================================
Found a 96 line (348 tokens) duplication in the following files: 
Starting at line 748 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 826 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        if (ww::IsEightPlus(meVersion)) //We can recover perfectly in this case
        {
            aSrch.nVari = L_FIX;
            switch (nId >> 13)
            {
                case 0:
                case 1:
                    aSrch.nLen = 1;
                    break;
                case 2:
                    aSrch.nLen = 2;
                    break;
                case 3:
                    aSrch.nLen = 4;
                    break;
                case 4:
                case 5:
                    aSrch.nLen = 2;
                    break;
                case 6:
                    aSrch.nLen = 0;
                    aSrch.nVari =  L_VAR;
                    break;
                case 7:
                default:
                    aSrch.nLen = 3;
                    break;
            }
        }

        pFound = &aSrch;
    }
    return *pFound;
}

//-end

inline BYTE Get_Byte( BYTE *& p )
{
    BYTE n = SVBT8ToByte( *(SVBT8*)p );
    p += 1;
    return n;
}

inline USHORT Get_UShort( BYTE *& p )
{
    USHORT n = SVBT16ToShort( *(SVBT16*)p );
    p += 2;
    return n;
}

inline short Get_Short( BYTE *& p )
{
    return Get_UShort(p);
}

inline ULONG Get_ULong( BYTE *& p )
{
    ULONG n = SVBT32ToUInt32( *(SVBT32*)p );
    p += 4;
    return n;
}

inline long Get_Long( BYTE *& p )
{
    return Get_ULong(p);
}

WW8SprmIter::WW8SprmIter(const BYTE* pSprms_, long nLen_,
    const wwSprmParser &rParser)
    :  mrSprmParser(rParser), pSprms( pSprms_), nRemLen( nLen_)
{
    UpdateMyMembers();
}

void WW8SprmIter::SetSprms(const BYTE* pSprms_, long nLen_)
{
    pSprms = pSprms_;
    nRemLen = nLen_;
    UpdateMyMembers();
}

const BYTE* WW8SprmIter::operator ++( int )
{
    if (nRemLen > 0)
    {
        pSprms += nAktSize;
        nRemLen -= nAktSize;
        UpdateMyMembers();
    }
    return pSprms;
}

void WW8SprmIter::UpdateMyMembers()
{
    if (pSprms && nRemLen > (mrSprmParser.getVersion()?1:0)) //see #125180#
=====================================================================
Found a 65 line (348 tokens) duplication in the following files: 
Starting at line 846 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodel.cxx
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodelapi.cxx

				Reference< XSimpleMailMessage > xSimpleMailMessage = xSimpleMailClient->createSimpleMailMessage();
				if ( xSimpleMailMessage.is() )
				{
					sal_Int32 nSendFlags = SimpleMailClientFlags::DEFAULTS;
					if ( maFromAddress.Len() == 0 )
					{
						// from address not set, try figure out users e-mail address
						CreateFromAddress_Impl( maFromAddress );
					}
					xSimpleMailMessage->setOriginator( maFromAddress );

					sal_Int32 nToCount		= mpToList ? mpToList->Count() : 0;
					sal_Int32 nCcCount		= mpCcList ? mpCcList->Count() : 0;
					sal_Int32 nCcSeqCount	= nCcCount;

					// set recipient (only one) for this simple mail server!!
					if ( nToCount > 1 )
					{
						nCcSeqCount = nToCount - 1 + nCcCount;
						xSimpleMailMessage->setRecipient( *mpToList->GetObject( 0 ));
						nSendFlags = SimpleMailClientFlags::NO_USER_INTERFACE;
					}
					else if ( nToCount == 1 )
					{
						xSimpleMailMessage->setRecipient( *mpToList->GetObject( 0 ));
						nSendFlags = SimpleMailClientFlags::NO_USER_INTERFACE;
					}

					// all other recipient must be handled with CC recipients!
					if ( nCcSeqCount > 0 )
					{
						sal_Int32				nIndex = 0;
						Sequence< OUString >	aCcRecipientSeq;

						aCcRecipientSeq.realloc( nCcSeqCount );
						if ( nCcSeqCount > nCcCount )
    					{
							for ( sal_Int32 i = 1; i < nToCount; ++i )
							{
								aCcRecipientSeq[nIndex++] = *mpToList->GetObject(i);
							}
						}

						for ( sal_Int32 i = 0; i < nCcCount; i++ )
						{
							aCcRecipientSeq[nIndex++] = *mpCcList->GetObject(i);
						}
						xSimpleMailMessage->setCcRecipient( aCcRecipientSeq );
					}

					sal_Int32 nBccCount = mpBccList ? mpBccList->Count() : 0;
					if ( nBccCount > 0 )
					{
	    				Sequence< OUString > aBccRecipientSeq( nBccCount );
						for ( sal_Int32 i = 0; i < nBccCount; ++i )
						{
							aBccRecipientSeq[i] = *mpBccList->GetObject(i);
						}
						xSimpleMailMessage->setBccRecipient( aBccRecipientSeq );
					}

					Sequence< OUString > aAttachmentSeq(&(maAttachedDocuments[0]),maAttachedDocuments.size());

					xSimpleMailMessage->setSubject( maSubject );
					xSimpleMailMessage->setAttachement( aAttachmentSeq );
=====================================================================
Found a 86 line (348 tokens) duplication in the following files: 
Starting at line 494 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uiconfigurationmanager.cxx

void UIConfigurationManager::impl_storeElementTypeData( Reference< XStorage >& xStorage, UIElementType& rElementType, bool bResetModifyState )
{
    UIElementDataHashMap& rHashMap          = rElementType.aElementsHashMap;
    UIElementDataHashMap::iterator pIter    = rHashMap.begin();

    while ( pIter != rHashMap.end() )
    {
        UIElementData& rElement = pIter->second;
        if ( rElement.bModified )
        {
            if ( rElement.bDefault )
            {
                xStorage->removeElement( rElement.aName );
                rElement.bModified = sal_False; // mark as not modified
            }
            else
            {
                Reference< XStream > xStream( xStorage->openStreamElement( rElement.aName, ElementModes::WRITE|ElementModes::TRUNCATE ), UNO_QUERY );
                Reference< XOutputStream > xOutputStream( xStream->getOutputStream() );

                if ( xOutputStream.is() )
                {
                    switch( rElementType.nElementType )
                    {
                        case ::com::sun::star::ui::UIElementType::MENUBAR:
                        {
                            try
                            {
                                MenuConfiguration aMenuCfg( m_xServiceManager );
                                aMenuCfg.StoreMenuBarConfigurationToXML( rElement.xSettings, xOutputStream );
                            }
                            catch ( ::com::sun::star::lang::WrappedTargetException& )
                            {
                            }
                        }
                        break;

                        case ::com::sun::star::ui::UIElementType::TOOLBAR:
                        {
                            try
                            {
                                ToolBoxConfiguration::StoreToolBox( m_xServiceManager, xOutputStream, rElement.xSettings );
                            }
                            catch ( ::com::sun::star::lang::WrappedTargetException& )
                            {
                            }
                        }
                        break;

                        case ::com::sun::star::ui::UIElementType::STATUSBAR:
                        {
                            try
                            {
                                StatusBarConfiguration::StoreStatusBar( m_xServiceManager, xOutputStream, rElement.xSettings );
                            }
                            catch ( ::com::sun::star::lang::WrappedTargetException& )
                            {
                            }
                        }
                        break;
                        
                        default:
                        break;
                    }
                }

                // mark as not modified if we store to our own storage
                if ( bResetModifyState )
                    rElement.bModified = sal_False;
            }
        }

        ++pIter;
    }

    // commit element type storage
    Reference< XTransactedObject > xTransactedObject( xStorage, UNO_QUERY );
	if ( xTransactedObject.is() )
    	xTransactedObject->commit();

    // mark UIElementType as not modified if we store to our own storage
    if ( bResetModifyState )
        rElementType.bModified = sal_False;
}

void UIConfigurationManager::impl_resetElementTypeData(
=====================================================================
Found a 96 line (348 tokens) duplication in the following files: 
Starting at line 408 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 level ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInDataManipulation(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL(  ) throw(SQLException, RuntimeException)
{
	return sal_True; // should be supported at least
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInTableDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInTableDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInDataManipulation(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatements(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
=====================================================================
Found a 71 line (347 tokens) duplication in the following files: 
Starting at line 1429 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx
Starting at line 1563 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx

	awt::Point aStart(0,0);
	awt::Point aEnd(1,1);

    // --> OD 2004-08-09 #i36248# - Get <StartPositionInHoriL2R> and
    // <EndPositionInHoriL2R>, if they exist and if the document is exported
    // into the OpenOffice.org file format.
    // These properties only exist at service com::sun::star::text::Shape - the
    // Writer UNO service for shapes.
    // This code is needed, because the positioning attributes in the
    // OpenOffice.org file format are given in horizontal left-to-right layout
    // regardless the layout direction the shape is in. In the OASIS Open Office
    // file format the positioning attributes are correctly given in the layout
    // direction the shape is in. Thus, this code provides the conversion from
    // the OASIS Open Office file format to the OpenOffice.org file format.
    if ( ( GetExport().getExportFlags() & EXPORT_OASIS ) == 0 &&
         xProps->getPropertySetInfo()->hasPropertyByName(
            OUString(RTL_CONSTASCII_USTRINGPARAM("StartPositionInHoriL2R"))) &&
         xProps->getPropertySetInfo()->hasPropertyByName(
            OUString(RTL_CONSTASCII_USTRINGPARAM("EndPositionInHoriL2R"))) )
    {
        xProps->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("StartPositionInHoriL2R"))) >>= aStart;
        xProps->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("EndPositionInHoriL2R"))) >>= aEnd;
    }
    else
    {
        xProps->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("StartPosition"))) >>= aStart;
        xProps->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("EndPosition"))) >>= aEnd;
    }
    // <--

	if( pRefPoint )
	{
		aStart.X -= pRefPoint->X;
		aStart.Y -= pRefPoint->Y;
		aEnd.X -= pRefPoint->X;
		aEnd.Y -= pRefPoint->Y;
	}

	if( nFeatures & SEF_EXPORT_X )
	{
		// svg: x1
		mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aStart.X);
		aStr = sStringBuffer.makeStringAndClear();
		mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_X1, aStr);
	}
	else
	{
		aEnd.X -= aStart.X;
	}

	if( nFeatures & SEF_EXPORT_Y )
	{
		// svg: y1
		mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aStart.Y);
		aStr = sStringBuffer.makeStringAndClear();
		mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_Y1, aStr);
	}
	else
	{
		aEnd.Y -= aStart.Y;
	}

	// svg: x2
	mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aEnd.X);
	aStr = sStringBuffer.makeStringAndClear();
	mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_X2, aStr);

	// svg: y2
	mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aEnd.Y);
	aStr = sStringBuffer.makeStringAndClear();
	mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_Y2, aStr);
=====================================================================
Found a 39 line (347 tokens) duplication in the following files: 
Starting at line 905 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/astexpression.cxx
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/astexpression.cxx

sal_Bool AstExpression::compare(AstExpression *pExpr)
{	
	if (m_combOperator != pExpr->getCombOperator())
		return sal_False;
	evaluate(EK_const);
	pExpr->evaluate(EK_const);
	if (m_exprValue == NULL || pExpr->getExprValue() == NULL)
		return sal_False;
	if (m_exprValue->et != pExpr->getExprValue()->et)
		return sal_False;
	switch (m_exprValue->et) 
	{
		case ET_short:
			return (m_exprValue->u.sval == pExpr->getExprValue()->u.sval) ? sal_True : sal_False;
		case ET_ushort:
			return (m_exprValue->u.usval == pExpr->getExprValue()->u.usval) ? sal_True : sal_False;
		case ET_long:
			return (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? sal_True : sal_False;
		case ET_ulong:
			return (m_exprValue->u.ulval == pExpr->getExprValue()->u.ulval) ? sal_True : sal_False;
		case ET_hyper:
			return (m_exprValue->u.hval == pExpr->getExprValue()->u.hval) ? sal_True : sal_False;
		case ET_uhyper:
			return (m_exprValue->u.uhval == pExpr->getExprValue()->u.uhval) ? sal_True : sal_False;
		case ET_float:
			return (m_exprValue->u.fval == pExpr->getExprValue()->u.fval) ? sal_True : sal_False;
		case ET_double:
			return (m_exprValue->u.dval == pExpr->getExprValue()->u.dval) ? sal_True : sal_False;
		case ET_byte:
			return (m_exprValue->u.byval == pExpr->getExprValue()->u.byval) ? sal_True : sal_False;
		case ET_boolean:
			return (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? sal_True : sal_False;
        default:
            OSL_ASSERT(false);
			return sal_False;
	}

	return sal_False;
}	
=====================================================================
Found a 9 line (347 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x9f, 0x0000}, // 0300 - 0307
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0308 - 030f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0310 - 0317
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0318 - 031f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0320 - 0327
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0328 - 032f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0330 - 0337
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0338 - 033f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xf4, 0x0032}, {0x00, 0x0000}, {0x00, 0x0000}, // 0340 - 0347
=====================================================================
Found a 65 line (346 tokens) duplication in the following files: 
Starting at line 3700 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 2211 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

void SdrTextObj::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& /*rPolyPolygon*/)
{
	// break up matrix
	basegfx::B2DTuple aScale;
	basegfx::B2DTuple aTranslate;
	double fRotate, fShearX;
	rMatrix.decompose(aScale, aTranslate, fRotate, fShearX);

	// #i75086# Old DrawingLayer (GeoStat and geometry) does not support holding negative scalings
	// in X and Y which equal a 180 degree rotation. Recognize it and react accordingly
	if(basegfx::fTools::less(aScale.getX(), 0.0) && basegfx::fTools::less(aScale.getY(), 0.0))
	{
		aScale.setX(fabs(aScale.getX()));
		aScale.setY(fabs(aScale.getY()));
		fRotate = fmod(fRotate + F_PI, F_2PI);
	}

	// reset object shear and rotations
	aGeo.nDrehWink = 0;
	aGeo.RecalcSinCos();
	aGeo.nShearWink = 0;
	aGeo.RecalcTan();

	// force metric to pool metric
	SfxMapUnit eMapUnit = pModel->GetItemPool().GetMetric(0);
	if(eMapUnit != SFX_MAPUNIT_100TH_MM)
	{
		switch(eMapUnit)
		{
			case SFX_MAPUNIT_TWIP :
			{
				// position
				aTranslate.setX(ImplMMToTwips(aTranslate.getX()));
				aTranslate.setY(ImplMMToTwips(aTranslate.getY()));

				// size
				aScale.setX(ImplMMToTwips(aScale.getX()));
				aScale.setY(ImplMMToTwips(aScale.getY()));

				break;
			}
			default:
			{
				DBG_ERROR("TRSetBaseGeometry: Missing unit translation to PoolMetric!");
			}
		}
	}

	// if anchor is used, make position relative to it
	if( pModel->IsWriter() )
	{
		if(GetAnchorPos().X() || GetAnchorPos().Y())
		{
			aTranslate += basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
		}
	}

	// build and set BaseRect (use scale)
	Point aPoint = Point();
	Size aSize(FRound(aScale.getX()), FRound(aScale.getY()));
	Rectangle aBaseRect(aPoint, aSize);
	SetSnapRect(aBaseRect);

	// shear?
    if(!basegfx::fTools::equalZero(fShearX))
=====================================================================
Found a 26 line (346 tokens) duplication in the following files: 
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

    virtual TestData SAL_CALL getStruct() throw(com::sun::star::uno::RuntimeException)
		{ return _aStructData; }

    virtual void SAL_CALL setBool( sal_Bool _bool ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Bool = _bool; }
    virtual void SAL_CALL setByte( sal_Int8 _byte ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Byte = _byte; }
    virtual void SAL_CALL setChar( sal_Unicode _char ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Char = _char; }
    virtual void SAL_CALL setShort( sal_Int16 _short ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Short = _short; }
    virtual void SAL_CALL setUShort( sal_uInt16 _ushort ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.UShort = _ushort; }
    virtual void SAL_CALL setLong( sal_Int32 _long ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Long = _long; }
    virtual void SAL_CALL setULong( sal_uInt32 _ulong ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.ULong = _ulong; }
    virtual void SAL_CALL setHyper( sal_Int64 _hyper ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Hyper = _hyper; }
    virtual void SAL_CALL setUHyper( sal_uInt64 _uhyper ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.UHyper = _uhyper; }
    virtual void SAL_CALL setFloat( float _float ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Float = _float; }
    virtual void SAL_CALL setDouble( double _double ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Double = _double; }
    virtual void SAL_CALL setEnum( TestEnum _enum ) throw(::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 55 line (346 tokens) duplication in the following files: 
Starting at line 2290 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 2544 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

            if( fstyle->boxtype == 'G' || fstyle->boxtype == 'B' || fstyle->boxtype == 'O')
                padd(ascii("style:run-through"), sXML_CDATA, ascii("background"));
            padd(ascii("style:wrap"), sXML_CDATA, ascii("run-through"));
            break;
        case 2:
            padd(ascii("style:wrap"), sXML_CDATA, ascii("dynamic"));
            break;
    }
    if (fstyle->anchor_type == CHAR_ANCHOR)
    {
        padd(ascii("style:vertical-pos"), sXML_CDATA, ascii("top"));
        padd(ascii("style:vertical-rel"), sXML_CDATA, ascii("baseline"));
        padd(ascii("style:horizontal-pos"), sXML_CDATA, ascii("center"));
        padd(ascii("style:horizontal-rel"), sXML_CDATA, ascii("paragraph"));
    }
    else
    {

        switch (-(fstyle->xpos))
        {
            case 2:
                padd(ascii("style:horizontal-pos"), sXML_CDATA, ascii("right"));
                break;
            case 3:
                padd(ascii("style:horizontal-pos"), sXML_CDATA, ascii("center"));
                break;
            case 1:
            default:
                padd(ascii("style:horizontal-pos"), sXML_CDATA, ascii("from-left"));
                break;
        }
        switch (-(fstyle->ypos))
        {
            case 2:
                padd(ascii("style:vertical-pos"), sXML_CDATA, ascii("bottom"));
                break;
            case 3:
                padd(ascii("style:vertical-pos"), sXML_CDATA, ascii("middle"));
                break;
            case 1:
            default:
                padd(ascii("style:vertical-pos"), sXML_CDATA, ascii("from-top"));
                break;
        }
        if ( fstyle->anchor_type == PARA_ANCHOR )
        {
            padd(ascii("style:vertical-rel"), sXML_CDATA, ascii("paragraph"));
            padd(ascii("style:horizontal-rel"), sXML_CDATA, ascii("paragraph"));
        }
        else
        {
            padd(ascii("style:vertical-rel"), sXML_CDATA, ascii("page-content"));
            padd(ascii("style:horizontal-rel"), sXML_CDATA, ascii("page-content"));
        }
    }
=====================================================================
Found a 26 line (346 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

    virtual TestData SAL_CALL getStruct() throw(com::sun::star::uno::RuntimeException)
		{ return _aStructData; }

    virtual void SAL_CALL setBool( sal_Bool _bool ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Bool = _bool; }
    virtual void SAL_CALL setByte( sal_Int8 _byte ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Byte = _byte; }
    virtual void SAL_CALL setChar( sal_Unicode _char ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Char = _char; }
    virtual void SAL_CALL setShort( sal_Int16 _short ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Short = _short; }
    virtual void SAL_CALL setUShort( sal_uInt16 _ushort ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.UShort = _ushort; }
    virtual void SAL_CALL setLong( sal_Int32 _long ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Long = _long; }
    virtual void SAL_CALL setULong( sal_uInt32 _ulong ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.ULong = _ulong; }
    virtual void SAL_CALL setHyper( sal_Int64 _hyper ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Hyper = _hyper; }
    virtual void SAL_CALL setUHyper( sal_uInt64 _uhyper ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.UHyper = _uhyper; }
    virtual void SAL_CALL setFloat( float _float ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Float = _float; }
    virtual void SAL_CALL setDouble( double _double ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Double = _double; }
    virtual void SAL_CALL setEnum( TestEnum _enum ) throw(::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 79 line (345 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/support/simstr.cxx
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/xml2cmp/source/support/sistr.cxx

}

Simstr::Simstr(char c, int anzahl)
{
   if (anzahl < 1)
      {
         len = 0;
         sz = new char[1];
         *sz = 0;
      }
   else
      {
         len = anzahl;
         sz = new char[len+1];
         memset(sz,c,anzahl);
         sz[len] = 0;
      }
}

Simstr::Simstr( const char *   anybytes,
				int            firstBytesPos,
				int            nrOfBytes)
{
   unsigned slen = strlen(anybytes);
   if (anybytes == 0 || slen <= unsigned(firstBytesPos))
	  {
		 len = 0;
		 sz = new char[1];
		 *sz = 0;
	  }
   else
	  {
         int maxLen = slen - unsigned(firstBytesPos);
         len =  maxLen < nrOfBytes
                  ? maxLen
                  : nrOfBytes;
         sz = new char[len+1];
         memcpy(sz,anybytes+firstBytesPos,len);
         *(sz+len) = 0;
      }
}


Simstr::Simstr(const Simstr & S)
{
   len = S.len;
   sz = new char[len+1];
   memcpy(sz,S.sz,len+1);
}

Simstr & Simstr::operator=(const Simstr & S)
{
   if (sz == S.sz)
      return *this;

   delete [] sz;

   len = S.len;
   sz = new char[len+1];
   memcpy(sz,S.sz,len+1);

   return *this;
}

Simstr::~Simstr()
{
   delete [] sz;
}

char &
Simstr::ch(int  n)
{
   static char nullCh = NULCH;
   nullCh = NULCH;
   if (n >= long(len) || n < 0)
      return nullCh;
   else
      return sz[unsigned(n)];
}
=====================================================================
Found a 81 line (345 tokens) duplication in the following files: 
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

						sal_Unicode c = aValue.GetChar(static_cast<sal_uInt16>(j));
						// nur Ziffern und Dezimalpunkt und Tausender-Trennzeichen?
						if (c == cThousandDelimiter && j)
							continue;
						else
						{
							bNumeric = FALSE;
							break;
						}
					}
				}

                // jetzt koennte es noch ein Datumsfeld sein
				if (!bNumeric)
				{
					try
					{
						nIndex = m_xNumberFormatter->detectNumberFormat(::com::sun::star::util::NumberFormat::ALL,aField2);
					}
					catch(Exception&)
					{
					}
				}
			}
		}

		sal_Int32 nFlags = 0;
		if (bNumeric)
		{
			if (cDecimalDelimiter)
			{
				if(nPrecision)
				{
					eType = DataType::DECIMAL;
					aTypeName = ::rtl::OUString::createFromAscii("DECIMAL");
				}
				else
				{
					eType = DataType::DOUBLE;
					aTypeName = ::rtl::OUString::createFromAscii("DOUBLE");
				}
			}
			else
				eType = DataType::INTEGER;
			nFlags = ColumnSearch::BASIC;
		}
		else
		{

			switch (comphelper::getNumberFormatType(m_xNumberFormatter,nIndex))
			{
				case NUMBERFORMAT_DATE:
					eType = DataType::DATE;
					aTypeName = ::rtl::OUString::createFromAscii("DATE");
					break;
				case NUMBERFORMAT_DATETIME:
					eType = DataType::TIMESTAMP;
					aTypeName = ::rtl::OUString::createFromAscii("TIMESTAMP");
					break;
				case NUMBERFORMAT_TIME:
					eType = DataType::TIME;
					aTypeName = ::rtl::OUString::createFromAscii("TIME");
					break;
				default:
					eType = DataType::VARCHAR;
					nPrecision = 0;	// nyi: Daten koennen aber laenger sein!
					nScale = 0;
					aTypeName = ::rtl::OUString::createFromAscii("VARCHAR");
			};
			nFlags |= ColumnSearch::CHAR;
		}

		// check if the columname already exists
		String aAlias(aColumnName);
		OSQLColumns::const_iterator aFind = connectivity::find(m_aColumns->begin(),m_aColumns->end(),aAlias,aCase);
		sal_Int32 nExprCnt = 0;
		while(aFind != m_aColumns->end())
		{
			(aAlias = aColumnName) += String::CreateFromInt32(++nExprCnt);
			aFind = connectivity::find(m_aColumns->begin(),m_aColumns->end(),aAlias,aCase);
		}
=====================================================================
Found a 67 line (344 tokens) duplication in the following files: 
Starting at line 659 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription * >(
                        member)->pAttributeTypeRef));
            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(code, functionOffset++, vtableOffset, true);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription * >(
                        member)->pReturnTypeRef));
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}
=====================================================================
Found a 75 line (343 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/typeblop.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/unodevtools/typeblob.cxx

void writeConstantData(typereg::Writer& rWriter, sal_uInt16 fieldIndex,
                       const Reference< XConstantTypeDescription >& xConstant)
    
{					  
	RTConstValue constValue;						  
	OUString uConstTypeName;
	OUString uConstName = xConstant->getName();
	Any aConstantAny = xConstant->getConstantValue();
    
	switch ( aConstantAny.getValueTypeClass() )
	{
    case TypeClass_BOOLEAN:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("boolean"));
        constValue.m_type = RT_TYPE_BOOL; 
        aConstantAny >>= constValue.m_value.aBool;
    }
    break;
    case TypeClass_BYTE:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("byte"));
        constValue.m_type = RT_TYPE_BYTE; 
        aConstantAny >>= constValue.m_value.aByte;
    }
    break;
    case TypeClass_SHORT:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("short"));
        constValue.m_type = RT_TYPE_INT16; 
        aConstantAny >>= constValue.m_value.aShort;
    }
    break;
    case TypeClass_UNSIGNED_SHORT:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("unsigned short"));
        constValue.m_type = RT_TYPE_UINT16; 
        aConstantAny >>= constValue.m_value.aUShort;
    }
    break;
    case TypeClass_LONG:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("long"));
        constValue.m_type = RT_TYPE_INT32; 
        aConstantAny >>= constValue.m_value.aLong;
    }
    break;
    case TypeClass_UNSIGNED_LONG:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("unsigned long"));
        constValue.m_type = RT_TYPE_UINT32; 
        aConstantAny >>= constValue.m_value.aULong;
    }
    break;
    case TypeClass_FLOAT:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("float"));
        constValue.m_type = RT_TYPE_FLOAT; 
        aConstantAny >>= constValue.m_value.aFloat;
    }
    break;
    case TypeClass_DOUBLE:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("double"));
        constValue.m_type = RT_TYPE_DOUBLE; 
        aConstantAny >>= constValue.m_value.aDouble;
    }
    break;
    case TypeClass_STRING:
    {
        uConstTypeName = OUString(RTL_CONSTASCII_USTRINGPARAM("string"));
        constValue.m_type = RT_TYPE_STRING; 
        constValue.m_value.aString = ((OUString*)aConstantAny.getValue())->getStr();
    }
	break;
    default:
=====================================================================
Found a 69 line (342 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsconfiguration.cxx
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsconfiguration.cxx

using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::xml::sax;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::io;


namespace framework
{

static Reference< XParser > GetSaxParser(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	//Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	//return Reference< XParser >( xServiceManager->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
	return Reference< XParser >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	//Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	//return Reference< XDocumentHandler >( xServiceManager->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
	return Reference< XDocumentHandler >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

// #110897#
sal_Bool EventsConfiguration::LoadEventsConfig( 
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
	SvStream& rInStream, EventsConfig& aItems )
{
	Reference< XParser > xParser( GetSaxParser( xServiceFactory ) );
	Reference< XInputStream > xInputStream( 
								(::cppu::OWeakObject *)new utl::OInputStreamWrapper( rInStream ), 
								UNO_QUERY );

	// connect stream to input stream to the parser
	InputSource aInputSource;

	aInputSource.aInputStream = xInputStream;

	// create namespace filter and set events document handler inside to support xml namespaces
	Reference< XDocumentHandler > xDocHandler( new OReadEventsDocumentHandler( aItems ));
	Reference< XDocumentHandler > xFilter( new SaxNamespaceFilter( xDocHandler ));

	// connect parser and filter
	xParser->setDocumentHandler( xFilter );

	try
	{
		xParser->parseStream( aInputSource );
		return sal_True;
	}
	catch ( RuntimeException& )
	{
		return sal_False;
	}
	catch( SAXException& )
	{
		return sal_False;
	}
	catch( ::com::sun::star::io::IOException& )
	{
		return sal_False;
	}
=====================================================================
Found a 67 line (342 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/control/FieldDescControl.cxx
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/control/FieldDescControl.cxx

	:TabPage( pParent, WB_3DLOOK | WB_DIALOGCONTROL )
	,pHelp( pHelpBar )
	,pLastFocusWindow(NULL)
	,m_pActFocusWindow(NULL)
	,pDefaultText(NULL)
	,pRequiredText(NULL)
	,pAutoIncrementText(NULL)
	,pTextLenText(NULL)
	,pNumTypeText(NULL)
	,pLengthText(NULL)
	,pScaleText(NULL)
	,pFormatText(NULL)
	,pBoolDefaultText(NULL)
	,m_pColumnNameText(NULL)
	,m_pTypeText(NULL)
	,m_pAutoIncrementValueText(NULL)
	,pRequired(NULL)
	,pNumType(NULL)
	,pAutoIncrement(NULL)
	,pDefault(NULL)
	,pTextLen(NULL)
	,pLength(NULL)
	,pScale(NULL)
	,pFormatSample(NULL)
	,pBoolDefault(NULL)
	,m_pColumnName(NULL)
	,m_pType(NULL)
	,m_pAutoIncrementValue(NULL)
	,pFormat(NULL)
    ,m_pVertScroll( NULL )
    ,m_pHorzScroll( NULL )
    ,m_pPreviousType()
	,nCurChildId(1)
	,m_nPos(-1)
    ,aYes(ModuleRes(STR_VALUE_YES))
	,aNo(ModuleRes(STR_VALUE_NO))
    ,m_nOldVThumb( 0 )
    ,m_nOldHThumb( 0 )
	,m_nWidth(50)
    ,nDelayedGrabFocusEvent(0)
    ,m_bAdded(sal_False)
	,m_bRightAligned(false)
    ,pActFieldDescr(NULL)
{
	DBG_CTOR(OFieldDescControl,NULL);

	m_pVertScroll = new ScrollBar(this, WB_VSCROLL | WB_REPEAT | WB_DRAG);
	m_pHorzScroll = new ScrollBar(this, WB_HSCROLL | WB_REPEAT | WB_DRAG);
	m_pVertScroll->SetScrollHdl(LINK(this, OFieldDescControl, OnScroll));
	m_pHorzScroll->SetScrollHdl(LINK(this, OFieldDescControl, OnScroll));
	m_pVertScroll->Show();
	m_pHorzScroll->Show();

	m_pVertScroll->EnableClipSiblings();
	m_pHorzScroll->EnableClipSiblings();

	m_pVertScroll->SetLineSize(1);
	m_pVertScroll->SetPageSize(1);
	m_pHorzScroll->SetLineSize(1);
	m_pHorzScroll->SetPageSize(1);

	m_nOldVThumb = m_nOldHThumb = 0;

}

//------------------------------------------------------------------------------
OFieldDescControl::~OFieldDescControl()
=====================================================================
Found a 53 line (342 tokens) duplication in the following files: 
Starting at line 821 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("float", (a >>= b) && b == 1);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", (a >>= b) && b == 1);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testDouble() {
=====================================================================
Found a 57 line (341 tokens) duplication in the following files: 
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/connctrl.cxx
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/measctrl.cxx

void SvxXMeasurePreview::MouseButtonDown( const MouseEvent& rMEvt )
{
	BOOL bZoomIn  = rMEvt.IsLeft() && !rMEvt.IsShift();
	BOOL bZoomOut = rMEvt.IsRight() || rMEvt.IsShift();
	BOOL bCtrl	  = rMEvt.IsMod1();

	if( bZoomIn || bZoomOut )
	{
		MapMode aMapMode = GetMapMode();
		Fraction aXFrac = aMapMode.GetScaleX();
		Fraction aYFrac = aMapMode.GetScaleY();
		Fraction* pMultFrac;

		if( bZoomIn )
		{
			if( bCtrl )
				pMultFrac = new Fraction( 3, 2 );
			else
				pMultFrac = new Fraction( 11, 10 );
		}
		else
		{
			if( bCtrl )
				pMultFrac = new Fraction( 2, 3 );
			else
				pMultFrac = new Fraction( 10, 11 );
		}

		aXFrac *= *pMultFrac;
		aYFrac *= *pMultFrac;
		if( (double)aXFrac > 0.001 && (double)aXFrac < 1000.0 &&
			(double)aYFrac > 0.001 && (double)aYFrac < 1000.0 )
		{
			aMapMode.SetScaleX( aXFrac );
			aMapMode.SetScaleY( aYFrac );
			SetMapMode( aMapMode );

			Size aOutSize( GetOutputSize() );

			Point aPt( aMapMode.GetOrigin() );
			long nX = (long)( ( (double)aOutSize.Width() - ( (double)aOutSize.Width() * (double)*pMultFrac  ) ) / 2.0 + 0.5 );
			long nY = (long)( ( (double)aOutSize.Height() - ( (double)aOutSize.Height() * (double)*pMultFrac  ) ) / 2.0 + 0.5 );
			aPt.X() +=  nX;
			aPt.Y() +=  nY;

			aMapMode.SetOrigin( aPt );
			SetMapMode( aMapMode );

			Invalidate();
		}
		delete pMultFrac;
	}
}

// -----------------------------------------------------------------------

void SvxXMeasurePreview::DataChanged( const DataChangedEvent& rDCEvt )
=====================================================================
Found a 111 line (341 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/resourceprovider.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/resourceprovider.cxx

using rtl::OUString;
using namespace ::com::sun::star::ui::dialogs::ExtendedFilePickerElementIds;
using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds;

//------------------------------------------------------------
// 
//------------------------------------------------------------

#define RES_NAME fps_office
#define OTHER_RES_NAME svt

//------------------------------------------------------------
// we have to translate control ids to resource ids 
//------------------------------------------------------------

struct _Entry
{
    sal_Int32 ctrlId;
    sal_Int16 resId;
};

_Entry CtrlIdToResIdTable[] = {
    { CHECKBOX_AUTOEXTENSION,                   STR_SVT_FILEPICKER_AUTO_EXTENSION },
    { CHECKBOX_PASSWORD,                        STR_SVT_FILEPICKER_PASSWORD },
    { CHECKBOX_FILTEROPTIONS,                   STR_SVT_FILEPICKER_FILTER_OPTIONS },
    { CHECKBOX_READONLY,                        STR_SVT_FILEPICKER_READONLY },
    { CHECKBOX_LINK,                            STR_SVT_FILEPICKER_INSERT_AS_LINK },
    { CHECKBOX_PREVIEW,                         STR_SVT_FILEPICKER_SHOW_PREVIEW },
    { PUSHBUTTON_PLAY,                          STR_SVT_FILEPICKER_PLAY },
    { LISTBOX_VERSION_LABEL,                    STR_SVT_FILEPICKER_VERSION },
    { LISTBOX_TEMPLATE_LABEL,                   STR_SVT_FILEPICKER_TEMPLATES },
    { LISTBOX_IMAGE_TEMPLATE_LABEL,             STR_SVT_FILEPICKER_IMAGE_TEMPLATE },
    { CHECKBOX_SELECTION,                       STR_SVT_FILEPICKER_SELECTION },
    { FOLDERPICKER_TITLE,                       STR_SVT_FOLDERPICKER_DEFAULT_TITLE },
    { FOLDER_PICKER_DEF_DESCRIPTION,            STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION },
    { FILE_PICKER_OVERWRITE,                    STR_SVT_ALREADYEXISTOVERWRITE }
};

_Entry OtherCtrlIdToResIdTable[] = {
    { FILE_PICKER_TITLE_OPEN,                   STR_FILEDLG_OPEN },
    { FILE_PICKER_TITLE_SAVE,                   STR_FILEDLG_SAVE },
    { FILE_PICKER_FILE_TYPE,                    STR_FILEDLG_TYPE },
};


const sal_Int32 SIZE_TABLE = sizeof( CtrlIdToResIdTable ) / sizeof( _Entry );
const sal_Int32 OTHER_SIZE_TABLE = sizeof( OtherCtrlIdToResIdTable ) / sizeof( _Entry );

//------------------------------------------------------------
//
//------------------------------------------------------------

sal_Int16 CtrlIdToResId( sal_Int32 aControlId )
{    
    sal_Int16 aResId = -1;

    for ( sal_Int32 i = 0; i < SIZE_TABLE; i++ )
    {
        if ( CtrlIdToResIdTable[i].ctrlId == aControlId )
        {
            aResId = CtrlIdToResIdTable[i].resId;
            break;
        }
    }    
    
    return aResId;
}

sal_Int16 OtherCtrlIdToResId( sal_Int32 aControlId )
{    
    sal_Int16 aResId = -1;

    for ( sal_Int32 i = 0; i < OTHER_SIZE_TABLE; i++ )
    {
        if ( OtherCtrlIdToResIdTable[i].ctrlId == aControlId )
        {
            aResId = OtherCtrlIdToResIdTable[i].resId;
            break;
        }
    }    
    
    return aResId;
}

//------------------------------------------------------------
//
//------------------------------------------------------------

class CResourceProvider_Impl
{
public:

    //-------------------------------------
    //
    //-------------------------------------

    CResourceProvider_Impl( )
    {        
        m_ResMgr = CREATEVERSIONRESMGR( RES_NAME );
        m_OtherResMgr = CREATEVERSIONRESMGR( OTHER_RES_NAME );
    }

    //-------------------------------------
    //
    //-------------------------------------

    ~CResourceProvider_Impl( )
    {
        delete m_ResMgr;
        delete m_OtherResMgr;
    }
=====================================================================
Found a 109 line (340 tokens) duplication in the following files: 
Starting at line 5912 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6223 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

                pVer8 = (WW8_FFN_Ver8*)( ((BYTE*)pVer8) + pVer8->cbFfnM1 + 1 );
            }
        }
    }
    delete[] pA;
}

const WW8_FFN* WW8Fonts::GetFont( USHORT nNum ) const
{
    if( !pFontA || nNum >= nMax )
        return 0;

    return &pFontA[ nNum ];
}



//-----------------------------------------


// Suche zu einem Header / Footer den Index in der WW-Liste von Headern / Footern
//
// Pferdefuesse bei WinWord6 und -7:
// 1) Am Anfang des Einlesens muss WWPLCF_HdFt mit Fib und Dop konstruiert werden
// 2) Der Haupttext muss sequentiell ueber alle Sections gelesen werden
// 3) Fuer jedes vorkommende Header / Footer - Attribut des Haupttextes
//  ( Darf pro Section maximal eins sein ) muss UpdateIndex() genau einmal
//  mit dem Parameter des Attributes gerufen werden. Dieser Aufruf muss *nach*
//  dem letzten Aufruf von GetTextPos() passieren.
// 4) GetTextPos() darf mit genau einem der obenstehen WW_... aufgerufen werden
//   ( nicht verodern ! )
// -> dann liefert GetTextPos() vielleicht auch ein richtiges Ergebnis

WW8PLCF_HdFt::WW8PLCF_HdFt( SvStream* pSt, WW8Fib& rFib, WW8Dop& rDop )
    : aPLCF( pSt, rFib.fcPlcfhdd , rFib.lcbPlcfhdd , 0 )
{
    nIdxOffset = 0;

     /*
      cmc 23/02/2000: This dop.grpfIhdt has a bit set for each special
      footnote *and endnote!!* seperator,continuation seperator, and
      continuation notice entry, the documentation does not mention the
      endnote seperators, the documentation also gets the index numbers
      backwards when specifiying which bits to test. The bottom six bits
      of this value must be tested and skipped over. Each section's
      grpfIhdt is then tested for the existence of the appropiate headers
      and footers, at the end of each section the nIdxOffset must be updated
      to point to the beginning of the next section's group of headers and
      footers in this PLCF, UpdateIndex does that task.
      */
    for( BYTE nI = 0x1; nI <= 0x20; nI <<= 1 )
        if( nI & rDop.grpfIhdt )                // Bit gesetzt ?
            nIdxOffset++;

    nTextOfs = rFib.ccpText + rFib.ccpFtn;  // Groesse des Haupttextes
                                            // und der Fussnoten
}

bool WW8PLCF_HdFt::GetTextPos(BYTE grpfIhdt, BYTE nWhich, WW8_CP& rStart,
    long& rLen)
{
    BYTE nI = 0x01;
    short nIdx = nIdxOffset;
    while (true)
    {
        if( nI & nWhich )
            break;                      // found
        if( grpfIhdt & nI )
            nIdx++;                     // uninteresting Header / Footer
        nI <<= 1;                       // text next bit
        if( nI > 0x20 )
            return false;               // not found
    }
                                        // nIdx ist HdFt-Index
    WW8_CP nEnd;
    void* pData;

    aPLCF.SetIdx( nIdx );               // Lookup suitable CP
    aPLCF.Get( rStart, nEnd, pData );
    rLen = nEnd - rStart;
    aPLCF++;

    return true;
}

bool WW8PLCF_HdFt::GetTextPosExact(short nIdx, WW8_CP& rStart, long& rLen)
{
    WW8_CP nEnd;
    void* pData;

    aPLCF.SetIdx( nIdx );               // Lookup suitable CP
    aPLCF.Get( rStart, nEnd, pData );
    rLen = nEnd - rStart;
    return true;
}

void WW8PLCF_HdFt::UpdateIndex( BYTE grpfIhdt )
{
    // Caution: Description is not correct
    for( BYTE nI = 0x01; nI <= 0x20; nI <<= 1 )
        if( nI & grpfIhdt )
            nIdxOffset++;
}

//-----------------------------------------
//          WW8Dop
//-----------------------------------------

WW8Dop::WW8Dop(SvStream& rSt, INT16 nFib, INT32 nPos, sal_uInt32 nSize) : bUseThaiLineBreakingRules(false)
=====================================================================
Found a 37 line (340 tokens) duplication in the following files: 
Starting at line 2169 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3509 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx

	if ( !pHitObj && HasText() )
	{
		// paint text over object
		double fTextRotation = GetExtraTextRotation();
		if ( fTextRotation != 0.0 )
		{
			GeoStat aOldGeoStat( aGeo );
			Rectangle aOldRect( aRect );
			Rectangle aTextBound( aRect );
			GetTextBounds( aTextBound );

			// determining the correct refpoint
			Point aRef( aTextBound.Center() );
			Rectangle aUnrotatedSnapRect( aOutRect );
			RotatePoint( aRef, aUnrotatedSnapRect.Center(), -aGeo.nSin, -aGeo.nCos );

			long dx = aRect.Right()-aRect.Left();
			long dy = aRect.Bottom()-aRect.Top();
			Point aP( aRect.TopLeft() );
			double sn = sin( F_PI180 * fTextRotation );
			double cs = cos( F_PI180 * fTextRotation );
			RotatePoint( aP, aRef, sn, cs );
			((SdrObjCustomShape*)this)->aRect.Left()=aP.X();
			((SdrObjCustomShape*)this)->aRect.Top()=aP.Y();
			((SdrObjCustomShape*)this)->aRect.Right()=aRect.Left()+dx;
			((SdrObjCustomShape*)this)->aRect.Bottom()=aRect.Top()+dy;
			if ( aGeo.nDrehWink == 0 )
			{
				((SdrObjCustomShape*)this)->aGeo.nDrehWink=NormAngle360( (sal_Int32)( fTextRotation * 100.0 ) );
				((SdrObjCustomShape*)this)->aGeo.nSin = sn;
				((SdrObjCustomShape*)this)->aGeo.nCos = cs;
			}
			else
			{
				((SdrObjCustomShape*)this)->aGeo.nDrehWink=NormAngle360( aGeo.nDrehWink + (sal_Int32)( fTextRotation * 100.0 ) );
				((SdrObjCustomShape*)this)->aGeo.RecalcSinCos();
			}
=====================================================================
Found a 63 line (340 tokens) duplication in the following files: 
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

    static Token onetoken[1] = {{NUMBER, 0, 0, 1, onestr, 0}};
    static Tokenrow onetr = {onetoken, onetoken, onetoken + 1, 1};

    trp->tp = trp->bp;
    if (type == 'U')
    {
        if (trp->lp - trp->tp != 2 || trp->tp->type != NAME)
            goto syntax;
        if ((np = lookup(trp->tp, 0)) == NULL)
            return;
        np->flag &= ~ISDEFINED;
        return;
    }

    if (type == 'A')
    {
        if (trp->tp >= trp->lp || trp->tp->type != NAME)
            goto syntax;
        trp->tp->type = ARCHITECTURE;
        np = lookup(trp->tp, 1);
        np->flag |= ISARCHITECTURE;
        trp->tp += 1;
        if (trp->tp >= trp->lp || trp->tp->type == END)
        {
            np->vp = &onetr;
            return;
        }
        else
            error(FATAL, "Illegal -A argument %r", trp);
    }

    if (trp->tp >= trp->lp || trp->tp->type != NAME)
        goto syntax;
    np = lookup(trp->tp, 1);
    np->flag |= ISDEFINED;
    trp->tp += 1;
    if (trp->tp >= trp->lp || trp->tp->type == END)
    {
        np->vp = &onetr;
        return;
	}
	if (trp->tp->type != ASGN)
		goto syntax;
	trp->tp += 1;
	if ((trp->lp - 1)->type == END)
		trp->lp -= 1;
	np->vp = normtokenrow(trp);
	return;
syntax:
	error(FATAL, "Illegal -D or -U argument %r", trp);
}



/*
 * Do macro expansion in a row of tokens.
 * Flag is NULL if more input can be gathered.
 */
void
	expandrow(Tokenrow * trp, char *flag)
{
	Token *	tp;
	Nlist *	np;
=====================================================================
Found a 58 line (340 tokens) duplication in the following files: 
Starting at line 1075 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx
Starting at line 1252 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

            if ( !implts_checkAndScaleGraphic( xGraphic, aGraphicSequence[i], nIndex ))
                continue;

            USHORT nPos = pImageList->GetImagePos( aCommandURLSequence[i] );
            if ( nPos == IMAGELIST_IMAGE_NOTFOUND )
            {
                pImageList->AddImage( aCommandURLSequence[i], xGraphic );
                if ( !pInsertedImages )
                    pInsertedImages = new CmdToXGraphicNameAccess();
                pInsertedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
            else
            {
                pImageList->ReplaceImage( aCommandURLSequence[i], xGraphic );
                if ( !pReplacedImages )
                    pReplacedImages = new CmdToXGraphicNameAccess();
                pReplacedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
        }
        
        if (( pInsertedImages != 0 ) || ( pReplacedImages != 0 ))
        {
            m_bModified = sal_True;
            m_bUserImageListModified[nIndex] = true;
        }
    }

    // Notify listeners
    uno::Reference< XImageManager > xThis( static_cast< OWeakObject* >( this ), UNO_QUERY );
    uno::Reference< XInterface > xIfac( xThis, UNO_QUERY );

    if ( pInsertedImages != 0 )
    {
        ConfigurationEvent aInsertEvent;
        aInsertEvent.aInfo           = uno::makeAny( nImageType );
        aInsertEvent.Accessor        = uno::makeAny( xThis );
        aInsertEvent.Source          = xIfac;
        aInsertEvent.ResourceURL     = m_aResourceString;
        aInsertEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                        static_cast< OWeakObject *>( pInsertedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aInsertEvent, NotifyOp_Insert );
    }
    if ( pReplacedImages != 0 )
    {
        ConfigurationEvent aReplaceEvent;
        aReplaceEvent.aInfo           = uno::makeAny( nImageType );
        aReplaceEvent.Accessor        = uno::makeAny( xThis );
        aReplaceEvent.Source          = xIfac;
        aReplaceEvent.ResourceURL     = m_aResourceString;
        aReplaceEvent.ReplacedElement = Any();
        aReplaceEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                         static_cast< OWeakObject *>( pReplacedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aReplaceEvent, NotifyOp_Replace );
    }
}

// XUIConfiguration
void SAL_CALL ModuleImageManager::addConfigurationListener( const uno::Reference< ::com::sun::star::ui::XUIConfigurationListener >& xListener ) 
=====================================================================
Found a 58 line (340 tokens) duplication in the following files: 
Starting at line 735 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 883 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx

            if ( !implts_checkAndScaleGraphic( xGraphic, aGraphicSequence[i], nIndex ))
                continue;

            USHORT nPos = pImageList->GetImagePos( aCommandURLSequence[i] );
            if ( nPos == IMAGELIST_IMAGE_NOTFOUND )
            {
                pImageList->AddImage( aCommandURLSequence[i], xGraphic );
                if ( !pInsertedImages )
                    pInsertedImages = new CmdToXGraphicNameAccess();
                pInsertedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
            else
            {
                pImageList->ReplaceImage( aCommandURLSequence[i], xGraphic );
                if ( !pReplacedImages )
                    pReplacedImages = new CmdToXGraphicNameAccess();
                pReplacedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
        }
        
        if (( pInsertedImages != 0 ) || ( pReplacedImages != 0 ))
        {
            m_bModified = sal_True;
            m_bUserImageListModified[nIndex] = true;
        }
    }

    // Notify listeners
    uno::Reference< XImageManager > xThis( static_cast< OWeakObject* >( this ), UNO_QUERY );
    uno::Reference< XInterface > xIfac( xThis, UNO_QUERY );

    if ( pInsertedImages != 0 )
    {
        ConfigurationEvent aInsertEvent;
        aInsertEvent.aInfo           = uno::makeAny( nImageType );
        aInsertEvent.Accessor        = uno::makeAny( xThis );
        aInsertEvent.Source          = xIfac;
        aInsertEvent.ResourceURL     = m_aResourceString;
        aInsertEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                        static_cast< OWeakObject *>( pInsertedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aInsertEvent, NotifyOp_Insert );
    }
    if ( pReplacedImages != 0 )
    {
        ConfigurationEvent aReplaceEvent;
        aReplaceEvent.aInfo           = uno::makeAny( nImageType );
        aReplaceEvent.Accessor        = uno::makeAny( xThis );
        aReplaceEvent.Source          = xIfac;
        aReplaceEvent.ResourceURL     = m_aResourceString;
        aReplaceEvent.ReplacedElement = Any();
        aReplaceEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                         static_cast< OWeakObject *>( pReplacedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aReplaceEvent, NotifyOp_Replace );
    }
}

// XUIConfiguration
void SAL_CALL ImageManager::addConfigurationListener( const uno::Reference< ::com::sun::star::ui::XUIConfigurationListener >& xListener ) 
=====================================================================
Found a 92 line (340 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx

Sequence<Any> createSequence(const OUString &sUser, const OUString &sPasswd)
{
	Sequence< Any > aCPArgs;
		
	if (sUser.getLength() > 0)
	{
		aCPArgs.realloc(1);
		aCPArgs[0] <<= configmgr::createPropertyValue(ASCII("user"), sUser);
	}
	if (sPasswd.getLength() > 0)
	{
		aCPArgs.realloc(2);
		aCPArgs[1] <<= configmgr::createPropertyValue(ASCII("password"), sPasswd);
	}
	return aCPArgs;
}

//=============================================================================
#include <string.h>
#if (defined UNX) || (defined OS2)
#else
#include <conio.h>
#endif

OString input(const char* pDefaultText, char cEcho)
{
	// PRE: a Default Text would be shown, cEcho is a Value which will show if a key is pressed.
	const int MAX_INPUT_LEN = 500;
	char aBuffer[MAX_INPUT_LEN];

	strcpy(aBuffer, pDefaultText);
	int nLen = strlen(aBuffer);

#ifdef WNT
	char ch = '\0';

	cout << aBuffer;
	cout.flush();

	while(ch != 13)
	{
		ch = getch();
		if (ch == 8)
		{
			if (nLen > 0)
			{
				cout << "\b \b";
				cout.flush();
				--nLen;
				aBuffer[nLen] = '\0';
			}
			else
			{
				cout << "\a";
				cout.flush();
			}
		}
		else if (ch != 13)
		{
			if (nLen < MAX_INPUT_LEN)
			{
				if (cEcho == 0)
				{
					cout << ch;
				}
				else
				{
					cout << cEcho;
				}
				cout.flush();
				aBuffer[nLen++] = ch;
				aBuffer[nLen] = '\0';
			}
			else
			{
				cout << "\a";
				cout.flush();
			}
		}
	}
#else
	if (!cin.getline(aBuffer,sizeof aBuffer))
		return OString();
#endif
	return OString(aBuffer);
}

// -----------------------------------------------------------------------------
rtl::OUString enterValue(const char* _aStr, const char* _aDefault, bool _bIsAPassword)
{
	cout << _aStr;
	cout.flush();
=====================================================================
Found a 78 line (339 tokens) duplication in the following files: 
Starting at line 400 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

    if ( isContentCreator() )
    {
        static cppu::OTypeCollection* pFolderTypes = 0;

        pCollection = pFolderTypes;
        if ( !pCollection )
        {
            osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );

            pCollection = pFolderTypes;
            if ( !pCollection )
            {
                static cppu::OTypeCollection aCollection(
                    CPPU_TYPE_REF( lang::XTypeProvider ),
                    CPPU_TYPE_REF( lang::XServiceInfo ),
                    CPPU_TYPE_REF( lang::XComponent ),
                    CPPU_TYPE_REF( ucb::XContent ),
                    CPPU_TYPE_REF( ucb::XCommandProcessor ),
                    CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                    CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                    CPPU_TYPE_REF( beans::XPropertyContainer ),
                    CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                    CPPU_TYPE_REF( container::XChild ),
                    CPPU_TYPE_REF( ucb::XContentCreator ) ); // !!
                pCollection = &aCollection;
                OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
                pFolderTypes = pCollection;
            }
        }
        else
            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
    }
    else
    {
        static cppu::OTypeCollection* pDocumentTypes = 0;

        pCollection = pDocumentTypes;
        if ( !pCollection )
        {
            osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );

            pCollection = pDocumentTypes;
            if ( !pCollection )
            {
                static cppu::OTypeCollection aCollection(
                    CPPU_TYPE_REF( lang::XTypeProvider ),
                    CPPU_TYPE_REF( lang::XServiceInfo ),
                    CPPU_TYPE_REF( lang::XComponent ),
                    CPPU_TYPE_REF( ucb::XContent ),
                    CPPU_TYPE_REF( ucb::XCommandProcessor ),
                    CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                    CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                    CPPU_TYPE_REF( beans::XPropertyContainer ),
                    CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                    CPPU_TYPE_REF( container::XChild ) );
                pCollection = &aCollection;
                OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
                pDocumentTypes = pCollection;
            }
        }
        else
            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
    }

    return (*pCollection).getTypes();
}

//=========================================================================
//
// XServiceInfo methods.
//
//=========================================================================

// virtual
rtl::OUString SAL_CALL Content::getImplementationName()
    throw( uno::RuntimeException )
{
    return rtl::OUString::createFromAscii(
=====================================================================
Found a 58 line (339 tokens) duplication in the following files: 
Starting at line 2405 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 957 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/uicmdstohtml.cxx

    return true;
}

bool Convert( sal_Bool        bUseProduct,
              const OUString& aUseRes,
              const OUString& rVersion,
              const OUString& rOutputDirName,
              const OUString& rPlatformName,
              const std::vector< OUString >& rInDirVector,
              const OUString& rErrOutputFileName )
{
    OUString aWorkDir;

    osl_getProcessWorkingDir( &aWorkDir.pData );

    // Try to find xx*.csv file and put all commands into hash table
    for ( int i = 0; i < (int)rInDirVector.size(); i++ )
    {
        OUString aAbsInDirURL;
        OUString aInDirURL;
        OUString aInDir( rInDirVector[i] );

        osl::FileBase::getFileURLFromSystemPath( aInDir, aInDirURL );
        osl::FileBase::getAbsoluteFileURL( aWorkDir, aInDirURL, aAbsInDirURL );
        osl::Directory aDir( aAbsInDirURL );
        if ( aDir.open() == osl::FileBase::E_None )
        {
            osl::DirectoryItem aItem;
            while ( aDir.getNextItem( aItem ) == osl::FileBase::E_None )
            {
                osl::FileStatus aFileStatus( FileStatusMask_FileName );

                aItem.getFileStatus( aFileStatus );

                int j=0;
                OUString aFileName = aFileStatus.getFileName();

                while ( ProjectModule_Mapping[j].pProjectFolder != 0 &&
                        ProjectModule_Mapping[j].bSlotCommands == true )
                {
                    if ( aFileName.equalsAscii( ProjectModule_Mapping[j].pProjectFolder ))
                    {
                        OUStringBuffer aBuf( aAbsInDirURL );

                        aBuf.appendAscii( "/" );
                        aBuf.append( aFileStatus.getFileName() );
                        aBuf.appendAscii( "/" );
                        aBuf.append( rPlatformName );
                        if ( bUseProduct )
                            aBuf.appendAscii( ".pro" );
                        aBuf.appendAscii( "/misc/xx" );
                        aBuf.appendAscii( ProjectModule_Mapping[j].pCSVPrefix );
                        aBuf.appendAscii( ".csv" );

                        OUString aCSVFileURL( aBuf.makeStringAndClear() );
                        ReadCSVFile( aCSVFileURL, ProjectModule_Mapping[j].eBelongsTo, OUString::createFromAscii( ProjectModule_Mapping[j].pProjectFolder ));
                        break;
                    }
=====================================================================
Found a 68 line (339 tokens) duplication in the following files: 
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper.cxx
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvashelper.cxx

        return uno::Reference< rendering::XBitmap >();
    }

    uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout&     /*bitmapLayout*/, 
                                                     const geometry::IntegerRectangle2D& /*rect*/ )
    {
        // TODO
        return uno::Sequence< sal_Int8 >();
    }

    void CanvasHelper::setData( const uno::Sequence< sal_Int8 >& 		/*data*/, 
                                const rendering::IntegerBitmapLayout&   /*bitmapLayout*/, 
                                const geometry::IntegerRectangle2D& 	/*rect*/ )
    {
    }

    void CanvasHelper::setPixel( const uno::Sequence< sal_Int8 >&       /*color*/, 
                                 const rendering::IntegerBitmapLayout&  /*bitmapLayout*/, 
                                 const geometry::IntegerPoint2D&        /*pos*/ )
    {
    }

    uno::Sequence< sal_Int8 > CanvasHelper::getPixel( rendering::IntegerBitmapLayout&   /*bitmapLayout*/, 
                                                      const geometry::IntegerPoint2D&   /*pos*/ )
    {
        return uno::Sequence< sal_Int8 >();
    }

    uno::Reference< rendering::XBitmapPalette > CanvasHelper::getPalette()
    {
        // TODO(F1): Palette bitmaps NYI
        return uno::Reference< rendering::XBitmapPalette >();
    }

    rendering::IntegerBitmapLayout CanvasHelper::getMemoryLayout()
    {
        // TODO(F1): finish memory layout initialization
        rendering::IntegerBitmapLayout aLayout;

        const geometry::IntegerSize2D& rBmpSize( getSize() );

        aLayout.ScanLines = rBmpSize.Width;
        aLayout.ScanLineBytes = rBmpSize.Height * 4;
        aLayout.ScanLineStride = aLayout.ScanLineBytes;
        aLayout.PlaneStride = 0;
        aLayout.ColorSpace.set( mpDevice ); 
        aLayout.NumComponents = 4;
        aLayout.ComponentMasks.realloc(4);
        aLayout.ComponentMasks[0] = 0x00FF0000;
        aLayout.ComponentMasks[1] = 0x0000FF00;
        aLayout.ComponentMasks[2] = 0x000000FF;
        aLayout.ComponentMasks[3] = 0xFF000000;
        aLayout.Palette.clear();
        aLayout.Endianness = rendering::Endianness::LITTLE;
        aLayout.Format = rendering::IntegerBitmapFormat::CHUNKY_32BIT;
        aLayout.IsMsbFirst = sal_False;

        return aLayout;
    }

    void CanvasHelper::flush() const
    {
    }

    bool CanvasHelper::hasAlpha() const
    {
        return mbHaveAlpha;
    }
=====================================================================
Found a 66 line (338 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtfsl/RTFSLParser.cxx
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx

    virtual ~XmlRtfScannerHandler() {}

	void dump()
	{
	}
};

class RtfInputSourceImpl : public rtftok::RTFInputSource
{
private:
	uno::Reference< io::XInputStream > xInputStream;
	uno::Reference< io::XSeekable > xSeekable;
	uno::Reference< task::XStatusIndicator > xStatusIndicator;
	sal_Int64 bytesTotal;
	sal_Int64 bytesRead;
public:
	RtfInputSourceImpl(uno::Reference< io::XInputStream > &xInputStream_, uno::Reference< task::XStatusIndicator > &xStatusIndicator_) :
	  xInputStream(xInputStream_),
	  xStatusIndicator(xStatusIndicator_),
	  bytesRead(0)
	{
		xSeekable=uno::Reference< io::XSeekable >(xInputStream, uno::UNO_QUERY);
		if (xSeekable.is())
			bytesTotal=xSeekable->getLength();
		if (xStatusIndicator.is() && xSeekable.is())
		{
			xStatusIndicator->start(::rtl::OUString::createFromAscii("Converting"), 100);
		}
	}

    virtual ~RtfInputSourceImpl() {}

	int read(void *buf, int maxlen)
	{
		uno::Sequence< sal_Int8 > buffer;
		int len=xInputStream->readSomeBytes(buffer,maxlen);
		if (len>0)
		{
			sal_Int8 *_buffer=buffer.getArray();
			memcpy(buf, _buffer, len);
			bytesRead+=len;
			if (xStatusIndicator.is())
			{
				if (xSeekable.is())
				{
					xStatusIndicator->setValue((int)(bytesRead*100/bytesTotal));
				}
				else
				{
					char buf1[100];
					sprintf(buf1, "Converted %Li KB", bytesRead/1024);
					xStatusIndicator->start(::rtl::OUString::createFromAscii(buf1), 0);
				}
			}
			return len;
		}
		else
		{
			if (xStatusIndicator.is())
			{
				xStatusIndicator->end();
			}
			return 0;
		}
	}
};
=====================================================================
Found a 63 line (338 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/tdmanager/testtdmanager.cxx

namespace css = com::sun::star;

namespace {

class Service: public cppu::WeakImplHelper1< css::lang::XMain > {
public:
    virtual sal_Int32 SAL_CALL
    run(css::uno::Sequence< rtl::OUString > const & arguments)
        throw (css::uno::RuntimeException);

    static rtl::OUString getImplementationName();

    static css::uno::Sequence< rtl::OUString > getSupportedServiceNames();

    static css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance(
        css::uno::Reference< css::uno::XComponentContext > const & context)
        throw (css::uno::Exception);

private:
    explicit Service(
        css::uno::Reference< css::uno::XComponentContext > const & context):
        m_context(context)
    {}

    css::uno::Reference< css::uno::XComponentContext > m_context;
};

}

namespace {

std::ostream & operator <<(std::ostream & out, rtl::OUString const & value) {
    return out << rtl::OUStringToOString(value, RTL_TEXTENCODING_UTF8).getStr();
}

void assertTrue(bool argument) {
    if (!argument) {
        std::cerr
            << "assertTrue(" << argument << ") failed" << std::endl;
        /*MSVC trouble: std::*/abort();
    }
}

void assertFalse(bool argument) {
    if (argument) {
        std::cerr
            << "assertFalse(" << argument << ") failed" << std::endl;
        /*MSVC trouble: std::*/abort();
    }
}

template< typename T > void assertEqual(T const & value, T const & argument) {
    if (argument != value) {
        std::cerr
            << "assertEqual(" << value << ", " << argument << ") failed"
            << std::endl;
        /*MSVC trouble: std::*/abort();
    }
}

}

sal_Int32 Service::run(css::uno::Sequence< rtl::OUString > const & arguments)
=====================================================================
Found a 58 line (338 tokens) duplication in the following files: 
Starting at line 735 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1252 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

            if ( !implts_checkAndScaleGraphic( xGraphic, aGraphicSequence[i], nIndex ))
                continue;

            USHORT nPos = pImageList->GetImagePos( aCommandURLSequence[i] );
            if ( nPos == IMAGELIST_IMAGE_NOTFOUND )
            {
                pImageList->AddImage( aCommandURLSequence[i], xGraphic );
                if ( !pInsertedImages )
                    pInsertedImages = new CmdToXGraphicNameAccess();
                pInsertedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
            else
            {
                pImageList->ReplaceImage( aCommandURLSequence[i], xGraphic );
                if ( !pReplacedImages )
                    pReplacedImages = new CmdToXGraphicNameAccess();
                pReplacedImages->addElement( aCommandURLSequence[i], xGraphic );
            }
        }
        
        if (( pInsertedImages != 0 ) || ( pReplacedImages != 0 ))
        {
            m_bModified = sal_True;
            m_bUserImageListModified[nIndex] = true;
        }
    }

    // Notify listeners
    uno::Reference< XImageManager > xThis( static_cast< OWeakObject* >( this ), UNO_QUERY );
    uno::Reference< XInterface > xIfac( xThis, UNO_QUERY );

    if ( pInsertedImages != 0 )
    {
        ConfigurationEvent aInsertEvent;
        aInsertEvent.aInfo           = uno::makeAny( nImageType );
        aInsertEvent.Accessor        = uno::makeAny( xThis );
        aInsertEvent.Source          = xIfac;
        aInsertEvent.ResourceURL     = m_aResourceString;
        aInsertEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                        static_cast< OWeakObject *>( pInsertedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aInsertEvent, NotifyOp_Insert );
    }
    if ( pReplacedImages != 0 )
    {
        ConfigurationEvent aReplaceEvent;
        aReplaceEvent.aInfo           = uno::makeAny( nImageType );
        aReplaceEvent.Accessor        = uno::makeAny( xThis );
        aReplaceEvent.Source          = xIfac;
        aReplaceEvent.ResourceURL     = m_aResourceString;
        aReplaceEvent.ReplacedElement = Any();
        aReplaceEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                         static_cast< OWeakObject *>( pReplacedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aReplaceEvent, NotifyOp_Replace );
    }
}

// XUIConfiguration
void SAL_CALL ModuleImageManager::addConfigurationListener( const uno::Reference< ::com::sun::star::ui::XUIConfigurationListener >& xListener ) 
=====================================================================
Found a 48 line (338 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/aqua/HtmlFmtFlt.cxx
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/dtobj/FmtFilter.cxx

}

// the office allways writes the start and end html tag in upper cases and
// without spaces both tags don't allow parameters
const std::string TAG_HTML = std::string("<HTML>");
const std::string TAG_END_HTML = std::string("</HTML>");

// The body tag may have parameters so we need to search for the
// closing '>' manually e.g. <BODY param> #92840#
const std::string TAG_BODY = std::string("<BODY");
const std::string TAG_END_BODY = std::string("</BODY");

Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8>& aTextHtml)
{
	OSL_ASSERT(aTextHtml.getLength() > 0);
	
	if (!(aTextHtml.getLength() > 0))
		return Sequence<sal_Int8>();
	        		
	// fill the buffer with dummy values to calc the exact length
    std::string dummyHtmlHeader = GetHtmlFormatHeader(0, 0, 0, 0);		
	size_t lHtmlFormatHeader = dummyHtmlHeader.length();
	    	   
	std::string textHtml(
	    reinterpret_cast<const sal_Char*>(aTextHtml.getConstArray()), 
		reinterpret_cast<const sal_Char*>(aTextHtml.getConstArray()) + aTextHtml.getLength());
								    			    	    
	std::string::size_type nStartHtml = textHtml.find(TAG_HTML) + lHtmlFormatHeader - 1; // we start one before '<HTML>' Word 2000 does also so
	std::string::size_type nEndHtml = textHtml.find(TAG_END_HTML) + lHtmlFormatHeader + TAG_END_HTML.length() + 1; // our SOffice 5.2 wants 2 behind </HTML>?
	
	// The body tag may have parameters so we need to search for the
	// closing '>' manually e.g. <BODY param> #92840#
	std::string::size_type nStartFragment = textHtml.find(">", textHtml.find(TAG_BODY)) + lHtmlFormatHeader + 1; 
	std::string::size_type nEndFragment = textHtml.find(TAG_END_BODY) + lHtmlFormatHeader;

	std::string htmlFormat = GetHtmlFormatHeader(nStartHtml, nEndHtml, nStartFragment, nEndFragment);	
	htmlFormat += textHtml;
		
	Sequence<sal_Int8> byteSequence(htmlFormat.length() + 1); // space the trailing '\0'
	rtl_zeroMemory(byteSequence.getArray(), byteSequence.getLength());						
		
	rtl_copyMemory(
		static_cast<void*>(byteSequence.getArray()),
		static_cast<const void*>(htmlFormat.c_str()),
		htmlFormat.length());
	
	return byteSequence;
}
=====================================================================
Found a 78 line (337 tokens) duplication in the following files: 
Starting at line 400 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

    if ( bFolder )
    {
        static cppu::OTypeCollection* pFolderTypes = 0;

        pCollection = pFolderTypes;
        if ( !pCollection )
        {
            osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );

            pCollection = pFolderTypes;
            if ( !pCollection )
            {
                static cppu::OTypeCollection aCollection(
                    CPPU_TYPE_REF( lang::XTypeProvider ),
                        CPPU_TYPE_REF( lang::XServiceInfo ),
                        CPPU_TYPE_REF( lang::XComponent ),
                        CPPU_TYPE_REF( ucb::XContent ),
                        CPPU_TYPE_REF( ucb::XCommandProcessor ),
                        CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                        CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                        CPPU_TYPE_REF( beans::XPropertyContainer ),
                        CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                        CPPU_TYPE_REF( container::XChild ),
                        CPPU_TYPE_REF( ucb::XContentCreator ) ); // !!
                pCollection = &aCollection;
                OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
                pFolderTypes = pCollection;
            }
        }
        else
            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
    }
    else
    {
        static cppu::OTypeCollection* pDocumentTypes = 0;

        pCollection = pDocumentTypes;
        if ( !pCollection )
        {
            osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );

            pCollection = pDocumentTypes;
            if ( !pCollection )
            {
                static cppu::OTypeCollection aCollection(
                        CPPU_TYPE_REF( lang::XTypeProvider ),
                        CPPU_TYPE_REF( lang::XServiceInfo ),
                        CPPU_TYPE_REF( lang::XComponent ),
                        CPPU_TYPE_REF( ucb::XContent ),
                        CPPU_TYPE_REF( ucb::XCommandProcessor ),
                        CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                        CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                        CPPU_TYPE_REF( beans::XPropertyContainer ),
                        CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                        CPPU_TYPE_REF( container::XChild ) );
                pCollection = &aCollection;
                OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
                pDocumentTypes = pCollection;
            }
        }
        else
            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
    }

    return (*pCollection).getTypes();
}

//=========================================================================
//
// XServiceInfo methods.
//
//=========================================================================

// virtual
rtl::OUString SAL_CALL Content::getImplementationName()
    throw( uno::RuntimeException )
{
    return rtl::OUString::createFromAscii(
=====================================================================
Found a 104 line (337 tokens) duplication in the following files: 
Starting at line 27 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOComWindowPeer.h
Starting at line 63 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOComWindowPeer.h

class SOComWindowPeer : 
	public IDispatchImpl<ISOComWindowPeer, &IID_ISOComWindowPeer, &LIBID_SO_ACTIVEXLib>, 
	public ISupportErrorInfo,
	public CComObjectRoot,
	public CComCoClass<SOComWindowPeer,&CLSID_SOComWindowPeer>
{
	HWND m_hwnd;
public:
	SOComWindowPeer() : m_hwnd( NULL ) {}

BEGIN_COM_MAP(SOComWindowPeer)
	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY(ISOComWindowPeer)
	COM_INTERFACE_ENTRY(ISupportErrorInfo)
END_COM_MAP()
DECLARE_NOT_AGGREGATABLE(SOComWindowPeer) 
// Remove the comment from the line above if you don't want your object to 
// support aggregation. 

DECLARE_REGISTRY_RESOURCEID(IDR_SOCOMWINDOWPEER)

// ISupportsErrorInfo
	STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);

// ISOComWindowPeer
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getWindowHandle( 
            /* [in] */ SAFEARRAY __RPC_FAR * procId,
            /* [in] */ short s,
            /* [retval][out] */ long __RPC_FAR *ret)
		{
			*ret = (long) m_hwnd;
			return S_OK;
		}
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getToolkit( 
            /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *retVal)
		{
			*retVal = NULL;
			return S_OK;
		}
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE setPointer( 
            /* [in] */ IDispatch __RPC_FAR *xPointer)
		{
			return S_OK;
		}
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE setBackground( 
            /* [in] */ int nColor)
		{
			return S_OK;
		}
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE invalidate( 
            /* [in] */ short __MIDL_0015)
		{
			return S_OK;
		}
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE invalidateRect( 
            /* [in] */ IDispatch __RPC_FAR *aRect,
            /* [in] */ short nFlags)
		{
			return S_OK;
		}
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE dispose( void)
		{
			return S_OK;
		}
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE addEventListener( 
            /* [in] */ IDispatch __RPC_FAR *xListener)
		{
			return S_OK;
		}
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeEventListener( 
            /* [in] */ IDispatch __RPC_FAR *xListener)
		{
			return S_OK;
		}
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Bridge_implementedInterfaces( 
            /* [retval][out] */ SAFEARRAY __RPC_FAR * __RPC_FAR *pVal)
		{
			*pVal = SafeArrayCreateVector( VT_BSTR, 0, 2 );

			if( !*pVal )
				return E_FAIL;

			long ix = 0;
            CComBSTR aInterface( OLESTR( "com.sun.star.awt.XSystemDependentWindowPeer" ) );
			SafeArrayPutElement( *pVal, &ix, aInterface );

			ix = 1;
            aInterface = CComBSTR( OLESTR( "com.sun.star.awt.XWindowPeer" ) );
			SafeArrayPutElement( *pVal, &ix, aInterface );

			return S_OK;
		}

		void SetHWNDInternally( HWND hwnd ) { m_hwnd = hwnd; }
};
=====================================================================
Found a 65 line (336 tokens) duplication in the following files: 
Starting at line 1605 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docvor.cxx
Starting at line 1700 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docvor.cxx

		com::sun::star::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, SFXWB_MULTISELECTION );

    // add "All" filter
    pFileDlg->AddFilter( String( SfxResId( STR_SFX_FILTERNAME_ALL ) ),
                         DEFINE_CONST_UNICODE( FILEDIALOG_FILTER_ALL ) );

    // add template filter
    String sFilterName( SfxResId( STR_TEMPLATE_FILTER ) );
    String sFilterExt;
    // add filters of modules which are installed
    SvtModuleOptions aModuleOpt;
    if ( aModuleOpt.IsModuleInstalled( SvtModuleOptions::E_SWRITER ) )
        sFilterExt += DEFINE_CONST_UNICODE( "*.ott;*.stw;*.oth" );
    if ( aModuleOpt.IsModuleInstalled( SvtModuleOptions::E_SCALC ) )
    {
        if ( sFilterExt.Len() > 0 )
            sFilterExt += ';';
        sFilterExt += DEFINE_CONST_UNICODE( "*.ots;*.stc" );
    }
    if ( aModuleOpt.IsModuleInstalled( SvtModuleOptions::E_SIMPRESS ) )
    {
        if ( sFilterExt.Len() > 0 )
            sFilterExt += ';';
        sFilterExt += DEFINE_CONST_UNICODE( "*.otp;*.sti" );
    }
    if ( aModuleOpt.IsModuleInstalled( SvtModuleOptions::E_SDRAW ) )
    {
        if ( sFilterExt.Len() > 0 )
            sFilterExt += ';';
        sFilterExt += DEFINE_CONST_UNICODE( "*.otg;*.std" );
    }
    if ( sFilterExt.Len() > 0 )
        sFilterExt += ';';
    sFilterExt += DEFINE_CONST_UNICODE( "*.vor" );

    sFilterName += DEFINE_CONST_UNICODE( " (" );
    sFilterName += sFilterExt;
    sFilterName += ')';
    pFileDlg->AddFilter( sFilterName, sFilterExt );
    pFileDlg->SetCurrentFilter( sFilterName );

    if ( aLastDir.Len() || rFileName.Len() )
    {
        INetURLObject aObj;
        if ( aLastDir.Len() )
        {
            aObj.SetURL( aLastDir );
            if ( rFileName.Len() )
                aObj.insertName( rFileName );
        }
        else
            aObj.SetURL( rFileName );

        if ( aObj.hasExtension() )
        {
            m_sExtension4Save = aObj.getExtension(
                 INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET );
            aObj.removeExtension();
        }

        DBG_ASSERT( aObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" );
        pFileDlg->SetDisplayDirectory( aObj.GetMainURL( INetURLObject::NO_DECODE ) );
    }

    pFileDlg->StartExecuteModal( LINK( this, SfxOrganizeDlg_Impl, ExportHdl ) );
=====================================================================
Found a 69 line (336 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr->eTypeClass, pParamType,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, 
                                  *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
        bridges::cpp_uno::shared::UnoInterfaceProxy * pThis 
            = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy *> (pUnoI);
=====================================================================
Found a 9 line (335 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x04F9}, {0x15, 0x04F8}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 04f8 - 04ff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0500 - 0507
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0508 - 050f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0510 - 0517
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0518 - 051f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0520 - 0527
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0528 - 052f
    {0x00, 0x0000}, {0x6a, 0x0561}, {0x6a, 0x0562}, {0x6a, 0x0563}, {0x6a, 0x0564}, {0x6a, 0x0565}, {0x6a, 0x0566}, {0x6a, 0x0567}, // 0530 - 0537
=====================================================================
Found a 80 line (334 tokens) duplication in the following files: 
Starting at line 1701 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx
Starting at line 1810 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx

	case IDocumentRedlineAccess::REDLINE_INSERT:
		{
			SwDoc& rDoc = *pRedl->GetDoc();
			const SwPosition *pDelStt = 0, *pDelEnd = 0;
			BOOL bDelRedl = FALSE;
			switch( eCmp )
			{
			case POS_INSIDE:
				if( bCallDelete )
				{
					pDelStt = pSttRng;
					pDelEnd = pEndRng;
				}
				break;

			case POS_OVERLAP_BEFORE:
				if( bCallDelete )
				{
					pDelStt = pRStt;
					pDelEnd = pEndRng;
				}
				break;
			case POS_OVERLAP_BEHIND:
				if( bCallDelete )
				{
					pDelStt = pREnd;
					pDelEnd = pSttRng;
				}
				break;
			case POS_OUTSIDE:
			case POS_EQUAL:
				{
					// dann den Bereich wieder loeschen
					rArr.Remove( rPos-- );
					bDelRedl = TRUE;
					if( bCallDelete )
					{
						pDelStt = pRedl->Start();
						pDelEnd = pRedl->End();
					}
				}
				break;

			default:
				bRet = FALSE;
			}
			if( pDelStt && pDelEnd )
			{
				SwPaM aPam( *pDelStt, *pDelEnd );

				SwCntntNode* pCSttNd = pDelStt->nNode.GetNode().GetCntntNode();
				SwCntntNode* pCEndNd = pDelEnd->nNode.GetNode().GetCntntNode();

				if( bDelRedl )
					delete pRedl;

				IDocumentRedlineAccess::RedlineMode_t eOld = rDoc.GetRedlineMode();
				rDoc.SetRedlineMode_intern( (IDocumentRedlineAccess::RedlineMode_t)(eOld & ~(IDocumentRedlineAccess::REDLINE_ON | IDocumentRedlineAccess::REDLINE_IGNORE)));

				if( pCSttNd && pCEndNd )
					rDoc.DeleteAndJoin( aPam );
				else
				{
					rDoc.Delete( aPam );

					if( pCSttNd && !pCEndNd )
					{
						aPam.GetBound( TRUE ).nContent.Assign( 0, 0 );
						aPam.GetBound( FALSE ).nContent.Assign( 0, 0 );
						aPam.DeleteMark();
						rDoc.DelFullPara( aPam );
					}
				}
				rDoc.SetRedlineMode_intern( eOld );
			}
			else if( bDelRedl )
				delete pRedl;
		}
		break;
	case IDocumentRedlineAccess::REDLINE_DELETE:
=====================================================================
Found a 50 line (334 tokens) duplication in the following files: 
Starting at line 1038 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/dbdocfun.cxx
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

				SCCOLROW nOutEndRow;
				pTable->GetColArray()->GetRange( nOutStartCol, nOutEndCol );
				pTable->GetRowArray()->GetRange( nOutStartRow, nOutEndRow );

				pUndoDoc->InitUndo( pDoc, nTab, nTab, TRUE, TRUE );
				pDoc->CopyToDocument( static_cast<SCCOL>(nOutStartCol), 0, nTab, static_cast<SCCOL>(nOutEndCol), MAXROW, nTab, IDF_NONE, FALSE, pUndoDoc );
				pDoc->CopyToDocument( 0, nOutStartRow, nTab, MAXCOL, nOutEndRow, nTab, IDF_NONE, FALSE, pUndoDoc );
			}
			else
				pUndoDoc->InitUndo( pDoc, nTab, nTab, FALSE, bOldFilter );

			//	Datenbereich sichern - incl. Filter-Ergebnis
			pDoc->CopyToDocument( 0,rParam.nRow1+1,nTab, MAXCOL,rParam.nRow2,nTab,
									IDF_ALL, FALSE, pUndoDoc );

			//	alle Formeln wegen Referenzen
			pDoc->CopyToDocument( 0,0,0, MAXCOL,MAXROW,nTabCount-1,
										IDF_FORMULA, FALSE, pUndoDoc );

			//	DB- und andere Bereiche
			ScRangeName* pDocRange = pDoc->GetRangeName();
			if (pDocRange->GetCount())
				pUndoRange = new ScRangeName( *pDocRange );
			ScDBCollection* pDocDB = pDoc->GetDBCollection();
			if (pDocDB->GetCount())
				pUndoDB = new ScDBCollection( *pDocDB );
		}

//		pDoc->SetOutlineTable( nTab, NULL );
		ScOutlineTable*	pOut = pDoc->GetOutlineTable( nTab );
		if (pOut)
			pOut->GetRowArray()->RemoveAll();		// nur Zeilen-Outlines loeschen

		if (rParam.bReplace)
			pDoc->RemoveSubTotals( nTab, aNewParam );
		BOOL bSuccess = TRUE;
		if (bDo)
		{
			// Sortieren
			if ( rParam.bDoSort || pForceNewSort )
			{
				pDBData->SetArea( nTab, aNewParam.nCol1,aNewParam.nRow1, aNewParam.nCol2,aNewParam.nRow2 );

				//	Teilergebnis-Felder vor die Sortierung setzen
				//	(doppelte werden weggelassen, kann darum auch wieder aufgerufen werden)

				ScSortParam aOldSort;
				pDBData->GetSortParam( aOldSort );
				ScSortParam aSortParam( aNewParam, pForceNewSort ? *pForceNewSort : aOldSort );
				Sort( aSortParam, FALSE, FALSE );
=====================================================================
Found a 100 line (333 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svppspgraphics.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/pspgraphics.cxx

		return 0;
}

/*******************************************************
 * PspGraphics                                         *
 *******************************************************/

PspGraphics::~PspGraphics()
{
    ReleaseFonts();
}

void PspGraphics::GetResolution( sal_Int32 &rDPIX, sal_Int32 &rDPIY )
{
	if (m_pJobData != NULL)
	{
		int x = m_pJobData->m_aContext.getRenderResolution();

		rDPIX = x;
		rDPIY = x;
	}
}

void PspGraphics::GetScreenFontResolution( sal_Int32 &rDPIX, sal_Int32 &rDPIY )
{
    m_pPrinterGfx->GetScreenFontResolution (rDPIX, rDPIY);
}

USHORT PspGraphics::GetBitCount()
{
    return m_pPrinterGfx->GetBitCount();
}

long PspGraphics::GetGraphicsWidth() const
{
    return 0;
}

void PspGraphics::ResetClipRegion()
{
    m_pPrinterGfx->ResetClipRegion ();
}

void PspGraphics::BeginSetClipRegion( ULONG n )
{
    m_pPrinterGfx->BeginSetClipRegion(n);
}

BOOL PspGraphics::unionClipRegion( long nX, long nY, long nDX, long nDY )
{
    return (BOOL)m_pPrinterGfx->UnionClipRegion (nX, nY, nDX, nDY);
}

void PspGraphics::EndSetClipRegion()
{
    m_pPrinterGfx->EndSetClipRegion ();
}

void PspGraphics::SetLineColor()
{
    m_pPrinterGfx->SetLineColor ();
}

void PspGraphics::SetLineColor( SalColor nSalColor )
{
    psp::PrinterColor aColor (SALCOLOR_RED   (nSalColor),
                              SALCOLOR_GREEN (nSalColor),
                              SALCOLOR_BLUE  (nSalColor));
    m_pPrinterGfx->SetLineColor (aColor);
}

void PspGraphics::SetFillColor()
{
    m_pPrinterGfx->SetFillColor ();
}

void PspGraphics::SetFillColor( SalColor nSalColor )
{
    psp::PrinterColor aColor (SALCOLOR_RED   (nSalColor),
                              SALCOLOR_GREEN (nSalColor),
                              SALCOLOR_BLUE  (nSalColor));
    m_pPrinterGfx->SetFillColor (aColor);
}

void PspGraphics::SetROPLineColor( SalROPColor )
{
    DBG_ASSERT( 0, "Error: PrinterGfx::SetROPLineColor() not implemented" );
}

void PspGraphics::SetROPFillColor( SalROPColor )
{
    DBG_ASSERT( 0, "Error: PrinterGfx::SetROPFillColor() not implemented" );
}

void PspGraphics::SetXORMode( BOOL
#ifdef DBG_UTIL
bSet
#endif
)
{
=====================================================================
Found a 13 line (333 tokens) duplication in the following files: 
Starting at line 1422 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1474 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a400 - a40f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a410 - a41f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a420 - a42f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a430 - a43f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a440 - a44f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a450 - a45f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a460 - a46f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a470 - a47f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a480 - a48f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// a490 - a49f
    10,10, 0, 0,10,10,10,10,10,10,10,10,10,10,10,10,// a4a0 - a4af
=====================================================================
Found a 9 line (333 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x04F9}, {0x15, 0x04F8}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 04f8 - 04ff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0500 - 0507
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0508 - 050f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0510 - 0517
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0518 - 051f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0520 - 0527
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0528 - 052f
    {0x00, 0x0000}, {0x6a, 0x0561}, {0x6a, 0x0562}, {0x6a, 0x0563}, {0x6a, 0x0564}, {0x6a, 0x0565}, {0x6a, 0x0566}, {0x6a, 0x0567}, // 0530 - 0537
=====================================================================
Found a 49 line (331 tokens) duplication in the following files: 
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/marktest.cxx
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/marktest.cxx

		sal_Int32 an[4];

		for( i = 0 ; i < 4 ; i ++ ) {
			as[i].realloc(1);
			as[i].getArray()[0] = i;
			an[i] = rMarkable->createMark();
			rOutput->writeBytes( as[i] );
		}

		// check offset to mark
		for( i = 0 ; i < 4 ; i ++ ) {
			ERROR_ASSERT( rMarkable->offsetToMark( an[i] ) == 4-i , "offsetToMark failure" );
		}

		rMarkable->jumpToMark( an[1] );
		ERROR_ASSERT( rMarkable->offsetToMark( an[3] ) == -2 , "offsetToMark failure" );

		rMarkable->jumpToFurthest( );
		ERROR_ASSERT( rMarkable->offsetToMark( an[0] ) == 4 , "offsetToMark failure" );

		// now do a rewrite !
		for( i = 0 ; i < 4 ; i ++ ) {
			rMarkable->jumpToMark( an[3-i] );
			rOutput->writeBytes( as[i] );
		}
		// NOTE : CursorPos 1

		// now delete the marks !
		for( i = 0 ; i < 4 ; i ++ ) {
			rMarkable->deleteMark( an[i] );
		}
		ERROR_ASSERT( rInput->available() == 1 , "wrong number of bytes flushed" );

		rMarkable->jumpToFurthest();

		ERROR_ASSERT( rInput->available() == 4 , "wrong number of bytes flushed" );

		rInput->readBytes( seqRead , 4 );

		ERROR_ASSERT( 3 == seqRead.getArray()[0] , "rewrite didn't work" );
		ERROR_ASSERT( 2 == seqRead.getArray()[1] , "rewrite didn't work" );
		ERROR_ASSERT( 1 == seqRead.getArray()[2] , "rewrite didn't work" );
		ERROR_ASSERT( 0 == seqRead.getArray()[3] , "rewrite didn't work" );

		rOutput->closeOutput();
		rInput->closeInput();
	}

}
=====================================================================
Found a 68 line (330 tokens) duplication in the following files: 
Starting at line 893 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 620 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

			rData.bIsFolder );

		// @@@ Append other properties supported directly.

		// @@@ Note: If your data source supports adding/removing
		//     properties, you should implement the interface
		//     XPropertyContainer by yourself and supply your own
		//     logic here. The base class uses the service
		//     "com.sun.star.ucb.Store" to maintain Additional Core
		//     properties. But using server functionality is preferred!

		// Append all Additional Core Properties.

        uno::Reference< beans::XPropertySet > xSet(
			rProvider->getAdditionalPropertySet( rContentId, sal_False ),
            uno::UNO_QUERY );
		xRow->appendPropertySet( xSet );
	}

    return uno::Reference< sdbc::XRow >( xRow.get() );
}

//=========================================================================
uno::Reference< sdbc::XRow > Content::getPropertyValues(
            const uno::Sequence< beans::Property >& rProperties,
            const uno::Reference< ucb::XCommandEnvironment >& /* xEnv */)
{
	osl::Guard< osl::Mutex > aGuard( m_aMutex );
	return getPropertyValues( m_xSMgr,
							  rProperties,
							  m_aProps,
                              rtl::Reference<
                                ::ucbhelper::ContentProviderImplHelper >(
                                    m_xProvider.get() ),
							  m_xIdentifier->getContentIdentifier() );
}

//=========================================================================
uno::Sequence< uno::Any > Content::setPropertyValues(
            const uno::Sequence< beans::PropertyValue >& rValues,
            const uno::Reference< ucb::XCommandEnvironment >& /* xEnv */)
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );

    uno::Sequence< uno::Any > aRet( rValues.getLength() );
    uno::Sequence< beans::PropertyChangeEvent > aChanges( rValues.getLength() );
	sal_Int32 nChanged = 0;

    beans::PropertyChangeEvent aEvent;
    aEvent.Source         = static_cast< cppu::OWeakObject * >( this );
	aEvent.Further 		  = sal_False;
//	aEvent.PropertyName	  =
	aEvent.PropertyHandle = -1;
//	aEvent.OldValue		  =
//	aEvent.NewValue       =

    const beans::PropertyValue* pValues = rValues.getConstArray();
	sal_Int32 nCount = rValues.getLength();

    uno::Reference< ucb::XPersistentPropertySet > xAdditionalPropSet;
	sal_Bool bTriedToGetAdditonalPropSet = sal_False;

	for ( sal_Int32 n = 0; n < nCount; ++n )
	{
        const beans::PropertyValue& rValue = pValues[ n ];

        if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
=====================================================================
Found a 59 line (330 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

using namespace lang;

using namespace ::com::sun::star::container;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::util;

using ::rtl::OUString;
using ::rtl::OString;

using namespace ::cppu;

#define ASCII(x) ::rtl::OUString::createFromAscii(x)

ostream& operator << (ostream& out, rtl::OUString const& aStr)
{
	sal_Unicode const* const pStr = aStr.getStr();
	sal_Unicode const* const pEnd = pStr + aStr.getLength();
	for (sal_Unicode const* p = pStr; p < pEnd; ++p)
		if (0 < *p && *p < 127) // ASCII
			out << char(*p);
		else
			out << "[\\u" << hex << *p << "]";
	return out;
}

void showSequence(const Sequence<OUString> &aSeq)
{
	OUString aArray;
	const OUString *pStr = aSeq.getConstArray();
	for (int i=0;i<aSeq.getLength();i++)
	{
		OUString aStr = pStr[i];
		// aArray += aStr + ASCII(", ");
		cout << aStr << endl;
	}
	volatile int dummy = 0;
}

//=============================================================================

inline void operator <<= (::rtl::OUString& _rUnicodeString, const sal_Char* _pAsciiString)
{
	_rUnicodeString = ::rtl::OUString::createFromAscii(_pAsciiString);
}

inline void operator <<= (::rtl::OUString& _rUnicodeString, const ::rtl::OString& _rAsciiString)
{
	_rUnicodeString <<= _rAsciiString.getStr();
}

inline void operator <<= (Any& _rUnoValue, const sal_Char* _pAsciiString)
{
	_rUnoValue <<= ::rtl::OUString::createFromAscii(_pAsciiString);
}

inline void operator <<= (Any& _rUnoValue, const ::rtl::OString& _rAsciiString)
{
	_rUnoValue <<= _rAsciiString.getStr();
}
=====================================================================
Found a 18 line (330 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/NamedPropertyValuesContainer.cxx
Starting at line 1192 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unoobj.cxx

	SdUnoEventsAccess( SdXShape* pShape ) throw();

    // XNameReplace
    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    
    // XNameAccess
    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);

    // XElementAccess
    virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);

	// XServiceInfo
    virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 62 line (329 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtfsl/RTFSLParser.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx

	}
};

class RtfInputSourceImpl : public rtftok::RTFInputSource
{
private:
	uno::Reference< io::XInputStream > xInputStream;
	uno::Reference< io::XSeekable > xSeekable;
	uno::Reference< task::XStatusIndicator > xStatusIndicator;
	sal_Int64 bytesTotal;
	sal_Int64 bytesRead;
public:
	RtfInputSourceImpl(uno::Reference< io::XInputStream > &xInputStream_, uno::Reference< task::XStatusIndicator > &xStatusIndicator_) :
	  xInputStream(xInputStream_),
	  xStatusIndicator(xStatusIndicator_),
	  bytesRead(0)
	{
		xSeekable=uno::Reference< io::XSeekable >(xInputStream, uno::UNO_QUERY);
		if (xSeekable.is())
			bytesTotal=xSeekable->getLength();
		if (xStatusIndicator.is() && xSeekable.is())
		{
			xStatusIndicator->start(::rtl::OUString::createFromAscii("Converting"), 100);
		}
	}

    virtual ~RtfInputSourceImpl() {}

	int read(void *buf, int maxlen)
	{
		uno::Sequence< sal_Int8 > buffer;
		int len=xInputStream->readSomeBytes(buffer,maxlen);
		if (len>0)
		{
			sal_Int8 *_buffer=buffer.getArray();
			memcpy(buf, _buffer, len);
			bytesRead+=len;
			if (xStatusIndicator.is())
			{
				if (xSeekable.is())
				{
					xStatusIndicator->setValue((int)(bytesRead*100/bytesTotal));
				}
				else
				{
					char buf1[100];
					sprintf(buf1, "Converted %Li KB", bytesRead/1024);
					xStatusIndicator->start(::rtl::OUString::createFromAscii(buf1), 0);
				}
			}
			return len;
		}
		else
		{
			if (xStatusIndicator.is())
			{
				xStatusIndicator->end();
			}
			return 0;
		}
	}
};
=====================================================================
Found a 57 line (329 tokens) duplication in the following files: 
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/drawsh4.cxx
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/drtxtob2.cxx

	ScDrawView* 		pDrView 	= pViewData->GetView()->GetScDrawView();
	const SdrMarkList&	rMarkList	= pDrView->GetMarkedObjectList();
	USHORT				nId = SvxFontWorkChildWindow::GetChildWindowId();

	SfxViewFrame* pViewFrm = pViewData->GetViewShell()->GetViewFrame();
	if ( pViewFrm->HasChildWindow(nId) )
		pDlg = (SvxFontWorkDialog*)(pViewFrm->GetChildWindow(nId)->GetWindow());

	if ( rMarkList.GetMarkCount() == 1 )
		pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();

	if ( pObj == NULL || !pObj->ISA(SdrTextObj) ||
		!((SdrTextObj*) pObj)->HasText() )
	{
		if ( pDlg )
			pDlg->SetActive(FALSE);

		rSet.DisableItem(XATTR_FORMTXTSTYLE);
		rSet.DisableItem(XATTR_FORMTXTADJUST);
		rSet.DisableItem(XATTR_FORMTXTDISTANCE);
		rSet.DisableItem(XATTR_FORMTXTSTART);
		rSet.DisableItem(XATTR_FORMTXTMIRROR);
		rSet.DisableItem(XATTR_FORMTXTSTDFORM);
		rSet.DisableItem(XATTR_FORMTXTHIDEFORM);
		rSet.DisableItem(XATTR_FORMTXTOUTLINE);
		rSet.DisableItem(XATTR_FORMTXTSHADOW);
		rSet.DisableItem(XATTR_FORMTXTSHDWCOLOR);
		rSet.DisableItem(XATTR_FORMTXTSHDWXVAL);
		rSet.DisableItem(XATTR_FORMTXTSHDWYVAL);
	}
	else
	{
		if ( pDlg )
		{
			SfxObjectShell* pDocSh = SfxObjectShell::Current();

			if ( pDocSh )
			{
                const SfxPoolItem*  pItem = pDocSh->GetItem( SID_COLOR_TABLE );
				XColorTable*		pColorTable = NULL;

				if ( pItem )
					pColorTable = ((SvxColorTableItem*)pItem)->GetColorTable();

				pDlg->SetActive();

				if ( pColorTable )
					pDlg->SetColorTable( pColorTable );
				else
					{ DBG_ERROR( "ColorList not found :-/" ); }
			}
		}
		SfxItemSet aViewAttr(pDrView->GetModel()->GetItemPool());
		pDrView->GetAttributes(aViewAttr);
		rSet.Set(aViewAttr);
	}
}
=====================================================================
Found a 41 line (328 tokens) duplication in the following files: 
Starting at line 829 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 494 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/swparrtf.cxx

		SwTxtNode* pTxtNode = pSttNdIdx->GetNode().GetTxtNode();
		SwNodeIndex aNxtIdx( *pSttNdIdx );
		if( pTxtNode && pTxtNode->CanJoinNext( &aNxtIdx ))
		{
			xub_StrLen nStt = pTxtNode->GetTxt().Len();
			// wenn der Cursor noch in dem Node steht, dann setze in an das Ende
			if( pPam->GetPoint()->nNode == aNxtIdx )
			{
				pPam->GetPoint()->nNode = *pSttNdIdx;
				pPam->GetPoint()->nContent.Assign( pTxtNode, nStt );
			}

#ifndef PRODUCT
// !!! sollte nicht moeglich sein, oder ??
ASSERT( pSttNdIdx->GetIndex()+1 != pPam->GetBound( TRUE ).nNode.GetIndex(),
			"Pam.Bound1 steht noch im Node" );
ASSERT( pSttNdIdx->GetIndex()+1 != pPam->GetBound( FALSE ).nNode.GetIndex(),
			"Pam.Bound2 steht noch im Node" );

if( pSttNdIdx->GetIndex()+1 == pPam->GetBound( TRUE ).nNode.GetIndex() )
{
	register xub_StrLen nCntPos = pPam->GetBound( TRUE ).nContent.GetIndex();
	pPam->GetBound( TRUE ).nContent.Assign( pTxtNode,
					pTxtNode->GetTxt().Len() + nCntPos );
}
if( pSttNdIdx->GetIndex()+1 == pPam->GetBound( FALSE ).nNode.GetIndex() )
{
	register xub_StrLen nCntPos = pPam->GetBound( FALSE ).nContent.GetIndex();
	pPam->GetBound( FALSE ).nContent.Assign( pTxtNode,
					pTxtNode->GetTxt().Len() + nCntPos );
}
#endif
			// Zeichen Attribute beibehalten!
			SwTxtNode* pDelNd = aNxtIdx.GetNode().GetTxtNode();
			if( pTxtNode->GetTxt().Len() )
				pDelNd->FmtToTxtAttr( pTxtNode );
			else
				pTxtNode->ChgFmtColl( pDelNd->GetTxtColl() );
			pTxtNode->JoinNext();
		}
	}
=====================================================================
Found a 48 line (328 tokens) duplication in the following files: 
Starting at line 378 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx

  Reference< XPossibleHyphens > xRes;
        
  k = -1;
  for (int j = 0; j < numdict; j++)
     if (aLocale == aDicts[j].aLoc) k = j;

        
  // if we have a hyphenation dictionary matching this locale
  if (k != -1) {

      // if this dictioanry has not been loaded yet do that
      if (!aDicts[k].aPtr) {
               
         OUString DictFN = aDicts[k].aName + A2OU(".dic");
         OUString userdictpath;
         OUString dictpath;
         osl::FileBase::getSystemPathFromFileURL(
	  				    aPathOpt.GetUserDictionaryPath() + A2OU("/"),
		  			    userdictpath);
	    
	 osl::FileBase::getSystemPathFromFileURL(
		  			    aPathOpt.GetLinguisticPath() + A2OU("/ooo/"),
			  		    dictpath);
         OString uTmp(OU2ENC(userdictpath + DictFN,osl_getThreadTextEncoding()));
         OString sTmp(OU2ENC(dictpath + DictFN,osl_getThreadTextEncoding()));


	 if ( ( dict = hnj_hyphen_load ( uTmp.getStr() ) ) == NULL )
	    if ( ( dict = hnj_hyphen_load ( sTmp.getStr()) ) == NULL )
	    {
	       fprintf(stderr, "Couldn't find file %s and %s\n", OU2ENC(userdictpath + DictFN, osl_getThreadTextEncoding()),  OU2ENC(userdictpath + DictFN, osl_getThreadTextEncoding() ));
	       return NULL;
	    }
	 aDicts[k].aPtr = dict;
         aDicts[k].aEnc = rtl_getTextEncodingFromUnixCharset(dict->cset);
         if (aDicts[k].aEnc == RTL_TEXTENCODING_DONTKNOW) {
            if (strcmp("ISCII-DEVANAGARI", dict->cset) == 0) {
               aDicts[k].aEnc = RTL_TEXTENCODING_ISCII_DEVANAGARI;
            } else if (strcmp("UTF-8", dict->cset) == 0) {
               aDicts[k].aEnc = RTL_TEXTENCODING_UTF8;
            }
         }
      }

      // other wise hyphenate the word with that dictionary
      dict = aDicts[k].aPtr;
      aEnc = aDicts[k].aEnc;
      pCC  = aDicts[k].apCC;
=====================================================================
Found a 59 line (327 tokens) duplication in the following files: 
Starting at line 498 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/drwtxtsh.cxx
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/viewling.cxx

                    i18n::TextConversionOption::CHARACTER_BY_CHARACTER, sal_True );
            break;
        case SID_CHINESE_CONVERSION:
        {
            //open ChineseTranslationDialog
            Reference< XComponentContext > xContext(
                ::cppu::defaultBootstrap_InitialComponentContext() ); //@todo get context from calc if that has one
            if(xContext.is())
            {
                Reference< lang::XMultiComponentFactory > xMCF( xContext->getServiceManager() );
                if(xMCF.is())
                {
			        Reference< ui::dialogs::XExecutableDialog > xDialog(
                            xMCF->createInstanceWithContext(
                                rtl::OUString::createFromAscii("com.sun.star.linguistic2.ChineseTranslationDialog")
                                , xContext), UNO_QUERY);
                    Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY );
                    if( xInit.is() )
			        {
                        //	initialize dialog
                        Reference< awt::XWindow > xDialogParentWindow(0);
					    Sequence<Any> aSeq(1);
					    Any* pArray = aSeq.getArray();
                        PropertyValue aParam;
                        aParam.Name = rtl::OUString::createFromAscii("ParentWindow");
                        aParam.Value <<= makeAny(xDialogParentWindow);
					    pArray[0] <<= makeAny(aParam);
                        xInit->initialize( aSeq );

                        //execute dialog
				        sal_Int16 nDialogRet = xDialog->execute();
                        if( RET_OK == nDialogRet )
                        {
                            //get some parameters from the dialog
                            sal_Bool bToSimplified = sal_True;
                            sal_Bool bUseVariants = sal_True;
                            sal_Bool bCommonTerms = sal_True;
                            Reference< beans::XPropertySet >  xProp( xDialog, UNO_QUERY );
                            if( xProp.is() )
                            {
                                try
                                {
                                    xProp->getPropertyValue( C2U("IsDirectionToSimplified") ) >>= bToSimplified;
                                    xProp->getPropertyValue( C2U("IsUseCharacterVariants") ) >>= bUseVariants;
                                    xProp->getPropertyValue( C2U("IsTranslateCommonTerms") ) >>= bCommonTerms;
                                }
                                catch( Exception& )
                                {
                                }
                            }

                            //execute translation
                            sal_Int16 nSourceLang = bToSimplified ? LANGUAGE_CHINESE_TRADITIONAL : LANGUAGE_CHINESE_SIMPLIFIED;
                            sal_Int16 nTargetLang = bToSimplified ? LANGUAGE_CHINESE_SIMPLIFIED : LANGUAGE_CHINESE_TRADITIONAL;
                            sal_Int32 nOptions    = bUseVariants ? i18n::TextConversionOption::USE_CHARACTER_VARIANTS : 0;
                            if( !bCommonTerms )
                                nOptions = nOptions | i18n::TextConversionOption::CHARACTER_BY_CHARACTER;

                            Font aTargetFont = GetEditWin().GetDefaultFont( DEFAULTFONT_CJK_TEXT,
=====================================================================
Found a 74 line (327 tokens) duplication in the following files: 
Starting at line 1849 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("123.45.67.89"), IP_PORT_TELNET);
#ifdef WNT
			::osl::Socket sSocket(sHandle);
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); // sal_True);
			sSocket.bind( saBindSocketAddr );
			//Invalid IP, so bind should fail
			::rtl::OUString suError = outputError(::rtl::OUString::valueOf(sSocket.getLocalPort( )), 
				::rtl::OUString::valueOf((sal_Int32)OSL_INVALID_PORT), 
				"test for getLocalPort function: first create a new socket, then an invalid socket address, bind them, and check the port assigned.");
			bOK = ( OSL_INVALID_PORT == sSocket.getLocalPort( ) );
#else
			//on Unix, if Addr is not an address of type osl_Socket_FamilyInet, it returns OSL_INVALID_PORT
			::rtl::OUString suError = ::rtl::OUString::createFromAscii( "on Unix, if Addr is not an address of type osl_Socket_FamilyInet, it returns OSL_INVALID_PORT, but can not create Addr of that case");
#endif
			CPPUNIT_ASSERT_MESSAGE( suError, sal_False ); 

		}
		
		void getLocalPort_003()
		{
			::osl::Socket sSocket(sHandle);
			::osl::SocketAddr saBindSocketAddr( getLocalIP(), IP_PORT_INVAL);
			
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);
			
			sal_Bool bOK1 = sSocket.bind( saBindSocketAddr );
			::rtl::OUString suError1 = ::rtl::OUString::createFromAscii("Socket bind fail:") + sSocket.getErrorAsString();
			CPPUNIT_ASSERT_MESSAGE( suError1, sal_True == bOK1 );
			::rtl::OUString suError = outputError(::rtl::OUString::valueOf(sSocket.getLocalPort( )), 
				::rtl::OUString::createFromAscii("34463"), 
				"test for getLocalPort function: first create a new socket, then an invalid socket address, bind them, and check the port assigned");			
			sal_Bool bOK = ( sSocket.getLocalPort( ) >= 1 &&  sSocket.getLocalPort( ) <= 65535);
	
			CPPUNIT_ASSERT_MESSAGE( suError, sal_True == bOK ); 
		}
		
		CPPUNIT_TEST_SUITE( getLocalPort );
		CPPUNIT_TEST( getLocalPort_001 );
// LLA:		CPPUNIT_TEST( getLocalPort_002 );
		CPPUNIT_TEST( getLocalPort_003 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class getLocalPort

	
	/** testing the method:
		inline ::rtl::OUString SAL_CALL getLocalHost() const;

	    Mindyliu: on Linux, at first it will check the binded in /etc/hosts, if it has the binded IP, it will return the hostname in it;
	    else if the binded IP is "127.0.0.1", it will return "localhost", if it's the machine's ethernet ip such as "129.158.217.90", it
	    will return hostname of current processor such as "aegean.PRC.Sun.COM"	    			
	*/
	
	class getLocalHost : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
		void getLocalHost_001()
		{
			::osl::Socket sSocket(sHandle);
			//port number from IP_PORT_HTTP1 to IP_PORT_MYPORT6, mindyliu
			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT6 );
=====================================================================
Found a 73 line (327 tokens) duplication in the following files: 
Starting at line 1188 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 570 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/uicmdstohtml.cxx

    return NULL;
}

static const char ENCODED_AMPERSAND[]  = "&amp;";
static const char ENCODED_LESS[]       = "&lt;";
static const char ENCODED_GREATER[]    = "&gt;";
static const char ENCODED_QUOTE[]      = "&quot;";
static const char ENCODED_APOS[]       = "&apos;";

struct EncodeChars
{
    char  cChar;
    const char* pEncodedChars;
};

EncodeChars EncodeChar_Map[] =
{
    { '&', ENCODED_AMPERSAND    },
    { '<', ENCODED_LESS         },
    { '>', ENCODED_GREATER      },
    { '"', ENCODED_QUOTE        },
    { '\'', ENCODED_APOS        },
    { ' ', 0                    }
};

// Encodes a string to UTF-8 and uses "Built-in entity reference" to
// to escape character data that is not markup!
OString EncodeString( const OUString& aToEncodeStr )
{
    OString aString = OUStringToOString( aToEncodeStr, RTL_TEXTENCODING_UTF8 );

    int     i = 0;
    bool    bMustCopy( sal_False );
    while ( EncodeChar_Map[i].pEncodedChars != 0 )
    {
        OStringBuffer aBuf;
        bool bEncoded( false );

        sal_Int32 nCurIndex = 0;
        sal_Int32 nIndex    = 0;
        while ( nIndex < aString.getLength() )
        {
            nIndex = aString.indexOf( EncodeChar_Map[i].cChar, nIndex );
            if ( nIndex > 0 )
            {
                bEncoded = true;
                if ( nIndex > nCurIndex )
                    aBuf.append( aString.copy( nCurIndex, nIndex-nCurIndex ));
                aBuf.append( EncodeChar_Map[i].pEncodedChars );
                nCurIndex = nIndex+1;
            }
            else if ( nIndex == 0 )
            {
                bEncoded = true;
                aBuf.append( EncodeChar_Map[i].pEncodedChars );
                nCurIndex = nIndex+1;
            }
            else
            {
                if ( bEncoded && nCurIndex < aString.getLength() )
                    aBuf.append( aString.copy( nCurIndex ));
                break;
            }
            ++nIndex;
        }

        if ( bEncoded )
            aString = aBuf.makeStringAndClear();
        ++i;
    }

    return aString;
}
=====================================================================
Found a 70 line (327 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MStatement.cxx

    m_pSQLIterator->dispose();

    dispose_ChildImpl();
    OStatement_Base::disposing();
}
//-----------------------------------------------------------------------------
void SAL_CALL OStatement_BASE2::release() throw()
{
	relase_ChildImpl();
}
//-----------------------------------------------------------------------------
Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(RuntimeException)
{
	Any aRet = OStatement_BASE::queryInterface(rType);
	if(!aRet.hasValue())
		aRet = OPropertySetHelper::queryInterface(rType);
	return aRet;
}
// -------------------------------------------------------------------------
Sequence< Type > SAL_CALL OStatement_Base::getTypes(  ) throw(RuntimeException)
{
	::cppu::OTypeCollection aTypes(	::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
									::getCppuType( (const Reference< XFastPropertySet > *)0 ),
									::getCppuType( (const Reference< XPropertySet > *)0 ));

	return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_BASE::getTypes());
}
// -------------------------------------------------------------------------
void SAL_CALL OStatement_Base::close(  ) throw(SQLException, RuntimeException)
{
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(OStatement_BASE::rBHelper.bDisposed);

	}
	dispose();
}
// -------------------------------------------------------------------------

void OStatement_Base::reset() throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);


	clearWarnings ();

	if (m_xResultSet.get().is())
		clearMyResultSet();
}
//--------------------------------------------------------------------
// clearMyResultSet
// If a ResultSet was created for this Statement, close it
//--------------------------------------------------------------------

void OStatement_Base::clearMyResultSet () throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);

    try
    {
	    Reference<XCloseable> xCloseable;
	    if ( ::comphelper::query_interface( m_xResultSet.get(), xCloseable ) )
		    xCloseable->close();
    }
    catch( const DisposedException& ) { }

    m_xResultSet = Reference< XResultSet >();
}
=====================================================================
Found a 75 line (327 tokens) duplication in the following files: 
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/XMLRangeHelper.cxx
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/XMLRangeHelper.cxx

    /*::chart::*/XMLRangeHelper::Cell & rOutCell,
    ::rtl::OUString& rOutTableName )
{
    static const sal_Unicode aDot( '.' );
    static const sal_Unicode aQuote( '\'' );
    static const sal_Unicode aBackslash( '\\' );

    sal_Int32 nNextDelimiterPos = nStartPos;

    sal_Int32 nDelimiterPos = nStartPos;
    bool bInQuotation = false;
    // parse table name
    while( nDelimiterPos < nEndPos &&
           ( bInQuotation || rXMLString[ nDelimiterPos ] != aDot ))
    {
        // skip escaped characters (with backslash)
        if( rXMLString[ nDelimiterPos ] == aBackslash )
            ++nDelimiterPos;
        // toggle quotation mode when finding single quotes
        else if( rXMLString[ nDelimiterPos ] == aQuote )
            bInQuotation = ! bInQuotation;

        ++nDelimiterPos;
    }

    if( nDelimiterPos == -1 ||
        nDelimiterPos >= nEndPos )
    {
        return false;
    }
    if( nDelimiterPos > nStartPos )
    {
        // there is a table name before the address

        ::rtl::OUStringBuffer aTableNameBuffer;
        const sal_Unicode * pTableName = rXMLString.getStr();

        // remove escapes from table name
        ::std::for_each( pTableName + nStartPos,
                         pTableName + nDelimiterPos,
                         lcl_UnEscape( aTableNameBuffer ));

        // unquote quoted table name
        const sal_Unicode * pBuf = aTableNameBuffer.getStr();
        if( pBuf[ 0 ] == aQuote &&
            pBuf[ aTableNameBuffer.getLength() - 1 ] == aQuote )
        {
            ::rtl::OUString aName = aTableNameBuffer.makeStringAndClear();
            rOutTableName = aName.copy( 1, aName.getLength() - 2 );
        }
        else
            rOutTableName = aTableNameBuffer.makeStringAndClear();
    }

    for( sal_Int32 i = 0;
         nNextDelimiterPos < nEndPos;
         nDelimiterPos = nNextDelimiterPos, i++ )
    {
        nNextDelimiterPos = rXMLString.indexOf( aDot, nDelimiterPos + 1 );
        if( nNextDelimiterPos == -1 ||
            nNextDelimiterPos > nEndPos )
            nNextDelimiterPos = nEndPos + 1;

        if( i==0 )
            // only take first cell
            lcl_getSingleCellAddressFromXMLString(
                rXMLString, nDelimiterPos + 1, nNextDelimiterPos - 1, rOutCell );
    }

    return true;
}

bool lcl_getCellRangeAddressFromXMLString(
    const ::rtl::OUString& rXMLString,
    sal_Int32 nStartPos, sal_Int32 nEndPos,
=====================================================================
Found a 62 line (326 tokens) duplication in the following files: 
Starting at line 1683 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1735 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        pWwFib->lcbPlcfandTxt, IsSevenMinus(pWwFib->GetFIBVersion()) ? 20 : 30);

    // Fields Main Text
    pFldPLCF    = new WW8PLCFx_FLD(pTblSt, *pWwFib, MAN_MAINTEXT);
    // Fields Header / Footer
    pFldHdFtPLCF= new WW8PLCFx_FLD(pTblSt, *pWwFib, MAN_HDFT);
    // Fields Footnote
    pFldFtnPLCF = new WW8PLCFx_FLD(pTblSt, *pWwFib, MAN_FTN);
    // Fields Endnote
    pFldEdnPLCF = new WW8PLCFx_FLD(pTblSt, *pWwFib, MAN_EDN);
    // Fields Anmerkungen
    pFldAndPLCF = new WW8PLCFx_FLD(pTblSt, *pWwFib, MAN_AND);
    // Fields in Textboxes in Main Text
    pFldTxbxPLCF= new WW8PLCFx_FLD(pTblSt, *pWwFib, MAN_TXBX);
    // Fields in Textboxes in Header / Footer
    pFldTxbxHdFtPLCF = new WW8PLCFx_FLD(pTblSt,*pWwFib,MAN_TXBX_HDFT);

    // Note: 6 stands for "6 OR 7",  7 stands for "ONLY 7"
    switch( pWw8Fib->nVersion )
    {
        case 6:
        case 7:
            if( pWwFib->fcPlcfdoaMom && pWwFib->lcbPlcfdoaMom )
            {
                pMainFdoa = new WW8PLCFspecial( pTblSt, pWwFib->fcPlcfdoaMom,
                    pWwFib->lcbPlcfdoaMom, 6 );
            }
            if( pWwFib->fcPlcfdoaHdr && pWwFib->lcbPlcfdoaHdr )
            {
                pHdFtFdoa = new WW8PLCFspecial( pTblSt, pWwFib->fcPlcfdoaHdr,
                pWwFib->lcbPlcfdoaHdr, 6 );
            }
            break;
        case 8:
            if( pWwFib->fcPlcfspaMom && pWwFib->lcbPlcfspaMom )
            {
                pMainFdoa = new WW8PLCFspecial( pTblSt, pWwFib->fcPlcfspaMom,
                    pWwFib->lcbPlcfspaMom, 26 );
            }
            if( pWwFib->fcPlcfspaHdr && pWwFib->lcbPlcfspaHdr )
            {
                pHdFtFdoa = new WW8PLCFspecial( pTblSt, pWwFib->fcPlcfspaHdr,
                    pWwFib->lcbPlcfspaHdr, 26 );
            }
            // PLCF fuer TextBox-Break-Deskriptoren im Maintext
            if( pWwFib->fcPlcftxbxBkd && pWwFib->lcbPlcftxbxBkd )
            {
                pMainTxbxBkd = new WW8PLCFspecial( pTblSt,
                    pWwFib->fcPlcftxbxBkd, pWwFib->lcbPlcftxbxBkd, 0);
            }
            // PLCF fuer TextBox-Break-Deskriptoren im Header-/Footer-Bereich
            if( pWwFib->fcPlcfHdrtxbxBkd && pWwFib->lcbPlcfHdrtxbxBkd )
            {
                pHdFtTxbxBkd = new WW8PLCFspecial( pTblSt,
                    pWwFib->fcPlcfHdrtxbxBkd, pWwFib->lcbPlcfHdrtxbxBkd, 0);
            }
            // Sub table cp positions
            if (pWwFib->fcMagicTable && pWwFib->lcbMagicTable)
            {
                pMagicTables = new WW8PLCFspecial( pTblSt,
                    pWwFib->fcMagicTable, pWwFib->lcbMagicTable, 4);
            }
=====================================================================
Found a 66 line (326 tokens) duplication in the following files: 
Starting at line 3857 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 2141 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

	basegfx::B2DTuple aScale(aRectangle.GetWidth(), aRectangle.GetHeight());
	basegfx::B2DTuple aTranslate(aRectangle.Left(), aRectangle.Top());

	// position maybe relative to anchorpos, convert
	if( pModel->IsWriter() )
	{
		if(GetAnchorPos().X() || GetAnchorPos().Y())
		{
			aTranslate -= basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
		}
	}

	// force MapUnit to 100th mm
	SfxMapUnit eMapUnit = pModel->GetItemPool().GetMetric(0);
	if(eMapUnit != SFX_MAPUNIT_100TH_MM)
	{
		switch(eMapUnit)
		{
			case SFX_MAPUNIT_TWIP :
			{
				// postion
				aTranslate.setX(ImplTwipsToMM(aTranslate.getX()));
				aTranslate.setY(ImplTwipsToMM(aTranslate.getY()));

				// size
				aScale.setX(ImplTwipsToMM(aScale.getX()));
				aScale.setY(ImplTwipsToMM(aScale.getY()));

				break;
			}
			default:
			{
				DBG_ERROR("TRGetBaseGeometry: Missing unit translation to 100th mm!");
			}
		}
	}

	// build matrix
	rMatrix.identity();

    if(!basegfx::fTools::equal(aScale.getX(), 1.0) || !basegfx::fTools::equal(aScale.getY(), 1.0))
	{
		rMatrix.scale(aScale.getX(), aScale.getY());
	}

    if(!basegfx::fTools::equalZero(fShearX))
	{
		rMatrix.shearX(tan(fShearX));
	}

    if(!basegfx::fTools::equalZero(fRotate))
	{
        // #i78696#
        // fRotate is from the old GeoStat and thus mathematically wrong orientated. For 
        // the linear combination of matrices it needed to be fixed in the API, so it needs to
        // be mirrored here
		rMatrix.rotate(-fRotate);
	}

    if(!aTranslate.equalZero())
	{
		rMatrix.translate(aTranslate.getX(), aTranslate.getY());
	}

	return sal_False;
}
=====================================================================
Found a 22 line (326 tokens) duplication in the following files: 
Starting at line 814 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 848 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_ISO_8859_8,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x0080,0x0081,0x0082,0x0083,0x0084,0x0085,0x0086,0x0087,
                0x0088,0x0089,0x008A,0x008B,0x008C,0x008D,0x008E,0x008F,
                0x0090,0x0091,0x0092,0x0093,0x0094,0x0095,0x0096,0x0097,
                0x0098,0x0099,0x009A,0x009B,0x009C,0x009D,0x009E,0x009F,
                0x00A0,0xFFFF,0x00A2,0x00A3,0x00A4,0x00A5,0x00A6,0x00A7,
=====================================================================
Found a 69 line (326 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx

    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );
        
        OString symName( buf.makeStringAndClear() );
#if __FreeBSD_version < 602103  /* #i22253# */
        rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );
#else
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );
#endif

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
=====================================================================
Found a 98 line (325 tokens) duplication in the following files: 
Starting at line 8882 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 14601 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

        sal_Int64 intVal;
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            intVal = 11;

        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
            OString                expVal( kTestStr59 );

            aStrBuf.append( intVal, -5 );

            CPPUNIT_ASSERT_MESSAGE
            (   
                "Appends the WrongRadix to the string buffer arrOUS[0]",
                sal_True
            );
        
        }

        void append_002()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
            OString                expVal( kTestStr60 );

            aStrBuf.append( intVal, -5 );

            CPPUNIT_ASSERT_MESSAGE
            (   
                "Appends the WrongRadix to the string buffer arrOUS[1]",
                sal_True
            );
        
        }

        void append_003()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
            OString                expVal( kTestStr60 );

            aStrBuf.append( intVal, -5 );

            CPPUNIT_ASSERT_MESSAGE
            (   
                "Appends the WrongRadix to the string buffer arrOUS[2]",
                sal_True
            );
        
        }

        void append_004()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
            OString                expVal( kTestStr60 );

            aStrBuf.append( intVal, -5 );

            CPPUNIT_ASSERT_MESSAGE
            (   
                "Appends the WrongRadix to the string buffer arrOUS[3]",
                sal_True
            );
        
        }

        void append_005()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
            OString                expVal( kTestStr61 );

            aStrBuf.append( intVal, -5 );

            CPPUNIT_ASSERT_MESSAGE
            (   
                "Appends the WrongRadix to the string buffer arrOUS[4]",
                sal_True
            );
        
        }
#ifdef WITH_CORE
        void append_006()
        {
            ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
=====================================================================
Found a 12 line (325 tokens) duplication in the following files: 
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 679 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f00 - 2f0f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f10 - 2f1f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f20 - 2f2f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f30 - 2f3f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f40 - 2f4f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f50 - 2f5f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f60 - 2f6f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f70 - 2f7f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f80 - 2f8f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f90 - 2f9f
=====================================================================
Found a 37 line (324 tokens) duplication in the following files: 
Starting at line 4692 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4275 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartPunchedTapeVert[] =
{
	{ 0, 2230 },											// p
	{ 820, 3990 }, { 3410, 3980 }, { 5370, 4360 },			// ccp
	{ 7430, 4030 },	{ 10110, 3890 }, { 10690, 2270 },		// ccp
	{ 11440, 300 }, { 14200, 160 }, { 16150, 0 },			// ccp
	{ 18670, 170 }, {  20690, 390 }, { 21600, 2230 },		// ccp
	{ 21600, 19420 },										// p
	{ 20640, 17510 }, { 18320, 17490 }, { 16140, 17240 },	// ccp
	{ 14710, 17370 }, {	11310, 17510 }, { 10770, 19430 },	// ccp
	{ 10150, 21150 }, { 7380, 21290 }, { 5290, 21600 },		// ccp
	{ 3220, 21250 }, { 610, 21130 }, { 0, 19420	}			// ccp
};
static const sal_uInt16 mso_sptFlowChartPunchedTapeSegm[] =
{
	0x4000, 0x2004, 0x0001, 0x2004, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartPunchedTapeTextRect[] = 
{
	{ { 0, 4360 }, { 21600, 17240 } }
};
static const SvxMSDffVertPair mso_sptFlowChartPunchedTapeGluePoints[] =
{
	{ 10800, 2020 }, { 0, 10800 }, { 10800, 19320 }, { 21600, 10800 }
};
static const mso_CustomShape msoFlowChartPunchedTape =
{
	(SvxMSDffVertPair*)mso_sptFlowChartPunchedTapeVert, sizeof( mso_sptFlowChartPunchedTapeVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartPunchedTapeSegm, sizeof( mso_sptFlowChartPunchedTapeSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartPunchedTapeTextRect, sizeof( mso_sptFlowChartPunchedTapeTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartPunchedTapeGluePoints, sizeof( mso_sptFlowChartPunchedTapeGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 22 line (324 tokens) duplication in the following files: 
Starting at line 714 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 747 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 780 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 814 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_TIS_620,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x0080,0x0081,0x0082,0x0083,0x0084,0x0085,0x0086,0x0087,
                0x0088,0x0089,0x008A,0x008B,0x008C,0x008D,0x008E,0x008F,
                0x0090,0x0091,0x0092,0x0093,0x0094,0x0095,0x0096,0x0097,
                0x0098,0x0099,0x009A,0x009B,0x009C,0x009D,0x009E,0x009F,
                0x00A0,0x0E01,0x0E02,0x0E03,0x0E04,0x0E05,0x0E06,0x0E07, // !
=====================================================================
Found a 50 line (324 tokens) duplication in the following files: 
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/CacheSet.cxx
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/CacheSet.cxx

	Reference<XKeysSupplier> xKeySup(_xTable,UNO_QUERY);
	Reference<XIndexAccess> xKeys;
	if(xKeySup.is())
		xKeys = xKeySup->getKeys();

	Reference<XColumnsSupplier> xKeyColsSup;
	Reference<XNameAccess> xKeyColumns;
	if(xKeys.is() && xKeys->getCount())
	{
		Reference<XPropertySet> xProp;
		Reference<XColumnsSupplier> xColumnsSupplier;
		// search the one and only primary key
		for(sal_Int32 i=0;i< xKeys->getCount();++i)
		{
			::cppu::extractInterface(xProp,xKeys->getByIndex(i));
			sal_Int32 nKeyType = 0;
			xProp->getPropertyValue(PROPERTY_TYPE) >>= nKeyType;
			if(KeyType::PRIMARY == nKeyType)
			{
				xKeyColsSup.set(xProp,UNO_QUERY);
				break;
			}
		}
		if(xKeyColsSup.is())
			xKeyColumns = xKeyColsSup->getColumns();
	}
	// second the indexes
	Reference<XIndexesSupplier> xIndexSup(_xTable,UNO_QUERY);
	Reference<XIndexAccess> xIndexes;
	if(xIndexSup.is())
		xIndexes.set(xIndexSup->getIndexes(),UNO_QUERY);

	//	Reference<XColumnsSupplier>
	Reference<XPropertySet> xIndexColsSup;
	Reference<XNameAccess> xIndexColumns;
	::std::vector< Reference<XNameAccess> > aAllIndexColumns;
	if(xIndexes.is())
	{
		for(sal_Int32 j=0;j<xIndexes->getCount();++j)
		{
			::cppu::extractInterface(xIndexColsSup,xIndexes->getByIndex(j));
			if(	xIndexColsSup.is()
				&& comphelper::getBOOL(xIndexColsSup->getPropertyValue(PROPERTY_ISUNIQUE))
				&& !comphelper::getBOOL(xIndexColsSup->getPropertyValue(PROPERTY_ISPRIMARYKEYINDEX))
			  )
				aAllIndexColumns.push_back(Reference<XColumnsSupplier>(xIndexColsSup,UNO_QUERY)->getColumns());
		}
	}

	::rtl::OUString aColumnName;
=====================================================================
Found a 72 line (323 tokens) duplication in the following files: 
Starting at line 2319 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 2413 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        return WW8_CP_MAX;

    return pPLCF_PosArray[nIdx];
}

//-----------------------------------------
//              WW8PLCFpcd
//-----------------------------------------

WW8PLCFpcd::WW8PLCFpcd( SvStream* pSt, long nFilePos, long nPLCF, long nStruct )
    :nStru( nStruct )
{
    nIMax = ( nPLCF - 4 ) / ( 4 + nStruct );
    pPLCF_PosArray = new INT32[ ( nPLCF + 3 ) / 4 ];    // Pointer auf Pos-Array

    long nOldPos = pSt->Tell();

    pSt->Seek( nFilePos );
    pSt->Read( pPLCF_PosArray, nPLCF );
#ifdef OSL_BIGENDIAN
    for( long nI = 0; nI <= nIMax; nI++ )
      pPLCF_PosArray[nI] = SWAPLONG( pPLCF_PosArray[nI] );
#endif // OSL_BIGENDIAN

    // Pointer auf Inhalts-Array
    pPLCF_Contents = (BYTE*)&pPLCF_PosArray[nIMax + 1];

    pSt->Seek( nOldPos );
}

// Bei nStartPos < 0 wird das erste Element des PLCFs genommen
WW8PLCFpcd_Iter::WW8PLCFpcd_Iter( WW8PLCFpcd& rPLCFpcd, long nStartPos )
    :rPLCF( rPLCFpcd ), nIdx( 0 )
{
    if( nStartPos >= 0 )
        SeekPos( nStartPos );
}

bool WW8PLCFpcd_Iter::SeekPos(long nPos)
{
    long nP = nPos;

    if( nP < rPLCF.pPLCF_PosArray[0] )
    {
        nIdx = 0;
        return false;       // Nicht gefunden: nPos unterhalb kleinstem Eintrag
    }
    // Search from beginning?
    if( (1 > nIdx) || (nP < rPLCF.pPLCF_PosArray[ nIdx-1 ]) )
        nIdx = 1;

    long nI   = nIdx ? nIdx : 1;
    long nEnd = rPLCF.nIMax;

    for(int n = (1==nIdx ? 1 : 2); n; --n )
    {
        for( ; nI <=nEnd; ++nI)
        {                               // Suchen mit um 1 erhoehtem Index
            if( nP < rPLCF.pPLCF_PosArray[nI] )
            {                           // Position gefunden
                nIdx = nI - 1;          // nI - 1 ist der richtige Index
                return true;            // ... und fertig
            }
        }
        nI   = 1;
        nEnd = nIdx-1;
    }
    nIdx = rPLCF.nIMax;         // Nicht gefunden, groesser als alle Eintraege
    return false;
}

bool WW8PLCFpcd_Iter::Get(WW8_CP& rStart, WW8_CP& rEnd, void*& rpValue) const
=====================================================================
Found a 8 line (323 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x9f, 0x0000}, // 0300 - 0307
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0308 - 030f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0310 - 0317
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0318 - 031f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0320 - 0327
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0328 - 032f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0330 - 0337
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0338 - 033f
=====================================================================
Found a 41 line (322 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/certmngr.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/certmngr.cxx

			"No personal certificates found\n" ) ;

		Sequence < Reference< XCertificate > > xCertPath ;
		for( int i = 0; i < xPersonalCerts.getLength(); i ++ ) {
			//Print the certificate infomation.
			fprintf( stdout, "\nPersonal Certificate Info\n" ) ;
			fprintf( stdout, "\tCertificate Issuer[%s]\n", OUStringToOString( xPersonalCerts[i]->getIssuerName(), RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
			fprintf( stdout, "\tCertificate Serial Number[%s]\n", OUStringToOString( bigIntegerToNumericString( xPersonalCerts[i]->getSerialNumber() ), RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
			fprintf( stdout, "\tCertificate Subject[%s]\n", OUStringToOString( xPersonalCerts[i]->getSubjectName(), RTL_TEXTENCODING_ASCII_US ).getStr() ) ;

			//build the certificate path 
			xCertPath = pSecEnv->buildCertificatePath( xPersonalCerts[i] ) ;
			//Print the certificate path.
			fprintf( stdout, "\tCertificate Path\n" ) ;
			for( int j = 0; j < xCertPath.getLength(); j ++ ) {
				fprintf( stdout, "\t\tCertificate Authority Subject[%s]\n", OUStringToOString( xCertPath[j]->getSubjectName(), RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
			}

			//Get the certificate
			Sequence < sal_Int8 > serial = xPersonalCerts[i]->getSerialNumber() ;
			Reference< XCertificate > xcert = pSecEnv->getCertificate( xPersonalCerts[i]->getIssuerName(), xPersonalCerts[i]->getSerialNumber() ) ;
			if( !xcert.is() ) {
				fprintf( stdout, "The personal certificate is not in the certificate database\n" ) ;
			}

			//Get the certificate characters
			sal_Int32 chars = pSecEnv->getCertificateCharacters( xPersonalCerts[i] ) ;
			fprintf( stdout, "The certificate characters are %d\n", chars ) ;

			//Get the certificate status
			sal_Int32 validity = pSecEnv->verifyCertificate( xPersonalCerts[i] ) ;
			fprintf( stdout, "The certificate validities are %d\n", validity ) ;

		}
	} catch( Exception& e ) {
		fprintf( stderr , "Error Message: %s\n" , OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
		goto done ;
	}

done:
	if( n_hStoreHandle != NULL )
=====================================================================
Found a 21 line (322 tokens) duplication in the following files: 
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 681 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_ASCII_US,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0xFFFF,0x201A,0x0192,0x201E,0x2026,0x2020,0x2021, // !
                0x02C6,0x2030,0x0160,0x2039,0x0152,0xFFFF,0x017D,0xFFFF, // !
                0xFFFF,0x2018,0x2019,0x201C,0x201D,0x2022,0x2013,0x2014, // !
                0x02DC,0x2122,0x0161,0x203A,0x0153,0xFFFF,0x017E,0x0178, // !
=====================================================================
Found a 87 line (321 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 519 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

uno::Any SAL_CALL Content::execute(
        const ucb::Command& aCommand,
        sal_Int32 /*CommandId*/,
        const uno::Reference< ucb::XCommandEnvironment >& Environment )
    throw( uno::Exception,
           ucb::CommandAbortedException,
           uno::RuntimeException )
{
    uno::Any aRet;

    if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "getPropertyValues" ) ) )
	{
		//////////////////////////////////////////////////////////////////
		// getPropertyValues
		//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::Property > Properties;
		if ( !( aCommand.Argument >>= Properties ) )
		{
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

		aRet <<= getPropertyValues( Properties );
	}
    else if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "setPropertyValues" ) ) )
	{
		//////////////////////////////////////////////////////////////////
		// setPropertyValues
		//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::PropertyValue > aProperties;
		if ( !( aCommand.Argument >>= aProperties ) )
		{
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

		if ( !aProperties.getLength() )
		{
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "No properties!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet <<= setPropertyValues( aProperties, Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "getPropertySetInfo" ) ) )
	{
		//////////////////////////////////////////////////////////////////
		// getPropertySetInfo
		//////////////////////////////////////////////////////////////////

		// Note: Implemented by base class.
		aRet <<= getPropertySetInfo( Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "getCommandInfo" ) ) )
	{
		//////////////////////////////////////////////////////////////////
		// getCommandInfo
		//////////////////////////////////////////////////////////////////

		// Note: Implemented by base class.
		aRet <<= getCommandInfo( Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
=====================================================================
Found a 12 line (321 tokens) duplication in the following files: 
Starting at line 1328 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1372 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24f0 - 24ff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2500 - 250f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2510 - 251f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2520 - 252f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2530 - 253f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2540 - 254f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2550 - 255f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2560 - 256f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2570 - 257f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2580 - 258f
    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2590 - 259f
=====================================================================
Found a 37 line (321 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/tempnam.c
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/zortech/tempnam.c

const char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", _psp );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];
=====================================================================
Found a 26 line (321 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/NamedPropertyValuesContainer.cxx
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/namecontainer.cxx

		virtual ~NameContainer();

		// XNameContainer
		virtual void SAL_CALL insertByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement )
			throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException,
			::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
		virtual void SAL_CALL removeByName( const ::rtl::OUString& Name )
			throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException,
				::com::sun::star::uno::RuntimeException);

		// XNameReplace
		virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement )
			throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException,
				::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

		// XNameAccess
		virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
			throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException,
				::com::sun::star::uno::RuntimeException);
		virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  )
			throw(::com::sun::star::uno::RuntimeException);
		virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
			throw(::com::sun::star::uno::RuntimeException);

		// XElementAccess
		virtual sal_Bool SAL_CALL hasElements(  )
=====================================================================
Found a 72 line (321 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx

        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 75 line (320 tokens) duplication in the following files: 
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 400 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

    if ( isFolder() )
    {
        static cppu::OTypeCollection* pFolderTypes = 0;

        pCollection = pFolderTypes;
        if ( !pCollection )
        {
            osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );

            pCollection = pFolderTypes;
            if ( !pCollection )
            {
                static cppu::OTypeCollection aCollection(
                    CPPU_TYPE_REF( lang::XTypeProvider ),
                    CPPU_TYPE_REF( lang::XServiceInfo ),
                    CPPU_TYPE_REF( lang::XComponent ),
                    CPPU_TYPE_REF( ucb::XContent ),
                    CPPU_TYPE_REF( ucb::XCommandProcessor ),
                    CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                    CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                    CPPU_TYPE_REF( beans::XPropertyContainer ),
                    CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                    CPPU_TYPE_REF( container::XChild ),
                    CPPU_TYPE_REF( ucb::XContentCreator ) ); // !!
                pCollection = &aCollection;
                OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
                pFolderTypes = pCollection;
            }
        }
        else
            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
    }
    else
    {
        static cppu::OTypeCollection* pDocumentTypes = 0;

        pCollection = pDocumentTypes;
        if ( !pCollection )
        {
            osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );

            pCollection = pDocumentTypes;
            if ( !pCollection )
            {
                static cppu::OTypeCollection aCollection(
                    CPPU_TYPE_REF( lang::XTypeProvider ),
                    CPPU_TYPE_REF( lang::XServiceInfo ),
                    CPPU_TYPE_REF( lang::XComponent ),
                    CPPU_TYPE_REF( ucb::XContent ),
                    CPPU_TYPE_REF( ucb::XCommandProcessor ),
                    CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                    CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                    CPPU_TYPE_REF( beans::XPropertyContainer ),
                    CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                    CPPU_TYPE_REF( container::XChild ) );
                pCollection = &aCollection;
                OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
                pDocumentTypes = pCollection;
            }
        }
        else
            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
    }

    return (*pCollection).getTypes();
}

//=========================================================================
//
// XServiceInfo methods.
//
//=========================================================================

// virtual
rtl::OUString SAL_CALL Content::getImplementationName()
=====================================================================
Found a 54 line (320 tokens) duplication in the following files: 
Starting at line 3480 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx
Starting at line 966 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdocapt.cxx

void SdrCaptionObj::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& /*rPolyPolygon*/)
{
	// break up matrix
	basegfx::B2DTuple aScale;
	basegfx::B2DTuple aTranslate;
	double fRotate, fShearX;
	rMatrix.decompose(aScale, aTranslate, fRotate, fShearX);

	// #i75086# Old DrawingLayer (GeoStat and geometry) does not support holding negative scalings
	// in X and Y which equal a 180 degree rotation. Recognize it and react accordingly
	if(basegfx::fTools::less(aScale.getX(), 0.0) && basegfx::fTools::less(aScale.getY(), 0.0))
	{
		aScale.setX(fabs(aScale.getX()));
		aScale.setY(fabs(aScale.getY()));
		fRotate = fmod(fRotate + F_PI, F_2PI);
	}

	// force metric to pool metric
	SfxMapUnit eMapUnit = pModel->GetItemPool().GetMetric(0);
	if(eMapUnit != SFX_MAPUNIT_100TH_MM)
	{
		switch(eMapUnit)
		{
			case SFX_MAPUNIT_TWIP :
			{
				// position
				aTranslate.setX(ImplMMToTwips(aTranslate.getX()));
				aTranslate.setY(ImplMMToTwips(aTranslate.getY()));

				// size
				aScale.setX(ImplMMToTwips(aScale.getX()));
				aScale.setY(ImplMMToTwips(aScale.getY()));

				break;
			}
			default:
			{
				DBG_ERROR("TRSetBaseGeometry: Missing unit translation to PoolMetric!");
			}
		}
	}

	// if anchor is used, make position relative to it
	if( pModel->IsWriter() )
	{
		if(GetAnchorPos().X() || GetAnchorPos().Y())
		{
			aTranslate += basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
		}
	}

	// build BaseRect
	Point aPoint(FRound(aTranslate.getX()), FRound(aTranslate.getY()));
	Rectangle aBaseRect(aPoint, Size(FRound(aScale.getX()), FRound(aScale.getY())));
=====================================================================
Found a 56 line (320 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuhhconv.cxx
Starting at line 502 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/drwtxtsh.cxx

            {
                //open ChineseTranslationDialog
                Reference< XComponentContext > xContext(
                    ::cppu::defaultBootstrap_InitialComponentContext() ); //@todo get context from calc if that has one
                if(xContext.is())
                {
                    Reference< lang::XMultiComponentFactory > xMCF( xContext->getServiceManager() );
                    if(xMCF.is())
                    {
                        Reference< ui::dialogs::XExecutableDialog > xDialog(
                                xMCF->createInstanceWithContext(
                                    rtl::OUString::createFromAscii("com.sun.star.linguistic2.ChineseTranslationDialog")
                                    , xContext), UNO_QUERY);
                        Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY );
                        if( xInit.is() )
                        {
                            //  initialize dialog
                            Reference< awt::XWindow > xDialogParentWindow(0);
                            Sequence<Any> aSeq(1);
                            Any* pArray = aSeq.getArray();
                            PropertyValue aParam;
                            aParam.Name = rtl::OUString::createFromAscii("ParentWindow");
                            aParam.Value <<= makeAny(xDialogParentWindow);
                            pArray[0] <<= makeAny(aParam);
                            xInit->initialize( aSeq );

                            //execute dialog
                            sal_Int16 nDialogRet = xDialog->execute();
                            if( RET_OK == nDialogRet )
                            {
                                //get some parameters from the dialog
                                sal_Bool bToSimplified = sal_True;
                                sal_Bool bUseVariants = sal_True;
                                sal_Bool bCommonTerms = sal_True;
                                Reference< beans::XPropertySet >  xProp( xDialog, UNO_QUERY );
                                if( xProp.is() )
                                {
                                    try
                                    {
                                        xProp->getPropertyValue( C2U("IsDirectionToSimplified") ) >>= bToSimplified;
                                        xProp->getPropertyValue( C2U("IsUseCharacterVariants") ) >>= bUseVariants;
                                        xProp->getPropertyValue( C2U("IsTranslateCommonTerms") ) >>= bCommonTerms;
                                    }
                                    catch( Exception& )
                                    {
                                    }
                                }

                                //execute translation
                                sal_Int16 nSourceLang = bToSimplified ? LANGUAGE_CHINESE_TRADITIONAL : LANGUAGE_CHINESE_SIMPLIFIED;
                                sal_Int16 nTargetLang = bToSimplified ? LANGUAGE_CHINESE_SIMPLIFIED : LANGUAGE_CHINESE_TRADITIONAL;
                                sal_Int32 nOptions    = bUseVariants ? i18n::TextConversionOption::USE_CHARACTER_VARIANTS : 0;
                                if( !bCommonTerms )
                                    nOptions = nOptions | i18n::TextConversionOption::CHARACTER_BY_CHARACTER;

                                Font aTargetFont = pOLV->GetWindow()->GetDefaultFont( DEFAULTFONT_CJK_TEXT,
=====================================================================
Found a 61 line (320 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/nlist.c
Starting at line 6 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_nlist.c

extern int getopt(int, char *const *, const char *);
extern char *optarg;
extern int optind;
extern int Cplusplus;
Nlist *kwdefined;
char wd[128];

/* 
	ER: Tabelle extra gross gemacht, da es anscheinend ein Problem mit der
	der Verkettung gibt, irgendwann irgendwo wird mal ein nlist->next
	ueberschrieben, was in eineme SIGSEGV resultiert.
	Den GDB mit watchpoint hab ich aber nach 2 Tagen abgebrochen..
	so loeppt's jedenfalls erstmal..
 */
#define	NLSIZE 15000

static Nlist *nlist[NLSIZE];

struct kwtab
{
    char *kw;
    int val;
    int flag;
}   kwtab[] =

{
		{"if", KIF, ISKW},
		{"ifdef", KIFDEF, ISKW},
		{"ifndef", KIFNDEF, ISKW},
		{"elif", KELIF, ISKW},
		{"else", KELSE, ISKW},
		{"endif", KENDIF, ISKW},
		{"include", KINCLUDE, ISKW},
		{"include_next", KINCLUDENEXT, ISKW},
		{"import", KIMPORT, ISKW},
		{"define", KDEFINE, ISKW},
		{"undef", KUNDEF, ISKW},
		{"line", KLINE, ISKW},
		{"error", KERROR, ISKW},
		{"pragma", KPRAGMA, ISKW},
		{"ident", KIDENT, ISKW},
		{"eval", KEVAL, ISKW},
		{"defined", KDEFINED, ISDEFINED + ISUNCHANGE},
		{"machine", KMACHINE, ISDEFINED + ISUNCHANGE},
		{"__LINE__", KLINENO, ISMAC + ISUNCHANGE},
		{"__FILE__", KFILE, ISMAC + ISUNCHANGE},
		{"__DATE__", KDATE, ISMAC + ISUNCHANGE},
		{"__TIME__", KTIME, ISMAC + ISUNCHANGE},
		{"__STDC__", KSTDC, ISUNCHANGE},
		{NULL, 0, 0}
};

unsigned long namebit[077 + 1];

void
    setup_kwtab(void)
{
    struct kwtab *kp;
    Nlist *np;
    Token t;
    static Token deftoken[1] = {{NAME, 0, 0, 7, (uchar *) "defined", 0}};
=====================================================================
Found a 7 line (320 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffc8 - ffcf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd0 - ffd7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd8 - ffdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe0 - ffe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe8 - ffef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff0 - fff7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff8 - ffff
=====================================================================
Found a 49 line (320 tokens) duplication in the following files: 
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 825 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("double", (a >>= b) && b == 1);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testUnsignedLong() {
=====================================================================
Found a 79 line (319 tokens) duplication in the following files: 
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxdocumenthandler.cxx
Starting at line 552 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxdocumenthandler.cxx

                      break;                    
		}
	}
}

void SAL_CALL OReadToolBoxDocumentHandler::endElement(const OUString& aName)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	ToolBoxHashMap::const_iterator pToolBoxEntry = m_aToolBoxMap.find( aName ) ;
	if ( pToolBoxEntry != m_aToolBoxMap.end() )
	{
		switch ( pToolBoxEntry->second )
		{
			case TB_ELEMENT_TOOLBAR:
			{
				if ( !m_bToolBarStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'toolbar' found, but no start element 'toolbar'" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bToolBarStartFound = sal_False;
			}
			break;

			case TB_ELEMENT_TOOLBARITEM:
			{
				if ( !m_bToolBarItemStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'toolbar:toolbaritem' found, but no start element 'toolbar:toolbaritem'" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bToolBarItemStartFound = sal_False;
			}
			break;

			case TB_ELEMENT_TOOLBARBREAK:
			{
				if ( !m_bToolBarBreakStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'toolbar:toolbarbreak' found, but no start element 'toolbar:toolbarbreak'" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bToolBarBreakStartFound = sal_False;
			}
			break;

			case TB_ELEMENT_TOOLBARSPACE:
			{
				if ( !m_bToolBarSpaceStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'toolbar:toolbarspace' found, but no start element 'toolbar:toolbarspace'" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bToolBarSpaceStartFound = sal_False;
			}
			break;

			case TB_ELEMENT_TOOLBARSEPARATOR:
			{
				if ( !m_bToolBarSeparatorStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'toolbar:toolbarseparator' found, but no start element 'toolbar:toolbarseparator'" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bToolBarSeparatorStartFound = sal_False;
			}
			break;
=====================================================================
Found a 49 line (319 tokens) duplication in the following files: 
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/qssl/tempnam.c
Starting at line 34 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsd43/tempnam.c

extern int access();

static char *cpdir();
static char  seed[4]="AAA";

/* BSD stdio.h doesn't define P_tmpdir, so let's do it here */
#ifndef P_tmpdir
static char *P_tmpdir = "/tmp";
#endif

char *
tempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+16))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (access( cpdir(p, tmpdir), 3) != 0) )
     if( (dl == 0) || (access( cpdir(p, dir), 3) != 0) )
	if( access( cpdir(p, P_tmpdir),   3) != 0 )
	   if( access( cpdir(p, "/tmp"),  3) != 0 )
	      return(NULL);

   (void) strcat(p, "/");
   if(prefix)
   {
      *(p+strlen(p)+5) = '\0';
      (void)strncat(p, prefix, 5);
   }

   (void)strcat(p, seed);
   (void)strcat(p, "XXXXXX");

   q = seed;
   while(*q == 'Z') *q++ = 'A';
   ++*q;

   if(*mktemp(p) == '\0') return(NULL);
=====================================================================
Found a 68 line (319 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx

                        pFPR, nFPR );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, 
                                  *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
	void * pReturn, void * pArgs[], uno_Any ** ppException )
{
	// is my surrogate
        bridges::cpp_uno::shared::UnoInterfaceProxy * pThis 
            = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy *> (pUnoI);
=====================================================================
Found a 75 line (318 tokens) duplication in the following files: 
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

    if ( bFolder )
    {
        static cppu::OTypeCollection* pFolderTypes = 0;

        pCollection = pFolderTypes;
        if ( !pCollection )
        {
            osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );

            pCollection = pFolderTypes;
            if ( !pCollection )
            {
                static cppu::OTypeCollection aCollection(
                    CPPU_TYPE_REF( lang::XTypeProvider ),
                        CPPU_TYPE_REF( lang::XServiceInfo ),
                        CPPU_TYPE_REF( lang::XComponent ),
                        CPPU_TYPE_REF( ucb::XContent ),
                        CPPU_TYPE_REF( ucb::XCommandProcessor ),
                        CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                        CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                        CPPU_TYPE_REF( beans::XPropertyContainer ),
                        CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                        CPPU_TYPE_REF( container::XChild ),
                        CPPU_TYPE_REF( ucb::XContentCreator ) ); // !!
                pCollection = &aCollection;
                OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
                pFolderTypes = pCollection;
            }
        }
        else
            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
    }
    else
    {
        static cppu::OTypeCollection* pDocumentTypes = 0;

        pCollection = pDocumentTypes;
        if ( !pCollection )
        {
            osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );

            pCollection = pDocumentTypes;
            if ( !pCollection )
            {
                static cppu::OTypeCollection aCollection(
                        CPPU_TYPE_REF( lang::XTypeProvider ),
                        CPPU_TYPE_REF( lang::XServiceInfo ),
                        CPPU_TYPE_REF( lang::XComponent ),
                        CPPU_TYPE_REF( ucb::XContent ),
                        CPPU_TYPE_REF( ucb::XCommandProcessor ),
                        CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                        CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                        CPPU_TYPE_REF( beans::XPropertyContainer ),
                        CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                        CPPU_TYPE_REF( container::XChild ) );
                pCollection = &aCollection;
                OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
                pDocumentTypes = pCollection;
            }
        }
        else
            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
    }

    return (*pCollection).getTypes();
}

//=========================================================================
//
// XServiceInfo methods.
//
//=========================================================================

// virtual
rtl::OUString SAL_CALL Content::getImplementationName()
=====================================================================
Found a 60 line (318 tokens) duplication in the following files: 
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx
Starting at line 1264 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx

        DoUndo( FALSE );
    }

    // die Bookmarks loeschen und die Cursor der CrsrShell verschieben
    _DelBookmarks( pStt->nNode, pEnd->nNode, 0,
                    &pStt->nContent, &pEnd->nContent );
    ::PaMCorrAbs( aOriginal, *pEnd );

    // sorge dafuer, das der Bereich auf Node-Grenzen liegt
    SwNodeRange aRg( pStt->nNode, pEnd->nNode );
    if( pStt->nContent.GetIndex() )
        SplitNode( *pStt, false );

    BOOL bEndCntnt = 0 != pEnd->nContent.GetIndex();
    // nicht splitten am Ende der Zeile (aber am Ende vom Doc!!)
    if( bEndCntnt )
    {
        if( pEnd->nNode.GetNode().GetCntntNode()->Len() != pEnd->nContent.GetIndex()
            || pEnd->nNode.GetIndex() >= GetNodes().GetEndOfContent().GetIndex()-1 )
        {
            SplitNode( *pEnd, false );
            ((SwNodeIndex&)pEnd->nNode)--;
            ((SwIndex&)pEnd->nContent).Assign(
                                pEnd->nNode.GetNode().GetCntntNode(), 0 );
            // ein Node und am Ende ??
            if( pStt->nNode.GetIndex() >= pEnd->nNode.GetIndex() )
                aRg.aStart--;
        }
        else
            aRg.aEnd++;
    }


    if( aRg.aEnd.GetIndex() == aRg.aStart.GetIndex() )
    {
        ASSERT( FALSE, "Kein Bereich" );
        aRg.aEnd++;
    }

    // Wir gehen jetzt immer ueber die Upper, um die Tabelle einzufuegen:
    SwNode2Layout aNode2Layout( aRg.aStart.GetNode() );

    DoUndo( 0 != pUndo );

    // dann erstelle die Box/Line/Table-Struktur
    SwTableBoxFmt* pBoxFmt = MakeTableBoxFmt();
    SwTableLineFmt* pLineFmt = MakeTableLineFmt();
    SwTableFmt* pTableFmt = MakeTblFrmFmt( GetUniqueTblName(), GetDfltFrmFmt() );

    // alle Zeilen haben die Fill-Order von links nach rechts !
    pLineFmt->SetAttr( SwFmtFillOrder( ATT_LEFT_TO_RIGHT ));
    // die Tabelle bekommt USHRT_MAX als default SSize
    pTableFmt->SetAttr( SwFmtFrmSize( ATT_VAR_SIZE, USHRT_MAX ));
//    if( !(rInsTblOpts.mnInsMode & tabopts::SPLIT_LAYOUT) )
//        pTableFmt->SetAttr( SwFmtLayoutSplit( FALSE ));

    /* #106283# If the first node in the selection is a context node and if it
       has an item FRAMEDIR set (no default) propagate the item to the
       replacing table. */
    if (pSttCntntNd)
=====================================================================
Found a 7 line (317 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2480 - 2487
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2488 - 248f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2490 - 2497
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2498 - 249f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24a0 - 24a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24a8 - 24af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x68, 0x24D0}, {0x68, 0x24D1}, // 24b0 - 24b7
=====================================================================
Found a 71 line (317 tokens) duplication in the following files: 
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx
Starting at line 267 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

		throw RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("illegal vtable index!") ),
								(XInterface *)pThis );
	}

	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );

	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
			// standard XInterface vtable calls
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
            {
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );

                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[2] ),
=====================================================================
Found a 43 line (316 tokens) duplication in the following files: 
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

			aRet <<= _xLBT->getValues( aBool, aChar, nByte, nShort, nUShort, nLong, nULong,
									   nHyper, nUHyper, fFloat, fDouble, eEnum, aString, xInterface,
									   aAny, aSeq, aData );
			
			rOutParamIndex.realloc( 17 );
			rOutParamIndex[0] = 0;
			rOutParamIndex[1] = 1;
			rOutParamIndex[2] = 2;
			rOutParamIndex[3] = 3;
			rOutParamIndex[4] = 4;
			rOutParamIndex[5] = 5;
			rOutParamIndex[6] = 6;
			rOutParamIndex[7] = 7;
			rOutParamIndex[8] = 8;
			rOutParamIndex[9] = 9;
			rOutParamIndex[10] = 10;
			rOutParamIndex[11] = 11;
			rOutParamIndex[12] = 12;
			rOutParamIndex[13] = 13;
			rOutParamIndex[14] = 14;
			rOutParamIndex[15] = 15;
			rOutParamIndex[16] = 16;
			
			rOutParam.realloc( 17 );
			rOutParam[0].setValue( &aBool, ::getCppuBooleanType() );
			rOutParam[1].setValue( &aChar, ::getCppuCharType() );
			rOutParam[2] <<= nByte;
			rOutParam[3] <<= nShort;
			rOutParam[4] <<= nUShort;
			rOutParam[5] <<= nLong;
			rOutParam[6] <<= nULong;
			rOutParam[7] <<= nHyper;
			rOutParam[8] <<= nUHyper;
			rOutParam[9] <<= fFloat;
			rOutParam[10] <<= fDouble;
			rOutParam[11] <<= eEnum;
			rOutParam[12] <<= aString;
			rOutParam[13] <<= xInterface;
			rOutParam[14] <<= aAny;
			rOutParam[15] <<= aSeq;
			rOutParam[16] <<= aData;
		}
		else if (rFunctionName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("raiseException") ))
=====================================================================
Found a 75 line (316 tokens) duplication in the following files: 
Starting at line 2005 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 680 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saPeerSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_FTP );
			::osl::StreamSocket ssConnection;
			asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);
			/// launch server socket 
			sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket bind '127.0.0.1' address failed.", sal_True == bOK1 );
			sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket listen failed.",  sal_True == bOK2 );
			
			asAcceptorSocket.enableNonBlockingMode( sal_True );
			asAcceptorSocket.acceptConnection(ssConnection); /// waiting for incoming connection...

			/// launch client socket 
			csConnectorSocket.connect( saTargetSocketAddr, pTimeout );   /// connecting to server...

			/// get peer information
			csConnectorSocket.getPeerAddr( saPeerSocketAddr );/// connected.
			sal_Int32 peerPort = csConnectorSocket.getPeerPort( );
			::rtl::OUString peerHost = csConnectorSocket.getPeerHost( );
				
			CPPUNIT_ASSERT_MESSAGE( "test for getPeer function: setup a connection and then get the peer address, port and host from client side.", 
									( sal_True == compareSocketAddr( saPeerSocketAddr, saLocalSocketAddr ) )&&
									( sal_True == compareUString( peerHost, saLocalSocketAddr.getHostname( 0 ) ) ) && 
									( peerPort == saLocalSocketAddr.getPort( ) ));
		}
	
		
		CPPUNIT_TEST_SUITE( getPeer );
		CPPUNIT_TEST( getPeer_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class getPeer
	

	/** testing the methods:
		inline sal_Bool SAL_CALL bind(const SocketAddr& LocalInterface);
	*/
	

	class bind : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
		void bind_001()
		{
			::osl::Socket sSocket(sHandle);
			//bind must use local IP address ---mindyliu
			::osl::SocketAddr saBindSocketAddr( getLocalIP(), IP_PORT_MYPORT5 );
			
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);			
			sal_Bool bOK1 = sSocket.bind( saBindSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "Socket bind fail.", sal_True == bOK1 );
			
			sal_Bool bOK2 = compareUString( sSocket.getLocalHost( ), saBindSocketAddr.getHostname( ) ) ;
						
			sSocket.close();
			CPPUNIT_ASSERT_MESSAGE( "test for bind function: bind a valid address.", sal_True == bOK2 );
		}
	
		void bind_002()
		{
			::osl::Socket sSocket(sHandle);
			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("123.45.67.89"), IP_PORT_NETBIOS );
=====================================================================
Found a 16 line (316 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/nativenumber/data/numberchar.h
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/data/numberchar.h

static const sal_Unicode NumberChar[][10] = {
//	0	1	2	3	4	5	6	7	8	9
    { 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039 }, // Half Width (Ascii)
    { 0xFF10, 0xFF11, 0xFF12, 0xFF13, 0xFF14, 0xFF15, 0xFF16, 0xFF17, 0xFF18, 0xFF19 }, // Full Width
    { 0x3007, 0x4E00, 0x4E8c, 0x4E09, 0x56DB, 0x4E94, 0x516D, 0x4E03, 0x516B, 0x4E5D }, // Chinese Lower
    { 0x96F6, 0x58F9, 0x8D30, 0x53C1, 0x8086, 0x4F0D, 0x9646, 0x67D2, 0x634C, 0x7396 }, // S. Chinese Upper
    { 0x96F6, 0x58F9, 0x8CB3, 0x53C3, 0x8086, 0x4F0D, 0x9678, 0x67D2, 0x634C, 0x7396 }, // T. Chinese Upper
    { 0x3007, 0x4E00, 0x4E8C, 0x4E09, 0x56DB, 0x4E94, 0x516D, 0x4E03, 0x516B, 0x4E5D }, // Japanese Modern
    { 0x96F6, 0x58F1, 0x5F10, 0x53C2, 0x56DB, 0x4F0D, 0x516D, 0x4E03, 0x516B, 0x4E5D }, // Japanese Trad.
    { 0x3007, 0x4E00, 0x4E8C, 0x4E09, 0x56DB, 0x4E94, 0x516D, 0x4E03, 0x516B, 0x4E5D }, // Korean Lower
    { 0xF9B2, 0x58F9, 0x8CB3, 0x53C3, 0x56DB, 0x4E94, 0x516D, 0x4E03, 0x516B, 0x4E5D }, // Korean Upper
    { 0xC601, 0xC77C, 0xC774, 0xC0BC, 0xC0AC, 0xC624, 0xC721, 0xCE60, 0xD314, 0xAD6C }, // Korean Hangul
    { 0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, 0x0668, 0x0669 }, // Arabic Indic
    { 0x06F0, 0x06F1, 0x06F2, 0x06F3, 0x06F4, 0x06F5, 0x06F6, 0x06F7, 0x06F8, 0x06F9 }, // Est. Arabic Indic
    { 0x0966, 0x0967, 0x0968, 0x0969, 0x096A, 0x096B, 0x096C, 0x096D, 0x096E, 0x096F }, // Indic
    { 0x0E50, 0x0E51, 0x0E52, 0x0E53, 0x0E54, 0x0E55, 0x0E56, 0x0E57, 0x0E58, 0x0E59 }  // Thai
=====================================================================
Found a 62 line (316 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

static typelib_TypeClass cpp2uno_call(
	bridges::cpp_uno::shared::CppInterfaceProxy * pThis,
	const typelib_TypeDescription * pMemberTypeDescr,
	typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void ** pCallStack,
	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	// pCallStack: ret, [return ptr], this, params
	char * pCppStack = (char *)(pCallStack +1);

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	if (pReturnTypeRef)
		TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	
	void * pUnoReturn = 0;
	void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pUnoReturn = pRegisterReturn; // direct way for simple types
		}
		else // complex return via ptr (pCppReturn)
		{
			pCppReturn = *(void **)pCppStack;
			pCppStack += sizeof(void *);
			
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
                              pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
=====================================================================
Found a 71 line (315 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/encrypter.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/encrypter.cxx

		xManager = serviceManager( xContext , OUString::createFromAscii( "local" ), OUString::createFromAscii( argv[5] ) ) ;

		//Create encryption template
		Reference< XInterface > tplElement =
			xManager->createInstanceWithContext( OUString::createFromAscii( "com.sun.star.xml.security.bridge.xmlsec.XMLElementWrapper_XmlSecImpl" ) , xContext ) ;
		OSL_ENSURE( tplElement.is() ,
			"Encryptor - "
			"Cannot get service instance of \"xsec.XMLElementWrapper\"" ) ;

		Reference< XXMLElementWrapper > xTplElement( tplElement , UNO_QUERY ) ;
		OSL_ENSURE( xTplElement.is() ,
			"Encryptor - "
			"Cannot get interface of \"XXMLElementWrapper\" from service \"xsec.XMLElementWrapper\"" ) ;

		Reference< XUnoTunnel > xTplEleTunnel( xTplElement , UNO_QUERY ) ;
		OSL_ENSURE( xTplEleTunnel.is() ,
			"Encryptor - "
			"Cannot get interface of \"XUnoTunnel\" from service \"xsec.XMLElementWrapper\"" ) ;

		XMLElementWrapper_XmlSecImpl* pTplElement = ( XMLElementWrapper_XmlSecImpl* )xTplEleTunnel->getSomething( XMLElementWrapper_XmlSecImpl::getUnoTunnelImplementationId() ) ;
		OSL_ENSURE( pTplElement != NULL ,
			"Encryptor - "
			"Cannot get implementation of \"xsec.XMLElementWrapper\"" ) ;

		pTplElement->setNativeElement( tplNode ) ;

		//Create encryption target element
		Reference< XInterface > tarElement =
			xManager->createInstanceWithContext( OUString::createFromAscii( "com.sun.star.xml.security.bridge.xmlsec.XMLElementWrapper_XmlSecImpl" ) , xContext ) ;
		OSL_ENSURE( tarElement.is() ,
			"Encryptor - "
			"Cannot get service instance of \"xsec.XMLElementWrapper\"" ) ;

		Reference< XXMLElementWrapper > xTarElement( tarElement , UNO_QUERY ) ;
		OSL_ENSURE( xTarElement.is() ,
			"Encryptor - "
			"Cannot get interface of \"XXMLElementWrapper\" from service \"xsec.XMLElementWrapper\"" ) ;

		Reference< XUnoTunnel > xTarEleTunnel( xTarElement , UNO_QUERY ) ;
		OSL_ENSURE( xTarEleTunnel.is() ,
			"Encryptor - "
			"Cannot get interface of \"XUnoTunnel\" from service \"xsec.XMLElementWrapper\"" ) ;

		XMLElementWrapper_XmlSecImpl* pTarElement = ( XMLElementWrapper_XmlSecImpl* )xTarEleTunnel->getSomething( XMLElementWrapper_XmlSecImpl::getUnoTunnelImplementationId() ) ;
		OSL_ENSURE( pTarElement != NULL ,
			"Encryptor - "
			"Cannot get implementation of \"xsec.XMLElementWrapper\"" ) ;

		pTarElement->setNativeElement( tarNode ) ;


		//Build XML Encryption template
		Reference< XInterface > enctpl =
			xManager->createInstanceWithContext( OUString::createFromAscii("com.sun.star.xml.crypto.XMLEncryptionTemplate"), xContext ) ;
		OSL_ENSURE( enctpl.is() ,
			"Encryptor - "
			"Cannot get service instance of \"xsec.XMLEncryptionTemplate\"" ) ;

		Reference< XXMLEncryptionTemplate > xTemplate( enctpl , UNO_QUERY ) ;
		OSL_ENSURE( xTemplate.is() ,
			"Encryptor - "
			"Cannot get interface of \"XXMLEncryptionTemplate\" from service \"xsec.XMLEncryptionTemplate\"" ) ;

		//Import the encryption template
		xTemplate->setTemplate( xTplElement ) ;
		xTemplate->setTarget( xTarElement ) ;

		//Create security environment
		//Build Security Environment
		Reference< XInterface > xsecenv =
			xManager->createInstanceWithContext( OUString::createFromAscii("com.sun.star.xml.security.bridge.xmlsec.SecurityEnvironment_MSCryptImpl"), xContext ) ;
=====================================================================
Found a 22 line (315 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crcomp.cxx
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/criface.cxx

		: IdlMemberImpl( pReflection, rName, pTypeDescr, pDeclTypeDescr )
		{}
	
	// XInterface
	virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException);
	virtual void SAL_CALL acquire() throw();
	virtual void SAL_CALL release() throw();
	
	// XTypeProvider
	virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException);
	virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException);
	
	// XIdlMember
    virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException);
    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
	// XIdlField
    virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException);
    virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException);
    virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);    
    virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException);
	// XIdlField2: getType, getAccessMode and get are equal to XIdlField
    virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 8 line (315 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x6a, 0x006B}, {0x6a, 0x00E5}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2128 - 212f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2130 - 2137
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2138 - 213f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2140 - 2147
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2148 - 214f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2150 - 2157
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2158 - 215f
    {0x68, 0x2170}, {0x68, 0x2171}, {0x68, 0x2172}, {0x68, 0x2173}, {0x68, 0x2174}, {0x68, 0x2175}, {0x68, 0x2176}, {0x68, 0x2177}, // 2160 - 2167
=====================================================================
Found a 57 line (315 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< rtl::OUString >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
=====================================================================
Found a 19 line (314 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crcomp.cxx
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crenum.cxx

	virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException);
	virtual void SAL_CALL acquire() throw();
	virtual void SAL_CALL release() throw();
	
	// XTypeProvider
	virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException);
	virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException);
	
	// XIdlMember
    virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException);
    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
	// XIdlField
    virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException);
    virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException);
    virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException);
	// XIdlField2: getType, getAccessMode and get are equal to XIdlField
    virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException);
};
=====================================================================
Found a 92 line (314 tokens) duplication in the following files: 
Starting at line 570 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/socket.c
Starting at line 540 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/socket.cxx

	memcpy( &(pAddr->m_sockaddr), pSystemSockAddr, sizeof( sockaddr ) );
	return pAddr;
}

static void __osl_destroySocketAddr( oslSocketAddr addr )
{
#if OSL_DEBUG_LEVEL > 1
	g_nSocketAddr --;
#endif
	rtl_freeMemory( addr );
}
/*****************************************************************************/
/* osl_createEmptySocketAddr */
/*****************************************************************************/
oslSocketAddr SAL_CALL osl_createEmptySocketAddr(oslAddrFamily Family)
{
	oslSocketAddr pAddr = 0;

	/* is it an internet-Addr? */
	if (Family == osl_Socket_FamilyInet)
	{
		pAddr = __osl_createSocketAddrWithFamily(Family, 0 , htonl(INADDR_ANY) );
	}
	else
	{
		pAddr = __osl_createSocketAddrWithFamily( Family , 0 , 0 );
	}

	return pAddr;
}

/*****************************************************************************/
/* osl_copySocketAddr */
/*****************************************************************************/
// @deprecated, to be removed
oslSocketAddr SAL_CALL osl_copySocketAddr(oslSocketAddr Addr)
{
	oslSocketAddr pCopy = 0;
	if (Addr)
	{
		pCopy = __osl_createSocketAddr();

		if (pCopy)
			memcpy(&(pCopy->m_sockaddr),&(Addr->m_sockaddr), sizeof(struct sockaddr));
	}
	return pCopy;
}

/*****************************************************************************/
/* osl_isEqualSocketAddr */
/*****************************************************************************/
sal_Bool SAL_CALL osl_isEqualSocketAddr(oslSocketAddr Addr1, oslSocketAddr Addr2)
{
	struct sockaddr* pAddr1= &(Addr1->m_sockaddr);
	struct sockaddr* pAddr2= &(Addr2->m_sockaddr);

	OSL_ASSERT(pAddr1);
	OSL_ASSERT(pAddr2);

	if (pAddr1->sa_family == pAddr2->sa_family)
	{
		switch (pAddr1->sa_family)
		{
			case AF_INET:
			{
				struct sockaddr_in* pInetAddr1= (struct sockaddr_in*)pAddr1;
				struct sockaddr_in* pInetAddr2= (struct sockaddr_in*)pAddr2;

				if ((pInetAddr1->sin_family == pInetAddr2->sin_family) &&
					(pInetAddr1->sin_addr.s_addr == pInetAddr2->sin_addr.s_addr) &&
					(pInetAddr1->sin_port == pInetAddr2->sin_port))
					return (sal_True);
			}

			default:
			{
				return (memcmp(pAddr1, Addr2, sizeof(struct sockaddr)) == 0);
			}
		}
	}

	return (sal_False);
}

/*****************************************************************************/
/* osl_createInetBroadcastAddr */
/*****************************************************************************/
oslSocketAddr SAL_CALL osl_createInetBroadcastAddr (
	rtl_uString *strDottedAddr,
	sal_Int32    Port)
{
	sal_uInt32          nAddr = OSL_INADDR_NONE;
=====================================================================
Found a 38 line (312 tokens) duplication in the following files: 
Starting at line 111 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salinst.h
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salinst.h

    virtual ~WinSalInstance();

    virtual SalFrame*      	CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
    virtual SalFrame*      	CreateFrame( SalFrame* pParent, ULONG nStyle );
    virtual void			DestroyFrame( SalFrame* pFrame );
    virtual SalObject*		CreateObject( SalFrame* pParent, SystemWindowData* pWindowData );
    virtual void			DestroyObject( SalObject* pObject );
    virtual SalVirtualDevice*	CreateVirtualDevice( SalGraphics* pGraphics,
                                                     long nDX, long nDY,
                                                     USHORT nBitCount, const SystemGraphicsData *pData );
    virtual void			DestroyVirtualDevice( SalVirtualDevice* pDevice );

    virtual SalInfoPrinter*	CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
                                               ImplJobSetup* pSetupData );
    virtual void			DestroyInfoPrinter( SalInfoPrinter* pPrinter );
    virtual SalPrinter*		CreatePrinter( SalInfoPrinter* pInfoPrinter );
    virtual void			DestroyPrinter( SalPrinter* pPrinter );
    virtual void			GetPrinterQueueInfo( ImplPrnQueueList* pList );
    virtual void			GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
    virtual void			DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
    virtual String             GetDefaultPrinter();
    virtual SalSound*			CreateSalSound();
    virtual SalTimer*			CreateSalTimer();
    virtual SalOpenGL*			CreateSalOpenGL( SalGraphics* pGraphics );
    virtual SalI18NImeStatus*	CreateI18NImeStatus();
    virtual SalSystem*			CreateSalSystem();
    virtual SalBitmap*			CreateSalBitmap();
    virtual vos::IMutex*		GetYieldMutex();
    virtual ULONG				ReleaseYieldMutex();
    virtual void				AcquireYieldMutex( ULONG nCount );
    virtual void				Yield( bool bWait, bool bHandleAllCurrentEvents );
    virtual bool				AnyInput( USHORT nType );
    virtual SalMenu*				CreateMenu( BOOL bMenuBar );
    virtual void				DestroyMenu( SalMenu* );
    virtual SalMenuItem*			CreateMenuItem( const SalItemParams* pItemData );
    virtual void				DestroyMenuItem( SalMenuItem* );
    virtual SalSession*                         CreateSalSession();
    virtual void*				GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
=====================================================================
Found a 31 line (312 tokens) duplication in the following files: 
Starting at line 3572 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3205 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptIrregularSeal2Vert[] =
{
	{ 11464, 4340 }, { 9722, 1887 }, { 8548, 6383 }, { 4503, 3626 },
	{ 5373, 7816 }, { 1174, 8270 }, { 3934, 11592 }, { 0, 12875 },
	{ 3329, 15372 }, { 1283, 17824 }, { 4804, 18239 }, { 4918, 21600 },
	{ 7525, 18125 }, { 8698, 19712 }, { 9871, 17371 }, { 11614, 18844 },
	{ 12178, 15937 }, { 14943, 17371 }, { 14640, 14348 }, { 18878, 15632 },
	{ 16382, 12311 }, { 18270, 11292 }, { 16986, 9404 }, { 21600, 6646 },
	{ 16382, 6533 }, { 18005, 3172 }, { 14524, 5778 }, { 14789, 0 },
	{ 11464, 4340 }
};
static const SvxMSDffTextRectangles mso_sptIrregularSeal2TextRect[] =
{
	{ { 5400, 6570 }, { 14160, 15290 } }
};
static const SvxMSDffVertPair mso_sptIrregularSeal2GluePoints[] =
{
	{ 9722, 1887 }, { 0, 12875 }, { 11614, 18844 }, { 21600, 6646 }
};
static const mso_CustomShape msoIrregularSeal2 =
{
	(SvxMSDffVertPair*)mso_sptIrregularSeal2Vert, sizeof( mso_sptIrregularSeal2Vert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0, 
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptIrregularSeal2TextRect, sizeof( mso_sptIrregularSeal2TextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptIrregularSeal2GluePoints, sizeof( mso_sptIrregularSeal2GluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 18 line (312 tokens) duplication in the following files: 
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crenum.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/criface.cxx

	virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException);
	virtual void SAL_CALL acquire() throw();
	virtual void SAL_CALL release() throw();
	
	// XTypeProvider
	virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException);
	virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException);
	
	// XIdlMember
    virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException);
    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
	// XIdlField
    virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException);
    virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException);
    virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);    
    virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException);
	// XIdlField2: getType, getAccessMode and get are equal to XIdlField
    virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 58 line (312 tokens) duplication in the following files: 
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsdocumenthandler.cxx
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsdocumenthandler.cxx

                                              break; // nothing to do
						}
					}
				} // for

				OUString aRequiredAttributeName;
				if ( aLanguage.getLength() == 0 )
					aRequiredAttributeName = OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_TYPE ));
				else if ( aEventName.getLength() == 0 )
					aRequiredAttributeName = OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_NAME ));
					
				// check for missing attribute values
				if ( aRequiredAttributeName.getLength() > 0 )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Required attribute "));
					aErrorMessage += aRequiredAttributeName;
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( " must have a value!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				Any a;

				// set properties
				a <<= aLanguage;
				aEventProperties[0].Value <<= a;
				aEventProperties[0].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( PROP_EVENT_TYPE ));

				a <<= aMacroName;
				aEventProperties[1].Value <<= a;
				aEventProperties[1].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( PROP_MACRO_NAME ));

				if ( aLibrary.getLength() > 0 )
				{
					++nPropCount;
					aEventProperties.realloc( nPropCount );
					a <<= aLibrary;
					aEventProperties[nPropCount-1].Value <<= a;
					aEventProperties[nPropCount-1].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( PROP_LIBRARY ));
				}

				if ( aURL.getLength() > 0 )
				{				
					++nPropCount;
					aEventProperties.realloc( nPropCount );
					a <<= aURL;
					aEventProperties[nPropCount-1].Value <<= a;
					aEventProperties[nPropCount-1].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( PROP_SCRIPT ));
				}

				// set event name
				m_aEventItems.aEventNames[ nIndex ] = aEventName;

				m_aEventItems.aEventsProperties.realloc( nIndex + 1 );
				a <<= aEventProperties;
				m_aEventItems.aEventsProperties[ nIndex ] = a;
			}
			break;
=====================================================================
Found a 90 line (311 tokens) duplication in the following files: 
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/scaddins/source/analysis/analysishelper.cxx
Starting at line 655 of /local/ooo-build/ooo-build/src/oog680-m3/scaddins/source/datefunc/datefunc.cxx

            return aDaysInMonth[nMonth-1];
    }
}

/**
 * Convert a date to a count of days starting from 01/01/0001
 *
 * The internal representation of a Date used in this Addin
 * is the number of days between 01/01/0001 and the date
 * this function converts a Day , Month, Year representation
 * to this internal Date value.
 */

sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear )
{
    sal_Int32 nDays = ((sal_Int32)nYear-1) * 365;
    nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400);

    for( sal_uInt16 i = 1; i < nMonth; i++ )
        nDays += DaysInMonth(i,nYear);
    nDays += nDay;

    return nDays;
}

/**
 * Convert a count of days starting from 01/01/0001 to a date
 *
 * The internal representation of a Date used in this Addin
 * is the number of days between 01/01/0001 and the date
 * this function converts this internal Date value
 * to a Day , Month, Year representation of a Date.
 */

void DaysToDate( sal_Int32 nDays,
                sal_uInt16& rDay, sal_uInt16& rMonth, sal_uInt16& rYear )
        throw( lang::IllegalArgumentException )
{
    if( nDays < 0 )
        throw lang::IllegalArgumentException();

    sal_Int32   nTempDays;
    sal_Int32   i = 0;
    sal_Bool    bCalc;

    do
    {
        nTempDays = nDays;
        rYear = (sal_uInt16)((nTempDays / 365) - i);
        nTempDays -= ((sal_Int32) rYear -1) * 365;
        nTempDays -= (( rYear -1) / 4) - (( rYear -1) / 100) + ((rYear -1) / 400);
        bCalc = sal_False;
        if ( nTempDays < 1 )
        {
            i++;
            bCalc = sal_True;
        }
        else
        {
            if ( nTempDays > 365 )
            {
                if ( (nTempDays != 366) || !IsLeapYear( rYear ) )
                {
                    i--;
                    bCalc = sal_True;
                }
            }
        }
    }
    while ( bCalc );

    rMonth = 1;
    while ( (sal_Int32)nTempDays > DaysInMonth( rMonth, rYear ) )
    {
        nTempDays -= DaysInMonth( rMonth, rYear );
        rMonth++;
    }
    rDay = (sal_uInt16)nTempDays;
}

/**
 * Get the null date used by the spreadsheet document
 *
 * The internal representation of a Date used in this Addin
 * is the number of days between 01/01/0001 and the date
 * this function returns this internal Date value for the document null date
 *
 */

sal_Int32 GetNullDate( const uno::Reference< beans::XPropertySet >& xOptions )
=====================================================================
Found a 11 line (311 tokens) duplication in the following files: 
Starting at line 1239 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1255 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,18,18,18,18, 0,// 1800 - 180f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1810 - 181f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1820 - 182f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1830 - 183f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1840 - 184f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1850 - 185f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 78 line (311 tokens) duplication in the following files: 
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		CPPU_CURRENT_NAMESPACE::raiseException(&aUnoExc, pThis->getBridge()->getUno2Cpp() );
  	           // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32	nFunctionIndex,
	sal_Int32	nVtableOffset,
	void **	pCallStack,
=====================================================================
Found a 27 line (310 tokens) duplication in the following files: 
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx
Starting at line 564 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx

				const BYTE	cLz = (BYTE) VOS_BOUND( nLz, 0, 255 );

				// fill mapping tables
				pHMap[ 0 ] = 0;
				for( nX = 1; nX <= nWidth; nX++ )
					pHMap[ nX ] = nX - 1;
				pHMap[ nWidth + 1 ] = nWidth - 1;

				pVMap[ 0 ] = 0;
				for( nY = 1; nY <= nHeight; nY++ )
					pVMap[ nY ] = nY - 1;
				pVMap[ nHeight + 1 ] = nHeight - 1;

				for( nY = 0; nY < nHeight ; nY++ )
				{
					nGrey11 = pReadAcc->GetPixel( pVMap[ nY ], pHMap[ 0 ] ).GetIndex();
					nGrey12 = pReadAcc->GetPixel( pVMap[ nY ], pHMap[ 1 ] ).GetIndex();
					nGrey13 = pReadAcc->GetPixel( pVMap[ nY ], pHMap[ 2 ] ).GetIndex();
					nGrey21 = pReadAcc->GetPixel( pVMap[ nY + 1 ], pHMap[ 0 ] ).GetIndex();
					nGrey22 = pReadAcc->GetPixel( pVMap[ nY + 1 ], pHMap[ 1 ] ).GetIndex();
					nGrey23 = pReadAcc->GetPixel( pVMap[ nY + 1 ], pHMap[ 2 ] ).GetIndex();
					nGrey31 = pReadAcc->GetPixel( pVMap[ nY + 2 ], pHMap[ 0 ] ).GetIndex();
					nGrey32 = pReadAcc->GetPixel( pVMap[ nY + 2 ], pHMap[ 1 ] ).GetIndex();
					nGrey33 = pReadAcc->GetPixel( pVMap[ nY + 2 ], pHMap[ 2 ] ).GetIndex();

					for( nX = 0; nX < nWidth; nX++ )
					{
=====================================================================
Found a 29 line (310 tokens) duplication in the following files: 
Starting at line 2975 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxat.cxx

		if (!bFitToSize && (bWdtGrow || bHgtGrow)) {
			Rectangle aR0(rR);
			long nHgt=0,nMinHgt=0,nMaxHgt=0;
			long nWdt=0,nMinWdt=0,nMaxWdt=0;
			Size aSiz(rR.GetSize()); aSiz.Width()--; aSiz.Height()--;
			Size aMaxSiz(100000,100000);
			Size aTmpSiz(pModel->GetMaxObjSize());
			if (aTmpSiz.Width()!=0) aMaxSiz.Width()=aTmpSiz.Width();
			if (aTmpSiz.Height()!=0) aMaxSiz.Height()=aTmpSiz.Height();
			if (bWdtGrow) {
				nMinWdt=GetMinTextFrameWidth();
				nMaxWdt=GetMaxTextFrameWidth();
				if (nMaxWdt==0 || nMaxWdt>aMaxSiz.Width()) nMaxWdt=aMaxSiz.Width();
				if (nMinWdt<=0) nMinWdt=1;
				aSiz.Width()=nMaxWdt;
			}
			if (bHgtGrow) {
				nMinHgt=GetMinTextFrameHeight();
				nMaxHgt=GetMaxTextFrameHeight();
				if (nMaxHgt==0 || nMaxHgt>aMaxSiz.Height()) nMaxHgt=aMaxSiz.Height();
				if (nMinHgt<=0) nMinHgt=1;
				aSiz.Height()=nMaxHgt;
			}
			long nHDist=GetTextLeftDistance()+GetTextRightDistance();
			long nVDist=GetTextUpperDistance()+GetTextLowerDistance();
			aSiz.Width()-=nHDist;
			aSiz.Height()-=nVDist;
			if (aSiz.Width()<2) aSiz.Width()=2;   // Mindestgroesse 2
			if (aSiz.Height()<2) aSiz.Height()=2; // Mindestgroesse 2
=====================================================================
Found a 36 line (310 tokens) duplication in the following files: 
Starting at line 5162 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4867 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptDoubleWaveGluePoints, sizeof( mso_sptDoubleWaveGluePoints ) / sizeof( SvxMSDffVertPair )
};
static const SvxMSDffVertPair mso_sptWedgeRRectCalloutVert[] =
{
	{ 3590, 0 },
	{ 0, 3590 },
	{ 2 MSO_I, 3 MSO_I }, { 0, 8970 },
	{ 0, 12630 },{ 4 MSO_I, 5 MSO_I }, { 0, 18010 },
	{ 3590, 21600 },
	{ 6 MSO_I, 7 MSO_I }, { 8970, 21600 },
	{ 12630, 21600 }, { 8 MSO_I, 9 MSO_I },	{ 18010, 21600 },
	{ 21600, 18010 },	
	{ 10 MSO_I, 11 MSO_I }, { 21600, 12630 },
	{ 21600, 8970 }, { 12 MSO_I, 13 MSO_I }, { 21600, 3590 },
	{ 18010, 0 },
	{ 14 MSO_I, 15 MSO_I }, { 12630, 0 },
	{ 8970, 0 }, { 16 MSO_I, 17 MSO_I }
};
static const sal_uInt16 mso_sptWedgeRRectCalloutSegm[] =
{
	0x4000, 0xa701, 0x0005, 0xa801, 0x0005, 0xa701, 0x0005, 0xa801, 0x0004, 0x6001, 0x8000
};
static const SvxMSDffTextRectangles mso_sptWedgeRRectCalloutTextRect[] =
{
	{ { 800, 800 }, { 20800, 20800 } }
};
static const mso_CustomShape msoWedgeRRectCallout =
{
	(SvxMSDffVertPair*)mso_sptWedgeRRectCalloutVert, sizeof( mso_sptWedgeRRectCalloutVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptWedgeRRectCalloutSegm, sizeof( mso_sptWedgeRRectCalloutSegm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptWedgeRectCalloutCalc, sizeof( mso_sptWedgeRectCalloutCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptWedgeRectCalloutDefault,
	(SvxMSDffTextRectangles*)mso_sptWedgeRRectCalloutTextRect, sizeof( mso_sptWedgeRRectCalloutTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 64 line (310 tokens) duplication in the following files: 
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx

IMPL_LINK_INLINE_START( SvInsertOleDlg, DoubleClickHdl, ListBox *, EMPTYARG )
{
	EndDialog( RET_OK );
	return 0;
}
IMPL_LINK_INLINE_END( SvInsertOleDlg, DoubleClickHdl, ListBox *, pListBox )

// -----------------------------------------------------------------------

IMPL_LINK( SvInsertOleDlg, BrowseHdl, PushButton *, EMPTYARG )
{
    Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
    if( xFactory.is() )
    {
        Reference< XFilePicker > xFilePicker( xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ), UNO_QUERY );
        DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

        Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
        Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
        if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
        {
            Sequence< Any > aServiceType( 1 );
            aServiceType[0] <<= TemplateDescription::FILEOPEN_SIMPLE;
            xInit->initialize( aServiceType );

            // add filter
            try
            {
                xFilterMgr->appendFilter(
                     OUString(),
                     OUString( RTL_CONSTASCII_USTRINGPARAM( "*.*" ) )
                     );
            }
            catch( IllegalArgumentException& )
            {
                DBG_ASSERT( 0, "caught IllegalArgumentException when registering filter\n" );
            }

            if( xFilePicker->execute() == ExecutableDialogResults::OK )
            {
                Sequence< OUString > aPathSeq( xFilePicker->getFiles() );
				INetURLObject aObj( aPathSeq[0] );
				aEdFilepath.SetText( aObj.PathToFileName() );
            }
        }
    }

	return 0;
}

// -----------------------------------------------------------------------

IMPL_LINK( SvInsertOleDlg, RadioHdl, RadioButton *, EMPTYARG )
{
	if ( aRbNewObject.IsChecked() )
	{
		aLbObjecttype.Show();
		aEdFilepath.Hide();
		aBtnFilepath.Hide();
		aCbFilelink.Hide();
		aGbObject.SetText( _aOldStr );
	}
	else
	{
=====================================================================
Found a 56 line (309 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/longcurr.cxx

				for ( i = (USHORT)(aStr.Len()-1); i > 0; i++ )
				{
					if ( (aStr.GetChar( i ) >= '0') && (aStr.GetChar( i ) <= '9') )
						break;
					else if ( aStr.GetChar( i ) == '-' )
					{
						bNegative = TRUE;
						break;
					}
				}
			}
		}
	}
	else
	{
		if ( aStr1.GetChar( 0 ) == '-' )
			bNegative = TRUE;
	}

	// Alle unerwuenschten Zeichen rauswerfen
	for ( i=0; i < aStr1.Len(); )
	{
		if ( (aStr1.GetChar( i ) >= '0') && (aStr1.GetChar( i ) <= '9') )
			i++;
		else
			aStr1.Erase( i, 1 );
	}
	for ( i=0; i < aStr2.Len(); )
	{
		if ( (aStr2.GetChar( i ) >= '0') && (aStr2.GetChar( i ) <= '9') )
			i++;
		else
			aStr2.Erase( i, 1 );
	}

	if ( !aStr1.Len() && !aStr2.Len() )
		return FALSE;

	if ( !aStr1.Len() )
		aStr1.Insert( '0' );
	if ( bNegative )
		aStr1.Insert( '-', 0 );

	// Nachkommateil zurechtstutzen und dabei runden
	BOOL bRound = FALSE;
	if ( aStr2.Len() > nDecDigits )
	{
		if ( aStr2.GetChar( nDecDigits ) >= '5' )
			bRound = TRUE;
		aStr2.Erase( nDecDigits );
	}
	if ( aStr2.Len() < nDecDigits )
		aStr2.Expand( nDecDigits, '0' );

	aStr  = aStr1;
	aStr += aStr2;
=====================================================================
Found a 57 line (309 tokens) duplication in the following files: 
Starting at line 4133 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 4340 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    nLineEnd = WW8_CP_MAX;
    nManType = nType;
    USHORT i;

    if( MAN_MAINTEXT == nType )
    {
        // Suchreihenfolge der Attribute
        nPLCF = MAN_ANZ_PLCF;
        pFld = &aD[0];
        pBkm = &aD[1];
        pEdn = &aD[2];
        pFtn = &aD[3];
        pAnd = &aD[4];

        pPcd = ( pBase->pPLCFx_PCD ) ? &aD[5] : 0;
        //pPcdA index == pPcd index + 1
        pPcdA = ( pBase->pPLCFx_PCDAttrs ) ? &aD[6] : 0;

        pChp = &aD[7];
        pPap = &aD[8];
        pSep = &aD[9];

        pSep->pPLCFx = pBase->pSepPLCF;
        pFtn->pPLCFx = pBase->pFtnPLCF;
        pEdn->pPLCFx = pBase->pEdnPLCF;
        pBkm->pPLCFx = pBase->pBook;
        pAnd->pPLCFx = pBase->pAndPLCF;

    }
    else
    {
        // Suchreihenfolge der Attribute
        nPLCF = 7;
        pFld = &aD[0];
        pBkm = ( pBase->pBook ) ? &aD[1] : 0;

        pPcd = ( pBase->pPLCFx_PCD ) ? &aD[2] : 0;
        //pPcdA index == pPcd index + 1
        pPcdA= ( pBase->pPLCFx_PCDAttrs ) ? &aD[3] : 0;

        pChp = &aD[4];
        pPap = &aD[5];
        pSep = &aD[6]; // Dummy

        pAnd = pFtn = pEdn = 0;     // unbenutzt bei SpezText
    }

    pChp->pPLCFx = pBase->pChpPLCF;
    pPap->pPLCFx = pBase->pPapPLCF;
    if( pPcd )
        pPcd->pPLCFx = pBase->pPLCFx_PCD;
    if( pPcdA )
        pPcdA->pPLCFx= pBase->pPLCFx_PCDAttrs;
    if( pBkm )
        pBkm->pPLCFx = pBase->pBook;

    pMagicTables = pBase->pMagicTables;
=====================================================================
Found a 11 line (309 tokens) duplication in the following files: 
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1255 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,18,18,18,18, 0,// 1800 - 180f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1810 - 181f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1820 - 182f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1830 - 183f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1840 - 184f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1850 - 185f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 8 line (309 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xf4, 0x0032}, {0x00, 0x0000}, {0x00, 0x0000}, // 0340 - 0347
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0348 - 034f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0350 - 0357
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0358 - 035f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0360 - 0367
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0368 - 036f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0370 - 0377
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0378 - 037f
=====================================================================
Found a 65 line (309 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx

    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );

        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
=====================================================================
Found a 43 line (308 tokens) duplication in the following files: 
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 492 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

			aRet <<= _xLBT->raiseException( aBool, aChar, nByte, nShort, nUShort, nLong, nULong,
											nHyper, nUHyper, fFloat, fDouble, eEnum, aString, xInterface,
											aAny, aSeq, aData );
			
			rOutParamIndex.realloc( 17 );
			rOutParamIndex[0] = 0;
			rOutParamIndex[1] = 1;
			rOutParamIndex[2] = 2;
			rOutParamIndex[3] = 3;
			rOutParamIndex[4] = 4;
			rOutParamIndex[5] = 5;
			rOutParamIndex[6] = 6;
			rOutParamIndex[7] = 7;
			rOutParamIndex[8] = 8;
			rOutParamIndex[9] = 9;
			rOutParamIndex[10] = 10;
			rOutParamIndex[11] = 11;
			rOutParamIndex[12] = 12;
			rOutParamIndex[13] = 13;
			rOutParamIndex[14] = 14;
			rOutParamIndex[15] = 15;
			rOutParamIndex[16] = 16;
			
			rOutParam.realloc( 17 );
			rOutParam[0].setValue( &aBool, ::getCppuBooleanType() );
			rOutParam[1].setValue( &aChar, ::getCppuCharType() );
			rOutParam[2] <<= nByte;
			rOutParam[3] <<= nShort;
			rOutParam[4] <<= nUShort;
			rOutParam[5] <<= nLong;
			rOutParam[6] <<= nULong;
			rOutParam[7] <<= nHyper;
			rOutParam[8] <<= nUHyper;
			rOutParam[9] <<= fFloat;
			rOutParam[10] <<= fDouble;
			rOutParam[11] <<= eEnum;
			rOutParam[12] <<= aString;
			rOutParam[13] <<= xInterface;
			rOutParam[14] <<= aAny;
			rOutParam[15] <<= aSeq;
			rOutParam[16] <<= aData;
		}
		else
=====================================================================
Found a 71 line (308 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/except.cxx

        rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 35 line (307 tokens) duplication in the following files: 
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                    y_hr += ry_inv;
                    y_lr = ++m_wrap_mode_y;
                }
                while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)fg[order_type::A];

                ++span;
                ++intr;
            } while(--len);
            return base_type::allocator().span();
        }

    private:
        WrapModeX m_wrap_mode_x;
        WrapModeY m_wrap_mode_y;
    };
=====================================================================
Found a 8 line (307 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02d0 - 02d7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02d8 - 02df
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02e0 - 02e7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02e8 - 02ef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02f0 - 02f7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 02f8 - 02ff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x9f, 0x0000}, // 0300 - 0307
=====================================================================
Found a 14 line (307 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // 9000 - 97ff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // 9800 - 9fff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // a000 - a7ff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // a800 - afff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // b000 - b7ff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // b800 - bfff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // c000 - c7ff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // c800 - cfff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // d000 - d7ff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // d800 - dfff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // e000 - e7ff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // e800 - efff
      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // f000 - f7ff
      -1,   -1,   -1, 0x0b,   -1,   -1,   -1, 0x0c, // f800 - ffff
=====================================================================
Found a 50 line (307 tokens) duplication in the following files: 
Starting at line 878 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

				ExecuteFunc( mpDispFrame, L"dispose", NULL, 0, &dummyResult );
				mpDispFrame = CComPtr<IDispatch>();
			}

            mParentWin = hwnd;
            mOffWin = CreateWindow( 
								STAROFFICE_WINDOWCLASS,
								"OfficeContainer",
								WS_CHILD | WS_CLIPCHILDREN | WS_BORDER,
								di.prcBounds->left,
								di.prcBounds->top,
								di.prcBounds->right - di.prcBounds->left,
								di.prcBounds->bottom - di.prcBounds->top,
								mParentWin,
								NULL,
								NULL,
								NULL );

			::ShowWindow( mOffWin, SW_SHOW );
        }
        else
        {
            RECT aRect;
            ::GetWindowRect( mOffWin, &aRect );
            
            if( aRect.left !=  di.prcBounds->left || aRect.top != di.prcBounds->top
             || aRect.right != di.prcBounds->right || aRect.bottom != di.prcBounds->bottom )
			{
				// on this state the office window should exist already
                ::SetWindowPos( mOffWin,
                              HWND_TOP,
							  di.prcBounds->left, 
							  di.prcBounds->top, 
							  di.prcBounds->right - di.prcBounds->left, 
							  di.prcBounds->bottom - di.prcBounds->top,
                              SWP_NOZORDER );

				CComVariant aPosArgs[5];
				aPosArgs[4] = CComVariant( 0 );
				aPosArgs[3] = CComVariant( 0 );
				aPosArgs[2] = CComVariant( int(di.prcBounds->right - di.prcBounds->left) );
				aPosArgs[1] = CComVariant( int(di.prcBounds->bottom - di.prcBounds->top) );
				aPosArgs[0] = CComVariant( 12 );
				CComVariant dummyResult;
				hr = ExecuteFunc( mpDispWin, L"setPosSize", aPosArgs, 5, &dummyResult );
				if( !SUCCEEDED( hr ) ) return hr;
			}
        }                      

		if( ! mpDispFrame )
=====================================================================
Found a 51 line (307 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.cxx
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/workben/iniParser/main.cxx

			osl_File_E_None == osl_openFile(iniUrl.pData, &handle, osl_File_OpenFlag_Read))
		{
			rtl::ByteSequence seq;
			sal_uInt64 nSize = 0;

			osl_getFileSize(handle, &nSize);
			OUString sectionName = OUString::createFromAscii("no name section");
			while (true)
			{
				sal_uInt64 nPos;
				if (osl_File_E_None != osl_getFilePos(handle, &nPos) || nPos >= nSize)
					break;
				if (osl_File_E_None != osl_readLine(handle , (sal_Sequence **) &seq))
					break;
				OString line( (const sal_Char *) seq.getConstArray(), seq.getLength() );
				sal_Int32 nIndex = line.indexOf('=');
				if (nIndex >= 1)
				{
					ini_Section *aSection = &mAllSection[sectionName];
					struct ini_NameValue nameValue;
					nameValue.sName = OStringToOUString(
						line.copy(0,nIndex).trim(), RTL_TEXTENCODING_ASCII_US );
					nameValue.sValue = OStringToOUString(
						line.copy(nIndex+1).trim(), RTL_TEXTENCODING_UTF8 );

					aSection->lList.push_back(nameValue);

				}
				else
				{
					sal_Int32 nIndexStart = line.indexOf('[');
					sal_Int32 nIndexEnd = line.indexOf(']');
					if ( nIndexEnd > nIndexStart && nIndexStart >=0)
					{
						sectionName =  OStringToOUString(
							line.copy(nIndexStart + 1,nIndexEnd - nIndexStart -1).trim(), RTL_TEXTENCODING_ASCII_US );
						if (!sectionName.getLength())
							sectionName = OUString::createFromAscii("no name section");

						ini_Section *aSection = &mAllSection[sectionName];
						aSection->sName = sectionName;
					}
				}
			}
			osl_closeFile(handle);
		}
#if OSL_DEBUG_LEVEL > 1
		else
		{
			OString file_tmp = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US);
			OSL_TRACE( __FILE__" -- couldn't open file: %s", file_tmp.getStr() );
=====================================================================
Found a 77 line (307 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
                // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}
=====================================================================
Found a 34 line (306 tokens) duplication in the following files: 
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salframe.h
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salframe.h

    virtual void                SetExtendedFrameStyle( SalExtStyle nExtStyle );
    virtual void				Show( BOOL bVisible, BOOL bNoActivate = FALSE );
    virtual void				Enable( BOOL bEnable );
    virtual void                SetMinClientSize( long nWidth, long nHeight );
    virtual void                SetMaxClientSize( long nWidth, long nHeight );
    virtual void				SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
    virtual void				GetClientSize( long& rWidth, long& rHeight );
    virtual void				GetWorkArea( Rectangle& rRect );
    virtual SalFrame*			GetParent() const;
    virtual void				SetWindowState( const SalFrameState* pState );
    virtual BOOL				GetWindowState( SalFrameState* pState );
    virtual void				ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
    virtual void				StartPresentation( BOOL bStart );
    virtual void				SetAlwaysOnTop( BOOL bOnTop );
    virtual void				ToTop( USHORT nFlags );
    virtual void				SetPointer( PointerStyle ePointerStyle );
    virtual void				CaptureMouse( BOOL bMouse );
    virtual void				SetPointerPos( long nX, long nY );
    virtual void				Flush();
    virtual void				Sync();
    virtual void				SetInputContext( SalInputContext* pContext );
    virtual void				EndExtTextInput( USHORT nFlags );
    virtual String				GetKeyName( USHORT nKeyCode );
    virtual String				GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
    virtual BOOL                MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
    virtual LanguageType		GetInputLanguage();
    virtual SalBitmap*			SnapShot();
    virtual void				UpdateSettings( AllSettings& rSettings );
    virtual void				Beep( SoundType eSoundType );
    virtual const SystemEnvData*	GetSystemData() const;
    virtual SalPointerState		GetPointerState();
    virtual void				SetParent( SalFrame* pNewParent );
    virtual bool				SetPluginParent( SystemParentData* pNewParent );
    virtual void                SetBackgroundBitmap( SalBitmap* );
=====================================================================
Found a 80 line (306 tokens) duplication in the following files: 
Starting at line 1393 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1364 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

            }
        }
		else
		{
			// Not a Core Property! Maybe it's an Additional Core Property?!

			if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
			{
				xAdditionalPropSet = getAdditionalPropertySet( sal_False );
				bTriedToGetAdditonalPropSet = sal_True;
			}

			if ( xAdditionalPropSet.is() )
			{
				try
				{
                    uno::Any aOldValue = xAdditionalPropSet->getPropertyValue(
																rValue.Name );
					if ( aOldValue != rValue.Value )
					{
						xAdditionalPropSet->setPropertyValue(
												rValue.Name, rValue.Value );

						aEvent.PropertyName = rValue.Name;
						aEvent.OldValue		= aOldValue;
						aEvent.NewValue     = rValue.Value;

						aChanges.getArray()[ nChanged ] = aEvent;
						nChanged++;
					}
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}

	if ( bExchange )
	{
        uno::Reference< ucb::XContentIdentifier > xOldId
            = m_xIdentifier;
        uno::Reference< ucb::XContentIdentifier > xNewId
            = makeNewIdentifier( m_aProps.getTitle() );

		aGuard.clear();
		if ( exchangeIdentity( xNewId ) )
		{
			// Adapt persistent data.
			renameData( xOldId, xNewId );

			// Adapt Additional Core Properties.
            renameAdditionalPropertySet( xOldId->getContentIdentifier(),
                                         xNewId->getContentIdentifier(),
                                         sal_True );
		}
		else
		{
            // Roll-back.
            m_aProps.setTitle( aOldTitle );
=====================================================================
Found a 52 line (306 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 581 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

      double* rowptr = a[irow];
      a[irow] = a[icol];
      a[icol] = rowptr;
    }

    indxr[i] = irow;
    indxc[i] = icol;
    if ( a[icol][icol] == 0 )
    {
      delete[] ipiv;
      delete[] indxr;
      delete[] indxc;
      return 0;
    }

    pivinv = 1/a[icol][icol];
    a[icol][icol] = 1;
    for (k = 0; k < n; k++)
      a[icol][k] *= pivinv;

    for (j = 0; j < n; j++)
    {
      if ( j != icol )
      {
	save = a[j][icol];
	a[j][icol] = 0;
	for (k = 0; k < n; k++)
	  a[j][k] -= a[icol][k]*save;
      }
    }
  }

  for (j = n-1; j >= 0; j--)
  {
    if ( indxr[j] != indxc[j] )
    {
      for (k = 0; k < n; k++)
      {
	save = a[k][indxr[j]];
	a[k][indxr[j]] = a[k][indxc[j]];
	a[k][indxc[j]] = save;
      }
    }
  }

  delete[] ipiv;
  delete[] indxr;
  delete[] indxc;
  return 1;
}
//---------------------------------------------------------------------------
int mgcLinearSystemD::Solve (int n, double** a, double* b)
=====================================================================
Found a 40 line (305 tokens) duplication in the following files: 
Starting at line 2211 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 1959 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/epict.cxx

						Point aOrigin = aSrcMapMode.GetOrigin();
						BigInt aX( aOrigin.X() );
						aX *= BigInt( aScaleX.GetDenominator() );
						if( aOrigin.X() >= 0 )
						{
							if( aScaleX.GetNumerator() >= 0 )
								aX += BigInt( aScaleX.GetNumerator()/2 );
							else
								aX -= BigInt( (aScaleX.GetNumerator()+1)/2 );
						}
						else
						{
							if( aScaleX.GetNumerator() >= 0 )
								aX -= BigInt( (aScaleX.GetNumerator()-1)/2 );
							else
								aX += BigInt( aScaleX.GetNumerator()/2 );
						}

						aX /= BigInt( aScaleX.GetNumerator() );
						aOrigin.X() = (long)aX + aMM.GetOrigin().X();
						BigInt aY( aOrigin.Y() );
						aY *= BigInt( aScaleY.GetDenominator() );

						if( aOrigin.Y() >= 0 )
						{
							if( aScaleY.GetNumerator() >= 0 )
								aY += BigInt( aScaleY.GetNumerator()/2 );
							else
								aY -= BigInt( (aScaleY.GetNumerator()+1)/2 );
						}
						else
						{
							if( aScaleY.GetNumerator() >= 0 )
								aY -= BigInt( (aScaleY.GetNumerator()-1)/2 );
							else
								aY += BigInt( aScaleY.GetNumerator()/2 );
						}

						aY /= BigInt( aScaleY.GetNumerator() );
						aOrigin.Y() = (long)aY + aMM.GetOrigin().Y();
=====================================================================
Found a 74 line (305 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/pages.cxx
Starting at line 576 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/license.cxx

        aPBPageDown.Enable();
        
}


LicenseView::LicenseView( Window* pParent, const ResId& rResId )
    : MultiLineEdit( pParent, rResId )
{
    SetLeftMargin( 5 );

    mbEndReached = IsEndReached();

	StartListening( *GetTextEngine() );
}

LicenseView::~LicenseView()
{
    maEndReachedHdl = Link();
    maScrolledHdl   = Link();

    EndListeningAll();
}

void LicenseView::ScrollDown( ScrollType eScroll )
{
    ScrollBar*  pScroll = GetVScrollBar();

    if ( pScroll )
        pScroll->DoScrollAction( eScroll );
}

BOOL LicenseView::IsEndReached() const
{
    BOOL bEndReached;

    ExtTextView*    pView = GetTextView();
    ExtTextEngine*  pEdit = GetTextEngine();
    ULONG           nHeight = pEdit->GetTextHeight();
    Size            aOutSize = pView->GetWindow()->GetOutputSizePixel();
    Point           aBottom( 0, aOutSize.Height() );

    if ( (ULONG) pView->GetDocPos( aBottom ).Y() >= nHeight - 1 )
        bEndReached = TRUE;
    else
        bEndReached = FALSE;

    return bEndReached;
}

void LicenseView::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
    if ( rHint.IsA( TYPE(TextHint) ) )
    {
        BOOL    bLastVal = EndReached();
        ULONG   nId = ((const TextHint&)rHint).GetId();

        if ( nId == TEXT_HINT_PARAINSERTED )
        {
            if ( bLastVal )
                mbEndReached = IsEndReached();
        }
        else if ( nId == TEXT_HINT_VIEWSCROLLED )
        {
            if ( ! mbEndReached )
                mbEndReached = IsEndReached();
            maScrolledHdl.Call( this );
        }

        if ( EndReached() && !bLastVal )
        {
            maEndReachedHdl.Call( this );
        }
    }
}
=====================================================================
Found a 64 line (304 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/misc/db.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/db.cxx

    db_internal::check_error( db_create(&m_pDBP,0,0),"Db::Db" );
}


Db::~Db()
{
    if (m_pDBP)
    {
        // should not happen
        // TODO: add assert
    }
  
}


int Db::close(u_int32_t flags)
{
    int error = m_pDBP->close(m_pDBP,flags);
    m_pDBP = 0;
    return db_internal::check_error(error,"Db::close"); 
}

int Db::open(DB_TXN *txnid, 
			 const char *file,
			 const char *database, 
			 DBTYPE type, 
			 u_int32_t flags, 
			 int mode)
{
    int err = m_pDBP->open(m_pDBP,txnid,file,database,type,flags,mode);
    return db_internal::check_error( err,"Db::open" );
}

	
int Db::get(DB_TXN *txnid, Dbt *key, Dbt *data, u_int32_t flags)
{
    int err = m_pDBP->get(m_pDBP,txnid,key,data,flags);

    // these are non-exceptional outcomes
    if (err != DB_NOTFOUND && err != DB_KEYEMPTY) 
        db_internal::check_error( err,"Db::get" );

    return err;
}

int Db::put(DB_TXN* txnid, Dbt *key, Dbt *data, u_int32_t flags)
{
    int err = m_pDBP->put(m_pDBP,txnid,key,data,flags);

    if (err != DB_KEYEXIST) // this is a non-exceptional outcome
        db_internal::check_error( err,"Db::put" );
    return err;
}

int Db::cursor(DB_TXN *txnid, Dbc **cursorp, u_int32_t flags)
{
    DBC * dbc = 0;
    int error = m_pDBP->cursor(m_pDBP,txnid,&dbc,flags);
  
    if (!db_internal::check_error(error,"Db::cursor"))
        *cursorp = new Dbc(dbc);

    return error;
}
=====================================================================
Found a 54 line (304 tokens) duplication in the following files: 
Starting at line 1650 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx
Starting at line 2152 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx

		const basegfx::B2DPolygon aPolygon(aPolyPolygon.getB2DPolygon(nPolygon));
		const sal_uInt32 nPointCount(aPolygon.count());

		if(nPointCount)
		{
			if(aPolygon.areControlPointsUsed())
			{
				// prepare edge-based loop
				basegfx::B2DPoint aCurrentPoint(aPolygon.getB2DPoint(0));
				const sal_uInt32 nEdgeCount(aPolygon.isClosed() ? nPointCount - 1 : nPointCount);

				// first vertex
				path.move_to(aCurrentPoint.getX(), aCurrentPoint.getY());

				for(sal_uInt32 a(0); a < nEdgeCount; a++)
				{
					// access next point
					const sal_uInt32 nNextIndex((a + 1) % nPointCount);
					const basegfx::B2DPoint aNextPoint(aPolygon.getB2DPoint(nNextIndex));

					// get control points
					const basegfx::B2DPoint aControlNext(aPolygon.getNextControlPoint(a));
					const basegfx::B2DPoint aControlPrev(aPolygon.getPrevControlPoint(nNextIndex));

					// specify first cp, second cp, next vertex
					path.curve4(
						aControlNext.getX(), aControlNext.getY(),
						aControlPrev.getX(), aControlPrev.getY(),
						aNextPoint.getX(), aNextPoint.getY());

					// prepare next step
					aCurrentPoint = aNextPoint;
				}
			}
			else
			{
				const basegfx::B2DPoint aPoint(aPolygon.getB2DPoint(0));
				ras.move_to_d(aPoint.getX(), aPoint.getY());

				for(sal_uInt32 a(1); a < nPointCount; a++)
				{
					const basegfx::B2DPoint aVertexPoint(aPolygon.getB2DPoint(a));
					ras.line_to_d(aVertexPoint.getX(), aVertexPoint.getY());
				}

				if(aPolygon.isClosed())
				{
					ras.close_polygon();
				}
			}
		}
	}

	ras.add_path(curve);
=====================================================================
Found a 88 line (303 tokens) duplication in the following files: 
Starting at line 1144 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/ScriptInfo.cxx
Starting at line 1705 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/porlay.cxx

USHORT SwScriptInfo::KashidaJustify( sal_Int32* pKernArray, sal_Int32* pScrArray,
                                     xub_StrLen nStt, xub_StrLen nLen,
                                     long nSpaceAdd ) const
{
    ASSERT( nLen, "Kashida justification without text?!" )

    // evaluate kashida informatin in collected in SwScriptInfo

    USHORT nCntKash = 0;
    while( nCntKash < CountKashida() )
    {
        if ( nStt <= GetKashida( nCntKash ) )
            break;
        else
            nCntKash++;
    }

    const xub_StrLen nEnd = nStt + nLen;

    if ( ! pKernArray )
    {
        USHORT nCntKashEnd = nCntKash;
        while ( nCntKashEnd < CountKashida() )
        {
            if ( nEnd <= GetKashida( nCntKashEnd ) )
                break;
            else
                nCntKashEnd++;
        }

        return nCntKashEnd - nCntKash;
    }

    // do nothing if there is no more kashida
    if ( nCntKash < CountKashida() )
    {
        xub_StrLen nKashidaPos = GetKashida( nCntKash );
        xub_StrLen nIdx = nKashidaPos;
        long nKashAdd = nSpaceAdd;

        while ( nIdx < nEnd )
        {
            USHORT nArrayPos = nIdx - nStt;

            // next kashida position
            nIdx = ++nCntKash  < CountKashida() ? GetKashida( nCntKash ) : nEnd;
            if ( nIdx > nEnd )
                nIdx = nEnd;

            const USHORT nArrayEnd = nIdx - nStt;

            while ( nArrayPos < nArrayEnd )
            {
                pKernArray[ nArrayPos ] += nKashAdd;
                if ( pScrArray )
                   pScrArray[ nArrayPos ] += nKashAdd;
                ++nArrayPos;
            }

            nKashAdd += nSpaceAdd;
        }
    }

    return 0;
}

/*************************************************************************
 *                      SwScriptInfo::IsArabicLanguage()
 *************************************************************************/

sal_Bool SwScriptInfo::IsArabicLanguage( LanguageType aLang )
{
    return LANGUAGE_ARABIC == aLang || LANGUAGE_ARABIC_SAUDI_ARABIA == aLang ||
           LANGUAGE_ARABIC_IRAQ == aLang || LANGUAGE_ARABIC_EGYPT == aLang ||
           LANGUAGE_ARABIC_LIBYA == aLang || LANGUAGE_ARABIC_ALGERIA == aLang ||
           LANGUAGE_ARABIC_MOROCCO == aLang || LANGUAGE_ARABIC_TUNISIA == aLang ||
           LANGUAGE_ARABIC_OMAN == aLang || LANGUAGE_ARABIC_YEMEN == aLang ||
           LANGUAGE_ARABIC_SYRIA == aLang || LANGUAGE_ARABIC_JORDAN == aLang ||
           LANGUAGE_ARABIC_LEBANON == aLang || LANGUAGE_ARABIC_KUWAIT == aLang ||
           LANGUAGE_ARABIC_UAE == aLang || LANGUAGE_ARABIC_BAHRAIN == aLang ||
           LANGUAGE_ARABIC_QATAR == aLang;
}

/*************************************************************************
 *                      SwScriptInfo::ThaiJustify()
 *************************************************************************/

USHORT SwScriptInfo::ThaiJustify( const XubString& rTxt, sal_Int32* pKernArray,
=====================================================================
Found a 32 line (303 tokens) duplication in the following files: 
Starting at line 2289 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 2510 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

    result[0] = '\0';

    PfxEntry* ep = (PfxEntry *) ppfx;

    // first handle the special case of 0 length suffixes
    SfxEntry * se = (SfxEntry *) sStart[0];
    while (se) {
        if (!cclass || se->getCont()) {
	    // suffixes are not allowed in beginning of compounds
            if (((((in_compound != IN_CPD_BEGIN)) || // && !cclass
	     // except when signed with compoundpermitflag flag
	     (se->getCont() && compoundpermitflag &&
	        TESTAFF(se->getCont(),compoundpermitflag,se->getContLen()))) && (!circumfix ||
              // no circumfix flag in prefix and suffix
              ((!ppfx || !(ep->getCont()) || !TESTAFF(ep->getCont(),
                   circumfix, ep->getContLen())) &&
               (!se->getCont() || !(TESTAFF(se->getCont(),circumfix,se->getContLen())))) ||
              // circumfix flag in prefix AND suffix
              ((ppfx && (ep->getCont()) && TESTAFF(ep->getCont(),
                   circumfix, ep->getContLen())) &&
               (se->getCont() && (TESTAFF(se->getCont(),circumfix,se->getContLen())))))  &&
            // fogemorpheme
              (in_compound || 
                 !((se->getCont() && (TESTAFF(se->getCont(), onlyincompound, se->getContLen()))))) &&
	    // pseudoroot on prefix or first suffix
	      (cclass || 
                   !(se->getCont() && TESTAFF(se->getCont(), pseudoroot, se->getContLen())) ||
                   (ppfx && !((ep->getCont()) &&
                     TESTAFF(ep->getCont(), pseudoroot,
                       ep->getContLen())))
              )
            ))
=====================================================================
Found a 65 line (303 tokens) duplication in the following files: 
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/gui/license_dialog.cxx
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/pages.cxx

LicenseView::LicenseView( Window* pParent, const ResId& rResId )
    : MultiLineEdit( pParent, rResId )
{
    SetLeftMargin( 5 );
    mbEndReached = IsEndReached();
    StartListening( *GetTextEngine() );
}

LicenseView::~LicenseView()
{
    maEndReachedHdl = Link();
    maScrolledHdl   = Link();
    EndListeningAll();
}

void LicenseView::ScrollDown( ScrollType eScroll )
{
    ScrollBar*  pScroll = GetVScrollBar();
    if ( pScroll )
        pScroll->DoScrollAction( eScroll );
}

BOOL LicenseView::IsEndReached() const
{
    BOOL bEndReached;

    ExtTextView*    pView = GetTextView();
    ExtTextEngine*  pEdit = GetTextEngine();
    ULONG           nHeight = pEdit->GetTextHeight();
    Size            aOutSize = pView->GetWindow()->GetOutputSizePixel();
    Point           aBottom( 0, aOutSize.Height() );

    if ( (ULONG) pView->GetDocPos( aBottom ).Y() >= nHeight - 1 )
        bEndReached = TRUE;
    else
        bEndReached = FALSE;

    return bEndReached;
}

void LicenseView::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
    if ( rHint.IsA( TYPE(TextHint) ) )
    {
        BOOL    bLastVal = EndReached();
        ULONG   nId = ((const TextHint&)rHint).GetId();

        if ( nId == TEXT_HINT_PARAINSERTED )
        {
            if ( bLastVal )
                mbEndReached = IsEndReached();
        }
        else if ( nId == TEXT_HINT_VIEWSCROLLED )
        {
            if ( ! mbEndReached )
                mbEndReached = IsEndReached();
            maScrolledHdl.Call( this );
        }

        if ( EndReached() && !bLastVal )
        {
            maEndReachedHdl.Call( this );
        }
    }
}
=====================================================================
Found a 37 line (301 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readRadioButtonModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 | 0x40 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (readProp( OUSTR("VisualEffect") ) >>= aStyle._visualEffect)
        aStyle._set |= 0x40;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }

    // collect elements
    readDefaults();
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
    readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
    readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
    readVerticalAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
                           OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":valign") ) );
    readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ),
                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-src") ) );
    readImagePositionAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
                           OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-position") ) );
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
=====================================================================
Found a 11 line (301 tokens) duplication in the following files: 
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1474 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a400 - a40f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a410 - a41f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a420 - a42f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a430 - a43f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a440 - a44f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a450 - a45f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a460 - a46f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a470 - a47f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a480 - a48f
=====================================================================
Found a 73 line (301 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
                // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
=====================================================================
Found a 68 line (300 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/editview.cxx
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/lingu/olmenu.cxx

    uno::Reference< linguistic2::XLanguageGuessing > xLangGuess,
	sal_Bool bIsParaText )
{
	LanguageType  nLang = LANGUAGE_NONE;
	if (bIsParaText)	// check longer texts with language-guessing...
	{
		if (!xLangGuess.is())
			return nLang;

		lang::Locale aLocale( xLangGuess->guessPrimaryLanguage( rText, 0, rText.getLength()) );

		// get language as from "Tools/Options - Language Settings - Languages: Locale setting"
		LanguageType nTmpLang = Application::GetSettings().GetLanguage();

		nLang = lcl_GuessLocale2Lang( aLocale );

		// if the result from language guessing does not provide a 'Country' part
		// try to get it by looking up the locale setting of the office.
//		if (aLocale.Country.getLength() == 0)
//		{
//			lang::Locale aTmpLocale = SvxCreateLocale( nTmpLang );
//			if (aTmpLocale.Language == aLocale.Language)
//				nLang = nTmpLang;
//		}
//		if (nLang == LANGUAGE_NONE)	// language not found by looking up the sytem language...
//		{
//			nLang = MsLangId::convertLocaleToLanguage( aLocale );
//		}
		if (nLang == LANGUAGE_SYSTEM)
			nLang = nTmpLang;
		if (nLang == LANGUAGE_DONTKNOW)
			nLang = LANGUAGE_NONE;
	}
	else	// check single word
	{
			if (!xSpell.is())
			return nLang;

		//
		// build list of languages to check
		//
		LanguageType aLangList[4];
		const AllSettings& rSettings  = Application::GetSettings();
		SvtLinguOptions aLinguOpt;
		SvtLinguConfig().GetOptions( aLinguOpt );
		// The default document language from "Tools/Options - Language Settings - Languages: Western"
		aLangList[0] = aLinguOpt.nDefaultLanguage;
		// The one from "Tools/Options - Language Settings - Languages: User interface"
		aLangList[1] = rSettings.GetUILanguage();
		// The one from "Tools/Options - Language Settings - Languages: Locale setting"
		aLangList[2] = rSettings.GetLanguage();
		// en-US
		aLangList[3] = LANGUAGE_ENGLISH_US;
#ifdef DEBUG
		lang::Locale a0( SvxCreateLocale( aLangList[0] ) );
		lang::Locale a1( SvxCreateLocale( aLangList[1] ) );
		lang::Locale a2( SvxCreateLocale( aLangList[2] ) );
		lang::Locale a3( SvxCreateLocale( aLangList[3] ) );
#endif

		INT32   nCount = sizeof(aLangList) / sizeof(aLangList[0]);
		for (INT32 i = 0;  i < nCount;  i++)
		{
			INT16 nTmpLang = aLangList[i];
			if (nTmpLang != LANGUAGE_NONE  &&  nTmpLang != LANGUAGE_DONTKNOW)
			{
				if (xSpell->hasLanguage( nTmpLang ) &&
                    xSpell->isValid( rText, nTmpLang, uno::Sequence< beans::PropertyValue >() ))
=====================================================================
Found a 44 line (300 tokens) duplication in the following files: 
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/cpp.h
Starting at line 192 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/cpp.h

void expand(Tokenrow *, Nlist *, MacroValidatorList *);
void builtin(Tokenrow *, int);
int gatherargs(Tokenrow *, Tokenrow **, int *);
void substargs(Nlist *, Tokenrow *, Tokenrow **);
void expandrow(Tokenrow *, char *);
void maketokenrow(int, Tokenrow *);
Tokenrow *copytokenrow(Tokenrow *, Tokenrow *);
Token *growtokenrow(Tokenrow *);
Tokenrow *normtokenrow(Tokenrow *);
void adjustrow(Tokenrow *, int);
void movetokenrow(Tokenrow *, Tokenrow *);
void insertrow(Tokenrow *, int, Tokenrow *);
void peektokens(Tokenrow *, char *);
void doconcat(Tokenrow *);
Tokenrow *stringify(Tokenrow *);
int lookuparg(Nlist *, Token *);
long eval(Tokenrow *, int);
void genline(void);
void genimport(char *, int, char *, int);
void genwrap(int);
void setempty(Tokenrow *);
void makespace(Tokenrow *, Token *);
char *outnum(char *, int);
int digit(int);
uchar *newstring(uchar *, int, int);

#define	rowlen(tokrow)	((tokrow)->lp - (tokrow)->bp)

extern char *outptr;
extern Token nltoken;
extern Source *cursource;
extern char *curtime;
extern int incdepth;
extern int ifdepth;
extern int ifsatisfied[NIF];
extern int Mflag;
extern int Iflag;
extern int Pflag;
extern int Aflag;
extern int Lflag;
extern int Xflag;
extern int Vflag;
extern int Cflag;
extern int Dflag;
=====================================================================
Found a 46 line (300 tokens) duplication in the following files: 
Starting at line 36 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/qssl/tempnam.c
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/tos/tempnam.c

static char  *seed="AAA";

/* BSD stdio.h doesn't define P_tmpdir, so let's do it here */
#ifndef P_tmpdir
static char *P_tmpdir = "/tmp";
#endif

char *
tempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+16))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (access( cpdir(p, tmpdir), 3) != 0) )
     if( (dl == 0) || (access( cpdir(p, dir), 3) != 0) )
	if( access( cpdir(p, P_tmpdir),   3) != 0 )
	   if( access( cpdir(p, "/tmp"),  3) != 0 )
	      return(NULL);

   (void) strcat(p, "/");
   if(prefix)
   {
      *(p+strlen(p)+5) = '\0';
      (void)strncat(p, prefix, 5);
   }

   (void)strcat(p, seed);
   (void)strcat(p, "XXXXXX");

   q = seed;
   while(*q == 'Z') *q++ = 'A';
   ++*q;

   if(*mktemp(p) == '\0') return(NULL);
=====================================================================
Found a 32 line (300 tokens) duplication in the following files: 
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx

			::osl::Profile aProfile(sExecutable);

			static ::rtl::OString	sSection("defaults");
			static ::rtl::OString	sSourcePath("sourcepath");
			static ::rtl::OString	sUpdatePath("updatepath");
			static ::rtl::OString	sRootNode("rootnode");
			static ::rtl::OString	sServerType("servertype");
			static ::rtl::OString	sLocale("Locale");
			static ::rtl::OString	sServer("Server");
			static ::rtl::OString	sUser("User");
			static ::rtl::OString	sPassword("Password");

			// read some strings.
			// Do this static because we want to redirect the global static character pointers to the buffers.
			static ::rtl::OString s_sSourcePath	= aProfile.readString(sSection, sSourcePath, s_pSourcePath);
			static ::rtl::OString s_sUpdatePath	= aProfile.readString(sSection, sUpdatePath, s_pUpdatePath);
			static ::rtl::OString s_sRootNode	= aProfile.readString(sSection, sRootNode, s_pRootNode);
			static ::rtl::OString s_sServerType	= aProfile.readString(sSection, sServerType, s_pServerType);
			static ::rtl::OString s_sLocale		= aProfile.readString(sSection, sLocale, s_pLocale);
			static ::rtl::OString s_sServer		= aProfile.readString(sSection, sServer, s_pServer);
			static ::rtl::OString s_sUser		= aProfile.readString(sSection, sUser, s_pUser);
			static ::rtl::OString s_sPassword	= aProfile.readString(sSection, sPassword, s_pPassword);

			// do this redirection
			s_pSourcePath	=	s_sSourcePath.getStr();
			s_pUpdatePath	=	s_sUpdatePath.getStr();
			s_pRootNode		=	s_sRootNode.getStr();
			s_pServerType	=	s_sServerType.getStr();
			s_pLocale		=	s_sLocale.getStr();
			s_pServer		=	s_sServer.getStr();
			s_pUser			=	s_sUser.getStr();
			s_pPassword		=	s_sPassword.getStr();
=====================================================================
Found a 64 line (300 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idloptions.cxx
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javaoptions.cxx

					m_options["-nD"] = OString("");
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'G':
					if (av[i][2] == 'c')
					{
						if (av[i][3] != '\0')
						{
							OString tmp("'-Gc', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i]) + "'";
							}

							throw IllegalArgument(tmp);
						}

						m_options["-Gc"] = OString("");
						break;
					} else
					if (av[i][2] != '\0')
					{
						OString tmp("'-G', please check");
						if (i <= ac - 1)
						{
							tmp += " your input '" + OString(av[i]) + "'";
						}

						throw IllegalArgument(tmp);
					}
					
					m_options["-G"] = OString("");
					break;
=====================================================================
Found a 65 line (299 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

		return aId;
	}
    return rtl::OUString();
}

//=========================================================================
// virtual
uno::Reference< ucb::XContentIdentifier >
DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< ucb::XContentIdentifier > xId
            = m_pImpl->m_aResults[ nIndex ]->xId;
		if ( xId.is() )
		{
			// Already cached.
			return xId;
		}
	}

    rtl::OUString aId = queryContentIdentifierString( nIndex );
	if ( aId.getLength() )
	{
        uno::Reference< ucb::XContentIdentifier > xId
            = new ::ucbhelper::ContentIdentifier( aId );
		m_pImpl->m_aResults[ nIndex ]->xId = xId;
		return xId;
	}
    return uno::Reference< ucb::XContentIdentifier >();
}

//=========================================================================
// virtual
uno::Reference< ucb::XContent >
DataSupplier::queryContent( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< ucb::XContent > xContent
            = m_pImpl->m_aResults[ nIndex ]->xContent;
		if ( xContent.is() )
		{
			// Already cached.
			return xContent;
		}
	}

    uno::Reference< ucb::XContentIdentifier > xId
        = queryContentIdentifier( nIndex );
	if ( xId.is() )
	{
		try
		{
            uno::Reference< ucb::XContent > xContent
				= m_pImpl->m_xContent->getProvider()->queryContent( xId );
			m_pImpl->m_aResults[ nIndex ]->xContent = xContent;
			return xContent;

		}
        catch ( ucb::IllegalIdentifierException& )
=====================================================================
Found a 82 line (299 tokens) duplication in the following files: 
Starting at line 595 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/lnkbase2.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/lnkbase2.cxx

		xObj->RemoveAllDataAdvise( this );
}


ImplDdeItem::~ImplDdeItem()
{
	bIsInDTOR = TRUE;
	// damit im Disconnect nicht jemand auf die Idee kommt, den Pointer zu
	// loeschen!!
	SvBaseLinkRef aRef( pLink );
	aRef->Disconnect();
}

DdeData* ImplDdeItem::Get( ULONG nFormat )
{
	if( pLink->GetObj() )
	{
		// ist das noch gueltig?
		if( bIsValidData && nFormat == aData.GetFormat() )
			return &aData;

		Any aValue;
		String sMimeType( SotExchange::GetFormatMimeType( nFormat ));
		if( pLink->GetObj()->GetData( aValue, sMimeType ) )
		{
			if( aValue >>= aSeq )
			{
				aData = DdeData( (const char *)aSeq.getConstArray(), aSeq.getLength(), nFormat );

				bIsValidData = TRUE;
				return &aData;
			}
		}
	}
	aSeq.realloc( 0 );
	bIsValidData = FALSE;
	return 0;
}


BOOL ImplDdeItem::Put( const DdeData*  )
{
	DBG_ERROR( "ImplDdeItem::Put not implemented" );
	return FALSE;
}


void ImplDdeItem::AdviseLoop( BOOL bOpen )
{
	// Verbindung wird geschlossen, also Link abmelden
	if( pLink->GetObj() )
	{
		if( bOpen )
		{
			// es wird wieder eine Verbindung hergestellt
			if( OBJECT_DDE_EXTERN == pLink->GetObjType() )
			{
				pLink->GetObj()->AddDataAdvise( pLink, String::CreateFromAscii( "text/plain;charset=utf-16" ),	ADVISEMODE_NODATA );
				pLink->GetObj()->AddConnectAdvise( pLink );
			}
		}
		else
		{
			// damit im Disconnect nicht jemand auf die Idee kommt,
			// den Pointer zu loeschen!!
			SvBaseLinkRef aRef( pLink );
			aRef->Disconnect();
		}
	}
}


static DdeTopic* FindTopic( const String & rLinkName, USHORT* pItemStt )
{
	if( 0 == rLinkName.Len() )
		return 0;

	String sNm( rLinkName );
	USHORT nTokenPos = 0;
	String sService(
        sNm.GetToken(
            0, sal::static_int_cast< sal_Unicode >(cTokenSeperator),
=====================================================================
Found a 54 line (299 tokens) duplication in the following files: 
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fudraw.cxx
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fudraw.cxx

		mpView->SetDragWithCopy(rMEvt.IsMod1() && pFrameView->IsDragWithCopy());

		BOOL bGridSnap = pFrameView->IsGridSnap();
		bGridSnap = (bCntrl != bGridSnap);

		if (mpView->IsGridSnap() != bGridSnap)
			mpView->SetGridSnap(bGridSnap);

		BOOL bBordSnap = pFrameView->IsBordSnap();
		bBordSnap = (bCntrl != bBordSnap);

		if (mpView->IsBordSnap() != bBordSnap)
			mpView->SetBordSnap(bBordSnap);

		BOOL bHlplSnap = pFrameView->IsHlplSnap();
		bHlplSnap = (bCntrl != bHlplSnap);

		if (mpView->IsHlplSnap() != bHlplSnap)
			mpView->SetHlplSnap(bHlplSnap);

		BOOL bOFrmSnap = pFrameView->IsOFrmSnap();
		bOFrmSnap = (bCntrl != bOFrmSnap);

		if (mpView->IsOFrmSnap() != bOFrmSnap)
			mpView->SetOFrmSnap(bOFrmSnap);

		BOOL bOPntSnap = pFrameView->IsOPntSnap();
		bOPntSnap = (bCntrl != bOPntSnap);

		if (mpView->IsOPntSnap() != bOPntSnap)
			mpView->SetOPntSnap(bOPntSnap);

		BOOL bOConSnap = pFrameView->IsOConSnap();
		bOConSnap = (bCntrl != bOConSnap);

		if (mpView->IsOConSnap() != bOConSnap)
			mpView->SetOConSnap(bOConSnap);

		BOOL bAngleSnap = rMEvt.IsShift() == !pFrameView->IsAngleSnapEnabled();

		if (mpView->IsAngleSnapEnabled() != bAngleSnap)
			mpView->SetAngleSnapEnabled(bAngleSnap);

		if (mpView->IsOrtho() != bOrtho)
			mpView->SetOrtho(bOrtho);

		BOOL bCenter = rMEvt.IsMod2();

		if ( mpView->IsCreate1stPointAsCenter() != bCenter ||
			 mpView->IsResizeAtCenter() != bCenter )
		{
			mpView->SetCreate1stPointAsCenter(bCenter);
			mpView->SetResizeAtCenter(bCenter);
		}
=====================================================================
Found a 32 line (299 tokens) duplication in the following files: 
Starting at line 2324 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 2554 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

            rv = se->get_next_homonym(rv, sfxopts, ppfx, cclass, needflag);
         }
       }
       se = se->getNext();
    }
  
    // now handle the general case
    unsigned char sp = *((const unsigned char *)(word + len - 1));
    SfxEntry * sptr = (SfxEntry *) sStart[sp];

    while (sptr) {
        if (isRevSubset(sptr->getKey(), word + len - 1, len)
        ) {
	    // suffixes are not allowed in beginning of compounds
            if (((((in_compound != IN_CPD_BEGIN)) || // && !cclass
	     // except when signed with compoundpermitflag flag
	     (sptr->getCont() && compoundpermitflag &&
	        TESTAFF(sptr->getCont(),compoundpermitflag,sptr->getContLen()))) && (!circumfix ||
              // no circumfix flag in prefix and suffix
              ((!ppfx || !(ep->getCont()) || !TESTAFF(ep->getCont(),
                   circumfix, ep->getContLen())) &&
               (!sptr->getCont() || !(TESTAFF(sptr->getCont(),circumfix,sptr->getContLen())))) ||
              // circumfix flag in prefix AND suffix
              ((ppfx && (ep->getCont()) && TESTAFF(ep->getCont(),
                   circumfix, ep->getContLen())) &&
               (sptr->getCont() && (TESTAFF(sptr->getCont(),circumfix,sptr->getContLen())))))  &&
            // fogemorpheme
              (in_compound || 
                 !((sptr->getCont() && (TESTAFF(sptr->getCont(), onlyincompound, sptr->getContLen()))))) &&
	    // pseudoroot on first suffix
	      (cclass || !(sptr->getCont() && 
	           TESTAFF(sptr->getCont(), pseudoroot, sptr->getContLen())))
=====================================================================
Found a 11 line (299 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1474 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a400 - a40f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a410 - a41f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a420 - a42f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a430 - a43f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a440 - a44f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a450 - a45f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a460 - a46f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a470 - a47f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a480 - a48f
=====================================================================
Found a 67 line (298 tokens) duplication in the following files: 
Starting at line 3433 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/objstor.cxx
Starting at line 3572 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/objstor.cxx

			else if ( xSource->isStorageElement( aSubElements[nInd] ) )
			{
				::rtl::OUString aMediaType;
				::rtl::OUString aMediaTypePropName( RTL_CONSTASCII_USTRINGPARAM( "MediaType" ) );
				sal_Bool bGotMediaType = sal_False;

				try
				{
					uno::Reference< embed::XOptimizedStorage > xOptStorage( xSource, uno::UNO_QUERY_THROW );
					bGotMediaType =
						( xOptStorage->getElementPropertyValue( aSubElements[nInd], aMediaTypePropName ) >>= aMediaType );
				}
				catch( uno::Exception& )
				{}

				if ( !bGotMediaType )
				{
					uno::Reference< embed::XStorage > xSubStorage;
					try {
						xSubStorage = xSource->openStorageElement( aSubElements[nInd], embed::ElementModes::READ );
					} catch( uno::Exception& )
					{}

					if ( !xSubStorage.is() )
					{
						// TODO/LATER: as optimization in future a substorage of target storage could be used
						//             instead of the temporary storage; this substorage should be removed later
						//             if the MimeType is wrong
						xSubStorage = ::comphelper::OStorageHelper::GetTemporaryStorage();
						xSource->copyStorageElementLastCommitTo( aSubElements[nInd], xSubStorage );
					}

					uno::Reference< beans::XPropertySet > xProps( xSubStorage, uno::UNO_QUERY_THROW );
					bGotMediaType = ( xProps->getPropertyValue( aMediaTypePropName ) >>= aMediaType );
				}

				// TODO/LATER: there should be a way to detect whether an object with such a MediaType can exist
				//             probably it should be placed in the MimeType-ClassID table or in standalone table
				if ( aMediaType.getLength()
				  && aMediaType.compareToAscii( "application/vnd.sun.star.oleobject" ) != COMPARE_EQUAL )
				{
					::com::sun::star::datatransfer::DataFlavor aDataFlavor;
					aDataFlavor.MimeType = aMediaType;
					sal_uInt32 nFormat = SotExchange::GetFormat( aDataFlavor );

    				switch ( nFormat )
    				{
        				case SOT_FORMATSTR_ID_STARWRITER_60 :
        				case SOT_FORMATSTR_ID_STARWRITERWEB_60 :
        				case SOT_FORMATSTR_ID_STARWRITERGLOB_60 :
        				case SOT_FORMATSTR_ID_STARDRAW_60 :
        				case SOT_FORMATSTR_ID_STARIMPRESS_60 :
        				case SOT_FORMATSTR_ID_STARCALC_60 :
        				case SOT_FORMATSTR_ID_STARCHART_60 :
        				case SOT_FORMATSTR_ID_STARMATH_60 :
						case SOT_FORMATSTR_ID_STARWRITER_8:
						case SOT_FORMATSTR_ID_STARWRITERWEB_8:
						case SOT_FORMATSTR_ID_STARWRITERGLOB_8:
						case SOT_FORMATSTR_ID_STARDRAW_8:
						case SOT_FORMATSTR_ID_STARIMPRESS_8:
						case SOT_FORMATSTR_ID_STARCALC_8:
						case SOT_FORMATSTR_ID_STARCHART_8:
						case SOT_FORMATSTR_ID_STARMATH_8:
							break;

						default:
						{
=====================================================================
Found a 46 line (298 tokens) duplication in the following files: 
Starting at line 527 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1415 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

            CPPUNIT_ASSERT_MESSAGE("sal_Unicode", (a >>= b) && b == '1');
        }
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testString() {
=====================================================================
Found a 71 line (298 tokens) duplication in the following files: 
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		CPPU_CURRENT_NAMESPACE::raiseException(&aUnoExc, pThis->getBridge()->getUno2Cpp() );
  	           // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}
=====================================================================
Found a 35 line (297 tokens) duplication in the following files: 
Starting at line 1130 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/app/docsh2.cxx
Starting at line 1201 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/app/docsh2.cxx

					if ( nWhich == FN_OUTLINE_TO_IMPRESS )
					{
						uno::Reference< com::sun::star::lang::XMultiServiceFactory > xORB = ::comphelper::getProcessServiceFactory();
						uno::Reference< com::sun::star::frame::XDispatchProvider > xProv(
							xORB->createInstance( ::rtl::OUString::createFromAscii("com.sun.star.drawing.ModuleDispatcher")), UNO_QUERY );
						if ( xProv.is() )
						{
							::rtl::OUString aCmd = ::rtl::OUString::createFromAscii( "SendOutlineToImpress" );
							uno::Reference< com::sun::star::frame::XDispatchHelper > xHelper(
								xORB->createInstance( ::rtl::OUString::createFromAscii("com.sun.star.frame.DispatchHelper")), UNO_QUERY );
							if ( xHelper.is() )
							{
								pStrm->Seek( STREAM_SEEK_TO_END );
								*pStrm << '\0';
								pStrm->Seek( STREAM_SEEK_TO_BEGIN );

								// Transfer ownership of stream to a lockbytes object
								SvLockBytes aLockBytes( pStrm, TRUE );
								SvLockBytesStat aStat;
								if ( aLockBytes.Stat( &aStat, SVSTATFLAG_DEFAULT ) == ERRCODE_NONE )
								{
									sal_uInt32 nLen = aStat.nSize;
									ULONG nRead = 0;
									com::sun::star::uno::Sequence< sal_Int8 > aSeq( nLen );
									aLockBytes.ReadAt( 0, aSeq.getArray(), nLen, &nRead );

							        ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs(1);
									aArgs[0].Name = ::rtl::OUString::createFromAscii("RtfOutline");
									aArgs[0].Value <<= aSeq;
									xHelper->executeDispatch( xProv, aCmd, ::rtl::OUString(), 0, aArgs );
								}
							}
						}
					}
					else
=====================================================================
Found a 11 line (297 tokens) duplication in the following files: 
Starting at line 1255 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1474 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a400 - a40f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a410 - a41f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a420 - a42f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a430 - a43f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a440 - a44f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a450 - a45f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a460 - a46f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a470 - a47f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a480 - a48f
=====================================================================
Found a 69 line (297 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
                // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}
=====================================================================
Found a 41 line (296 tokens) duplication in the following files: 
Starting at line 419 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/xforms/xpathlib/xpathlib.cxx

static sal_Bool parseDateTime(const OUString& aString, DateTime& aDateTime)
{
    // take apart a canonical literal xsd:dateTime string
    //CCYY-MM-DDThh:mm:ss(Z)

    OUString aDateTimeString = aString.trim();

    // check length
    if (aDateTimeString.getLength() < 19 || aDateTimeString.getLength() > 20)
        return sal_False;

    sal_Int32 nDateLength = 10;
    sal_Int32 nTimeLength = 8;

    OUString aDateTimeSep = OUString::createFromAscii("T");
    OUString aDateSep = OUString::createFromAscii("-");
    OUString aTimeSep = OUString::createFromAscii(":");
    OUString aUTCString = OUString::createFromAscii("Z");

    OUString aDateString = aDateTimeString.copy(0, nDateLength);
    OUString aTimeString = aDateTimeString.copy(nDateLength+1, nTimeLength);

    sal_Int32 nIndex = 0;
    sal_Int32 nYear = aDateString.getToken(0, '-', nIndex).toInt32();
    sal_Int32 nMonth = aDateString.getToken(0, '-', nIndex).toInt32();
    sal_Int32 nDay = aDateString.getToken(0, '-', nIndex).toInt32();
    nIndex = 0;
    sal_Int32 nHour = aTimeString.getToken(0, ':', nIndex).toInt32();
    sal_Int32 nMinute = aTimeString.getToken(0, ':', nIndex).toInt32();
    sal_Int32 nSecond = aTimeString.getToken(0, ':', nIndex).toInt32();

    Date tmpDate((USHORT)nDay, (USHORT)nMonth, (USHORT)nYear);
    Time tmpTime(nHour, nMinute, nSecond);
    DateTime tmpDateTime(tmpDate, tmpTime);
    if (aString.indexOf(aUTCString) < 0)
        tmpDateTime.ConvertToUTC();

    aDateTime = tmpDateTime;

    return sal_True;
}
=====================================================================
Found a 11 line (295 tokens) duplication in the following files: 
Starting at line 1398 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1423 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27f0 - 27ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2e80 - 2e8f
=====================================================================
Found a 44 line (295 tokens) duplication in the following files: 
Starting at line 328 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 529 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testShort() {
=====================================================================
Found a 59 line (295 tokens) duplication in the following files: 
Starting at line 364 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgupdate.cxx

	aArgs[0] <<= configmgr::createPropertyValue(ASCII("nodepath"),sPath);		

	cout << "starting update for node:" << sPath << endl;	

	Reference< XNameAccess > xTree(xFactory->createInstanceWithArguments(OUString::createFromAscii("com.sun.star.configuration.ConfigurationUpdateAccess"),
			aArgs), UNO_QUERY);

	return xTree;
}

template <class Type>
// -----------------------------------------------------------------------------
void update(Reference< XInterface > xIFace, OUString sRelPath, Type sValue)
{
	Reference< XHierarchicalPropertySet > xTree(xIFace, UNO_QUERY);	
	Any aValue;
	aValue <<= sValue;

	cout << "updating node:" << sRelPath << endl;
	xTree->setHierarchicalPropertyValue(sRelPath, aValue);
}

// -----------------------------------------------------------------------------
Reference< XHierarchicalPropertySet > insertTree(Reference< XInterface > xIFace, OUString aName)
{
	if (!aName.getLength())
		aName =   enterValue("/nEnter a Tree to insert: ", "", false);	
	
	Reference< XSingleServiceFactory > xFactory(xIFace, UNO_QUERY);
	Reference< XHierarchicalPropertySet > xNewElement(xFactory->createInstance(), UNO_QUERY);		

	cout << "inserting new tree element:" << aName << endl;
	
	Any aTree;
	aTree <<= xNewElement;
	Reference< XNameContainer >(xFactory, UNO_QUERY)->insertByName(aName, aTree);		

	return xNewElement;
}

// -----------------------------------------------------------------------------
void removeTree(Reference< XInterface > xIFace, OUString aName)
{
	if (!aName.getLength())
		aName =   enterValue("/nEnter a Tree to remove: ", "", false);	
	
	cout << "removing new tree element:" << aName << endl;
	
	Reference< XNameContainer >(xIFace, UNO_QUERY)->removeByName(aName);			
}

// -----------------------------------------------------------------------------
void commitChanges(Reference< XInterface > xIFace)
{
	cout << "committing changes:" << endl;
	
	Reference< XChangesBatch > xChangesBatch(xIFace, UNO_QUERY);
	xChangesBatch->commitChanges();	
}
=====================================================================
Found a 45 line (294 tokens) duplication in the following files: 
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JDriver.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODriver.cxx

				,::rtl::OUString()
				,Sequence< ::rtl::OUString >())
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ParameterNameSubstitution"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Change named parameters with '?'."))
				,sal_False
				,::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "false" ) )
				,aBooleanValues)
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IgnoreDriverPrivileges"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Ignore the privileges from the database driver."))
				,sal_False
				,::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "false" ) )
				,aBooleanValues)
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsAutoRetrievingEnabled"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Retrieve generated values."))
				,sal_False
				,::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "false" ) )
				,aBooleanValues)
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AutoRetrievingStatement"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Auto-increment statement."))
				,sal_False
				,::rtl::OUString()
				,Sequence< ::rtl::OUString >())
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GenerateASBeforeCorrelationName"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Generate AS before table correlation names."))
				,sal_False
				,::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "true" ) )
				,aBooleanValues)
				);
		return Sequence< DriverPropertyInfo >(&aDriverInfo[0],aDriverInfo.size());
	}
	::dbtools::throwGenericSQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid URL!")) ,*this);
	return Sequence< DriverPropertyInfo >();
}
// --------------------------------------------------------------------------------
sal_Int32 SAL_CALL ODBCDriver::getMajorVersion(  ) throw(RuntimeException)
=====================================================================
Found a 75 line (294 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/Cservices.cxx

	OSL_ENSURE(xNewKey.is(), "FILE::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(...)
		{
		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
			ODriver::getImplementationName_Static(),
			ODriver::getSupportedServiceNames_Static(), xKey);

		return sal_True;
	}
	catch (::com::sun::star::registry::InvalidRegistryException& )
	{
		OSL_ENSURE(sal_False, "FILE::component_writeInfo : could not create a registry key ! ## InvalidRegistryException !");
=====================================================================
Found a 65 line (294 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 424 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

			 nStackLongs);
		// NO exception occured...
		*ppUnoExc = 0;

		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch( ... )
 	{
 		// get exception
		   fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, 
								*ppUnoExc, pThis->getBridge()->getCpp2Uno() );

		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}

}

namespace bridges { namespace cpp_uno { namespace shared {

void unoInterfaceProxyDispatch(
	uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
    void * pReturn, void * pArgs[], uno_Any ** ppException )
{
=====================================================================
Found a 36 line (293 tokens) duplication in the following files: 
Starting at line 3044 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxat.cxx

				rOutliner.Clear();
			}
			if (nWdt<nMinWdt) nWdt=nMinWdt;
			if (nWdt>nMaxWdt) nWdt=nMaxWdt;
			nWdt+=nHDist;
			if (nWdt<1) nWdt=1; // nHDist kann auch negativ sein
			if (nHgt<nMinHgt) nHgt=nMinHgt;
			if (nHgt>nMaxHgt) nHgt=nMaxHgt;
			nHgt+=nVDist;
			if (nHgt<1) nHgt=1; // nVDist kann auch negativ sein
			long nWdtGrow=nWdt-(rR.Right()-rR.Left());
			long nHgtGrow=nHgt-(rR.Bottom()-rR.Top());
			if (nWdtGrow==0) bWdtGrow=FALSE;
			if (nHgtGrow==0) bHgtGrow=FALSE;
			if (bWdtGrow || bHgtGrow) {
				if (bWdtGrow) {
					SdrTextHorzAdjust eHAdj=GetTextHorizontalAdjust();
					if (eHAdj==SDRTEXTHORZADJUST_LEFT) rR.Right()+=nWdtGrow;
					else if (eHAdj==SDRTEXTHORZADJUST_RIGHT) rR.Left()-=nWdtGrow;
					else {
						long nWdtGrow2=nWdtGrow/2;
						rR.Left()-=nWdtGrow2;
						rR.Right()=rR.Left()+nWdt;
					}
				}
				if (bHgtGrow) {
					SdrTextVertAdjust eVAdj=GetTextVerticalAdjust();
					if (eVAdj==SDRTEXTVERTADJUST_TOP) rR.Bottom()+=nHgtGrow;
					else if (eVAdj==SDRTEXTVERTADJUST_BOTTOM) rR.Top()-=nHgtGrow;
					else {
						long nHgtGrow2=nHgtGrow/2;
						rR.Top()-=nHgtGrow2;
						rR.Bottom()=rR.Top()+nHgt;
					}
				}
				if (aGeo.nDrehWink!=0) {
=====================================================================
Found a 74 line (293 tokens) duplication in the following files: 
Starting at line 552 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/selector.cxx
Starting at line 1029 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/selector.cxx

				try {
					if ( rootNode->hasChildNodes() )
					{
						Sequence< Reference< browse::XBrowseNode > > children =
							rootNode->getChildNodes();
						BOOL bIsRootNode = FALSE;

						OUString user = OUString::createFromAscii("user");
						OUString share = OUString::createFromAscii("share");
						if ( rootNode->getName().equals(OUString::createFromAscii("Root") ))
						{
							bIsRootNode = TRUE;
						}

						OUString sDisplayTitle;
						OUString sModelTitle;
						SfxObjectShell* pCurrentDoc = SfxObjectShell::GetWorkingDocument();
						if ( pCurrentDoc )
						{
							sDisplayTitle = pCurrentDoc->GetTitle();
                            //sModelTitle = xModelToDocTitle( pCurrentDoc->GetModel() );
                            SvxScriptSelectorDialog::GetDocTitle( pCurrentDoc->GetModel(), sModelTitle );
						}

						if ( sDisplayTitle.getLength() == 0 && sModelTitle.getLength() != 0 )
						{
							sDisplayTitle = sModelTitle;
						}

                        for ( long n = 0; n < children.getLength(); n++ )
						{
							/* To mimic current starbasic behaviour we
							need to make sure that only the current document
							is displayed in the config tree. Tests below
							set the bDisplay flag to FALSE if the current
							node is a first level child of the Root and is NOT
							either the current document, user or share */
							Reference< browse::XBrowseNode >& theChild = children[n];

                            //#139111# some crash reports show that it might be unset
							if ( !theChild.is() )
								continue;
							::rtl::OUString uiName = theChild->getName();
							BOOL bDisplay = TRUE;

							if ( bIsRootNode )
							{
								if ( uiName.equals( sModelTitle ) )
								{
									uiName = sDisplayTitle;
                                }
                                else if ( uiName.equals( user ) )
                                {
                                    uiName = m_sMyMacros;
                                }
                                else if ( uiName.equals( share ) )
                                {
                                    uiName = m_sProdMacros;
                                }
								else
								{
									bDisplay = FALSE;
								}
                            }
							if (children[n]->getType() != browse::BrowseNodeTypes::SCRIPT  && bDisplay )
							{

								/*
									We call acquire on the XBrowseNode so that it does not
									get autodestructed and become invalid when accessed later.
								*/
								theChild->acquire();

                                SvxGroupInfo_Impl* _pGroupInfo =
=====================================================================
Found a 60 line (293 tokens) duplication in the following files: 
Starting at line 676 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx
Starting at line 763 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx

    uno::Sequence< beans::PropertyValue > aPropSeq( 5 );

    aPropSeq[0].Name = aDescriptorCommandURL;
    aPropSeq[0].Value <<= rtl::OUString( pEntry->GetCommand() );

    aPropSeq[1].Name = aDescriptorType;
    aPropSeq[1].Value <<= css::ui::ItemType::DEFAULT;

    // If the name has not been changed and the name is the same as
    // in the default command to label map then the label can be stored
    // as an empty string.
    // It will be initialised again later using the command to label map.
    aPropSeq[2].Name = aDescriptorLabel;
    if ( pEntry->HasChangedName() == FALSE && pEntry->GetCommand().getLength() )
    {
        BOOL isDefaultName = FALSE;
        try
        {
            uno::Any a( xCommandToLabelMap->getByName( pEntry->GetCommand() ) );
            uno::Sequence< beans::PropertyValue > tmpPropSeq;
            if ( a >>= tmpPropSeq )
            {
                for ( sal_Int32 i = 0; i < tmpPropSeq.getLength(); i++ )
                {
                    if ( tmpPropSeq[i].Name.equals( aDescriptorLabel ) )
                    {
                        OUString tmpLabel;
                        tmpPropSeq[i].Value >>= tmpLabel;

                        if ( tmpLabel.equals( pEntry->GetName() ) )
                        {
                            isDefaultName = TRUE;
                        }

                        break;
                    }
                }
            }
        }
        catch ( container::NoSuchElementException& )
        {
            // isDefaultName is left as FALSE
        }

        if ( isDefaultName )
        {
            aPropSeq[2].Value <<= rtl::OUString();
        }
        else
        {
            aPropSeq[2].Value <<= rtl::OUString( pEntry->GetName() );
        }
    }
    else
    {
        aPropSeq[2].Value <<= rtl::OUString( pEntry->GetName() );
    }

    aPropSeq[3].Name = aDescriptorHelpURL;
    aPropSeq[3].Value <<= rtl::OUString( pEntry->GetHelpURL() );
=====================================================================
Found a 26 line (293 tokens) duplication in the following files: 
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

											   TestData& rStruct )
		throw(com::sun::star::uno::RuntimeException);
	
    virtual sal_Bool SAL_CALL getBool() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Bool; }
    virtual sal_Int8 SAL_CALL getByte() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Byte; }
    virtual sal_Unicode SAL_CALL getChar() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Char; }
    virtual sal_Int16 SAL_CALL getShort() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Short; }
    virtual sal_uInt16 SAL_CALL getUShort() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.UShort; }
    virtual sal_Int32 SAL_CALL getLong() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Long; }
    virtual sal_uInt32 SAL_CALL getULong() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.ULong; }
    virtual sal_Int64 SAL_CALL getHyper() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Hyper; }
    virtual sal_uInt64 SAL_CALL getUHyper() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.UHyper; }
    virtual float SAL_CALL getFloat() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Float; }
    virtual double SAL_CALL getDouble() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Double; }
    virtual TestEnum SAL_CALL getEnum() throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 11 line (293 tokens) duplication in the following files: 
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1218 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10e0 - 10ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10f0 - 10ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1600 - 160f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1610 - 161f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1620 - 162f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1630 - 163f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1640 - 164f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1650 - 165f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1660 - 166f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1670 - 167f
=====================================================================
Found a 12 line (293 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1397 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2660 - 266f
    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2670 - 267f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2680 - 268f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2690 - 269f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26a0 - 26af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,10,10,10,10, 0,10,10,10,10, 0, 0,10,10,10,10,// 2700 - 270f
=====================================================================
Found a 26 line (293 tokens) duplication in the following files: 
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

											   TestData& rStruct )
		throw(com::sun::star::uno::RuntimeException);
	
    virtual sal_Bool SAL_CALL getBool() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Bool; }
    virtual sal_Int8 SAL_CALL getByte() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Byte; }
    virtual sal_Unicode SAL_CALL getChar() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Char; }
    virtual sal_Int16 SAL_CALL getShort() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Short; }
    virtual sal_uInt16 SAL_CALL getUShort() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.UShort; }
    virtual sal_Int32 SAL_CALL getLong() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Long; }
    virtual sal_uInt32 SAL_CALL getULong() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.ULong; }
    virtual sal_Int64 SAL_CALL getHyper() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Hyper; }
    virtual sal_uInt64 SAL_CALL getUHyper() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.UHyper; }
    virtual float SAL_CALL getFloat() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Float; }
    virtual double SAL_CALL getDouble() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Double; }
    virtual TestEnum SAL_CALL getEnum() throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 77 line (293 tokens) duplication in the following files: 
Starting at line 265 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->pUnoI->pDispatcher)( pThis->pUnoI, pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		raiseException( &aUnoExc, &pThis->pBridge->aUno2Cpp ); // has to destruct the any
		// is here for dummy
		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										&pThis->pBridge->aUno2Cpp );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										&pThis->pBridge->aUno2Cpp );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32 nVtableCall,
	void ** pCallStack,
=====================================================================
Found a 24 line (292 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataPointProperties.cxx
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/FillProperties.cxx

    uno::Any aSalInt16Zero = uno::makeAny( sal_Int16( 0 ));
    uno::Any aSalInt32SizeDefault = uno::makeAny( sal_Int32( 0 ));

    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_OFFSETX ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_OFFSETX ] = aSalInt16Zero;
    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_OFFSETY ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_OFFSETY ] = aSalInt16Zero;
    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX ] = aSalInt16Zero;
    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY ] = aSalInt16Zero;
    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT ] =
        uno::makeAny( drawing::RectanglePoint_MIDDLE_MIDDLE );
    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_LOGICALSIZE ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_LOGICALSIZE ] =
        uno::makeAny( true );
    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_SIZEX ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_SIZEX ] = aSalInt32SizeDefault;
    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_SIZEY ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_SIZEY ] = aSalInt32SizeDefault;
    OSL_ASSERT( rOutMap.end() == rOutMap.find( FillProperties::PROP_FILL_BITMAP_MODE ));
    rOutMap[ FillProperties::PROP_FILL_BITMAP_MODE ] =
        uno::makeAny( drawing::BitmapMode_REPEAT );
=====================================================================
Found a 44 line (291 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx

IMPL_LINK( SvInsertPlugInDialog, BrowseHdl, PushButton *, EMPTYARG )
{
    Sequence< OUString > aFilterNames, aFilterTypes;
    void fillNetscapePluginFilters( Sequence< OUString >& rNames, Sequence< OUString >& rTypes );
    fillNetscapePluginFilters( aFilterNames, aFilterTypes );

    Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
    if( xFactory.is() )
    {
        Reference< XFilePicker > xFilePicker( xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ), UNO_QUERY );
        DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

        Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
        Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
        if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
        {
            Sequence< Any > aServiceType( 1 );
            aServiceType[0] <<= TemplateDescription::FILEOPEN_SIMPLE;
            xInit->initialize( aServiceType );

            // add the filters
            try
            {
                const OUString* pNames = aFilterNames.getConstArray();
                const OUString* pTypes = aFilterTypes.getConstArray();
                for( int i = 0; i < aFilterNames.getLength(); i++ )
                    xFilterMgr->appendFilter( pNames[i], pTypes[i] );
            }
            catch( IllegalArgumentException& )
            {
                DBG_ASSERT( 0, "caught IllegalArgumentException when registering filter\n" );
            }

            if( xFilePicker->execute() == ExecutableDialogResults::OK )
            {
                Sequence< OUString > aPathSeq( xFilePicker->getFiles() );
				INetURLObject aObj( aPathSeq[0] );
				aEdFileurl.SetText( aObj.PathToFileName() );
            }
        }
    }

	return 0;
}
=====================================================================
Found a 36 line (291 tokens) duplication in the following files: 
Starting at line 1577 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/guisaveas.cxx
Starting at line 1657 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/guisaveas.cxx

	sal_Bool bIsModified = bNoModify && xModifiable->isModified();

    try
    {
        uno::Reference< beans::XPropertySet > xSet( xDocInfoToFill, uno::UNO_QUERY );
        uno::Reference< beans::XPropertyContainer > xContainer( xSet, uno::UNO_QUERY );
        uno::Reference< beans::XPropertySetInfo > xSetInfo = xSet->getPropertySetInfo();
        uno::Sequence< beans::Property > lProps = xSetInfo->getProperties();
        const beans::Property* pProps = lProps.getConstArray();
        sal_Int32 c = lProps.getLength();
        sal_Int32 i = 0;
        for (i=0; i<c; ++i)
        {
            uno::Any aValue = xPropSet->getPropertyValue( pProps[i].Name );
            if ( pProps[i].Attributes & ::com::sun::star::beans::PropertyAttribute::REMOVABLE )
                // QUESTION: DefaultValue?!
                xContainer->addProperty( pProps[i].Name, pProps[i].Attributes, aValue );
            try
            {
                // it is possible that the propertysets from XML and binary files differ; we shouldn't break then
                xSet->setPropertyValue( pProps[i].Name, aValue );
            }
            catch ( uno::Exception& ) {}
        }

        sal_Int16 nCount = xDocInfo->getUserFieldCount();
        sal_Int16 nSupportedCount = xDocInfoToFill->getUserFieldCount();
        for ( sal_Int16 nInd = 0; nInd < nCount && nInd < nSupportedCount; nInd++ )
        {
            ::rtl::OUString aPropName = xDocInfo->getUserFieldName( nInd );
            xDocInfoToFill->setUserFieldName( nInd, aPropName );
            ::rtl::OUString aPropVal = xDocInfo->getUserFieldValue( nInd );
            xDocInfoToFill->setUserFieldValue( nInd, aPropVal );
        }
    }
    catch ( uno::Exception& ) {}
=====================================================================
Found a 70 line (291 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acc_socket.cxx
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/connector/ctr_socket.cxx

	template<class T>
	void notifyListeners(SocketConnection * pCon, sal_Bool * notified, T t)
	{
  		XStreamListener_hash_set listeners;

		{
			::osl::MutexGuard guard(pCon->_mutex);
			if(!*notified) 
			{
				*notified = sal_True;
				listeners = pCon->_listeners;
			}
		}

		::std::for_each(listeners.begin(), listeners.end(), t);
	}


	static void callStarted(Reference<XStreamListener> xStreamListener)
	{
		xStreamListener->started();
	}

	struct callError {
		const Any & any;

		callError(const Any & any);

		void operator () (Reference<XStreamListener> xStreamListener);
	};

	callError::callError(const Any & aAny)
		: any(aAny)
	{
	}

	void callError::operator () (Reference<XStreamListener> xStreamListener)
	{
		xStreamListener->error(any);
	}

	static void callClosed(Reference<XStreamListener> xStreamListener)
	{
		xStreamListener->closed();
	}

	
	SocketConnection::SocketConnection( const OUString &sConnectionDescription ) :
		m_nStatus( 0 ),
		m_sDescription( sConnectionDescription ),
		_started(sal_False),
		_closed(sal_False),
		_error(sal_False)
	{
		// make it unique
		g_moduleCount.modCnt.acquire( &g_moduleCount.modCnt );
		m_sDescription += OUString( RTL_CONSTASCII_USTRINGPARAM( ",uniqueValue=" ) );
		m_sDescription += OUString::valueOf(
            sal::static_int_cast< sal_Int64 >(
                reinterpret_cast< sal_IntPtr >(&m_socket)),
            10 );
	}

	SocketConnection::~SocketConnection()
	{
		g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
	}
	
	void SocketConnection::completeConnectionString()
	{
=====================================================================
Found a 12 line (291 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1397 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2660 - 266f
    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2670 - 267f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2680 - 268f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2690 - 269f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26a0 - 26af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,10,10,10,10, 0,10,10,10,10, 0, 0,10,10,10,10,// 2700 - 270f
=====================================================================
Found a 11 line (291 tokens) duplication in the following files: 
Starting at line 619 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0,// 27b0 - 27bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27c0 - 27cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27d0 - 27df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27e0 - 27ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27f0 - 27ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c00 - 2c0f      Block index 0x26
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c10 - 2c1f      (Coptic inserted)
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c20 - 2c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c30 - 2c3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c40 - 2c4f
=====================================================================
Found a 11 line (291 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0,// 1690 - 169f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16a0 - 16af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16b0 - 16bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16c0 - 16cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16d0 - 16df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16e0 - 16ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16f0 - 16ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1700 - 170f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1710 - 171f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
=====================================================================
Found a 76 line (290 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linksrc.cxx
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linksrc.cxx

{

TYPEINIT0( SvLinkSource )

/************** class SvLinkSourceTimer *********************************/
class SvLinkSourceTimer : public Timer
{
	SvLinkSource *  pOwner;
	virtual void    Timeout();
public:
			SvLinkSourceTimer( SvLinkSource * pOwn );
};

SvLinkSourceTimer::SvLinkSourceTimer( SvLinkSource * pOwn )
	: pOwner( pOwn )
{
}

void SvLinkSourceTimer::Timeout()
{
	// sicher gegen zerstoeren im Handler
	SvLinkSourceRef aAdv( pOwner );
	pOwner->SendDataChanged();
}

static void StartTimer( SvLinkSourceTimer ** ppTimer, SvLinkSource * pOwner,
						ULONG nTimeout )
{
	if( !*ppTimer )
	{
		*ppTimer = new SvLinkSourceTimer( pOwner );
		(*ppTimer)->SetTimeout( nTimeout );
		(*ppTimer)->Start();
	}
}


struct SvLinkSource_Entry_Impl
{
	SvBaseLinkRef		xSink;
	String				aDataMimeType;
	USHORT				nAdviseModes;
	BOOL 				bIsDataSink;

	SvLinkSource_Entry_Impl( SvBaseLink* pLink, const String& rMimeType,
								USHORT nAdvMode )
		: xSink( pLink ), aDataMimeType( rMimeType ),
			nAdviseModes( nAdvMode ), bIsDataSink( TRUE )
	{}

	SvLinkSource_Entry_Impl( SvBaseLink* pLink )
		: xSink( pLink ), nAdviseModes( 0 ), bIsDataSink( FALSE )
	{}

	~SvLinkSource_Entry_Impl();
};

SvLinkSource_Entry_Impl::~SvLinkSource_Entry_Impl()
{
}

typedef SvLinkSource_Entry_Impl* SvLinkSource_Entry_ImplPtr;
SV_DECL_PTRARR_DEL( SvLinkSource_Array_Impl, SvLinkSource_Entry_ImplPtr, 4, 4 )
SV_IMPL_PTRARR( SvLinkSource_Array_Impl, SvLinkSource_Entry_ImplPtr );

class SvLinkSource_EntryIter_Impl
{
	SvLinkSource_Array_Impl aArr;
	const SvLinkSource_Array_Impl& rOrigArr;
	USHORT nPos;
public:
	SvLinkSource_EntryIter_Impl( const SvLinkSource_Array_Impl& rArr );
	~SvLinkSource_EntryIter_Impl();
	SvLinkSource_Entry_Impl* Curr()
							{ return nPos < aArr.Count() ? aArr[ nPos ] : 0; }
	SvLinkSource_Entry_Impl* Next();
=====================================================================
Found a 65 line (290 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxdocumenthandler.cxx
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxdocumenthandler.cxx

    m_nHashCode_Style_DropDownOnly  = OUString::createFromAscii( ATTRIBUTE_ITEMSTYLE_DROPDOWNONLY ).hashCode();

	m_bToolBarStartFound			= sal_False;
	m_bToolBarEndFound				= sal_False;
	m_bToolBarItemStartFound		= sal_False;
	m_bToolBarSpaceStartFound		= sal_False;
	m_bToolBarBreakStartFound		= sal_False;
	m_bToolBarSeparatorStartFound	= sal_False;
}

OReadToolBoxDocumentHandler::~OReadToolBoxDocumentHandler()
{
}

Any SAL_CALL OReadToolBoxDocumentHandler::queryInterface( const Type & rType )
throw( RuntimeException )
{
	Any a = ::cppu::queryInterface(
				rType ,
				SAL_STATIC_CAST( XDocumentHandler*, this ));
	if ( a.hasValue() )
		return a;

	return OWeakObject::queryInterface( rType );
}

// XDocumentHandler
void SAL_CALL OReadToolBoxDocumentHandler::startDocument(void)
throw (	SAXException, RuntimeException )
{
}

void SAL_CALL OReadToolBoxDocumentHandler::endDocument(void)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	if (( m_bToolBarStartFound && !m_bToolBarEndFound ) ||
		( !m_bToolBarStartFound && m_bToolBarEndFound )		)
	{
		OUString aErrorMessage = getErrorLineString();
		aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "No matching start or end element 'toolbar' found!" ));
		throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
	}
}

void SAL_CALL OReadToolBoxDocumentHandler::startElement(
	const OUString& aName, const Reference< XAttributeList > &xAttribs )
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	ToolBoxHashMap::const_iterator pToolBoxEntry = m_aToolBoxMap.find( aName ) ;
	if ( pToolBoxEntry != m_aToolBoxMap.end() )
	{
		switch ( pToolBoxEntry->second )
		{
			case TB_ELEMENT_TOOLBAR:
			{
				if ( m_bToolBarStartFound )
				{
				    OUString aErrorMessage = getErrorLineString();
				    aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'toolbar:toolbar' cannot be embeded into 'toolbar:toolbar'!" ));
				    throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}
=====================================================================
Found a 30 line (289 tokens) duplication in the following files: 
Starting at line 3541 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3175 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptRightBracketGluePoints, sizeof( mso_sptRightBracketGluePoints ) / sizeof( SvxMSDffVertPair )
};

static const SvxMSDffVertPair mso_sptIrregularSeal1Vert[] =
{
	{ 10901, 5905 }, { 8458, 2399 }, { 7417, 6425 }, { 476, 2399 },
	{ 4732, 7722 }, { 106, 8718 }, { 3828, 11880 }, { 243, 14689 },
	{ 5772, 14041 }, { 4868, 17719 }, { 7819, 15730 }, { 8590, 21600 },
	{ 10637, 15038 }, { 13349, 19840 }, { 14125, 14561 }, { 18248, 18195 },
	{ 16938, 13044 }, { 21600, 13393 }, { 17710, 10579 }, { 21198, 8242 },
	{ 16806, 7417 }, { 18482, 4560 }, { 14257, 5429 }, { 14623, 106 }, { 10901, 5905 }
};
static const SvxMSDffTextRectangles mso_sptIrregularSeal1TextRect[] =
{
	{ { 4680, 6570 }, { 16140, 13280 } }
};
static const SvxMSDffVertPair mso_sptIrregularSeal1GluePoints[] =
{
	{ 14623, 106 }, { 106, 8718 }, { 8590, 21600 }, { 21600, 13393 }
};
static const mso_CustomShape msoIrregularSeal1 =
{
	(SvxMSDffVertPair*)mso_sptIrregularSeal1Vert, sizeof( mso_sptIrregularSeal1Vert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0, 
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptIrregularSeal1TextRect, sizeof( mso_sptIrregularSeal1TextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptIrregularSeal1GluePoints, sizeof( mso_sptIrregularSeal1GluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 14 line (289 tokens) duplication in the following files: 
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_PAGESTL),	SC_WID_UNO_PAGESTL,	&getCppuType((rtl::OUString*)0),		0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PADJUST),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PBMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_LO_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PINDENT),	ATTR_INDENT,		&getCppuType((sal_Int16*)0),			0, 0 }, //! CONVERT_TWIPS
		{MAP_CHAR_LEN(SC_UNONAME_PISCHDIST),ATTR_SCRIPTSPACE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISFORBID),ATTR_FORBIDDEN_RULES,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHANG),	ATTR_HANGPUNCTUATION,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHYPHEN),ATTR_HYPHENATE,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PLASTADJ),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PRINTBORD),SC_WID_UNO_PRINTBORD,&getBooleanCppuType(),					0, 0 },
=====================================================================
Found a 11 line (289 tokens) duplication in the following files: 
Starting at line 1274 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1398 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2670 - 267f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2680 - 268f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2690 - 269f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26a0 - 26af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,10,10,10,10, 0,10,10,10,10, 0, 0,10,10,10,10,// 2700 - 270f
=====================================================================
Found a 11 line (289 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0, 0, 0, 0,// 00f0 - 00ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0200 - 020f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0210 - 021f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0220 - 022f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0230 - 023f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0240 - 024f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0250 - 025f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0260 - 026f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0270 - 027f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0280 - 028f
=====================================================================
Found a 60 line (289 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idloptions.cxx

					m_options["-O"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'G':
					if (av[i][2] == 'c')
=====================================================================
Found a 85 line (288 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/ostring/rtl_OString2.cxx
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/oustring/rtl_OUString2.cxx

            sValue <<= suValue;
            t_print(T_VERBOSE, "nDouble := %.20f  sValue := %s\n", _nValue, sValue.getStr());

            double nValueATOF = atof( sValue.getStr() );
            
            bool bEqualResult = is_double_equal(_nValue, nValueATOF);
            CPPUNIT_ASSERT_MESSAGE("Values are not equal.", bEqualResult == true);
        }
    
    void valueOf_double_test(double _nValue)
        {
            valueOf_double_test_impl(_nValue);
            
            // test also the negative part.
            double nNegativeValue = -_nValue;
            valueOf_double_test_impl(nNegativeValue);
        }
public:
    
    // valueOf double
    void valueOf_double_test_001()
        {
            double nValue = 3.0;
            valueOf_double_test(nValue);
        }
    void valueOf_double_test_002()
        {
            double nValue = 3.5;
            valueOf_double_test(nValue);
        }
    void valueOf_double_test_003()
        {
            double nValue = 3.0625;
            valueOf_double_test(nValue);
        }
    void valueOf_double_test_004()
        {
            double nValue = 3.1415926535;
            valueOf_double_test(nValue);
        }
    void valueOf_double_test_005()
        {
            double nValue = 3.141592653589793;
            valueOf_double_test(nValue);
        }
    void valueOf_double_test_006()
        {
            double nValue = 3.1415926535897932;
            valueOf_double_test(nValue);
        }
    void valueOf_double_test_007()
        {
            double nValue = 3.14159265358979323;
            valueOf_double_test(nValue);
        }
    void valueOf_double_test_008()
        {
            double nValue = 3.141592653589793238462643;
            valueOf_double_test(nValue);
        }


    // Change the following lines only, if you add, remove or rename 
    // member functions of the current class, 
    // because these macros are need by auto register mechanism.

    CPPUNIT_TEST_SUITE(valueOf);
    CPPUNIT_TEST(valueOf_float_test_001);
    CPPUNIT_TEST(valueOf_float_test_002);
    CPPUNIT_TEST(valueOf_float_test_003);
    CPPUNIT_TEST(valueOf_float_test_004);
    CPPUNIT_TEST(valueOf_float_test_005);
    CPPUNIT_TEST(valueOf_float_test_006);
    CPPUNIT_TEST(valueOf_float_test_007);

    CPPUNIT_TEST(valueOf_double_test_001);
    CPPUNIT_TEST(valueOf_double_test_002);
    CPPUNIT_TEST(valueOf_double_test_003);
    CPPUNIT_TEST(valueOf_double_test_004);
    CPPUNIT_TEST(valueOf_double_test_005);
    CPPUNIT_TEST(valueOf_double_test_006);
    CPPUNIT_TEST(valueOf_double_test_007);
    CPPUNIT_TEST(valueOf_double_test_008);
    CPPUNIT_TEST_SUITE_END();
}; // class valueOf
=====================================================================
Found a 75 line (288 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

void callVirtualMethod(
    void * pAdjustedThisPtr,
    sal_Int32 nVtableIndex,
    void * pRegisterReturn,
    typelib_TypeClass eReturnType,
    sal_Int32 * pStackLongs,
    sal_Int32 nStackLongs )
{
	// parameter list is mixed list of * and values
	// reference parameters are pointers
    
	OSL_ENSURE( pStackLongs && pAdjustedThisPtr, "### null ptr!" );
	OSL_ENSURE( (sizeof(void *) == 4) && (sizeof(sal_Int32) == 4), "### unexpected size of int!" );
	OSL_ENSURE( nStackLongs && pStackLongs, "### no stack in callVirtualMethod !" );
    
    // never called
    if (! pAdjustedThisPtr) CPPU_CURRENT_NAMESPACE::dummy_can_throw_anything("xxx"); // address something

	volatile long edx = 0, eax = 0; // for register returns
    void * stackptr;
	asm volatile (
        "mov   %%esp, %6\n\t"
		// copy values
		"mov   %0, %%eax\n\t"
		"mov   %%eax, %%edx\n\t"
		"dec   %%edx\n\t"
		"shl   $2, %%edx\n\t"
		"add   %1, %%edx\n"
		"Lcopy:\n\t"
		"pushl 0(%%edx)\n\t"
		"sub   $4, %%edx\n\t"
		"dec   %%eax\n\t"
		"jne   Lcopy\n\t"
		// do the actual call
		"mov   %2, %%edx\n\t"
		"mov   0(%%edx), %%edx\n\t"
		"mov   %3, %%eax\n\t"
		"shl   $2, %%eax\n\t"
		"add   %%eax, %%edx\n\t"
		"mov   0(%%edx), %%edx\n\t"
		"call  *%%edx\n\t"
		// save return registers
 		"mov   %%eax, %4\n\t"
 		"mov   %%edx, %5\n\t"
		// cleanup stack
        "mov   %6, %%esp\n\t"
		:
        : "m"(nStackLongs), "m"(pStackLongs), "m"(pAdjustedThisPtr),
          "m"(nVtableIndex), "m"(eax), "m"(edx), "m"(stackptr)
        : "eax", "edx" );
	switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
=====================================================================
Found a 72 line (288 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{

void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if OSL_DEBUG_LEVEL > 1
    char const * start = p;
#endif

    // example: N3com3sun4star4lang24IllegalArgumentExceptionE

	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N

    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }

#if OSL_DEBUG_LEVEL > 1
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;

    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;

    void * m_hApp;

public:
    RTTI() SAL_THROW( () );
    ~RTTI() SAL_THROW( () );

    type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW( () );
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
    : m_hApp( dlopen( 0, RTLD_LAZY ) )
=====================================================================
Found a 42 line (287 tokens) duplication in the following files: 
Starting at line 415 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/swpossizetabpage.cxx
Starting at line 519 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/frmdlg/frmpage.cxx

		int aSizeOf = sizeof(FrmMap);
		if( pMap == aVParaHtmlMap)
			return sizeof(aVParaHtmlMap) / aSizeOf;
		if( pMap == aVAsCharHtmlMap)
			return sizeof(aVAsCharHtmlMap) / aSizeOf;
		if( pMap == aHParaHtmlMap)
			return sizeof(aHParaHtmlMap) / aSizeOf;
		if( pMap == aHParaHtmlAbsMap)
			return sizeof(aHParaHtmlAbsMap) / aSizeOf;
		if ( pMap == aVPageMap )
			return sizeof(aVPageMap) / aSizeOf;
		if ( pMap == aVPageHtmlMap )
			return sizeof(aVPageHtmlMap) / aSizeOf;
		if ( pMap == aVAsCharMap )
			return sizeof(aVAsCharMap) / aSizeOf;
		if ( pMap == aVParaMap )
			return sizeof(aVParaMap) / aSizeOf;
		if ( pMap == aHParaMap )
			return sizeof(aHParaMap) / aSizeOf;
		if ( pMap == aHFrameMap )
			return sizeof(aHFrameMap) / aSizeOf;
        // OD 19.09.2003 #i18732# - own vertical alignment map for to frame anchored objects
        if ( pMap == aVFrameMap )
            return sizeof(aVFrameMap) / aSizeOf;
		if ( pMap == aHCharMap )
			return sizeof(aHCharMap) / aSizeOf;
		if ( pMap == aHCharHtmlMap )
			return sizeof(aHCharHtmlMap) / aSizeOf;
		if ( pMap == aHCharHtmlAbsMap )
			return sizeof(aHCharHtmlAbsMap) / aSizeOf;
		if ( pMap == aVCharMap )
			return sizeof(aVCharMap) / aSizeOf;
		if ( pMap == aVCharHtmlMap )
			return sizeof(aVCharHtmlMap) / aSizeOf;
		if ( pMap == aVCharHtmlAbsMap )
			return sizeof(aVCharHtmlAbsMap) / aSizeOf;
		if ( pMap == aHPageHtmlMap )
			return sizeof(aHPageHtmlMap) / aSizeOf;
		if ( pMap == aHFlyHtmlMap )
			return sizeof(aHFlyHtmlMap) / aSizeOf;
		if ( pMap == aVFlyHtmlMap )
			return sizeof(aVFlyHtmlMap) / aSizeOf;
=====================================================================
Found a 27 line (287 tokens) duplication in the following files: 
Starting at line 2605 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2327 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonDocumentVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0x10 MSO_I, 0x14 MSO_I },
	{ 0xa MSO_I, 0x14 MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0xe MSO_I, 0x12 MSO_I }
};
static const sal_uInt16 mso_sptActionButtonDocumentSegm[] =
{
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,

	0x4000, 0x0004, 0x6001, 0x8000,
	0x4000, 0x0002, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptActionButtonDocumentCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 20 line (287 tokens) duplication in the following files: 
Starting at line 1715 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1511 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptQuadArrowCalloutVert[] =
{
	{ 0 MSO_I, 0 MSO_I }, { 3 MSO_I, 0 MSO_I }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 10800, 0 }, { 5 MSO_I, 2 MSO_I }, { 7 MSO_I, 2 MSO_I }, { 7 MSO_I, 0 MSO_I },
	{ 4 MSO_I, 0 MSO_I }, { 4 MSO_I, 3 MSO_I }, { 6 MSO_I, 3 MSO_I }, { 6 MSO_I, 1 MSO_I },
	{ 21600, 10800 }, { 6 MSO_I, 5 MSO_I }, { 6 MSO_I, 7 MSO_I }, { 4 MSO_I, 7 MSO_I },
	{ 4 MSO_I, 4 MSO_I }, { 7 MSO_I, 4 MSO_I }, { 7 MSO_I, 6 MSO_I }, { 5 MSO_I, 6 MSO_I },
	{ 10800, 21600 }, { 1 MSO_I, 6 MSO_I }, { 3 MSO_I, 6 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0 MSO_I, 4 MSO_I }, { 0 MSO_I, 7 MSO_I }, { 2 MSO_I, 7 MSO_I }, { 2 MSO_I, 5 MSO_I },
	{ 0, 10800 }, { 2 MSO_I, 1 MSO_I }, { 2 MSO_I, 3 MSO_I }, { 0 MSO_I, 3 MSO_I }
};
static const sal_uInt16 mso_sptQuadArrowCalloutSegm[] =
{
	0x4000, 0x001f, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptQuadArrowCalloutCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 11 line (287 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 620 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2670 - 267f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2680 - 268f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2690 - 269f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26a0 - 26af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,27,27,27,27, 0,27,27,27,27, 0, 0,27,27,27,27,// 2700 - 270f
=====================================================================
Found a 62 line (287 tokens) duplication in the following files: 
Starting at line 2735 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 3486 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

	return ret;
}

//*************************************************************************
// scopedName
//*************************************************************************
OString scopedName(const OString& scope, const OString& type,
				   sal_Bool bNoNameSpace)
{
    sal_Int32 nPos = type.lastIndexOf( '/' );
	if (nPos == -1)
		return type;

	if (bNoNameSpace)
		return type.copy(nPos+1);

	OStringBuffer tmpBuf(type.getLength()*2);
    nPos = 0;
    do
	{
		tmpBuf.append("::");
		tmpBuf.append(type.getToken(0, '/', nPos));
	} while( nPos != -1 );

	return tmpBuf.makeStringAndClear();
}

//*************************************************************************
// shortScopedName
//*************************************************************************
OString shortScopedName(const OString& scope, const OString& type,
				   		sal_Bool bNoNameSpace)
{
    sal_Int32 nPos = type.lastIndexOf( '/' );
    if( nPos == -1 )
        return OString();

	if (bNoNameSpace)
		return OString();

	// scoped name only if the namespace is not equal
	if (scope.lastIndexOf('/') > 0)
	{
		OString tmpScp(scope.copy(0, scope.lastIndexOf('/')));
		OString tmpScp2(type.copy(0, nPos));

		if (tmpScp == tmpScp2)
			return OString();
	}

    OString aScope( type.copy( 0, nPos ) );
	OStringBuffer tmpBuf(aScope.getLength()*2);

    nPos = 0;
    do
	{
		tmpBuf.append("::");
		tmpBuf.append(aScope.getToken(0, '/', nPos));
	} while( nPos != -1 );

	return tmpBuf.makeStringAndClear();
}
=====================================================================
Found a 16 line (286 tokens) duplication in the following files: 
Starting at line 3792 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3416 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};
static const SvxMSDffVertPair mso_sptSeal16Vert[] =	// adj value 0 -> 10800
{
	{ 0x05 MSO_I, 0x06 MSO_I }, { 0x07 MSO_I, 0x08 MSO_I }, { 0x09 MSO_I, 0x0a MSO_I }, { 0x0b MSO_I, 0x0c MSO_I },
	{ 0x0d MSO_I, 0x0e MSO_I }, { 0x0f MSO_I, 0x10 MSO_I }, { 0x11 MSO_I, 0x12 MSO_I }, { 0x13 MSO_I, 0x14 MSO_I },
	{ 0x15 MSO_I, 0x16 MSO_I }, { 0x17 MSO_I, 0x18 MSO_I }, { 0x19 MSO_I, 0x1a MSO_I }, { 0x1b MSO_I, 0x1c MSO_I },
	{ 0x1d MSO_I, 0x1e MSO_I }, { 0x1f MSO_I, 0x20 MSO_I }, { 0x21 MSO_I, 0x22 MSO_I }, { 0x23 MSO_I, 0x24 MSO_I },
	{ 0x25 MSO_I, 0x26 MSO_I }, { 0x27 MSO_I, 0x28 MSO_I }, { 0x29 MSO_I, 0x2a MSO_I }, { 0x2b MSO_I, 0x2c MSO_I },
	{ 0x2d MSO_I, 0x2e MSO_I }, { 0x2f MSO_I, 0x30 MSO_I }, { 0x31 MSO_I, 0x32 MSO_I }, { 0x33 MSO_I, 0x34 MSO_I },
	{ 0x35 MSO_I, 0x36 MSO_I }, { 0x37 MSO_I, 0x38 MSO_I }, { 0x39 MSO_I, 0x3a MSO_I }, { 0x3b MSO_I, 0x3c MSO_I },
	{ 0x3d MSO_I, 0x3e MSO_I }, { 0x3f MSO_I, 0x40 MSO_I }, { 0x41 MSO_I, 0x42 MSO_I }, { 0x43 MSO_I, 0x44 MSO_I },
	{ 0x05 MSO_I, 0x06 MSO_I }
};
static const SvxMSDffCalculationData mso_sptSeal16Calc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },		// 0x00
=====================================================================
Found a 49 line (286 tokens) duplication in the following files: 
Starting at line 339 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/graphhelp.cxx
Starting at line 2447 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx

           sal::static_int_cast< unsigned long >(aSizePix.Height()) >
               nMaximumExtent ) )
	{
		const Size  aOldSizePix( aSizePix );
		double      fWH = static_cast< double >( aSizePix.Width() ) / aSizePix.Height();

		if ( fWH <= 1.0 )
		{
			aSizePix.Width() = FRound( nMaximumExtent * fWH );
			aSizePix.Height() = nMaximumExtent;
		}
		else
		{
			aSizePix.Width() = nMaximumExtent;
			aSizePix.Height() = FRound(  nMaximumExtent / fWH );
		}
		
		aDrawSize.Width() = FRound( ( static_cast< double >( aDrawSize.Width() ) * aSizePix.Width() ) / aOldSizePix.Width() );
		aDrawSize.Height() = FRound( ( static_cast< double >( aDrawSize.Height() ) * aSizePix.Height() ) / aOldSizePix.Height() );
	}
	
	Size 		aFullSize;
	Point		aBackPosPix;
	Rectangle 	aOverlayRect;

	// calculate addigtional positions and sizes if an overlay image is used
	if (  pOverlay )
	{
		aFullSize = Size( nMaximumExtent, nMaximumExtent );
		aOverlayRect = Rectangle( aNullPt, aFullSize  );
		
		aOverlayRect.Intersection( pOverlayRect ? *pOverlayRect : Rectangle( aNullPt, pOverlay->GetSizePixel() ) );
 		
		if ( !aOverlayRect.IsEmpty() )
			aBackPosPix = Point( ( nMaximumExtent - aSizePix.Width() ) >> 1, ( nMaximumExtent - aSizePix.Height() ) >> 1 );
		else
			pOverlay = NULL;
	}
	else
	{
		aFullSize = aSizePix;
		pOverlay = NULL;
	}
		
	// draw image(s) into VDev and get resulting image
	if ( aVDev.SetOutputSizePixel( aFullSize ) )
	{
		// draw metafile into VDev
		const_cast<GDIMetaFile *>(this)->WindStart();
=====================================================================
Found a 19 line (286 tokens) duplication in the following files: 
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 581 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_MS_1254,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0xFFFF,0x201A,0x0192,0x201E,0x2026,0x2020,0x2021,
                0x02C6,0x2030,0x0160,0x2039,0x0152,0xFFFF,0xFFFF,0xFFFF,
=====================================================================
Found a 61 line (286 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/getopt.c
Starting at line 7 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_getopt.c

int opterr = 1;
int optind = 1;
int optopt;
char *optarg;

int
    getopt(int argc, char *const argv[], const char *opts)
{
    static int sp = 1;
    register int c;
    register char *cp;

    if (sp == 1)
	{
        if (optind >= argc ||
            argv[optind][0] != '-' || argv[optind][1] == '\0')
            return -1;
        else
            if (strcmp(argv[optind], "--") == 0)
            {
                optind++;
                return -1;
            }
	}
    optopt = c = argv[optind][sp];
    if (c == ':' || (cp = strchr(opts, c)) == 0)
    {
        ERR(": illegal option -- ", c);
        if (argv[optind][++sp] == '\0')
        {
            optind++;
            sp = 1;
        }
        return '?';
    }
    if (*++cp == ':')
    {
        if (argv[optind][sp + 1] != '\0')
            optarg = &argv[optind++][sp + 1];
        else
            if (++optind >= argc)
            {
                ERR(": option requires an argument -- ", c);
                sp = 1;
                return '?';
            }
            else
                optarg = argv[optind++];
        sp = 1;
    }
    else
    {
        if (argv[optind][++sp] == '\0')
        {
            sp = 1;
            optind++;
        }
        optarg = 0;
    }
    return c;
}
=====================================================================
Found a 47 line (286 tokens) duplication in the following files: 
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

using ::rtl::OUString;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::uno::XInterface;
using ::com::sun::star::uno::Exception;
using ::com::sun::star::uno::RuntimeException;
using ::com::sun::star::uno::UNO_QUERY;
using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::makeAny;
using ::com::sun::star::graphic::XGraphic;
using namespace ::com::sun::star;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::embed;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::ui;

// Image sizes for our toolbars/menus
const sal_Int32 IMAGE_SIZE_NORMAL         = 16;
const sal_Int32 IMAGE_SIZE_LARGE          = 26;
const sal_Int16 MAX_IMAGETYPE_VALUE       = ::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST|
                                            ::com::sun::star::ui::ImageType::SIZE_LARGE;

static const char   IMAGE_FOLDER[]        = "images";
static const char   BITMAPS_FOLDER[]      = "Bitmaps";
static const char   IMAGE_EXTENSION[]     = ".png";

static const char*  IMAGELIST_XML_FILE[]  =
{
    "sc_imagelist.xml",
    "lc_imagelist.xml",
    "sch_imagelist.xml",
    "lch_imagelist.xml"
};

static const char*  BITMAP_FILE_NAMES[]   =
{
    "sc_userimages.png",
    "lc_userimages.png",
    "sch_userimages.png",
    "lch_userimages.png"
};

namespace framework
{

static osl::Mutex*          pImageListWrapperMutex = 0;
=====================================================================
Found a 63 line (286 tokens) duplication in the following files: 
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

	fprintf( stderr, "calling %s, nFunctionIndex=%d\n", cstr.getStr(), nFunctionIndex );
#endif

	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[2] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
		(*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
		    pCppI->getBridge()->getCppEnv(),
		    (void **)&pInterface, pCppI->getOid().pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[0] ),
                        &pInterface, pTD, cpp_acquire );
=====================================================================
Found a 68 line (286 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

			pUnoArgs[nPos] = pCppStack;
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
=====================================================================
Found a 92 line (285 tokens) duplication in the following files: 
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

}

//=========================================================================
//
// XInterface methods.
//
//=========================================================================

// virtual
void SAL_CALL Content::acquire()
    throw()
{
	ContentImplHelper::acquire();
}

//=========================================================================
// virtual
void SAL_CALL Content::release()
    throw()
{
	ContentImplHelper::release();
}

//=========================================================================
// virtual
uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
    throw ( uno::RuntimeException )
{
    uno::Any aRet;

	// @@@ Add support for additional interfaces.
#if 0
  	aRet = cppu::queryInterface( rType,
                                 static_cast< yyy::Xxxxxxxxx * >( this ) );
#endif

 	return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface( rType );
}

//=========================================================================
//
// XTypeProvider methods.
//
//=========================================================================

XTYPEPROVIDER_COMMON_IMPL( Content );

//=========================================================================
// virtual
uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
    throw( uno::RuntimeException )
{
	// @@@ Add own interfaces.

    static cppu::OTypeCollection* pCollection = 0;

	if ( !pCollection )
	{
		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
	  	if ( !pCollection )
	  	{
            static cppu::OTypeCollection aCollection(
                CPPU_TYPE_REF( lang::XTypeProvider ),
                CPPU_TYPE_REF( lang::XServiceInfo ),
                CPPU_TYPE_REF( lang::XComponent ),
                CPPU_TYPE_REF( ucb::XContent ),
                CPPU_TYPE_REF( ucb::XCommandProcessor ),
                CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
                CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
                CPPU_TYPE_REF( beans::XPropertyContainer ),
                CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
                CPPU_TYPE_REF( container::XChild ) );
	  		pCollection = &aCollection;
		}
	}

	return (*pCollection).getTypes();
}

//=========================================================================
//
// XServiceInfo methods.
//
//=========================================================================

// virtual
rtl::OUString SAL_CALL Content::getImplementationName()
    throw( uno::RuntimeException )
{
    // @@@ Adjust implementation name. 
    // Prefix with reversed company domain name.
    return rtl::OUString::createFromAscii( "com.sun.star.comp.myucp.Content" );
=====================================================================
Found a 24 line (285 tokens) duplication in the following files: 
Starting at line 1518 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 1908 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

        }
        
        if (!rv) {
            if (compoundflag && 
             !(rv = prefix_check(st, i, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN, compoundflag))) {
                if ((rv = suffix_check(st, i, 0, NULL, NULL, 0, NULL,
                        FLAG_NULL, compoundflag, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN)) && !hu_mov_rule &&
                    ((SfxEntry*)sfx)->getCont() &&
                        ((compoundforbidflag && TESTAFF(((SfxEntry*)sfx)->getCont(), compoundforbidflag, 
                            ((SfxEntry*)sfx)->getContLen())) || (compoundend &&
                        TESTAFF(((SfxEntry*)sfx)->getCont(), compoundend, 
                            ((SfxEntry*)sfx)->getContLen())))) {
                        rv = NULL;
                }
            }
            
            if (rv ||
              (((wordnum == 0) && compoundbegin &&
                ((rv = suffix_check(st, i, 0, NULL, NULL, 0, NULL, FLAG_NULL, compoundbegin, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN)) ||
                (rv = prefix_check(st, i, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN, compoundbegin)))) ||
              ((wordnum > 0) && compoundmiddle &&
                ((rv = suffix_check(st, i, 0, NULL, NULL, 0, NULL, FLAG_NULL, compoundmiddle, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN)) ||
                (rv = prefix_check(st, i, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN, compoundmiddle)))))
              ) {
=====================================================================
Found a 81 line (284 tokens) duplication in the following files: 
Starting at line 1214 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/oustring/rtl_ustr.cxx
Starting at line 1312 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/oustring/rtl_ustr.cxx

        void getToken_000()
            {
                rtl_ustr_ascii_compareIgnoreAsciiCase( NULL, NULL);
                // should not GPF
            }

        void ascii_compareIgnoreAsciiCase_000_1()
            {
                rtl::OUString aStr1 = rtl::OUString::createFromAscii("Line must be equal.");
                rtl_ustr_ascii_compareIgnoreAsciiCase( aStr1.getStr(), NULL);
                // should not GPF
            }
        void ascii_compareIgnoreAsciiCase_001()
            {
                rtl::OUString suStr1;
                rtl::OString sStr2;

                sal_Int32 nValue = rtl_ustr_ascii_compareIgnoreAsciiCase( suStr1, sStr2.getStr());
                CPPUNIT_ASSERT_MESSAGE("compare failed, strings are equal.", nValue == 0);
            }

        void ascii_compareIgnoreAsciiCase_002()
            {
                rtl::OUString suStr1 = rtl::OUString::createFromAscii("Line must be equal.");
                rtl::OString sStr2 =                                  "Line must be equal.";

                sal_Int32 nValue = rtl_ustr_ascii_compareIgnoreAsciiCase( suStr1.getStr(), sStr2.getStr());
                CPPUNIT_ASSERT_MESSAGE("compare failed, strings are equal.", nValue == 0);
            }

        void ascii_compareIgnoreAsciiCase_002_1()
            {
                rtl::OUString suStr1 = rtl::OUString::createFromAscii("Line must be equal, when ignore case.");
                rtl::OString sStr2 =                                 "LINE MUST BE EQUAL, WHEN IGNORE CASE.";

                sal_Int32 nValue = rtl_ustr_ascii_compareIgnoreAsciiCase( suStr1.getStr(), sStr2.getStr());
                CPPUNIT_ASSERT_MESSAGE("compare failed, strings are equal (if case insensitve).", nValue == 0);
            }
        
        void ascii_compareIgnoreAsciiCase_003()
            {
                rtl::OUString suStr1 = rtl::OUString::createFromAscii("Line must differ.");
                rtl::OString sStr2 = "Line foo bar, ok, differ.";

                sal_Int32 nValue = rtl_ustr_ascii_compareIgnoreAsciiCase( suStr1.getStr(), sStr2.getStr());
                CPPUNIT_ASSERT_MESSAGE("compare failed, strings differ.", nValue != 0);
            }
        
        //! LLA: some more tests with some high level strings

        // void ascii_compareIgnoreAsciiCase_001()
        //     {
        //         rtl::OUString suStr1 = rtl::OUString::createFromAscii("change this to ascii upper case.");
        //         rtl::OUString aShouldStr1 = rtl::OUString::createFromAscii("CHANGE THIS TO ASCII UPPER CASE.");
        //         
        //         sal_uInt32 nLength = suStr1.getLength() * sizeof(sal_Unicode);
        //         sal_Unicode* pStr = (sal_Unicode*) malloc(nLength + sizeof(sal_Unicode)); // length + null terminator
        //         CPPUNIT_ASSERT_MESSAGE("can't get memory for test", pStr != NULL);
        //         memset(pStr, 0, nLength + sizeof(sal_Unicode));
        //         memcpy(pStr, suStr1.getStr(), nLength);
        // 
        //         rtl_ustr_ascii_compareIgnoreAsciiCase( pStr );
        //         rtl::OUString suStr(pStr, suStr1.getLength());
        //         
        //         CPPUNIT_ASSERT_MESSAGE("failed", aShouldStr1.equals(suStr) == sal_True);
        //         free(pStr);
        //     }

        // Change the following lines only, if you add, remove or rename 
        // member functions of the current class, 
        // because these macros are need by auto register mechanism.
        
        CPPUNIT_TEST_SUITE(ascii_compareIgnoreAsciiCase);
        CPPUNIT_TEST(ascii_compareIgnoreAsciiCase_000);
        CPPUNIT_TEST(ascii_compareIgnoreAsciiCase_000_1);
        CPPUNIT_TEST(ascii_compareIgnoreAsciiCase_001);
        CPPUNIT_TEST(ascii_compareIgnoreAsciiCase_002);
        CPPUNIT_TEST(ascii_compareIgnoreAsciiCase_002_1);
        CPPUNIT_TEST(ascii_compareIgnoreAsciiCase_003);
        CPPUNIT_TEST_SUITE_END();
    }; // class ascii_compareIgnoreAsciiCase
=====================================================================
Found a 43 line (284 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BUser.cxx
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YUser.cxx

::rtl::OUString OMySQLUser::getPrivilegeString(sal_Int32 nRights) const
{
	::rtl::OUString sPrivs;
	if((nRights & Privilege::INSERT) == Privilege::INSERT)
		sPrivs += ::rtl::OUString::createFromAscii("INSERT");
	
	if((nRights & Privilege::DELETE) == Privilege::DELETE)
	{
		if(sPrivs.getLength())
			sPrivs += ::rtl::OUString::createFromAscii(",");
		sPrivs += ::rtl::OUString::createFromAscii("DELETE");
	}
	
	if((nRights & Privilege::UPDATE) == Privilege::UPDATE)
	{
		if(sPrivs.getLength())
			sPrivs += ::rtl::OUString::createFromAscii(",");
		sPrivs += ::rtl::OUString::createFromAscii("UPDATE");
	}
	
	if((nRights & Privilege::ALTER) == Privilege::ALTER)
	{
		if(sPrivs.getLength())
			sPrivs += ::rtl::OUString::createFromAscii(",");
		sPrivs += ::rtl::OUString::createFromAscii("ALTER");
	}
	
	if((nRights & Privilege::SELECT) == Privilege::SELECT)
	{
		if(sPrivs.getLength())
			sPrivs += ::rtl::OUString::createFromAscii(",");
		sPrivs += ::rtl::OUString::createFromAscii("SELECT");
	}
	
	if((nRights & Privilege::REFERENCE) == Privilege::REFERENCE)
	{
		if(sPrivs.getLength())
			sPrivs += ::rtl::OUString::createFromAscii(",");
		sPrivs += ::rtl::OUString::createFromAscii("REFERENCES");
	}

	return sPrivs;
}
=====================================================================
Found a 51 line (283 tokens) duplication in the following files: 
Starting at line 5511 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5773 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

		Set_UInt32( pData, lcbSttbFnm);
        Set_UInt32( pData, fcPlcfLst );
        Set_UInt32( pData, lcbPlcfLst );
        Set_UInt32( pData, fcPlfLfo );
        Set_UInt32( pData, lcbPlfLfo );
        Set_UInt32( pData, fcPlcftxbxBkd );
        Set_UInt32( pData, lcbPlcftxbxBkd );
        Set_UInt32( pData, fcPlcfHdrtxbxBkd );
        Set_UInt32( pData, lcbPlcfHdrtxbxBkd );

        pData += 0x372 - 0x302; // Pos + Offset (fcSttbListNames - fcDocUndo)
        Set_UInt32( pData, fcSttbListNames );
        Set_UInt32( pData, lcbSttbListNames );

        pData += 0x382 - 0x37A;
        Set_UInt32( pData, fcMagicTable );
        Set_UInt32( pData, lcbMagicTable );

        pData += 0x3FA - 0x38A;
        Set_UInt16( pData, (UINT16)0x0002);
        Set_UInt16( pData, (UINT16)0x00D9);
    }

    rStrm.Write( pDataPtr, fcMin );
    delete[] pDataPtr;
    return 0 == rStrm.GetError();
}

rtl_TextEncoding WW8Fib::GetFIBCharset(UINT16 chs)
{
    ASSERT(chs <= 0x100, "overflowed winword charset set");
    rtl_TextEncoding eCharSet =
        (0x0100 == chs)
        ? RTL_TEXTENCODING_APPLE_ROMAN
        : rtl_getTextEncodingFromWindowsCharset( static_cast<BYTE>(chs) );
    return eCharSet;
}

WW8Style::WW8Style(SvStream& rStream, WW8Fib& rFibPara)
    : rFib(rFibPara), rSt(rStream), cstd(0), cbSTDBaseInFile(0),
    stiMaxWhenSaved(0), istdMaxFixedWhenSaved(0), nVerBuiltInNamesWhenSaved(0),
    ftcStandardChpStsh(0), ftcStandardChpCJKStsh(0), ftcStandardChpCTLStsh(0)
{
    nStyleStart = rFib.fcStshf;
    nStyleLen = rFib.lcbStshf;

    rSt.Seek(nStyleStart);

    USHORT cbStshi = 0; //  2 bytes size of the following STSHI structure

    if (rFib.GetFIBVersion() <= ww::eWW2)
=====================================================================
Found a 10 line (283 tokens) duplication in the following files: 
Starting at line 770 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 855 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 0, 5, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb40 - fb4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb50 - fb5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb60 - fb6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb70 - fb7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb80 - fb8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb90 - fb9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fba0 - fbaf
     5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fbb0 - fbbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fbc0 - fbcf
     0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbd0 - fbdf
=====================================================================
Found a 33 line (283 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/microsft/tempnam.c
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/borland/tempnam.c

	unsigned int _psp = rand();
#endif

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", _psp );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q   = buf[3];
=====================================================================
Found a 19 line (282 tokens) duplication in the following files: 
Starting at line 948 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1047 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_MS_1258,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0xFFFF,0x201A,0x0192,0x201E,0x2026,0x2020,0x2021,
                0x02C6,0x2030,0xFFFF,0x2039,0x0152,0xFFFF,0xFFFF,0xFFFF,
=====================================================================
Found a 52 line (282 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/backtrace.c
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/backtrace.c

	asm("ta 3");
#endif
	/* get stack- and framepointer */
	setjmp(ctx);
	fp = (struct frame*)(((size_t*)(ctx))[FRAME_PTR_OFFSET]);
	for ( i=0; (i<FRAME_OFFSET) && (fp!=0); i++)
		fp = fp->fr_savfp;

	/* iterate through backtrace */
	for (i=0; fp && fp->fr_savpc && i<max_frames; i++)
	{
		/* store frame */
		*(buffer++) = (void *)fp->fr_savpc;
		/* next frame */
		fp=fp->fr_savfp;
	}
	return i;
}

void backtrace_symbols_fd( void **buffer, int size, int fd )
{
	FILE	*fp = fdopen( fd, "w" );

	if ( fp )
	{
		void **pFramePtr;

		for ( pFramePtr = buffer; size > 0 && pFramePtr && *pFramePtr; pFramePtr++, size-- )
		{
			Dl_info		dli;
			ptrdiff_t	offset;

			if ( 0 != dladdr( *pFramePtr, &dli ) )
			{
				if ( dli.dli_fname && dli.dli_fbase )
				{
					offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase;
					fprintf( fp, "%s+0x%x", dli.dli_fname, offset );
				}
				if ( dli.dli_sname && dli.dli_saddr )
				{
					offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr;
					fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset );
				}
			}
			fprintf( fp, "[0x%x]\n", *pFramePtr );
		}

		fflush( fp );
		fclose( fp );
	}
}
=====================================================================
Found a 51 line (282 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1361 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< sal_Unicode >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
=====================================================================
Found a 56 line (281 tokens) duplication in the following files: 
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuconcustomshape.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/ribbar/concustomshape.cxx

void ConstCustomShape::SetAttributes( SdrObject* pObj )
{
	sal_Bool bAttributesAppliedFromGallery = sal_False;

	if ( GalleryExplorer::GetSdrObjCount( GALLERY_THEME_POWERPOINT ) )
	{
		std::vector< rtl::OUString > aObjList;
		if ( GalleryExplorer::FillObjListTitle( GALLERY_THEME_POWERPOINT, aObjList ) )
		{
			sal_uInt16 i;
			for ( i = 0; i < aObjList.size(); i++ )
			{
				if ( aObjList[ i ].equalsIgnoreAsciiCase( aCustomShape ) )
				{
					FmFormModel aFormModel;
					SfxItemPool& rPool = aFormModel.GetItemPool();
					rPool.FreezeIdRanges();
					if ( GalleryExplorer::GetSdrObj( GALLERY_THEME_POWERPOINT, i, &aFormModel ) )
					{
						const SdrObject* pSourceObj = aFormModel.GetPage( 0 )->GetObj( 0 );
						if( pSourceObj )
						{
							const SfxItemSet& rSource = pSourceObj->GetMergedItemSet();
							SfxItemSet aDest( pObj->GetModel()->GetItemPool(), 				// ranges from SdrAttrObj
							SDRATTR_START, SDRATTR_SHADOW_LAST,
							SDRATTR_MISC_FIRST, SDRATTR_MISC_LAST,
							SDRATTR_TEXTDIRECTION, SDRATTR_TEXTDIRECTION,
							// Graphic Attributes
							SDRATTR_GRAF_FIRST, SDRATTR_GRAF_LAST,
							// 3d Properties
							SDRATTR_3D_FIRST, SDRATTR_3D_LAST,
							// CustomShape properties
							SDRATTR_CUSTOMSHAPE_FIRST, SDRATTR_CUSTOMSHAPE_LAST,
							// range from SdrTextObj
							EE_ITEMS_START, EE_ITEMS_END,
							// end
							0, 0);
							aDest.Set( rSource );
							pObj->SetMergedItemSet( aDest );
							sal_Int32 nAngle = pSourceObj->GetRotateAngle();
							if ( nAngle )
							{
								double a = nAngle * F_PI18000;
								pObj->NbcRotate( pObj->GetSnapRect().Center(), nAngle, sin( a ), cos( a ) );
							}
							bAttributesAppliedFromGallery = sal_True;
						}
					}
					break;
				}
			}
		}
	}
	if ( !bAttributesAppliedFromGallery )
	{
        pObj->SetMergedItem( SvxAdjustItem( SVX_ADJUST_CENTER, RES_PARATR_ADJUST ) );
=====================================================================
Found a 10 line (281 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1240 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 11 line (281 tokens) duplication in the following files: 
Starting at line 800 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 815 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d700 - d70f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d710 - d71f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d720 - d72f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d730 - d73f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d740 - d74f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d750 - d75f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d760 - d76f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d770 - d77f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d780 - d78f
=====================================================================
Found a 41 line (281 tokens) duplication in the following files: 
Starting at line 391 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx
Starting at line 465 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx

				ImplGetPoint( aEndingPoint );

				double fA = aIntermediatePoint.X - aStartingPoint.X;
				double fB = aIntermediatePoint.Y - aStartingPoint.Y;
				double fC = aEndingPoint.X - aStartingPoint.X;
				double fD = aEndingPoint.Y - aStartingPoint.Y;

				double fE = fA * ( aStartingPoint.X + aIntermediatePoint.X ) + fB * ( aStartingPoint.Y + aIntermediatePoint.Y );
				double fF = fC * ( aStartingPoint.X + aEndingPoint.X ) + fD * ( aStartingPoint.Y + aEndingPoint.Y );

				double fG = 2.0 * ( fA * ( aEndingPoint.Y - aIntermediatePoint.Y ) - fB * ( aEndingPoint.X - aIntermediatePoint.X ) );

				aCenterPoint.X = ( fD * fE - fB * fF ) / fG;
				aCenterPoint.Y = ( fA * fF - fC * fE ) / fG;

				if ( fG != 0 )
				{
					double fStartAngle = ImplGetOrientation( aCenterPoint, aStartingPoint );
					double fInterAngle = ImplGetOrientation( aCenterPoint, aIntermediatePoint );
					double fEndAngle = ImplGetOrientation( aCenterPoint, aEndingPoint );

					if ( fStartAngle > fEndAngle )
					{
						nSwitch ^=1;
						aIntermediatePoint = aEndingPoint;
						aEndingPoint = aStartingPoint;
						aStartingPoint = aIntermediatePoint;
						fG = fStartAngle;
						fStartAngle = fEndAngle;
						fEndAngle = fG;
					}
					if ( ! ( fInterAngle > fStartAngle )  && ( fInterAngle < fEndAngle ) )
					{
						nSwitch ^=1;
						aIntermediatePoint = aEndingPoint;
						aEndingPoint = aStartingPoint;
						aStartingPoint = aIntermediatePoint;
						fG = fStartAngle;
						fStartAngle = fEndAngle;
						fEndAngle = fG;
					}
=====================================================================
Found a 66 line (281 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

				for ( sal_Int16 n = 0; n < xAttribs->getLength(); n++ )
				{
					pImageEntry = m_aImageMap.find( xAttribs->getNameByIndex( n ) );
					if ( pImageEntry != m_aImageMap.end() )
					{
						switch ( pImageEntry->second )
						{
							case IMG_ATTRIBUTE_HREF:
							{
								m_pImages->aURL = xAttribs->getValueByIndex( n );
							}
							break;

							case IMG_ATTRIBUTE_MASKCOLOR:
							{
								OUString aColor = xAttribs->getValueByIndex( n );

								if ( aColor.getLength() > 0 )
								{
									if ( aColor.getStr()[0] == '#' )
									{
										// the color value is given as #rrggbb and used the hexadecimal system!!
										sal_uInt32 nColor = aColor.copy( 1 ).toInt32( 16 );

										m_pImages->aMaskColor = Color( COLORDATA_RGB( nColor ) );
									}
								}
							}
							break;

							case IMG_ATTRIBUTE_MASKURL:
							{
								m_pImages->aMaskURL = xAttribs->getValueByIndex( n );
							}
							break;

							case IMG_ATTRIBUTE_MASKMODE:
							{
								sal_Int32 nHashCode = xAttribs->getValueByIndex( n ).hashCode();
								if ( nHashCode == m_nHashMaskModeBitmap )
									m_pImages->nMaskMode = ImageMaskMode_Bitmap;
								else if ( nHashCode == m_nHashMaskModeColor )
									m_pImages->nMaskMode = ImageMaskMode_Color;
								else
								{
									delete m_pImages;
									m_pImages = NULL;

									OUString aErrorMessage = getErrorLineString();
									aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Attribute image:maskmode must be 'maskcolor' or 'maskbitmap'!" ));
									throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
								}
							}
							break;

							case IMG_ATTRIBUTE_HIGHCONTRASTURL:
							{
								m_pImages->aHighContrastURL = xAttribs->getValueByIndex( n );
							}
							break;

							case IMG_ATTRIBUTE_HIGHCONTRASTMASKURL:
							{
								m_pImages->aHighContrastMaskURL = xAttribs->getValueByIndex( n );
							}
							break;
=====================================================================
Found a 46 line (281 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/tempnam.c
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/os2/ibm/tempnam.c

extern int access();
int d_access();

/* MSC stdio.h defines P_tmpdir, so let's undo it here */
/* Under DOS leave the default tmpdir pointing here!		*/
#ifdef P_tmpdir
#undef P_tmpdir
#endif
static char *P_tmpdir = "";

char *
tempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL )
      tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL )
      tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", getpid() );
=====================================================================
Found a 56 line (280 tokens) duplication in the following files: 
Starting at line 2097 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx
Starting at line 1118 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/TransformerBase.cxx

								xFactory->createInstance(
									OUString::createFromAscii(
						"com.sun.star.i18n.CharacterClassification_Unicode") ),
								UNO_QUERY );

							OSL_ENSURE( xCharClass.is(),
					"can't instantiate character clossification component" );
						}
						catch( com::sun::star::uno::Exception& )
						{
						}
					}
				}
				if( xCharClass.is() )
				{
					sal_Int16 nType = xCharClass->getType( rName, i );

					switch( nType )
					{
					case UnicodeType::UPPERCASE_LETTER:		// Lu
					case UnicodeType::LOWERCASE_LETTER:		// Ll
					case UnicodeType::TITLECASE_LETTER:		// Lt
					case UnicodeType::OTHER_LETTER:			// Lo
					case UnicodeType::LETTER_NUMBER: 		// Nl
						bValidChar = sal_True;
						break;
					case UnicodeType::NON_SPACING_MARK:		// Ms
					case UnicodeType::ENCLOSING_MARK:		// Me
					case UnicodeType::COMBINING_SPACING_MARK:	//Mc
					case UnicodeType::MODIFIER_LETTER:		// Lm
					case UnicodeType::DECIMAL_DIGIT_NUMBER:	// Nd
						bValidChar = i > 0;
						break;
					}
				}
			}
		}
		if( bValidChar )
		{
			aBuffer.append( c );
		}
		else
		{
			aBuffer.append( static_cast< sal_Unicode >( '_' ) );
			if( c > 0x0fff )
				aBuffer.append( static_cast< sal_Unicode >(
							aHexTab[ (c >> 12) & 0x0f ]  ) );
			if( c > 0x00ff )
				aBuffer.append( static_cast< sal_Unicode >(
						aHexTab[ (c >> 8) & 0x0f ] ) );
			if( c > 0x000f )
				aBuffer.append( static_cast< sal_Unicode >(
						aHexTab[ (c >> 4) & 0x0f ] ) );
			aBuffer.append( static_cast< sal_Unicode >(
						aHexTab[ c & 0x0f ] ) );
			aBuffer.append( static_cast< sal_Unicode >( '_' ) );
=====================================================================
Found a 14 line (280 tokens) duplication in the following files: 
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_OWIDTH),	SC_WID_UNO_OWIDTH,	&getBooleanCppuType(),					0, 0 },
        {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PADJUST),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PBMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_LO_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PINDENT),	ATTR_INDENT,		&getCppuType((sal_Int16*)0),			0, 0 }, //! CONVERT_TWIPS
		{MAP_CHAR_LEN(SC_UNONAME_PISCHDIST),ATTR_SCRIPTSPACE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISFORBID),ATTR_FORBIDDEN_RULES,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHANG),	ATTR_HANGPUNCTUATION,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHYPHEN),ATTR_HYPHENATE,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PLASTADJ),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
=====================================================================
Found a 43 line (280 tokens) duplication in the following files: 
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/privsplt.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/privsplt.cxx

	nOldY=(short)a2Pos.Y();
	Point a3Pos=a2Pos;

	if(eScSplit==SC_SPLIT_HORZ)
	{
		nNewX=(short)aPos.X();
		nDeltaX=nNewX-nOldX;
		a2Pos.X()+=nDeltaX;
		if(a2Pos.X()<aXMovingRange.Min())
		{
			nDeltaX=(short)(aXMovingRange.Min()-a3Pos.X());
			a2Pos.X()=aXMovingRange.Min();
		}
		else if(a2Pos.X()>aXMovingRange.Max())
		{
			nDeltaX=(short)(aXMovingRange.Max()-a3Pos.X());
			a2Pos.X()=aXMovingRange.Max();
		}
	}
	else
	{
		nNewY=(short)aPos.Y();
		nDeltaY=nNewY-nOldY;
		a2Pos.Y()+=nDeltaY;
		if(a2Pos.Y()<aYMovingRange.Min())
		{
			nDeltaY=(short)(aYMovingRange.Min()-a3Pos.Y());
			a2Pos.Y()=aYMovingRange.Min();
		}
		else if(a2Pos.Y()>aYMovingRange.Max())
		{
			nDeltaY=(short)(aYMovingRange.Max()-a3Pos.Y());
			a2Pos.Y()=aYMovingRange.Max();
		}
	}
	SetPosPixel(a2Pos);
	Invalidate();
	Update();
	CtrModified();
}


void ScPrivatSplit::ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground )
=====================================================================
Found a 98 line (280 tokens) duplication in the following files: 
Starting at line 862 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/signal.c
Starting at line 342 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/signal.c

	pHandler = calloc(1, sizeof(oslSignalHandlerImpl));

	if (pHandler != NULL)
	{	
		pHandler->Handler = Handler;
		pHandler->pData   = pData;

		osl_acquireMutex(SignalListMutex);
	
		pHandler->pNext = SignalList;
		SignalList      = pHandler;

		osl_releaseMutex(SignalListMutex);

		return (pHandler);
	}

	return (NULL);
}

/*****************************************************************************/
/* osl_removeSignalHandler */
/*****************************************************************************/
sal_Bool SAL_CALL osl_removeSignalHandler(oslSignalHandler Handler)
{
	oslSignalHandlerImpl *pHandler, *pPrevious = NULL;

	OSL_ASSERT(Handler != NULL);

	if (! bInitSignal)
		bInitSignal = InitSignal();

	osl_acquireMutex(SignalListMutex);

	pHandler = SignalList;

	while (pHandler != NULL)
	{
		if (pHandler == Handler)
		{
			if (pPrevious)
				pPrevious->pNext = pHandler->pNext;
			else
				SignalList = pHandler->pNext;

			osl_releaseMutex(SignalListMutex);

			if (SignalList == NULL)
				bInitSignal = DeInitSignal();

			free(pHandler);

			return (sal_True);
		}

		pPrevious = pHandler;
		pHandler  = pHandler->pNext;
	}
			
	osl_releaseMutex(SignalListMutex);

	return (sal_False);
}

/*****************************************************************************/
/* osl_raiseSignal */
/*****************************************************************************/
oslSignalAction SAL_CALL osl_raiseSignal(sal_Int32 UserSignal, void* UserData)
{
	oslSignalInfo   Info;
	oslSignalAction Action;

	if (! bInitSignal)
		bInitSignal = InitSignal();

	osl_acquireMutex(SignalListMutex);

	Info.Signal     = osl_Signal_User;
	Info.UserSignal = UserSignal;
	Info.UserData   = UserData;

	Action = CallSignalHandler(&Info);
			
	osl_releaseMutex(SignalListMutex);

	return (Action);
}

/*****************************************************************************/
/* osl_setErrorReporting */
/*****************************************************************************/
sal_Bool SAL_CALL osl_setErrorReporting( sal_Bool bEnable )
{
	sal_Bool bOld = bErrorReportingEnabled;
	bErrorReportingEnabled = bEnable;

	return bOld;
}
=====================================================================
Found a 68 line (280 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx

                    pCppStack, pParamTypeDescr );
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );

	// in case no exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];

			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );

		CPPU_CURRENT_NAMESPACE::cc50_solaris_sparc_raiseException(
=====================================================================
Found a 60 line (279 tokens) duplication in the following files: 
Starting at line 1543 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1588 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

            return WW8_FC_MAX;
        }
        if( pNextPieceCp )
            *pNextPieceCp = nCpEnd;

        WW8_FC nRet = SVBT32ToUInt32( ((WW8_PCD*)pData)->fc );
        if (8 > pWw8Fib->nVersion)
            *pIsUnicode = false;
        else
            nRet = WW8PLCFx_PCD::TransformPieceAddress( nRet, *pIsUnicode );


        nRet += (nCpPos - nCpStart) * (*pIsUnicode ? 2 : 1);

        return nRet;
    }

    // No complex file
    if (pWw8Fib->fExtChar)
        *pIsUnicode = true;
    else
        *pIsUnicode = false;
    return pWw8Fib->fcMin + nCpPos * (*pIsUnicode ? 2 : 1);
}

//-----------------------------------------
//      class WW8ScannerBase
//-----------------------------------------

WW8PLCFpcd* WW8ScannerBase::OpenPieceTable( SvStream* pStr, const WW8Fib* pWwF )
{
    if ( ((8 > pWw8Fib->nVersion) && !pWwF->fComplex) || !pWwF->lcbClx )
        return 0;

    WW8_FC nClxPos = pWwF->fcClx;
    INT32 nClxLen = pWwF->lcbClx;
    register INT32 nLeft = nClxLen;
    INT16 nGrpprl = 0;
    BYTE clxt;

    pStr->Seek( nClxPos );
    while( 1 ) // Zaehle Zahl der Grpprls
    {
        *pStr >> clxt;
        nLeft--;
        if( 2 == clxt )                         // PLCFfpcd ?
            break;                              // PLCFfpcd gefunden
        if( 1 == clxt )                         // clxtGrpprl ?
            nGrpprl++;
        UINT16 nLen;
        *pStr >> nLen;
        nLeft -= 2 + nLen;
        if( nLeft < 0 )
            return 0;                           // schiefgegangen
        pStr->SeekRel( nLen );                  // ueberlies grpprl
    }
    pStr->Seek( nClxPos );
    nLeft = nClxLen;
    pPieceGrpprls = new BYTE*[nGrpprl + 1];
    memset( pPieceGrpprls, 0, ( nGrpprl + 1 ) * sizeof(BYTE *) );
=====================================================================
Found a 10 line (279 tokens) duplication in the following files: 
Starting at line 1219 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1255 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,18,18,18,18, 0,// 1800 - 180f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1810 - 181f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1820 - 182f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1830 - 183f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1840 - 184f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1850 - 185f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
=====================================================================
Found a 75 line (279 tokens) duplication in the following files: 
Starting at line 2193 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 964 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

	}
}


sal_uInt32 InterfaceType::getMemberCount()
{
	sal_uInt32 count = m_reader.getMethodCount();

	if (count)
		m_hasMethods = sal_True;

	sal_uInt32 fieldCount = m_reader.getFieldCount();
	RTFieldAccess access = RT_ACCESS_INVALID;
	for (sal_uInt16 i=0; i < fieldCount; i++)
	{
		access = m_reader.getFieldAccess(i);

		if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
		{
			m_hasAttributes = sal_True;
			count++;
		}
	}
	return count;
}

sal_uInt32 InterfaceType::checkInheritedMemberCount(const TypeReader* pReader)
{
	sal_uInt32 cout = 0;
	sal_Bool bSelfCheck = sal_True;
	if (!pReader)
	{
		bSelfCheck = sal_False;
		pReader = &m_reader;
	}

	sal_uInt32 count = 0;
	OString superType(pReader->getSuperTypeName());
	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));
		if (aSuperReader.isValid())
		{
			count = checkInheritedMemberCount(&aSuperReader);
		}
	}

	if (bSelfCheck)
	{
		count += pReader->getMethodCount();
		sal_uInt32 fieldCount = pReader->getFieldCount();
		RTFieldAccess access = RT_ACCESS_INVALID;
		for (sal_uInt16 i=0; i < fieldCount; i++)
		{
			access = pReader->getFieldAccess(i);

			if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
			{
				count++;
			}
		}
	}

	return count;
}

sal_uInt32 InterfaceType::getInheritedMemberCount()
{
	if (m_inheritedMemberCount == 0)
	{
		m_inheritedMemberCount = checkInheritedMemberCount(0);
	}

	return m_inheritedMemberCount;
}
=====================================================================
Found a 55 line (278 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h

            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;

            const int16* weight_array = base_type::filter().weight_array();

            do
            {
                int rx;
                int ry;
                int rx_inv = image_subpixel_size;
                int ry_inv = image_subpixel_size;
                base_type::interpolator().coordinates(&x,  &y);
                base_type::interpolator().local_scale(&rx, &ry);

                rx = (rx * base_type::m_blur_x) >> image_subpixel_shift;
                ry = (ry * base_type::m_blur_y) >> image_subpixel_shift;

                if(rx < image_subpixel_size)
                {
                    rx = image_subpixel_size;
                }
                else
                {
                    if(rx > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        rx = image_subpixel_size * base_type::m_scale_limit;
                    }
                    rx_inv = image_subpixel_size * image_subpixel_size / rx;
                }

                if(ry < image_subpixel_size)
                {
                    ry = image_subpixel_size;
                }
                else
                {
                    if(ry > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        ry = image_subpixel_size * base_type::m_scale_limit;
                    }
                    ry_inv = image_subpixel_size * image_subpixel_size / ry;
                }

                int radius_x = (diameter * rx) >> 1;
                int radius_y = (diameter * ry) >> 1;
                int maxx = base_type::source_image().width() - 1;
                int maxy = base_type::source_image().height() - 1;

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 61 line (278 tokens) duplication in the following files: 
Starting at line 632 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontentcaps.cxx
Starting at line 722 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontentcaps.cxx

        static com::sun::star::ucb::CommandInfo aDocumentCommandInfoTable[] =
		{
			///////////////////////////////////////////////////////////////
			// Required commands
			///////////////////////////////////////////////////////////////

            com::sun::star::ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
				-1,
				getCppuVoidType()
			),
            com::sun::star::ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
				-1,
				getCppuVoidType()
			),
            com::sun::star::ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
				-1,
                getCppuType( static_cast<
                                uno::Sequence< beans::Property > * >( 0 ) )
			),
            com::sun::star::ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
				-1,
                getCppuType( static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
			),

			///////////////////////////////////////////////////////////////
			// Optional standard commands
			///////////////////////////////////////////////////////////////

            com::sun::star::ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
				-1,
				getCppuBooleanType()
			),
            com::sun::star::ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
				-1,
                getCppuType( static_cast<
                    com::sun::star::ucb::InsertCommandArgument * >( 0 ) )
			),
            com::sun::star::ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
				-1,
                getCppuType( static_cast<
                    com::sun::star::ucb::OpenCommandArgument2 * >( 0 ) )
            ),

			///////////////////////////////////////////////////////////////
			// New commands
			///////////////////////////////////////////////////////////////

            com::sun::star::ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "post" ) ),
=====================================================================
Found a 51 line (278 tokens) duplication in the following files: 
Starting at line 1602 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/cellsh1.cxx
Starting at line 498 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/drwtxtsh.cxx

                    i18n::TextConversionOption::CHARACTER_BY_CHARACTER, sal_True, sal_False );
            break;

        case SID_CHINESE_CONVERSION:
            {
                //open ChineseTranslationDialog
                Reference< XComponentContext > xContext(
                    ::cppu::defaultBootstrap_InitialComponentContext() ); //@todo get context from calc if that has one
                if(xContext.is())
                {
                    Reference< lang::XMultiComponentFactory > xMCF( xContext->getServiceManager() );
                    if(xMCF.is())
                    {
                        Reference< ui::dialogs::XExecutableDialog > xDialog(
                                xMCF->createInstanceWithContext(
                                    rtl::OUString::createFromAscii("com.sun.star.linguistic2.ChineseTranslationDialog")
                                    , xContext), UNO_QUERY);
                        Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY );
                        if( xInit.is() )
                        {
                            //  initialize dialog
                            Reference< awt::XWindow > xDialogParentWindow(0);
                            Sequence<Any> aSeq(1);
                            Any* pArray = aSeq.getArray();
                            PropertyValue aParam;
                            aParam.Name = rtl::OUString::createFromAscii("ParentWindow");
                            aParam.Value <<= makeAny(xDialogParentWindow);
                            pArray[0] <<= makeAny(aParam);
                            xInit->initialize( aSeq );

                            //execute dialog
                            sal_Int16 nDialogRet = xDialog->execute();
                            if( RET_OK == nDialogRet )
                            {
                                //get some parameters from the dialog
                                sal_Bool bToSimplified = sal_True;
                                sal_Bool bUseVariants = sal_True;
                                sal_Bool bCommonTerms = sal_True;
                                Reference< beans::XPropertySet >  xProp( xDialog, UNO_QUERY );
                                if( xProp.is() )
                                {
                                    try
                                    {
                                        xProp->getPropertyValue( C2U("IsDirectionToSimplified") ) >>= bToSimplified;
                                        xProp->getPropertyValue( C2U("IsUseCharacterVariants") ) >>= bUseVariants;
                                        xProp->getPropertyValue( C2U("IsTranslateCommonTerms") ) >>= bCommonTerms;
                                    }
                                    catch( Exception& )
                                    {
                                    }
                                }
=====================================================================
Found a 19 line (278 tokens) duplication in the following files: 
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 948 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_MS_1255,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0xFFFF,0x201A,0x0192,0x201E,0x2026,0x2020,0x2021,
                0x02C6,0x2030,0xFFFF,0x2039,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
=====================================================================
Found a 19 line (278 tokens) duplication in the following files: 
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1014 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_MS_1257,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0xFFFF,0x201A,0xFFFF,0x201E,0x2026,0x2020,0x2021,
                0xFFFF,0x2030,0xFFFF,0x2039,0xFFFF,0x00A8,0x02C7,0x00B8,
=====================================================================
Found a 31 line (278 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/logging/consolehandler.cxx
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/logging/filehandler.cxx

        virtual ~FileHandler();

        // XLogHandler
        virtual ::rtl::OUString SAL_CALL getEncoding() throw (RuntimeException);
        virtual void SAL_CALL setEncoding( const ::rtl::OUString& _encoding ) throw (RuntimeException);
        virtual Reference< XLogFormatter > SAL_CALL getFormatter() throw (RuntimeException);
        virtual void SAL_CALL setFormatter( const Reference< XLogFormatter >& _formatter ) throw (RuntimeException);
        virtual ::sal_Int32 SAL_CALL getLevel() throw (RuntimeException);
        virtual void SAL_CALL setLevel( ::sal_Int32 _level ) throw (RuntimeException);
        virtual void SAL_CALL flush(  ) throw (RuntimeException);
        virtual ::sal_Bool SAL_CALL publish( const LogRecord& Record ) throw (RuntimeException);

        // XInitialization
        virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);

        // XServiceInfo
		virtual ::rtl::OUString SAL_CALL getImplementationName() throw(RuntimeException);
        virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& _rServiceName ) throw(RuntimeException);
        virtual Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(RuntimeException);

        // OComponentHelper
        virtual void SAL_CALL disposing();

    public:
        // XServiceInfo - static version
		static ::rtl::OUString SAL_CALL getImplementationName_static();
        static Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_static();
        static Reference< XInterface > Create( const Reference< XComponentContext >& _rxContext );

    public:
        typedef ComponentMethodGuard< FileHandler > MethodGuard;
=====================================================================
Found a 55 line (278 tokens) duplication in the following files: 
Starting at line 1367 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olecomponent.cxx
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olemisc.cxx

void SAL_CALL OleEmbeddedObject::close( sal_Bool bDeliverOwnership )
	throw ( util::CloseVetoException,
			uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

    uno::Reference< uno::XInterface > xSelfHold( static_cast< ::cppu::OWeakObject* >( this ) );
    lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >( this ) );

	if ( m_pInterfaceContainer )
	{
    	::cppu::OInterfaceContainerHelper* pContainer =
			m_pInterfaceContainer->getContainer( ::getCppuType( ( const uno::Reference< util::XCloseListener >*) NULL ) );
    	if ( pContainer != NULL )
		{
        	::cppu::OInterfaceIteratorHelper pIterator(*pContainer);
        	while (pIterator.hasMoreElements())
        	{
            	try
            	{
                	((util::XCloseListener*)pIterator.next())->queryClosing( aSource, bDeliverOwnership );
            	}
            	catch( uno::RuntimeException& )
            	{
                	pIterator.remove();
            	}
        	}
		}

    	pContainer = m_pInterfaceContainer->getContainer(
									::getCppuType( ( const uno::Reference< util::XCloseListener >*) NULL ) );
    	if ( pContainer != NULL )
		{
        	::cppu::OInterfaceIteratorHelper pCloseIterator(*pContainer);
        	while (pCloseIterator.hasMoreElements())
        	{
            	try
            	{
                	((util::XCloseListener*)pCloseIterator.next())->notifyClosing( aSource );
            	}
            	catch( uno::RuntimeException& )
            	{
                	pCloseIterator.remove();
            	}
        	}
		}
	}

	Dispose();
}

//----------------------------------------------
void SAL_CALL OleEmbeddedObject::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
=====================================================================
Found a 36 line (278 tokens) duplication in the following files: 
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/qssl/tempnam.c
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsdarm32/tempnam.c

const char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+16))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (access( cpdir(p, tmpdir), 3) != 0) )
     if( (dl == 0) || (access( cpdir(p, dir), 3) != 0) )
	if( access( cpdir(p, P_tmpdir),   3) != 0 )
	   if( access( cpdir(p, "/tmp"),  3) != 0 )
	      return(NULL);

   (void) strcat(p, "/");
   if(prefix)
   {
      *(p+strlen(p)+5) = '\0';
      (void)strncat(p, prefix, 5);
   }

   (void)strcat(p, seed);
   (void)strcat(p, "XXXXXX");

   q = seed;
   while(*q == 'Z') *q++ = 'A';
   ++*q;

   if(*mktemp(p) == '\0') return(NULL);
=====================================================================
Found a 59 line (278 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx

					m_options["-O"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'L':
=====================================================================
Found a 38 line (278 tokens) duplication in the following files: 
Starting at line 1057 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper.cxx
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper.cxx

        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* 							, 
                                                                                           const uno::Reference< rendering::XPolyPolygon2D >& 	,
                                                                                           const rendering::ViewState& 							,
                                                                                           const rendering::RenderState& 						,
                                                                                           const uno::Sequence< rendering::Texture >& 			,
                                                                                           const rendering::StrokeAttributes& 					 )
    {
        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* 							, 
                                                                                                const uno::Reference< rendering::XPolyPolygon2D >& 	,
                                                                                                const rendering::ViewState& 						,
                                                                                                const rendering::RenderState& 						,
                                                                                                const uno::Sequence< rendering::Texture >& 			,
                                                                                                const uno::Reference< geometry::XMapping2D >& 		,
                                                                                                const rendering::StrokeAttributes& 					 )
    {
        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XPolyPolygon2D >   CanvasHelper::queryStrokeShapes( const rendering::XCanvas* 							, 
                                                                                   const uno::Reference< rendering::XPolyPolygon2D >& 	,
                                                                                   const rendering::ViewState& 							,
                                                                                   const rendering::RenderState& 						,
                                                                                   const rendering::StrokeAttributes& 					 )
    {
        return uno::Reference< rendering::XPolyPolygon2D >(NULL);
    }

    uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* 							, 
                                                                                 const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
                                                                                 const rendering::ViewState& 						viewState,
                                                                                 const rendering::RenderState& 						renderState )
    {
=====================================================================
Found a 95 line (277 tokens) duplication in the following files: 
Starting at line 985 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 749 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

		}
#endif
		else
		{
			// @@@ Note: If your data source supports adding/removing
			//     properties, you should implement the interface
			//     XPropertyContainer by yourself and supply your own
			//     logic here. The base class uses the service
			//     "com.sun.star.ucb.Store" to maintain Additional Core
			//     properties. But using server functionality is preferred!

			// Not a Core Property! Maybe it's an Additional Core Property?!

			if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
			{
				xAdditionalPropSet = getAdditionalPropertySet( sal_False );
				bTriedToGetAdditonalPropSet = sal_True;
			}

			if ( xAdditionalPropSet.is() )
			{
				try
				{
                    uno::Any aOldValue
                        = xAdditionalPropSet->getPropertyValue( rValue.Name );
					if ( aOldValue != rValue.Value )
					{
						xAdditionalPropSet->setPropertyValue(
												rValue.Name, rValue.Value );

						aEvent.PropertyName = rValue.Name;
						aEvent.OldValue		= aOldValue;
						aEvent.NewValue     = rValue.Value;

						aChanges.getArray()[ nChanged ] = aEvent;
						nChanged++;
					}
                    else
                    {
                        // Old value equals new value. No error!
                    }
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}

	if ( nChanged > 0 )
	{
		// @@@ Save changes.
//		storeData();

		aGuard.clear();
		aChanges.realloc( nChanged );
		notifyPropertiesChange( aChanges );
	}

    return aRet;
}

#ifdef IMPLEMENT_COMMAND_INSERT

//=========================================================================
void Content::queryChildren( ContentRefList& rChildren )
{
	// @@@ Adapt method to your URL scheme...

	// Obtain a list with a snapshot of all currently instanciated contents
	// from provider and extract the contents which are direct children
	// of this content.

	::ucbhelper::ContentRefList aAllContents;
	m_xProvider->queryExistingContents( aAllContents );
=====================================================================
Found a 9 line (277 tokens) duplication in the following files: 
Starting at line 1240 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1398 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2670 - 267f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2680 - 268f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2690 - 269f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26a0 - 26af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff
=====================================================================
Found a 71 line (276 tokens) duplication in the following files: 
Starting at line 997 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 550 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

			}
#endif
			else
			{
				// @@@ Note: If your data source supports adding/removing
				//     properties, you should implement the interface
				//     XPropertyContainer by yourself and supply your own
				//     logic here. The base class uses the service
				//     "com.sun.star.ucb.Store" to maintain Additional Core
				//     properties. But using server functionality is preferred!

				// Not a Core Property! Maybe it's an Additional Core Property?!

				if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
				{
					xAdditionalPropSet
                        = uno::Reference< beans::XPropertySet >(
							rProvider->getAdditionalPropertySet( rContentId,
																 sal_False ),
                            uno::UNO_QUERY );
					bTriedToGetAdditonalPropSet = sal_True;
				}

				if ( xAdditionalPropSet.is() )
				{
					if ( !xRow->appendPropertySetValue(
												xAdditionalPropSet,
												rProp ) )
					{
						// Append empty entry.
						xRow->appendVoid( rProp );
					}
				}
				else
				{
					// Append empty entry.
					xRow->appendVoid( rProp );
				}
			}
		}
	}
	else
	{
		// Append all Core Properties.
		xRow->appendString (
            beans::Property( rtl::OUString::createFromAscii( "ContentType" ),
					  -1,
                      getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                      beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY ),
			rData.aContentType );
		xRow->appendString (
            beans::Property( rtl::OUString::createFromAscii( "Title" ),
					  -1,
                      getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                      beans::PropertyAttribute::BOUND ),
			rData.aTitle );
		xRow->appendBoolean(
            beans::Property( rtl::OUString::createFromAscii( "IsDocument" ),
					  -1,
					  getCppuBooleanType(),
                      beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY ),
			rData.bIsDocument );
		xRow->appendBoolean(
            beans::Property( rtl::OUString::createFromAscii( "IsFolder" ),
					  -1,
					  getCppuBooleanType(),
                      beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY ),
			rData.bIsFolder );
=====================================================================
Found a 15 line (276 tokens) duplication in the following files: 
Starting at line 2578 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/source/typelib/typelib.cxx
Starting at line 638 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/testcppu.cxx

static sal_Bool s_aAssignableFromTab[11][11] =
{
						 /* from CH,BO,BY,SH,US,LO,UL,HY,UH,FL,DO */
/* TypeClass_CHAR */			{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_BOOLEAN */			{ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_BYTE */			{ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_SHORT */			{ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 },
/* TypeClass_UNSIGNED_SHORT */	{ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 },
/* TypeClass_LONG */			{ 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 },
/* TypeClass_UNSIGNED_LONG */	{ 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 },
/* TypeClass_HYPER */			{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
/* TypeClass_UNSIGNED_HYPER */	{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
/* TypeClass_FLOAT */			{ 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0 },
/* TypeClass_DOUBLE */			{ 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1 }
};
=====================================================================
Found a 9 line (275 tokens) duplication in the following files: 
Starting at line 1265 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1275 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f30 - 1f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f40 - 1f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f50 - 1f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f60 - 1f6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f70 - 1f7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f80 - 1f8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f90 - 1f9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1fa0 - 1faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,// 1fb0 - 1fbf
=====================================================================
Found a 9 line (275 tokens) duplication in the following files: 
Starting at line 768 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 892 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe70 - fe7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe80 - fe8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe90 - fe9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 62 line (275 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/attributelist.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/attributelist.cxx

          sal::static_int_cast< sal_uInt32 >( i ) < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString AttributeListImpl::getValueByName(const OUString& sName) throw (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}


AttributeListImpl::AttributeListImpl()
{
	m_pImpl = new AttributeListImpl_impl;
}



AttributeListImpl::~AttributeListImpl()
{
	delete m_pImpl;
}


void AttributeListImpl::addAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}

void AttributeListImpl::clear()
{
	vector<struct TagAttribute> dummy;
	m_pImpl->vecAttribute.swap( dummy );

	assert( ! getLength() );
}

//..........................................................................
}	// namespace framework
=====================================================================
Found a 15 line (275 tokens) duplication in the following files: 
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 1067 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
Starting at line 1292 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
Starting at line 1367 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
Starting at line 1606 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx

    virtual ~WrappedAttributedDataPointsProperty();

    virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

private: //member
    ::boost::shared_ptr< Chart2ModelContact >   m_spChart2ModelContact;
    mutable Any                                 m_aOuterValue;
};
=====================================================================
Found a 53 line (274 tokens) duplication in the following files: 
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

            long_type fg[4];

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
            const int16* weight_array = base_type::filter().weight_array();

            do
            {
                int rx;
                int ry;
                int rx_inv = image_subpixel_size;
                int ry_inv = image_subpixel_size;
                intr.coordinates(&x,  &y);
                intr.local_scale(&rx, &ry);

                rx = (rx * base_type::m_blur_x) >> image_subpixel_shift;
                ry = (ry * base_type::m_blur_y) >> image_subpixel_shift;

                if(rx < image_subpixel_size)
                {
                    rx = image_subpixel_size;
                }
                else
                {
                    if(rx > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        rx = image_subpixel_size * base_type::m_scale_limit;
                    }
                    rx_inv = image_subpixel_size * image_subpixel_size / rx;
                }

                if(ry < image_subpixel_size)
                {
                    ry = image_subpixel_size;
                }
                else
                {
                    if(ry > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        ry = image_subpixel_size * base_type::m_scale_limit;
                    }
                    ry_inv = image_subpixel_size * image_subpixel_size / ry;
                }

                int radius_x = (diameter * rx) >> 1;
                int radius_y = (diameter * ry) >> 1;
                int maxx = base_type::source_image().width() - 1;
                int maxy = base_type::source_image().height() - 1;

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 55 line (274 tokens) duplication in the following files: 
Starting at line 906 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 494 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

}

//=========================================================================
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
            const uno::Reference< lang::XMultiServiceFactory >& rSMgr,
            const uno::Sequence< beans::Property >& rProperties,
            const ContentProperties& rData,
            const rtl::Reference< 
                ::ucbhelper::ContentProviderImplHelper >& rProvider,
            const rtl::OUString& rContentId )
{
	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
        = new ::ucbhelper::PropertyValueSet( rSMgr );

	sal_Int32 nCount = rProperties.getLength();
	if ( nCount )
	{
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
		sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
		for ( sal_Int32 n = 0; n < nCount; ++n )
		{
            const beans::Property& rProp = pProps[ n ];

			// Process Core properties.

            if ( rProp.Name.equalsAsciiL(
					RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
            {
				xRow->appendString ( rProp, rData.aContentType );
			}
            else if ( rProp.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
			{
				xRow->appendString ( rProp, rData.aTitle );
			}
            else if ( rProp.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "IsDocument" ) ) )
			{
				xRow->appendBoolean( rProp, rData.bIsDocument );
			}
            else if ( rProp.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "IsFolder" ) ) )
			{
				xRow->appendBoolean( rProp, rData.bIsFolder );
			}

			// @@@ Process other properties supported directly.
#if 0
            else if ( rProp.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "xxxxxx" ) ) )
=====================================================================
Found a 58 line (274 tokens) duplication in the following files: 
Starting at line 581 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx
Starting at line 1580 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx

					else
						delete pStream;
				}
			}
	
			if ( !xResult.is() )
				throw io::IOException();
	
			if ( ( nOpenMode & embed::ElementModes::TRUNCATE ) )
			{
				uno::Reference< io::XTruncate > xTrunc( xResult->getOutputStream(), uno::UNO_QUERY_THROW );
				xTrunc->truncate();
			}
		}
		else
		{
			if ( ( nOpenMode & embed::ElementModes::TRUNCATE )
		  	|| !::utl::UCBContentHelper::IsDocument( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
				throw io::IOException(); // TODO: access denied
	
			::ucbhelper::Content aResultContent( aFileURL.GetMainURL( INetURLObject::NO_DECODE ), xDummyEnv );
			uno::Reference< io::XInputStream > xInStream = aResultContent.openStream();
			xResult = static_cast< io::XStream* >( new OFSInputStreamContainer( xInStream ) );
		}
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( packages::WrongPasswordException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't copy raw stream" ),
												 uno::Reference< io::XInputStream >(),
												 aCaught );
	}

	return uno::Reference< embed::XExtendedStorageStream >( xResult, uno::UNO_QUERY_THROW );
=====================================================================
Found a 71 line (274 tokens) duplication in the following files: 
Starting at line 4787 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 5044 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

			rParam.nRow2       = nRow2;
            rParam.bMixedComparison = TRUE;

			ScQueryEntry& rEntry = rParam.GetEntry(0);
			rEntry.bDoQuery = TRUE;
			if ( bSorted )
				rEntry.eOp = SC_LESS_EQUAL;
			switch ( GetStackType() )
			{
				case svDouble:
				{
					rEntry.bQueryByString = FALSE;
					rEntry.nVal = GetDouble();
				}
				break;
				case svString:
				{
					sStr = GetString();
					rEntry.bQueryByString = TRUE;
					*rEntry.pStr = sStr;
				}
				break;
				case svDoubleRef :
				case svSingleRef :
				{
					ScAddress aAdr;
					if ( !PopDoubleRefOrSingleRef( aAdr ) )
					{
						PushInt(0);
						return ;
					}
					ScBaseCell* pCell = GetCell( aAdr );
					if (HasCellValueData(pCell))
					{
						rEntry.bQueryByString = FALSE;
						rEntry.nVal = GetCellValue( aAdr, pCell );
					}
					else
					{
						if ( GetCellType( pCell ) == CELLTYPE_NOTE )
						{
							rEntry.bQueryByString = FALSE;
							rEntry.nVal = 0.0;
						}
						else
						{
							GetCellString(sStr, pCell);
							rEntry.bQueryByString = TRUE;
							*rEntry.pStr = sStr;
						}
					}
				}
				break;
                case svMatrix :
                {
                    ScMatValType nType = GetDoubleOrStringFromMatrix(
                            rEntry.nVal, *rEntry.pStr);
                    rEntry.bQueryByString = ScMatrix::IsStringType( nType);
                }
                break;
				default:
				{
					SetIllegalParameter();
					return;
				}
			}
			if ( rEntry.bQueryByString )
                rParam.bRegExp = MayBeRegExp( *rEntry.pStr, pDok );
			if (pMat)
			{
				SCSIZE nMatCount = nR;
=====================================================================
Found a 18 line (274 tokens) duplication in the following files: 
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_MS_1253,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0xFFFF,0x201A,0x0192,0x201E,0x2026,0x2020,0x2021,
=====================================================================
Found a 51 line (274 tokens) duplication in the following files: 
Starting at line 29 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/breakiterator/breakiterator_hi.cxx
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/inputchecker/inputsequencechecker_hi.cxx

InputSequenceChecker_hi::~InputSequenceChecker_hi()
{
}
/* Non-Defined Class type */
#define __ND		0

/*
 * Devanagari character type definitions
 */
#define __UP  1  // ChandraBindu & Anuswar
#define	__NP  2  // Visarg
#define __IV	3  // Independant Vowels
#define __CN	4  // Consonants except _CK & _RC 
#define __CK	5  // Consonants that can be followed by Nukta
#define __RC	6  // Ra
#define __NM	7  // Matra
#define __RM	8  // Ra + HAL
#define __IM	9  // Choti I Matra
#define __HL	10 // HAL
#define __NK	11 // Nukta
#define __VD	12 // Vedic
#define __HD	13 // Hindu Numerals

/*
 * Devanagari character type table
 */
static const sal_uInt16 devaCT[128] = {
/*         0,    1,    2,    3,    4,    5,    6,    7,
           8,    9,    A,    B,    C,    D,    E,    F, */
/* 0900 */ __ND, __UP, __UP, __NP, __ND, __IV, __IV, __IV,
           __IV, __IV, __IV, __IV, __IV, __IV, __IV, __IV,
/* 0910 */ __IV, __IV, __IV, __IV, __IV, __CK, __CK, __CK,
           __CN, __CN, __CN, __CN, __CK, __CN, __CN, __CN,
/* 0920 */ __CN, __CK, __CK, __CN, __CN, __CN, __CN, __CN,
           __CN, __CN, __CN, __CK, __CN, __CN, __CN, __CN,
/* 0930 */ __RC, __CN, __CN, __CN, __CN, __CN, __CN, __CN,
           __CN, __CN, __ND, __ND, __NK, __VD, __NM, __IM,
/* 0940 */ __RM, __NM, __NM, __NM, __NM, __RM, __RM, __RM,
           __RM, __RM, __RM, __RM, __RM, __HL, __ND, __ND,
/* 0950 */ __ND, __VD, __VD, __VD, __VD, __ND, __ND, __ND,
           __CN, __CN, __CN, __CN, __CN, __CN, __CN, __CN,
/* 0960 */ __IV, __IV, __NM, __NM, __ND, __ND, __HD, __HD,
           __HD, __HD, __HD, __HD, __HD, __HD, __HD, __HD,
/* 0970 */ __ND, __ND, __ND, __ND, __ND, __ND, __ND, __ND,
           __ND, __ND, __ND, __ND, __ND, __ND, __ND, __ND,
};

/*
 * Devanagari character composition table
 */
static const sal_uInt16 dev_cell_check[14][14] = {
=====================================================================
Found a 34 line (274 tokens) duplication in the following files: 
Starting at line 1894 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpnt/cpnt.cxx
Starting at line 2002 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpnt/cpnt.cxx

			xInv->invoke( OUString( L"inoutValuesAll"), params, seqIndizes, seqOutParams);

			if( seqOutParams.getLength() == 12)
			{
				Reference<XSimple> xSimple= *(XSimple**)seqOutParams[0].getValue();
				xSimple->func( L"Call from OleTest on XSimple");
				SimpleStruct aStruct;
				seqOutParams[1] >>= aStruct;
				SimpleEnum aEnum= *(SimpleEnum*)seqOutParams[2].getValue();

				Sequence<Any> seqAny;
				seqOutParams[3] >>= seqAny;
				for( int i=0; i<seqAny.getLength(); i++)
				{
					OUString _s;
					seqAny[i] >>= _s;
				}
				
				Any _any= *(Any*)seqOutParams[4].getValue();
				sal_Bool _bool= *(sal_Bool*)seqOutParams[5].getValue();
				sal_Unicode _char= *( sal_Unicode*) seqOutParams[6].getValue();
				OUString _str= *( rtl_uString**)seqOutParams[7].getValue();

				float _f= *( float*)seqOutParams[8].getValue();
				double _d= *( double*) seqOutParams[9].getValue();
				sal_Int8 _byte= *( sal_Int8*) seqOutParams[10].getValue();
				sal_Int16 _short= *( sal_Int16*) seqOutParams[11].getValue();

				sal_Int32 _long= *( sal_Int32*) seqOutParams[12].getValue();

			}
			break;
		}
	case 303:
=====================================================================
Found a 48 line (274 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HTables.cxx
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YTables.cxx

using namespace connectivity::mysql;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace dbtools;
typedef connectivity::sdbcx::OCollection OCollection_TYPE;

sdbcx::ObjectType OTables::createObject(const ::rtl::OUString& _rName)
{
	::rtl::OUString sCatalog,sSchema,sTable;
	::dbtools::qualifiedNameComponents(m_xMetaData,_rName,sCatalog,sSchema,sTable,::dbtools::eInDataManipulation);

    static const ::rtl::OUString s_sTableTypeView(RTL_CONSTASCII_USTRINGPARAM("VIEW"));
	static const ::rtl::OUString s_sTableTypeTable(RTL_CONSTASCII_USTRINGPARAM("TABLE"));
	static const ::rtl::OUString s_sAll(RTL_CONSTASCII_USTRINGPARAM("%"));

	Sequence< ::rtl::OUString > sTableTypes(3);
	sTableTypes[0] = s_sTableTypeView;
	sTableTypes[1] = s_sTableTypeTable;
	sTableTypes[2] = s_sAll;	// just to be sure to include anything else ....

	Any aCatalog;
	if ( sCatalog.getLength() )
		aCatalog <<= sCatalog;
    Reference< XResultSet > xResult = m_xMetaData->getTables(aCatalog,sSchema,sTable,sTableTypes);

    sdbcx::ObjectType xRet = NULL;
	if ( xResult.is() )
	{
        Reference< XRow > xRow(xResult,UNO_QUERY);
		if ( xResult->next() ) // there can be only one table with this name
		{
//			Reference<XStatement> xStmt = m_xConnection->createStatement();
//			if ( xStmt.is() )
//			{
//				Reference< XResultSet > xPrivRes = xStmt->executeQuery();
//				Reference< XRow > xPrivRow(xPrivRes,UNO_QUERY);
//				while ( xPrivRes.is() && xPrivRes->next() )
//				{
//					if ( xPrivRow->getString(1) )
//					{
//					}
//				}
//			}
			sal_Int32 nPrivileges =	Privilege::DROP			|
=====================================================================
Found a 46 line (273 tokens) duplication in the following files: 
Starting at line 1893 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1979 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

ScXMLRejectionContext::ScXMLRejectionContext( ScXMLImport& rImport,
											  USHORT nPrfx,
				   	  						  const ::rtl::OUString& rLName,
									  		const uno::Reference<xml::sax::XAttributeList>& xAttrList,
											ScXMLChangeTrackingImportHelper* pTempChangeTrackingImportHelper ) :
	SvXMLImportContext( rImport, nPrfx, rLName ),
	pChangeTrackingImportHelper(pTempChangeTrackingImportHelper)
{
	sal_uInt32 nActionNumber(0);
	sal_uInt32 nRejectingNumber(0);
	ScChangeActionState nActionState(SC_CAS_VIRGIN);

	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
			{
				nActionNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
			else if (IsXMLToken(aLocalName, XML_ACCEPTANCE_STATE))
			{
				if (IsXMLToken(sValue, XML_ACCEPTED))
					nActionState = SC_CAS_ACCEPTED;
				else if (IsXMLToken(sValue, XML_REJECTED))
					nActionState = SC_CAS_REJECTED;
			}
			else if (IsXMLToken(aLocalName, XML_REJECTING_CHANGE_ID))
			{
				nRejectingNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
		}
	}

	pChangeTrackingImportHelper->StartChangeAction(SC_CAT_MOVE);
	pChangeTrackingImportHelper->SetActionNumber(nActionNumber);
	pChangeTrackingImportHelper->SetActionState(nActionState);
	pChangeTrackingImportHelper->SetRejectingNumber(nRejectingNumber);
}
=====================================================================
Found a 63 line (273 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

				pUnoArgs[nPos] = pCppStack;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( 
         pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( 
                    &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
=====================================================================
Found a 62 line (272 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
=====================================================================
Found a 58 line (272 tokens) duplication in the following files: 
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
Starting at line 373 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr, bSimpleReturn,
			pStackStart, ( pStack - pStackStart ),
			pGPR, nGPR,
			pFPR, nFPR );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}
=====================================================================
Found a 59 line (272 tokens) duplication in the following files: 
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										  pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		CPPU_CURRENT_NAMESPACE::raiseException(&aUnoExc, pThis->getBridge()->getUno2Cpp() );
=====================================================================
Found a 59 line (272 tokens) duplication in the following files: 
Starting at line 373 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx

                        pCppReturn, pReturnTypeDescr, 
                        pStackStart, ( pStack - pStackStart ),
                        pGPR, nGPR,
                        pFPR, nFPR );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, 
                                  *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}
=====================================================================
Found a 59 line (272 tokens) duplication in the following files: 
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										  pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		CPPU_CURRENT_NAMESPACE::raiseException(&aUnoExc, pThis->getBridge()->getUno2Cpp() );
=====================================================================
Found a 25 line (271 tokens) duplication in the following files: 
Starting at line 155 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                    y_lr = ++m_wrap_mode_y;
                } while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)fg[order_type::A];

                ++span;
                ++intr;
=====================================================================
Found a 32 line (271 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h

                    y_hr += ry_inv;
                    ++y_lr;
                }
                while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[3] > base_mask) fg[3] = base_mask;
                if(fg[0] > fg[3])     fg[0] = fg[3];
                if(fg[1] > fg[3])     fg[1] = fg[3];
                if(fg[2] > fg[3])     fg[2] = fg[3];

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)fg[3];

                ++span;
                ++base_type::interpolator();
            } while(--len);
            return base_type::allocator().span();
        }
        
    };
=====================================================================
Found a 65 line (271 tokens) duplication in the following files: 
Starting at line 1232 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/ScriptInfo.cxx
Starting at line 1793 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/porlay.cxx

                                  sal_Int32* pScrArray, xub_StrLen nStt,
                                  xub_StrLen nLen, xub_StrLen nNumberOfBlanks,
                                  long nSpaceAdd )
{
    ASSERT( nStt + nLen <= rTxt.Len(), "String in ThaiJustify too small" )

    SwTwips nNumOfTwipsToDistribute = nSpaceAdd * nNumberOfBlanks /
                                      SPACING_PRECISION_FACTOR;

    long nSpaceSum = 0;
    USHORT nCnt = 0;

    for ( USHORT nI = 0; nI < nLen; ++nI )
    {
        const xub_Unicode cCh = rTxt.GetChar( nStt + nI );

        // check if character is not above or below base
        if ( ( 0xE34 > cCh || cCh > 0xE3A ) &&
             ( 0xE47 > cCh || cCh > 0xE4E ) && cCh != 0xE31 )
        {
            if ( nNumberOfBlanks > 0 )
            {
                nSpaceAdd = nNumOfTwipsToDistribute / nNumberOfBlanks;
                --nNumberOfBlanks;
                nNumOfTwipsToDistribute -= nSpaceAdd;
            }
            nSpaceSum += nSpaceAdd;
            ++nCnt;
        }

        if ( pKernArray ) pKernArray[ nI ] += nSpaceSum;
        if ( pScrArray ) pScrArray[ nI ] += nSpaceSum;
    }

    return nCnt;
}

/*************************************************************************
 *                      SwScriptInfo::GetScriptInfo()
 *************************************************************************/

SwScriptInfo* SwScriptInfo::GetScriptInfo( const SwTxtNode& rTNd,
                                           sal_Bool bAllowInvalid )
{
    SwClientIter aClientIter( (SwTxtNode&)rTNd );
    SwClient* pLast = aClientIter.GoStart();
    SwScriptInfo* pScriptInfo = 0;

    while( pLast )
    {
        if ( pLast->ISA( SwTxtFrm ) )
        {
            pScriptInfo = (SwScriptInfo*)((SwTxtFrm*)pLast)->GetScriptInfo();
            if ( pScriptInfo )
            {
                if ( !bAllowInvalid && STRING_LEN != pScriptInfo->GetInvalidity() )
                    pScriptInfo = 0;
                else break;
            }
        }
        pLast = ++aClientIter;
    }

    return pScriptInfo;
}
=====================================================================
Found a 47 line (271 tokens) duplication in the following files: 
Starting at line 1606 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/cellsh1.cxx
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuhhconv.cxx

{
    //open ChineseTranslationDialog
    Reference< XComponentContext > xContext(
        ::cppu::defaultBootstrap_InitialComponentContext() ); //@todo get context from calc if that has one
    if(xContext.is())
    {
        Reference< lang::XMultiComponentFactory > xMCF( xContext->getServiceManager() );
        if(xMCF.is())
        {
            Reference< ui::dialogs::XExecutableDialog > xDialog(
                    xMCF->createInstanceWithContext(
                        rtl::OUString::createFromAscii("com.sun.star.linguistic2.ChineseTranslationDialog")
                        , xContext), UNO_QUERY);
            Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY );
            if( xInit.is() )
            {
                //  initialize dialog
                Reference< awt::XWindow > xDialogParentWindow(0);
                Sequence<Any> aSeq(1);
                Any* pArray = aSeq.getArray();
                PropertyValue aParam;
                aParam.Name = rtl::OUString::createFromAscii("ParentWindow");
                aParam.Value <<= makeAny(xDialogParentWindow);
                pArray[0] <<= makeAny(aParam);
                xInit->initialize( aSeq );

                //execute dialog
                sal_Int16 nDialogRet = xDialog->execute();
                if( RET_OK == nDialogRet )
                {
                    //get some parameters from the dialog
                    sal_Bool bToSimplified = sal_True;
                    sal_Bool bUseVariants = sal_True;
                    sal_Bool bCommonTerms = sal_True;
                    Reference< beans::XPropertySet >  xProp( xDialog, UNO_QUERY );
                    if( xProp.is() )
                    {
                        try
                        {
                            xProp->getPropertyValue( C2U("IsDirectionToSimplified") ) >>= bToSimplified;
                            xProp->getPropertyValue( C2U("IsUseCharacterVariants") ) >>= bUseVariants;
                            xProp->getPropertyValue( C2U("IsTranslateCommonTerms") ) >>= bCommonTerms;
                        }
                        catch( Exception& )
                        {
                        }
                    }
=====================================================================
Found a 17 line (271 tokens) duplication in the following files: 
Starting at line 1632 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 1669 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx

				Point					aCenter;
				double					fdx,fdy,fa1,fa2;

				aCenter.X()=(pA->GetRect().Left()+pA->GetRect().Right())/2;
				aCenter.Y()=(pA->GetRect().Top()+pA->GetRect().Bottom())/2;
				fdx=(double)(pA->GetStartPoint().X()-aCenter.X());
				fdy=(double)(pA->GetStartPoint().Y()-aCenter.Y());
				fdx*=(double)pA->GetRect().GetHeight();
				fdy*=(double)pA->GetRect().GetWidth();
				if (fdx==0.0 && fdy==0.0) fdx=1.0;
				fa1=atan2(-fdy,fdx);
				fdx=(double)(pA->GetEndPoint().X()-aCenter.X());
				fdy=(double)(pA->GetEndPoint().Y()-aCenter.Y());
				fdx*=(double)pA->GetRect().GetHeight();
				fdy*=(double)pA->GetRect().GetWidth();
				if (fdx==0.0 && fdy==0.0) fdx=1.0;
				fa2=atan2(-fdy,fdx);
=====================================================================
Found a 49 line (271 tokens) duplication in the following files: 
Starting at line 1035 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1421 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

                    }
                    ++pIter;
                }
                
                aGuard.unlock();
                
                // Now notify our listeners. Unlock mutex to prevent deadlocks
                if ( pInsertedImages != 0 )
                {
                    ConfigurationEvent aInsertEvent;
                    aInsertEvent.aInfo           = uno::makeAny( i );
                    aInsertEvent.Accessor        = uno::makeAny( xThis );
                    aInsertEvent.Source          = xIfac;
                    aInsertEvent.ResourceURL     = m_aResourceString;
                    aInsertEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                                    static_cast< OWeakObject *>( pInsertedImages ), UNO_QUERY ));
                    implts_notifyContainerListener( aInsertEvent, NotifyOp_Insert );
                }
                if ( pReplacedImages != 0 )
                {
                    ConfigurationEvent aReplaceEvent;
                    aReplaceEvent.aInfo           = uno::makeAny( i );
                    aReplaceEvent.Accessor        = uno::makeAny( xThis );
                    aReplaceEvent.Source          = xIfac;
                    aReplaceEvent.ResourceURL     = m_aResourceString;
                    aReplaceEvent.ReplacedElement = Any();
                    aReplaceEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                                    static_cast< OWeakObject *>( pReplacedImages ), UNO_QUERY ));
                    implts_notifyContainerListener( aReplaceEvent, NotifyOp_Replace );
                }
                if ( pRemovedImages != 0 )
                {
                    ConfigurationEvent aRemoveEvent;
                    aRemoveEvent.aInfo           = uno::makeAny( i );
                    aRemoveEvent.Accessor        = uno::makeAny( xThis );
                    aRemoveEvent.Source          = xIfac;
                    aRemoveEvent.ResourceURL     = m_aResourceString;
                    aRemoveEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >( 
                                                        static_cast< OWeakObject *>( pRemovedImages ), UNO_QUERY ));
                    implts_notifyContainerListener( aRemoveEvent, NotifyOp_Remove );
                }

                aGuard.lock();
            }
        }
    }
}

void SAL_CALL ModuleImageManager::store() 
=====================================================================
Found a 26 line (271 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/386ix/public.h
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h

const int in_quit ANSI((void));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
int If_root_path ANSI((char *));
void Remove_prq ANSI((CELLPTR));
int runargv ANSI((CELLPTR, int, int, t_attr, char *));
int Wait_for_child ANSI((int, int));
void Clean_up_processes ANSI(());
time_t CacheStat ANSI((char *, int));
=====================================================================
Found a 75 line (271 tokens) duplication in the following files: 
Starting at line 920 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart(  ) throw(SQLException, RuntimeException)
{
	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow(  ) throw(SQLException, RuntimeException)
{
	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getURL(  ) throw(SQLException, RuntimeException)
{
=====================================================================
Found a 14 line (271 tokens) duplication in the following files: 
Starting at line 491 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx

    virtual ~WrappedHasSubTitleProperty();

    virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

private: //member
    ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
};
=====================================================================
Found a 31 line (270 tokens) duplication in the following files: 
Starting at line 566 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx
Starting at line 597 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx

 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: xml2xcd.cxx,v $
 *
 *  $Revision: 1.11 $
 *
 *  last change: $Author: obo $ $Date: 2006/09/16 14:33:43 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 by Sun Microsystems, Inc.
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License version 2.1, as published by the Free Software Foundation.
 *
 *    This library 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 for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public
 *    License along with this library; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *
=====================================================================
Found a 48 line (270 tokens) duplication in the following files: 
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx
Starting at line 1367 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olecomponent.cxx

void SAL_CALL OleComponent::close( sal_Bool bDeliverOwnership )
	throw ( util::CloseVetoException,
			uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

    uno::Reference< uno::XInterface > xSelfHold( static_cast< ::cppu::OWeakObject* >( this ) );
    lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >( this ) );

	if ( m_pInterfaceContainer )
	{
    	::cppu::OInterfaceContainerHelper* pContainer =
			m_pInterfaceContainer->getContainer( ::getCppuType( ( const uno::Reference< util::XCloseListener >* ) NULL ) );
    	if ( pContainer != NULL )
		{
        	::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
        	while ( pIterator.hasMoreElements() )
        	{
            	try
            	{
                	( (util::XCloseListener* )pIterator.next() )->queryClosing( aSource, bDeliverOwnership );
            	}
            	catch( uno::RuntimeException& )
            	{
                	pIterator.remove();
            	}
        	}
		}

    	pContainer = m_pInterfaceContainer->getContainer(
									::getCppuType( ( const uno::Reference< util::XCloseListener >* ) NULL ) );
    	if ( pContainer != NULL )
		{
        	::cppu::OInterfaceIteratorHelper pCloseIterator( *pContainer );
        	while ( pCloseIterator.hasMoreElements() )
        	{
            	try
            	{
                	( (util::XCloseListener* )pCloseIterator.next() )->notifyClosing( aSource );
            	}
            	catch( uno::RuntimeException& )
            	{
                	pCloseIterator.remove();
            	}
        	}
		}
=====================================================================
Found a 42 line (270 tokens) duplication in the following files: 
Starting at line 669 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/nodeimplobj.cxx
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/nodeimplobj.cxx

void DeferredSetNodeImpl::failedCommit(data::Accessor const& _aAccessor, SubtreeChange& rChanges)
{
	OSL_ENSURE(rChanges.isSetNodeChange(),"ERROR: Change type GROUP does not match set");
	OSL_ENSURE(	rChanges.getElementTemplateName() ==  getElementTemplate()->getName().toString(),
				"ERROR: Element template of change does not match the template of the set");
	OSL_ENSURE(	rChanges.getElementTemplateModule() ==  getElementTemplate()->getModule().toString(),
				"ERROR: Element template module of change does not match the template of the set");

	for(SubtreeChange::MutatingChildIterator it = rChanges.begin_changes(), stop = rChanges.end_changes();
		it != stop;
		++it)
	{
		Name aElementName = makeElementName(it->getNodeName(), Name::NoValidate());

		Element* pOriginal = getStoredElement(aElementName);

		if (Element* pNewElement = m_aChangedData.getElement(aElementName)) 
		{
			Element aOriginal;
			if (pOriginal)
			{
				aOriginal = *pOriginal;
				OSL_ASSERT(aOriginal.isValid());
			}
			else
				OSL_ASSERT(!aOriginal.isValid());

			// handle a added, replaced or deleted node
            data::TreeSegment aRemovedTree;

			if (pNewElement->isValid())
			{
				OSL_ENSURE( it->ISA(AddNode) , "Unexpected type of element change");
				if (!it->ISA(AddNode)) throw Exception("Unexpected type of element change");

				AddNode& rAddNode =  static_cast<AddNode&>(*it);

				aRemovedTree = rAddNode.getReplacedTree();
				OSL_ASSERT( rAddNode.isReplacing() == (0!=pOriginal)  );
				OSL_ASSERT( rAddNode.isReplacing() == aRemovedTree.is()  );

				if (rAddNode.wasInserted())
=====================================================================
Found a 14 line (270 tokens) duplication in the following files: 
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedAxisAndGridExistenceProperties.cxx
Starting at line 343 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedAxisAndGridExistenceProperties.cxx

    virtual ~WrappedAxisLabelExistenceProperty();
 
    virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

private: //member
    ::boost::shared_ptr< Chart2ModelContact >   m_spChart2ModelContact;
    bool        m_bMain;
=====================================================================
Found a 46 line (269 tokens) duplication in the following files: 
Starting at line 2027 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/accessibility/AccessibleEditableTextPara.cxx
Starting at line 2126 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/accessibility/AccessibleEditableTextPara.cxx

        aPropSet.SetSelection( MakeSelection( nIndex ) );
        uno::Reference< beans::XPropertySetInfo > xPropSetInfo = aPropSet.getPropertySetInfo();
        if (!xPropSetInfo.is())
            throw uno::RuntimeException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Cannot query XPropertySetInfo")),
                                        uno::Reference< uno::XInterface >
                                        ( static_cast< XAccessible* > (this) ) );   // disambiguate hierarchy

        // build sequence of available properties to check
        sal_Int32 nLenReqAttr = rRequestedAttributes.getLength();
        uno::Sequence< beans::Property > aProperties;
        if (nLenReqAttr)
        {
            const rtl::OUString *pRequestedAttributes = rRequestedAttributes.getConstArray();

            aProperties.realloc( nLenReqAttr );
            beans::Property *pProperties = aProperties.getArray();
            sal_Int32 nCurLen = 0;
            for (sal_Int32 i = 0;  i < nLenReqAttr;  ++i)
            {
                beans::Property aProp;
                try
                {
                    aProp = xPropSetInfo->getPropertyByName( pRequestedAttributes[i] );
                }
                catch (beans::UnknownPropertyException &)
                {
                    continue;
                }
                pProperties[ nCurLen++ ] = aProp;
            }
            aProperties.realloc( nCurLen );
        }
        else
            aProperties = xPropSetInfo->getProperties();
        
        sal_Int32 nLength = aProperties.getLength();
        const beans::Property *pProperties = aProperties.getConstArray();

        // build resulting sequence
        uno::Sequence< beans::PropertyValue > aOutSequence( nLength );
        beans::PropertyValue* pOutSequence = aOutSequence.getArray();
        sal_Int32 nOutLen = 0;
        for (sal_Int32 i = 0;  i < nLength;  ++i)
        {
            // calling 'regular' functions that will operate on the selection 
            PropertyState eState = aPropSet.getPropertyState( pProperties->Name );
=====================================================================
Found a 13 line (269 tokens) duplication in the following files: 
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 491 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedAxisAndGridExistenceProperties.cxx
Starting at line 234 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedAxisAndGridExistenceProperties.cxx

    virtual ~WrappedAxisTitleExistenceProperty();

    virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

private: //member
    ::boost::shared_ptr< Chart2ModelContact >   m_spChart2ModelContact;
=====================================================================
Found a 18 line (268 tokens) duplication in the following files: 
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fucon3d.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fucon3d.cxx

		case SID_3D_PYRAMID:
		{
			::basegfx::B2DPolygon aInnerPoly;

			aInnerPoly.append(::basegfx::B2DPoint(0, -1000*5));
			aInnerPoly.append(::basegfx::B2DPoint(25*5, -900*5));
			aInnerPoly.append(::basegfx::B2DPoint(50*5, -800*5));
			aInnerPoly.append(::basegfx::B2DPoint(100*5, -600*5));
			aInnerPoly.append(::basegfx::B2DPoint(200*5, -200*5));
			aInnerPoly.append(::basegfx::B2DPoint(300*5, 200*5));
			aInnerPoly.append(::basegfx::B2DPoint(400*5, 600*5));
			aInnerPoly.append(::basegfx::B2DPoint(500*5, 1000*5));
			aInnerPoly.append(::basegfx::B2DPoint(400*5, 1000*5));
			aInnerPoly.append(::basegfx::B2DPoint(300*5, 1000*5));
			aInnerPoly.append(::basegfx::B2DPoint(200*5, 1000*5));
			aInnerPoly.append(::basegfx::B2DPoint(100*5, 1000*5));
			aInnerPoly.append(::basegfx::B2DPoint(50*5, 1000*5));
			aInnerPoly.append(::basegfx::B2DPoint(0, 1000*5));
=====================================================================
Found a 51 line (268 tokens) duplication in the following files: 
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
#endif
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic)" );
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 15 line (268 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	};

	const INT16 A_nPunctDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 16 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 48 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 80 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err  // 112 ...
	};

	DYN StmArrayStatu2 * dpStatusTop
=====================================================================
Found a 12 line (268 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/ary/kernel/namesort.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/ary/kernel/namesort.cxx

       42, 44, 46, 48,  50, 52, 54, 56,      58, 60, 62,255, 255,255,255,255,

      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255, //128 ..
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255, //160 ..
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
        
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255
    };
=====================================================================
Found a 59 line (267 tokens) duplication in the following files: 
Starting at line 3409 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 1013 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

			((SdrTextObj*)this)->pOutlinerParaObject=rOutliner.CreateParaObject();
	}

	Point aTextPos(aAnkRect.TopLeft());
	Size aTextSiz(rOutliner.GetPaperSize()); // GetPaperSize() hat etwas Toleranz drauf, oder?

	// #106653#
	// For draw objects containing text correct hor/ver alignment if text is bigger
	// than the object itself. Without that correction, the text would always be
	// formatted to the left edge (or top edge when vertical) of the draw object.
	if(!IsTextFrame())
	{
		if(aAnkRect.GetWidth() < aTextSiz.Width() && !IsVerticalWriting())
		{
			// #110129#
			// Horizontal case here. Correct only if eHAdj == SDRTEXTHORZADJUST_BLOCK,
			// else the alignment is wanted.
			if(SDRTEXTHORZADJUST_BLOCK == eHAdj)
			{
				eHAdj = SDRTEXTHORZADJUST_CENTER;
			}
		}

		if(aAnkRect.GetHeight() < aTextSiz.Height() && IsVerticalWriting())
		{
			// #110129#
			// Vertical case here. Correct only if eHAdj == SDRTEXTVERTADJUST_BLOCK,
			// else the alignment is wanted.
			if(SDRTEXTVERTADJUST_BLOCK == eVAdj)
			{
				eVAdj = SDRTEXTVERTADJUST_CENTER;
			}
		}
	}

	if (eHAdj==SDRTEXTHORZADJUST_CENTER || eHAdj==SDRTEXTHORZADJUST_RIGHT)
	{
		long nFreeWdt=aAnkRect.GetWidth()-aTextSiz.Width();
		if (eHAdj==SDRTEXTHORZADJUST_CENTER)
			aTextPos.X()+=nFreeWdt/2;
		if (eHAdj==SDRTEXTHORZADJUST_RIGHT)
			aTextPos.X()+=nFreeWdt;
	}
	if (eVAdj==SDRTEXTVERTADJUST_CENTER || eVAdj==SDRTEXTVERTADJUST_BOTTOM)
	{
		long nFreeHgt=aAnkRect.GetHeight()-aTextSiz.Height();
		if (eVAdj==SDRTEXTVERTADJUST_CENTER)
			aTextPos.Y()+=nFreeHgt/2;
		if (eVAdj==SDRTEXTVERTADJUST_BOTTOM)
			aTextPos.Y()+=nFreeHgt;
	}
	if (aGeo.nDrehWink!=0)
		RotatePoint(aTextPos,aAnkRect.TopLeft(),aGeo.nSin,aGeo.nCos);

	if (pAnchorRect)
		*pAnchorRect=aAnkRect;

	// rTextRect ist bei ContourFrame in einigen Faellen nicht korrekt
	rTextRect=Rectangle(aTextPos,aTextSiz);
=====================================================================
Found a 12 line (267 tokens) duplication in the following files: 
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BACKGROUND),		WID_PAGE_BACK,		&ITYPE(beans::XPropertySet),					0,  0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BOTTOM),			WID_PAGE_BOTTOM,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_LEFT),				WID_PAGE_LEFT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_RIGHT),			WID_PAGE_RIGHT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_TOP),				WID_PAGE_TOP,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP),		WID_PAGE_LDBITMAP,	&ITYPE(awt::XBitmap),							beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME),	    WID_PAGE_LDNAME,	&::getCppuType((const OUString*)0),			    beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_NUMBER),			WID_PAGE_NUMBER,	&::getCppuType((const sal_Int16*)0),			beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_ORIENTATION),		WID_PAGE_ORIENT,	&::getCppuType((const view::PaperOrientation*)0),0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_WIDTH),			WID_PAGE_WIDTH,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN("BackgroundFullSize"),			WID_PAGE_BACKFULL,	&::getBooleanCppuType(),						0, 0},
=====================================================================
Found a 67 line (267 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_String_Utils.cxx
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_String_Utils.cxx

using namespace rtl;

sal_uInt32 AStringLen( const sal_Char *pAStr )
{
	sal_uInt32  nStrLen = 0;

	if ( pAStr != NULL )
	{
		const sal_Char *pTempStr = pAStr;

		while( *pTempStr )
		{
			pTempStr++;
		} // while

		nStrLen = (sal_uInt32)( pTempStr - pAStr );
	} // if

	return nStrLen;
} // AStringLen
sal_Char* cpystr( sal_Char* dst, const sal_Char* src )
{
    const sal_Char* psrc = src;
    sal_Char* pdst = dst;

    while( *pdst++ = *psrc++ );
    return ( dst );
}

sal_Char* cpynstr( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt )
{

    const sal_Char* psrc = src;
    sal_Char* pdst = dst;
    sal_uInt32 len = cnt;
    sal_uInt32 i;

    if ( len >= AStringLen(src) )
    {
        return( cpystr( dst, src ) );
    }

    // copy string by char
    for( i = 0; i < len; i++ )
        *pdst++ = *psrc++;
    *pdst = '\0';

    return ( dst );
}

//------------------------------------------------------------------------
sal_Bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len )
{
    const sal_Char* pBuf1 = str1;
    const sal_Char* pBuf2 = str2;
    sal_uInt32 i = 0;

    while ( (*pBuf1 == *pBuf2) && i < len )
    {
        (pBuf1)++;
        (pBuf2)++;
        i++;
    }
    return( i == len );
}
//------------------------------------------------------------------------
sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len )
=====================================================================
Found a 7 line (267 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c50 - 2c57
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c58 - 2c5f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c60 - 2c67
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c68 - 2c6f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c70 - 2c77
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c78 - 2c7f
    {0x6a, 0x2c81}, {0x15, 0x2c80}, {0x6a, 0x2c83}, {0x15, 0x2c82}, {0x6a, 0x2c85}, {0x15, 0x2c84}, {0x6a, 0x2c87}, {0x15, 0x2c86}, // 2c80 - 2c87, Coptic
=====================================================================
Found a 51 line (267 tokens) duplication in the following files: 
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_textlayout.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_textlayout.cxx

        mpFont.reset();
    }

    // XTextLayout
    uno::Sequence< uno::Reference< rendering::XPolyPolygon2D > > SAL_CALL TextLayout::queryTextShapes(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return uno::Sequence< uno::Reference< rendering::XPolyPolygon2D > >();
    }

    uno::Sequence< geometry::RealRectangle2D > SAL_CALL TextLayout::queryInkMeasures(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return uno::Sequence< geometry::RealRectangle2D >();
    }

    uno::Sequence< geometry::RealRectangle2D > SAL_CALL TextLayout::queryMeasures(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // TODO
        return uno::Sequence< geometry::RealRectangle2D >();
    }

    uno::Sequence< double > SAL_CALL TextLayout::queryLogicalAdvancements(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        return maLogicalAdvancements;
    }

    void SAL_CALL TextLayout::applyLogicalAdvancements( const uno::Sequence< double >& aAdvancements ) throw (lang::IllegalArgumentException, uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        if( aAdvancements.getLength() != maText.Length )
        {
            OSL_TRACE( "TextLayout::applyLogicalAdvancements(): mismatching number of advancements" );
            throw lang::IllegalArgumentException();
        }

        maLogicalAdvancements = aAdvancements;
    }

    geometry::RealRectangle2D SAL_CALL TextLayout::queryTextBounds(  ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );
=====================================================================
Found a 52 line (267 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
			pUnoArgs[nPos] = pCppStack;
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
                break;
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
=====================================================================
Found a 13 line (267 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 387 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idl/cx_idlco.cxx

	};

	const INT16 A_nPunctDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 16 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 48 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 80 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err  // 112 ...
	};
=====================================================================
Found a 11 line (266 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

     41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0,  0,  0,  0,  0, // 112-127
//    p   q   r   s   t   u   v   w   x   y   z

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 6 line (266 tokens) duplication in the following files: 
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd0 - ffd7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd8 - ffdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe0 - ffe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe8 - ffef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff0 - fff7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff8 - ffff
=====================================================================
Found a 10 line (266 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16f0 - 16ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1700 - 170f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1710 - 171f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
=====================================================================
Found a 57 line (265 tokens) duplication in the following files: 
Starting at line 1118 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unomodel.cxx
Starting at line 553 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unomod.cxx

		return (::cppu::OWeakObject * )new SvxUnoTextField( ID_EXT_DATEFIELD );
	}

	uno::Reference< uno::XInterface > xRet;

	const String aType( aServiceSpecifier );
	if( aType.EqualsAscii( "com.sun.star.presentation.", 0, 26 ) )
	{
		SvxShape* pShape = NULL;

		sal_uInt16 nType = OBJ_TEXT;
		// create a shape wrapper
		if( aType.EqualsAscii( "TitleTextShape", 26, 14 ) )
		{
			nType = OBJ_TEXT;
		}
		else if( aType.EqualsAscii( "OutlinerShape", 26, 13 ) )
		{
			nType = OBJ_TEXT;
		}
		else if( aType.EqualsAscii( "SubtitleShape", 26, 13 ) )
		{
			nType = OBJ_TEXT;
		}
		else if( aType.EqualsAscii( "GraphicObjectShape", 26, 18 ) )
		{
			nType = OBJ_GRAF;
		}
		else if( aType.EqualsAscii( "PageShape", 26, 9 ) )
		{
			nType = OBJ_PAGE;
		}
		else if( aType.EqualsAscii( "OLE2Shape", 26, 9 ) )
		{
			nType = OBJ_OLE2;
		}
		else if( aType.EqualsAscii( "ChartShape", 26, 10 ) )
		{
			nType = OBJ_OLE2;
		}
		else if( aType.EqualsAscii( "TableShape", 26, 10 ) )
		{
			nType = OBJ_OLE2;
		}
		else if( aType.EqualsAscii( "OrgChartShape", 26, 13 ) )
		{
			nType = OBJ_OLE2;
		}
		else if( aType.EqualsAscii( "NotesShape", 26, 13 ) )
		{
			nType = OBJ_TEXT;
		}
		else if( aType.EqualsAscii( "HandoutShape", 26, 13 ) )
		{
			nType = OBJ_PAGE;
		}
		else
=====================================================================
Found a 42 line (265 tokens) duplication in the following files: 
Starting at line 3925 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3992 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

	double fCount           = 0.0;
	double fSumX            = 0.0;
	double fSumY            = 0.0;
	double fSumDeltaXDeltaY = 0.0; // sum of (ValX-MeanX)*(ValY-MeanY)
	double fSumSqrDeltaX    = 0.0; // sum of (ValX-MeanX)^2
	for (SCSIZE i = 0; i < nC1; i++)
    {
		for (SCSIZE j = 0; j < nR1; j++)
		{
			if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
			{
				double fValX = pMat1->GetDouble(i,j);
				double fValY = pMat2->GetDouble(i,j);
				fSumX += fValX;
				fSumY += fValY;
				fCount++;
			}
		}
    }
	if (fCount < 1.0)
		SetNoValue();
	else
	{
		double fMeanX = fSumX / fCount;
		double fMeanY = fSumY / fCount;
		for (SCSIZE i = 0; i < nC1; i++)
        {
            for (SCSIZE j = 0; j < nR1; j++)
            {
                if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
                {
                    double fValX = pMat1->GetDouble(i,j);
                    double fValY = pMat2->GetDouble(i,j);
                    fSumDeltaXDeltaY += (fValX - fMeanX) * (fValY - fMeanY);
                    fSumSqrDeltaX    += (fValX - fMeanX) * (fValX - fMeanX);
                }
            }
        }
		if (fSumSqrDeltaX == 0.0)
            PushError( errDivisionByZero);
		else
			PushDouble( fMeanY + fSumDeltaXDeltaY / fSumSqrDeltaX * (fVal - fMeanX));
=====================================================================
Found a 45 line (265 tokens) duplication in the following files: 
Starting at line 1789 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 1875 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

	Section = (sal_Char *)stripBlanks(Section, &Len);
	pProfile->m_Sections[pProfile->m_NoSections - 1].m_Line = Line;
	pProfile->m_Sections[pProfile->m_NoSections - 1].m_Offset = Section - pProfile->m_Lines[Line];
	pProfile->m_Sections[pProfile->m_NoSections - 1].m_Len = Len;

	return (sal_True);
}

static void removeSection(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection)
{
	sal_uInt32 Section;

	if ((Section = pSection - pProfile->m_Sections) < pProfile->m_NoSections)
	{
		free (pSection->m_Entries);
		pSection->m_Entries=0;
		if (pProfile->m_NoSections - Section > 1)
		{
			memmove(&pProfile->m_Sections[Section], &pProfile->m_Sections[Section + 1],
					(pProfile->m_NoSections - Section - 1) * sizeof(osl_TProfileSection));

			memset(&pProfile->m_Sections[pProfile->m_NoSections - 1],
				0,
				(pProfile->m_MaxSections - pProfile->m_NoSections) * sizeof(osl_TProfileSection));
			pProfile->m_Sections[pProfile->m_NoSections - 1].m_Entries = 0;
		}
		else
		{
			pSection->m_Entries = 0;
		}

		pProfile->m_NoSections--;
	}

	return;
}

static osl_TProfileSection* findEntry(osl_TProfileImpl* pProfile, const sal_Char* Section,
                                      const sal_Char* Entry, sal_uInt32 *pNoEntry)
{
static  sal_uInt32    Sect = 0;
		sal_uInt32    i, n;
		sal_uInt32    Len;
		const sal_Char* pStr;
		osl_TProfileSection* pSec = NULL;
=====================================================================
Found a 11 line (265 tokens) duplication in the following files: 
Starting at line 621 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 662 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,21,21,21,21,11,21,21,// 2cf0 - 2cff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f	Block index 0x27
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2e80 - 2e8f
=====================================================================
Found a 47 line (265 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1575 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
            !(a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("2")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type", (a >>= b) && b == getCppuType< sal_Int32 >());
=====================================================================
Found a 14 line (265 tokens) duplication in the following files: 
Starting at line 834 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

	m_pDbgWin->AddText( "Reading Conmmand:" );
	m_pDbgWin->AddText( " Methode: " );
	m_pDbgWin->AddText( aSmartMethodId.GetText() );
	m_pDbgWin->AddText( " Params:" );
	if( nParams & PARAM_USHORT_1 )	{m_pDbgWin->AddText( " n1:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr1 ) );}
	if( nParams & PARAM_USHORT_2 )	{m_pDbgWin->AddText( " n2:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr2 ) );}
	if( nParams & PARAM_USHORT_3 )	{m_pDbgWin->AddText( " n3:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr3 ) );}
	if( nParams & PARAM_USHORT_4 )	{m_pDbgWin->AddText( " n4:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr4 ) );}
	if( nParams & PARAM_ULONG_1 )	{m_pDbgWin->AddText( " nl1:" );m_pDbgWin->AddText( String::CreateFromInt64( nLNr1 ) );}
	if( nParams & PARAM_STR_1 )		{m_pDbgWin->AddText( " s1:" );m_pDbgWin->AddText( aString1 );}
	if( nParams & PARAM_STR_2 )		{m_pDbgWin->AddText( " s2:" );m_pDbgWin->AddText( aString2 );}
	if( nParams & PARAM_BOOL_1 )    {m_pDbgWin->AddText( " b1:" );m_pDbgWin->AddText( bBool1 ? "TRUE" : "FALSE" );}
	if( nParams & PARAM_BOOL_2 )    {m_pDbgWin->AddText( " b2:" );m_pDbgWin->AddText( bBool2 ? "TRUE" : "FALSE" );}
	m_pDbgWin->AddText( "\n" );
=====================================================================
Found a 42 line (264 tokens) duplication in the following files: 
Starting at line 3859 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3992 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

	double fCount           = 0.0;
	double fSumX            = 0.0;
	double fSumY            = 0.0;
	double fSumDeltaXDeltaY = 0.0; // sum of (ValX-MeanX)*(ValY-MeanY)
	double fSumSqrDeltaX    = 0.0; // sum of (ValX-MeanX)^2
	for (SCSIZE i = 0; i < nC1; i++)
    {
		for (SCSIZE j = 0; j < nR1; j++)
		{
			if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
			{
				double fValX = pMat1->GetDouble(i,j);
				double fValY = pMat2->GetDouble(i,j);
				fSumX += fValX;
				fSumY += fValY;
				fCount++;
			}
		}
    }
	if (fCount < 1.0)
		SetNoValue();
	else
	{
		double fMeanX = fSumX / fCount;
		double fMeanY = fSumY / fCount;
		for (SCSIZE i = 0; i < nC1; i++)
        {
            for (SCSIZE j = 0; j < nR1; j++)
            {
                if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
                {
                    double fValX = pMat1->GetDouble(i,j);
                    double fValY = pMat2->GetDouble(i,j);
                    fSumDeltaXDeltaY += (fValX - fMeanX) * (fValY - fMeanY);
                    fSumSqrDeltaX    += (fValX - fMeanX) * (fValX - fMeanX);
                }
            }
        }
		if (fSumSqrDeltaX == 0.0)
            PushError( errDivisionByZero);
		else
			PushDouble( fMeanY + fSumDeltaXDeltaY / fSumSqrDeltaX * (fVal - fMeanX));
=====================================================================
Found a 18 line (264 tokens) duplication in the following files: 
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_MS_1252,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0xFFFF,0x201A,0x0192,0x201E,0x2026,0x2020,0x2021,
=====================================================================
Found a 60 line (264 tokens) duplication in the following files: 
Starting at line 3107 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 878 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_StreamSocket.cxx

                osl::Condition aCondition;
                SendClientThread mySendThread;
                mySendThread.create();
            
                asSocket.enableNonBlockingMode( sal_False );
                ::osl::StreamSocket ssConnectionSocket;
                oslSocketResult eResult = asSocket.acceptConnection( ssConnectionSocket );
                CPPUNIT_ASSERT_MESSAGE("shutdown_002: acceptConnection fail", eResult == osl_Socket_Ok );
            
                thread_sleep( 1 );
                //shutdown write after client the first send complete
                ssConnectionSocket.shutdown( osl_Socket_DirWrite );
            
                // recv should not shutdown
                sal_Int32 nRead1 = ssConnectionSocket.read( pReadBuffer, 11 );
            
                sal_Int32 nWrite = ssConnectionSocket.write( pReadBuffer, 11 );
                // still can read
                sal_Int32 nRead3 = ssConnectionSocket.read( pReadBuffer + nRead1 , 12 );
                t_print("after read 2, nRead1 is %d, nWrite is %d, nRead3 is %d\n", nRead1, nWrite, nRead3 );
                mySendThread.join();
                ssConnectionSocket.close();
                asSocket.close();
                        
                CPPUNIT_ASSERT_MESSAGE( "test for shutdown read direction: the socket can not send(write).", 
                                        nRead1  > 0  && nWrite == 0 && nRead3 > 0);
            
            }
        
        CPPUNIT_TEST_SUITE( shutdown );
        CPPUNIT_TEST( shutdown_001 );
        CPPUNIT_TEST( shutdown_002 );
        CPPUNIT_TEST( shutdown_003 );
        CPPUNIT_TEST_SUITE_END();
    }; // class shutdown

    class isExceptionPending: public CppUnit::TestFixture
    {
    public:
        void isExPending_001()
            {
                ::osl::AcceptorSocket asSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
                TimeValue *pTimeout;
                pTimeout  = ( TimeValue* )malloc( sizeof( TimeValue ) );            
                pTimeout->Seconds = 3;
                pTimeout->Nanosec = 0;
                sal_Bool bOk = asSocket.isExceptionPending( pTimeout );
                free( pTimeout );
                                        
                CPPUNIT_ASSERT_MESSAGE( "test for isExceptionPending.", 
                                        bOk == sal_False );
            }
        
        /**tester's comments: lack of a case that return sal_True, do not know when it will return sal_True*/
        
        
        CPPUNIT_TEST_SUITE( isExceptionPending );
        CPPUNIT_TEST( isExPending_001 );
        CPPUNIT_TEST_SUITE_END();
    }; // class isExceptionPending
=====================================================================
Found a 70 line (264 tokens) duplication in the following files: 
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/cpp/remoteclient/remoteclient.cxx
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/examples/officeclient.cxx

			seqNames.getArray()[0] = OUString::createFromAscii( "com.sun.star.bridge.example.OfficeClientExample" );
			pNames = &seqNames;
		}
	}
	return *pNames;
}

}

using namespace remotebridges_officeclient;
#define IMPLEMENTATION_NAME "com.sun.star.comp.remotebridges.example.OfficeClientSample"


extern "C"
{
//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	if (pRegistryKey)
	{
		try
		{
			Reference< XRegistryKey > xNewKey(
				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
					OUString::createFromAscii( "/" IMPLEMENTATION_NAME "/UNO/SERVICES" ) ) );
			
			const Sequence< OUString > & rSNL = getSupportedServiceNames();
			const OUString * pArray = rSNL.getConstArray();
			for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
				xNewKey->createKey( pArray[nPos] );
			
			return sal_True;
		}
		catch (InvalidRegistryException &)
		{
			OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
		}
	}
	return sal_False;
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
	void * pRet = 0;
	
	if (pServiceManager && rtl_str_compare( pImplName, IMPLEMENTATION_NAME ) == 0)
	{
		Reference< XSingleServiceFactory > xFactory( createSingleFactory(
			reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
			OUString::createFromAscii( pImplName ),
			CreateInstance, getSupportedServiceNames() ) );
		
		if (xFactory.is())
		{
			xFactory->acquire();
			pRet = xFactory.get();
		}
	}
	
	return pRet;
}
}
=====================================================================
Found a 75 line (264 tokens) duplication in the following files: 
Starting at line 312 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/cpp/FlatXml.cxx

			seqNames.getArray()[0] = OUString::createFromAscii( "com.sun.star.documentconversion.XFlatXml" );
			pNames = &seqNames;
		}
	}
	return *pNames;
}

}

using namespace XFlatXml;
#define IMPLEMENTATION_NAME "com.sun.star.documentconversion.XFlatXml"


extern "C"
{
//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
        // printf("\ncomponent_getImplementationEnvironment\n");
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
	 
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{

        //fprintf(stderr,"\ncomponent_writeInfo\n");
	if (pRegistryKey)
	{
		try
		{
			Reference< XRegistryKey > xNewKey(
				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
					OUString::createFromAscii( "/" IMPLEMENTATION_NAME "/UNO/SERVICES" ) ) );
			
			const Sequence< OUString > & rSNL = getSupportedServiceNames();
			const OUString * pArray = rSNL.getConstArray();
			for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
				xNewKey->createKey( pArray[nPos] );
			
			return sal_True;
		}
		catch (InvalidRegistryException &)
		{
			OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
		}
	}
	return sal_False;
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
        //fprintf(stderr,"\ncomponent_getFactory");
	void * pRet = 0;
	
	if (pServiceManager && rtl_str_compare( pImplName, IMPLEMENTATION_NAME ) == 0)
	{
		Reference< XSingleServiceFactory > xFactory( createSingleFactory(
			reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
			OUString::createFromAscii( pImplName ),
			CreateInstance, getSupportedServiceNames() ) );
		
		if (xFactory.is())
		{
			xFactory->acquire();
			pRet = xFactory.get();
		}
	}
	
	return pRet;
}
}
=====================================================================
Found a 137 line (264 tokens) duplication in the following files: 
Starting at line 1506 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx

case 20:
YY_RULE_SETUP
#line 345 "RTFScanner.lex"
ECHO;
	YY_BREAK
#line 1027 "RTFScanner.cxx"
			case YY_STATE_EOF(INITIAL):
				yyterminate();

	case YY_END_OF_BUFFER:
		{
		/* Amount of text matched not including the EOB char. */
		int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;

		/* Undo the effects of YY_DO_BEFORE_ACTION. */
		*yy_cp = yy_hold_char;
		YY_RESTORE_YY_MORE_OFFSET

		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
			{
			/* We're scanning a new file or input source.  It's
			 * possible that this happened because the user
			 * just pointed yyin at a new source and called
			 * yylex().  If so, then we have to assure
			 * consistency between yy_current_buffer and our
			 * globals.  Here is the right place to do so, because
			 * this is the first action (other than possibly a
			 * back-up) that will match for the new input source.
			 */
			yy_n_chars = yy_current_buffer->yy_n_chars;
			yy_current_buffer->yy_input_file = yyin;
			yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
			}

		/* Note that here we test for yy_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since yy_c_buf_p will
		 * already have been incremented past the NUL character
		 * (since all states make transitions on EOB to the
		 * end-of-buffer state).  Contrast this with the test
		 * in input().
		 */
		if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			{ /* This was really a NUL. */
			yy_state_type yy_next_state;

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

			/* Okay, we're now positioned to make the NUL
			 * transition.  We couldn't have
			 * yy_get_previous_state() go ahead and do it
			 * for us because it doesn't know how to deal
			 * with the possibility of jamming (and we don't
			 * want to build jamming into it because then it
			 * will run more slowly).
			 */

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

			if ( yy_next_state )
				{
				/* Consume the NUL. */
				yy_cp = ++yy_c_buf_p;
				yy_current_state = yy_next_state;
				goto yy_match;
				}

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

		else switch ( yy_get_next_buffer() )
			{
			case EOB_ACT_END_OF_FILE:
				{
				yy_did_buffer_switch_on_eof = 0;

				if ( yywrap() )
					{
					/* Note: because we've taken care in
					 * yy_get_next_buffer() to have set up
					 * yytext, we can now set up
					 * yy_c_buf_p so that if some total
					 * hoser (like flex itself) wants to
					 * call the scanner after we return the
					 * YY_NULL, it'll still work - another
					 * YY_NULL will get returned.
					 */
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

				else
					{
					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
					}
				break;
				}

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_match;

			case EOB_ACT_LAST_MATCH:
				yy_c_buf_p =
				&yy_current_buffer->yy_ch_buf[yy_n_chars];

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_find_action;
			}
		break;
		}

	default:
		YY_FATAL_ERROR(
			"fatal flex scanner internal error--no action found" );
	} /* end of action switch */
		} /* end of scanning one token */
	} /* end of yylex */
=====================================================================
Found a 33 line (264 tokens) duplication in the following files: 
Starting at line 946 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	if ( ( m_nObjectState != -1 || nEntryConnectionMode == embed::EntryInitModes::NO_INIT )
	  && ( m_nObjectState == -1 || nEntryConnectionMode != embed::EntryInitModes::NO_INIT ) )
	{
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "Can't change persistant representation of activated object!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

    if ( m_bWaitSaveCompleted )
	{
		if ( nEntryConnectionMode == embed::EntryInitModes::NO_INIT )
			saveCompleted( ( m_xParentStorage != xStorage || !m_aEntryName.equals( sEntName ) ) );
		else
			throw embed::WrongStateException(
						::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
						uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( nEntryConnectionMode == embed::EntryInitModes::DEFAULT_INIT
=====================================================================
Found a 47 line (264 tokens) duplication in the following files: 
Starting at line 941 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1461 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObject::setPersistentEntry" );

	// TODO: use lObjArgs

	// the type of the object must be already set
	// a kind of typedetection should be done in the factory;
	// the only exception is object initialized from a stream,
	// the class ID will be detected from the stream

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	// May be LOADED should be forbidden here ???
	if ( ( m_nObjectState != -1 || nEntryConnectionMode == embed::EntryInitModes::NO_INIT )
	  && ( m_nObjectState == -1 || nEntryConnectionMode != embed::EntryInitModes::NO_INIT ) )
	{
		// if the object is not loaded
		// it can not get persistant representation without initialization

		// if the object is loaded
		// it can switch persistant representation only without initialization

		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "Can't change persistant representation of activated object!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
	{
		if ( nEntryConnectionMode == embed::EntryInitModes::NO_INIT )
			saveCompleted( ( m_xParentStorage != xStorage || !m_aEntryName.equals( sEntName ) ) );
		else
			throw embed::WrongStateException(
						::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
						uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_mask.h

static char nodrop_mask_bits[] = {
   0xc0, 0x0f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00,
   0xfc, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x01, 0x00, 0x7e, 0xfe, 0x01, 0x00,
   0x3f, 0xff, 0x03, 0x00, 0x9f, 0xff, 0x03, 0x00, 0xdf, 0xff, 0x03, 0x00,
   0xff, 0xef, 0x03, 0x00, 0xff, 0xe7, 0x03, 0x00, 0xff, 0xf3, 0x03, 0x00,
   0xfe, 0xf9, 0x01, 0x00, 0xfe, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x00, 0x00,
   0xf8, 0x7f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_curs.h

static char nodrop_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00,
   0xf8, 0x7f, 0x00, 0x00, 0x7c, 0xf8, 0x00, 0x00, 0x1c, 0xfc, 0x00, 0x00,
   0x1e, 0xfe, 0x01, 0x00, 0x0e, 0xdf, 0x01, 0x00, 0x8e, 0xcf, 0x01, 0x00,
   0xce, 0xc7, 0x01, 0x00, 0xee, 0xc3, 0x01, 0x00, 0xfe, 0xe1, 0x01, 0x00,
   0xfc, 0xe0, 0x00, 0x00, 0x7c, 0xf8, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00,
   0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/movedata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movedata_mask.h

static char movedata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xe0, 0x01, 0x00,
   0x3c, 0xe0, 0x01, 0x00, 0x3c, 0xe0, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0xf8, 0xff, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/movedata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movedata_curs.h

static char movedata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00,
   0x10, 0x40, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00,
   0xa8, 0xaa, 0x00, 0x00, 0x50, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/linkdata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkdata_mask.h

static char linkdata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xf8, 0x3f, 0x00,
   0x3c, 0xf8, 0x3f, 0x00, 0x3c, 0xf8, 0x3f, 0x00, 0xfc, 0xff, 0x3f, 0x00,
   0xfc, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0x3f, 0x00,
   0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00,
   0x00, 0xf8, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/linkdata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkdata_curs.h

static char linkdata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
   0x10, 0xf0, 0x1f, 0x00, 0x08, 0x70, 0x18, 0x00, 0x10, 0xf0, 0x18, 0x00,
   0xa8, 0x72, 0x18, 0x00, 0x50, 0x35, 0x1a, 0x00, 0x00, 0x30, 0x1f, 0x00,
   0x00, 0xb0, 0x1f, 0x00, 0x00, 0x70, 0x1f, 0x00, 0x00, 0xf0, 0x1f, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/copydata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_mask.h

static char copydata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xf8, 0x3f, 0x00,
   0x3c, 0xf8, 0x3f, 0x00, 0x3c, 0xf8, 0x3f, 0x00, 0xfc, 0xff, 0x3f, 0x00,
   0xfc, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0x3f, 0x00,
   0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00,
   0x00, 0xf8, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/copydata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_curs.h

static char copydata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
   0x10, 0xf0, 0x1f, 0x00, 0x08, 0xf0, 0x1f, 0x00, 0x10, 0xf0, 0x1e, 0x00,
   0xa8, 0xf2, 0x1e, 0x00, 0x50, 0x35, 0x18, 0x00, 0x00, 0xf0, 0x1e, 0x00,
   0x00, 0xf0, 0x1e, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0xf0, 0x1f, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 39 line (264 tokens) duplication in the following files: 
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1519 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

            (a >>= b) && b.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("1")));
    }
    {
        css::uno::Type b(getCppuType< rtl::OUString >());
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Type",
            !(a >>= b) && b == getCppuType< rtl::OUString >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testType() {
=====================================================================
Found a 13 line (264 tokens) duplication in the following files: 
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/cx_c_std.cxx
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idl/cx_idlco.cxx

	const INT16 A_nPunctDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 16 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 48 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 80 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err  // 112 ...
	};

	const INT16 A_nKeywordDefStatus[C_nStatusSize] =
=====================================================================
Found a 12 line (264 tokens) duplication in the following files: 
Starting at line 299 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/cx_c_std.cxx
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	};

	const INT16 A_nWhitespaceStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{fof,err,err,err,err,err,err,err,err,wht,fig,wht,wht,fig,err,err,
	 err,err,err,err,err,err,err,err,err,err,fof,err,err,err,err,err, // ... 31
	 wht,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig, // ... 63
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig, // ... 95
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig  // ... 127
=====================================================================
Found a 13 line (264 tokens) duplication in the following files: 
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx

	const INT16 A_nAtTagDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{faw,err,err,err,err,err,err,err,err,faw,faw,faw,faw,faw,err,err,
	 err,err,err,err,err,err,err,err,err,err,faw,err,err,err,err,err, // ... 31
	 faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 63
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd  // ... 127
	};

	const INT16 A_nPunctDefStatus[C_nStatusSize] =
=====================================================================
Found a 44 line (263 tokens) duplication in the following files: 
Starting at line 1919 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 1976 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

	else if (fTyp == 3.0)
	{
		double fCount1  = 0.0;
		double fCount2  = 0.0;
		double fSum1    = 0.0;
		double fSumSqr1 = 0.0;
		double fSum2    = 0.0;
		double fSumSqr2 = 0.0;
		double fVal;
		for (i = 0; i < nC1; i++)
			for (j = 0; j < nR1; j++)
			{
				if (!pMat1->IsString(i,j))
				{
					fVal = pMat1->GetDouble(i,j);
					fSum1    += fVal;
					fSumSqr1 += fVal * fVal;
					fCount1++;
				}
			}
		for (i = 0; i < nC2; i++)
			for (j = 0; j < nR2; j++)
			{
				if (!pMat2->IsString(i,j))
				{
					fVal = pMat2->GetDouble(i,j);
					fSum2    += fVal;
					fSumSqr2 += fVal * fVal;
					fCount2++;
				}
			}
		if (fCount1 < 2.0 || fCount2 < 2.0)
		{
			SetNoValue();
			return;
		}
		double fS1 = (fSumSqr1-fSum1*fSum1/fCount1)/(fCount1-1.0)/fCount1;
		double fS2 = (fSumSqr2-fSum2*fSum2/fCount2)/(fCount2-1.0)/fCount2;
		if (fS1 + fS2 == 0.0)
		{
			SetNoValue();
			return;
		}
		fT = fabs(fSum1/fCount1 - fSum2/fCount2)/sqrt(fS1+fS2);
=====================================================================
Found a 33 line (263 tokens) duplication in the following files: 
Starting at line 529 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx
Starting at line 621 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx

    if (!aRef.Ref1.IsColRel())
        rBuffer.append(sal_Unicode('$'));
    if ( aRef.Ref1.IsColDeleted() )
        rBuffer.append(ScGlobal::GetRscString(STR_NO_REF_TABLE));
    else
        MakeColStr(rBuffer, aRef.Ref1.nCol );
    if (!aRef.Ref1.IsRowRel())
        rBuffer.append(sal_Unicode('$'));
    if ( aRef.Ref1.IsRowDeleted() )
        rBuffer.append(ScGlobal::GetRscString(STR_NO_REF_TABLE));
    else
        MakeRowStr( rBuffer, aRef.Ref1.nRow );
    if (!bSingleRef)
    {
        rBuffer.append(sal_Unicode(':'));
        if (aRef.Ref2.IsFlag3D() || aRef.Ref2.nTab != aRef.Ref1.nTab)
        {
            if (aRef.Ref2.IsTabDeleted())
            {
                if (!aRef.Ref2.IsTabRel())
                    rBuffer.append(sal_Unicode('$'));
                rBuffer.append(ScGlobal::GetRscString(STR_NO_REF_TABLE));
                rBuffer.append(sal_Unicode('.'));
            }
            else
            {
                String aDoc;
                String aRefStr( MakeTabStr( rComp, aRef.Ref2.nTab, aDoc ) );
                rBuffer.append(aDoc);
                if (!aRef.Ref2.IsTabRel()) rBuffer.append(sal_Unicode('$'));
                rBuffer.append(aRefStr);
            }
        }
=====================================================================
Found a 48 line (263 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1263 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< double >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", (a >>= b) && b == 1);
=====================================================================
Found a 13 line (263 tokens) duplication in the following files: 
Starting at line 1168 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
Starting at line 1447 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx

    virtual ~WrappedNumberOfLinesProperty();

    virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

protected: //methods
    bool    detectInnerValue( uno::Any& rInnerValue ) const;
=====================================================================
Found a 13 line (263 tokens) duplication in the following files: 
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/cx_c_std.cxx
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idl/cx_idlco.cxx

	const INT16 A_nKeywordDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{fbz,err,err,err,err,err,err,err,err,fbz,fbz,fbz,fbz,fbz,err,err,
	 err,err,err,err,err,err,err,err,err,err,fbz,err,err,err,err,err, // 16 ...
	 fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,fbz,fbz, // 48 ...
	 fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,bez, // 80 ...
	 fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,err  // 112 ...
	};

	DYN StmArrayStatu2 * dpStatusTop
=====================================================================
Found a 18 line (262 tokens) duplication in the following files: 
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 915 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_MS_874,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x2026,0xFFFF,0xFFFF,
=====================================================================
Found a 54 line (262 tokens) duplication in the following files: 
Starting at line 3051 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 820 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_StreamSocket.cxx

                ::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT9);
                asSocket.setOption( osl_Socket_OptionReuseAddr, 1 );
                CPPUNIT_ASSERT_MESSAGE("shutdown_002: bind fail", asSocket.bind( saLocalSocketAddr ) == sal_True);
                CPPUNIT_ASSERT_MESSAGE("shutdown_002: listen fail", asSocket.listen( 1 ) == sal_True );
                sal_Char pReadBuffer[40];
//          osl::Condition aCondition;
                SendClientThread mySendThread;
                mySendThread.create();
            
                asSocket.enableNonBlockingMode( sal_False );
                ::osl::StreamSocket ssConnectionSocket;
                oslSocketResult eResult = asSocket.acceptConnection( ssConnectionSocket );
                CPPUNIT_ASSERT_MESSAGE("shutdown_002: acceptConnection fail", eResult == osl_Socket_Ok );
            
                /* set socket option SO_LINGER 0, so close immediatly */
                linger aLingerSet;
                sal_Int32 nBufferLen = sizeof( struct linger );
                aLingerSet.l_onoff = 0;
                aLingerSet.l_linger = 0;

                ssConnectionSocket.setOption( osl_Socket_OptionLinger,  &aLingerSet, nBufferLen );                    
                thread_sleep( 1 );
                //sal_uInt32 nRecv1 = 0;
                sal_Int32 nRead1 = ssConnectionSocket.read( pReadBuffer, 11 );
                        
                //shutdown read after client the first send complete
                ssConnectionSocket.shutdown( osl_Socket_DirRead );
            
                sal_Int32 nRead2 = ssConnectionSocket.read( pReadBuffer + nRead1, 12 );         
                sal_Int32 nRead3 = ssConnectionSocket.read( pReadBuffer + nRead1 + nRead2, 12 );
                t_print("after read 2, nRead1 is %d, nRead2 is %d, nRead3 is %d \n", nRead1, nRead2, nRead3 );
                mySendThread.join();
            
                ssConnectionSocket.close();
                asSocket.close();
            
                /* on Linux, if send is before shutdown(DirRead), can read, nRecv2 still > 0, 
                   http://dbforums.com/arch/186/2002/12/586417
                   While on Solaris, after shutdown(DirRead), all read will return 0
                */
#ifdef LINUX
                CPPUNIT_ASSERT_MESSAGE( "test for shutdown read direction: the socket can not read(recv).", 
                                        nRead1 > 0  && nRead3 == 0 );
#else
                CPPUNIT_ASSERT_MESSAGE( "test for shutdown read direction: the socket can not read(recv).", 
                                        nRead1 > 0  && nRead2 == 0 && nRead3 == 0 );
#endif
            
            }
        
        void shutdown_003()
            {
                ::osl::AcceptorSocket asSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
                ::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT9);
=====================================================================
Found a 42 line (262 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,    0xE082,         0,         0,
    // F080
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F090
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
};
=====================================================================
Found a 38 line (262 tokens) duplication in the following files: 
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx
Starting at line 1470 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	// May be LOADED should be forbidden here ???
	if ( ( m_nObjectState != -1 || nEntryConnectionMode == embed::EntryInitModes::NO_INIT )
	  && ( m_nObjectState == -1 || nEntryConnectionMode != embed::EntryInitModes::NO_INIT ) )
	{
		// if the object is not loaded
		// it can not get persistant representation without initialization

		// if the object is loaded
		// it can switch persistant representation only without initialization

		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "Can't change persistant representation of activated object!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
	{
		if ( nEntryConnectionMode == embed::EntryInitModes::NO_INIT )
			saveCompleted( ( m_xParentStorage != xStorage || !m_aEntryName.equals( sEntName ) ) );
		else
			throw embed::WrongStateException(
						::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
						uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}
=====================================================================
Found a 55 line (262 tokens) duplication in the following files: 
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idloptions.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javaoptions.cxx

	for( ; i < ac; i++)
	{
		if (av[i][0] == '-')
		{
			switch (av[i][1])
			{
				case 'O':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'n':
=====================================================================
Found a 36 line (262 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/remote/static/proxy.cxx
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/remote/static/stub.cxx

	sal_Int32 i;
	//--------------------------------
	// Collect all needed types !
	//--------------------------------
	if( typelib_TypeClass_INTERFACE_ATTRIBUTE == pType->eTypeClass )
	{
		pAttributeType = ( typelib_InterfaceAttributeTypeDescription * ) pType;
		if( pReturn )
		{
			TYPELIB_DANGER_GET( &pReturnType , pAttributeType->pAttributeTypeRef );
			bConversionNeededForReturn = remote_relatesToInterface( pReturnType );
		}
		else
		{
			nArgCount = 1;
			ppArgType = (typelib_TypeDescription **) alloca( sizeof( void * ) );
			pbIsIn  = ( sal_Bool * ) alloca( sizeof( sal_Bool ) );
			pbIsOut = ( sal_Bool * ) alloca( sizeof( sal_Bool ) );
			pbConversionNeeded = ( sal_Bool * ) alloca( sizeof( sal_Bool ) );
			pbIsIn[0]  = sal_True;
			pbIsOut[0] = sal_False;
			ppArgType[0] = 0;
			TYPELIB_DANGER_GET( &( ppArgType[0] ) , pAttributeType->pAttributeTypeRef );
			pbConversionNeeded[0] = remote_relatesToInterface( ppArgType[0] );
		}
	}
	if( typelib_TypeClass_INTERFACE_METHOD == pType->eTypeClass )
	{
		pMethodType = ( typelib_InterfaceMethodTypeDescription * ) pType;
		TYPELIB_DANGER_GET( &pReturnType , pMethodType->pReturnTypeRef );
		bConversionNeededForReturn = remote_relatesToInterface( pReturnType );
		nArgCount = pMethodType->nParams;
		ppArgType = (typelib_TypeDescription **) alloca( sizeof( void * ) * nArgCount );
		pbIsIn  = (sal_Bool * ) alloca( sizeof( sal_Bool ) * nArgCount );
		pbIsOut = (sal_Bool * ) alloca( sizeof( sal_Bool ) * nArgCount );
		pbConversionNeeded = ( sal_Bool * ) alloca( sizeof( sal_Bool ) * nArgCount );
=====================================================================
Found a 11 line (262 tokens) duplication in the following files: 
Starting at line 377 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idl/cx_idlco.cxx
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idl/cx_idlco.cxx

	const INT16 A_nKeywordDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{fbz,err,err,err,err,err,err,err,err,fbz,fbz,fbz,fbz,fbz,err,err,
	 err,err,err,err,err,err,err,err,err,err,fbz,err,err,err,err,err, // 16 ...
	 fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,fbz,fbz, // 48 ...
	 fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,bez, // 80 ...
	 fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,err  // 112 ...
	};
=====================================================================
Found a 11 line (262 tokens) duplication in the following files: 
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/cx_c_std.cxx
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	const INT16 A_nPunctDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 16 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 48 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 80 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err  // 112 ...
	};
=====================================================================
Found a 11 line (262 tokens) duplication in the following files: 
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/cx_c_std.cxx
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/cx_c_std.cxx

	const INT16 A_nBezDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{fbz,err,err,err,err,err,err,err,err,fbz,fbz,fbz,fbz,fbz,err,err,
	 err,err,err,err,err,err,err,err,err,err,fbz,err,err,err,err,err, // 16 ...
	 fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,fbz,fbz, // 48 ...
	 fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,bez, // 80 ...
	 fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
	 bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,err
	};
=====================================================================
Found a 11 line (262 tokens) duplication in the following files: 
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/cx_c_std.cxx

	const INT16 A_nOperatorDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 16 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 48 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 80 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err
	};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotfld_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotrow_mask.h

static char pivotrow_mask_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x07, 0x00,
   0xff, 0xff, 0x07, 0x00, 0xff, 0xff, 0x07, 0x00, 0xff, 0xff, 0x07, 0x00,
   0xff, 0xff, 0x07, 0x00, 0xff, 0xff, 0x07, 0x00, 0xff, 0xff, 0x07, 0x00,
   0xff, 0xff, 0x07, 0x00, 0xff, 0xff, 0x07, 0x00, 0x00, 0x1f, 0x00, 0x00,
   0x00, 0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00,
   0x00, 0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00,
   0x00, 0x7f, 0x00, 0x00, 0x00, 0xf7, 0x00, 0x00, 0x00, 0xe3, 0x00, 0x00,
   0x00, 0xe1, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x03, 0x00,
   0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movefile_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/moveflnk_mask.h

static char moveflnk_mask_bits[] = {
   0xff, 0x01, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x3f, 0x00, 0x00,
   0xff, 0x7f, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x01, 0x00,
   0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00,
   0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x01, 0x00,
   0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00, 0xe0, 0x03, 0x00,
   0x00, 0xc0, 0x07, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0x80, 0x07, 0x00,
   0x00, 0x80, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawmirror_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/mirror_mask.h

static char mirror_mask_bits[] = {
   0x00, 0x00, 0x04, 0x00, 0xfe, 0x0f, 0x0e, 0x00, 0xfe, 0x0f, 0x1f, 0x00,
   0xfe, 0x8f, 0x3f, 0x00, 0xfe, 0x0f, 0x1f, 0x00, 0xfe, 0x8f, 0x0f, 0x00,
   0xbe, 0x8f, 0x0f, 0x00, 0xbe, 0xcf, 0x07, 0x00, 0xbe, 0xcf, 0x87, 0x00,
   0xbe, 0xef, 0xc3, 0x01, 0xbe, 0xef, 0xe3, 0x03, 0xfe, 0xff, 0xf1, 0x07,
   0xfe, 0xff, 0x79, 0x0f, 0xfe, 0xff, 0x3c, 0x1e, 0xfe, 0xff, 0x1e, 0x3c,
   0xfe, 0x7f, 0x0f, 0x1e, 0x00, 0xfc, 0x07, 0x0f, 0x00, 0xfe, 0x83, 0x07,
   0x00, 0xbe, 0xc7, 0x03, 0x00, 0x1f, 0xef, 0x01, 0x00, 0x1f, 0xfe, 0x00,
   0x80, 0x0f, 0x7c, 0x00, 0xc0, 0x1d, 0x38, 0x00, 0x80, 0x0f, 0x10, 0x00,
   0x00, 0x07, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawmirror_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/mirror_curs.h

static char mirror_curs_bits[] = {
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xff, 0x03, 0xf8, 0xf5, 0xff,
   0xfb, 0xfb, 0xee, 0xff, 0x0b, 0xfa, 0xf5, 0xff, 0xeb, 0xfa, 0xfa, 0xff,
   0xeb, 0xfa, 0xfa, 0xff, 0xeb, 0x7a, 0xfd, 0xff, 0xeb, 0x7a, 0xfd, 0xff,
   0xeb, 0xba, 0x7e, 0xff, 0xeb, 0xba, 0xbe, 0xfe, 0xeb, 0x5a, 0x5f, 0xfd,
   0x0b, 0x5a, 0xaf, 0xfa, 0xfb, 0xab, 0xd7, 0xf5, 0x03, 0xa8, 0xeb, 0xeb,
   0xff, 0xd7, 0xf5, 0xf5, 0xff, 0xd7, 0xfa, 0xfa, 0xff, 0x6b, 0x7d, 0xfd,
   0xff, 0xeb, 0xba, 0xfe, 0xff, 0xf5, 0x55, 0xff, 0xff, 0xf5, 0xab, 0xff,
   0xff, 0xfa, 0xd7, 0xff, 0x7f, 0xf7, 0xef, 0xff, 0xff, 0xfa, 0xff, 0xff,
   0xff, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/crop_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawcrop_mask.h

static char drawcrop_mask_bits[] = {
   0x00, 0xf8, 0x01, 0x00, 0x00, 0xf8, 0x01, 0x00, 0xfc, 0xff, 0x0f, 0x00,
   0xfc, 0xff, 0x0f, 0x00, 0xfc, 0xff, 0x0f, 0x00, 0xfc, 0xff, 0x0f, 0x00,
   0xfc, 0xff, 0x0f, 0x00, 0xfc, 0xff, 0x0f, 0x00, 0xfc, 0xf8, 0x01, 0x00,
   0xfc, 0xf8, 0x01, 0x00, 0xfc, 0xf8, 0x01, 0x00, 0xff, 0xff, 0x01, 0x00,
   0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0x01, 0x00,
   0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0x01, 0x00, 0xfc, 0x00, 0x00, 0x00,
   0xfc, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/crop_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawcrop_curs.h

static char drawcrop_curs_bits[] = {
   0xff, 0x0f, 0xff, 0xff, 0xff, 0x6f, 0xff, 0xff, 0xff, 0x6f, 0xff, 0xff,
   0x07, 0x60, 0xf8, 0xff, 0xf7, 0x6f, 0xfb, 0xff, 0xf7, 0x6f, 0xfb, 0xff,
   0x37, 0x60, 0xf8, 0xff, 0xb7, 0x6f, 0xff, 0xff, 0xb7, 0x6f, 0xff, 0xff,
   0xb7, 0x6f, 0xff, 0xff, 0xb7, 0x6f, 0xff, 0xff, 0xb7, 0x6f, 0xff, 0xff,
   0x30, 0x60, 0xff, 0xff, 0xb6, 0x7f, 0xff, 0xff, 0xb6, 0x7f, 0xff, 0xff,
   0x30, 0x00, 0xff, 0xff, 0xb7, 0xff, 0xff, 0xff, 0xb7, 0xff, 0xff, 0xff,
   0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/crook_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawcrook_mask.h

static char drawcrook_mask_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x83, 0xc1, 0x00, 0x80, 0xc7, 0xe3, 0x01, 0xc0, 0xef, 0xf7, 0x03,
   0xcc, 0xef, 0xf7, 0x33, 0x9e, 0xff, 0xff, 0x79, 0xbf, 0xff, 0xff, 0xfd,
   0x77, 0xff, 0xff, 0xee, 0xee, 0xf6, 0x6f, 0x77, 0xfc, 0xff, 0xff, 0x3f,
   0xb8, 0xff, 0xff, 0x1d, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f,
   0xf8, 0x01, 0x80, 0x1f, 0x7c, 0x00, 0x00, 0x3e, 0x38, 0x00, 0x00, 0x1c,
   0x10, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/crook_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawcrook_curs.h

static char drawcrook_curs_bits[] = {
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0x7c, 0x3e, 0xff, 0x7f, 0xbb, 0xdd, 0xfe,
   0x7f, 0xbb, 0xdd, 0xfe, 0xf3, 0xb6, 0x6d, 0xcf, 0xed, 0xb6, 0x6d, 0xb7,
   0xdd, 0x75, 0xae, 0xbb, 0xbb, 0x0b, 0xd0, 0xdd, 0xb7, 0xf1, 0x8f, 0xed,
   0x4f, 0x0e, 0x70, 0xf2, 0xbf, 0xf1, 0x8f, 0xfd, 0x5f, 0xfe, 0x7f, 0xfa,
   0xaf, 0xff, 0xff, 0xf5, 0xd7, 0xff, 0xff, 0xeb, 0xef, 0xff, 0xff, 0xf7,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyfile_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyflnk_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkfile_mask.h

static char linkfile_mask_bits[] = {
   0xff, 0x01, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x3f, 0x00, 0x00,
   0xff, 0x7f, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x01, 0x00,
   0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00,
   0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0xf1, 0x7f,
   0x00, 0xff, 0xf1, 0x7f, 0x00, 0xe7, 0xf3, 0x7f, 0x00, 0xe0, 0xf3, 0x7f,
   0x00, 0xc0, 0xf7, 0x7f, 0x00, 0xc0, 0xf7, 0x7f, 0x00, 0x80, 0xf7, 0x7f,
   0x00, 0x80, 0xf7, 0x7f, 0x00, 0x00, 0xf0, 0x7f, 0x00, 0x00, 0xf0, 0x7f,
   0x00, 0x00, 0xf0, 0x7f, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkdata_mask.h

static char linkdata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xf8, 0x3f, 0x00,
   0x3c, 0xf8, 0x3f, 0x00, 0x3c, 0xf8, 0x3f, 0x00, 0xfc, 0xff, 0x3f, 0x00,
   0xfc, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0x3f, 0x00,
   0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00,
   0x00, 0xf8, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 10 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_mask.h

static char assw_mask_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x0e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x10,0x1f,
 0x00,0x00,0x18,0x0e,0x00,0x00,0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0xfc,
 0x00,0x00,0x00,0xfc,0x03,0x00,0x00,0xfc,0x01,0x00,0x00,0x3c,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 34 line (261 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        { 20, 2, L_FIX}, // "sprmPDyaLine" pap.lspd an LSPD
        { 21, 2, L_FIX}, // "sprmPDyaBefore" pap.dyaBefore
        { 22, 2, L_FIX}, // "sprmPDyaAfter" pap.dyaAfter
        { 23, 0, L_VAR}, // "?sprmPChgTabs" pap.itbdMac, pap.rgdxaTab, ...
        { 24, 1, L_FIX}, // "sprmPFInTable" pap.fInTable
        { 25, 1, L_FIX}, // "sprmPTtp" pap.fTtp
        { 26, 2, L_FIX}, // "sprmPDxaAbs" pap.dxaAbs
        { 27, 2, L_FIX}, // "sprmPDyaAbs" pap.dyaAbs
        { 28, 2, L_FIX}, // "sprmPDxaWidth" pap.dxaWidth
        { 29, 1, L_FIX}, // "sprmPPc" pap.pcHorz, pap.pcVert
        { 30, 2, L_FIX}, // "sprmPBrcTop10" pap.brcTop BRC10
        { 31, 2, L_FIX}, // "sprmPBrcLeft10" pap.brcLeft BRC10
        { 32, 2, L_FIX}, // "sprmPBrcBottom10" pap.brcBottom BRC10
        { 33, 2, L_FIX}, // "sprmPBrcRight10" pap.brcRight BRC10
        { 34, 2, L_FIX}, // "sprmPBrcBetween10" pap.brcBetween BRC10
        { 35, 2, L_FIX}, // "sprmPBrcBar10" pap.brcBar BRC10
        { 36, 2, L_FIX}, // "sprmPFromText10" pap.dxaFromText dxa
        { 37, 1, L_FIX}, // "sprmPWr" pap.wr wr
        { 38, 2, L_FIX}, // "sprmPBrcTop" pap.brcTop BRC
        { 39, 2, L_FIX}, // "sprmPBrcLeft" pap.brcLeft BRC
        { 40, 2, L_FIX}, // "sprmPBrcBottom" pap.brcBottom BRC
        { 41, 2, L_FIX}, // "sprmPBrcRight" pap.brcRight BRC
        { 42, 2, L_FIX}, // "sprmPBrcBetween" pap.brcBetween BRC
        { 43, 2, L_FIX}, // "sprmPBrcBar" pap.brcBar BRC word
        { 44, 1, L_FIX}, // "sprmPFNoAutoHyph" pap.fNoAutoHyph
        { 45, 2, L_FIX}, // "sprmPWHeightAbs" pap.wHeightAbs w
        { 46, 2, L_FIX}, // "sprmPDcs" pap.dcs DCS
        { 47, 2, L_FIX}, // "sprmPShd" pap.shd SHD
        { 48, 2, L_FIX}, // "sprmPDyaFromText" pap.dyaFromText dya
        { 49, 2, L_FIX}, // "sprmPDxaFromText" pap.dxaFromText dxa
        { 50, 1, L_FIX}, // "sprmPFBiDi" pap.fBiDi 0 or 1 byte
        { 51, 1, L_FIX}, // "sprmPFWidowControl" pap.fWidowControl 0 or 1 byte
        { 52, 0, L_FIX}, // "?sprmPRuler 52"
        { 53, 1, L_FIX}, // "sprmCFStrikeRM" chp.fRMarkDel 1 or 0 bit
=====================================================================
Found a 11 line (261 tokens) duplication in the following files: 
Starting at line 3793 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3889 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptSeal24Vert[] =
{
	{ 0x05 MSO_I, 0x06 MSO_I }, { 0x07 MSO_I, 0x08 MSO_I }, { 0x09 MSO_I, 0x0a MSO_I }, { 0x0b MSO_I, 0x0c MSO_I },
	{ 0x0d MSO_I, 0x0e MSO_I }, { 0x0f MSO_I, 0x10 MSO_I }, { 0x11 MSO_I, 0x12 MSO_I }, { 0x13 MSO_I, 0x14 MSO_I },
	{ 0x15 MSO_I, 0x16 MSO_I }, { 0x17 MSO_I, 0x18 MSO_I }, { 0x19 MSO_I, 0x1a MSO_I }, { 0x1b MSO_I, 0x1c MSO_I },
	{ 0x1d MSO_I, 0x1e MSO_I }, { 0x1f MSO_I, 0x20 MSO_I }, { 0x21 MSO_I, 0x22 MSO_I }, { 0x23 MSO_I, 0x24 MSO_I },
	{ 0x25 MSO_I, 0x26 MSO_I }, { 0x27 MSO_I, 0x28 MSO_I }, { 0x29 MSO_I, 0x2a MSO_I }, { 0x2b MSO_I, 0x2c MSO_I },
	{ 0x2d MSO_I, 0x2e MSO_I }, { 0x2f MSO_I, 0x30 MSO_I }, { 0x31 MSO_I, 0x32 MSO_I }, { 0x33 MSO_I, 0x34 MSO_I },
	{ 0x35 MSO_I, 0x36 MSO_I }, { 0x37 MSO_I, 0x38 MSO_I }, { 0x39 MSO_I, 0x3a MSO_I }, { 0x3b MSO_I, 0x3c MSO_I },
	{ 0x3d MSO_I, 0x3e MSO_I }, { 0x3f MSO_I, 0x40 MSO_I }, { 0x41 MSO_I, 0x42 MSO_I }, { 0x43 MSO_I, 0x44 MSO_I },
	{ 0x45 MSO_I, 0x46 MSO_I }, { 0x47 MSO_I, 0x48 MSO_I }, { 0x49 MSO_I, 0x4a MSO_I }, { 0x4b MSO_I, 0x4c MSO_I },
=====================================================================
Found a 12 line (261 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/copydata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/linkdata_mask.h

static char linkdata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xf8, 0x3f, 0x00,
   0x3c, 0xf8, 0x3f, 0x00, 0x3c, 0xf8, 0x3f, 0x00, 0xfc, 0xff, 0x3f, 0x00,
   0xfc, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0x3f, 0x00,
   0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00,
   0x00, 0xf8, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 28 line (261 tokens) duplication in the following files: 
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 375 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

void OFlatTable::construct()
{
	Any aValue = ConfigManager::GetDirectConfigProperty(ConfigManager::LOCALE);
	LanguageType eLanguage = MsLangId::convertIsoStringToLanguage(comphelper::getString(aValue),'-');

	::com::sun::star::lang::Locale aAppLocale(MsLangId::convertLanguageToLocale(eLanguage));
	Sequence< ::com::sun::star::uno::Any > aArg(1);
	aArg[0] <<= aAppLocale;

	Reference< ::com::sun::star::util::XNumberFormatsSupplier >  xSupplier(m_pConnection->getDriver()->getFactory()->createInstanceWithArguments(::rtl::OUString::createFromAscii("com.sun.star.util.NumberFormatsSupplier"),aArg),UNO_QUERY);
	m_xNumberFormatter = Reference< ::com::sun::star::util::XNumberFormatter >(m_pConnection->getDriver()->getFactory()->createInstance(::rtl::OUString::createFromAscii("com.sun.star.util.NumberFormatter")),UNO_QUERY);
	m_xNumberFormatter->attachNumberFormatsSupplier(xSupplier);

	INetURLObject aURL;
	aURL.SetURL(getEntry());

	if(aURL.getExtension() != rtl::OUString(m_pConnection->getExtension()))
		aURL.setExtension(m_pConnection->getExtension());

	String aFileName = aURL.GetMainURL(INetURLObject::NO_DECODE);

	m_pFileStream = createStream_simpleError( aFileName,STREAM_READWRITE | STREAM_NOCREATE | STREAM_SHARE_DENYWRITE);

	if(!m_pFileStream)
		m_pFileStream = createStream_simpleError( aFileName,STREAM_READ | STREAM_NOCREATE | STREAM_SHARE_DENYNONE);

	if(m_pFileStream)
	{
=====================================================================
Found a 25 line (261 tokens) duplication in the following files: 
Starting at line 907 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
Starting at line 1160 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx

	m_aStrValueRange[18] = aMap1;

	TInt2IntMap aMap;
	aMap[adEmpty]			= ADOS::MapADOType2Jdbc(adEmpty);
	aMap[adTinyInt]			= ADOS::MapADOType2Jdbc(adTinyInt);
	aMap[adSmallInt]		= ADOS::MapADOType2Jdbc(adSmallInt);
	aMap[adInteger]			= ADOS::MapADOType2Jdbc(adInteger);
	aMap[adBigInt]			= ADOS::MapADOType2Jdbc(adBigInt);
	aMap[adUnsignedTinyInt]	= ADOS::MapADOType2Jdbc(adUnsignedTinyInt);
	aMap[adUnsignedSmallInt]= ADOS::MapADOType2Jdbc(adUnsignedSmallInt);
	aMap[adUnsignedInt]		= ADOS::MapADOType2Jdbc(adUnsignedInt);
	aMap[adUnsignedBigInt]	= ADOS::MapADOType2Jdbc(adUnsignedBigInt);
	aMap[adSingle]			= ADOS::MapADOType2Jdbc(adSingle);
	aMap[adDouble]			= ADOS::MapADOType2Jdbc(adDouble);
	aMap[adCurrency]		= ADOS::MapADOType2Jdbc(adCurrency);
	aMap[adDecimal]			= ADOS::MapADOType2Jdbc(adDecimal);
	aMap[adNumeric]			= ADOS::MapADOType2Jdbc(adNumeric);
	aMap[adBoolean]			= ADOS::MapADOType2Jdbc(adBoolean);
	aMap[adError]			= ADOS::MapADOType2Jdbc(adError);
	aMap[adUserDefined]		= ADOS::MapADOType2Jdbc(adUserDefined);
	aMap[adVariant]			= ADOS::MapADOType2Jdbc(adVariant);
	aMap[adIDispatch]		= ADOS::MapADOType2Jdbc(adIDispatch);
	aMap[adIUnknown]		= ADOS::MapADOType2Jdbc(adIUnknown);
	aMap[adGUID]			= ADOS::MapADOType2Jdbc(adGUID);
	aMap[adDate]			= _bJetEngine ? ADOS::MapADOType2Jdbc(adDBTimeStamp) : ADOS::MapADOType2Jdbc(adDate);
=====================================================================
Found a 38 line (261 tokens) duplication in the following files: 
Starting at line 1057 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper.cxx
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvashelper.cxx

        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* 							/*pCanvas*/, 
                                                                                           const uno::Reference< rendering::XPolyPolygon2D >& 	/*xPolyPolygon*/, 
                                                                                           const rendering::ViewState& 							/*viewState*/, 
                                                                                           const rendering::RenderState& 						/*renderState*/, 
                                                                                           const uno::Sequence< rendering::Texture >& 			/*textures*/, 
                                                                                           const rendering::StrokeAttributes& 					/*strokeAttributes*/ )
    {
        // TODO
        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* 							/*pCanvas*/, 
                                                                                                const uno::Reference< rendering::XPolyPolygon2D >&	/*xPolyPolygon*/, 
                                                                                                const rendering::ViewState& 						/*viewState*/, 
                                                                                                const rendering::RenderState& 						/*renderState*/, 
                                                                                                const uno::Sequence< rendering::Texture >& 			/*textures*/, 
                                                                                                const uno::Reference< geometry::XMapping2D >& 		/*xMapping*/, 
                                                                                                const rendering::StrokeAttributes& 					/*strokeAttributes*/ )
    {
        // TODO
        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XPolyPolygon2D >   CanvasHelper::queryStrokeShapes( const rendering::XCanvas* 							/*pCanvas*/, 
                                                                                   const uno::Reference< rendering::XPolyPolygon2D >& 	/*xPolyPolygon*/, 
                                                                                   const rendering::ViewState& 							/*viewState*/, 
                                                                                   const rendering::RenderState& 						/*renderState*/, 
                                                                                   const rendering::StrokeAttributes& 					/*strokeAttributes*/ )
    {
        // TODO
        return uno::Reference< rendering::XPolyPolygon2D >(NULL);
    }

    uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* 							/*pCanvas*/, 
                                                                                 const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/, 
=====================================================================
Found a 40 line (260 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/odsl/ODSLParser.cxx
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/xxml/StorageXXmlReader.cxx

  MyHandler handler;

  if (aArguments.getLength()!=1)
  {
	  return 1;
  }
	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
		// construct an URL of the input file name
		rtl::OUString arg=aArguments[0];
		rtl_uString *dir=NULL;
		osl_getProcessWorkingDir(&dir);
		rtl::OUString absFileUrl;
		osl_getAbsoluteFileURL(dir, arg.pData, &absFileUrl.pData);
		rtl_uString_release(dir);
/*
		// get file simple file access service
		uno::Reference<com::sun::star::ucb::XSimpleFileAccess> xFileAccess(
		xFactory->createInstanceWithContext(
			::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SimpleFileAccess")), 
			xContext), uno::UNO_QUERY_THROW );

		// open file
		uno::Reference<io::XInputStream> xInputStream = xFileAccess->openFileRead(absFileUrl);
*/

		uno::Reference <lang::XSingleServiceFactory> xStorageFactory(
			xServiceFactory->createInstance (rtl::OUString::createFromAscii("com.sun.star.embed.StorageFactory")), uno::UNO_QUERY_THROW);
		uno::Sequence< uno::Any > aArgs( 2 );
		aArgs[0] <<= absFileUrl;
		aArgs[1] <<= embed::ElementModes::READ;
		uno::Reference<embed::XStorage> xStorage(xStorageFactory->createInstanceWithArguments(aArgs), uno::UNO_QUERY_THROW);

		// parse file. The reader will close the input stream.
		std::auto_ptr<xxml::XXmlReader> reader=xxml::XXmlReader::createXXmlReader(handler);
=====================================================================
Found a 41 line (260 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,    0xE082,         0,         0,
    // F080
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F090
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 59 line (260 tokens) duplication in the following files: 
Starting at line 2494 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 2645 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    mnIdx = 0;

    if (nStartFc >= 0)
        SeekPos(nStartFc);

    pSt->Seek(nOldPos);
}

WW8PLCFx_Fc_FKP::WW8Fkp::Entry::Entry(const Entry &rEntry)
    : mnFC(rEntry.mnFC), mnLen(rEntry.mnLen), mnIStd(rEntry.mnIStd),
    mbMustDelete(rEntry.mbMustDelete)
{
    if (mbMustDelete)
    {
        mpData = new sal_uInt8[mnLen];
        memcpy(mpData, rEntry.mpData, mnLen);
    }
    else
        mpData = rEntry.mpData;
}

WW8PLCFx_Fc_FKP::WW8Fkp::Entry&
    WW8PLCFx_Fc_FKP::WW8Fkp::Entry::operator=(const Entry &rEntry)
{
    if (mbMustDelete)
        delete[] mpData;

    mnFC = rEntry.mnFC;
    mnLen = rEntry.mnLen;
    mnIStd = rEntry.mnIStd;
    mbMustDelete = rEntry.mbMustDelete;

    if (mbMustDelete)
    {
        mpData = new sal_uInt8[mnLen];
        memcpy(mpData, rEntry.mpData, mnLen);
    }
    else
        mpData = rEntry.mpData;
    return *this;
}

WW8PLCFx_Fc_FKP::WW8Fkp::Entry::~Entry()
{
    if (mbMustDelete)
        delete[] mpData;
}

void WW8PLCFx_Fc_FKP::WW8Fkp::Reset(WW8_FC nFc)
{
    SetIdx(0);
    if (nFc >= 0)
        SeekPos(nFc);
}

bool WW8PLCFx_Fc_FKP::WW8Fkp::SeekPos(WW8_FC nFc)
{
    if (nFc < maEntries[0].mnFC)
    {
=====================================================================
Found a 41 line (260 tokens) duplication in the following files: 
Starting at line 930 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 621 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/swparrtf.cxx

						pAktNd->EndOfSectionIndex() )
				{
					pPos->nContent.Assign( 0, 0 );
					pPam->SetMark(); pPam->DeleteMark();
					pDoc->GetNodes().Delete( pPos->nNode, 1 );
					pPam->Move( fnMoveBackward );
				}
			}
		}
		// nun noch das SplitNode vom Ende aufheben
		else if( !IsNewDoc() )
		{
			if( pPos->nContent.GetIndex() )		// dann gabs am Ende kein \par,
				pPam->Move( fnMoveForward, fnGoNode ); 	// als zum naechsten Node
			SwTxtNode* pTxtNode = pPos->nNode.GetNode().GetTxtNode();
			SwNodeIndex aPrvIdx( pPos->nNode );
			if( pTxtNode && pTxtNode->CanJoinPrev( &aPrvIdx ) &&
				*pSttNdIdx <= aPrvIdx )
			{
				// eigentlich muss hier ein JoinNext erfolgen, aber alle Cursor
				// usw. sind im pTxtNode angemeldet, so dass der bestehen
				// bleiben MUSS.

				// Absatz in Zeichen-Attribute umwandeln, aus dem Prev die
				// Absatzattribute und die Vorlage uebernehmen!
				SwTxtNode* pPrev = aPrvIdx.GetNode().GetTxtNode();
				pTxtNode->ChgFmtColl( pPrev->GetTxtColl() );
				pTxtNode->FmtToTxtAttr( pPrev );
				pTxtNode->SwCntntNode::ResetAllAttr();

                if( pPrev->HasSwAttrSet() )
					pTxtNode->SwCntntNode::SetAttr( *pPrev->GetpSwAttrSet() );

				if( &pPam->GetBound(TRUE).nNode.GetNode() == pPrev )
					pPam->GetBound(TRUE).nContent.Assign( pTxtNode, 0 );
				if( &pPam->GetBound(FALSE).nNode.GetNode() == pPrev )
					pPam->GetBound(FALSE).nContent.Assign( pTxtNode, 0 );

				pTxtNode->JoinPrev();
			}
		}
=====================================================================
Found a 40 line (260 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

	double	fAngle	= nAngle * F_PI1800;
	double	fWidth	= aRect.GetWidth();
	double	fHeight = aRect.GetHeight();
	double	fDX 	= fWidth  * fabs( cos( fAngle ) ) +
					  fHeight * fabs( sin( fAngle ) );
	double	fDY 	= fHeight * fabs( cos( fAngle ) ) +
					  fWidth  * fabs( sin( fAngle ) );
			fDX 	= (fDX - fWidth)  * 0.5 + 0.5;
			fDY 	= (fDY - fHeight) * 0.5 + 0.5;
	aRect.Left()   -= (long)fDX;
	aRect.Right()  += (long)fDX;
	aRect.Top()    -= (long)fDY;
	aRect.Bottom() += (long)fDY;

	// Rand berechnen und Rechteck neu setzen
	Point		aCenter = rRect.Center();
	Rectangle	aFullRect = aRect;
	long		nBorder = (long)rGradient.GetBorder() * aRect.GetHeight() / 100;
	BOOL		bLinear;

	// Rand berechnen und Rechteck neu setzen fuer linearen Farbverlauf
	if ( rGradient.GetStyle() == GRADIENT_LINEAR )
	{
		bLinear = TRUE;
		aRect.Top() += nBorder;
	}
	// Rand berechnen und Rechteck neu setzen fuer axiale Farbverlauf
	else
	{
		bLinear = FALSE;
		nBorder >>= 1;

		aRect.Top()    += nBorder;
		aRect.Bottom() -= nBorder;
	}

	// Top darf nicht groesser als Bottom sein
	aRect.Top() = Min( aRect.Top(), (long)(aRect.Bottom() - 1) );

	long nMinRect = aRect.GetHeight();
=====================================================================
Found a 51 line (260 tokens) duplication in the following files: 
Starting at line 446 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx
Starting at line 627 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx

		String aRefStr;
		ScChangeActionType eType=pScChangeAction->GetType();
		String aString;
		String aDesc;


		ScRedlinData* pNewData=new ScRedlinData;
		pNewData->pData=(void *)pScChangeAction;
		pNewData->nActionNo=pScChangeAction->GetActionNumber();
		pNewData->bIsAcceptable=pScChangeAction->IsClickable();
		pNewData->bIsRejectable=pScChangeAction->IsRejectable();
		pNewData->bDisabled=!pNewData->bIsAcceptable | bDisabled;
		pNewData->aDateTime=aDateTime;
		pNewData->nRow	= aRef.aStart.Row();
		pNewData->nCol	= aRef.aStart.Col();
		pNewData->nTable= aRef.aStart.Tab();

		if(eType==SC_CAT_CONTENT)
		{
			if(pScChangeAction->IsDialogParent())
			{
				aString=aStrContentWithChild;
				pNewData->nInfo=RD_SPECIAL_VISCONTENT;
				pNewData->bIsRejectable=FALSE;
				pNewData->bIsAcceptable=FALSE;
			}
			else
			{
				aString=*MakeTypeString(eType);
				pScChangeAction->GetDescription( aDesc, pDoc, TRUE);
			}
		}
		else
		{
			aString=*MakeTypeString(eType);

			if(bDelMaster)
			{
				pScChangeAction->GetDescription( aDesc, pDoc,TRUE);
				pNewData->bDisabled=TRUE;
				pNewData->bIsRejectable=FALSE;
			}
			else
				pScChangeAction->GetDescription( aDesc, pDoc,!pScChangeAction->IsMasterDelete());

		}

		aString+='\t';
		pScChangeAction->GetRefString(aRefStr, pDoc, TRUE);
		aString+=aRefStr;
		aString+='\t';
=====================================================================
Found a 18 line (260 tokens) duplication in the following files: 
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_MS_1256,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
                0x20AC,0x067E,0x201A,0x0192,0x201E,0x2026,0x2020,0x2021,
=====================================================================
Found a 41 line (260 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,    0xE082,         0,         0,
    // F080
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F090
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 33 line (260 tokens) duplication in the following files: 
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/tempnam.c
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/tempnam.c

dtempnam(dir, prefix)
char *dir;		/* use this directory please (if non-NULL) */
char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", getpid() );
=====================================================================
Found a 71 line (260 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/misc/db.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/db.cxx

    return err;
}

//----------------------------------------------------------------------------


Dbt::Dbt()
{  
    using namespace std;
    DBT * thispod = this;
    memset(thispod, 0, sizeof *thispod);
}


Dbt::Dbt(void *data_arg, u_int32_t size_arg)
{
    using namespace std;
    DBT * thispod = this;
    memset(thispod, 0, sizeof *thispod);
    this->set_data(data_arg);
    this->set_size(size_arg);
}

Dbt::Dbt(const Dbt & other)
{
    using namespace std;
	const DBT *otherpod = &other;
	DBT *thispod = this;
	memcpy(thispod, otherpod, sizeof *thispod);
}

Dbt& Dbt::operator = (const Dbt & other)
{
	if (this != &other) 
    {
        using namespace std;
        const DBT *otherpod = &other;
        DBT *thispod = this;
        memcpy(thispod, otherpod, sizeof *thispod);
	}
	return *this;
}

Dbt::~Dbt() 
{
}

void * Dbt::get_data() const
{ 
    return this->data;
}

void Dbt::set_data(void *value)
{
    this->data = value;
}

u_int32_t Dbt::get_size() const
{ 
    return this->size;
}

void Dbt::set_size(u_int32_t value)
{
    this->size = value; 
}

void Dbt::set_flags(u_int32_t value)
{ 
    this->flags = value;
}
=====================================================================
Found a 53 line (259 tokens) duplication in the following files: 
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

            long_type fg[3];

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
            const int16* weight_array = base_type::filter().weight_array();

            do
            {
                int rx;
                int ry;
                int rx_inv = image_subpixel_size;
                int ry_inv = image_subpixel_size;
                intr.coordinates(&x,  &y);
                intr.local_scale(&rx, &ry);

                rx = (rx * base_type::m_blur_x) >> image_subpixel_shift;
                ry = (ry * base_type::m_blur_y) >> image_subpixel_shift;

                if(rx < image_subpixel_size)
                {
                    rx = image_subpixel_size;
                }
                else
                {
                    if(rx > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        rx = image_subpixel_size * base_type::m_scale_limit;
                    }
                    rx_inv = image_subpixel_size * image_subpixel_size / rx;
                }

                if(ry < image_subpixel_size)
                {
                    ry = image_subpixel_size;
                }
                else
                {
                    if(ry > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        ry = image_subpixel_size * base_type::m_scale_limit;
                    }
                    ry_inv = image_subpixel_size * image_subpixel_size / ry;
                }

                int radius_x = (diameter * rx) >> 1;
                int radius_y = (diameter * ry) >> 1;
                int maxx = base_type::source_image().width() - 1;
                int maxy = base_type::source_image().height() - 1;

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = image_filter_size / 2;
=====================================================================
Found a 49 line (259 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h

        span_interpolator_persp_lerp(const double* quad, 
                                     double x1, double y1, 
                                     double x2, double y2)
        {
            quad_to_rect(quad, x1, y1, x2, y2);
        }

        //--------------------------------------------------------------------
        // Set the transformations using two arbitrary quadrangles.
        void quad_to_quad(const double* src, const double* dst)
        {
            m_trans_dir.quad_to_quad(src, dst);
            m_trans_inv.quad_to_quad(dst, src);
        }

        //--------------------------------------------------------------------
        // Set the direct transformations, i.e., rectangle -> quadrangle
        void rect_to_quad(double x1, double y1, double x2, double y2, 
                          const double* quad)
        {
            double src[8];
            src[0] = src[6] = x1;
            src[2] = src[4] = x2;
            src[1] = src[3] = y1;
            src[5] = src[7] = y2;
            quad_to_quad(src, quad);
        }


        //--------------------------------------------------------------------
        // Set the reverse transformations, i.e., quadrangle -> rectangle
        void quad_to_rect(const double* quad, 
                          double x1, double y1, double x2, double y2)
        {
            double dst[8];
            dst[0] = dst[6] = x1;
            dst[2] = dst[4] = x2;
            dst[1] = dst[3] = y1;
            dst[5] = dst[7] = y2;
            quad_to_quad(quad, dst);
        }

        //--------------------------------------------------------------------
        // Check if the equations were solved successfully
        bool is_valid() const { return m_trans_dir.is_valid(); }

        //----------------------------------------------------------------
        void begin(double x, double y, unsigned len)
        {
=====================================================================
Found a 47 line (259 tokens) duplication in the following files: 
Starting at line 2108 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2737 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

    SvxOcxString aValue( rPropSet->getPropertyValue(WW8_ASCII2STR("Text")) );
    aValue.WriteLenField( *rContents );
    if (aValue.HasData())
		pBlockFlags[2] |= 0x40;

	WriteAlign(rContents,4);
    aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("BorderColor"));
    if (aTmp.hasValue())
        aTmp >>= nBorderColor;
    *rContents << ExportColor(nBorderColor);
    pBlockFlags[3] |= 0x02;

	*rContents << nSpecialEffect;
	pBlockFlags[3] |= 0x04;

	WriteAlign(rContents,4);
	*rContents << rSize.Width;
	*rContents << rSize.Height;

    aValue.WriteCharArray( *rContents );

	WriteAlign(rContents,4);

    nFixedAreaLen = static_cast<sal_uInt16>(rContents->Tell()-nOldPos-4);

	bRet = aFontData.Export(rContents,rPropSet);

    rContents->Seek(nOldPos);
	*rContents << nStandardId;
	*rContents << nFixedAreaLen;

	*rContents << pBlockFlags[0];
	*rContents << pBlockFlags[1];
	*rContents << pBlockFlags[2];
	*rContents << pBlockFlags[3];
	*rContents << pBlockFlags[4];
	*rContents << pBlockFlags[5];
	*rContents << pBlockFlags[6];
	*rContents << pBlockFlags[7];

	DBG_ASSERT((rContents.Is() &&
		(SVSTREAM_OK==rContents->GetError())),"damn");
	return bRet;
}


sal_Bool OCX_ComboBox::Export(SvStorageRef &rObj,
=====================================================================
Found a 41 line (259 tokens) duplication in the following files: 
Starting at line 6787 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 12506 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

        CPPUNIT_TEST_SUITE( append_007_Int64_Bounderies );
        CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
        CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
        CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
        CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
        CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
        CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
        CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
        CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
        CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
        CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
        CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
        CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
        CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
        CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
        CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
        CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
        CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
        CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
        CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
        CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
        CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
        CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
        CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
        CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
        CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
        CPPUNIT_TEST_SUITE_END();
    };
//------------------------------------------------------------------------
// testing the method append( sal_Int64 i, sal_Int16 radix=2 )
// for negative value
// testing the method append( sal_Int64 i, sal_Int16 radix=8 )
// for negative value
// testing the method append( sal_Int64 i, sal_Int16 radix=10 )
// for negative value
// testing the method append( sal_Int64 i, sal_Int16 radix=16 )
// for negative value
// testing the method append( sal_Int64 i, sal_Int16 radix=36 )
// for negative value
//------------------------------------------------------------------------
    class  append_007_Int64_Negative : public CppUnit::TestFixture
=====================================================================
Found a 43 line (259 tokens) duplication in the following files: 
Starting at line 1359 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx
Starting at line 1644 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx

	agg::rasterizer_scanline_aa<> ras;
	agg::path_storage path;
	agg::conv_curve<agg::path_storage> curve(path);

	for(sal_uInt32 nPolygon(0); nPolygon < rPolyPolygon.count(); nPolygon++)
    {
		const basegfx::B2DPolygon aPolygon(rPolyPolygon.getB2DPolygon(nPolygon));
		const sal_uInt32 nPointCount(aPolygon.count());

		if(nPointCount)
		{
			if(aPolygon.areControlPointsUsed())
			{
				// prepare edge-based loop
				basegfx::B2DPoint aCurrentPoint(aPolygon.getB2DPoint(0));
				const sal_uInt32 nEdgeCount(aPolygon.isClosed() ? nPointCount - 1 : nPointCount);

				// first vertex
				path.move_to(aCurrentPoint.getX(), aCurrentPoint.getY());

				for(sal_uInt32 a(0); a < nEdgeCount; a++)
				{
					// access next point
					const sal_uInt32 nNextIndex((a + 1) % nPointCount);
					const basegfx::B2DPoint aNextPoint(aPolygon.getB2DPoint(nNextIndex));

					// get control points
					const basegfx::B2DPoint aControlNext(aPolygon.getNextControlPoint(a));
					const basegfx::B2DPoint aControlPrev(aPolygon.getPrevControlPoint(nNextIndex));

					// specify first cp, second cp, next vertex
					path.curve4(
						aControlNext.getX(), aControlNext.getY(),
						aControlPrev.getX(), aControlPrev.getY(),
						aNextPoint.getX(), aNextPoint.getY());

					// prepare next step
					aCurrentPoint = aNextPoint;
				}
			}
			else
			{
				const basegfx::B2DPoint aPoint(aPolygon.getB2DPoint(0));
=====================================================================
Found a 13 line (258 tokens) duplication in the following files: 
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_PAGESTL),	SC_WID_UNO_PAGESTL,	&getCppuType((rtl::OUString*)0),		0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PADJUST),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PBMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_LO_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PINDENT),	ATTR_INDENT,		&getCppuType((sal_Int16*)0),			0, 0 }, //! CONVERT_TWIPS
		{MAP_CHAR_LEN(SC_UNONAME_PISCHDIST),ATTR_SCRIPTSPACE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISFORBID),ATTR_FORBIDDEN_RULES,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHANG),	ATTR_HANGPUNCTUATION,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PISHYPHEN),ATTR_HYPHENATE,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_PLASTADJ),	ATTR_HOR_JUSTIFY,	&::getCppuType((const sal_Int16*)0),	0, MID_HORJUST_ADJUST },
		{MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
=====================================================================
Found a 17 line (258 tokens) duplication in the following files: 
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 482 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 647 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 714 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1080 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1113 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1212 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_PT154,
              { 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
                0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
                0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
                0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
=====================================================================
Found a 10 line (258 tokens) duplication in the following files: 
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 1168 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx

    virtual ~WrappedStackingProperty();

    virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 27 line (257 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salgdi.h
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salgdi.h

    virtual BOOL		unionClipRegion( long nX, long nY, long nWidth, long nHeight );
    // draw --> LineColor and FillColor and RasterOp and ClipRegion
    virtual void		drawPixel( long nX, long nY );
    virtual void		drawPixel( long nX, long nY, SalColor nSalColor );
    virtual void		drawLine( long nX1, long nY1, long nX2, long nY2 );
    virtual void		drawRect( long nX, long nY, long nWidth, long nHeight );
    virtual void		drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
    virtual void		drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
    virtual void		drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry );
    virtual sal_Bool	drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
    virtual sal_Bool	drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
    virtual sal_Bool	drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );

    // CopyArea --> No RasterOp, but ClipRegion
    virtual void		copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
                                  long nSrcHeight, USHORT nFlags );

    // CopyBits and DrawBitmap --> RasterOp and ClipRegion
    // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
    virtual void		copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
    virtual void		drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
    virtual void		drawBitmap( const SalTwoRect* pPosAry,
                                    const SalBitmap& rSalBitmap,
                                    SalColor nTransparentColor );
    virtual void		drawBitmap( const SalTwoRect* pPosAry,
                                    const SalBitmap& rSalBitmap,
                                    const SalBitmap& rTransparentBitmap );
=====================================================================
Found a 58 line (257 tokens) duplication in the following files: 
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linkmgr2.cxx
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linkmgr2.cxx

            int nRet = QueryBox( pParentWin, WB_YES_NO | WB_DEF_YES, String(aId) ).Execute();
			if( RET_YES != nRet )
				return ;		// es soll nichts geupdatet werden

			bAskUpdate = FALSE;		// einmal reicht
		}

		pLink->Update();
	}
}

/************************************************************************
|*    SvBaseLink::CreateObject()
|*
|*    Beschreibung
*************************************************************************/

SvLinkSourceRef SvLinkManager::CreateObj( SvBaseLink * pLink )
{
	if( OBJECT_CLIENT_DDE == pLink->GetObjType() )
		return new SvDDEObject();
	return SvLinkSourceRef();
}

BOOL SvLinkManager::InsertServer( SvLinkSource* pObj )
{
	// keine doppelt einfuegen
	if( !pObj || USHRT_MAX != aServerTbl.GetPos( pObj ) )
		return FALSE;

	aServerTbl.Insert( pObj, aServerTbl.Count() );
	return TRUE;
}


void SvLinkManager::RemoveServer( SvLinkSource* pObj )
{
	USHORT nPos = aServerTbl.GetPos( pObj );
	if( USHRT_MAX != nPos )
		aServerTbl.Remove( nPos, 1 );
}


void MakeLnkName( String& rName, const String* pType, const String& rFile,
					const String& rLink, const String* pFilter )
{
	if( pType )
		(rName = *pType).EraseLeadingChars().EraseTrailingChars() += cTokenSeperator;
	else if( rName.Len() )
		rName.Erase();

	((rName += rFile).EraseLeadingChars().EraseTrailingChars() +=
		cTokenSeperator ).EraseLeadingChars().EraseTrailingChars() += rLink;
	if( pFilter )
		((rName += cTokenSeperator ) += *pFilter).EraseLeadingChars().EraseTrailingChars();
}

}
=====================================================================
Found a 82 line (257 tokens) duplication in the following files: 
Starting at line 1311 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 705 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_SocketAddr.cxx

			::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("deuce.PRC.Sun.COM"), IP_PORT_MYPORT4 );
			oslSocketAddr poslSocketAddr = saSocketAddr.getHandle( );

			sal_Bool bOK = ( saSocketAddr == poslSocketAddr );
			//t_print("getSocketAddrHandle_002\n");
			CPPUNIT_ASSERT_MESSAGE( "test for getHandle() function: use getHandle() function as an intermediate way to create identical address.", 
									  sal_True == bOK );
		}
		
		CPPUNIT_TEST_SUITE( getSocketAddrHandle );
		CPPUNIT_TEST( getSocketAddrHandle_001 );
		CPPUNIT_TEST( getSocketAddrHandle_002 );
		CPPUNIT_TEST_SUITE_END( );
		
	}; // class getSocketAddrHandle


	/** testing the method:
		static inline ::rtl::OUString SAL_CALL getLocalHostname( oslSocketResult *pResult = 0);		
	*/

	class getLocalHostname : public CppUnit::TestFixture
	{
	public:
		/* the process of getLocalHostname: 1.gethostname (same as /bin/hostname) returned name A
		   2. search A in /etc/hosts, if there is an alias name is A, return the name in the same row
		*/

		void getLocalHostname_000()
            {
                // _osl_getFullQualifiedDomainName( );
                oslSocketResult aResult = osl_Socket_Error;
                rtl::OUString suHostname = osl::SocketAddr::getLocalHostname(&aResult);
                CPPUNIT_ASSERT_MESSAGE("getLocalHostname failed", aResult == osl_Socket_Ok);
            }
        
		void getLocalHostname_001()
		{
			oslSocketResult *pResult = NULL;
			//printSocketResult(*pResult);
			::rtl::OUString suResult = ::osl::SocketAddr::getLocalHostname( pResult );
			
            // LLA: IMHO localhost, or hostname by itself should be ok.
            rtl::OUString suThisHost = getThisHostname( );
            bool bOk = false;
            if (suThisHost.equals(rtl::OUString::createFromAscii("localhost")))
            {
                bOk = true;
            }
            else
            {
                if (suThisHost.equals(suResult))
                {
                    bOk = true;
                }
            }

			::rtl::OUString suError;
            suError = outputError(suResult, getThisHostname( ), "test for getLocalHostname() function");
			
			CPPUNIT_ASSERT_MESSAGE( suError, bOk == true );
		}
		
		CPPUNIT_TEST_SUITE( getLocalHostname );
		CPPUNIT_TEST( getLocalHostname_000 );
		CPPUNIT_TEST( getLocalHostname_001 );
		CPPUNIT_TEST_SUITE_END( );
		
	}; // class getLocalHostname


	/** testing the method:
		static inline void SAL_CALL resolveHostname( const ::rtl::OUString & strHostName , SocketAddr & Addr );		
	*/

	class resolveHostname : public CppUnit::TestFixture
	{
	public:
		void resolveHostname_001()
		{
			::osl::SocketAddr saSocketAddr;
			::osl::SocketAddr::resolveHostname( rtl::OUString::createFromAscii("127.0.0.1"), saSocketAddr );
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 3850 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4369 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xd7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0xdd },
{ 0x00, 0xfe, 0xde },
{ 0x00, 0xff, 0xff },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 2812 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4626 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0xdd },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 1628 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2664 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xfd, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0xdd },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 1517 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2812 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0x69, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0x49 },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 1511 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4361 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xf7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xd7 },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 1110 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2664 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xfd, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0xdd },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 998 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2812 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0x69, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0x49 },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 992 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4361 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xf7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xd7 },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 850 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2664 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xfd, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0xdd },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 738 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2812 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0x69, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0x49 },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 732 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4361 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xf7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xd7 },
=====================================================================
Found a 33 line (257 tokens) duplication in the following files: 
Starting at line 590 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2664 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xfd, 0x49 },
{ 0x01, 0x6a, 0x4a },
{ 0x01, 0x6b, 0x4b },
{ 0x01, 0x6c, 0x4c },
{ 0x01, 0x6d, 0x4d },
{ 0x01, 0x6e, 0x4e },
{ 0x01, 0x6f, 0x4f },
{ 0x01, 0x70, 0x50 },
{ 0x01, 0x71, 0x51 },
{ 0x01, 0x72, 0x52 },
{ 0x01, 0x73, 0x53 },
{ 0x01, 0x74, 0x54 },
{ 0x01, 0x75, 0x55 },
{ 0x01, 0x76, 0x56 },
{ 0x01, 0x77, 0x57 },
{ 0x01, 0x78, 0x58 },
{ 0x01, 0x79, 0x59 },
{ 0x01, 0x7a, 0x5a },
{ 0x00, 0x5b, 0x5b },
{ 0x00, 0x5c, 0x5c },
{ 0x00, 0x5d, 0x5d },
{ 0x00, 0x5e, 0x5e },
{ 0x00, 0x5f, 0x5f },
{ 0x00, 0x60, 0x60 },
{ 0x00, 0x61, 0x41 },
{ 0x00, 0x62, 0x42 },
{ 0x00, 0x63, 0x43 },
{ 0x00, 0x64, 0x44 },
{ 0x00, 0x65, 0x45 },
{ 0x00, 0x66, 0x46 },
{ 0x00, 0x67, 0x47 },
{ 0x00, 0x68, 0x48 },
{ 0x00, 0x69, 0xdd },
=====================================================================
Found a 10 line (257 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 662 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,21,21,21,21,11,21,21,// 2cf0 - 2cff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f	Block index 0x27
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 28 line (257 tokens) duplication in the following files: 
Starting at line 4233 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 4626 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

                case HWPDO_TEXTBOX:
                    if( !bIsRotate )
                    {
                        padd(ascii("svg:x"), sXML_CDATA,
                            Double2Str (WTMM( x + a + drawobj->offset2.x)) + ascii("mm"));
                        padd(ascii("svg:y"), sXML_CDATA,
                            Double2Str (WTMM( y + b + drawobj->offset2.y)) + ascii("mm"));
                    }
                    padd(ascii("svg:width"), sXML_CDATA,
                        Double2Str (WTMM( drawobj->extent.w )) + ascii("mm"));
                    padd(ascii("svg:height"), sXML_CDATA,
                        Double2Str (WTMM( drawobj->extent.h )) + ascii("mm"));
                    if( drawobj->property.flag & 0x01 )
                    {
                        int value = drawobj->extent.w < drawobj->extent.h ?
                            drawobj->extent.w : drawobj->extent.h ;
                        padd(ascii("draw:corner-radius"), sXML_CDATA,
                            Double2Str (WTMM( value/10 )) + ascii("mm"));
                    }
                    else if( drawobj->property.flag & 0x04 )
                    {
                        int value = drawobj->extent.w < drawobj->extent.h ?
                            drawobj->extent.w : drawobj->extent.h ;
                        padd(ascii("draw:corner-radius"), sXML_CDATA,
                            Double2Str (WTMM( value / 2)) + ascii("mm"));
                    }

                    rstartEl(ascii("draw:text-box"), rList);
=====================================================================
Found a 10 line (257 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 662 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,21,21,21,21,11,21,21,// 2cf0 - 2cff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f	Block index 0x27
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 62 line (257 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx

                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
=====================================================================
Found a 46 line (256 tokens) duplication in the following files: 
Starting at line 1374 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_contentcaps.cxx

    static beans::Property aPropertyInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Required properties
		///////////////////////////////////////////////////////////////
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND
		),
		///////////////////////////////////////////////////////////////
		// Optional standard properties
		///////////////////////////////////////////////////////////////
		beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DateCreated" ) ),
			-1,
			getCppuType(static_cast< const util::DateTime * >( 0 ) ),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
		beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DateModified" ) ),
			-1,
			getCppuType(static_cast< const util::DateTime * >( 0 ) ),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
		beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsReadOnly" ) ),
=====================================================================
Found a 35 line (256 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/privsplt.cxx
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/privsplt.cxx

		if(eScSplit==SC_SPLIT_HORZ)
		{
			nNewX=(short)aPos.X();
			nDeltaX=nNewX-nOldX;
			a2Pos.X()+=nDeltaX;

			if(a2Pos.X()<aXMovingRange.Min())
			{
				nDeltaX=(short)(aXMovingRange.Min()-a3Pos.X());
				a2Pos.X()=aXMovingRange.Min();
			}
			else if(a2Pos.X()>aXMovingRange.Max())
			{
				nDeltaX=(short)(aXMovingRange.Max()-a3Pos.X());
				a2Pos.X()=aXMovingRange.Max();
			}
		}
		else
		{
			nNewY=(short)aPos.Y();
			nDeltaY=nNewY-nOldY;
			a2Pos.Y()+=nDeltaY;
			if(a2Pos.Y()<aYMovingRange.Min())
			{
				nDeltaY=(short)(aYMovingRange.Min()-a3Pos.Y());
				a2Pos.Y()=aYMovingRange.Min();
			}
			else if(a2Pos.Y()>aYMovingRange.Max())
			{
				nDeltaY=(short)(aYMovingRange.Max()-a3Pos.Y());
				a2Pos.Y()=aYMovingRange.Max();
			}
		}

		SetPosPixel(a2Pos);
=====================================================================
Found a 9 line (256 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 67 line (256 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/jservices.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/kab/KServices.cxx
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MServices.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/oservices.cxx

	OSL_ENSURE(xNewKey.is(), "ODBC::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(...)
		{
		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
=====================================================================
Found a 55 line (256 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx

			pFPR, nFPR );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		// return type
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
	}
}
=====================================================================
Found a 59 line (256 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										  pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		CPPU_CURRENT_NAMESPACE::raiseException(&aUnoExc, pThis->getBridge()->getUno2Cpp() );
=====================================================================
Found a 43 line (255 tokens) duplication in the following files: 
Starting at line 1103 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi3.cxx
Starting at line 1177 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi3.cxx

        rLogFont.lfFaceName[nNameLen] = '\0';

    if( !pFont->mpFontData )
    {
        rLogFont.lfCharSet = pFont->IsSymbolFont() ? SYMBOL_CHARSET : DEFAULT_CHARSET;
        rLogFont.lfPitchAndFamily = ImplPitchToWin( pFont->mePitch )
                                  | ImplFamilyToWin( pFont->meFamily );
    }
    else
    {
        ImplWinFontData* pWinFontData = static_cast<ImplWinFontData*>( pFont->mpFontData );
        rLogFont.lfCharSet        = pWinFontData->GetCharSet();
        rLogFont.lfPitchAndFamily = pWinFontData->GetPitchAndFamily();
    }

    rLogFont.lfWeight           = ImplWeightToWin( pFont->meWeight );
    rLogFont.lfHeight           = (LONG)-pFont->mnHeight;
    rLogFont.lfWidth            = (LONG)pFont->mnWidth;
    rLogFont.lfUnderline        = 0;
    rLogFont.lfStrikeOut        = 0;
    rLogFont.lfItalic           = (pFont->meItalic) != ITALIC_NONE;
    rLogFont.lfEscapement       = pFont->mnOrientation;
    rLogFont.lfOrientation      = rLogFont.lfEscapement; // ignored by W98
    rLogFont.lfClipPrecision    = CLIP_DEFAULT_PRECIS;
    rLogFont.lfQuality          = DEFAULT_QUALITY;
    rLogFont.lfOutPrecision     = OUT_TT_PRECIS;
    if( pFont->mnOrientation )
        rLogFont.lfClipPrecision |= CLIP_LH_ANGLES;

    // disable antialiasing if requested
    if( pFont->mbNonAntialiased )
        rLogFont.lfQuality = NONANTIALIASED_QUALITY;

    // select vertical mode if requested and available
    if( pFont->mbVertical && nNameLen )
    {
        // vertical fonts start with an '@'
        memmove( &rLogFont.lfFaceName[1], &rLogFont.lfFaceName[0],
                    sizeof(rLogFont.lfFaceName)-sizeof(rLogFont.lfFaceName[0]) );
        rLogFont.lfFaceName[0] = '@';

        // check availability of vertical mode for this font
        bool bAvailable = false;
=====================================================================
Found a 46 line (255 tokens) duplication in the following files: 
Starting at line 2752 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 2916 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    : WW8PLCFx(rFib.GetFIBVersion(), true), pFKPStrm(pSt), pDataStrm(pDataSt),
    pFkp(0), ePLCF(ePl), pPCDAttrs(0)
{
    SetStartFc(nStartFcL);
    long nLenStruct = (8 > rFib.nVersion) ? 2 : 4;
    if (ePl == CHP)
    {
        pPLCF = new WW8PLCF(pTblSt, rFib.fcPlcfbteChpx, rFib.lcbPlcfbteChpx,
            nLenStruct, GetStartFc(), rFib.pnChpFirst, rFib.cpnBteChp);
    }
    else
    {
        pPLCF = new WW8PLCF(pTblSt, rFib.fcPlcfbtePapx, rFib.lcbPlcfbtePapx,
            nLenStruct, GetStartFc(), rFib.pnPapFirst, rFib.cpnBtePap);
    }
}

WW8PLCFx_Fc_FKP::~WW8PLCFx_Fc_FKP()
{
    myiter aEnd = maFkpCache.end();
    for (myiter aIter = maFkpCache.begin(); aIter != aEnd; ++aIter)
        delete *aIter;
    delete pPLCF;
    delete pPCDAttrs;
}

ULONG WW8PLCFx_Fc_FKP::GetIdx() const
{
    ULONG u = pPLCF->GetIdx() << 8;
    if (pFkp)
        u |= pFkp->GetIdx();
    return u;
}

void WW8PLCFx_Fc_FKP::SetIdx( ULONG nIdx )
{
    if( !( nIdx & 0xffffff00L ) )
    {
        pPLCF->SetIdx( nIdx >> 8 );
        pFkp = 0;
    }
    else
    {                                   //Es gab einen Fkp
        //Lese PLCF um 1 Pos zurueck, um die Adresse des Fkp wiederzubekommen
        pPLCF->SetIdx( ( nIdx >> 8 ) - 1 );
        if (NewFkp())                       // und lese Fkp wieder ein
=====================================================================
Found a 36 line (255 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx

			aStartPos = basegfx::B2DPoint(aRange.getMinX(), aCenter.getY());
			aEndPos = basegfx::B2DPoint(aRange.getMinX(), aRange.getMinY());

			if(rG.aGradient.GetBorder())
			{
				basegfx::B2DVector aFullVec(aStartPos - aEndPos);
				const double fLen = (aFullVec.getLength() * (100.0 - (double)rG.aGradient.GetBorder())) / 100.0;
				aFullVec.normalize();
				aStartPos = aEndPos + (aFullVec * fLen);
			}
			
			if(rG.aGradient.GetAngle())
			{
				const double fAngle = (double)rG.aGradient.GetAngle() * (F_PI180 / 10.0);
				basegfx::B2DHomMatrix aTransformation;

				aTransformation.translate(-aEndPos.getX(), -aEndPos.getY());
				aTransformation.rotate(-fAngle);
				aTransformation.translate(aEndPos.getX(), aEndPos.getY());

				aStartPos *= aTransformation;
				aEndPos *= aTransformation;
			}
			
			if(rG.aGradient.GetXOffset() || rG.aGradient.GetYOffset())
			{
				basegfx::B2DPoint aOffset(
					(aRange.getWidth() * rG.aGradient.GetXOffset()) / 100.0,
					(aRange.getHeight() * rG.aGradient.GetYOffset()) / 100.0);

				aStartPos += aOffset;
				aEndPos += aOffset;
			}

			break;
		}
=====================================================================
Found a 8 line (255 tokens) duplication in the following files: 
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
=====================================================================
Found a 8 line (255 tokens) duplication in the following files: 
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1550 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff60 - ff6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff70 - ff7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff80 - ff8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff90 - ff9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffc0 - ffcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffd0 - ffdf
=====================================================================
Found a 8 line (255 tokens) duplication in the following files: 
Starting at line 1398 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
=====================================================================
Found a 8 line (255 tokens) duplication in the following files: 
Starting at line 1397 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1550 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff60 - ff6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff70 - ff7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff80 - ff8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff90 - ff9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffc0 - ffcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffd0 - ffdf
=====================================================================
Found a 9 line (255 tokens) duplication in the following files: 
Starting at line 1349 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1426 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2e80 - 2e8f
    10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,// 2e90 - 2e9f
=====================================================================
Found a 8 line (255 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
=====================================================================
Found a 9 line (255 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1034 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0500 - 050f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0510 - 051f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0520 - 052f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0530 - 053f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0540 - 054f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 8 line (255 tokens) duplication in the following files: 
Starting at line 620 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
=====================================================================
Found a 9 line (255 tokens) duplication in the following files: 
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 665 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2e80 - 2e8f
    27,27,27,27,27,27,27,27,27,27, 0,27,27,27,27,27,// 2e90 - 2e9f
=====================================================================
Found a 8 line (255 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
=====================================================================
Found a 46 line (255 tokens) duplication in the following files: 
Starting at line 695 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/uicmdstohtml.cxx

static CommandInfoVector commandInfoVector;

bool ExtractVersionNumber( const OUString& rVersion, OUString& rVersionNumber )
{
    bool bCheckNumOnly( false );

    OUStringBuffer aBuf;

    rVersionNumber = OUString();
    for ( int i = 0; i < rVersion.getLength(); i++ )
    {
        if ( rVersion[i] >= sal_Unicode( '0' ) && rVersion[i] <= sal_Unicode( '9' ))
        {
            bCheckNumOnly = true;
            aBuf.append( rVersion[i] );
        }
        else if ( bCheckNumOnly )
            return false;
    }

    rVersionNumber = aBuf.makeStringAndClear();
    return true;
}

bool ReadCSVFile( const OUString& aCVSFileURL, MODULES eModule, const OUString& aProjectName )
{
    osl::File  aCSVFile( aCVSFileURL );
    fprintf(stdout, "############ read csv \"%s\" ... ", ::rtl::OUStringToOString(aCVSFileURL, RTL_TEXTENCODING_UTF8).getStr());
    if ( aCSVFile.open( OpenFlag_Read ) != osl::FileBase::E_None )
    {
        fprintf(stdout, "failed!\n");
        return false;
    }
    fprintf(stdout, "OK!\n");
    
    {
        sal_Bool            bEOF;
        ::rtl::ByteSequence aCSVLine;
        OUString            aUnoCmd( RTL_CONSTASCII_USTRINGPARAM( ".uno:" ));

        while ( aCSVFile.isEndOfFile( &bEOF ) == osl::FileBase::E_None && !bEOF )
        {
            aCSVFile.readLine( aCSVLine );

            OString     aLine( (const char *)aCSVLine.getConstArray(), aCSVLine.getLength() );
            OString     aDefine;
=====================================================================
Found a 42 line (255 tokens) duplication in the following files: 
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUsers.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YUsers.cxx

	return new OMySQLUser(m_xConnection,_rName);
}
// -------------------------------------------------------------------------
void OUsers::impl_refresh() throw(RuntimeException)
{
	m_pParent->refreshUsers();
}
// -------------------------------------------------------------------------
Reference< XPropertySet > OUsers::createDescriptor()
{
	OUserExtend* pNew = new OUserExtend(m_xConnection);
	return pNew;
}
// -------------------------------------------------------------------------
// XAppend
sdbcx::ObjectType OUsers::appendObject( const ::rtl::OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
	::rtl::OUString aSql	= ::rtl::OUString::createFromAscii("GRANT USAGE ON * TO ");
	::rtl::OUString aQuote	= m_xConnection->getMetaData()->getIdentifierQuoteString(  );
	::rtl::OUString sUserName( _rForName );
	aSql += ::dbtools::quoteName(aQuote,sUserName)
				+ ::rtl::OUString::createFromAscii(" @\"%\" ");
	::rtl::OUString sPassword;
	descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PASSWORD)) >>= sPassword;
	if ( sPassword.getLength() )
	{
		aSql += ::rtl::OUString::createFromAscii(" IDENTIFIED BY '");
		aSql += sPassword;
		aSql += ::rtl::OUString::createFromAscii("'");
	}

	Reference< XStatement > xStmt = m_xConnection->createStatement(  );
	if(xStmt.is())
		xStmt->execute(aSql);
	::comphelper::disposeComponent(xStmt);

    return createObject( _rForName );
}
// -------------------------------------------------------------------------
// XDrop
void OUsers::dropObject(sal_Int32 /*_nPos*/,const ::rtl::OUString _sElementName)
{
=====================================================================
Found a 55 line (255 tokens) duplication in the following files: 
Starting at line 476 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 465 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /*functionCount*/, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                reinterpret_cast< typelib_InterfaceAttributeTypeDescription * >(
                    member)->pAttributeTypeRef);
            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(
                    code, functionOffset++, vtableOffset,
                    0 /* indicates VOID */);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                reinterpret_cast< typelib_InterfaceMethodTypeDescription * >(
                    member)->pReturnTypeRef);
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}

void bridges::cpp_uno::shared::VtableFactory::flushCode(
    unsigned char const *, unsigned char const *)
{}
=====================================================================
Found a 70 line (254 tokens) duplication in the following files: 
Starting at line 559 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 473 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

	{
        //=================================================================
        //
        // Folder: Supported commands
        //
        //=================================================================

        static const ucb::CommandInfo aFolderCommandInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                -1,
                getCppuBooleanType()
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                -1,
                getCppuType(
                    static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
                -1,
                getCppuType( static_cast< ucb::TransferInfo * >( 0 ) )
            )
            ///////////////////////////////////////////////////////////
            // New commands
            ///////////////////////////////////////////////////////////
        };
        return uno::Sequence<
                ucb::CommandInfo >( aFolderCommandInfoTable, 8 );
	}
=====================================================================
Found a 39 line (254 tokens) duplication in the following files: 
Starting at line 977 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 895 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

									const NMSP_RTL::OUString* /* pStyle */ )
{
	if( !!rBmpEx )
	{
		BitmapEx		aBmpEx( rBmpEx );
	 	Point aPoint = Point(); 	
		const Rectangle	aBmpRect( aPoint, rBmpEx.GetSizePixel() );
		const Rectangle aSrcRect( rSrcPt, rSrcSz );

		if( aSrcRect != aBmpRect )
			aBmpEx.Crop( aSrcRect );

		if( !!aBmpEx )
		{
			SvMemoryStream aOStm( 65535, 65535 );

			if( GraphicConverter::Export( aOStm, rBmpEx, CVT_PNG ) == ERRCODE_NONE )
			{
				const Point									aPt( ImplMap( rPt ) );
				const Size									aSz( ImplMap( rSz ) );
				FastString									aImageData( (sal_Char*) aOStm.GetData(), aOStm.Tell() );
				REF( NMSP_SAX::XExtendedDocumentHandler )	xExtDocHandler( mrExport.GetDocHandler(), NMSP_UNO::UNO_QUERY );

				if( xExtDocHandler.is() )
				{
					static const sal_uInt32		nPartLen = 64;
					const NMSP_RTL::OUString	aSpace( ' ' );
					const NMSP_RTL::OUString	aLineFeed( NMSP_RTL::OUString::valueOf( (sal_Unicode) 0x0a ) );
					NMSP_RTL::OUString			aString;
					NMSP_RTL::OUString			aImageString;

					aString = aLineFeed;
					aString +=  B2UCONST( "<" );
					aString += NMSP_RTL::OUString::createFromAscii( aXMLElemImage );
					aString += aSpace;
					
					aString += NMSP_RTL::OUString::createFromAscii( aXMLAttrX );
					aString += B2UCONST( "=\"" );
					aString += GetValueString( aPt.X() );
=====================================================================
Found a 47 line (254 tokens) duplication in the following files: 
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/jni_uno/jni_base.h
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/cli_ure/source/uno_bridge/cli_base.h

struct rtl_mem
{
	inline static void * operator new ( size_t nSize )
		{ return rtl_allocateMemory( nSize ); }
	inline static void operator delete ( void * mem )
		{ if (mem) rtl_freeMemory( mem ); }
	inline static void * operator new ( size_t, void * mem )
		{ return mem; }
	inline static void operator delete ( void *, void * )
		{}
    
    static inline ::std::auto_ptr< rtl_mem > allocate( ::std::size_t bytes );
};
//--------------------------------------------------------------------------------------------------
inline ::std::auto_ptr< rtl_mem > rtl_mem::allocate( ::std::size_t bytes )
{
    void * p = rtl_allocateMemory( bytes );
    if (0 == p)
        throw BridgeRuntimeError(OUSTR("out of memory!") );
    return ::std::auto_ptr< rtl_mem >( (rtl_mem *)p );
}

//==================================================================================================
class TypeDescr
{
    typelib_TypeDescription * m_td;
    
    TypeDescr( TypeDescr & ); // not impl
    void operator = ( TypeDescr ); // not impl
    
public:
    inline explicit TypeDescr( typelib_TypeDescriptionReference * td_ref );
    inline ~TypeDescr() SAL_THROW( () )
        { TYPELIB_DANGER_RELEASE( m_td ); }
    
    inline typelib_TypeDescription * get() const
        { return m_td; }
};

inline TypeDescr::TypeDescr( typelib_TypeDescriptionReference * td_ref )
    : m_td( 0 )
{
    TYPELIB_DANGER_GET( &m_td, td_ref );
    if (0 == m_td)
    {
        throw BridgeRuntimeError(
            OUSTR("cannot get comprehensive type description for ") +
=====================================================================
Found a 48 line (254 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdate.cxx
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxlng.cxx
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxsng.cxx

				pVal->PutSingle( n );
			else
				SbxBase::SetError( SbxERR_NO_OBJECT );
			break;
		}
		case SbxBYREF | SbxCHAR:
			if( n > SbxMAXCHAR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCHAR;
			}
			else if( n < SbxMINCHAR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINCHAR;
			}
			*p->pChar = (xub_Unicode) n; break;
		case SbxBYREF | SbxBYTE:
			if( n > SbxMAXBYTE )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXBYTE;
			}
			else if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pByte = (BYTE) n; break;
		case SbxBYREF | SbxINTEGER:
		case SbxBYREF | SbxBOOL:
			if( n > SbxMAXINT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXINT;
			}
			else if( n < SbxMININT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMININT;
			}
			*p->pInteger = (INT16) n; break;
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			if( n > SbxMAXUINT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXUINT;
			}
			else if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pUShort = (UINT16) n; break;
		case SbxBYREF | SbxLONG:
=====================================================================
Found a 47 line (254 tokens) duplication in the following files: 
Starting at line 3412 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/classes/sbunoobj.cxx
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/eventattacher/source/eventattacher.cxx

	Any aRet;

	// Check if to firing or approveFiring has to be called
	Reference< XIdlMethod > xMethod = m_xListenerType->getMethod( FunctionName );
	sal_Bool bApproveFiring = sal_False;
	if( !xMethod.is() )
		return aRet;
    Reference< XIdlClass > xReturnType = xMethod->getReturnType();
    Sequence< Reference< XIdlClass > > aExceptionSeq = xMethod->getExceptionTypes();
	if( ( xReturnType.is() && xReturnType->getTypeClass() != TypeClass_VOID ) ||
		aExceptionSeq.getLength() > 0 )
	{
		bApproveFiring = sal_True;
	}
	else
	{
	    Sequence< ParamInfo > aParamSeq = xMethod->getParameterInfos();
		sal_uInt32 nParamCount = aParamSeq.getLength();
		if( nParamCount > 1 )
		{
			const ParamInfo* pInfos = aParamSeq.getConstArray();
			for( sal_uInt32 i = 0 ; i < nParamCount ; i++ )
			{
				if( pInfos[ i ].aMode != ParamMode_IN )
				{
					bApproveFiring = sal_True;
					break;
				}
			}
		}
	}

    AllEventObject aAllEvent;
    aAllEvent.Source = (OWeakObject*) this;
    aAllEvent.Helper = m_Helper;
    aAllEvent.ListenerType = Type(m_xListenerType->getTypeClass(), m_xListenerType->getName());
    aAllEvent.MethodName = FunctionName;
    aAllEvent.Arguments = Params;
	if( bApproveFiring )
		aRet = m_xAllListener->approveFiring( aAllEvent );
	else
		m_xAllListener->firing( aAllEvent );
	return aRet;
}

//*************************************************************************
void SAL_CALL InvocationToAllListenerMapper::setValue(const OUString& , const Any& ) 
=====================================================================
Found a 64 line (253 tokens) duplication in the following files: 
Starting at line 1410 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1362 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                                "documents" ),
                            static_cast< cppu::OWeakObject * >( this ) );
            }
        }
		else
		{
			// Not a Core Property! Maybe it's an Additional Core Property?!

			if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
			{
				xAdditionalPropSet = getAdditionalPropertySet( sal_False );
				bTriedToGetAdditonalPropSet = sal_True;
			}

			if ( xAdditionalPropSet.is() )
			{
				try
				{
                    uno::Any aOldValue = xAdditionalPropSet->getPropertyValue(
																rValue.Name );
					if ( aOldValue != rValue.Value )
					{
						xAdditionalPropSet->setPropertyValue(
												rValue.Name, rValue.Value );

						aEvent.PropertyName = rValue.Name;
						aEvent.OldValue		= aOldValue;
						aEvent.NewValue     = rValue.Value;

						aChanges.getArray()[ nChanged ] = aEvent;
						nChanged++;
					}
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}

	if ( bExchange )
	{
        uno::Reference< ucb::XContentIdentifier > xOldId
            = m_xIdentifier;
=====================================================================
Found a 36 line (253 tokens) duplication in the following files: 
Starting at line 549 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/plugin.cxx
Starting at line 709 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/embedhlp.cxx

void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const String &rText, OutputDevice *pOut )
{
	MapMode aMM( MAP_APPFONT );
	Size aAppFontSz = pOut->LogicToLogic( Size( 0, 8 ), &aMM, NULL );
	Font aFnt( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "Helvetica" ) ), aAppFontSz );
	aFnt.SetTransparent( TRUE );
	aFnt.SetColor( Color( COL_LIGHTRED ) );
	aFnt.SetWeight( WEIGHT_BOLD );
	aFnt.SetFamily( FAMILY_SWISS );

	pOut->Push();
	pOut->SetBackground();
	pOut->SetFont( aFnt );

	Point aPt;
	// Nun den Text so skalieren, dass er in das Rect passt.
	// Wir fangen mit der Defaultsize an und gehen 1-AppFont runter
	for( USHORT i = 8; i > 2; i-- )
	{
		aPt.X() = (rRect.GetWidth()  - pOut->GetTextWidth( rText )) / 2;
		aPt.Y() = (rRect.GetHeight() - pOut->GetTextHeight()) / 2;

		BOOL bTiny = FALSE;
		if( aPt.X() < 0 ) bTiny = TRUE, aPt.X() = 0;
		if( aPt.Y() < 0 ) bTiny = TRUE, aPt.Y() = 0;
		if( bTiny )
		{
			// heruntergehen bei kleinen Bildern
			aFnt.SetSize( Size( 0, aAppFontSz.Height() * i / 8 ) );
			pOut->SetFont( aFnt );
		}
		else
			break;
	}

    Bitmap aBmp( SvtResId( BMP_PLUGIN ) );
=====================================================================
Found a 40 line (253 tokens) duplication in the following files: 
Starting at line 1034 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,    0xE082,         0,         0,
    // F080
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F090
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
=====================================================================
Found a 48 line (253 tokens) duplication in the following files: 
Starting at line 567 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/miscobj.cxx
Starting at line 661 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx

	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

    uno::Reference< uno::XInterface > xSelfHold( static_cast< ::cppu::OWeakObject* >( this ) );
    lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >( this ) );

	if ( m_pInterfaceContainer )
	{
    	::cppu::OInterfaceContainerHelper* pContainer =
			m_pInterfaceContainer->getContainer( ::getCppuType( ( const uno::Reference< util::XCloseListener >*) NULL ) );
    	if ( pContainer != NULL )
		{
        	::cppu::OInterfaceIteratorHelper pIterator(*pContainer);
        	while (pIterator.hasMoreElements())
        	{
            	try
            	{
                	((util::XCloseListener*)pIterator.next())->queryClosing( aSource, bDeliverOwnership );
            	}
            	catch( uno::RuntimeException& )
            	{
                	pIterator.remove();
            	}
        	}
		}

    	pContainer = m_pInterfaceContainer->getContainer(
									::getCppuType( ( const uno::Reference< util::XCloseListener >*) NULL ) );
    	if ( pContainer != NULL )
		{
        	::cppu::OInterfaceIteratorHelper pCloseIterator(*pContainer);
        	while (pCloseIterator.hasMoreElements())
        	{
            	try
            	{
                	((util::XCloseListener*)pCloseIterator.next())->notifyClosing( aSource );
            	}
            	catch( uno::RuntimeException& )
            	{
                	pCloseIterator.remove();
            	}
        	}
		}

		m_pInterfaceContainer->disposeAndClear( aSource );
	}

	m_bDisposed = sal_True; // the object is disposed now for outside
=====================================================================
Found a 60 line (253 tokens) duplication in the following files: 
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut 
                    && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{

                          // we need to know type of each param so that we know whether to use
                          // gpr or fpr to pass in parameters:
                          // Key: I - int, long, pointer, etc means pass in gpr
                          //      B - byte value passed in gpr
                          //      S - short value passed in gpr
                          //      F - float value pass in fpr
                          //      D - double value pass in fpr
                          //      H - long long int pass in proper pairs of gpr (3,4) (5,6), etc
                          //      X - indicates end of parameter description string

		          case typelib_TypeClass_LONG:
		          case typelib_TypeClass_UNSIGNED_LONG:
		          case typelib_TypeClass_ENUM:
			    *pPT++ = 'I';
			    break;
 		          case typelib_TypeClass_SHORT:
		          case typelib_TypeClass_CHAR:
		          case typelib_TypeClass_UNSIGNED_SHORT:
                            *pPT++ = 'S';
                            break;
		          case typelib_TypeClass_BOOLEAN:
		          case typelib_TypeClass_BYTE:
                            *pPT++ = 'B';
                            break;
		          case typelib_TypeClass_FLOAT:
                            *pPT++ = 'F';
			    break;
		        case typelib_TypeClass_DOUBLE:
			    *pPT++ = 'D';
			    pCppStack += sizeof(sal_Int32); // extra long
			    break;
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			    *pPT++ = 'H';
			    pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 59 line (252 tokens) duplication in the following files: 
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/wldcrd.cxx
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/client/proxydecider.cxx

    int pos  = 0;
    int flag = 0;

    while ( *pWild || flag )
    {
        switch ( *pWild )
        {
            case '?':
                if ( *pStr == '\0' )
                    return 0;
                break;

            default:
                if ( ( *pWild == '\\' ) && ( ( *( pWild + 1 ) == '?' )
                                             || ( *( pWild + 1 ) == '*') ) )
                    pWild++;
                if ( *pWild != *pStr )
                    if ( !pos )
                        return 0;
                    else
                        pWild += pos;
                else
                    break;

                // Note: fall-thru's are intended!

            case '*':
                while ( *pWild == '*' )
                    pWild++;
                if ( *pWild == '\0' )
                    return 1;
                flag = 1;
                pos  = 0;
                if ( *pStr == '\0' )
                    return ( *pWild == '\0' );
                while ( *pStr && *pStr != *pWild )
                {
                    if ( *pWild == '?' ) {
                        pWild++;
                        while ( *pWild == '*' )
                            pWild++;
                    }
                    pStr++;
                    if ( *pStr == '\0' )
                        return ( *pWild == '\0' );
                }
                break;
        }
        if ( *pWild != '\0' )
            pWild++;
        if ( *pStr != '\0' )
            pStr++;
        else
            flag = 0;
        if ( flag )
            pos--;
    }
    return ( *pStr == '\0' ) && ( *pWild == '\0' );
}
=====================================================================
Found a 64 line (252 tokens) duplication in the following files: 
Starting at line 3499 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3670 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    : WW8PLCFx(rMyFib.GetFIBVersion(), true), pPLCF(0), rFib(rMyFib)
{
    long nFc, nLen;

    switch( nType )
    {
    case MAN_HDFT:
        nFc = rFib.fcPlcffldHdr;
        nLen = rFib.lcbPlcffldHdr;
        break;
    case MAN_FTN:
        nFc = rFib.fcPlcffldFtn;
        nLen = rFib.lcbPlcffldFtn;
        break;
    case MAN_EDN:
        nFc = rFib.fcPlcffldEdn;
        nLen = rFib.lcbPlcffldEdn;
        break;
    case MAN_AND:
        nFc = rFib.fcPlcffldAtn;
        nLen = rFib.lcbPlcffldAtn;
        break;
    case MAN_TXBX:
        nFc = rFib.fcPlcffldTxbx;
        nLen = rFib.lcbPlcffldTxbx;
        break;
    case MAN_TXBX_HDFT:
        nFc = rFib.fcPlcffldHdrTxbx;
        nLen = rFib.lcbPlcffldHdrTxbx;
        break;
    default:
        nFc = rFib.fcPlcffldMom;
        nLen = rFib.lcbPlcffldMom;
        break;
    }

    if( nLen )
        pPLCF = new WW8PLCFspecial( pSt, nFc, nLen, 2 );
}

WW8PLCFx_FLD::~WW8PLCFx_FLD()
{
    delete pPLCF;
}

ULONG WW8PLCFx_FLD::GetIdx() const
{
    return pPLCF ? pPLCF->GetIdx() : 0;
}

void WW8PLCFx_FLD::SetIdx( ULONG nIdx )
{
    if( pPLCF )
        pPLCF->SetIdx( nIdx );
}

bool WW8PLCFx_FLD::SeekPos(WW8_CP nCpPos)
{
    return pPLCF ? pPLCF->SeekPosExact( nCpPos ) : false;
}

WW8_CP WW8PLCFx_FLD::Where()
{
    return pPLCF ? pPLCF->Where() : WW8_CP_MAX;
=====================================================================
Found a 20 line (252 tokens) duplication in the following files: 
Starting at line 1229 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedxv.cxx
Starting at line 1261 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedxv.cxx

BOOL SdrObjEditView::MouseButtonUp(const MouseEvent& rMEvt, Window* pWin)
{
    if (pTextEditOutlinerView!=NULL) {
        BOOL bPostIt=pTextEditOutliner->IsInSelectionMode();
        if (!bPostIt) {
            Point aPt(rMEvt.GetPosPixel());
            if (pWin!=NULL) aPt=pWin->PixelToLogic(aPt);
            else if (pTextEditWin!=NULL) aPt=pTextEditWin->PixelToLogic(aPt);
            bPostIt=IsTextEditHit(aPt,nHitTolLog);
        }
        if (bPostIt) {
            Point aPixPos(rMEvt.GetPosPixel());
            Rectangle aR(pWin->LogicToPixel(pTextEditOutlinerView->GetOutputArea()));
            if (aPixPos.X()<aR.Left  ()) aPixPos.X()=aR.Left  ();
            if (aPixPos.X()>aR.Right ()) aPixPos.X()=aR.Right ();
            if (aPixPos.Y()<aR.Top   ()) aPixPos.Y()=aR.Top   ();
            if (aPixPos.Y()>aR.Bottom()) aPixPos.Y()=aR.Bottom();
            MouseEvent aMEvt(aPixPos,rMEvt.GetClicks(),rMEvt.GetMode(),
                             rMEvt.GetButtons(),rMEvt.GetModifier());
            if (pTextEditOutlinerView->MouseButtonUp(aMEvt)) {
=====================================================================
Found a 26 line (252 tokens) duplication in the following files: 
Starting at line 5751 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 6787 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

        CPPUNIT_TEST_SUITE( append_006_Int32_Bounderies );
        CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
        CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
        CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
        CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
        CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
        CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
        CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
        CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
        CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
        CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
        CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
        CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
        CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
        CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
        CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
        CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
        CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
        CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
        CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
        CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
        CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
        CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
        CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
        CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
        CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
=====================================================================
Found a 40 line (252 tokens) duplication in the following files: 
Starting at line 31 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsd43/utime.c
Starting at line 31 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsdarm32/utime.c

int
utime(name, timep)
char*	name;
time_t	timep[2];
{
	struct timeval tv[2], *tvp;
	struct stat buf;
	int	fil;
	char	data;

	if (timep!=0)
	{
		tvp = tv, tv[0].tv_sec = timep[0], tv[1].tv_sec = timep[1];
		if (utimes(name, tvp)==0)
			return (0);
	}

	if (stat(name, &buf) != 0)
		return (-1);
	if (buf.st_size != 0)  {
		if ((fil = open(name, O_RDWR, 0666)) < 0)
			return (-1);
		if (read(fil, &data, 1) < 1) {
			close(fil);
			return (-1);
		}
		lseek(fil, 0L, 0);
		if (write(fil, &data, 1) < 1) {
			close(fil);
			return (-1);
		}
		close(fil);
		return (0);
	} else 	if ((fil = creat(name, 0666)) < 0) {
		return (-1);
	} else {
		close(fil);
		return (0);
	}
}
=====================================================================
Found a 72 line (252 tokens) duplication in the following files: 
Starting at line 657 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

	return bValue;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions(  ) throw(SQLException, RuntimeException)
{
	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit(  ) throw(SQLException, RuntimeException)
{
	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly(  ) throw(SQLException, RuntimeException)
{
	//We support create table
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInDataManipulation(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL(  ) throw(SQLException, RuntimeException)
{
	return sal_True; // should be supported at least
=====================================================================
Found a 48 line (252 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx

		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pUnoReturn = pReturnValue; // direct way for simple types
		}
		else // complex return via ptr (pCppReturn)
		{
			pCppReturn = *(void **)pCppStack;
			pCppStack += sizeof(void *);
			
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
                              pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
			pUnoArgs[nPos] = pCppStack;
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 44 line (252 tokens) duplication in the following files: 
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 629 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

	nFunctionIndex, nVtableOffset, !simpleRetType, raw[2]);
#endif
    return (code + codeSnippetSize);
}

}


#define MIN_LINE_SIZE 32

void bridges::cpp_uno::shared::VtableFactory::flushCode(unsigned char const * bptr, unsigned char const * eptr)
{
  unsigned char * eaddr = (unsigned char *) eptr + MIN_LINE_SIZE + 1;
  for (  unsigned char * addr  = (unsigned char *) bptr; addr < eaddr; addr += MIN_LINE_SIZE) {
      __asm__ volatile ( "dcbf 0,%0;" "icbi 0,%0;" : : "r"(addr) : "memory");
  }
  __asm__ volatile ( "sync;" "isync;" : : : "memory");
}



void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code, 
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vtableOffset)
{
=====================================================================
Found a 45 line (252 tokens) duplication in the following files: 
Starting at line 640 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 636 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

    * p++ = 0x38e10018;
    * p++ = 0x4e800420;

    return (code + codeSnippetSize);

}


}


#define MIN_LINE_SIZE 32

void bridges::cpp_uno::shared::VtableFactory::flushCode(unsigned char const * bptr, unsigned char const * eptr)
{
  unsigned char * eaddr = (unsigned char *) eptr + MIN_LINE_SIZE + 1;
  for (  unsigned char * addr  = (unsigned char *) bptr; addr < eaddr; addr += MIN_LINE_SIZE) {
      __asm__ volatile ( "dcbf 0,%0;" "icbi 0,%0;" : : "r"(addr) : "memory");
  }
  __asm__ volatile ( "sync;" "isync;" : : : "memory");
}


void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /* functionCount */, sal_Int32 vtableOffset)
=====================================================================
Found a 47 line (252 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

		if (CPPU_CURRENT_NAMESPACE::isSimpleReturnType( pReturnTypeDescr ))
		{
			pUnoReturn = pReturnValue; // direct way for simple types
		}
		else // complex return via ptr (pCppReturn)
		{
            pCppReturn = *(void **)pCppStack;
            pCppStack += sizeof(void *);
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
                              pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
			pUnoArgs[nPos] = pCppStack;
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 12 line (252 tokens) duplication in the following files: 
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	 faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd  // ... 127
	};

	const INT16 A_nAtTagDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{faw,err,err,err,err,err,err,err,err,faw,faw,faw,faw,faw,err,err,
	 err,err,err,err,err,err,err,err,err,err,faw,err,err,err,err,err, // ... 31
	 faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,faw,awd,awd,awd, // ... 63
=====================================================================
Found a 33 line (251 tokens) duplication in the following files: 
Starting at line 3818 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4337 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xbf, 0xbb },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x01, 0xf7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
=====================================================================
Found a 9 line (251 tokens) duplication in the following files: 
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1241 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 9 line (251 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d50 - 0d5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d60 - 0d6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 9 line (251 tokens) duplication in the following files: 
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1017 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0400 - 040f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0410 - 041f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0420 - 042f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0430 - 043f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0440 - 044f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0450 - 045f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0460 - 046f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0470 - 047f
     0, 0, 0,17,17,17,17, 0,17,17, 0, 0, 0, 0, 0, 0,// 0480 - 048f
=====================================================================
Found a 8 line (251 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1550 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff60 - ff6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff70 - ff7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff80 - ff8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff90 - ff9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffc0 - ffcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffd0 - ffdf
=====================================================================
Found a 7 line (251 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x1F78}, {0x6a, 0x1F79}, {0x6a, 0x1F7C}, {0x6a, 0x1F7D}, {0xec, 0x0137}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 1ff8 - 1fff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2100 - 2107
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2108 - 210f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2110 - 2117
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2118 - 211f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x6a, 0x03C9}, {0x00, 0x0000}, // 2120 - 2127
=====================================================================
Found a 86 line (251 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::xml::sax;

#define ELEMENT_IMAGECONTAINER		"imagescontainer"
#define ELEMENT_IMAGES				"images"
#define ELEMENT_ENTRY				"entry"
#define ELEMENT_EXTERNALIMAGES		"externalimages"
#define ELEMENT_EXTERNALENTRY		"externalentry"

#define ELEMENT_NS_IMAGESCONTAINER	"image:imagescontainer"
#define ELEMENT_NS_IMAGES			"image:images"
#define ELEMENT_NS_ENTRY			"image:entry"
#define ELEMENT_NS_EXTERNALIMAGES	"image:externalimages"
#define ELEMENT_NS_EXTERNALENTRY	"image:externalentry"

#define ATTRIBUTE_HREF					"href"
#define ATTRIBUTE_MASKCOLOR				"maskcolor"
#define ATTRIBUTE_COMMAND				"command"
#define ATTRIBUTE_BITMAPINDEX			"bitmap-index"
#define ATTRIBUTE_MASKURL				"maskurl"
#define ATTRIBUTE_MASKMODE				"maskmode"
#define ATTRIBUTE_HIGHCONTRASTURL		"highcontrasturl"
#define ATTRIBUTE_HIGHCONTRASTMASKURL	"highcontrastmaskurl"
#define ATTRIBUTE_TYPE_CDATA			"CDATA"

#define ATTRIBUTE_MASKMODE_BITMAP	"maskbitmap"
#define ATTRIBUTE_MASKMODE_COLOR	"maskcolor"

#define ATTRIBUTE_XMLNS_IMAGE		"xmlns:image"
#define ATTRIBUTE_XMLNS_XLINK		"xmlns:xlink"

#define ATTRIBUTE_XLINK_TYPE		"xlink:type"
#define ATTRIBUTE_XLINK_TYPE_VALUE	"simple"

#define XMLNS_IMAGE					"http://openoffice.org/2001/image"
#define XMLNS_XLINK					"http://www.w3.org/1999/xlink"
#define XMLNS_IMAGE_PREFIX			"image:"
#define XMLNS_XLINK_PREFIX			"xlink:"

#define XMLNS_FILTER_SEPARATOR		"^"

#define IMAGES_DOCTYPE	"<!DOCTYPE image:imagecontainer PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"image.dtd\">"

namespace framework
{

struct ImageXMLEntryProperty
{
	OReadImagesDocumentHandler::Image_XML_Namespace	nNamespace;
	char											aEntryName[20];
};

ImageXMLEntryProperty ImagesEntries[OReadImagesDocumentHandler::IMG_XML_ENTRY_COUNT] =
{
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE,	ELEMENT_IMAGECONTAINER			},
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE,	ELEMENT_IMAGES					},
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE,	ELEMENT_ENTRY					},
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE,	ELEMENT_EXTERNALIMAGES			},
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE,	ELEMENT_EXTERNALENTRY			},
	{ OReadImagesDocumentHandler::IMG_NS_XLINK,	ATTRIBUTE_HREF					},
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE,	ATTRIBUTE_MASKCOLOR				},
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE,	ATTRIBUTE_COMMAND				},
    { OReadImagesDocumentHandler::IMG_NS_IMAGE, ATTRIBUTE_BITMAPINDEX			},
    { OReadImagesDocumentHandler::IMG_NS_IMAGE, ATTRIBUTE_MASKURL				},
    { OReadImagesDocumentHandler::IMG_NS_IMAGE, ATTRIBUTE_MASKMODE				},
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE, ATTRIBUTE_HIGHCONTRASTURL		},
	{ OReadImagesDocumentHandler::IMG_NS_IMAGE, ATTRIBUTE_HIGHCONTRASTMASKURL	}
};


OReadImagesDocumentHandler::OReadImagesDocumentHandler( ImageListsDescriptor& aItems ) :
	ThreadHelpBase( &Application::GetSolarMutex() ),
	::cppu::OWeakObject(),
	m_aImageList( aItems ),
	m_pImages( 0 ),
	m_pExternalImages( 0 )
{
	m_aImageList.pImageList			= NULL;
	m_aImageList.pExternalImageList = NULL;

	m_nHashMaskModeBitmap	= OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MASKMODE_BITMAP )).hashCode();
	m_nHashMaskModeColor	= OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_MASKMODE_COLOR )).hashCode();

	// create hash map to speed up lookup
	for ( int i = 0; i < (int)IMG_XML_ENTRY_COUNT; i++ )
=====================================================================
Found a 33 line (251 tokens) duplication in the following files: 
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/zortech/tempnam.c
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/os2/ibm/tempnam.c

char *prefix;		/* use this (if non-NULL) as filename prefix */
{
   static         int count = 0;
   register char *p, *q, *tmpdir;
   int            tl=0, dl=0, pl;
   char		  buf[30];

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL )
      tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL )
      tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", getpid() );
=====================================================================
Found a 57 line (251 tokens) duplication in the following files: 
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/xml/xmlExport.cxx
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlExport.cxx

	Sequence< ::rtl::OUString > ODBFullExportHelper::getSupportedServiceNames_Static(  ) throw(RuntimeException)
	{
		Sequence< ::rtl::OUString > aSupported(1);
		aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.document.ExportFilter");
		return aSupported;
	}
	
	//---------------------------------------------------------------------
	::rtl::OUString lcl_implGetPropertyXMLType(const Type& _rType)
	{
		// possible types we can write (either because we recognize them directly or because we convert _rValue
		// into one of these types)
		static const ::rtl::OUString s_sTypeBoolean	(RTL_CONSTASCII_USTRINGPARAM("boolean"));
		static const ::rtl::OUString s_sTypeShort	(RTL_CONSTASCII_USTRINGPARAM("short"));
		static const ::rtl::OUString s_sTypeInteger	(RTL_CONSTASCII_USTRINGPARAM("int"));
		static const ::rtl::OUString s_sTypeLong	(RTL_CONSTASCII_USTRINGPARAM("long"));
		static const ::rtl::OUString s_sTypeDouble	(RTL_CONSTASCII_USTRINGPARAM("double"));
		static const ::rtl::OUString s_sTypeString	(RTL_CONSTASCII_USTRINGPARAM("string"));

		// handle the type description
		switch (_rType.getTypeClass())
		{
			case TypeClass_STRING:
				return s_sTypeString;
			case TypeClass_DOUBLE:
				return s_sTypeDouble;
			case TypeClass_BOOLEAN:
				return s_sTypeBoolean;
			case TypeClass_BYTE:
			case TypeClass_SHORT:
				return s_sTypeShort;
			case TypeClass_LONG:
				return s_sTypeInteger;
			case TypeClass_HYPER:
				return s_sTypeLong;
			case TypeClass_ENUM:
				return s_sTypeInteger;

			default:
				return s_sTypeDouble;
		}
	}

	class OSpecialHanldeXMLExportPropertyMapper : public SvXMLExportPropertyMapper
	{
	public:
		OSpecialHanldeXMLExportPropertyMapper(const UniReference< XMLPropertySetMapper >& rMapper) : SvXMLExportPropertyMapper(rMapper )
		{
		}
		/** this method is called for every item that has the
	    MID_FLAG_SPECIAL_ITEM_EXPORT flag set */
		virtual void handleSpecialItem(
				SvXMLAttributeList& /*rAttrList*/,
				const XMLPropertyState& /*rProperty*/,
				const SvXMLUnitConverter& /*rUnitConverter*/,
				const SvXMLNamespaceMap& /*rNamespaceMap*/,
				const ::std::vector< XMLPropertyState >* /*pProperties*/ = 0,
=====================================================================
Found a 62 line (250 tokens) duplication in the following files: 
Starting at line 1595 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1581 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                uno::Reference< io::XInputStream > xIn = getInputStream( xEnv );
                if ( !xIn.is() )
                {
                    // No interaction if we are not persistent!
                    uno::Any aProps
                        = uno::makeAny(
                                 beans::PropertyValue(
                                     rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                                       "Uri")),
                                     -1,
                                     uno::makeAny(m_xIdentifier->
                                                      getContentIdentifier()),
                                     beans::PropertyState_DIRECT_VALUE));
                    ucbhelper::cancelCommandExecution(
                        ucb::IOErrorCode_CANT_READ,
                        uno::Sequence< uno::Any >(&aProps, 1),
                        m_eState == PERSISTENT
                            ? xEnv
                            : uno::Reference< ucb::XCommandEnvironment >(),
                        rtl::OUString::createFromAscii( "Got no data stream!" ),
                        this );
                    // Unreachable
                }

                try
                {
                    uno::Sequence< sal_Int8 > aBuffer;
                    sal_Int32  nRead = xIn->readSomeBytes( aBuffer, 65536 );

                    while ( nRead > 0 )
                    {
                        aBuffer.realloc( nRead );
                        xOut->writeBytes( aBuffer );
                        aBuffer.realloc( 0 );
                        nRead = xIn->readSomeBytes( aBuffer, 65536 );
                    }

                    xOut->closeOutput();
                }
                catch ( io::NotConnectedException const & )
                {
                    // closeOutput, readSomeBytes, writeBytes
                }
                catch ( io::BufferSizeExceededException const & )
                {
                    // closeOutput, readSomeBytes, writeBytes
                }
                catch ( io::IOException const & )
                {
                    // closeOutput, readSomeBytes, writeBytes
                }
            }
            else
            {
                uno::Reference< io::XActiveDataSink > xDataSink(
                                                rArg.Sink, uno::UNO_QUERY );
                if ( xDataSink.is() )
                {
                    // PULL: wait for client read

                    // May throw CommandFailedException, DocumentPasswordRequest!
                    uno::Reference< io::XInputStream > xIn = getInputStream( xEnv );
=====================================================================
Found a 24 line (250 tokens) duplication in the following files: 
Starting at line 3767 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3392 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x2082, 0x400, 10800, 3525 }
};
static const SvxMSDffVertPair mso_sptSeal8Vert[] =	// adj value 0 -> 10800
{
	{ 5 MSO_I, 6 MSO_I }, { 11 MSO_I, 12 MSO_I }, { 17 MSO_I, 18 MSO_I }, { 23 MSO_I, 24 MSO_I },
	{ 29 MSO_I, 30 MSO_I }, { 35 MSO_I, 36 MSO_I }, { 41 MSO_I, 42 MSO_I }, { 47 MSO_I, 48 MSO_I },
	{ 53 MSO_I, 54 MSO_I }, { 59 MSO_I, 60 MSO_I }, { 65 MSO_I, 66 MSO_I }, { 71 MSO_I, 72 MSO_I },
	{ 77 MSO_I, 78 MSO_I }, { 83 MSO_I, 84 MSO_I }, { 89 MSO_I, 90 MSO_I }, { 95 MSO_I, 96 MSO_I },
	{ 5 MSO_I, 6 MSO_I }
};
static const SvxMSDffTextRectangles mso_sptSealTextRect[] =
{
	{ { 1 MSO_I, 2 MSO_I }, { 3 MSO_I, 4 MSO_I } }
};
static const mso_CustomShape msoSeal8 = 
{
	(SvxMSDffVertPair*)mso_sptSeal8Vert, sizeof( mso_sptSeal8Vert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	(SvxMSDffCalculationData*)mso_sptSeal24Calc, sizeof( mso_sptSeal24Calc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptDefault2500,
	(SvxMSDffTextRectangles*)mso_sptSealTextRect, sizeof( mso_sptSealTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 44 line (250 tokens) duplication in the following files: 
Starting at line 974 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unomodel.cxx
Starting at line 493 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unomod.cxx

	OGuard aGuard( Application::GetSolarMutex() );

	if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.DashTable") ) )
	{
		if( !mxDashTable.is() )
			mxDashTable = SvxUnoDashTable_createInstance( mpDoc );
		return mxDashTable;
	}
	if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.GradientTable") ) )
	{
		if( !mxGradientTable.is() )
			mxGradientTable = SvxUnoGradientTable_createInstance( mpDoc );
		return mxGradientTable;
	}
	if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.HatchTable") ) )
	{
		if( !mxHatchTable.is() )
			mxHatchTable = SvxUnoHatchTable_createInstance( mpDoc );
		return mxHatchTable;
	}
	if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.BitmapTable") ) )
	{
		if( !mxBitmapTable.is() )
			mxBitmapTable = SvxUnoBitmapTable_createInstance( mpDoc );
		return mxBitmapTable;
	}
	if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.TransparencyGradientTable") ) )
	{
		if( !mxTransGradientTable.is() )
			mxTransGradientTable = SvxUnoTransGradientTable_createInstance( mpDoc );
		return mxTransGradientTable;
	}
	if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.MarkerTable") ) )
	{
		if( !mxMarkerTable.is() )
			mxMarkerTable = SvxUnoMarkerTable_createInstance( mpDoc );
		return mxMarkerTable;
	}
	if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.NumberingRules" ) ) )
	{
		return uno::Reference< uno::XInterface >( SvxCreateNumRule( mpDoc ), uno::UNO_QUERY );
	}

	if( aServiceSpecifier.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.image.ImageMapRectangleObject") ) )
=====================================================================
Found a 12 line (250 tokens) duplication in the following files: 
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIXML),	SC_WID_UNO_VALIXML,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLVJUS),	ATTR_VER_JUSTIFY,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_WRITING),	ATTR_WRITINGDIR,	&getCppuType((sal_Int16*)0),			0, 0 },
        {0,0,0,0,0,0}
	};
	return aRangePropertyMap_Impl;
=====================================================================
Found a 28 line (250 tokens) duplication in the following files: 
Starting at line 2601 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3031 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

							 Xik * pMatX->GetDouble(j,k);
						pQ->PutDouble( sumXikXjk, j+1, i+1);
						pQ->PutDouble( sumXikXjk, i+1, j+1);
					}
				}
			}
		}
		else
		{
			for (k = 0; k < N; k++)
			{
				double Yk = pMatY->GetDouble(k);
				pE->PutDouble( pE->GetDouble(M+1)+Yk*Yk, M+1 );
				double sumYk = pQ->GetDouble(0, M+1) + Yk;
				pQ->PutDouble( sumYk, 0, M+1 );
				pE->PutDouble( sumYk, 0 );
				for (i = 0; i < M; i++)
				{
					double Xki = pMatX->GetDouble(k,i);
					double sumXki = pQ->GetDouble(0, i+1) + Xki;
					pQ->PutDouble( sumXki, 0, i+1);
					pQ->PutDouble( sumXki, i+1, 0);
					double sumXkiYk = pQ->GetDouble(i+1, M+1) + Xki * Yk;
					pQ->PutDouble( sumXkiYk, i+1, M+1);
					pE->PutDouble( sumXkiYk, i+1);
					for (j = i; j < M; j++)
					{
						double sumXkiXkj = pQ->GetDouble(j+1, i+1) +
=====================================================================
Found a 56 line (250 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/sal/test/unloading/samplelib1.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/sal/test/unloading/samplelib2.cxx

using namespace ::com::sun::star::registry;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::rtl;
using namespace ::cppu;

#define IMPLNAME1 "com.sun.star.comp.sal.UnloadingTest21"
#define SERVICENAME1 "com.sun.star.UnloadingTest21"
#define IMPLNAME2 "com.sun.star.comp.sal.UnloadingTest22"
#define SERVICENAME2 "com.sun.star.UnloadingTest22"
#define IMPLNAME3 "com.sun.star.comp.sal.UnloadingTest23"
#define SERVICENAME3 "com.sun.star.UnloadingTest23"

// Unloading Support ----------------------------------------------
rtl_StandardModuleCount globalModuleCount= MODULE_COUNT_INIT;
//rtl_StandardModuleCount globalModuleCount= { {rtl_moduleCount_acquire,rtl_moduleCount_release}, rtl_moduleCount_canUnload,0,{0,0}}; //, 0, {0, 0}};
// Services -------------------------------------------------------
class TestService: public WeakImplHelper1<XServiceInfo>
{
OUString m_implName;
OUString m_serviceName;
public:
	TestService( OUString implName, OUString serviceName);
	~TestService();
	virtual OUString SAL_CALL getImplementationName(  )  throw (RuntimeException);
    virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (RuntimeException);
    virtual Sequence<OUString > SAL_CALL getSupportedServiceNames(  ) throw (RuntimeException);
};

TestService::TestService( OUString implName, OUString serviceName):
			m_implName(implName),m_serviceName(serviceName)
{	// Library unloading support
	globalModuleCount.modCnt.acquire( &globalModuleCount.modCnt);
}

TestService::~TestService()
{	// Library unloading support
	globalModuleCount.modCnt.release( &globalModuleCount.modCnt);
}

OUString SAL_CALL TestService::getImplementationName(  )  throw (RuntimeException)
{
	return m_implName;
}
sal_Bool SAL_CALL TestService::supportsService( const OUString& ServiceName ) throw (RuntimeException)
{
	return ServiceName.equals( m_serviceName);
}
Sequence<OUString > SAL_CALL TestService::getSupportedServiceNames(  ) throw (RuntimeException)
{
	return Sequence<OUString>( &m_serviceName, 1);
}


// Creator functions for Services -------------------------------------------------
static Reference<XInterface> SAL_CALL test21_createInstance(const Reference<XMultiServiceFactory> & rSMgr)
=====================================================================
Found a 44 line (250 tokens) duplication in the following files: 
Starting at line 1459 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 1537 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine)
{
	unsigned int Len = strlen(pszLine);

#ifdef DEBUG_OSL_PROFILE
	int strLen=0;
#endif

	if ( pFile == 0 || pFile->m_Handle < 0 )
    {
		return (sal_False);
    }

    if ( pFile->m_pWriteBuf == 0 )
    {
        pFile->m_pWriteBuf = (sal_Char*) malloc(Len+3);
        pFile->m_nWriteBufLen = Len+3;
		pFile->m_nWriteBufFree = Len+3;
    }
    else
    {
        if ( pFile->m_nWriteBufFree <= Len + 3 )
        {
            sal_Char* pTmp;

            pTmp=(sal_Char*) realloc(pFile->m_pWriteBuf,( ( pFile->m_nWriteBufLen + Len ) * 2) );
            if ( pTmp == 0 )
            {
                return sal_False;
            }
            pFile->m_pWriteBuf = pTmp;
            pFile->m_nWriteBufFree = pFile->m_nWriteBufFree + pFile->m_nWriteBufLen + ( 2 * Len );
            pFile->m_nWriteBufLen = ( pFile->m_nWriteBufLen + Len ) * 2;
            memset( (pFile->m_pWriteBuf) + ( pFile->m_nWriteBufLen - pFile->m_nWriteBufFree ), 0, pFile->m_nWriteBufFree);
        }
    }



    memcpy(pFile->m_pWriteBuf + ( pFile->m_nWriteBufLen - pFile->m_nWriteBufFree ),pszLine,Len+1);
#ifdef DEBUG_OSL_PROFILE
	strLen = strlen(pFile->m_pWriteBuf);
#endif
    pFile->m_pWriteBuf[pFile->m_nWriteBufLen - pFile->m_nWriteBufFree + Len]='\r';
=====================================================================
Found a 54 line (250 tokens) duplication in the following files: 
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/LineChartTypeTemplate.cxx
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ScatterChartTypeTemplate.cxx

    const Reference< chart2::XDiagram >& xDiagram,
    sal_Bool bAdaptProperties )
    throw (uno::RuntimeException)
{
    sal_Bool bResult = ChartTypeTemplate::matchesTemplate( xDiagram, bAdaptProperties );

    // check symbol-style and line-style
    // for a template with symbols (or with lines) it is ok, if there is at least one series
    // with symbols (or with lines)
    if( bResult )
    {
        ::std::vector< Reference< chart2::XDataSeries > > aSeriesVec(
            DiagramHelper::getDataSeriesFromDiagram( xDiagram ));

        for( ::std::vector< Reference< chart2::XDataSeries > >::const_iterator aIt =
                 aSeriesVec.begin(); aIt != aSeriesVec.end(); ++aIt )
        {
            try
            {
                chart2::Symbol aSymbProp;
                drawing::LineStyle eLineStyle;
                Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY_THROW );

                if( (xProp->getPropertyValue( C2U( "Symbol" )) >>= aSymbProp) &&
                    (aSymbProp.Style != chart2::SymbolStyle_NONE) &&
                    (!m_bHasSymbols) )
                {
                    bResult = false;
                    break;
                }

                if( (xProp->getPropertyValue( C2U( "LineStyle" )) >>= eLineStyle) &&
                    (m_bHasLines != ( eLineStyle != drawing::LineStyle_NONE )) )
                {
                    bResult = false;
                    break;
                }
            }
            catch( uno::Exception & ex )
            {
                ASSERT_EXCEPTION( ex );
            }
        }
    }

    // adapt curve style, spline order and resolution
    if( bResult && bAdaptProperties )
    {
        try
        {
            uno::Reference< beans::XPropertySet > xChartTypeProp(
                DiagramHelper::getChartTypeByIndex( xDiagram, 0 ),
                uno::UNO_QUERY_THROW );
            setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_STYLE, xChartTypeProp->getPropertyValue(C2U("CurveStyle" )) );
=====================================================================
Found a 59 line (250 tokens) duplication in the following files: 
Starting at line 472 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 671 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /* functionCount */, sal_Int32 vtableOffset)
{

  // fprintf(stderr, "in addLocalFunctions functionOffset is %x\n",functionOffset);
  // fprintf(stderr, "in addLocalFunctions vtableOffset is %x\n",vtableOffset);
  // fflush(stderr);

    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription * >(
                        member)->pAttributeTypeRef));

            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(code, functionOffset++, vtableOffset, true);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription * >(
                        member)->pReturnTypeRef));
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}
=====================================================================
Found a 52 line (250 tokens) duplication in the following files: 
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/exes/adc_uni/cmd_run.cxx
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/exes/adc_uni/cmd_run.cxx

    i_rProject.aRootDirectory.Get( aDir );

    uintt nProjectDir_AddPosition =
            ( strcmp(aDir.c_str(),".\\") == 0 OR strcmp(aDir.c_str(),"./") == 0 )
                ?   0
                :   uintt( aDir.tellp() );

    for ( it = rSources.aDirectories.begin();
          it != itDirsEnd;
          ++it )
    {
        aDir.seekp( nProjectDir_AddPosition );
        aDir << *it;

        for ( itExt = rExtensions.begin();
              itExt != itExtEnd;
              ++itExt )
        {
            ret += o_rFiles.AddFilesFrom( aDir.c_str(),
                                          *itExt,
                                          FileCollector_Ifc::flat );
        }   // end for itExt
    }   // end for it
    for ( it = rSources.aTrees.begin();
          it != itTreesEnd;
          ++it )
    {
        aDir.seekp( nProjectDir_AddPosition );
        aDir << *it;

        for ( itExt = rExtensions.begin();
              itExt != itExtEnd;
              ++itExt )
        {
            ret += o_rFiles.AddFilesFrom( aDir.c_str(),
                                          *itExt,
                                          FileCollector_Ifc::recursive );
        }   // end for itExt
    }   // end for it
    for ( it = rSources.aFiles.begin();
          it != itFilesEnd;
          ++it )
    {
        aDir.seekp( nProjectDir_AddPosition );
        aDir << *it;

        o_rFiles.AddFile( aDir.c_str() );
    }   // end for it
    ret += rSources.aFiles.size();

    return ret;
}
=====================================================================
Found a 51 line (249 tokens) duplication in the following files: 
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/propread.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/dinfos2.cxx

void Dictionary::AddProperty( UINT32 nId, const String& rString )
{
	if ( rString.Len() )		// eindeutige namen bei properties
	{
		// pruefen, ob es die Propertybeschreibung in der Dictionary schon gibt
		for ( Dict* pDict = (Dict*)First(); pDict; pDict = (Dict*)Next() )
		{
			if ( pDict->mnId == nId )
			{
				pDict->aString = rString;
				return;
			}
		}
		Insert( new Dict( nId, rString ), LIST_APPEND );
	}
}

//	-----------------------------------------------------------------------

UINT32 Dictionary::GetProperty( const String& rString )
{
	for ( Dict* pDict = (Dict*)First(); pDict; pDict = (Dict*)Next() )
	{
		if ( pDict->aString == rString )
			return pDict->mnId;
	}
	return 0;
}

//	-----------------------------------------------------------------------

Dictionary& Dictionary::operator=( Dictionary& rDictionary )
{
	void* pPtr;

	if ( this != &rDictionary )
	{
		for ( pPtr = First(); pPtr; pPtr = Next() )
			delete (Dict*)pPtr;

		for ( pPtr = rDictionary.First(); pPtr; pPtr = rDictionary.Next() )
			Insert( new Dict( ((Dict*)pPtr)->mnId, ((Dict*)pPtr)->aString ), LIST_APPEND );
	}
	return *this;
}

//	-----------------------------------------------------------------------

Section::Section( Section& rSection )
: List()
{
=====================================================================
Found a 35 line (249 tokens) duplication in the following files: 
Starting at line 321 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen5.cxx
Starting at line 652 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen5.cxx

			const ScRangeListRef& rNewRangeListRef )
{
    // called from ChartListener

    if (!pDrawLayer)
        return;

    for (SCTAB nTab=0; nTab<=MAXTAB && pTab[nTab]; nTab++)
    {
        SdrPage* pPage = pDrawLayer->GetPage(static_cast<sal_uInt16>(nTab));
        DBG_ASSERT(pPage,"Page ?");

        SdrObjListIter aIter( *pPage, IM_DEEPNOGROUPS );
        SdrObject* pObject = aIter.Next();
        while (pObject)
        {
            if ( pObject->GetObjIdentifier() == OBJ_OLE2 &&
                    ((SdrOle2Obj*)pObject)->GetPersistName() == rChartName )
            {
                uno::Reference< embed::XEmbeddedObject > xIPObj = ((SdrOle2Obj*)pObject)->GetObjRef();
                if ( xIPObj.is() )
                {
                    svt::EmbeddedObjectRef::TryRunningState( xIPObj );

                    uno::Reference< util::XCloseable > xComponent = xIPObj->getComponent();
                    uno::Reference< chart2::XChartDocument > xChartDoc( xComponent, uno::UNO_QUERY );
                    uno::Reference< chart2::data::XDataReceiver > xReceiver( xComponent, uno::UNO_QUERY );
                    if ( xChartDoc.is() && xReceiver.is() )
                    {
                        ScRangeListRef aNewRanges;
                        chart::ChartDataRowSource eDataRowSource = chart::ChartDataRowSource_COLUMNS;
                        bool bHasCategories = false;
                        bool bFirstCellAsLabel = false;
                        rtl::OUString aRangesStr;
                        lcl_GetChartParameters( xChartDoc, aRangesStr, eDataRowSource, bHasCategories, bFirstCellAsLabel );
=====================================================================
Found a 8 line (249 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1550 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff60 - ff6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff70 - ff7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff80 - ff8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff90 - ff9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffc0 - ffcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffd0 - ffdf
=====================================================================
Found a 9 line (249 tokens) duplication in the following files: 
Starting at line 1034 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d50 - 0d5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d60 - 0d6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 7 line (249 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x1F78}, {0x6a, 0x1F79}, {0x6a, 0x1F7C}, {0x6a, 0x1F7D}, {0xec, 0x0137}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 1ff8 - 1fff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2100 - 2107
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2108 - 210f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2110 - 2117
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2118 - 211f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x6a, 0x03C9}, {0x00, 0x0000}, // 2120 - 2127
=====================================================================
Found a 55 line (249 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/attributelist.cxx
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx

	if( i < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw  (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString AttributeListImpl::getValueByName(const OUString& sName) throw  (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}



AttributeListImpl::AttributeListImpl()
{
	m_pImpl = new AttributeListImpl_impl;
}



AttributeListImpl::~AttributeListImpl()
{
	delete m_pImpl;
}


void AttributeListImpl::addAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}

void AttributeListImpl::clear()
{
=====================================================================
Found a 61 line (249 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/headermenucontroller.cxx

                            a = xPropSet->getPropertyValue( aHeaderIsOnStr );
                            a >>= bHeaderIsOn;
                            
                            rtl::OUStringBuffer aStrBuf( aCmd );
                            aStrBuf.appendAscii( "?PageStyle:string=");
                            aStrBuf.append( aDisplayName );
                            aStrBuf.appendAscii( "&On:bool=" );
                            if ( !bHeaderIsOn )
                                aStrBuf.appendAscii( "true" );
                            else
                                aStrBuf.appendAscii( "false" );
                            rtl::OUString aCommand( aStrBuf.makeStringAndClear() );
                            pVCLPopupMenu->InsertItem( nId, aDisplayName, MIB_CHECKABLE );
                            if ( !bFirstItemInserted )
                            {
                                bFirstItemInserted = sal_True;
                                bFirstChecked      = bHeaderIsOn;
                            }
                            
                            pVCLPopupMenu->SetItemCommand( nId, aCommand );

                            if ( bHeaderIsOn )
                                pVCLPopupMenu->CheckItem( nId, sal_True );
                            ++nId;
			                
                            // Check if all entries have the same state
                            if( bAllOneState && n && bHeaderIsOn != bLastCheck )
				                bAllOneState = FALSE;
                            bLastCheck = bHeaderIsOn;
                            ++nCount;
                        }
                    }
                }

                if ( bAllOneState && ( nCount > 1 ))
                {
                    // Insert special item for all command
                    pVCLPopupMenu->InsertItem( ALL_MENUITEM_ID, String( FwkResId( STR_MENU_HEADFOOTALL )), 0, 0 );

                    rtl::OUStringBuffer aStrBuf( aCmd );
                    aStrBuf.appendAscii( "?On:bool=" );
                    
                    // Command depends on check state of first menu item entry
                    if ( !bFirstChecked )
                        aStrBuf.appendAscii( "true" );
                    else
                        aStrBuf.appendAscii( "false" );

                    pVCLPopupMenu->SetItemCommand( 1, aStrBuf.makeStringAndClear() );
				    pVCLPopupMenu->InsertSeparator( 1 );
                }
            }
        }
        catch ( com::sun::star::container::NoSuchElementException& )
        {
        }
    }
}

// XEventListener
void SAL_CALL HeaderMenuController::disposing( const EventObject& ) throw ( RuntimeException )
=====================================================================
Found a 38 line (249 tokens) duplication in the following files: 
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/urltransformer.cxx
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/urltransformer.cxx

	if ( bOk )
	{
		// Get all information about this URL.
		aURL.Protocol	= INetURLObject::GetScheme( aParser.GetProtocol() );
		aURL.User		= aParser.GetUser	( INetURLObject::DECODE_WITH_CHARSET );
		aURL.Password	= aParser.GetPass	( INetURLObject::DECODE_WITH_CHARSET );
		aURL.Server		= aParser.GetHost	( INetURLObject::DECODE_WITH_CHARSET );
		aURL.Port		= (sal_Int16)aParser.GetPort();

		sal_Int32 nCount = aParser.getSegmentCount( false );
		if ( nCount > 0 )
		{
			// Don't add last segment as it is the name!
			--nCount;

			rtl::OUStringBuffer aPath;
			for ( sal_Int32 nIndex = 0; nIndex < nCount; nIndex++ )
			{
				aPath.append( sal_Unicode( '/' ));
				aPath.append( aParser.getName( nIndex, false, INetURLObject::NO_DECODE ));
			}
		
			if ( nCount > 0 )
				aPath.append( sal_Unicode( '/' )); // final slash!

			aURL.Path = aPath.makeStringAndClear();
			aURL.Name = aParser.getName( INetURLObject::LAST_SEGMENT, false, INetURLObject::NO_DECODE );
		}
		else
		{
			aURL.Path       = aParser.GetURLPath( INetURLObject::NO_DECODE           );
			aURL.Name		= aParser.GetName	(									 );
		}

		aURL.Arguments  = aParser.GetParam  ( INetURLObject::NO_DECODE           );
		aURL.Mark		= aParser.GetMark	( INetURLObject::DECODE_WITH_CHARSET );

		aURL.Complete	= aParser.GetMainURL( INetURLObject::NO_DECODE           );
=====================================================================
Found a 9 line (249 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d50 - 0d5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d60 - 0d6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 42 line (248 tokens) duplication in the following files: 
Starting at line 1428 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1893 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

ScXMLMovementContext::ScXMLMovementContext( ScXMLImport& rImport,
											  USHORT nPrfx,
				   	  						  const ::rtl::OUString& rLName,
									  		const uno::Reference<xml::sax::XAttributeList>& xAttrList,
											ScXMLChangeTrackingImportHelper* pTempChangeTrackingImportHelper ) :
	SvXMLImportContext( rImport, nPrfx, rLName ),
	pChangeTrackingImportHelper(pTempChangeTrackingImportHelper)
{
	sal_uInt32 nActionNumber(0);
	sal_uInt32 nRejectingNumber(0);
	ScChangeActionState nActionState(SC_CAS_VIRGIN);

	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
			{
				nActionNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
			else if (IsXMLToken(aLocalName, XML_ACCEPTANCE_STATE))
			{
				if (IsXMLToken(sValue, XML_ACCEPTED))
					nActionState = SC_CAS_ACCEPTED;
				else if (IsXMLToken(sValue, XML_REJECTED))
					nActionState = SC_CAS_REJECTED;
			}
			else if (IsXMLToken(aLocalName, XML_REJECTING_CHANGE_ID))
			{
				nRejectingNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
		}
	}

	pChangeTrackingImportHelper->StartChangeAction(SC_CAT_MOVE);
=====================================================================
Found a 31 line (248 tokens) duplication in the following files: 
Starting at line 479 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

	if( !SUCCEEDED( hr ) ) return hr;

	// create desktop
	CComPtr<IDispatch> pdispDesktop;
	hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.frame.Desktop" ), 1, pdispDesktop );
	if( !SUCCEEDED( hr ) ) return hr;

	// create tree of frames
	CComPtr<IDispatch> pdispChildren;
	hr = GetIDispByFunc( pdispDesktop, L"getFrames", NULL, 0, pdispChildren );
	if( !SUCCEEDED( hr ) ) return hr;

	// insert new frame into desctop hierarchy
	hr = ExecuteFunc( pdispChildren, L"append", &CComVariant( mpDispFrame ), 1, &dummyResult );
	if( !SUCCEEDED( hr ) ) return hr;

	// initialize window
	hr = ExecuteFunc( mpDispWin, L"setBackground", &CComVariant( (long)0xFFFFFFFF ), 1, &dummyResult );
	if( !SUCCEEDED( hr ) ) return hr;
	
	hr = ExecuteFunc( mpDispWin, L"setVisible", &CComVariant( TRUE ), 1, &dummyResult );
	if( !SUCCEEDED( hr ) ) return hr;

	CComVariant aPosArgs[5];
	aPosArgs[4] = CComVariant( 0 );
	aPosArgs[3] = CComVariant( 0 );
	aPosArgs[2] = CComVariant( width );
	aPosArgs[1] = CComVariant( height );
	aPosArgs[0] = CComVariant( 12 );
	hr = ExecuteFunc( mpDispWin, L"setPosSize", aPosArgs, 5, &dummyResult );
	if( !SUCCEEDED( hr ) ) return hr;
=====================================================================
Found a 35 line (248 tokens) duplication in the following files: 
Starting at line 551 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx

			return bCStyle ? "typelib_TypeClass_SERVICE" : "::com::sun::star::uno::TypeClass_SERVICE";
		case RT_TYPE_INVALID:
			{
				if (type.equals("long"))
					return bCStyle ? "typelib_TypeClass_LONG" : "::com::sun::star::uno::TypeClass_LONG";
				if (type.equals("short"))
					return bCStyle ? "typelib_TypeClass_SHORT" : "::com::sun::star::uno::TypeClass_SHORT";
				if (type.equals("hyper"))
					return bCStyle ? "typelib_TypeClass_HYPER" : "::com::sun::star::uno::TypeClass_HYPER";
				if (type.equals("string"))
					return bCStyle ? "typelib_TypeClass_STRING" : "::com::sun::star::uno::TypeClass_STRING";
				if (type.equals("boolean"))
					return bCStyle ? "typelib_TypeClass_BOOLEAN" : "::com::sun::star::uno::TypeClass_BOOLEAN";
				if (type.equals("char"))
					return bCStyle ? "typelib_TypeClass_CHAR" : "::com::sun::star::uno::TypeClass_CHAR";
				if (type.equals("byte"))
					return bCStyle ? "typelib_TypeClass_BYTE" : "::com::sun::star::uno::TypeClass_BYTE";
				if (type.equals("any"))
					return bCStyle ? "typelib_TypeClass_ANY" : "::com::sun::star::uno::TypeClass_ANY";
				if (type.equals("type"))
					return bCStyle ? "typelib_TypeClass_TYPE" : "::com::sun::star::uno::TypeClass_TYPE";
				if (type.equals("float"))
					return bCStyle ? "typelib_TypeClass_FLOAT" : "::com::sun::star::uno::TypeClass_FLOAT";
				if (type.equals("double"))
					return bCStyle ? "typelib_TypeClass_DOUBLE" : "::com::sun::star::uno::TypeClass_DOUBLE";
				if (type.equals("void"))
					return bCStyle ? "typelib_TypeClass_VOID" : "::com::sun::star::uno::TypeClass_VOID";
				if (type.equals("unsigned long"))
					return bCStyle ? "typelib_TypeClass_UNSIGNED_LONG" : "::com::sun::star::uno::TypeClass_UNSIGNED_LONG";
				if (type.equals("unsigned short"))
					return bCStyle ? "typelib_TypeClass_UNSIGNED_SHORT" : "::com::sun::star::uno::TypeClass_UNSIGNED_SHORT";
				if (type.equals("unsigned hyper"))
					return bCStyle ? "typelib_TypeClass_UNSIGNED_HYPER" : "::com::sun::star::uno::TypeClass_UNSIGNED_HYPER";
			}
			break;
=====================================================================
Found a 35 line (247 tokens) duplication in the following files: 
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crcomp.cxx
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crcomp.cxx

void IdlCompFieldImpl::set( Any & rObj, const Any & rValue )
	throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
	if (rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_STRUCT ||
		rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_EXCEPTION)
	{
		typelib_TypeDescription * pObjTD = 0;
		TYPELIB_DANGER_GET( &pObjTD, rObj.getValueTypeRef() );
		
		typelib_TypeDescription * pTD = pObjTD;
		typelib_TypeDescription * pDeclTD = getDeclTypeDescr();
		while (pTD && !typelib_typedescription_equals( pTD, pDeclTD ))
			pTD = (typelib_TypeDescription *)((typelib_CompoundTypeDescription *)pTD)->pBaseTypeDescription;
		
		OSL_ENSURE( pTD, "### illegal object type!" );
		if (pTD)
		{
			TYPELIB_DANGER_RELEASE( pObjTD );
			if (coerce_assign( (char *)rObj.getValue() + _nOffset, getTypeDescr(), rValue, getReflection() ))
			{
				return;
			}
			else
			{
				throw IllegalArgumentException(
					OUString( RTL_CONSTASCII_USTRINGPARAM("illegal value given!") ),
					(XWeak *)(OWeakObject *)this, 1 );
			}
		}
		TYPELIB_DANGER_RELEASE( pObjTD );
	}
	throw IllegalArgumentException(
		OUString( RTL_CONSTASCII_USTRINGPARAM("illegal object given!") ),
		(XWeak *)(OWeakObject *)this, 0 );
}
=====================================================================
Found a 33 line (247 tokens) duplication in the following files: 
Starting at line 633 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx
Starting at line 716 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx

BOOL ScOutlineDocFunc::HideOutline( SCTAB nTab, BOOL bColumns, USHORT nLevel, USHORT nEntry,
                                    BOOL bRecord, BOOL bPaint, BOOL /* bApi */ )
{
	ScDocument* pDoc = rDocShell.GetDocument();
	if (bRecord && !pDoc->IsUndoEnabled())
		bRecord = FALSE;

	ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab );
	ScOutlineArray* pArray = bColumns ? pTable->GetColArray() : pTable->GetRowArray();
	ScOutlineEntry* pEntry = pArray->GetEntry( nLevel, nEntry );
	SCCOLROW nStart = pEntry->GetStart();
	SCCOLROW nEnd	= pEntry->GetEnd();

	if ( bRecord )
	{
		ScDocument* pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
		if (bColumns)
		{
			pUndoDoc->InitUndo( pDoc, nTab, nTab, TRUE, FALSE );
            pDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab,
                    static_cast<SCCOL>(nEnd), MAXROW, nTab, IDF_NONE, FALSE,
                    pUndoDoc );
		}
		else
		{
			pUndoDoc->InitUndo( pDoc, nTab, nTab, FALSE, TRUE );
			pDoc->CopyToDocument( 0, nStart, nTab, MAXCOL, nEnd, nTab, IDF_NONE, FALSE, pUndoDoc );
		}

		rDocShell.GetUndoManager()->AddUndoAction(
			new ScUndoDoOutline( &rDocShell,
									nStart, nEnd, nTab, pUndoDoc,
									bColumns, nLevel, nEntry, FALSE ) );
=====================================================================
Found a 9 line (247 tokens) duplication in the following files: 
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Pchar */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* !"#$%&'()*+,-./*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, /*0123456789:;<=>?*/
=====================================================================
Found a 10 line (247 tokens) duplication in the following files: 
Starting at line 533 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* RegName */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* !"#$%&'()*+,-./*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, /*0123456789:;<=>?*/
=====================================================================
Found a 8 line (247 tokens) duplication in the following files: 
Starting at line 1474 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1550 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff60 - ff6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff70 - ff7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff80 - ff8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff90 - ff9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffc0 - ffcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffd0 - ffdf
=====================================================================
Found a 11 line (247 tokens) duplication in the following files: 
Starting at line 1034 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

     41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0,  0,  0,  0,  0, // 112-127
//    p   q   r   s   t   u   v   w   x   y   z

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 10 line (247 tokens) duplication in the following files: 
Starting at line 597 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 747 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0,// 32f0 - 32ff

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3300 - 330f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3310 - 331f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3320 - 332f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3330 - 333f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3340 - 334f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3350 - 335f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3360 - 336f
    27,27,27,27,27,27,27, 0, 0, 0, 0,27,27,27,27,27,// 3370 - 337f
=====================================================================
Found a 57 line (247 tokens) duplication in the following files: 
Starting at line 655 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 728 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

void SAL_CALL OReadMenuPopupHandler::characters(const rtl::OUString&)
throw(	SAXException, RuntimeException )
{
}


void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName )
	throw( SAXException, RuntimeException )
{
	--m_nElementDepth;
	if ( m_bMenuMode )
	{
		if ( 0 == m_nElementDepth )
		{
			m_xReader->endDocument();
			m_xReader = Reference< XDocumentHandler >();
			m_bMenuMode = sal_False;
			if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENU )))
			{
				OUString aErrorMessage = getErrorLineString();
				aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "closing element menu expected!" ));
				throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
			}
		}
		else
			m_xReader->endElement( aName );
	}
	else
	{
		if ( m_nNextElementExpected == ELEM_CLOSE_MENUITEM )
		{
			if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUITEM )))
			{
				OUString aErrorMessage = getErrorLineString();
				aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "closing element menuitem expected!" ));
				throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
			}
		}
		else if ( m_nNextElementExpected == ELEM_CLOSE_MENUSEPARATOR )
		{
			if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUSEPARATOR )))
			{
				OUString aErrorMessage = getErrorLineString();
				aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "closing element menuseparator expected!" ));
				throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
			}
		}

		m_nNextElementExpected = ELEM_CLOSE_NONE;
	}
}


// --------------------------------- Write XML ---------------------------------


OWriteMenuDocumentHandler::OWriteMenuDocumentHandler( 
=====================================================================
Found a 61 line (247 tokens) duplication in the following files: 
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/accelerators/acceleratorexecute.cxx
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/acceleratorexecute.cxx

AcceleratorExecute::AcceleratorExecute(const AcceleratorExecute&)
    : TMutexInit      (                                                     )
    , m_aAsyncCallback(LINK(this, AcceleratorExecute, impl_ts_asyncCallback))
{
    // copy construction sint supported in real ...
    // but we need this ctor to init our async callback ...
}

//-----------------------------------------------
AcceleratorExecute::~AcceleratorExecute()
{
    // does nothing real
}

//-----------------------------------------------
AcceleratorExecute* AcceleratorExecute::createAcceleratorHelper()
{
    AcceleratorExecute* pNew = new AcceleratorExecute();
    return pNew;
}

//-----------------------------------------------
void AcceleratorExecute::init(const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR,
                              const css::uno::Reference< css::frame::XFrame >&              xEnv )
{
    // SAFE -> ----------------------------------
    ::osl::ResettableMutexGuard aLock(m_aLock);

    // take over the uno service manager
    m_xSMGR = xSMGR;

    // specify our internal dispatch provider
    // frame or desktop?! => document or global config.
    sal_Bool bDesktopIsUsed = sal_False;
             m_xDispatcher  = css::uno::Reference< css::frame::XDispatchProvider >(xEnv, css::uno::UNO_QUERY);
    if (!m_xDispatcher.is())
    {
        aLock.clear();
        // <- SAFE ------------------------------

        css::uno::Reference< css::frame::XDispatchProvider > xDispatcher(
                            xSMGR->createInstance(::rtl::OUString::createFromAscii("com.sun.star.frame.Desktop")),
                            css::uno::UNO_QUERY_THROW);

        // SAFE -> ------------------------------
        aLock.reset();

        m_xDispatcher  = xDispatcher;
        bDesktopIsUsed = sal_True;
    }

    aLock.clear();
    // <- SAFE ----------------------------------

    // open all needed configuration objects
    css::uno::Reference< css::ui::XAcceleratorConfiguration > xGlobalCfg;
    css::uno::Reference< css::ui::XAcceleratorConfiguration > xModuleCfg;
    css::uno::Reference< css::ui::XAcceleratorConfiguration > xDocCfg   ;

    // global cfg
    xGlobalCfg = AcceleratorExecute::st_openGlobalConfig(xSMGR);
=====================================================================
Found a 9 line (247 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1034 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0500 - 050f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0510 - 051f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0520 - 052f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0530 - 053f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0540 - 054f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 66 line (247 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

							   aTitle );
		Control->statusChanged(aStateEvent);
		
		
		{
			osl::MutexGuard aGuard(m_aMutex);
			if(!m_pStatCL)
				m_pStatCL = 
					new StatusChangeListenerContainer(m_aMutex);
		}
		
		m_pStatCL->addInterface(URL.Complete,Control);
		return;
	}

	if(URL.Complete == m_aInterceptedURL[5]) 
	{   // SaveAs
		frame::FeatureStateEvent aStateEvent;
		aStateEvent.FeatureURL.Complete = m_aInterceptedURL[5];
		aStateEvent.FeatureDescriptor = rtl::OUString(
			RTL_CONSTASCII_USTRINGPARAM("SaveCopyTo"));
		aStateEvent.IsEnabled = sal_True;
		aStateEvent.Requery = sal_False;
		aStateEvent.State <<= (rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("($3)")));
		Control->statusChanged(aStateEvent);
		
		{
			osl::MutexGuard aGuard(m_aMutex);
			if(!m_pStatCL)
				m_pStatCL = 
					new StatusChangeListenerContainer(m_aMutex);
		}
		
		m_pStatCL->addInterface(URL.Complete,Control);
		return;
	}

}


void SAL_CALL
Interceptor::removeStatusListener(
	const uno::Reference< 
	frame::XStatusListener >& Control, 
	const util::URL& URL ) 
	throw (
		uno::RuntimeException
	)
{
	if(!(Control.is() && m_pStatCL))
		return;
	else {
		m_pStatCL->removeInterface(URL.Complete,Control);
		return;
	}
}


//XInterceptorInfo
uno::Sequence< ::rtl::OUString > 
SAL_CALL 
Interceptor::getInterceptedURLs(  )
	throw (
		uno::RuntimeException
	)
{
=====================================================================
Found a 27 line (246 tokens) duplication in the following files: 
Starting at line 780 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx
Starting at line 824 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx

    : InsertObjectDialog_Impl( pParent, SVX_RES( MD_INSERT_OBJECT_IFRAME ), uno::Reference < embed::XStorage >() )
	, aFTName ( this, SVX_RES( FT_FRAMENAME ) )
	, aEDName ( this, SVX_RES( ED_FRAMENAME ) )
	, aFTURL ( this, SVX_RES( FT_URL ) )
	, aEDURL ( this, SVX_RES( ED_URL ) )
	, aBTOpen ( this, SVX_RES(BT_FILEOPEN ) )
	, aRBScrollingOn ( this, SVX_RES( RB_SCROLLINGON ) )
	, aRBScrollingOff ( this, SVX_RES( RB_SCROLLINGOFF ) )
	, aRBScrollingAuto ( this, SVX_RES( RB_SCROLLINGAUTO ) )
    , aFLScrolling ( this, SVX_RES( GB_SCROLLING ) )
    , aFLSepLeft( this, SVX_RES( FL_SEP_LEFT ) )
	, aRBFrameBorderOn ( this, SVX_RES( RB_FRMBORDER_ON ) )
	, aRBFrameBorderOff ( this, SVX_RES( RB_FRMBORDER_OFF ) )
    , aFLFrameBorder( this, SVX_RES( GB_BORDER ) )
    , aFLSepRight( this, SVX_RES( FL_SEP_RIGHT ) )
	, aFTMarginWidth ( this, SVX_RES( FT_MARGINWIDTH ) )
	, aNMMarginWidth ( this, SVX_RES( NM_MARGINWIDTH ) )
	, aCBMarginWidthDefault( this, SVX_RES( CB_MARGINHEIGHTDEFAULT ) )
	, aFTMarginHeight ( this, SVX_RES( FT_MARGINHEIGHT ) )
	, aNMMarginHeight ( this, SVX_RES( NM_MARGINHEIGHT ) )
	, aCBMarginHeightDefault( this, SVX_RES( CB_MARGINHEIGHTDEFAULT ) )
    , aFLMargin( this, SVX_RES( GB_MARGIN ) )
    , aOKButton1( this, SVX_RES( 1 ) )
    , aCancelButton1( this, SVX_RES( 1 ) )
    , aHelpButton1( this, SVX_RES( 1 ) )
{
	FreeResource();
=====================================================================
Found a 61 line (246 tokens) duplication in the following files: 
Starting at line 321 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/cpp/remoteclient/remoteclient.cxx

using namespace remotebridges_officeclient;
#define IMPLEMENTATION_NAME "com.sun.star.comp.product.example.RemoteClientSample"


extern "C"
{
//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	if (pRegistryKey)
	{
		try
		{
			Reference< XRegistryKey > xNewKey(
				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
					OUString::createFromAscii( "/" IMPLEMENTATION_NAME "/UNO/SERVICES" ) ) );
			
			const Sequence< OUString > & rSNL = getSupportedServiceNames();
			const OUString * pArray = rSNL.getConstArray();
			for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
				xNewKey->createKey( pArray[nPos] );
			
			return sal_True;
		}
		catch (InvalidRegistryException &)
		{
			OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
		}
	}
	return sal_False;
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
	void * pRet = 0;
	
	if (pServiceManager && rtl_str_compare( pImplName, IMPLEMENTATION_NAME ) == 0)
	{
		Reference< XSingleServiceFactory > xFactory( createSingleFactory(
			reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
			OUString::createFromAscii( pImplName ),
			CreateInstance, getSupportedServiceNames() ) );
		
		if (xFactory.is())
		{
			xFactory->acquire();
			pRet = xFactory.get();
		}
	}
	
	return pRet;
}
}
=====================================================================
Found a 50 line (246 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/unix.c
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_unix.c

							Dflag++;
							break;

						case 'w':
							dp = &optarg[n + 1];
							n += strlen(dp);
							while (isspace(*dp)) dp++;

							for (i = NINCLUDE - 1; i >= 0; i--)
							{
								if (wraplist[i].file == NULL)
								{
									wraplist[i].file = dp;
									break;
								}
							}
							if (i < 0)
								error(WARNING, "Too many -Xw directives");
							break;

						default:								
							error(WARNING, "Unknown extension option %c", c);
					}
				break;

            case '+':
                Cplusplus++;
                break;

            case 'u':                   /* -undef fuer GCC (dummy) */
            case 'l':                   /* -lang-c++ fuer GCC (dummy) */
                break;

            default:
                break;
        }
    dp = ".";
    fp = "<stdin>";
    fd = 0;
    if (optind < argc)
    {
        if ((fp = strrchr(argv[optind], '/')) != NULL)
        {
            int len = fp - argv[optind];

            dp = (char *) newstring((uchar *) argv[optind], len + 1, 0);
            dp[len] = '\0';
        }
        fp = (char *) newstring((uchar *) argv[optind], strlen(argv[optind]), 0);
        if ((fd = open(fp, O_RDONLY)) <= 0)
=====================================================================
Found a 71 line (246 tokens) duplication in the following files: 
Starting at line 547 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/lex.c
Starting at line 517 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_lex.c

                        s->lineinc = 0;;
                        tp->type = COMMENT;
						tp->flag |= XTWS;
					}
            }
            break;
        }
        ip += runelen;
        runelen = 1;
        tp->len = ip - tp->t;
        tp++;
    }
}

/* have seen ?; handle the trigraph it starts (if any) else 0 */
int
    trigraph(Source * s)
{
    uchar c;

    while (s->inp + 2 >= s->inl && fillbuf(s) != EOF);
	;
    if (s->inp[1] != '?')
        return 0;
    c = 0;
    switch (s->inp[2])
    {
        case '=':
            c = '#';
            break;
        case '(':
            c = '[';
            break;
        case '/':
            c = '\\';
            break;
        case ')':
            c = ']';
            break;
        case '\'':
            c = '^';
            break;
        case '<':
            c = '{';
            break;
        case '!':
            c = '|';
            break;
        case '>':
            c = '}';
            break;
        case '-':
            c = '~';
            break;
    }
    if (c)
    {
        *s->inp = c;
        memmove(s->inp + 1, s->inp + 3, s->inl - s->inp + 2);
        s->inl -= 2;
    }
    return c;
}

int
    foldline(Source * s)
{
    int n = 1;

	/* skip pending wihite spaces */
	while ((s->inp[n] == ' ') || (s->inp[n] == '\t'))
=====================================================================
Found a 8 line (246 tokens) duplication in the following files: 
Starting at line 1017 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
=====================================================================
Found a 33 line (246 tokens) duplication in the following files: 
Starting at line 439 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 889 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

      Ainv[i][j] = ( i != j ? 0 : 1 );
  }

  for (j = 0; j < n; j++)
  {
    for (i = 0; i < j; i++)
      v[i] = A[j][i]*A[i][i];

    v[j] = A[j][j];
    for (i = 0; i < j; i++)
      v[j] -= A[j][i]*v[i];

    A[j][j] = v[j];
    for (i = j+1; i < n; i++)
    {
      for (k = 0; k < j; k++)
	A[i][j] -= A[i][k]*v[k];
      A[i][j] /= v[j];
    }
  }
  delete[] v;

  for (int col = 0; col < n; col++)
  {
    // forward substitution
    for (i = 0; i < n; i++)
    {
      for (j = 0; j < i; j++)
	Ainv[i][col] -= A[i][j]*Ainv[j][col];
    }

    // diagonal division
    const double tolerance = 1e-06;
=====================================================================
Found a 67 line (246 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LServices.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NServices.cxx

		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
			OEvoabDriver::getImplementationName_Static(),
			OEvoabDriver::getSupportedServiceNames_Static(), xKey);

		return sal_True;
	}
	catch (::com::sun::star::registry::InvalidRegistryException& )
	{
		OSL_ENSURE(sal_False, "FILE::component_writeInfo : could not create a registry key ! ## InvalidRegistryException !");
	}

	return sal_False;
}

//---------------------------------------------------------------------------------------
extern "C" void* SAL_CALL component_getFactory(
					const sal_Char* pImplementationName,
					void* pServiceManager,
					void* /*pRegistryKey*/)
{
	void* pRet = 0;
	if (pServiceManager)
	{
		ProviderRequest aReq(pServiceManager,pImplementationName);

		aReq.CREATE_PROVIDER(
			OEvoabDriver::getImplementationName_Static(),
			OEvoabDriver::getSupportedServiceNames_Static(),
			OEvoabDriver_CreateInstance, ::cppu::createSingleFactory)
		;

		if(aReq.xRet.is())
			aReq.xRet->acquire();

		pRet = aReq.getProvider();
	}

	return pRet;
};
=====================================================================
Found a 44 line (246 tokens) duplication in the following files: 
Starting at line 629 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
Starting at line 637 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

    * p++ = 0x4e800420;

    return (code + codeSnippetSize);

}


}


#define MIN_LINE_SIZE 32

void bridges::cpp_uno::shared::VtableFactory::flushCode(unsigned char const * bptr, unsigned char const * eptr)
{
  unsigned char * eaddr = (unsigned char *) eptr + MIN_LINE_SIZE + 1;
  for (  unsigned char * addr  = (unsigned char *) bptr; addr < eaddr; addr += MIN_LINE_SIZE) {
      __asm__ volatile ( "dcbf 0,%0;" "icbi 0,%0;" : : "r"(addr) : "memory");
  }
  __asm__ volatile ( "sync;" "isync;" : : : "memory");
}


void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /* functionCount */, sal_Int32 vtableOffset)
=====================================================================
Found a 46 line (245 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokTestService.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx

			ooxml::OOXMLDocument::Pointer_t pDocument(ooxml::OOXMLDocumentFactory::createDocument(pDocStream));

#if 0
		TimeValue t1; osl_getSystemTime(&t1);
#endif

		doctok::Stream::Pointer_t pStream = doctok::createStreamHandler();
		pDocument->resolve(*pStream);

#if 0
		TimeValue t2; osl_getSystemTime(&t2);
		printf("time=%is\n", t2.Seconds-t1.Seconds);
#endif

        ::ucbhelper::ContentBroker::deinitialize();
	}
	else
	{
		fprintf(stderr, "can't initialize UCB");
	}
	return 0;
}

::rtl::OUString ScannerTestService_getImplementationName ()
{
	return rtl::OUString::createFromAscii ( ScannerTestService::IMPLEMENTATION_NAME );
}

sal_Bool SAL_CALL ScannerTestService_supportsService( const ::rtl::OUString& ServiceName )
{
	return ServiceName.equals( rtl::OUString::createFromAscii( ScannerTestService::SERVICE_NAME ) );
}
uno::Sequence< rtl::OUString > SAL_CALL ScannerTestService_getSupportedServiceNames(  ) throw (uno::RuntimeException)
{
	uno::Sequence < rtl::OUString > aRet(1);
	rtl::OUString* pArray = aRet.getArray();
	pArray[0] =  rtl::OUString::createFromAscii ( ScannerTestService::SERVICE_NAME );
	return aRet;
}

uno::Reference< uno::XInterface > SAL_CALL ScannerTestService_createInstance( const uno::Reference< uno::XComponentContext > & xContext) throw( uno::Exception )
{
	return (cppu::OWeakObject*) new ScannerTestService( xContext );
}

} } /* end namespace writerfilter::ooxml */
=====================================================================
Found a 33 line (245 tokens) duplication in the following files: 
Starting at line 853 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 895 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readFormattedFieldModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readBorderProps( this, aStyle ))
        aStyle._set |= 0x4;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }
    
    // collect elements
    readDefaults();
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
    readBoolAttr( OUSTR("HideInactiveSelection"),
                  OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) );
    readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":text") ) );
=====================================================================
Found a 9 line (245 tokens) duplication in the following files: 
Starting at line 534 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Pchar */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* !"#$%&'()*+,-./*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, /*0123456789:;<=>?*/
=====================================================================
Found a 71 line (245 tokens) duplication in the following files: 
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_String_Const.h
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_String_Const.h

static const sal_Int32 uTestStr1Len  = 16;
static const sal_Int32 uTestStr2Len  = 32;
static const sal_Int32 uTestStr3Len  = 16;
static const sal_Int32 uTestStr4Len  = 16;
static const sal_Int32 uTestStr5Len  = 16;
static const sal_Int32 uTestStr9Len  = 32;
static const sal_Int32 uTestStr22Len = 32;
 


//------------------------------------------------------------------------
//------------------------------------------------------------------------
const sal_Unicode uTestStr31[]= {0x400,0x410,0x4DF};
const sal_Unicode uTestStr32[]= {0x9F9F,0xA000,0x8F80,0x9AD9};



//------------------------------------------------------------------------
//------------------------------------------------------------------------

static const sal_Int32 uTestStr31Len  = 3;
static const sal_Int32 uTestStr32Len  = 4;

//------------------------------------------------------------------------
//------------------------------------------------------------------------

static const sal_Int16 kRadixBinary     = 2;
static const sal_Int16 kRadixOctol      = 8;
static const sal_Int16 kRadixDecimal    = 10;
static const sal_Int16 kRadixHexdecimal = 16;
static const sal_Int16 kRadixBase36     = 36;

//------------------------------------------------------------------------
//------------------------------------------------------------------------

static const sal_Int8  kSInt8Max  = SCHAR_MAX;
static const sal_Int16 kUInt8Max  = UCHAR_MAX;
static const sal_Int16 kSInt16Max = SHRT_MAX;
static const sal_Int32 kUInt16Max = USHRT_MAX;
static const sal_Int32 kSInt32Max = INT_MAX;
static const sal_Int64 kUInt32Max = UINT_MAX;
#ifdef UNX
static const sal_Int64 kSInt64Max = 9223372036854775807LL;
#else
static const sal_Int64 kSInt64Max = 9223372036854775807;
#endif
//------------------------------------------------------------------------

static const sal_Int32 kInt32MaxNumsCount = 5;

static const sal_Int32 kInt32MaxNums[kInt32MaxNumsCount] =
                        {
                            kSInt8Max,  kUInt8Max,
                            kSInt16Max, kUInt16Max,
                            kSInt32Max
                        };

static const sal_Int32 kInt64MaxNumsCount = 7;

static const sal_Int64 kInt64MaxNums[kInt64MaxNumsCount] =
                        {
                            kSInt8Max,  kUInt8Max,
                            kSInt16Max, kUInt16Max,
                            kSInt32Max, kUInt32Max,
                            kSInt64Max
                        };

//------------------------------------------------------------------------
//------------------------------------------------------------------------

static const sal_Char *kSInt8MaxBinaryStr  = "1111111";
=====================================================================
Found a 8 line (245 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1550 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff60 - ff6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff70 - ff7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff80 - ff8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff90 - ff9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffc0 - ffcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffd0 - ffdf
=====================================================================
Found a 33 line (245 tokens) duplication in the following files: 
Starting at line 2730 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/X11_selection.cxx
Starting at line 3874 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/X11_selection.cxx

        if( it != m_aDropTargets.end() )
        {
            DropTargetEvent dte;
            dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget );
            aGuard.clear();
            it->second.m_pTarget->dragExit( dte );
        }
        else if( m_aDropProxy != None && m_nCurrentProtocolVersion >= 0 )
        {
            // send XdndLeave
            XEvent aEvent;
            aEvent.type = ClientMessage;
            aEvent.xclient.display		= m_pDisplay;
            aEvent.xclient.format		= 32;
            aEvent.xclient.message_type	= m_nXdndLeave;
            aEvent.xclient.window		= m_aDropWindow;
            aEvent.xclient.data.l[0]	= m_aWindow;
            memset( aEvent.xclient.data.l+1, 0, sizeof(long)*4);
            m_aDropWindow = m_aDropProxy = None;
            XSendEvent( m_pDisplay, m_aDropProxy, False, NoEventMask, &aEvent );
        }
        // notify the listener
        DragSourceDropEvent dsde;
        dsde.Source				= static_cast< OWeakObject* >(this);
        dsde.DragSourceContext	= new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
        dsde.DragSource			= static_cast< XDragSource* >(this);
        dsde.DropAction			= DNDConstants::ACTION_NONE;
        dsde.DropSuccess		= sal_False;
        Reference< XDragSourceListener > xListener( m_xDragSourceListener );
        m_xDragSourceListener.clear();
        aGuard.clear();
        xListener->dragDropEnd( dsde );
    }
=====================================================================
Found a 52 line (245 tokens) duplication in the following files: 
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunooptions.cxx

					if (av[i][2] != '\0')
					{
						OString tmp("'-G', please check");
						if (i <= ac - 1)
						{
							tmp += " your input '" + OString(av[i]) + "'";
						}

						throw IllegalArgument(tmp);
					}
					
					m_options["-G"] = OString("");
					break;
				default:
					throw IllegalArgument("the option is unknown" + OString(av[i]));
					break;					
			}
		} else
		{
			if (av[i][0] == '@')
			{
				FILE* cmdFile = fopen(av[i]+1, "r");
		  		if( cmdFile == NULL )
      			{
					fprintf(stderr, "%s", prepareHelp().getStr());
					ret = sal_False;
				} else
				{
					int rargc=0;
					char* rargv[512];
					char  buffer[512];

					while ( fscanf(cmdFile, "%s", buffer) != EOF )
					{
						rargv[rargc]= strdup(buffer);
						rargc++;
					}
					fclose(cmdFile);
					
					ret = initOptions(rargc, rargv, bCmdFile);
					
					for (long i=0; i < rargc; i++) 
					{
						free(rargv[i]);
					}
				}		
			} else
			{
				m_inputFiles.push_back(av[i]);
			}		
		}
	}
=====================================================================
Found a 72 line (244 tokens) duplication in the following files: 
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx

					m_pImpl->m_xUrlTransformer->parseStrict( aTargetURL );
                
                Reference< XDispatch > xDispatch( pIter->second );
                if ( xDispatch.is() )
                {
                    // We already have a dispatch object => we have to requery.
                    // Release old dispatch object and remove it as listener
                    try
                    {
                        xDispatch->removeStatusListener( xStatusListener, aTargetURL );
                    }
                    catch ( Exception& )
                    {
                    }
                }
                
                pIter->second.clear();
                xDispatch.clear();
                
                // Query for dispatch object. Old dispatch will be released with this, too.
                try
                {
                    xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );
                }
                catch ( Exception& )
                {
                }
                pIter->second = xDispatch;
                
                Listener aListener( aTargetURL, xDispatch );
                aDispatchVector.push_back( aListener );
                ++pIter;
            }
        }
    }
    
    // Call without locked mutex as we are called back from dispatch implementation
    if ( xStatusListener.is() )
    {
        try
        {
            for ( sal_uInt32 i = 0; i < aDispatchVector.size(); i++ )
            {
                Listener& rListener = aDispatchVector[i];
                if ( rListener.xDispatch.is() )
                    rListener.xDispatch->addStatusListener( xStatusListener, rListener.aURL );
                else if ( rListener.aURL.Complete == m_aCommandURL )
                {
                    try
                    {
                        // Send status changed for the main URL, if we cannot get a valid dispatch object.
                        // UI disables the button. Catch exception as we release our mutex, it is possible
                        // that someone else already disposed this instance!
                        FeatureStateEvent aFeatureStateEvent;
                        aFeatureStateEvent.IsEnabled = sal_False;
                        aFeatureStateEvent.FeatureURL = rListener.aURL;
                        aFeatureStateEvent.State = Any();
                        xStatusListener->statusChanged( aFeatureStateEvent );
                    }
                    catch ( Exception& )
                    {
                    }
                }
            }
        }
        catch ( Exception& )
        {
        }
    }
}

void ToolboxController::unbindListener()
=====================================================================
Found a 30 line (244 tokens) duplication in the following files: 
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx
Starting at line 517 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

    else if( rGradient.GetStyle() == GRADIENT_SQUARE )
    {
		if ( aSize.Width() > aSize.Height() )
			aSize.Height() = aSize.Width();
		else
			aSize.Width() = aSize.Height();
    }

	// neue Mittelpunkte berechnen
	long	nZWidth = aRect.GetWidth()	* (long) rGradient.GetOfsX() / 100;
	long	nZHeight = aRect.GetHeight() * (long) rGradient.GetOfsY() / 100;
	long	nBorderX = (long) rGradient.GetBorder() * aSize.Width()  / 100;
	long	nBorderY = (long) rGradient.GetBorder() * aSize.Height() / 100;
	Point	aCenter( aRect.Left() + nZWidth, aRect.Top() + nZHeight );

	// Rand beruecksichtigen
	aSize.Width() -= nBorderX;
	aSize.Height() -= nBorderY;

	// Ausgaberechteck neu setzen
	aRect.Left() = aCenter.X() - ( aSize.Width() >> 1 );
	aRect.Top() = aCenter.Y() - ( aSize.Height() >> 1 );
    
    aRect.SetSize( aSize );
	long nMinRect = Min( aRect.GetWidth(), aRect.GetHeight() );

	// Anzahl der Schritte berechnen, falls nichts uebergeben wurde
    if( !nStepCount )
	{
		long nInc;
=====================================================================
Found a 41 line (244 tokens) duplication in the following files: 
Starting at line 1043 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uiconfigurationmanager.cxx

Sequence< Sequence< PropertyValue > > SAL_CALL UIConfigurationManager::getUIElementsInfo( sal_Int16 ElementType )
throw ( IllegalArgumentException, RuntimeException )
{
    if (( ElementType < 0 ) || ( ElementType >= ::com::sun::star::ui::UIElementType::COUNT ))
        throw IllegalArgumentException();

    ResetableGuard aGuard( m_aLock );
    if ( m_bDisposed )
        throw DisposedException();

    Sequence< Sequence< PropertyValue > > aElementInfoSeq;
    UIElementInfoHashMap aUIElementInfoCollection;

    if ( ElementType == ::com::sun::star::ui::UIElementType::UNKNOWN )
    {
        for ( sal_Int16 i = 0; i < ::com::sun::star::ui::UIElementType::COUNT; i++ )
            impl_fillSequenceWithElementTypeInfo( aUIElementInfoCollection, sal_Int16( i ) );
    }
    else
        impl_fillSequenceWithElementTypeInfo( aUIElementInfoCollection, ElementType );

    Sequence< PropertyValue > aUIElementInfo( 2 );
    aUIElementInfo[0].Name = m_aPropResourceURL;
    aUIElementInfo[1].Name = m_aPropUIName;

    aElementInfoSeq.realloc( aUIElementInfoCollection.size() );
    UIElementInfoHashMap::const_iterator pIter = aUIElementInfoCollection.begin();

    sal_Int32 n = 0;
    while ( pIter != aUIElementInfoCollection.end() )
    {
        aUIElementInfo[0].Value <<= pIter->second.aResourceURL;
        aUIElementInfo[1].Value <<= pIter->second.aUIName;
        aElementInfoSeq[n++] = aUIElementInfo;
        ++pIter;
    }

    return aElementInfoSeq;
}

Reference< XIndexContainer > SAL_CALL UIConfigurationManager::createSettings() throw (::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 52 line (244 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/networkdomain.cxx
Starting at line 36 of /local/ooo-build/ooo-build/src/oog680-m3/sal/systools/win32/uwinapi/GetUserDomain_WINDOWS.cpp

{
	HKEY	hkeyLogon;
	HKEY	hkeyWorkgroup;
	DWORD	dwResult = 0;


	if ( ERROR_SUCCESS  == RegOpenKeyEx( 
		HKEY_LOCAL_MACHINE, 
		TEXT("Network\\Logon"), 
		0, KEY_READ, &hkeyLogon ) ) 
	{
		DWORD	dwLogon = 0;
		DWORD	dwLogonSize = sizeof(dwLogon);
		RegQueryValueEx( hkeyLogon, TEXT("LMLogon"), 0, NULL, (LPBYTE)&dwLogon, &dwLogonSize );
		RegCloseKey( hkeyLogon );

		if ( dwLogon )
		{
			HKEY	hkeyNetworkProvider;

			if ( ERROR_SUCCESS  == RegOpenKeyEx( 
				HKEY_LOCAL_MACHINE, 
				TEXT("SYSTEM\\CurrentControlSet\\Services\\MSNP32\\NetworkProvider"), 
				0, KEY_READ, &hkeyNetworkProvider ) )
			{
				DWORD	dwBufferSize = nSize;
				LONG	lResult = RegQueryValueEx( hkeyNetworkProvider, TEXT("AuthenticatingAgent"), 0, NULL, (LPBYTE)lpBuffer, &dwBufferSize );

				if ( ERROR_SUCCESS == lResult || ERROR_MORE_DATA == lResult )
					dwResult = dwBufferSize / sizeof(TCHAR);

				RegCloseKey( hkeyNetworkProvider );
			}
		}
	}
	else if ( ERROR_SUCCESS == RegOpenKeyEx(
		HKEY_LOCAL_MACHINE,
		TEXT("SYSTEM\\CurrentControlSet\\Services\\VxD\\VNETSUP"),
		0, KEY_READ, &hkeyWorkgroup ) )
	{
		DWORD	dwBufferSize = nSize;
		LONG	lResult = RegQueryValueEx( hkeyWorkgroup, TEXT("Workgroup"), 0, NULL, (LPBYTE)lpBuffer, &dwBufferSize );

		if ( ERROR_SUCCESS == lResult || ERROR_MORE_DATA == lResult )
			dwResult = dwBufferSize / sizeof(TCHAR);

		RegCloseKey( hkeyWorkgroup );
	}


	return dwResult;
}
=====================================================================
Found a 72 line (244 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.h
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.h

	HWND					mOffWin;
public:
	CSOActiveX();
	~CSOActiveX();

DECLARE_REGISTRY_RESOURCEID(IDR_SOACTIVEX)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CSOActiveX)
	COM_INTERFACE_ENTRY(ISOActiveX)
	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY(IViewObjectEx)
	COM_INTERFACE_ENTRY(IViewObject2)
	COM_INTERFACE_ENTRY(IViewObject)
	COM_INTERFACE_ENTRY(IOleInPlaceObjectWindowless)
	COM_INTERFACE_ENTRY(IOleInPlaceObject)
	COM_INTERFACE_ENTRY2(IOleWindow, IOleInPlaceObjectWindowless)
	COM_INTERFACE_ENTRY(IOleInPlaceActiveObject)
	COM_INTERFACE_ENTRY(IOleControl)
	COM_INTERFACE_ENTRY(IOleObject)
	COM_INTERFACE_ENTRY(IPersistStreamInit)
	COM_INTERFACE_ENTRY2(IPersist, IPersistStreamInit)
//	COM_INTERFACE_ENTRY(IConnectionPointContainer)
	COM_INTERFACE_ENTRY(IProvideClassInfo)
	COM_INTERFACE_ENTRY(IProvideClassInfo2)
	COM_INTERFACE_ENTRY(IPersistPropertyBag)
	COM_INTERFACE_ENTRY(IObjectSafety)
END_COM_MAP()

BEGIN_PROP_MAP(CSOActiveX)
	PROP_DATA_ENTRY("_cx", m_sizeExtent.cx, VT_UI4)
	PROP_DATA_ENTRY("_cy", m_sizeExtent.cy, VT_UI4)
	// Example entries
	// PROP_ENTRY("Property Description", dispid, clsid)
	// PROP_PAGE(CLSID_StockColorPage)
END_PROP_MAP()

BEGIN_CONNECTION_POINT_MAP(CSOActiveX)
END_CONNECTION_POINT_MAP()

BEGIN_MSG_MAP(CSOActiveX)
	CHAIN_MSG_MAP(CComControl<CSOActiveX>)
	DEFAULT_REFLECTION_HANDLER()
END_MSG_MAP()
// Handler prototypes:
//  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
//  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
//  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);



// IViewObjectEx
	DECLARE_VIEW_STATUS(VIEWSTATUS_SOLIDBKGND | VIEWSTATUS_OPAQUE)

// ISOActiveX
public:
    
	STDMETHOD(SetClientSite)( IOleClientSite* aClientSite );
	STDMETHOD(Invoke)(  DISPID dispidMember, 
						REFIID riid, 
						LCID lcid, 
                        WORD wFlags, 
						DISPPARAMS* pDispParams,
                        VARIANT* pvarResult, 
						EXCEPINFO* pExcepInfo,
                        UINT* puArgErr);
	STDMETHOD(Load) ( LPPROPERTYBAG pPropBag, LPERRORLOG pErrorLog );
	STDMETHOD(Load) ( LPSTREAM pStm );
    STDMETHOD(InitNew) ();
	HRESULT OnDrawAdvanced(ATL_DRAWINFO& di);
	HRESULT OnDraw(ATL_DRAWINFO& di) { return S_OK; }
=====================================================================
Found a 41 line (244 tokens) duplication in the following files: 
Starting at line 423 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FStatement.cxx
Starting at line 569 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MStatement.cxx

	const OSQLParseNode* pOrderbyClause = m_pSQLIterator->getOrderTree();
	if(pOrderbyClause)
	{
		OSQLParseNode * pOrderingSpecCommalist = pOrderbyClause->getChild(2);
		OSL_ENSURE(SQL_ISRULE(pOrderingSpecCommalist,ordering_spec_commalist),"OResultSet: Fehler im Parse Tree");

		for (sal_uInt32 m = 0; m < pOrderingSpecCommalist->count(); m++)
		{
			OSQLParseNode * pOrderingSpec = pOrderingSpecCommalist->getChild(m);
			OSL_ENSURE(SQL_ISRULE(pOrderingSpec,ordering_spec),"OResultSet: Fehler im Parse Tree");
			OSL_ENSURE(pOrderingSpec->count() == 2,"OResultSet: Fehler im Parse Tree");

			OSQLParseNode * pColumnRef = pOrderingSpec->getChild(0);
			if(!SQL_ISRULE(pColumnRef,column_ref))
			{
				throw SQLException();
			}
			OSQLParseNode * pAscendingDescending = pOrderingSpec->getChild(1);
			setOrderbyColumn(pColumnRef,pAscendingDescending);
		}
	}
}
//------------------------------------------------------------------
void OStatement_Base::setOrderbyColumn(	OSQLParseNode* pColumnRef,
										OSQLParseNode* pAscendingDescending)
{
	::rtl::OUString aColumnName;
	if (pColumnRef->count() == 1)
		aColumnName = pColumnRef->getChild(0)->getTokenValue();
	else if (pColumnRef->count() == 3)
	{
        pColumnRef->getChild(2)->parseNodeToStr( aColumnName, getOwnConnection(), NULL, sal_False, sal_False );
	}
	else
	{
		throw SQLException();
	}

	Reference<XColumnLocate> xColLocate(m_xColNames,UNO_QUERY);
	if(!xColLocate.is())
		return;
=====================================================================
Found a 46 line (244 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

			pUnoReturn = pRegisterReturn; // direct way for simple types
		}
		else // complex return via ptr (pCppReturn)
		{
			pCppReturn = *(void **)pCppStack;
			pCppStack += sizeof(void *);
			
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
                              pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
			pUnoArgs[nPos] = pCppStack;
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 39 line (243 tokens) duplication in the following files: 
Starting at line 1017 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,    0xE082,         0,         0,
    // F080
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F090
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
=====================================================================
Found a 56 line (243 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idloptions.cxx

sal_Bool IdlOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) 
	throw( IllegalArgument )
{
	sal_Bool 	ret = sal_True;
	sal_uInt16	i=0;

	if (!bCmdFile)
	{
		bCmdFile = sal_True;
		
		m_program = av[0];

		if (ac < 2)
		{
			fprintf(stderr, "%s", prepareHelp().getStr());
			ret = sal_False;
		}

		i = 1;
	} else
	{
		i = 0;
	}

	char	*s=NULL;
	for (i; i < ac; i++)
	{
		if (av[i][0] == '-')
		{
			switch (av[i][1])
			{
				case 'O':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'B':
=====================================================================
Found a 40 line (243 tokens) duplication in the following files: 
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx

        reinterpret_cast< unsigned char * >(p) - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 1;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 3) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block) + 2;
    slots[-3] = 0; // RTTI
    slots[-2] = 0; // null
    slots[-1] = 0; // destructor
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
=====================================================================
Found a 58 line (242 tokens) duplication in the following files: 
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_scanline.h
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_scanline.h

        renderer_scanline_aa_opaque(base_ren_type& ren, SpanGenerator& span_gen) :
            m_ren(&ren),
            m_span_gen(&span_gen)
        {
        }
        
        //--------------------------------------------------------------------
        void prepare(unsigned max_span_len) 
        { 
            m_span_gen->prepare(max_span_len); 
        }

        //--------------------------------------------------------------------
        template<class Scanline> void render(const Scanline& sl)
        {
            int y = sl.y();
            m_ren->first_clip_box();
            do
            {
                int xmin = m_ren->xmin();
                int xmax = m_ren->xmax();

                if(y >= m_ren->ymin() && y <= m_ren->ymax())
                {
                    unsigned num_spans = sl.num_spans();
                    typename Scanline::const_iterator span = sl.begin();
                    do
                    {
                        int x = span->x;
                        int len = span->len;
                        bool solid = false;
                        const typename Scanline::cover_type* covers = span->covers;

                        if(len < 0)
                        {
                            solid = true;
                            len = -len;
                        }

                        if(x < xmin)
                        {
                            len -= xmin - x;
                            if(!solid) 
                            {
                                covers += xmin - x;
                            }
                            x = xmin;
                        }

                        if(len > 0)
                        {
                            if(x + len > xmax)
                            {
                                len = xmax - x + 1;
                            }
                            if(len > 0)
                            {
                                m_ren->blend_opaque_color_hspan_no_clip(
=====================================================================
Found a 45 line (242 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FResultSetMetaData.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MResultSetMetaData.cxx

    return sColumnName;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL OResultSetMetaData::getTableName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
	return m_aTableName;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL OResultSetMetaData::getCatalogName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
	return ::rtl::OUString();
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL OResultSetMetaData::getColumnTypeName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
	checkColumnIndex(column);
	return getString((*m_xColumns)[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME)));
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL OResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
{
	return getColumnName(column);
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL OResultSetMetaData::getColumnServiceName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
	return ::rtl::OUString();
}
// -------------------------------------------------------------------------

sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
{
	checkColumnIndex(column);
	return getBOOL((*m_xColumns)[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISCURRENCY)));
}
// -------------------------------------------------------------------------

sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
	return sal_False;
=====================================================================
Found a 56 line (242 tokens) duplication in the following files: 
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

sal_Bool RdbOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) 
	throw( IllegalArgument )
{
	sal_Bool 	ret = sal_True;
	sal_uInt16	i=0;

	if (!bCmdFile)
	{
		bCmdFile = sal_True;
		
		m_program = av[0];

		if (ac < 2)
		{
			fprintf(stderr, "%s", prepareHelp().getStr());
			ret = sal_False;
		}

		i = 1;
	} else
	{
		i = 0;
	}

	char	*s=NULL;
	for (; i < ac; i++)
	{
		if (av[i][0] == '-')
		{
			switch (av[i][1])
			{
				case 'O':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'X':
=====================================================================
Found a 44 line (242 tokens) duplication in the following files: 
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/XMLRangeHelper.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/XMLRangeHelper.cxx

    /*::chart::*/XMLRangeHelper::Cell & rOutCell )
{
    // expect "\$?[a-zA-Z]+\$?[1-9][0-9]*"
    static const sal_Unicode aDollar( '$' );
    static const sal_Unicode aLetterA( 'A' );

    ::rtl::OUString aCellStr = rXMLString.copy( nStartPos, nEndPos - nStartPos + 1 ).toAsciiUpperCase();
    const sal_Unicode* pStrArray = aCellStr.getStr();
    sal_Int32 nLength = aCellStr.getLength();
    sal_Int32 i = nLength - 1, nColumn = 0;

    // parse number for row
    while( CharClass::isAsciiDigit( pStrArray[ i ] ) && i >= 0 )
        i--;
    rOutCell.nRow = (aCellStr.copy( i + 1 )).toInt32() - 1;
    // a dollar in XML means absolute (whereas in UI it means relative)
    if( pStrArray[ i ] == aDollar )
    {
        i--;
        rOutCell.bRelativeRow = false;
    }
    else
        rOutCell.bRelativeRow = true;

    // parse rest for column
    sal_Int32 nPower = 1;
    while( CharClass::isAsciiAlpha( pStrArray[ i ] ))
    {
        nColumn += (pStrArray[ i ] - aLetterA + 1) * nPower;
        i--;
        nPower *= 26;
    }
    rOutCell.nColumn = nColumn - 1;

    rOutCell.bRelativeColumn = true;
    if( i >= 0 &&
        pStrArray[ i ] == aDollar )
        rOutCell.bRelativeColumn = false;
    rOutCell.bIsEmpty = false;
}

bool lcl_getCellAddressFromXMLString(
    const ::rtl::OUString& rXMLString,
    sal_Int32 nStartPos, sal_Int32 nEndPos,
=====================================================================
Found a 72 line (241 tokens) duplication in the following files: 
Starting at line 1225 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/wmadaptor.cxx
Starting at line 1315 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/wmadaptor.cxx

                         );
        if( pFrame->mbMaximizedHorz
           && pFrame->mbMaximizedVert
           && ! ( pFrame->nStyle_ & SAL_FRAME_STYLE_SIZEABLE ) )
        {
            /*
             *  for maximizing use NorthWestGravity (including decoration)
             */
            XSizeHints	hints;
            long		supplied;
            bool bHint = false;
            if( XGetWMNormalHints( m_pDisplay,
                                   pFrame->GetShellWindow(),
                                   &hints,
                                   &supplied ) )
            {
                bHint = true;
                hints.flags |= PWinGravity;
                hints.win_gravity = NorthWestGravity;
                XSetWMNormalHints( m_pDisplay,
                                   pFrame->GetShellWindow(),
                                   &hints );
                XSync( m_pDisplay, False );
            }

            // SetPosSize necessary to set width/height, min/max w/h
            sal_Int32 nCurrent = 0;
            /*
             *  get current desktop here if work areas have different size
             *  (does this happen on any platform ?)
             */
            if( ! m_bEqualWorkAreas )
            {
                nCurrent = getCurrentWorkArea();
                if( nCurrent < 0 )
                    nCurrent = 0;
            }
            Rectangle aPosSize = m_aWMWorkAreas[nCurrent];
            const SalFrameGeometry& rGeom( pFrame->GetUnmirroredGeometry() );
            aPosSize = Rectangle( Point( aPosSize.Left() + rGeom.nLeftDecoration,
                                         aPosSize.Top()  + rGeom.nTopDecoration ),
                                  Size( aPosSize.GetWidth()
                                        - rGeom.nLeftDecoration
                                        - rGeom.nRightDecoration,
                                        aPosSize.GetHeight()
                                        - rGeom.nTopDecoration
                                        - rGeom.nBottomDecoration )
                                  );
            pFrame->SetPosSize( aPosSize );

            /*
             *  reset gravity hint to static gravity
             *  (this should not move window according to ICCCM)
             */
            if( bHint && pFrame->nShowState_ != SHOWSTATE_UNKNOWN )
            {
                hints.win_gravity = StaticGravity;
                XSetWMNormalHints( m_pDisplay,
                                   pFrame->GetShellWindow(),
                                   &hints );
            }
        }
    }
}

/*
 *  WMAdaptor::setFrameDecoration
 *  sets _MOTIF_WM_HINTS
 *		 WM_TRANSIENT_FOR
 */

void WMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFlags, X11SalFrame* pReferenceFrame ) const
=====================================================================
Found a 43 line (241 tokens) duplication in the following files: 
Starting at line 1361 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/ScriptInfo.cxx
Starting at line 2013 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/porlay.cxx

            }
        }
    }

    // If there are any hidden ranges in the current text node, we have
    // to unhide the redlining ranges:
    const IDocumentRedlineAccess& rIDRA = *rNode.getIDocumentRedlineAccess();
    if ( rHiddenMulti.GetRangeCount() && IDocumentRedlineAccess::IsShowChanges( rIDRA.GetRedlineMode() ) )
    {
        USHORT nAct = rIDRA.GetRedlinePos( rNode, USHRT_MAX );

        for ( ; nAct < rIDRA.GetRedlineTbl().Count(); nAct++ )
        {
            const SwRedline* pRed = rIDRA.GetRedlineTbl()[ nAct ];

            if ( pRed->Start()->nNode > rNode.GetIndex() )
                break;

            xub_StrLen nRedlStart;
            xub_StrLen nRedlnEnd;
            pRed->CalcStartEnd( rNode.GetIndex(), nRedlStart, nRedlnEnd );
            if ( nRedlnEnd > nRedlStart )
            {
                Range aTmp( nRedlStart, nRedlnEnd - 1 );
                rHiddenMulti.Select( aTmp, false );
            }
        }
    }

    //
    // We calculated a lot of stuff. Finally we can update the flags at the text node.
    //
    const bool bNewContainsHiddenChars = rHiddenMulti.GetRangeCount() > 0;
    bool bNewHiddenCharsHidePara = false;
    if ( bNewContainsHiddenChars )
    {
        const Range& rRange = rHiddenMulti.GetRange( 0 );
        const xub_StrLen nHiddenStart = (xub_StrLen)rRange.Min();
        const xub_StrLen nHiddenEnd = (xub_StrLen)rRange.Max() + 1;
        bNewHiddenCharsHidePara = ( nHiddenStart == 0 && nHiddenEnd >= rNode.GetTxt().Len() );
    }
    rNode.SetHiddenCharAttribute( bNewHiddenCharsHidePara, bNewContainsHiddenChars );
}
=====================================================================
Found a 40 line (241 tokens) duplication in the following files: 
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/camera3d.cxx
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/camera3d.cxx

	basegfx::B3DVector aDiff(aPosition - aLookAt);
	const double fV(sqrt(aDiff.getX() * aDiff.getX() + aDiff.getZ() * aDiff.getZ()));

	if ( fV != 0.0 )	
	{
		basegfx::B3DHomMatrix aTemp;
		const double fSin(aDiff.getZ() / fV);
		const double fCos(aDiff.getX() / fV);

		aTemp.set(0, 0, fCos);
		aTemp.set(2, 2, fCos);
		aTemp.set(0, 2, fSin);
		aTemp.set(2, 0, -fSin);

		aTf *= aTemp;
	}

	{
		aTf.rotate(0.0, 0.0, fVAngle);
	}

	if ( fV != 0.0 )	
	{
		basegfx::B3DHomMatrix aTemp;
		const double fSin(-aDiff.getZ() / fV);
		const double fCos(aDiff.getX() / fV);

		aTemp.set(0, 0, fCos);
		aTemp.set(2, 2, fCos);
		aTemp.set(0, 2, fSin);
		aTemp.set(2, 0, -fSin);

		aTf *= aTemp;
	}

	{
		aTf.rotate(0.0, fHAngle, 0.0);
	}

	aDiff *= aTf;
=====================================================================
Found a 30 line (241 tokens) duplication in the following files: 
Starting at line 1063 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 965 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptUturnArrowVert[] =
{
	{ 0, 21600 }, { 0, 8550 },											// pp
	{ 0, 3540 }, { 4370, 0 }, { 9270, 0 },								// ccp
	{ 13890, 0 }, { 18570, 3230 }, { 18600, 8300 },						// ccp
	{ 21600, 8300 }, { 15680, 14260 }, { 9700, 8300 }, { 12500, 8300 }, // pppp
	{ 12320, 6380 }, { 10870, 5850 }, { 9320, 5850 },					// ccp
	{ 7770, 5850 }, { 6040, 6410 }, { 6110, 8520 },						// ccp
	{ 6110, 21600 }
};
static const sal_uInt16 mso_sptUturnArrowSegm[] =
{
	0x4000, 0x0001, 0x2002, 0x0004, 0x2002, 0x0001, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptUturnArrowTextRect[] = 
{
	{ { 0, 8280 }, { 6110, 21600 } }
};
static const mso_CustomShape msoUturnArrow =
{
	(SvxMSDffVertPair*)mso_sptUturnArrowVert, sizeof( mso_sptUturnArrowVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptUturnArrowSegm, sizeof( mso_sptUturnArrowSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptUturnArrowTextRect, sizeof( mso_sptUturnArrowTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 43 line (241 tokens) duplication in the following files: 
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx

IMPL_LINK( SvInsertAppletDialog, BrowseHdl, PushButton *, EMPTYARG )
{
    Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
    if( xFactory.is() )
    {
        Reference< XFilePicker > xFilePicker( xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ), UNO_QUERY );
        DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

        Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
        Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
        if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
        {
            Sequence< Any > aServiceType( 1 );
            aServiceType[0] <<= TemplateDescription::FILEOPEN_SIMPLE;
            xInit->initialize( aServiceType );

            // add filter
            try
            {
                xFilterMgr->appendFilter(
                     OUString( RTL_CONSTASCII_USTRINGPARAM( "Applet" ) ),
                     OUString( RTL_CONSTASCII_USTRINGPARAM( "*.class" ) )
                     );
            }
            catch( IllegalArgumentException& )
            {
                DBG_ASSERT( 0, "caught IllegalArgumentException when registering filter\n" );
            }

            if( xFilePicker->execute() == ExecutableDialogResults::OK )
            {
                Sequence< OUString > aPathSeq( xFilePicker->getFiles() );

				INetURLObject aObj( aPathSeq[0] );
                aEdClassfile.SetText( aObj.getName() );
                aObj.removeSegment();
				aEdClasslocation.SetText( aObj.PathToFileName() );
            }
        }
    }

	return 0;
}
=====================================================================
Found a 120 line (241 tokens) duplication in the following files: 
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/lnkbase2.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/lnkbase2.cxx

	delete pImplData;
}

/************************************************************************
|*	  SvBaseLink::SetObjType()
|*
|*	  Beschreibung
*************************************************************************/

void SvBaseLink::SetObjType( USHORT nObjTypeP )
{
	DBG_ASSERT( nObjType != OBJECT_CLIENT_DDE, "type already set" )
	DBG_ASSERT( !xObj.Is(), "object exist" )

	nObjType = nObjTypeP;
}

/************************************************************************
|*	  SvBaseLink::SetName()
|*
|*	  Beschreibung
*************************************************************************/

void SvBaseLink::SetName( const String & rNm )
{
	aLinkName = rNm;
}

/************************************************************************
|*	  SvBaseLink::GetName()
|*
|*	  Beschreibung
*************************************************************************/

String SvBaseLink::GetName() const
{
	return aLinkName;
}

/************************************************************************
|*	  SvBaseLink::SetObj()
|*
|*	  Beschreibung
*************************************************************************/

void SvBaseLink::SetObj( SvLinkSource * pObj )
{
	DBG_ASSERT( (nObjType & OBJECT_CLIENT_SO &&
				pImplData->ClientType.bIntrnlLnk) ||
				nObjType == OBJECT_CLIENT_GRF,
				"no intern link" )
	xObj = pObj;
}

/************************************************************************
|*	  SvBaseLink::SetLinkSourceName()
|*
|*	  Beschreibung
*************************************************************************/

void SvBaseLink::SetLinkSourceName( const String & rLnkNm )
{
	if( aLinkName == rLnkNm )
		return;

	AddNextRef(); // sollte ueberfluessig sein
	// Alte Verbindung weg
	Disconnect();

	aLinkName = rLnkNm;

	// Neu verbinden
	_GetRealObject();
	ReleaseRef(); // sollte ueberfluessig sein
}

/************************************************************************
|*	  SvBaseLink::GetLinkSourceName()
|*
|*	  Beschreibung
*************************************************************************/

String  SvBaseLink::GetLinkSourceName() const
{
	return aLinkName;
}


/************************************************************************
|*	  SvBaseLink::SetUpdateMode()
|*
|*	  Beschreibung
*************************************************************************/

void SvBaseLink::SetUpdateMode( USHORT nMode )
{
	if( ( OBJECT_CLIENT_SO & nObjType ) &&
		pImplData->ClientType.nUpdateMode != nMode )
	{
		AddNextRef();
		Disconnect();

		pImplData->ClientType.nUpdateMode = nMode;
		_GetRealObject();
		ReleaseRef();
	}
}


BOOL SvBaseLink::Update()
{
	if( OBJECT_CLIENT_SO & nObjType )
	{
		AddNextRef();
		Disconnect();

		_GetRealObject();
		ReleaseRef();
		if( xObj.Is() )
		{
=====================================================================
Found a 9 line (241 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1149 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cd0 - 0cdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ce0 - 0cef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cf0 - 0cff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d00 - 0d0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d10 - 0d1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d20 - 0d2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d30 - 0d3f
     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
=====================================================================
Found a 9 line (241 tokens) duplication in the following files: 
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 552 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,// 2270 - 227f
    24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,// 2280 - 228f
    24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,// 2290 - 229f
    24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,// 22a0 - 22af
    24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,// 22b0 - 22bf
    24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,// 22c0 - 22cf
    24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,// 22d0 - 22df
    24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,// 22e0 - 22ef
    24,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 22f0 - 22ff
=====================================================================
Found a 43 line (241 tokens) duplication in the following files: 
Starting at line 567 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/miscobj.cxx
Starting at line 1372 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olecomponent.cxx

	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

    uno::Reference< uno::XInterface > xSelfHold( static_cast< ::cppu::OWeakObject* >( this ) );
    lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >( this ) );

	if ( m_pInterfaceContainer )
	{
    	::cppu::OInterfaceContainerHelper* pContainer =
			m_pInterfaceContainer->getContainer( ::getCppuType( ( const uno::Reference< util::XCloseListener >* ) NULL ) );
    	if ( pContainer != NULL )
		{
        	::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
        	while ( pIterator.hasMoreElements() )
        	{
            	try
            	{
                	( (util::XCloseListener* )pIterator.next() )->queryClosing( aSource, bDeliverOwnership );
            	}
            	catch( uno::RuntimeException& )
            	{
                	pIterator.remove();
            	}
        	}
		}

    	pContainer = m_pInterfaceContainer->getContainer(
									::getCppuType( ( const uno::Reference< util::XCloseListener >* ) NULL ) );
    	if ( pContainer != NULL )
		{
        	::cppu::OInterfaceIteratorHelper pCloseIterator( *pContainer );
        	while ( pCloseIterator.hasMoreElements() )
        	{
            	try
            	{
                	( (util::XCloseListener* )pCloseIterator.next() )->notifyClosing( aSource );
            	}
            	catch( uno::RuntimeException& )
            	{
                	pCloseIterator.remove();
            	}
        	}
		}
=====================================================================
Found a 60 line (241 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/purpenvhelper/TestEnv.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/bootstrap/TestEnv.cxx

TestEnv::TestEnv()
	: m_inCount(0)
{
	LOG_LIFECYCLE_TestEnv_emit(fprintf(stderr, "LIFE: %s -> %p\n", "TestEnv::TestEnv(...)", this));
}

TestEnv::~TestEnv(void)
{
	LOG_LIFECYCLE_TestEnv_emit(fprintf(stderr, "LIFE: %s -> %p\n", "TestEnv::~TestEnv(void)", this));
}


void TestEnv::v_callInto_v(uno_EnvCallee * pCallee, va_list * pParam)
{
	++ m_inCount;
	pCallee(pParam);
	-- m_inCount;
}

void TestEnv::v_callOut_v(uno_EnvCallee * pCallee, va_list * pParam)
{
	-- m_inCount;
	pCallee(pParam);
	++ m_inCount;
}

void TestEnv::v_enter(void)
{
	++ m_inCount;
}
	
void TestEnv::v_leave(void)
{
	-- m_inCount;
}

int  TestEnv::v_isValid(rtl::OUString * pReason)
{
	int result = m_inCount & 1;

	if (result)
		*pReason = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OK"));

	else
		*pReason = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("not entered/invoked"));

	return result;
}

extern "C" void SAL_CALL uno_initEnvironment(uno_Environment * pEnv) SAL_THROW_EXTERN_C()
{
    cppu::helper::purpenv::Environment_initWithEnterable(pEnv, new TestEnv());
}

extern "C" void uno_ext_getMapping(uno_Mapping     ** ppMapping,
								   uno_Environment  * pFrom,
								   uno_Environment  * pTo )
{
	cppu::helper::purpenv::createMapping(ppMapping, pFrom, pTo);
}
=====================================================================
Found a 54 line (241 tokens) duplication in the following files: 
Starting at line 2890 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 3362 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx

sal_Bool ExceptionType::dumpSuperMember(FileStream& o, const OString& superType, sal_Bool bWithType)
{
	sal_Bool hasMember = sal_False;

	if (superType.getLength() > 0)
	{
		typereg::Reader aSuperReader(m_typeMgr.getTypeReader(superType));
		
		if (aSuperReader.isValid())
		{
            rtl::OString superSuper;
            if (aSuperReader.getSuperTypeCount() >= 1) {
                superSuper = rtl::OUStringToOString(
                    aSuperReader.getSuperTypeName(0), RTL_TEXTENCODING_UTF8);
            }
			hasMember = dumpSuperMember(o, superSuper, bWithType);

			sal_uInt16 		fieldCount = aSuperReader.getFieldCount();
			RTFieldAccess 	access = RT_ACCESS_INVALID;
			OString 		fieldName;
			OString 		fieldType;	
			for (sal_uInt16 i=0; i < fieldCount; i++)
			{
				access = aSuperReader.getFieldFlags(i);
				
				if (access == RT_ACCESS_CONST || access == RT_ACCESS_INVALID)
					continue;

				fieldName = rtl::OUStringToOString(
                    aSuperReader.getFieldName(i), RTL_TEXTENCODING_UTF8);
				fieldType = rtl::OUStringToOString(
                    aSuperReader.getFieldTypeName(i), RTL_TEXTENCODING_UTF8);
			
				if (hasMember) 
				{
					o << ", ";
				} else
				{
					hasMember = (fieldCount > 0);
				}

				if (bWithType)
				{
					dumpType(o, fieldType, sal_True, sal_True);	
					o << " ";
				}					
//				o << "__" << fieldName;
				o << fieldName << "_";
			}
		}
	}
	
	return hasMember;
}	
=====================================================================
Found a 55 line (241 tokens) duplication in the following files: 
Starting at line 1980 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 2194 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

}

sal_uInt32 InterfaceType::getMemberCount()
{
	sal_uInt32 count = m_reader.getMethodCount();

	if (count)
		m_hasMethods = sal_True;

	sal_uInt32 fieldCount = m_reader.getFieldCount();
	RTFieldAccess access = RT_ACCESS_INVALID;
	for (sal_uInt16 i=0; i < fieldCount; i++)
	{
		access = m_reader.getFieldAccess(i);

		if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
		{
			m_hasAttributes = sal_True;
			count++;
		}
	}
	return count;
}

sal_uInt32 InterfaceType::checkInheritedMemberCount(const TypeReader* pReader)
{
	sal_uInt32 cout = 0;
	sal_Bool bSelfCheck = sal_True;
	if (!pReader)
	{
		bSelfCheck = sal_False;
		pReader = &m_reader;
	}

	sal_uInt32 count = 0;
	OString superType(pReader->getSuperTypeName());
	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));
		if (aSuperReader.isValid())
		{
			count = checkInheritedMemberCount(&aSuperReader);
		}
	}

	if (bSelfCheck)
	{
		count += pReader->getMethodCount();
		sal_uInt32 fieldCount = pReader->getFieldCount();
		RTFieldAccess access = RT_ACCESS_INVALID;
		for (sal_uInt16 i=0; i < fieldCount; i++)
		{
			access = pReader->getFieldAccess(i);

			if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
=====================================================================
Found a 37 line (240 tokens) duplication in the following files: 
Starting at line 1095 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/config/configitem.cxx
Starting at line 1240 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/config/configitem.cxx

						xCont->insertByName(pSubNodeNames[j], aVal);
					}
				}
				try	{ xBatch->commitChanges(); }
                CATCH_INFO("Exception from commitChanges(): ")

				const PropertyValue* pProperties = rValues.getConstArray();

				Sequence< OUString > aSetNames(rValues.getLength());
				OUString* pSetNames = aSetNames.getArray();

				Sequence< Any> aSetValues(rValues.getLength());
				Any* pSetValues = aSetValues.getArray();

                sal_Bool bEmptyNode = rNode.getLength() == 0;
                for(sal_Int32 k = 0; k < rValues.getLength(); k++)
				{
                    pSetNames[k] =  pProperties[k].Name.copy( bEmptyNode ? 1 : 0);
					pSetValues[k] = pProperties[k].Value;
				}
				bRet = PutProperties(aSetNames, aSetValues);
			}
			else
			{
				const PropertyValue* pValues = rValues.getConstArray();

				//if no factory is available then the node contains basic data elements
				for(int nValue = 0; nValue < rValues.getLength();nValue++)
				{
					try
					{
						OUString sSubNode = lcl_extractSetPropertyName( pValues[nValue].Name, rNode );

                        if(xCont->hasByName(sSubNode))
							xCont->replaceByName(sSubNode, pValues[nValue].Value);
						else
							xCont->insertByName(sSubNode, pValues[nValue].Value);
=====================================================================
Found a 68 line (240 tokens) duplication in the following files: 
Starting at line 556 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

                    ucb::CommandInfo >( aRootFolderCommandInfoTable, 7 );
        }
        else
        {
            //=================================================================
            //
            // Folder: Supported commands
            //
            //=================================================================

            static const ucb::CommandInfo aFolderCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                    -1,
                    getCppuBooleanType()
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::TransferInfo * >( 0 ) )
                ),
=====================================================================
Found a 34 line (240 tokens) duplication in the following files: 
Starting at line 1658 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviewse.cxx
Starting at line 1697 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviewse.cxx

                                mpDrawView->GetSdrPageView()->GetPage(), GetDoc());

		uno::Reference< awt::XControlModel > xControlModel( pUnoCtrl->GetUnoControlModel() );

		if( !xControlModel.is())
			return;

		uno::Reference< beans::XPropertySet > xPropSet( xControlModel, uno::UNO_QUERY );

		uno::Any aTmp;

		aTmp <<= rtl::OUString(rText);
		xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Label" )), aTmp );

        aTmp <<= rtl::OUString( ::URIHelper::SmartRel2Abs( INetURLObject( GetDocSh()->GetMedium()->GetBaseURL() ), rURL, URIHelper::GetMaybeFileHdl(), true, false,
															INetURLObject::WAS_ENCODED,
															INetURLObject::DECODE_UNAMBIGUOUS ) );
		xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TargetURL" )), aTmp );

		if( rTarget.Len() )
		{
			aTmp <<= rtl::OUString(rTarget);
			xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TargetFrame" )), aTmp );
		}

		form::FormButtonType eButtonType = form::FormButtonType_URL;
		aTmp <<= eButtonType;
		xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ButtonType" )), aTmp );
		// #105638# OJ
		if ( Sound::IsSoundFile( rURL ) )
		{
			aTmp <<= sal_True;
			xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DispatchURLInternal" )), aTmp );
		}
=====================================================================
Found a 49 line (240 tokens) duplication in the following files: 
Starting at line 535 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/printergfx/glyphset.cxx
Starting at line 668 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/printergfx/glyphset.cxx

        GetCharID (pStr[nChar], pGlyphID + nChar, pGlyphSetID + nChar);
        aGlyphSet.insert (pGlyphSetID[nChar]); 
    }

    // loop over all glyph sets to detect substrings that can be xshown together
    // without changing the postscript font
    sal_Int32 *pDeltaSubset = (sal_Int32*)alloca (nLen * sizeof(sal_Int32));
    sal_uChar *pGlyphSubset = (sal_uChar*)alloca (nLen * sizeof(sal_uChar));
   
    std::set< sal_Int32 >::iterator aSet;
    for (aSet = aGlyphSet.begin(); aSet != aGlyphSet.end(); ++aSet)
    {
        Point     aPoint  = rPoint;
        sal_Int32 nOffset = 0;
        sal_Int32 nGlyphs = 0;
        sal_Int32 nChar;

        // get offset to first glyph 
        for (nChar = 0; (nChar < nLen) && (pGlyphSetID[nChar] != *aSet); nChar++)
        {
            nOffset = pDeltaArray [nChar];
        }
        
        // loop over all chars to extract those that share the current glyph set    
        for (nChar = 0; nChar < nLen; nChar++)
        {
            if (pGlyphSetID[nChar] == *aSet)
            {
                pGlyphSubset [nGlyphs] = pGlyphID [nChar];
                // the offset to the next glyph is determined by the glyph in
                // front of the next glyph with the same glyphset id
                // most often, this will be the current glyph
                while ((nChar + 1) < nLen)
                {
                    if (pGlyphSetID[nChar + 1] == *aSet)
                        break;
                    else
                        nChar += 1;
                }
                pDeltaSubset [nGlyphs] = pDeltaArray[nChar] - nOffset;

                nGlyphs += 1;
            }
        }

        // show the text using the PrinterGfx text api
        aPoint.Move (nOffset, 0);

        OString aGlyphSetName(GetCharSetName(*aSet));
=====================================================================
Found a 53 line (240 tokens) duplication in the following files: 
Starting at line 478 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/popupmenucontrollerfactory.cxx
Starting at line 478 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/toolbarcontrollerfactory.cxx

Reference< XInterface > SAL_CALL ToolbarControllerFactory::createInstanceWithArgumentsAndContext( 
    const ::rtl::OUString&                  ServiceSpecifier, 
    const Sequence< Any >&                  Arguments, 
    const Reference< XComponentContext >& )
throw (Exception, RuntimeException)
{
    const rtl::OUString aPropModuleName( RTL_CONSTASCII_USTRINGPARAM( "ModuleName" ));
    
    rtl::OUString   aPropName;
    PropertyValue   aPropValue;
    
    // Retrieve the optional module name form the Arguments sequence. It is used as a part of
    // the hash map key to support different controller implementation for the same URL but different
    // module!!
    for ( int i = 0; i < Arguments.getLength(); i++ )
    {
        if (( Arguments[i] >>= aPropValue ) && ( aPropValue.Name.equals( aPropModuleName )))
        {
            aPropValue.Value >>= aPropName;
            break;
        }
    }
    
    // Append the command URL to the Arguments sequence so that one controller can be
    // used for more than one command URL.
    Sequence< Any > aNewArgs( Arguments );
    
    sal_Int32 nAppendIndex = aNewArgs.getLength();
    aNewArgs.realloc( aNewArgs.getLength()+1 );
    aPropValue.Name     = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CommandURL" ));
    aPropValue.Value  <<= ServiceSpecifier;
    aNewArgs[nAppendIndex] <<= aPropValue;

    // SAFE
    {
        ResetableGuard aLock( m_aLock );
        
        if ( !m_bConfigRead )
        {
            m_bConfigRead = sal_True;
            m_pConfigAccess->readConfigurationData();
        }

        rtl::OUString aServiceName = m_pConfigAccess->getServiceFromCommandModule( ServiceSpecifier, aPropName );
        if ( aServiceName.getLength() > 0 )
            return m_xServiceManager->createInstanceWithArguments( aServiceName, aNewArgs );
        else
            return Reference< XInterface >();
    }
    // SAFE
}

Sequence< ::rtl::OUString > SAL_CALL ToolbarControllerFactory::getAvailableServiceNames()
=====================================================================
Found a 44 line (240 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< float >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", (a >>= b) && b == 1);
=====================================================================
Found a 42 line (240 tokens) duplication in the following files: 
Starting at line 539 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/test/java_uno/acquire/testacquire.cxx
Starting at line 908 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/registry_tdprovider/testregistrytdprovider.cxx

                Service::getSupportedServiceNames());
        }
        if (f.is()) {
            f->acquire();
            p = f.get();
        }
    }
    return p;
}

namespace {

bool writeInfo(void * registryKey, rtl::OUString const & implementationName,
               css::uno::Sequence< rtl::OUString > const & serviceNames) {
    rtl::OUString keyName(rtl::OUString::createFromAscii("/"));
    keyName += implementationName;
    keyName += rtl::OUString::createFromAscii("/UNO/SERVICES");
    css::uno::Reference< css::registry::XRegistryKey > key;
    try {
        key = static_cast< css::registry::XRegistryKey * >(registryKey)->
            createKey(keyName);
    } catch (css::registry::InvalidRegistryException &) {}
    if (!key.is()) {
        return false;
    }
    bool success = true;
    for (sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {
        try {
            key->createKey(serviceNames[i]);
        } catch (css::registry::InvalidRegistryException &) {
            success = false;
            break;
        }
    }
    return success;
}

}

extern "C" sal_Bool SAL_CALL component_writeInfo(void *, void * registryKey) {
    return registryKey
        && writeInfo(registryKey, Service::getImplementationName(),
=====================================================================
Found a 61 line (239 tokens) duplication in the following files: 
Starting at line 1393 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1412 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

            }
		}
		else
		{
			// Not a Core Property! Maybe it's an Additional Core Property?!

			if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
			{
				xAdditionalPropSet = getAdditionalPropertySet( sal_False );
				bTriedToGetAdditonalPropSet = sal_True;
			}

			if ( xAdditionalPropSet.is() )
			{
				try
				{
                    uno::Any aOldValue
                        = xAdditionalPropSet->getPropertyValue( rValue.Name );
					if ( aOldValue != rValue.Value )
					{
						xAdditionalPropSet->setPropertyValue(
												rValue.Name, rValue.Value );

						aEvent.PropertyName = rValue.Name;
						aEvent.OldValue		= aOldValue;
						aEvent.NewValue     = rValue.Value;

						aChanges.getArray()[ nChanged ] = aEvent;
						nChanged++;
					}
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}

	if ( bExchange )
	{
        uno::Reference< ucb::XContentIdentifier > xOldId = m_xIdentifier;
=====================================================================
Found a 10 line (239 tokens) duplication in the following files: 
Starting at line 1315 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1434 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,// 2e90 - 2e9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ea0 - 2eaf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2eb0 - 2ebf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ec0 - 2ecf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ed0 - 2edf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ee0 - 2eef
    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f00 - 2f0f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f10 - 2f1f
=====================================================================
Found a 8 line (239 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/breakiterator/breakiterator_th.cxx
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/breakiterator/breakiterator_th.cxx

	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // BD   9
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // TONE 10
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // AD1  11
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // AD2  12
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // AD3  13
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_COM, ST_COM, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // AV1  14
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_COM, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // AV2  15
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_COM, ST_NXT, ST_COM, ST_NXT, ST_NXT, ST_NXT, ST_NXT   } // AV3  16
=====================================================================
Found a 43 line (239 tokens) duplication in the following files: 
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/statusbardocumenthandler.cxx
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/statusbardocumenthandler.cxx

    const Reference< XDocumentHandler >& rWriteDocumentHandler ) :
    ThreadHelpBase( &Application::GetSolarMutex() ),
	m_aStatusBarItems( aStatusBarItems ),
	m_xWriteDocumentHandler( rWriteDocumentHandler )
{
	m_xEmptyList		= Reference< XAttributeList >( (XAttributeList *)new AttributeListImpl, UNO_QUERY );
	m_aAttributeType	= OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_TYPE_CDATA ));
	m_aXMLXlinkNS		= OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_XLINK_PREFIX ));
	m_aXMLStatusBarNS	= OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_STATUSBAR_PREFIX ));
}

OWriteStatusBarDocumentHandler::~OWriteStatusBarDocumentHandler()
{
}

void OWriteStatusBarDocumentHandler::WriteStatusBarDocument() throw 
( SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	m_xWriteDocumentHandler->startDocument();

	// write DOCTYPE line!
	Reference< XExtendedDocumentHandler > xExtendedDocHandler( m_xWriteDocumentHandler, UNO_QUERY );
	if ( xExtendedDocHandler.is() )
	{
		xExtendedDocHandler->unknown( OUString( RTL_CONSTASCII_USTRINGPARAM( STATUSBAR_DOCTYPE )) );
		m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	}

	AttributeListImpl* pList = new AttributeListImpl;
	Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY );

	pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XMLNS_STATUSBAR )),
						 m_aAttributeType,
						 OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_STATUSBAR )) );

	pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XMLNS_XLINK )),
						 m_aAttributeType,
						 OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_XLINK )) );

	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_STATUSBAR )), pList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
=====================================================================
Found a 37 line (239 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/marktest.cxx
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/marktest.cxx

	~OMarkableInputStreamTest();

public: // refcounting
	BOOL						queryInterface( Uik aUik, XInterfaceRef & rOut );
	void 						acquire() 						 { OWeakObject::acquire(); }
	void 						release() 						 { OWeakObject::release(); }
	void* 						getImplementation(Reflection *p) { return OWeakObject::getImplementation(p); }

public: // implementation names
    static Sequence< UString > 	getSupportedServiceNames_Static(void) THROWS( () );
	static UString 				getImplementationName_Static() THROWS( () );

public:
    virtual void testInvariant(const UString& TestName, const XInterfaceRef& TestObject)
    															THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual INT32 test(	const UString& TestName,
    					const XInterfaceRef& TestObject,
    					INT32 hTestHandle) 						THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual BOOL testPassed(void) 								THROWS( (	UsrSystemException) );
    virtual Sequence< UString > getErrors(void) 				THROWS( (UsrSystemException) );
    virtual Sequence< UsrAny > getErrorExceptions(void) 		THROWS( (UsrSystemException) );
    virtual Sequence< UString > getWarnings(void) 				THROWS( (UsrSystemException) );

private:
	void testSimple( const XOutputStreamRef &r, const XInputStreamRef &rInput );

private:
	Sequence<UsrAny>  m_seqExceptions;
	Sequence<UString> m_seqErrors;
	Sequence<UString> m_seqWarnings;
	XMultiServiceFactoryRef m_rFactory;

};
=====================================================================
Found a 15 line (239 tokens) duplication in the following files: 
Starting at line 2575 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/source/typelib/typelib.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crbase.cxx

}

static sal_Bool s_aAssignableFromTab[11][11] =
{
						 /* from CH,BO,BY,SH,US,LO,UL,HY,UH,FL,DO */
/* TypeClass_CHAR */			{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_BOOLEAN */			{ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_BYTE */			{ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_SHORT */			{ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 },
/* TypeClass_UNSIGNED_SHORT */	{ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 },
/* TypeClass_LONG */			{ 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 },
/* TypeClass_UNSIGNED_LONG */	{ 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 },
/* TypeClass_HYPER */			{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
/* TypeClass_UNSIGNED_HYPER */	{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
/* TypeClass_FLOAT */			{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
=====================================================================
Found a 34 line (239 tokens) duplication in the following files: 
Starting at line 869 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
Starting at line 1071 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx

	TInt2IntMap aMap;
	aMap[SQL_BIT]				= DataType::BIT;
	aMap[SQL_TINYINT]			= DataType::TINYINT;
	aMap[SQL_SMALLINT]			= DataType::SMALLINT;
	aMap[SQL_INTEGER]			= DataType::INTEGER;
	aMap[SQL_FLOAT]				= DataType::FLOAT;
	aMap[SQL_REAL]				= DataType::REAL;
	aMap[SQL_DOUBLE]			= DataType::DOUBLE;
	aMap[SQL_BIGINT]			= DataType::BIGINT;

	aMap[SQL_CHAR]				= DataType::CHAR;
	aMap[SQL_WCHAR]				= DataType::CHAR;
	aMap[SQL_VARCHAR]			= DataType::VARCHAR;
	aMap[SQL_WVARCHAR]			= DataType::VARCHAR;
	aMap[SQL_LONGVARCHAR]		= DataType::LONGVARCHAR;
	aMap[SQL_WLONGVARCHAR]		= DataType::LONGVARCHAR;

	aMap[SQL_TYPE_DATE]			= DataType::DATE;
	aMap[SQL_DATE]				= DataType::DATE;
	aMap[SQL_TYPE_TIME]			= DataType::TIME;
	aMap[SQL_TIME]				= DataType::TIME;
	aMap[SQL_TYPE_TIMESTAMP]	= DataType::TIMESTAMP;
	aMap[SQL_TIMESTAMP]			= DataType::TIMESTAMP;

	aMap[SQL_DECIMAL]			= DataType::DECIMAL;
	aMap[SQL_NUMERIC]			= DataType::NUMERIC;

	aMap[SQL_BINARY]			= DataType::BINARY;
	aMap[SQL_VARBINARY]			= DataType::VARBINARY;
	aMap[SQL_LONGVARBINARY]		= DataType::LONGVARBINARY;

	aMap[SQL_GUID]				= DataType::VARBINARY;

	m_aValueRange[5] = aMap;
=====================================================================
Found a 39 line (239 tokens) duplication in the following files: 
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

            *(void **)pCppStack = pCppReturn;
            pCppStack += sizeof(void *);
		}
	}
	// push this
    void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
        + aVtableSlot.offset;
	*(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 40 line (238 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/helper/xsecctl.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/demo/util2.cxx

void convertDateTime( ::rtl::OUStringBuffer& rBuffer,
	const com::sun::star::util::DateTime& rDateTime )
{
    String aString( String::CreateFromInt32( rDateTime.Year ) );
    aString += '-';
    if( rDateTime.Month < 10 )
        aString += '0';
    aString += String::CreateFromInt32( rDateTime.Month );
    aString += '-';
    if( rDateTime.Day < 10 )
        aString += '0';
    aString += String::CreateFromInt32( rDateTime.Day );

    if( rDateTime.Seconds != 0 ||
        rDateTime.Minutes != 0 ||
        rDateTime.Hours   != 0 )
    {
        aString += 'T';
        if( rDateTime.Hours < 10 )
            aString += '0';
        aString += String::CreateFromInt32( rDateTime.Hours );
        aString += ':';
        if( rDateTime.Minutes < 10 )
            aString += '0';
        aString += String::CreateFromInt32( rDateTime.Minutes );
        aString += ':';
        if( rDateTime.Seconds < 10 )
            aString += '0';
        aString += String::CreateFromInt32( rDateTime.Seconds );
		if ( rDateTime.HundredthSeconds > 0)
		{
	        aString += ',';
			if (rDateTime.HundredthSeconds < 10)
				aString += '0';
			aString += String::CreateFromInt32( rDateTime.HundredthSeconds );
		}
    }

    rBuffer.append( aString );
}
=====================================================================
Found a 30 line (238 tokens) duplication in the following files: 
Starting at line 1997 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 2568 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

        aTypes.push_back(ITYPE(container::XNamed));
        aTypes.push_back(ITYPE(lang::XServiceInfo));
        aTypes.push_back(ITYPE(util::XReplaceable));
        aTypes.push_back(ITYPE(document::XLinkTargetSupplier));
        aTypes.push_back(ITYPE( drawing::XShapeCombiner ));
        aTypes.push_back(ITYPE( drawing::XShapeBinder ));
        if( bPresPage )
            aTypes.push_back(ITYPE(presentation::XPresentationPage));
        if( bPresPage && ePageKind == PK_STANDARD )
            aTypes.push_back(ITYPE(XAnimationNodeSupplier));

        // Get types of base class.
        const uno::Sequence< uno::Type > aBaseTypes( SdGenericDrawPage::getTypes() );
        const sal_Int32 nBaseTypes = aBaseTypes.getLength();
        const uno::Type* pBaseTypes = aBaseTypes.getConstArray();

        // Join those types in a sequence.
        maTypeSequence.realloc(aTypes.size() + nBaseTypes);
        uno::Type* pTypes = maTypeSequence.getArray();
        ::std::vector<uno::Type>::const_iterator iType;
        for (iType=aTypes.begin(); iType!=aTypes.end(); ++iType)
            *pTypes++ = *iType;
        for( sal_Int32 nType = 0; nType < nBaseTypes; nType++ )
            *pTypes++ = *pBaseTypes++;
	}

	return maTypeSequence;
}

uno::Sequence< sal_Int8 > SAL_CALL SdMasterPage::getImplementationId() throw(uno::RuntimeException)
=====================================================================
Found a 33 line (238 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/security.c
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/security/osl_Security.cxx

	Ident=(sal_Char * )malloc(88*sizeof(sal_Char));

	/* prepare S-SID_REVISION- */
	dwSidSize=wsprintf(Ident, TEXT("S-%lu-"), dwSidRev);

	/* prepare SidIdentifierAuthority */
	if ((psia->Value[0] != 0) || (psia->Value[1] != 0))
	{
	    dwSidSize+=wsprintf(Ident + strlen(Ident),
	                TEXT("0x%02hx%02hx%02hx%02hx%02hx%02hx"),
	                (USHORT)psia->Value[0],
	                (USHORT)psia->Value[1],
	                (USHORT)psia->Value[2],
	                (USHORT)psia->Value[3],
	                (USHORT)psia->Value[4],
	                (USHORT)psia->Value[5]);
	}
	else
	{
	    dwSidSize+=wsprintf(Ident + strlen(Ident),
	                TEXT("%lu"),
	                (ULONG)(psia->Value[5]      )   +
	                (ULONG)(psia->Value[4] <<  8)   +
	                (ULONG)(psia->Value[3] << 16)   +
	                (ULONG)(psia->Value[2] << 24)   );
	}

	/* loop through SidSubAuthorities */
	for (dwCounter=0; dwCounter < dwSubAuthorities; dwCounter++)
	{
		dwSidSize+=wsprintf(Ident + dwSidSize, TEXT("-%lu"),
		            *GetSidSubAuthority(pSid, dwCounter) );
	}
=====================================================================
Found a 24 line (238 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

				{
					const MetaFloatTransparentAction*	pA = (const MetaFloatTransparentAction*) pAction;
					GDIMetaFile							aTmpMtf( pA->GetGDIMetaFile() );
					Point								aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
					const Size							aSrcSize( aTmpMtf.GetPrefSize() );
					const Point							aDestPt( pA->GetPoint() );
					const Size							aDestSize( pA->GetSize() );
					const double						fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
					const double						fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
					long								nMoveX, nMoveY;

					if( fScaleX != 1.0 || fScaleY != 1.0 )
					{
						aTmpMtf.Scale( fScaleX, fScaleY );
						aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
					}

					nMoveX = aDestPt.X() - aSrcPt.X(), nMoveY = aDestPt.Y() - aSrcPt.Y();

					if( nMoveX || nMoveY )
						aTmpMtf.Move( nMoveX, nMoveY );

					mpVDev->Push();
					ImplWriteActions( aTmpMtf, pStyle, nWriteFlags );
=====================================================================
Found a 13 line (238 tokens) duplication in the following files: 
Starting at line 638 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/testcppu.cxx
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crbase.cxx

static sal_Bool s_aAssignableFromTab[11][11] =
{
						 /* from CH,BO,BY,SH,US,LO,UL,HY,UH,FL,DO */
/* TypeClass_CHAR */			{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_BOOLEAN */			{ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_BYTE */			{ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
/* TypeClass_SHORT */			{ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 },
/* TypeClass_UNSIGNED_SHORT */	{ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 },
/* TypeClass_LONG */			{ 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 },
/* TypeClass_UNSIGNED_LONG */	{ 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 },
/* TypeClass_HYPER */			{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
/* TypeClass_UNSIGNED_HYPER */	{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
/* TypeClass_FLOAT */			{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
=====================================================================
Found a 88 line (238 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx

using namespace std;

#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/Type.hxx>
#include <com/sun/star/uno/TypeClass.hpp>

#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XHierarchicalName.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/container/XNameReplace.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/beans/XExactName.hpp>
#ifndef _COM_SUN_STAR_UTIL_XCHANGESBATCH_HPP_
#include <com/sun/star/util/XChangesBatch.hpp>
#endif


#include <rtl/ustring.hxx>
#include <rtl/string.hxx>

#ifndef _CPPUHELPER_SERVICEFACTORY_HXX_
#include <cppuhelper/servicefactory.hxx>
#endif

#ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_
#include <com/sun/star/uno/Sequence.h>
#endif

#ifndef _COM_SUN_STAR_UNO_ANY_H_
#include <com/sun/star/uno/Any.h>
#endif

#ifndef _OSL_PROFILE_HXX_
#include <osl/profile.hxx>
#endif
#ifndef _OSL_PROCESS_H_
#include <osl/process.h>
#endif
#ifndef _OSL_FILE_H_
#include <osl/file.h>
#endif

#include "createpropertyvalue.hxx"

#include "typeconverter.hxx"

// #include <com/sun/star/configuration/XConfigurationSync.hpp>

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::beans;
//using namespace ::com::sun::star::util;
using namespace ::com::sun::star::util;

using ::rtl::OUString;
using ::rtl::OString;
//using namespace ::configmgr;

using namespace ::cppu;

#define ASCII(x) ::rtl::OUString::createFromAscii(x)

ostream& operator << (ostream& out, rtl::OUString const& aStr)
{
	sal_Unicode const* const pStr = aStr.getStr();
	sal_Unicode const* const pEnd = pStr + aStr.getLength();
	for (sal_Unicode const* p = pStr; p < pEnd; ++p)
		if (0 < *p && *p < 127) // ASCII
			out << char(*p);
		else
			out << "[\\u" << hex << *p << "]";
	return out;
}

void showSequence(const Sequence<OUString> &aSeq)
{
	OUString aArray;
	const OUString *pStr = aSeq.getConstArray();
	for (int i=0;i<aSeq.getLength();i++)
	{
		OUString aStr = pStr[i];
		// aArray += aStr + ASCII(", ");
		cout << aStr << endl;
	}
	volatile int dummy = 0;
}
=====================================================================
Found a 40 line (238 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/BarPositionHelper.cxx
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/PlottingPositionHelper.cxx

        doLogicScaling( &MaxX, &MaxY, &MaxZ);

        if(m_bSwapXAndY)
        {
            std::swap(MinX,MinY);
            std::swap(MaxX,MaxY);
            std::swap(nXAxisOrientation,nYAxisOrientation);
        }

        if( AxisOrientation_MATHEMATICAL==nXAxisOrientation )
            aMatrix.translate(-MinX, 0.0, 0.0);
        else
            aMatrix.translate(-MaxX, 0.0, 0.0);
        if( AxisOrientation_MATHEMATICAL==nYAxisOrientation )
            aMatrix.translate(0.0, -MinY, 0.0);
        else
            aMatrix.translate(0.0, -MaxY, 0.0);
        if( AxisOrientation_MATHEMATICAL==nZAxisOrientation )
            aMatrix.translate(0.0, 0.0, -MaxZ);//z direction in draw is reverse mathematical direction
        else
            aMatrix.translate(0.0, 0.0, -MinZ);

        double fWidthX = MaxX - MinX;
        double fWidthY = MaxY - MinY;
        double fWidthZ = MaxZ - MinZ;

        double fScaleDirectionX = AxisOrientation_MATHEMATICAL==nXAxisOrientation ? 1.0 : -1.0;
        double fScaleDirectionY = AxisOrientation_MATHEMATICAL==nYAxisOrientation ? 1.0 : -1.0;
        double fScaleDirectionZ = AxisOrientation_MATHEMATICAL==nZAxisOrientation ? -1.0 : 1.0;

        aMatrix.scale(fScaleDirectionX*FIXED_SIZE_FOR_3D_CHART_VOLUME/fWidthX,
			fScaleDirectionY*FIXED_SIZE_FOR_3D_CHART_VOLUME/fWidthY,
	        fScaleDirectionZ*FIXED_SIZE_FOR_3D_CHART_VOLUME/fWidthZ);

        aMatrix = m_aMatrixScreenToScene*aMatrix;

        m_xTransformationLogicToScene = new Linear3DTransformation(B3DHomMatrixToHomogenMatrix( aMatrix ),m_bSwapXAndY);
    }
    return m_xTransformationLogicToScene;
}
=====================================================================
Found a 41 line (237 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/include.c
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_include.c

	}

    if (fd >= 0)
    {
        if (++incdepth > NINC )
            error(FATAL, "#%s too deeply nested", import ? "import" : "include");
		if (Xflag)
			genimport(fname, angled, iname, import);
 		if (Iflag)
			error(INFO, "Open %s file [%s]", import ? "import" : "include", iname );

        for (i = NINCLUDE - 1; i >= 0; i--)
        {
            if ((wraplist[i].file != NULL) &&
			    (strncmp(wraplist[i].file, iname, strlen(wraplist[i].file)) == 0))
				break;
		}

        setsource((char *) newstring((uchar *) iname, strlen(iname), 0), i, fd, NULL, (i >= 0) ? 1 : 0);

        if (!Pflag)
            genline();
    }
    else
    {
        trp->tp = trp->bp + 2;
        error(ERROR, "Could not find %s file %r", import ? "import" : "include", trp);
    }
    return;
syntax:
    error(ERROR, "Syntax error in #%s", import ? "import" : "include");
    return;
}

/*
 * Generate a line directive for cursource
 */
void
    genline(void)
{
    static Token ta = {UNCLASS, 0, 0, 0, NULL, 0};
=====================================================================
Found a 8 line (237 tokens) duplication in the following files: 
Starting at line 1148 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1242 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 10 line (237 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1148 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,17,17, 0, 0,// 0cc0 - 0ccf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cd0 - 0cdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ce0 - 0cef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cf0 - 0cff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d00 - 0d0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d10 - 0d1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d20 - 0d2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d30 - 0d3f
     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
=====================================================================
Found a 9 line (237 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1017 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0400 - 040f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0410 - 041f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0420 - 042f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0430 - 043f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0440 - 044f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0450 - 045f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0460 - 046f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0470 - 047f
     0, 0, 0,17,17,17,17, 0,17,17, 0, 0, 0, 0, 0, 0,// 0480 - 048f
=====================================================================
Found a 32 line (236 tokens) duplication in the following files: 
Starting at line 636 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 853 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readPatternFieldModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readBorderProps( this, aStyle ))
        aStyle._set |= 0x4;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }
    
    // collect elements
    readDefaults();
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );   
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );  
    readBoolAttr( OUSTR("HideInactiveSelection"),
                  OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) ); 
    readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
=====================================================================
Found a 63 line (236 tokens) duplication in the following files: 
Starting at line 400 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 473 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

	{
        //=================================================================
        //
        // Folder: Supported commands
        //
        //=================================================================

        static const ucb::CommandInfo aFolderCommandInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                -1,
                getCppuBooleanType()
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                -1,
                getCppuType(
                    static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
                -1,
                getCppuType( static_cast< ucb::TransferInfo * >( 0 ) )
            )
=====================================================================
Found a 5 line (236 tokens) duplication in the following files: 
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 502 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffd8 - ffdf
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe0 - ffe7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe8 - ffef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff0 - fff7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff8 - ffff
=====================================================================
Found a 28 line (236 tokens) duplication in the following files: 
Starting at line 2331 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 2080 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/epict.cxx

						WriteOpcode_Poly( PDM_FRAME, rPolyPoly.GetObject( i ) );
				}
			}
			break;

			case META_FLOATTRANSPARENT_ACTION:
			{
				const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
				
				GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
				Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size		aSrcSize( aTmpMtf.GetPrefSize() );
				const Point		aDestPt( pA->GetPoint() );
				const Size		aDestSize( pA->GetSize() );
				const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long			nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
				}

				nMoveX = aDestPt.X() - aSrcPt.X(), nMoveY = aDestPt.Y() - aSrcPt.Y();

				if( nMoveX || nMoveY )
					aTmpMtf.Move( nMoveX, nMoveY );
=====================================================================
Found a 32 line (236 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uicategorydescription.cxx
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/uicommanddescription.cxx

        virtual                   ~ConfigurationAccess_UICommand();

        //  XInterface, XTypeProvider
		FWK_DECLARE_XINTERFACE
		FWK_DECLARE_XTYPEPROVIDER

        // XNameAccess
        virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
            throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

        virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
            throw (::com::sun::star::uno::RuntimeException);

        virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
            throw (::com::sun::star::uno::RuntimeException);

        // XElementAccess
        virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
            throw (::com::sun::star::uno::RuntimeException);

        virtual sal_Bool SAL_CALL hasElements()
            throw (::com::sun::star::uno::RuntimeException);

        // container.XContainerListener
        virtual void SAL_CALL     elementInserted( const ContainerEvent& aEvent ) throw(RuntimeException);
        virtual void SAL_CALL     elementRemoved ( const ContainerEvent& aEvent ) throw(RuntimeException);
        virtual void SAL_CALL     elementReplaced( const ContainerEvent& aEvent ) throw(RuntimeException);

        // lang.XEventListener
        virtual void SAL_CALL disposing( const EventObject& aEvent ) throw(RuntimeException);

    protected:
=====================================================================
Found a 25 line (236 tokens) duplication in the following files: 
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FDatabaseMetaDataResultSetMetaData.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataImpl.cxx

		DataType::VARCHAR);
	m_mColumns[11] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("NULLABLE"),
		ColumnValue::NO_NULLS,
		1,1,0,
		DataType::INTEGER);
	m_mColumns[12] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("REMARKS"),
		ColumnValue::NULLABLE,
		0,0,0,
		DataType::VARCHAR);
	m_mColumns[13] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("COLUMN_DEF"),
		ColumnValue::NULLABLE,
		0,0,0,
		DataType::VARCHAR);
	m_mColumns[14] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("SQL_DATA_TYPE"),
		ColumnValue::NO_NULLS,
		1,1,0,
		DataType::INTEGER);
	m_mColumns[15] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("SQL_DATETIME_SUB"),
		ColumnValue::NO_NULLS,
		1,1,0,
		DataType::INTEGER);
	m_mColumns[16] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("CHAR_OCTET_LENGTH"),
		ColumnValue::NO_NULLS,
		1,1,0,
		DataType::INTEGER);
=====================================================================
Found a 36 line (236 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxchar.cxx

			aTmp.nByte = *p->pByte; goto ref;
		case SbxBYREF | SbxINTEGER:
		case SbxBYREF | SbxBOOL:
			aTmp.nInteger = *p->pInteger; goto ref;
		case SbxBYREF | SbxLONG:
			aTmp.nLong = *p->pLong; goto ref;
		case SbxBYREF | SbxULONG:
			aTmp.nULong = *p->pULong; goto ref;
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			aTmp.nUShort = *p->pUShort; goto ref;
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
		case SbxBYREF | SbxSALINT64:
			aTmp.nInt64 = *p->pnInt64; goto ref;
		case SbxBYREF | SbxSALUINT64:
			aTmp.uInt64 = *p->puInt64; goto ref;
		ref:
			aTmp.eType = SbxDataType( p->eType & 0x0FFF );
			p = &aTmp; goto start;

		default:
			SbxBase::SetError( SbxERR_CONVERSION ); nRes = 0;
	}
	return nRes;
}

void ImpPutChar( SbxValues* p, xub_Unicode n )
=====================================================================
Found a 38 line (235 tokens) duplication in the following files: 
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/drawsh.cxx
Starting at line 439 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/drwtxtsh.cxx

void SwDrawTextShell::GetFormTextState(SfxItemSet& rSet)
{
	SwWrtShell &rSh = GetShell();
	SdrView* pDrView = rSh.GetDrawView();
	const SdrMarkList& rMarkList = pDrView->GetMarkedObjectList();
	const SdrObject* pObj = NULL;
	SvxFontWorkDialog* pDlg = NULL;

	const USHORT nId = SvxFontWorkChildWindow::GetChildWindowId();

	SfxViewFrame* pVFrame = GetView().GetViewFrame();
	if ( pVFrame->HasChildWindow(nId) )
		pDlg = (SvxFontWorkDialog*)(pVFrame->GetChildWindow(nId)->GetWindow());

	if ( rMarkList.GetMarkCount() == 1 )
		pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();

	if ( pObj == NULL || !pObj->ISA(SdrTextObj) ||
		!((SdrTextObj*) pObj)->HasText() )
	{
#define	XATTR_ANZ 12
		static const USHORT nXAttr[ XATTR_ANZ ] =
		{ 	XATTR_FORMTXTSTYLE, XATTR_FORMTXTADJUST, XATTR_FORMTXTDISTANCE,
			XATTR_FORMTXTSTART, XATTR_FORMTXTMIRROR, XATTR_FORMTXTSTDFORM,
			XATTR_FORMTXTHIDEFORM, XATTR_FORMTXTOUTLINE, XATTR_FORMTXTSHADOW,
			XATTR_FORMTXTSHDWCOLOR, XATTR_FORMTXTSHDWXVAL, XATTR_FORMTXTSHDWYVAL
		};
		for( USHORT i = 0; i < XATTR_ANZ; )
			rSet.DisableItem( nXAttr[ i++ ] );
	}
	else
	{
		if ( pDlg )
			pDlg->SetColorTable(XColorTable::GetStdColorTable());

		pDrView->GetAttributes( rSet );
	}
}
=====================================================================
Found a 45 line (235 tokens) duplication in the following files: 
Starting at line 431 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

String OFlatTable::getEntry()
{
	::rtl::OUString sURL;
	try
	{
		Reference< XResultSet > xDir = m_pConnection->getDir()->getStaticResultSet();
		Reference< XRow> xRow(xDir,UNO_QUERY);
		::rtl::OUString sName;
		::rtl::OUString sExt;

		INetURLObject aURL;
		xDir->beforeFirst();
		static const ::rtl::OUString s_sSeparator(RTL_CONSTASCII_USTRINGPARAM("/"));
		while(xDir->next())
		{
			sName = xRow->getString(1);
			aURL.SetSmartProtocol(INET_PROT_FILE);
			String sUrl = m_pConnection->getURL() +  s_sSeparator + sName;
			aURL.SetSmartURL( sUrl );

			// cut the extension
			sExt = aURL.getExtension();

			// name and extension have to coincide
			if ( m_pConnection->matchesExtension( sExt ) )
			{
				sName = sName.replaceAt(sName.getLength()-(sExt.getLength()+1),sExt.getLength()+1,::rtl::OUString());
				if ( sName == m_Name )
				{
					Reference< XContentAccess > xContentAccess( xDir, UNO_QUERY );
					sURL = xContentAccess->queryContentIdentifierString();
					break;
				}
			}
		}
		xDir->beforeFirst(); // move back to before first record
	}
	catch(Exception&)
	{
		OSL_ASSERT(0);
	}
	return sURL.getStr();
}
// -------------------------------------------------------------------------
void OFlatTable::refreshColumns()
=====================================================================
Found a 60 line (235 tokens) duplication in the following files: 
Starting at line 602 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/verifyinput.cxx
Starting at line 711 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/verifyinput.cxx

        void verifyInput( const rendering::FloatingPointBitmapLayout&	bitmapLayout,
                          const char*									pStr,
                          const uno::Reference< uno::XInterface >&		xIf,
                          ::sal_Int16									nArgPos )
        {
            (void)pStr; (void)xIf; (void)nArgPos;

            if( bitmapLayout.ScanLines < 0 )
            {
#if OSL_DEBUG_LEVEL > 0
                throw lang::IllegalArgumentException(
                    ::rtl::OUString::createFromAscii(pStr) +
                    ::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ScanLines is negative"),
                    xIf,
                    nArgPos );
#else
                throw lang::IllegalArgumentException();
#endif
            }

            if( bitmapLayout.ScanLineBytes < 0 )
            {
#if OSL_DEBUG_LEVEL > 0
                throw lang::IllegalArgumentException(
                    ::rtl::OUString::createFromAscii(pStr) +
                    ::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ScanLineBytes is negative"),
                    xIf,
                    nArgPos );
#else
                throw lang::IllegalArgumentException();
#endif
            }

            if( !bitmapLayout.ColorSpace.is() )
            {
#if OSL_DEBUG_LEVEL > 0
                throw lang::IllegalArgumentException(
                    ::rtl::OUString::createFromAscii(pStr) +
                    ::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's ColorSpace is invalid"),
                    xIf,
                    nArgPos );
#else
                throw lang::IllegalArgumentException();
#endif
            }

            if( bitmapLayout.NumComponents < 0 )
            {
#if OSL_DEBUG_LEVEL > 0
                throw lang::IllegalArgumentException(
                    ::rtl::OUString::createFromAscii(pStr) +
                    ::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's NumComponents is negative"),
                    xIf,
                    nArgPos );
#else
                throw lang::IllegalArgumentException();
#endif
            }

            if( bitmapLayout.Endianness < rendering::Endianness::LITTLE ||
=====================================================================
Found a 30 line (234 tokens) duplication in the following files: 
Starting at line 2022 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx
Starting at line 2100 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx

				UInt32ToSVBT32( pAct->GetBitmapEx().GetChecksum(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetDestPoint().X(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetDestPoint().Y(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetDestSize().Width(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetDestSize().Height(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSrcPoint().X(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSrcPoint().Y(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSrcSize().Width(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSrcSize().Height(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );
			}
			break;

			case( META_MASK_ACTION ):
=====================================================================
Found a 32 line (234 tokens) duplication in the following files: 
Starting at line 5011 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4583 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartMagneticDrumVert[] =
{
	{ 18200, 0 }, { 21600, 10800 }, { 18200, 21600 }, { 3400, 21600 },
	{ 0, 10800 }, { 3400, 0 },

	{ 18200, 0 }, { 14800, 10800 }, { 18200, 21600 }
};
static const sal_uInt16 mso_sptFlowChartMagneticDrumSegm[] =
{
	0x4000, 0xa702, 0x0001, 0xa702, 0x6000, 0x8000,
	0x4000, 0xa702, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartMagneticDrumTextRect[] = 
{
	{ { 3400, 0 }, { 14800, 21600 } }
};
static const SvxMSDffVertPair mso_sptFlowChartMagneticDrumGluePoints[] =
{
	{ 10800, 0 }, { 0, 10800 }, { 10800, 21600 }, { 14800, 10800 }, { 21600, 10800 }
};
static const mso_CustomShape msoFlowChartMagneticDrum =
{
	(SvxMSDffVertPair*)mso_sptFlowChartMagneticDrumVert, sizeof( mso_sptFlowChartMagneticDrumVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartMagneticDrumSegm, sizeof( mso_sptFlowChartMagneticDrumSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartMagneticDrumTextRect, sizeof( mso_sptFlowChartMagneticDrumTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartMagneticDrumGluePoints, sizeof( mso_sptFlowChartMagneticDrumGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 32 line (234 tokens) duplication in the following files: 
Starting at line 4978 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4551 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartMagneticDiskVert[] =
{
	{ 0, 3400 }, { 10800, 0 }, { 21600, 3400 }, { 21600, 18200 },
	{ 10800, 21600 }, { 0, 18200 },

	{ 0, 3400 }, { 10800, 6800 }, { 21600, 3400 }
};
static const sal_uInt16 mso_sptFlowChartMagneticDiskSegm[] =
{
	0x4000, 0xa802, 0x0001, 0xa802, 0x6000, 0x8000,
	0x4000, 0xa802, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartMagneticDiskTextRect[] = 
{
	{ { 0, 6800 }, { 21600, 18200 } }
};
static const SvxMSDffVertPair mso_sptFlowChartMagneticDiskGluePoints[] =
{
	{ 10800, 6800 }, { 10800, 0 }, { 0, 10800 }, { 10800, 21600 }, { 21600, 10800 }
};
static const mso_CustomShape msoFlowChartMagneticDisk =
{
	(SvxMSDffVertPair*)mso_sptFlowChartMagneticDiskVert, sizeof( mso_sptFlowChartMagneticDiskVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartMagneticDiskSegm, sizeof( mso_sptFlowChartMagneticDiskSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartMagneticDiskTextRect, sizeof( mso_sptFlowChartMagneticDiskTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartMagneticDiskGluePoints, sizeof( mso_sptFlowChartMagneticDiskGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 44 line (234 tokens) duplication in the following files: 
Starting at line 818 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 833 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

	for ( USHORT i = 0; i < pExternalImageList->Count(); i++ )
	{
		ExternalImageItemDescriptor* pItem = (*pExternalImageList)[i];
		WriteExternalImage( pItem );
	}

	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_EXTERNALIMAGES )) );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
}

void OWriteImagesDocumentHandler::WriteExternalImage( const ExternalImageItemDescriptor* pExternalImage ) throw
( SAXException, RuntimeException )
{
	AttributeListImpl*			pList = new AttributeListImpl;
	Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY );

    // save required attributes
	pList->addAttribute( m_aAttributeXlinkType,
						 m_aAttributeType,
						 m_aAttributeValueSimple );

	if ( pExternalImage->aURL.Len() > 0 )
	{
		pList->addAttribute( m_aXMLXlinkNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_HREF )),
							 m_aAttributeType,
							 pExternalImage->aURL );
	}

	if ( pExternalImage->aCommandURL.Len() > 0 )
	{
		pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_COMMAND )),
							 m_aAttributeType,
							 pExternalImage->aCommandURL );
	}

	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_EXTERNALENTRY )), xList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );

	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_EXTERNALENTRY )) );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
}

} // namespace framework
=====================================================================
Found a 28 line (234 tokens) duplication in the following files: 
Starting at line 290 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/accelerators/acceleratorexecute.cxx
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/acceleratorexecute.cxx

css::uno::Reference< css::ui::XAcceleratorConfiguration > AcceleratorExecute::st_openModuleConfig(const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR ,
                                                                                                   const css::uno::Reference< css::frame::XFrame >&              xFrame)
{
    css::uno::Reference< css::frame::XModuleManager > xModuleDetection(
        xSMGR->createInstance(::rtl::OUString::createFromAscii("com.sun.star.frame.ModuleManager")),
        css::uno::UNO_QUERY_THROW);

    ::rtl::OUString sModule;
    try
    {
        sModule = xModuleDetection->identify(xFrame);
    }
    catch(const css::uno::RuntimeException& exRuntime)
        { throw exRuntime; }
    catch(const css::uno::Exception&)
        { return css::uno::Reference< css::ui::XAcceleratorConfiguration >(); }

    css::uno::Reference< css::ui::XModuleUIConfigurationManagerSupplier > xUISupplier(
        xSMGR->createInstance(::rtl::OUString::createFromAscii("com.sun.star.ui.ModuleUIConfigurationManagerSupplier")),
        css::uno::UNO_QUERY_THROW);

    css::uno::Reference< css::ui::XUIConfigurationManager >   xUIManager = xUISupplier->getUIConfigurationManager(sModule);
    css::uno::Reference< css::ui::XAcceleratorConfiguration > xAccCfg    (xUIManager->getShortCutManager(), css::uno::UNO_QUERY_THROW);
    return xAccCfg;
}

//-----------------------------------------------
css::uno::Reference< css::ui::XAcceleratorConfiguration > AcceleratorExecute::st_openDocConfig(const css::uno::Reference< css::frame::XModel >& xModel)
=====================================================================
Found a 39 line (233 tokens) duplication in the following files: 
Starting at line 5871 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6179 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

                }
                pVer6 = (WW8_FFN_Ver6*)( ((BYTE*)pVer6) + pVer6->cbFfnM1 + 1 );
            }
        }
        else
        {
            WW8_FFN_Ver8* pVer8 = (WW8_FFN_Ver8*)pA;
            BYTE c2;
            for(USHORT i=0; i<nMax; ++i, ++p)
            {
                p->cbFfnM1   = pVer8->cbFfnM1;
                c2           = *(((BYTE*)pVer8) + 1);

                p->prg       =  c2 & 0x02;
                p->fTrueType = (c2 & 0x04) >> 2;
                // ein Reserve-Bit ueberspringen
                p->ff        = (c2 & 0x70) >> 4;

                p->wWeight   = SVBT16ToShort( *(SVBT16*)&pVer8->wWeight );
                p->chs       = pVer8->chs;
                p->ibszAlt   = pVer8->ibszAlt;

#ifdef __WW8_NEEDS_COPY
                {
                    BYTE nLen = 0x28;
                    for( UINT16* pTmp = pVer8->szFfn;
                        nLen < pVer8->cbFfnM1 + 1 ; ++pTmp, nLen+=2 )
                    {
                        *pTmp = SVBT16ToShort( *(SVBT16*)pTmp );
                    }
                }
#endif // defined __WW8_NEEDS_COPY

                p->sFontname = pVer8->szFfn;
                if (p->ibszAlt)
                {
                    p->sFontname.Append(';');
                    p->sFontname.Append(pVer8->szFfn+p->ibszAlt);
                }
=====================================================================
Found a 46 line (233 tokens) duplication in the following files: 
Starting at line 2111 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2954 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

	WriteAlign(rContents,4);
#endif

    WriteAlign(rContents,4);
    aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("BorderColor"));
    if (aTmp.hasValue())
        aTmp >>= nBorderColor;
    *rContents << ExportColor(nBorderColor);
    pBlockFlags[3] |= 0x02;

    *rContents << nSpecialEffect;
    pBlockFlags[3] |= 0x04;

    WriteAlign(rContents,4);
	*rContents << rSize.Width;
	*rContents << rSize.Height;

#if 0
    aValue.WriteCharArray( *rContents );
#endif

	WriteAlign(rContents,4);

    nFixedAreaLen = static_cast<sal_uInt16>(rContents->Tell()-nOldPos-4);

	bRet = aFontData.Export(rContents,rPropSet);

    rContents->Seek(nOldPos);
	*rContents << nStandardId;
	*rContents << nFixedAreaLen;

	*rContents << pBlockFlags[0];
	*rContents << pBlockFlags[1];
	*rContents << pBlockFlags[2];
	*rContents << pBlockFlags[3];
	*rContents << pBlockFlags[4];
	*rContents << pBlockFlags[5];
	*rContents << pBlockFlags[6];
	*rContents << pBlockFlags[7];

	DBG_ASSERT((rContents.Is() &&
		(SVSTREAM_OK==rContents->GetError())),"damn");
	return bRet;
}

sal_Bool OCX_ListBox::Export(SvStorageRef &rObj,
=====================================================================
Found a 54 line (233 tokens) duplication in the following files: 
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acc_socket.cxx
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/connector/ctr_socket.cxx

			OUString message(RTL_CONSTASCII_USTRINGPARAM("ctr_socket.cxx:SocketConnection::write: error - connection already closed"));

			IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));

			Any any;
			any <<= ioException;

			notifyListeners(this, &_error, callError(any));

			throw ioException;
		}
	}

	void SocketConnection::flush( )
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException)
	{

	}

	void SocketConnection::close()
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException)
	{
			// ensure that close is called only once
		if( 1 == osl_incrementInterlockedCount( (&m_nStatus) ) )
		{
			m_socket.shutdown();
			notifyListeners(this, &_closed, callClosed);
		}
	}

	OUString SocketConnection::getDescription()
			throw( ::com::sun::star::uno::RuntimeException)
	{
		return m_sDescription;
	}



	// XConnectionBroadcaster
	void SAL_CALL SocketConnection::addStreamListener(const Reference<XStreamListener> & aListener) throw(RuntimeException)
	{
		MutexGuard guard(_mutex);

		_listeners.insert(aListener);
	}

	void SAL_CALL SocketConnection::removeStreamListener(const Reference<XStreamListener> & aListener) throw(RuntimeException)
	{
		MutexGuard guard(_mutex);

		_listeners.erase(aListener);
	}
=====================================================================
Found a 33 line (233 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/include.c
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_include.c

    static Token ta = {UNCLASS, 0, 0, 0, NULL, 0};
    static Tokenrow tr = {&ta, &ta, &ta + 1, 1};
    uchar *p;

    ta.t = p = (uchar *) outptr;
    strcpy((char *) p, "#line ");
    p += sizeof("#line ") - 1;
    p = (uchar *) outnum((char *) p, cursource->line);
    *p++ = ' ';
    *p++ = '"';
    if (cursource->filename[0] != '/' && wd[0])
    {
        strcpy((char *) p, wd);
        p += strlen(wd);
        *p++ = '/';
    }
    strcpy((char *) p, cursource->filename);
    p += strlen((char *) p);
    *p++ = '"';
    *p++ = '\n';
    ta.len = (char *) p - outptr;
    outptr = (char *) p;
    tr.tp = tr.bp;
    puttokens(&tr);
}

/*
 * Generate a pragma import/include directive
 */
void
    genimport(char *fname, int angled, char *iname, int import)
{
    static Token ta = {UNCLASS, 0, 0, 0, NULL, 0};
=====================================================================
Found a 8 line (233 tokens) duplication in the following files: 
Starting at line 1148 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1158 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d50 - 0d5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d60 - 0d6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 26 line (233 tokens) duplication in the following files: 
Starting at line 2333 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 1169 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eps/eps.cxx

            }
			break;

			case META_FLOATTRANSPARENT_ACTION:
			{
				const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
				
				GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
				Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size		aSrcSize( aTmpMtf.GetPrefSize() );
				const Point		aDestPt( pA->GetPoint() );
				const Size		aDestSize( pA->GetSize() );
				const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long			nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
				}

				nMoveX = aDestPt.X() - aSrcPt.X(), nMoveY = aDestPt.Y() - aSrcPt.Y();

				if( nMoveX || nMoveY )
					aTmpMtf.Move( nMoveX, nMoveY );
=====================================================================
Found a 48 line (233 tokens) duplication in the following files: 
Starting at line 31 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/tos/putenv.c
Starting at line 31 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsd43/putenv.c
Starting at line 31 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/bsdarm32/putenv.c
Starting at line 31 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/sysvr1/putenv.c

int
putenv( str )/*
===============
   Take a string of the form NAME=value and stick it into the environment.
   We do this by allocating a new set of pointers if we have to add a new
   string and by replacing an existing pointer if the value replaces the value
   of an existing string. */
char *str;
{
   extern char **environ;		/* The current environment. */
   static char **ourenv = NULL;		/* A new environment	    */
   register char **p;
   register char *q;
   int      size;

   /* First search the current environment and see if we can replace a
    * string. */
   for( p=environ; *p; p++ ) {
      register char *s = str;

      for( q = *p; *q && *s && *s == *q; q++, s++ )
	 if( *s == '=' ) {
	    *p = str;
	    return(0);			/* replaced it so go away */
	 }
   }

   /* Ok, can't replace a string so need to grow the environment. */
   size = p - environ + 2;	/* size of new environment */
				/* size of old is size-1   */

   /* It's the first time, so allocate a new environment since we don't know
    * where the old one is comming from. */
   if( ourenv == NULL ) {
      if( (ourenv = (char **) malloc( sizeof(char *)*size )) == NULL )
	 return(1);

      memcpy( (char *)ourenv, (char *)environ, (size-2)*sizeof(char *) );
   }
   else if( (ourenv = (char **)realloc( ourenv, size*sizeof(char *))) == NULL )
      return(1);

   ourenv[--size] = NULL;
   ourenv[--size] = str;

   environ = ourenv;
   return(0);
}
=====================================================================
Found a 64 line (232 tokens) duplication in the following files: 
Starting at line 840 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/prj.cxx
Starting at line 1452 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/prj.cxx

							pDepList2->PutString( new ByteString( aItem ));
						}
					}
					else
					{
						ByteString aItem = yytext;
						if ( aItem == "NULL" )
						{
							// Liste zu Ende
							i = -1;
							bPrjDep= FALSE;
						}
						else
						{
							aProjectName = aDirName.GetToken ( 0, '\\');
							if ( HasProject( aProjectName ))
							{
								pPrj = GetPrj( aProjectName );
								// Projekt exist. schon, neue Eintraege anhaengen
							}
							else
							{
								// neues Project anlegen
								pPrj = new Prj ( aProjectName );
								pPrj->SetPreFix( aPrefix );
								Insert(pPrj,LIST_APPEND);
							}
							pPrj->AddDependencies( aItem );
							pPrj->HasHardDependencies( bHardDep );

							if ( nStarMode == STAR_MODE_RECURSIVE_PARSE ) {
								String sItem( aItem, RTL_TEXTENCODING_ASCII_US );
								InsertSolarList( sItem );
							}
						}

					}
					break;
		}
		/* Wenn dieses Project noch nicht vertreten ist, in die Liste
		   der Solar-Projekte einfuegen */
		if ( i == -1 )
		{
			aProjectName = aDirName.GetToken ( 0, '\\');
			if ( HasProject( aProjectName ))
			{
				pPrj = GetPrj( aProjectName );
				// Projekt exist. schon, neue Eintraege anhaengen
			}
			else
			{
				// neues Project anlegen
				pPrj = new Prj ( aProjectName );
				pPrj->SetPreFix( aPrefix );
				Insert(pPrj,LIST_APPEND);
			}

			pCmdData = new CommandData;
			pCmdData->SetPath( aDirName );
			pCmdData->SetCommandType( nCommandType );
			pCmdData->SetCommandPara( aCommandPara );
			pCmdData->SetOSType( nOSType );
			pCmdData->SetLogFile( aLogFileName );
			pCmdData->SetComment( aCommentString );
=====================================================================
Found a 33 line (232 tokens) duplication in the following files: 
Starting at line 3443 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 3587 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

				{
					SwDoc* pDoc = pFmt->GetDoc();
					SwClientIter aIter( *pFmt );
					//Tabellen ohne Layout (unsichtbare Header/Footer )
					if(0 != aIter.First( TYPE( SwFrm )))
					{
						lcl_FormatTable(pFmt);
						SwTable* pTable = SwTable::FindTable( pFmt );
						SwTableLines &rLines = pTable->GetTabLines();

						// hier muessen die Actions aufgehoben werden
						UnoActionRemoveContext aRemoveContext(pDoc);
						SwTableBox* pTLBox = rLines[0]->GetTabBoxes()[0];
						const SwStartNode* pSttNd = pTLBox->GetSttNd();
						SwPosition aPos(*pSttNd);
						// Cursor in die obere linke Zelle des Ranges setzen
						SwUnoCrsr* pUnoCrsr = pDoc->CreateUnoCrsr(aPos, sal_True);
						pUnoCrsr->Move( fnMoveForward, fnGoNode );
						pUnoCrsr->SetRemainInSection( sal_False );

						SwTableLine* pLastLine = rLines[rLines.Count() - 1];
						SwTableBoxes &rBoxes = pLastLine->GetTabBoxes();
						const SwTableBox* pBRBox = rBoxes[rBoxes.Count() -1];
						pUnoCrsr->SetMark();
						pUnoCrsr->GetPoint()->nNode = *pBRBox->GetSttNd();
						pUnoCrsr->Move( fnMoveForward, fnGoNode );
						SwUnoTableCrsr* pCrsr = *pUnoCrsr;
						pCrsr->MakeBoxSels();

						SfxItemSet aSet(pDoc->GetAttrPool(),
										RES_BOX, RES_BOX,
										SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
										0);
=====================================================================
Found a 93 line (232 tokens) duplication in the following files: 
Starting at line 2798 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_StreamSocket.cxx

namespace osl_StreamSocket
{

    /** testing the methods:
        inline StreamSocket(oslAddrFamily Family = osl_Socket_FamilyInet, 
        oslProtocol Protocol = osl_Socket_ProtocolIp,
        oslSocketType   Type = osl_Socket_TypeStream);

        inline StreamSocket( const StreamSocket & );

        inline StreamSocket( oslSocket Socket , __sal_NoAcquire noacquire );

        inline StreamSocket( oslSocket Socket );
    */

    class ctors : public CppUnit::TestFixture
    {
    public:
        oslSocket sHandle;
        // initialization
        void setUp( )
            {
                sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
            }

        void tearDown( )
            {
                sHandle = NULL;
            }

    
        void ctors_none()
            {
                /// Socket constructor.
                ::osl::StreamSocket ssSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
    
                CPPUNIT_ASSERT_MESSAGE( "test for ctors_none constructor function: check if the stream socket was created successfully.", 
                                        osl_Socket_TypeStream ==  ssSocket.getType( ) );
            }
    
        void ctors_acquire()
            {
                /// Socket constructor.
                ::osl::StreamSocket ssSocket( sHandle );
    
                CPPUNIT_ASSERT_MESSAGE( "test for ctors_acquire constructor function: check if the socket was created successfully", 
                                        osl_Socket_TypeStream == ssSocket.getType( ) );
            }

        void ctors_no_acquire()
            {
                /// Socket constructor.
                ::osl::StreamSocket ssSocket( sHandle, SAL_NO_ACQUIRE );
    
                CPPUNIT_ASSERT_MESSAGE(" test for ctors_no_acquire constructor function: check if the socket was created successfully", 
                                       osl_Socket_TypeStream == ssSocket.getType( ) );
            }
        
        void ctors_copy_ctor()
            {
                /// Socket constructor.
                ::osl::StreamSocket ssSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
                /// Socket copy constructor.
                ::osl::StreamSocket copySocket( ssSocket );
    
                CPPUNIT_ASSERT_MESSAGE(" test for ctors_copy_ctor constructor function: create new Socket instance using copy constructor", 
                                       osl_Socket_TypeStream == copySocket.getType( ) );
            }
        
        CPPUNIT_TEST_SUITE( ctors );
        CPPUNIT_TEST( ctors_none );
        CPPUNIT_TEST( ctors_acquire );
        CPPUNIT_TEST( ctors_no_acquire );
        CPPUNIT_TEST( ctors_copy_ctor );
        CPPUNIT_TEST_SUITE_END();
        
    }; // class ctors
    
    class send_recv: public CppUnit::TestFixture
    {
    public:
        // initialization
        void setUp( )
            {
            }

        void tearDown( )
            {
        
            }
        
        void send_recv1()
            {
=====================================================================
Found a 32 line (232 tokens) duplication in the following files: 
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/accelerators/acceleratorexecute.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/acceleratorexecute.cxx

    return bRet;
}

//-----------------------------------------------
css::awt::KeyEvent AcceleratorExecute::st_VCLKey2AWTKey(const KeyCode& aVCLKey)
{
    css::awt::KeyEvent aAWTKey;
    aAWTKey.Modifiers = 0;
    aAWTKey.KeyCode   = (sal_Int16)aVCLKey.GetCode();
    
	if (aVCLKey.IsShift())
        aAWTKey.Modifiers |= css::awt::KeyModifier::SHIFT; 
	if (aVCLKey.IsMod1())
        aAWTKey.Modifiers |= css::awt::KeyModifier::MOD1; 
	if (aVCLKey.IsMod2())
        aAWTKey.Modifiers |= css::awt::KeyModifier::MOD2;
    
    return aAWTKey;    
}

//-----------------------------------------------
KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
{
    sal_Bool bShift = ((aAWTKey.Modifiers & css::awt::KeyModifier::SHIFT) == css::awt::KeyModifier::SHIFT );
    sal_Bool bMod1  = ((aAWTKey.Modifiers & css::awt::KeyModifier::MOD1 ) == css::awt::KeyModifier::MOD1  );
    sal_Bool bMod2  = ((aAWTKey.Modifiers & css::awt::KeyModifier::MOD2 ) == css::awt::KeyModifier::MOD2  );
    USHORT   nKey   = (USHORT)aAWTKey.KeyCode;
    
    return KeyCode(nKey, bShift, bMod1, bMod2);
}
//-----------------------------------------------
::rtl::OUString AcceleratorExecute::findCommand(const css::awt::KeyEvent& aKey)
=====================================================================
Found a 8 line (231 tokens) duplication in the following files: 
Starting at line 1392 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1449 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f70 - 2f7f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f80 - 2f8f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f90 - 2f9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fa0 - 2faf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fb0 - 2fbf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fc0 - 2fcf
    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2fd0 - 2fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2fe0 - 2fef
=====================================================================
Found a 9 line (231 tokens) duplication in the following files: 
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17,17,17,17,17,17,17,17,17,17,17,17,17, 0, 0, 0,// 0fb0 - 0fbf
     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fc0 - 0fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fd0 - 0fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fe0 - 0fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ff0 - 0fff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1000 - 100f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1010 - 101f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,17,// 1020 - 102f
=====================================================================
Found a 9 line (231 tokens) duplication in the following files: 
Starting at line 1148 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1217 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10d0 - 10df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10e0 - 10ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10f0 - 10ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1600 - 160f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1610 - 161f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1620 - 162f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1630 - 163f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1640 - 164f
=====================================================================
Found a 8 line (231 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1242 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 10 line (231 tokens) duplication in the following files: 
Starting at line 1032 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1148 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,17,17, 0, 0,// 0cc0 - 0ccf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cd0 - 0cdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ce0 - 0cef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cf0 - 0cff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d00 - 0d0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d10 - 0d1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d20 - 0d2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d30 - 0d3f
     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
=====================================================================
Found a 10 line (231 tokens) duplication in the following files: 
Starting at line 1018 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0bc0 - 0bcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bd0 - 0bdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0be0 - 0bef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bf0 - 0bff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c00 - 0c0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c10 - 0c1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c20 - 0c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,// 0c30 - 0c3f
    17, 0, 0, 0, 0, 0,17,17,17, 0,17,17,17,17, 0, 0,// 0c40 - 0c4f
=====================================================================
Found a 37 line (231 tokens) duplication in the following files: 
Starting at line 746 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxdocumenthandler.cxx
Starting at line 831 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxdocumenthandler.cxx

                             OUString::valueOf( sal_Int32( nWidth )) );
    }

	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_TOOLBARITEM )), xList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_TOOLBARITEM )) );
}

void OWriteToolBoxDocumentHandler::WriteToolBoxSpace() throw
( SAXException, RuntimeException )
{
    m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_TOOLBARSPACE )), m_xEmptyList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_TOOLBARSPACE )) );
}

void OWriteToolBoxDocumentHandler::WriteToolBoxBreak() throw
( SAXException, RuntimeException )
{
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_TOOLBARBREAK )), m_xEmptyList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_TOOLBARBREAK )) );
}

void OWriteToolBoxDocumentHandler::WriteToolBoxSeparator() throw
( SAXException, RuntimeException )
{
    m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_TOOLBARSEPARATOR )), m_xEmptyList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_TOOLBARSEPARATOR )) );
}

} // namespace framework
=====================================================================
Found a 10 line (231 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1148 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,17,17, 0, 0,// 0cc0 - 0ccf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cd0 - 0cdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ce0 - 0cef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cf0 - 0cff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d00 - 0d0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d10 - 0d1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d20 - 0d2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d30 - 0d3f
     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
=====================================================================
Found a 64 line (231 tokens) duplication in the following files: 
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithAddColumn(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithDropColumn(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getCatalogTerm(  ) throw(SQLException, RuntimeException)
{
	::rtl::OUString aVal;
=====================================================================
Found a 60 line (231 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/except.cxx

using namespace ::std;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;


namespace CPPU_CURRENT_NAMESPACE
{

void dummy_can_throw_anything( char const * )
{
}

//==================================================================================================
static OUString toUNOname( char const * p ) SAL_THROW( () )
{
#if OSL_DEBUG_LEVEL > 1
    char const * start = p;
#endif

    // example: N3com3sun4star4lang24IllegalArgumentExceptionE

	OUStringBuffer buf( 64 );
    OSL_ASSERT( 'N' == *p );
    ++p; // skip N

    while ('E' != *p)
    {
        // read chars count
        long n = (*p++ - '0');
        while ('0' <= *p && '9' >= *p)
        {
            n *= 10;
            n += (*p++ - '0');
        }
        buf.appendAscii( p, n );
        p += n;
        if ('E' != *p)
            buf.append( (sal_Unicode)'.' );
    }

#if OSL_DEBUG_LEVEL > 1
    OUString ret( buf.makeStringAndClear() );
    OString c_ret( OUStringToOString( ret, RTL_TEXTENCODING_ASCII_US ) );
    fprintf( stderr, "> toUNOname(): %s => %s\n", start, c_ret.getStr() );
    return ret;
#else
    return buf.makeStringAndClear();
#endif
}

//==================================================================================================
class RTTI
{
    typedef hash_map< OUString, type_info *, OUStringHash > t_rtti_map;

    Mutex m_mutex;
	t_rtti_map m_rttis;
    t_rtti_map m_generatedRttis;
=====================================================================
Found a 31 line (230 tokens) duplication in the following files: 
Starting at line 636 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 694 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 749 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 802 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readTimeFieldModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readBorderProps( this, aStyle ))
        aStyle._set |= 0x4;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }
    
    // collect elements
    readDefaults();
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
    readBoolAttr( OUSTR("HideInactiveSelection"),
                  OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) );
=====================================================================
Found a 32 line (230 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/XMLIndexBibliographyEntryContext.cxx
Starting at line 1287 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/XMLSectionExport.cxx

	{ XML_BIBLIOGRAPHY_TYPE,    BibliographyDataField::BIBILIOGRAPHIC_TYPE },
	{ XML_BOOKTITLE,			BibliographyDataField::BOOKTITLE },
	{ XML_CHAPTER,				BibliographyDataField::CHAPTER },
	{ XML_CUSTOM1,				BibliographyDataField::CUSTOM1 },
	{ XML_CUSTOM2,				BibliographyDataField::CUSTOM2 },
	{ XML_CUSTOM3,				BibliographyDataField::CUSTOM3 },
	{ XML_CUSTOM4,				BibliographyDataField::CUSTOM4 },
	{ XML_CUSTOM5,				BibliographyDataField::CUSTOM5 },
	{ XML_EDITION,				BibliographyDataField::EDITION },
	{ XML_EDITOR,				BibliographyDataField::EDITOR },
	{ XML_HOWPUBLISHED,		    BibliographyDataField::HOWPUBLISHED },
	{ XML_IDENTIFIER,			BibliographyDataField::IDENTIFIER },
	{ XML_INSTITUTION,			BibliographyDataField::INSTITUTION },
	{ XML_ISBN,				    BibliographyDataField::ISBN },
	{ XML_JOURNAL,				BibliographyDataField::JOURNAL },
	{ XML_MONTH,				BibliographyDataField::MONTH },
	{ XML_NOTE,				    BibliographyDataField::NOTE },
	{ XML_NUMBER,				BibliographyDataField::NUMBER },
	{ XML_ORGANIZATIONS,		BibliographyDataField::ORGANIZATIONS },
	{ XML_PAGES,				BibliographyDataField::PAGES },
	{ XML_PUBLISHER,			BibliographyDataField::PUBLISHER },
	{ XML_REPORT_TYPE,			BibliographyDataField::REPORT_TYPE },
	{ XML_SCHOOL,				BibliographyDataField::SCHOOL },
    { XML_SERIES,				BibliographyDataField::SERIES },
	{ XML_TITLE,				BibliographyDataField::TITLE },
	{ XML_URL,					BibliographyDataField::URL },
	{ XML_VOLUME,				BibliographyDataField::VOLUME },
	{ XML_YEAR,				    BibliographyDataField::YEAR },
	{ XML_TOKEN_INVALID, 0 }
};

void XMLSectionExport::ExportIndexTemplateElement(
=====================================================================
Found a 43 line (230 tokens) duplication in the following files: 
Starting at line 1066 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                ContentProvider* pProvider,
                const rtl::OUString& rContentId )
{
	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
        = new ::ucbhelper::PropertyValueSet( rSMgr );

	sal_Int32 nCount = rProperties.getLength();
	if ( nCount )
	{
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
		sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
		for ( sal_Int32 n = 0; n < nCount; ++n )
		{
            const beans::Property& rProp = pProps[ n ];

			// Process Core properties.

            if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
			{
                xRow->appendString ( rProp, rData.getContentType() );
			}
            else if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
			{
                xRow->appendString ( rProp, rData.getTitle() );
			}
            else if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "IsDocument" ) ) )
			{
                xRow->appendBoolean( rProp, rData.getIsDocument() );
			}
            else if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "IsFolder" ) ) )
			{
                xRow->appendBoolean( rProp, rData.getIsFolder() );
			}
            else if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "Storage" ) ) )
=====================================================================
Found a 32 line (230 tokens) duplication in the following files: 
Starting at line 991 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx
Starting at line 1136 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx

                			aSize = OutputDevice::LogicToLogic( Size(14100, 10000), MAP_100TH_MM, aMapUnit );
                			aSz.Width = aSize.Width();
                			aSz.Height = aSize.Height();
                			xObj->setVisualAreaSize( aObjDesc.mnViewAspect, aSz );
            			}

            			aSize = OutputDevice::LogicToLogic( aSize, aMapUnit, MAP_100TH_MM );
					}

            		Size aMaxSize( mpDoc->GetMaxObjSize() );

            		maDropPos.X() -= Min( aSize.Width(), aMaxSize.Width() ) >> 1;
            		maDropPos.Y() -= Min( aSize.Height(), aMaxSize.Height() ) >> 1;

            		Rectangle       aRect( maDropPos, aSize );
            		SdrOle2Obj*     pObj = new SdrOle2Obj( aObjRef, aName, aRect );
            		SdrPageView*    pPV = GetSdrPageView();
            		ULONG           nOptions = SDRINSERT_SETDEFLAYER;

            		if (mpViewSh!=NULL)
            		{
                		OSL_ASSERT (mpViewSh->GetViewShell()!=NULL);
                		SfxInPlaceClient* pIpClient
                    		= mpViewSh->GetViewShell()->GetIPClient();
                		if (pIpClient!=NULL && pIpClient->IsObjectInPlaceActive())
                    		nOptions |= SDRINSERT_DONTMARK;
            		}

            		InsertObjectAtView( pObj, *pPV, nOptions );

            		if( pImageMap )
                		pObj->InsertUserData( new SdIMapInfo( *pImageMap ) );
=====================================================================
Found a 52 line (230 tokens) duplication in the following files: 
Starting at line 694 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fudraw.cxx
Starting at line 674 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/graphctl.cxx

		{
			const SdrHdlList& rHdlList = pView->GetHdlList();
			SdrHdl* pHdl = rHdlList.GetFocusHdl();

			if(pHdl)
			{
				if(pHdl->GetKind() == HDL_POLY)
				{
					// rescue ID of point with focus
					sal_uInt32 nPol(pHdl->GetPolyNum());
					sal_uInt32 nPnt(pHdl->GetPointNum());

					if(pView->IsPointMarked(*pHdl))
					{
						if(rKEvt.GetKeyCode().IsShift())
						{
							pView->UnmarkPoint(*pHdl);
						}
					}
					else
					{
						if(!rKEvt.GetKeyCode().IsShift())
						{
							pView->UnmarkAllPoints();
						}

						pView->MarkPoint(*pHdl);
					}

					if(0L == rHdlList.GetFocusHdl())
					{
						// restore point with focus
						SdrHdl* pNewOne = 0L;

						for(sal_uInt32 a(0); !pNewOne && a < rHdlList.GetHdlCount(); a++)
						{
							SdrHdl* pAct = rHdlList.GetHdl(a);

							if(pAct
								&& pAct->GetKind() == HDL_POLY
								&& pAct->GetPolyNum() == nPol
								&& pAct->GetPointNum() == nPnt)
							{
								pNewOne = pAct;
							}
						}

						if(pNewOne)
						{
							((SdrHdlList&)rHdlList).SetFocusHdl(pNewOne);
						}
					}
=====================================================================
Found a 48 line (230 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunooptions.cxx

					if (av[i][2] != '\0')
					{
						OString tmp("'-C', please check");
						if (i <= ac - 1)
						{
							tmp += " your input '" + OString(av[i]) + "'";
						}

						throw IllegalArgument(tmp);
					}
					
					if (isValid("-L") || isValid("-CS"))
					{
						OString tmp("'-C' could not be combined with '-L' or '-CS' option");
						throw IllegalArgument(tmp);
					}
					m_options["-C"] = OString("");
					break;
				case 'G':
					if (av[i][2] == 'c')
					{
						if (av[i][3] != '\0')
						{
							OString tmp("'-Gc', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i]) + "'";
							}

							throw IllegalArgument(tmp);
						}

						m_options["-Gc"] = OString("");
						break;
					} else
					if (av[i][2] != '\0')
					{
						OString tmp("'-G', please check");
						if (i <= ac - 1)
						{
							tmp += " your input '" + OString(av[i]) + "'";
						}

						throw IllegalArgument(tmp);
					}
					
					m_options["-G"] = OString("");
					break;
=====================================================================
Found a 37 line (230 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/XMLRangeHelper.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/XMLRangeHelper.cxx

OUStringBuffer lcl_getXMLStringForCell( const /*::chart::*/XMLRangeHelper::Cell & rCell )
{
    ::rtl::OUStringBuffer aBuffer;
    if( rCell.empty())
        return aBuffer;

    sal_Int32 nCol = rCell.nColumn;
    aBuffer.append( (sal_Unicode)'.' );
    if( ! rCell.bRelativeColumn )
        aBuffer.append( (sal_Unicode)'$' );

    // get A, B, C, ..., AA, AB, ... representation of column number
    if( nCol < 26 )
        aBuffer.append( (sal_Unicode)('A' + nCol) );
    else if( nCol < 702 )
    {
        aBuffer.append( (sal_Unicode)('A' + nCol / 26 - 1 ));
        aBuffer.append( (sal_Unicode)('A' + nCol % 26) );
    }
    else    // works for nCol <= 18,278
    {
        aBuffer.append( (sal_Unicode)('A' + nCol / 702 - 1 ));
        aBuffer.append( (sal_Unicode)('A' + (nCol % 702) / 26 ));
        aBuffer.append( (sal_Unicode)('A' + nCol % 26) );
    }

    // write row number as number
    if( ! rCell.bRelativeRow )
        aBuffer.append( (sal_Unicode)'$' );
    aBuffer.append( rCell.nRow + (sal_Int32)1 );

    return aBuffer;
}

void lcl_getSingleCellAddressFromXMLString(
    const ::rtl::OUString& rXMLString,
    sal_Int32 nStartPos, sal_Int32 nEndPos,
=====================================================================
Found a 30 line (229 tokens) duplication in the following files: 
Starting at line 2022 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx
Starting at line 2187 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx

				UInt32ToSVBT32( pAct->GetColor().GetColor(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetDestPoint().X(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetDestPoint().Y(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetDestSize().Width(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetDestSize().Height(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSrcPoint().X(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSrcPoint().Y(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSrcSize().Width(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSrcSize().Height(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );
			}
			break;

			case META_EPS_ACTION :
=====================================================================
Found a 55 line (229 tokens) duplication in the following files: 
Starting at line 747 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/prj.cxx
Starting at line 1358 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/prj.cxx

					pDepList2 = NULL;
					break;
			case 1:
						aDirName = yytext;
					break;
			case 2:
					if ( !strcmp( yytext, ":" ))
					{
						bPrjDep = TRUE;
						bHardDep = FALSE;
						i = 9;
					}
					else if ( !strcmp( yytext, "::" ))
					{
						bPrjDep = TRUE;
						bHardDep = TRUE;
						i = 9;
					}
					else
					{
						bPrjDep = FALSE;
						bHardDep = FALSE;

						aWhat = yytext;
						if ( aWhat == "nmake" )
							nCommandType = COMMAND_NMAKE;
						else if ( aWhat == "get" )
							nCommandType = COMMAND_GET;
						else {
							ULONG nOffset = aWhat.Copy( 3 ).ToInt32();
							nCommandType = sal::static_int_cast< USHORT >(
                                COMMAND_USER_START + nOffset - 1);
						}
					}
					break;
			case 3:
					if ( !bPrjDep )
					{
						aWhat = yytext;
						if ( aWhat == "-" )
						{
							aCommandPara = ByteString();
						}
						else
							aCommandPara = aWhat;
					}
					break;
			case 4:
					if ( !bPrjDep )
					{
						aWhatOS = yytext;
						if ( aWhatOS.GetTokenCount( ',' ) > 1 ) {
							sClientRestriction = aWhatOS.Copy( aWhatOS.GetToken( 0, ',' ).Len() + 1 );
							aWhatOS = aWhatOS.GetToken( 0, ',' );
						}
=====================================================================
Found a 38 line (229 tokens) duplication in the following files: 
Starting at line 1173 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/glossary.cxx
Starting at line 1221 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/glossary.cxx

sal_Bool  SwGlTreeListBox::NotifyCopying(   SvLBoxEntry*  pTarget,
									SvLBoxEntry*  pEntry,
									SvLBoxEntry*& rpNewParent,
									ULONG&        rNewChildPos
								)
{
	pDragEntry = 0;
	// 1. wird in verschiedene Gruppen verschoben?
	// 2. darf in beiden Gruppen geschrieben werden?
	if(!pTarget) //An den Anfang verschieben
	{
		pTarget = GetEntry(0);
	}
	SvLBoxEntry* pSrcParent = GetParent(pEntry);
	SvLBoxEntry* pDestParent =
		GetParent(pTarget) ? GetParent(pTarget) : pTarget;
	sal_Bool bRet = sal_False;
	if(pDestParent != pSrcParent)
	{
		SwGlossaryDlg* pDlg = (SwGlossaryDlg*)Window::GetParent();
		SwWait aWait( *pDlg->pSh->GetView().GetDocShell(), sal_True );

		GroupUserData* pGroupData = (GroupUserData*)pSrcParent->GetUserData();
		String sSourceGroup(pGroupData->sGroupName);
		sSourceGroup += GLOS_DELIM;
		sSourceGroup += String::CreateFromInt32(pGroupData->nPathIdx);

		pDlg->pGlossaryHdl->SetCurGroup(sSourceGroup);
		String sTitle(GetEntryText(pEntry));
		String sShortName(*(String*)pEntry->GetUserData());

		GroupUserData* pDestData = (GroupUserData*)pDestParent->GetUserData();
		String sDestName = pDestData->sGroupName;
		sDestName += GLOS_DELIM;
		sDestName += String::CreateFromInt32(pDestData->nPathIdx);

		bRet = pDlg->pGlossaryHdl->CopyOrMove( sSourceGroup,  sShortName,
						sDestName, sTitle, sal_False );
=====================================================================
Found a 57 line (229 tokens) duplication in the following files: 
Starting at line 3164 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3331 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

                            if (IsEightPlus(GetFIBVersion()))
                            {
                                nFcStart =
                                    WW8PLCFx_PCD::TransformPieceAddress(
                                    nFcStart,bIsUnicode );
                            }

                            nLimitFC = nFcStart + (nCpEnd - nCpStart) *
                                (bIsUnicode ? 2 : 1);

                            //if it doesn't exist, skip it
                            if (!SeekPos(nCpStart))
                                continue;

                            WW8_FC nOne,nSmallest;
                            p->pMemPos = WW8PLCFx_Fc_FKP::GetSprmsAndPos(nOne,
                                nSmallest, p->nSprmsLen);

                            if (nSmallest <= nLimitFC)
                            {
                                p->nEndPos = nCpEnd -
                                    (nLimitFC-nSmallest) / (bIsUnicode ? 2 : 1);
                                break;
                            }
                        }
                    }
                }
                pPieceIter->SetIdx( nOldPos );
            }
            else
                pPcd->AktPieceFc2Cp( p->nStartPos, p->nEndPos,&rSBase );
        }
        else
        {
            p->nStartPos = nAttrStart;
            p->nEndPos = nAttrEnd;
            p->bRealLineEnd = bLineEnd;
        }
    }
    else        // KEINE Piece-Table !!!
    {
        p->nStartPos = rSBase.WW8Fc2Cp( p->nStartPos );
        p->nEndPos   = rSBase.WW8Fc2Cp( p->nEndPos );
        p->bRealLineEnd = ePLCF == PAP;
    }
}

WW8PLCFx& WW8PLCFx_Cp_FKP::operator ++( int )
{
    WW8PLCFx_Fc_FKP::operator ++( 0 );
    // !pPcd: Notbremse
    if ( !bComplex || !pPcd )
        return *this;

    if( GetPCDIdx() >= GetPCDIMax() )           // End of PLCF
    {
        nAttrStart = nAttrEnd = WW8_CP_MAX;
=====================================================================
Found a 36 line (229 tokens) duplication in the following files: 
Starting at line 783 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 798 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

		for ( USHORT i = 0; i < pImageItemList->Count(); i++ )
			WriteImage( (*pImageItemList)[i] );
	}

	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_IMAGES )) );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
}

void OWriteImagesDocumentHandler::WriteImage( const ImageItemDescriptor* pImage ) throw
( SAXException, RuntimeException )
{
	AttributeListImpl*			pList = new AttributeListImpl;
	Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY );

	pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_BITMAPINDEX )),
						 m_aAttributeType,
						 OUString::valueOf( (sal_Int32)pImage->nIndex ) );

	pList->addAttribute( m_aXMLImageNS + OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_COMMAND )),
						 m_aAttributeType,
						 pImage->aCommandURL );

	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_ENTRY )), xList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );

	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_ENTRY )) );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
}

void OWriteImagesDocumentHandler::WriteExternalImageList( const ExternalImageItemListDescriptor* pExternalImageList ) throw
( SAXException, RuntimeException )
{
	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_EXTERNALIMAGES )), m_xEmptyList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );

	for ( USHORT i = 0; i < pExternalImageList->Count(); i++ )
=====================================================================
Found a 36 line (229 tokens) duplication in the following files: 
Starting at line 1287 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/app/AppDetailPageHelper.cxx
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/gallery2/galctrl.cxx

BOOL GalleryPreview::ImplGetGraphicCenterRect( const Graphic& rGraphic, Rectangle& rResultRect ) const
{
	const Size	aWinSize( GetOutputSizePixel() );
	Size		aNewSize( LogicToPixel( rGraphic.GetPrefSize(), rGraphic.GetPrefMapMode() ) );
	BOOL		bRet = FALSE;

	if( aNewSize.Width() && aNewSize.Height() )
	{
		// scale to fit window
		const double fGrfWH = (double) aNewSize.Width() / aNewSize.Height();
		const double fWinWH = (double) aWinSize.Width() / aWinSize.Height();

		if ( fGrfWH < fWinWH )
		{
			aNewSize.Width() = (long) ( aWinSize.Height() * fGrfWH );
			aNewSize.Height()= aWinSize.Height();
		}
		else
		{
			aNewSize.Width() = aWinSize.Width();
			aNewSize.Height()= (long) ( aWinSize.Width() / fGrfWH);
		}

		const Point aNewPos( ( aWinSize.Width()  - aNewSize.Width() ) >> 1,
							 ( aWinSize.Height() - aNewSize.Height() ) >> 1 );

		rResultRect = Rectangle( aNewPos, aNewSize );
		bRet = TRUE;
	}

	return bRet;
}

// ------------------------------------------------------------------------

void GalleryPreview::Paint( const Rectangle& rRect )
=====================================================================
Found a 68 line (228 tokens) duplication in the following files: 
Starting at line 38714 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 39019 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

     case OOXML_ELEMENT_wordprocessingml_tblW:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblWidth(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_jc:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Jc(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tblCellSpacing:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblWidth(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tblInd:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblWidth(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tblBorders:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblBorders(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_shd:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Shd(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tblLayout:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblLayoutType(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tblCellMar:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblCellMar(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tblLook:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_ShortHexNumber(*this));
         }
             break;
     case OOXML_TOKENS_END:
         break;
     default:
         pResult = elementFromRefs(nToken);
              break;
     }

    if (pResult.get() != NULL)
        pResult->setToken(nToken);

    return pResult;
}
     
bool OOXMLContext_wordprocessingml_CT_TblPrExBase::lcl_attribute(TokenEnum_t /*nToken*/, const rtl::OUString & /*rValue*/)
=====================================================================
Found a 27 line (228 tokens) duplication in the following files: 
Starting at line 3065 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2757 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptLightningBoldVert[] =
{
	{ 8458,	0 }, { 0, 3923 }, { 7564, 8416 }, { 4993, 9720 },
	{ 12197, 13904 }, { 9987, 14934 }, { 21600, 21600 }, { 14768, 12911 },
	{ 16558, 12016 }, { 11030, 6840 }, { 12831, 6120 }, { 8458, 0 }
};
static const SvxMSDffTextRectangles mso_sptLightningBoldTextRect[] =
{
	{ { 8680, 7410 }, { 13970, 14190 } }
};
static const SvxMSDffVertPair mso_sptLightningBoldGluePoints[] =
{
	{ 8458, 0 }, { 0, 3923 }, { 4993, 9720 }, { 9987, 14934 }, { 21600, 21600 },
	{ 16558, 12016 }, { 12831, 6120 }
};
static const mso_CustomShape msoLightningBold = 
{
	(SvxMSDffVertPair*)mso_sptLightningBoldVert, sizeof( mso_sptLightningBoldVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptLightningBoldTextRect, sizeof( mso_sptLightningBoldTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptLightningBoldGluePoints, sizeof( mso_sptLightningBoldGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 62 line (228 tokens) duplication in the following files: 
Starting at line 2133 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 808 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saPeerSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_FTP );
			::osl::StreamSocket ssConnection;
			/// launch server socket 
			asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); // sal_True);
			sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket bind address failed.", sal_True == bOK1 );
			sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket listen failed.",  sal_True == bOK2 );
			asAcceptorSocket.enableNonBlockingMode( sal_True );
			asAcceptorSocket.acceptConnection(ssConnection); /// waiting for incoming connection...

			/// launch client socket 
			csConnectorSocket.connect( saTargetSocketAddr, pTimeout );   /// connecting to server...

			/// is receive ready?
			sal_Bool bOK3 = asAcceptorSocket.isRecvReady( pTimeout );
				
			CPPUNIT_ASSERT_MESSAGE( "test for isRecvReady function: setup a connection and then check if it can transmit data.", 
  									( sal_True == bOK3 ) );
		}
	
		
		CPPUNIT_TEST_SUITE( isRecvReady );
		CPPUNIT_TEST( isRecvReady_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class isRecvReady


	/** testing the methods:
		inline sal_Bool	SAL_CALL isSendReady(const TimeValue *pTimeout = 0) const;
	*/
	class isSendReady : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		TimeValue *pTimeout;
		::osl::AcceptorSocket asAcceptorSocket;
		::osl::ConnectorSocket csConnectorSocket;
		
		
		// initialization
		void setUp( )
		{
			pTimeout  = ( TimeValue* )malloc( sizeof( TimeValue ) );
			pTimeout->Seconds = 3;
			pTimeout->Nanosec = 0;
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			free( pTimeout );
			sHandle = NULL;
			asAcceptorSocket.close( );
			csConnectorSocket.close( );
		}

	
		void isSendReady_001()
		{
			::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT );
=====================================================================
Found a 25 line (228 tokens) duplication in the following files: 
Starting at line 1037 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx
Starting at line 1383 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx

        virtual Reference< XPersistObject > SAL_CALL readObject( ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);

public: // XMarkableStream
    virtual sal_Int32 SAL_CALL createMark(void)
		throw (IOException, RuntimeException);
	virtual void SAL_CALL deleteMark(sal_Int32 Mark)			throw (IOException, IllegalArgumentException, RuntimeException);
	virtual void SAL_CALL jumpToMark(sal_Int32 nMark) 		throw (IOException, IllegalArgumentException, RuntimeException);
	virtual void SAL_CALL jumpToFurthest(void) 			throw (IOException, RuntimeException);
	virtual sal_Int32 SAL_CALL offsetToMark(sal_Int32 nMark)
		throw (IOException, IllegalArgumentException, RuntimeException);

public: //XTypeProvider
	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL
	        getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
	virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
            getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);

public: // XServiceInfo
    OUString                     SAL_CALL getImplementationName() throw ();
	Sequence< OUString >         SAL_CALL getSupportedServiceNames(void) throw ();
    sal_Bool                     SAL_CALL supportsService(const OUString& ServiceName) throw ();

private:
	void connectToMarkable();
private:
=====================================================================
Found a 45 line (228 tokens) duplication in the following files: 
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 485 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

										)

static sal_Bool implts_checkAndScaleGraphic( uno::Reference< XGraphic >& rOutGraphic, const uno::Reference< XGraphic >& rInGraphic, sal_Int16 nImageType )
{
    static Size   aNormSize( IMAGE_SIZE_NORMAL, IMAGE_SIZE_NORMAL );
    static Size   aLargeSize( IMAGE_SIZE_LARGE, IMAGE_SIZE_LARGE );

    if ( !rInGraphic.is() )
    {
        rOutGraphic = Image().GetXGraphic();
        return sal_False;
    }

    // Check size and scale it
    Image  aImage( rInGraphic );
    Size   aSize = aImage.GetSizePixel();
    bool   bMustScale( false );

    if (( nImageType == ImageType_Color_Large ) ||
        ( nImageType == ImageType_HC_Large ))
        bMustScale = ( aSize != aLargeSize );
    else
        bMustScale = ( aSize != aNormSize );

    if ( bMustScale )
    {
        BitmapEx aBitmap = aImage.GetBitmapEx();
        aBitmap.Scale( aNormSize );
        aImage = Image( aBitmap );
        rOutGraphic = aImage.GetXGraphic();
    }
    else
        rOutGraphic = rInGraphic;
    return sal_True;
}

static sal_Int16 implts_convertImageTypeToIndex( sal_Int16 nImageType )
{
    sal_Int16 nIndex( 0 );
    if ( nImageType & ::com::sun::star::ui::ImageType::SIZE_LARGE )
        nIndex += 1;
    if ( nImageType & ::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST )
        nIndex += 2;
    return nIndex;
}
=====================================================================
Found a 23 line (228 tokens) duplication in the following files: 
Starting at line 1229 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1015 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/emfwr.cxx

			case META_FLOATTRANSPARENT_ACTION:
			{
				const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pAction;
				
				GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
				Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size		aSrcSize( aTmpMtf.GetPrefSize() );
				const Point		aDestPt( pA->GetPoint() );
				const Size		aDestSize( pA->GetSize() );
				const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long			nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
				}

				nMoveX = aDestPt.X() - aSrcPt.X(), nMoveY = aDestPt.Y() - aSrcPt.Y();

				if( nMoveX || nMoveY )
					aTmpMtf.Move( nMoveX, nMoveY );
=====================================================================
Found a 19 line (228 tokens) duplication in the following files: 
Starting at line 929 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 848 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

            }
#endif
        }

#ifndef _SVG_USE_NATIVE_TEXTDECORATION
		// write strikeout if neccessary
		if( rFont.GetStrikeout() || rFont.GetUnderline() )
		{
			Polygon		aPoly( 4 );
			const long	nLineHeight = Max( (long) FRound( aMetric.GetLineHeight() * 0.05 ), (long) 1 );

			if( rFont.GetStrikeout() )
			{
				const long	nYLinePos = aBaseLinePos.Y() - FRound( aMetric.GetAscent() * 0.26 );

				aPoly[ 0 ].X() = aBaseLinePos.X(); aPoly[ 0 ].Y() = nYLinePos - ( nLineHeight >> 1 );
				aPoly[ 1 ].X() = aBaseLinePos.X() + aNormSize.Width() - 1; aPoly[ 1 ].Y() = aPoly[ 0 ].Y();
				aPoly[ 2 ].X() = aPoly[ 1 ].X(); aPoly[ 2 ].Y() = aPoly[ 0 ].Y() + nLineHeight - 1;
				aPoly[ 3 ].X() = aPoly[ 0 ].X(); aPoly[ 3 ].Y() = aPoly[ 2 ].Y();
=====================================================================
Found a 5 line (227 tokens) duplication in the following files: 
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 550 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

/* 5 */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* 6 */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* 7 */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* 8 */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* 9 */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
=====================================================================
Found a 57 line (227 tokens) duplication in the following files: 
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/linkdlg2.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/linkdlg.cxx

			SvBaseLinkRef xLink = aLnkArr[ n ];

			// suche erstmal im Array nach dem Eintrag
			for( USHORT i = 0; i < pLinkMgr->GetLinks().Count(); ++i )
				if( &xLink == *pLinkMgr->GetLinks()[ i ] )
				{
					xLink->SetUseCache( FALSE );
					SetType( *xLink, aPosArr[ n ], xLink->GetUpdateMode() );
					xLink->SetUseCache( TRUE );
					break;
				}
		}

		// falls jemand der Meinung ist, seine Links auszutauschen (SD)
		SvLinkManager* pNewMgr = pLinkMgr;
		pLinkMgr = 0;
		SetManager( pNewMgr );


		if( 0 == (pE = rListBox.GetEntry( aPosArr[ 0 ] )) ||
			pE->GetUserData() != aLnkArr[ 0 ] )
		{
			// suche mal den Link
			pE = rListBox.First();
			while( pE )
			{
				if( pE->GetUserData() == aLnkArr[ 0 ] )
					break;
				pE = rListBox.Next( pE );
			}

			if( !pE )
				pE = rListBox.FirstSelected();
		}

		if( pE )
		{
			SvLBoxEntry* pSelEntry = rListBox.FirstSelected();
			if( pE != pSelEntry )
				rListBox.Select( pSelEntry, FALSE );
			rListBox.Select( pE );
			rListBox.MakeVisible( pE );
		}
	}
	return 0;
}

/*
IMPL_LINK_INLINE_START( SvBaseLinksDlg, OpenSourceClickHdl, PushButton *, pPushButton )
{
	DBG_ASSERT( !this, "Open noch nicht impl." )
	return 0;
}
IMPL_LINK_INLINE_END( SvBaseLinksDlg, OpenSourceClickHdl, PushButton *, pPushButton )
*/

IMPL_LINK( SvBaseLinksDlg, ChangeSourceClickHdl, PushButton *, pPushButton )
=====================================================================
Found a 39 line (227 tokens) duplication in the following files: 
Starting at line 648 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/viewshe2.cxx
Starting at line 699 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/viewshe2.cxx

		pPage = GetDoc()->GetSdPage(i, ePageKind);

		SdUndoAction* pUndo = new SdPageFormatUndoAction(GetDoc(), pPage,
								pPage->GetSize(),
								pPage->GetLftBorder(), pPage->GetRgtBorder(),
								pPage->GetUppBorder(), pPage->GetLwrBorder(),
								pPage->IsScaleObjects(),
								pPage->GetOrientation(),
								pPage->GetPaperBin(),
								pPage->IsBackgroundFullSize(),
								rNewSize,
								nLeft, nRight,
								nUpper, nLower,
								bScaleAll,
								eOrientation,
								nPaperBin,
								bBackgroundFullSize);
		pUndoGroup->AddAction(pUndo);

		if (rNewSize.Width() > 0 ||
			nLeft  >= 0 || nRight >= 0 || nUpper >= 0 || nLower >= 0)
		{
			Rectangle aNewBorderRect(nLeft, nUpper, nRight, nLower);
			pPage->ScaleObjects(rNewSize, aNewBorderRect, bScaleAll);

			if (rNewSize.Width() > 0)
				pPage->SetSize(rNewSize);
		}

		if( nLeft  >= 0 || nRight >= 0 || nUpper >= 0 || nLower >= 0 )
		{
			pPage->SetBorder(nLeft, nUpper, nRight, nLower);
		}

		pPage->SetOrientation(eOrientation);
		pPage->SetPaperBin( nPaperBin );
		pPage->SetBackgroundFullSize( bBackgroundFullSize );

		if ( ePageKind == PK_STANDARD )
=====================================================================
Found a 23 line (227 tokens) duplication in the following files: 
Starting at line 2517 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 1474 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/sfxbasecontroller.cxx

void ImplInitMouseEvent( ::com::sun::star::awt::MouseEvent& rEvent, const MouseEvent& rEvt )
{
	rEvent.Modifiers = 0;
	if ( rEvt.IsShift() )
		rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::SHIFT;
	if ( rEvt.IsMod1() )
	rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD1;
	if ( rEvt.IsMod2() )
		rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD2;

	rEvent.Buttons = 0;
	if ( rEvt.IsLeft() )
		rEvent.Buttons |= ::com::sun::star::awt::MouseButton::LEFT;
	if ( rEvt.IsRight() )
		rEvent.Buttons |= ::com::sun::star::awt::MouseButton::RIGHT;
	if ( rEvt.IsMiddle() )
		rEvent.Buttons |= ::com::sun::star::awt::MouseButton::MIDDLE;

	rEvent.X = rEvt.GetPosPixel().X();
	rEvent.Y = rEvt.GetPosPixel().Y();
	rEvent.ClickCount = rEvt.GetClicks();
	rEvent.PopupTrigger = sal_False;
}
=====================================================================
Found a 9 line (227 tokens) duplication in the following files: 
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 569 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* UnoParamValue */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, /* !"#$%&'()*+,-./*/
=====================================================================
Found a 61 line (227 tokens) duplication in the following files: 
Starting at line 1287 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/digest.c
Starting at line 1475 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/digest.c

	if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmSHA1))
		return rtl_Digest_E_Algorithm;

	if (nDatLen == 0)
		return rtl_Digest_E_None;

	ctx = &(pImpl->m_context);

	len = ctx->m_nL + (nDatLen << 3);
	if (len < ctx->m_nL) ctx->m_nH += 1;
	ctx->m_nH += (nDatLen >> 29);
	ctx->m_nL  = len;

	if (ctx->m_nDatLen)
	{
		sal_uInt8  *p = (sal_uInt8 *)(ctx->m_pData) + ctx->m_nDatLen;
		sal_uInt32  n = DIGEST_CBLOCK_SHA - ctx->m_nDatLen;

		if (nDatLen < n)
		{
			rtl_copyMemory (p, d, nDatLen);
			ctx->m_nDatLen += nDatLen;

			return rtl_Digest_E_None;
		}

		rtl_copyMemory (p, d, n);
		d       += n;
		nDatLen -= n;

#ifndef OSL_BIGENDIAN
		__rtl_digest_swapLong (ctx->m_pData, DIGEST_LBLOCK_SHA);
#endif /* OSL_BIGENDIAN */

		__rtl_digest_updateSHA (ctx);
		ctx->m_nDatLen = 0;
	}

	while (nDatLen >= DIGEST_CBLOCK_SHA)
	{
		rtl_copyMemory (ctx->m_pData, d, DIGEST_CBLOCK_SHA);
		d       += DIGEST_CBLOCK_SHA;
		nDatLen -= DIGEST_CBLOCK_SHA;

#ifndef OSL_BIGENDIAN
		__rtl_digest_swapLong (ctx->m_pData, DIGEST_LBLOCK_SHA);
#endif /* OSL_BIGENDIAN */

		__rtl_digest_updateSHA (ctx);
	}

	rtl_copyMemory (ctx->m_pData, d, nDatLen);
	ctx->m_nDatLen = nDatLen;

	return rtl_Digest_E_None;
}

/*
 * rtl_digest_getSHA1.
 */
rtlDigestError SAL_CALL rtl_digest_getSHA1 (
=====================================================================
Found a 8 line (227 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1158 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d50 - 0d5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d60 - 0d6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 8 line (227 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10a0 - 10af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10b0 - 10bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10c0 - 10cf
=====================================================================
Found a 8 line (227 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1035 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0510 - 051f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0520 - 052f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0530 - 053f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0540 - 054f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 22 line (227 tokens) duplication in the following files: 
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx
Starting at line 1016 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/emfwr.cxx

			{
				const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pAction;
				
				GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
				Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size		aSrcSize( aTmpMtf.GetPrefSize() );
				const Point		aDestPt( pA->GetPoint() );
				const Size		aDestSize( pA->GetSize() );
				const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long			nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
				}

				nMoveX = aDestPt.X() - aSrcPt.X(), nMoveY = aDestPt.Y() - aSrcPt.Y();

				if( nMoveX || nMoveY )
					aTmpMtf.Move( nMoveX, nMoveY );
=====================================================================
Found a 17 line (226 tokens) duplication in the following files: 
Starting at line 1232 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedxv.cxx
Starting at line 1296 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedxv.cxx

        BOOL bPostIt=bSelMode;
        if (!bPostIt) {
            Point aPt(rMEvt.GetPosPixel());
            if (pWin!=NULL) aPt=pWin->PixelToLogic(aPt);
            else if (pTextEditWin!=NULL) aPt=pTextEditWin->PixelToLogic(aPt);
            bPostIt=IsTextEditHit(aPt,nHitTolLog);
        }
        if (bPostIt) {
            Point aPixPos(rMEvt.GetPosPixel());
            Rectangle aR(pWin->LogicToPixel(pTextEditOutlinerView->GetOutputArea()));
            if (aPixPos.X()<aR.Left  ()) aPixPos.X()=aR.Left  ();
            if (aPixPos.X()>aR.Right ()) aPixPos.X()=aR.Right ();
            if (aPixPos.Y()<aR.Top   ()) aPixPos.Y()=aR.Top   ();
            if (aPixPos.Y()>aR.Bottom()) aPixPos.Y()=aR.Bottom();
            MouseEvent aMEvt(aPixPos,rMEvt.GetClicks(),rMEvt.GetMode(),
                             rMEvt.GetButtons(),rMEvt.GetModifier());
            if (pTextEditOutlinerView->MouseMove(aMEvt) && bSelMode) {
=====================================================================
Found a 38 line (226 tokens) duplication in the following files: 
Starting at line 933 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx
Starting at line 1001 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx

			TENANTTYPE tType;
			HRESULT hr = OleQueryCreateFromData( pDO );
			if( S_OK == GetScode( hr ) )
				tType=TENANTTYPE_EMBEDDEDOBJECTFROMDATA;
			else if( OLE_S_STATIC == GetScode( hr ) )
				tType=TENANTTYPE_STATIC;
			else
			{
				pDO->Release();
				return &xRet;
			}
			xRet = new SvOutPlaceObject();
			xRet->DoInitNew( pIStorage );

			xRet->pImpl->pSO_Cont = new CSO_Cont( 1, NULL, xRet );
			xRet->pImpl->pSO_Cont->AddRef();
			POINTL			ptl;
			SIZEL			szl;
			FORMATETC       fe;
			SETDefFormatEtc(fe, 0, TYMED_NULL);
			UINT uRet = xRet->pImpl->pSO_Cont->Create(tType, pDO, &fe, &ptl, &szl, pIStorage, NULL, 0 );

			if (CREATE_FAILED==uRet)
				xRet = SvOutPlaceObjectRef();
			else
			{
				xRet->pImpl->pSO_Cont->Update();
				xRet->pImpl->pSO_Cont->Invalidate();
				//RECTL rcl;
				//SETRECTL(rcl, 0, 0, szl.cx, szl.cy);
				//xRet->pImpl->pSO_Cont->RectSet(&rcl, FALSE, TRUE);
				xRet->SetVisAreaSize( Size( szl.cx, szl.cy ) );
				WIN_BOOL fSetExtent;
				xRet->pImpl->pSO_Cont->GetInfo( xRet->pImpl->dwAspect, fSetExtent );
				xRet->pImpl->bSetExtent = fSetExtent;
			}
			pDO->Release();
		}
=====================================================================
Found a 60 line (226 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/checksingleton.cxx
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/regcompare.cxx

sal_Bool isFileUrl(const OString& fileName)
{
    if (fileName.indexOf("file://") == 0 )
        return sal_True;
    return sal_False;
}

OUString convertToFileUrl(const OString& fileName)
{
    if ( isFileUrl(fileName) )
    {
        return OStringToOUString(fileName, osl_getThreadTextEncoding());
    }

    OUString uUrlFileName;
    OUString uFileName(fileName.getStr(), fileName.getLength(), osl_getThreadTextEncoding());
    if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
    {
        OUString uWorkingDir;
        if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None)
        {
            OSL_ASSERT(false);
        }
        if (FileBase::getAbsoluteFileURL(uWorkingDir, uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    } else
    {
        if (FileBase::getFileURLFromSystemPath(uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    }

    return uUrlFileName;
}

#define U2S( s ) \
	OUStringToOString(s, RTL_TEXTENCODING_UTF8).getStr()
#define S2U( s ) \
	OStringToOUString(s, RTL_TEXTENCODING_UTF8)

struct LessString
{
	sal_Bool operator()(const OUString& str1, const OUString& str2) const
	{
		return (str1 < str2);
	}
};

typedef ::std::set< OUString, LessString > StringSet;

class Options
{
public:
	Options()
		: m_bFullCheck(sal_False)
=====================================================================
Found a 26 line (226 tokens) duplication in the following files: 
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngopt.cxx
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngopt.cxx

	MutexGuard	aGuard( GetLinguMutex() );

	INT16 *pnVal = 0;
	BOOL  *pbVal = 0;

	switch( nWID )
	{
		case WID_IS_GERMAN_PRE_REFORM :		pbVal = &pData->bIsGermanPreReform;	break;
		case WID_IS_USE_DICTIONARY_LIST :	pbVal = &pData->bIsUseDictionaryList;	break;
		case WID_IS_IGNORE_CONTROL_CHARACTERS :	pbVal = &pData->bIsIgnoreControlCharacters;	break;
		case WID_IS_HYPH_AUTO : 			pbVal = &pData->bIsHyphAuto;	break;
		case WID_IS_HYPH_SPECIAL : 			pbVal = &pData->bIsHyphSpecial;	break;
		case WID_IS_SPELL_AUTO : 			pbVal = &pData->bIsSpellAuto;	break;
		case WID_IS_SPELL_HIDE : 			pbVal = &pData->bIsSpellHideMarkings;	break;
		case WID_IS_SPELL_IN_ALL_LANGUAGES :pbVal = &pData->bIsSpellInAllLanguages;	break;
		case WID_IS_SPELL_SPECIAL : 		pbVal = &pData->bIsSpellSpecial;	break;
		case WID_IS_WRAP_REVERSE : 			pbVal = &pData->bIsSpellReverse;	break;
		case WID_DEFAULT_LANGUAGE :			pnVal = &pData->nDefaultLanguage;	break;
		case WID_IS_SPELL_CAPITALIZATION :	pbVal = &pData->bIsSpellCapitalization;		break;
		case WID_IS_SPELL_WITH_DIGITS :		pbVal = &pData->bIsSpellWithDigits;	break;
		case WID_IS_SPELL_UPPER_CASE :		pbVal = &pData->bIsSpellUpperCase;		break;
		case WID_HYPH_MIN_LEADING :			pnVal = &pData->nHyphMinLeading;		break;
		case WID_HYPH_MIN_TRAILING :		pnVal = &pData->nHyphMinTrailing;	break;
		case WID_HYPH_MIN_WORD_LENGTH :		pnVal = &pData->nHyphMinWordLength;	break;
		case WID_DEFAULT_LOCALE :
		{
=====================================================================
Found a 43 line (226 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

    }
    if (args)
    {
        Tokenrow *tap;

        tap = normtokenrow(args);
        dofree(args->bp);
        args = tap;
    }
    np->ap = args;
    np->vp = def;
    np->flag |= ISDEFINED;

	/* build location string of macro definition */
    for (cp = location, s = cursource; s; s = s->next)
        if (*s->filename)
		{
			if (cp != location)
				*cp++ = ' ';
            sprintf((char *)cp, "%s:%d", s->filename, s->line);
			cp += strlen((char *)cp);
		}

	np->loc = newstring(location, strlen((char *)location), 0);

	if (Mflag)
	{
		if (np->ap)
			error(INFO, "Macro definition of %s(%r) [%r]", np->name, np->ap, np->vp);
		else
			error(INFO, "Macro definition of %s [%r]", np->name, np->vp);
	}
}

/*
 * Definition received via -D or -U
 */
void
    doadefine(Tokenrow * trp, int type)
{
    Nlist *np;
	static uchar onestr[2] = "1";
    static Token onetoken[1] = {{NUMBER, 0, 0, 1, onestr, 0}};
=====================================================================
Found a 48 line (226 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunooptions.cxx
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javaoptions.cxx

					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'n':
=====================================================================
Found a 15 line (226 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/test/testcomp.cxx
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/performance/ubobject.cxx

    virtual void SAL_CALL sync() throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual ComplexTypes SAL_CALL complex_in( const ::com::sun::star::test::performance::ComplexTypes& aVal ) throw(::com::sun::star::uno::RuntimeException)
		{ return aVal; }
    virtual ComplexTypes SAL_CALL complex_inout( ::com::sun::star::test::performance::ComplexTypes& aVal ) throw(::com::sun::star::uno::RuntimeException)
		{ return aVal; }
    virtual void SAL_CALL complex_oneway( const ::com::sun::star::test::performance::ComplexTypes& aVal ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual void SAL_CALL complex_noreturn( const ::com::sun::star::test::performance::ComplexTypes& aVal ) throw(::com::sun::star::uno::RuntimeException)
		{}
    virtual Reference< XPerformanceTest > SAL_CALL createObject() throw(::com::sun::star::uno::RuntimeException)
		{ return new ServiceImpl(); }
    virtual void SAL_CALL raiseRuntimeException(  ) throw(::com::sun::star::uno::RuntimeException)
		{ throw _aDummyRE; }
};
=====================================================================
Found a 48 line (226 tokens) duplication in the following files: 
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx

    void * pReturnValue )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );
	
	// pCallStack: ret adr, [ret *], this, params
    void * pThis;
	if( nFunctionIndex & 0x80000000 )
	{
		nFunctionIndex &= 0x7fffffff;
        pThis = pCallStack[2];
	}
	else
    {
        pThis = pCallStack[1];
    }
    pThis = static_cast< char * >(pThis) - nVtableOffset;
	bridges::cpp_uno::shared::CppInterfaceProxy * pCppI
        = bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(
            pThis);
    
	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
	
	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("illegal vtable index!"),
            (XInterface *)pThis );
	}
	
	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pReturnValue );
=====================================================================
Found a 54 line (225 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

	m_pImpl->m_bCountFinal = sal_True;

	rtl::Reference< ::ucbhelper::ResultSet > xResultSet = getResultSet().get();
	if ( xResultSet.is() )
	{
		// Callbacks follow!
		aGuard.clear();

		if ( nOldCount < m_pImpl->m_aResults.size() )
			xResultSet->rowCountChanged(
									nOldCount, m_pImpl->m_aResults.size() );

		xResultSet->rowCountFinal();
	}

	return m_pImpl->m_aResults.size();
}

//=========================================================================
// virtual
sal_uInt32 DataSupplier::currentCount()
{
	return m_pImpl->m_aResults.size();
}

//=========================================================================
// virtual
sal_Bool DataSupplier::isCountFinal()
{
	return m_pImpl->m_bCountFinal;
}

//=========================================================================
// virtual
uno::Reference< sdbc::XRow > 
DataSupplier::queryPropertyValues( sal_uInt32 nIndex  )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
		uno::Reference< sdbc::XRow > xRow = m_pImpl->m_aResults[ nIndex ]->xRow;
		if ( xRow.is() )
		{
			// Already cached.
			return xRow;
		}
	}

	if ( getResult( nIndex ) )
	{
		uno::Reference< sdbc::XRow > xRow = Content::getPropertyValues(
									m_pImpl->m_xSMgr,
									getResultSet()->getProperties(),
=====================================================================
Found a 63 line (225 tokens) duplication in the following files: 
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/cacher/cacheserv.cxx
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/core/ucbserv.cxx
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/sorter/sortmain.cxx
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_services.cxx

using namespace rtl;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::registry;

//=========================================================================
static sal_Bool writeInfo( void * pRegistryKey,
						   const OUString & rImplementationName,
   						   Sequence< OUString > const & rServiceNames )
{
	OUString aKeyName( OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += OUString::createFromAscii( "/UNO/SERVICES" );

	Reference< XRegistryKey > xKey;
	try
	{
		xKey = static_cast< XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
	catch ( InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo(
	void * /*pServiceManager*/, void * pRegistryKey )
{
	return pRegistryKey &&

	//////////////////////////////////////////////////////////////////////
	// Write info into registry.
	//////////////////////////////////////////////////////////////////////

	// @@@ Adjust namespace names.
	writeInfo( pRegistryKey,
=====================================================================
Found a 56 line (225 tokens) duplication in the following files: 
Starting at line 1460 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1505 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

            WW8_CP nCpStart, nCpEnd;
            void* pData;
            if( !pPieceIter->Get( nCpStart, nCpEnd, pData ) )
            {   // ausserhalb PLCFfpcd ?
                ASSERT( !this, "PLCFpcd-WW8Fc2Cp() ging schief" );
                break;
            }
            INT32 nFcStart  = SVBT32ToUInt32( ((WW8_PCD*)pData)->fc );
            if( 8 <= pWw8Fib->nVersion )
                nFcStart = WW8PLCFx_PCD::TransformPieceAddress( nFcStart,
                                                                bIsUnicode );
            INT32 nLen = (nCpEnd - nCpStart) * (bIsUnicode ? 2 : 1);

            /*
            If this cp is inside this piece, or its the last piece and we are
            on the very last cp of that piece
            */
            if (nFcPos >= nFcStart)
            {
                // found
                WW8_CP nTempCp =
                    nCpStart + ((nFcPos - nFcStart) / (bIsUnicode ? 2 : 1));
                if (nFcPos < nFcStart + nLen)
                {
                    pPieceIter->SetIdx( nOldPos );
                    return nTempCp;
                }
                else if (nFcPos == nFcStart + nLen)
                {
                    //Keep this cp as its on a piece boundary because we might
                    //need it if tests fail
                    nFallBackCpEnd = nTempCp;
                }
            }
        }
        // not found
        pPieceIter->SetIdx( nOldPos );      // not found
        /*
        If it was not found, then this is because it has fallen between two
        stools, i.e. either it is the last cp/fc of the last piece, or it is
        the last cp/fc of a disjoint piece.
        */
        return nFallBackCpEnd;
    }
    // No complex file
    if (pWw8Fib->fExtChar)
        bIsUnicode=true;
    return ((nFcPos - pWw8Fib->fcMin) / (bIsUnicode ? 2 : 1));
}

WW8_FC WW8ScannerBase::WW8Cp2Fc(WW8_CP nCpPos, bool* pIsUnicode,
    WW8_CP* pNextPieceCp, bool* pTestFlag) const
{
    if( pTestFlag )
        *pTestFlag = true;
    if( WW8_CP_MAX == nCpPos )
=====================================================================
Found a 51 line (225 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/postuninstall.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/registerextensions.cxx

static std::_tstring GetMsiProperty( MSIHANDLE handle, const std::_tstring& sProperty )
{
    std::_tstring result;
    TCHAR szDummy[1] = TEXT("");
    DWORD nChars = 0;

    if ( MsiGetProperty( handle, sProperty.c_str(), szDummy, &nChars ) == ERROR_MORE_DATA )
    {
        DWORD nBytes = ++nChars * sizeof(TCHAR);
        LPTSTR buffer = reinterpret_cast<LPTSTR>(_alloca(nBytes));
        ZeroMemory( buffer, nBytes );
        MsiGetProperty(handle, sProperty.c_str(), buffer, &nChars);
        result = buffer;
    }

    return result;
}

static BOOL ExecuteCommand( LPCTSTR lpCommand, BOOL bSync )
{
    BOOL                fSuccess = FALSE;
    STARTUPINFO         si;
    PROCESS_INFORMATION pi;

    ZeroMemory( &si, sizeof(si) );
    si.cb = sizeof(si);

    fSuccess = CreateProcess(
        NULL,
        (LPTSTR)lpCommand,
        NULL,
        NULL,
        FALSE,
        0,
        NULL,
        NULL,
        &si,
        &pi
        );

    if ( fSuccess )
    {
        if ( bSync )
            WaitForSingleObject( pi.hProcess, INFINITE );

        CloseHandle( pi.hProcess );
        CloseHandle( pi.hThread );
    }

    return fSuccess;
}
=====================================================================
Found a 23 line (225 tokens) duplication in the following files: 
Starting at line 481 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/fielduno.cxx
Starting at line 1170 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/fielduno.cxx

uno::Sequence<uno::Type> SAL_CALL ScHeaderFieldObj::getTypes() throw(uno::RuntimeException)
{
	static uno::Sequence<uno::Type> aTypes;
	if ( aTypes.getLength() == 0 )
	{
		uno::Sequence<uno::Type> aParentTypes(OComponentHelper::getTypes());
		long nParentLen = aParentTypes.getLength();
		const uno::Type* pParentPtr = aParentTypes.getConstArray();

		aTypes.realloc( nParentLen + 4 );
		uno::Type* pPtr = aTypes.getArray();
		pPtr[nParentLen + 0] = getCppuType((const uno::Reference<text::XTextField>*)0);
		pPtr[nParentLen + 1] = getCppuType((const uno::Reference<beans::XPropertySet>*)0);
		pPtr[nParentLen + 2] = getCppuType((const uno::Reference<lang::XUnoTunnel>*)0);
		pPtr[nParentLen + 3] = getCppuType((const uno::Reference<lang::XServiceInfo>*)0);

		for (long i=0; i<nParentLen; i++)
			pPtr[i] = pParentPtr[i];				// parent types first
	}
	return aTypes;
}

uno::Sequence<sal_Int8> SAL_CALL ScHeaderFieldObj::getImplementationId()
=====================================================================
Found a 58 line (225 tokens) duplication in the following files: 
Starting at line 436 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform8.cxx

					DoMulArgs( ocSum, 1 );
			}
				break;
			case 0x1C: // Error Value							[314 266]
			{
				aIn >> nByte;
				DefTokenId			eOc;
				switch( nByte )
				{
                    case EXC_ERR_NULL:
                    case EXC_ERR_DIV0:
                    case EXC_ERR_VALUE:
                    case EXC_ERR_REF:
                    case EXC_ERR_NAME:
                    case EXC_ERR_NUM:   eOc = ocStop;       break;
                    case EXC_ERR_NA:    eOc = ocNotAvail;   break;
                    default:            eOc = ocNoName;
				}
				aPool << eOc;
				if( eOc != ocStop )
					aPool << ocOpen << ocClose;

				aPool >> aStack;
			}
				break;
			case 0x1D: // Boolean								[315 266]
				aIn >> nByte;
				if( nByte == 0 )
					aPool << ocFalse << ocOpen << ocClose;
				else
					aPool << ocTrue << ocOpen << ocClose;
				aPool >> aStack;
				break;
			case 0x1E: // Integer								[315 266]
				aIn >> nUINT16;
				aStack << aPool.Store( ( double ) nUINT16 );
				break;
			case 0x1F: // Number								[315 266]
				aIn >> fDouble;
				aStack << aPool.Store( fDouble );
				break;
			case 0x40:
			case 0x60:
			case 0x20: // Array Constant						[317 268]
                if( bAllowArrays )
                {
                    aIn >> nByte >> nUINT16;
                    aIn.Ignore( 4 );

                    SCSIZE nC = nByte + 1;
                    SCSIZE nR = nUINT16 + 1;

                    aStack << aPool.StoreMatrix( nC, nR );
                    aExtensions.push_back( EXTENSION_ARRAY );
                }
                else
                {
                    aIn.Ignore( 7 );
=====================================================================
Found a 31 line (225 tokens) duplication in the following files: 
Starting at line 3706 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3863 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

	double fSumSqrDeltaX    = 0.0; // sum of (ValX-MeanX)^2
	for (SCSIZE i = 0; i < nC1; i++)
    {
		for (SCSIZE j = 0; j < nR1; j++)
		{
			if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
			{
				double fValX = pMat1->GetDouble(i,j);
				double fValY = pMat2->GetDouble(i,j);
				fSumX += fValX;
				fSumY += fValY;
				fCount++;
			}
		}
    }
	if (fCount < 1.0)
		SetNoValue();
	else
	{
		double fMeanX = fSumX / fCount;
		double fMeanY = fSumY / fCount;
		for (SCSIZE i = 0; i < nC1; i++)
        {
            for (SCSIZE j = 0; j < nR1; j++)
            {
                if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
                {
                    double fValX = pMat1->GetDouble(i,j);
                    double fValY = pMat2->GetDouble(i,j);
                    fSumDeltaXDeltaY += (fValX - fMeanX) * (fValY - fMeanY);
                    fSumSqrDeltaX    += (fValX - fMeanX) * (fValX - fMeanX);
=====================================================================
Found a 75 line (225 tokens) duplication in the following files: 
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/spelldta.cxx
Starting at line 294 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/spelldta.cxx

    nLanguage   (nLang)
{
}


SpellAlternatives::~SpellAlternatives()
{
}


OUString SAL_CALL SpellAlternatives::getWord()
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	return aWord;
}


Locale SAL_CALL SpellAlternatives::getLocale()
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	return CreateLocale( nLanguage );
}


sal_Int16 SAL_CALL SpellAlternatives::getFailureType()
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	return nType;
}


sal_Int16 SAL_CALL SpellAlternatives::getAlternativesCount()
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	return (INT16) aAlt.getLength();
}


Sequence< OUString > SAL_CALL SpellAlternatives::getAlternatives()
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	return aAlt;
}


void SpellAlternatives::SetWordLanguage(const OUString &rWord, INT16 nLang)
{
	MutexGuard	aGuard( GetLinguMutex() );
	aWord = rWord;
	nLanguage = nLang;
}


void SpellAlternatives::SetFailureType(INT16 nTypeP)
{
	MutexGuard	aGuard( GetLinguMutex() );
	nType = nTypeP;
}


void SpellAlternatives::SetAlternatives( const Sequence< OUString > &rAlt )
{
	MutexGuard	aGuard( GetLinguMutex() );
	aAlt = rAlt;
}


///////////////////////////////////////////////////////////////////////////

}	// namespace linguistic
=====================================================================
Found a 8 line (225 tokens) duplication in the following files: 
Starting at line 1314 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1331 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2280 - 228f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2290 - 229f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22a0 - 22af
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22b0 - 22bf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22c0 - 22cf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22d0 - 22df
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22e0 - 22ef
    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 22f0 - 22ff
=====================================================================
Found a 9 line (225 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1217 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10d0 - 10df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10e0 - 10ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10f0 - 10ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1600 - 160f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1610 - 161f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1620 - 162f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1630 - 163f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1640 - 164f
=====================================================================
Found a 9 line (225 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17,17,17,17,17,17,17,17,17,17,17,17,17, 0, 0, 0,// 0fb0 - 0fbf
     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fc0 - 0fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fd0 - 0fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fe0 - 0fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ff0 - 0fff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1000 - 100f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1010 - 101f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,17,// 1020 - 102f
=====================================================================
Found a 9 line (225 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0bc0 - 0bcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bd0 - 0bdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0be0 - 0bef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bf0 - 0bff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c00 - 0c0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c10 - 0c1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c20 - 0c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,// 0c30 - 0c3f
=====================================================================
Found a 25 line (225 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/CRowSetColumn.cxx
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/CRowSetDataColumn.cxx

		DECL_PROP1(DESCRIPTION,				::rtl::OUString,	READONLY);
		DECL_PROP1(DISPLAYSIZE,				sal_Int32,			READONLY);
		DECL_PROP2(NUMBERFORMAT,			sal_Int32,			BOUND,MAYBEVOID);
		DECL_PROP2(HELPTEXT,			::rtl::OUString,	BOUND,MAYBEVOID);
		DECL_PROP1_BOOL(HIDDEN,	 							BOUND);
		DECL_PROP1_BOOL(ISAUTOINCREMENT,						READONLY);
		DECL_PROP1_BOOL(ISCASESENSITIVE,						READONLY);
		DECL_PROP1_BOOL(ISCURRENCY,								READONLY);
		DECL_PROP1_BOOL(ISDEFINITELYWRITABLE,					READONLY);
		DECL_PROP1(ISNULLABLE,				sal_Int32,			READONLY);
		DECL_PROP1_BOOL(ISREADONLY,								READONLY);
		DECL_PROP1_BOOL(ISROWVERSION,                           READONLY);
		DECL_PROP1_BOOL(ISSEARCHABLE,							READONLY);
		DECL_PROP1_BOOL(ISSIGNED,								READONLY);
		DECL_PROP1_BOOL(ISWRITABLE,								READONLY);
		DECL_PROP1(LABEL,					::rtl::OUString,	READONLY);
		DECL_PROP1(NAME,					::rtl::OUString,	READONLY);
		DECL_PROP1(PRECISION,				sal_Int32,			READONLY);
		DECL_PROP2(RELATIVEPOSITION,	sal_Int32,			BOUND, MAYBEVOID);
		DECL_PROP1(SCALE,					sal_Int32,			READONLY);
		DECL_PROP1(SCHEMANAME,				::rtl::OUString,	READONLY);
		DECL_PROP1(SERVICENAME,				::rtl::OUString,	READONLY);
		DECL_PROP1(TABLENAME,				::rtl::OUString,	READONLY);
		DECL_PROP1(TYPE,					sal_Int32,			READONLY);
		DECL_PROP1(TYPENAME,				::rtl::OUString,	READONLY);
=====================================================================
Found a 24 line (224 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokTestService.cxx
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtfsl/RTFSLParser.cxx

sal_Int32 SAL_CALL RTFSLParser::run( const uno::Sequence< rtl::OUString >& aArguments ) throw (uno::RuntimeException)
{
 
	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
			rtl::OUString arg=aArguments[0];

			uno::Reference<com::sun::star::ucb::XSimpleFileAccess> xFileAccess(
			xFactory->createInstanceWithContext(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SimpleFileAccess")), 
				xContext), uno::UNO_QUERY_THROW );

			rtl_uString *dir=NULL;
			osl_getProcessWorkingDir(&dir);
			rtl::OUString absFileUrl;
			osl_getAbsoluteFileURL(dir, arg.pData, &absFileUrl.pData);
			rtl_uString_release(dir);

			uno::Reference<io::XInputStream> xInputStream = xFileAccess->openFileRead(absFileUrl);
=====================================================================
Found a 40 line (224 tokens) duplication in the following files: 
Starting at line 2050 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx
Starting at line 1069 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/TransformerBase.cxx

	sal_Bool bEncoded = sal_False;

	sal_Int32 nLen = rName.getLength();
	OUStringBuffer aBuffer( nLen );

	for( sal_Int32 i = 0; i < nLen; i++ )
	{
		sal_Unicode c = rName[i];
		sal_Bool bValidChar = sal_False;
		if( c < 0x00ffU )
		{
			bValidChar =
				(c >= 0x0041 && c <= 0x005a) ||
				(c >= 0x0061 && c <= 0x007a) ||
				(c >= 0x00c0 && c <= 0x00d6) ||
				(c >= 0x00d8 && c <= 0x00f6) ||
				(c >= 0x00f8 && c <= 0x00ff) ||
				( i > 0 && ( (c >= 0x0030 && c <= 0x0039) ||
							 c == 0x00b7 || c == '-' || c == '.') );
		}
		else
		{
			if( (c >= 0xf900U && c <= 0xfffeU) ||
			 	(c >= 0x20ddU && c <= 0x20e0U))
			{
				bValidChar = sal_False;
			}
			else if( (c >= 0x02bbU && c <= 0x02c1U) || c == 0x0559 ||
					 c == 0x06e5 || c == 0x06e6 )
			{
				bValidChar = sal_True;
			}
			else if( c == 0x0387 )
			{
				bValidChar = i > 0;
			}
			else
			{
				if( !xCharClass.is() )
				{
=====================================================================
Found a 65 line (224 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgservices.cxx
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_services.cxx

using namespace com::sun::star;

namespace {

//=========================================================================
sal_Bool writeInfo( void * pRegistryKey,
                    const rtl::OUString & rImplementationName,
                    uno::Sequence< rtl::OUString > const & rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo(
	void * /*pServiceManager*/, void * pRegistryKey )
{
	return pRegistryKey &&

	//////////////////////////////////////////////////////////////////////
	// Write info into registry.
	//////////////////////////////////////////////////////////////////////

	// @@@ Adjust namespace names.
	writeInfo( pRegistryKey,
			   ::myucp::ContentProvider::getImplementationName_Static(),
=====================================================================
Found a 49 line (224 tokens) duplication in the following files: 
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/tempfile.cxx
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/tempfile.cxx

        ensuredir( aName );
    }

    // Make sure that directory ends with a separator
    xub_StrLen i = aName.Len();
    if( i>0 && aName.GetChar(i-1) != '/' )
        aName += '/';

    return aName;
}

void CreateTempName_Impl( String& rName, sal_Bool bKeep, sal_Bool bDir = sal_True )
{
    // add a suitable tempname
    // Prefix can have 5 chars, leaving 3 for numbers. 26 ** 3 == 17576
	// ER 13.07.00  why not radix 36 [0-9A-Z] ?!?
	const unsigned nRadix = 26;
    String aName( rName );
    aName += String::CreateFromAscii( "sv" );

    rName.Erase();
    static unsigned long u = Time::GetSystemTicks();
    for ( unsigned long nOld = u; ++u != nOld; )
    {
        u %= (nRadix*nRadix*nRadix);
        String aTmp( aName );
        aTmp += String::CreateFromInt32( (sal_Int32) (unsigned) u, nRadix );
        aTmp += String::CreateFromAscii( ".tmp" );

        if ( bDir )
        {
            FileBase::RC err = Directory::create( aTmp );
            if (  err == FileBase::E_None )
            {
                // !bKeep: only for creating a name, not a file or directory
                if ( bKeep || Directory::remove( aTmp ) == FileBase::E_None )
                    rName = aTmp;
                break;
            }
            else if ( err != FileBase::E_EXIST )
            {
                // if f.e. name contains invalid chars stop trying to create dirs
                break;
            }
        }
        else
        {
            DBG_ASSERT( bKeep, "Too expensive, use directory for creating name!" );
            File aFile( aTmp );
=====================================================================
Found a 32 line (224 tokens) duplication in the following files: 
Starting at line 4453 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4045 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	0x80000000, 0x80000000,
	NULL, 0
};

static const SvxMSDffVertPair mso_sptFlowChartDocumentVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 17360 },
	{ 13050, 17220 }, {	13340, 20770 }, { 5620, 21600 },	// ccp
	{ 2860, 21100 }, { 1850, 20700 }, { 0,	20120 }			// ccp
};
static const sal_uInt16 mso_sptFlowChartDocumentSegm[] =
{
	0x4000, 0x0002, 0x2002, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartDocumentTextRect[] = 
{
	{ { 0, 0 }, { 21600, 17360 } }
};
static const SvxMSDffVertPair mso_sptFlowChartDocumentGluePoints[] =
{
	{ 10800, 0 }, { 0, 10800 }, { 10800, 20320 }, { 21600, 10800 }
};
static const mso_CustomShape msoFlowChartDocument =
{
	(SvxMSDffVertPair*)mso_sptFlowChartDocumentVert, sizeof( mso_sptFlowChartDocumentVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartDocumentSegm, sizeof( mso_sptFlowChartDocumentSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartDocumentTextRect, sizeof( mso_sptFlowChartDocumentTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartDocumentGluePoints, sizeof( mso_sptFlowChartDocumentGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 42 line (224 tokens) duplication in the following files: 
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/filtdlg.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/pfiltdlg.cxx

		aValueEdArr[i]->SetModifyHdl( LINK( this, ScPivotFilterDlg, ValModifyHdl ) );
	}

	// Disable/Enable Logik:

	   (aLbField1.GetSelectEntryPos() != 0)
	&& (aLbField2.GetSelectEntryPos() != 0)
		? aLbConnect1.SelectEntryPos( (USHORT)theQueryData.GetEntry(1).eConnect )
		: aLbConnect1.SetNoSelection();

	   (aLbField2.GetSelectEntryPos() != 0)
	&& (aLbField3.GetSelectEntryPos() != 0)
		? aLbConnect2.SelectEntryPos( (USHORT)theQueryData.GetEntry(2).eConnect )
		: aLbConnect2.SetNoSelection();

	if ( aLbField1.GetSelectEntryPos() == 0 )
	{
		aLbConnect1.Disable();
		aLbField2.Disable();
		aLbCond2.Disable();
		aEdVal2.Disable();
	}
	else if ( aLbConnect1.GetSelectEntryCount() == 0 )
	{
		aLbField2.Disable();
		aLbCond2.Disable();
		aEdVal2.Disable();
	}

	if ( aLbField2.GetSelectEntryPos() == 0 )
	{
		aLbConnect2.Disable();
		aLbField3.Disable();
		aLbCond3.Disable();
		aEdVal3.Disable();
	}
	else if ( aLbConnect2.GetSelectEntryCount() == 0 )
	{
		aLbField3.Disable();
		aLbCond3.Disable();
		aEdVal3.Disable();
	}
=====================================================================
Found a 30 line (224 tokens) duplication in the following files: 
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleCellBase.cxx
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleCellBase.cxx

sal_Int32 SAL_CALL ScAccessibleCellBase::getBackground()
    throw (uno::RuntimeException)
{
    ScUnoGuard aGuard;
    IsObjectValid();
    sal_Int32 nColor(0);

    if (mpDoc)
    {
        SfxObjectShell* pObjSh = mpDoc->GetDocumentShell();
        if ( pObjSh )
        {
            uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( pObjSh->GetModel(), uno::UNO_QUERY );
            if ( xSpreadDoc.is() )
            {
                uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets();
                uno::Reference<container::XIndexAccess> xIndex( xSheets, uno::UNO_QUERY );
                if ( xIndex.is() )
                {
                    uno::Any aTable = xIndex->getByIndex(maCellAddress.Tab());
                    uno::Reference<sheet::XSpreadsheet> xTable;
                    if (aTable>>=xTable)
                    {
                        uno::Reference<table::XCell> xCell = xTable->getCellByPosition(maCellAddress.Col(), maCellAddress.Row());
                        if (xCell.is())
                        {
                            uno::Reference<beans::XPropertySet> xCellProps(xCell, uno::UNO_QUERY);
                            if (xCellProps.is())
                            {
                                uno::Any aAny = xCellProps->getPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNONAME_CELLBACK)));
=====================================================================
Found a 41 line (224 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1478 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
        CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2');
    }
    {
        rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2"));
        CPPUNIT_ASSERT_MESSAGE(
            "rtl::OUString",
=====================================================================
Found a 49 line (224 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/localbe/localschemasupplier.cxx
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/localbe/localsinglebackend.cxx

    uno::Any const aSchemaDataSetting = context->getValueByName(kSchemaDataUrl);
	uno::Sequence< OUString > aSchemas;
	rtl::OUString schemas;

    if (aSchemaDataSetting >>= schemas) 
    {
        fillFromBlankSeparated(schemas, aSchemas) ;
    }
    else 
    {
        aSchemaDataSetting >>=  aSchemas;
    }
    //validate SchemaDataUrls
	mSchemaDataUrls.realloc(aSchemas.getLength());

    sal_Int32 nSchemaLocations = 0;
    sal_Int32 nExistingSchemaLocations = 0;
    for (sal_Int32 j = 0; j < aSchemas.getLength(); ++j)
    {
        bool bOptional = checkOptionalArg(aSchemas[j]);

        if (!bOptional)
			validateFileURL(aSchemas[j],*this);

		else if (!isValidFileURL(aSchemas[j]))
			continue;
		
		OSL_ASSERT(isValidFileURL(aSchemas[j]));

        //NormalizeURL
        implEnsureAbsoluteURL(aSchemas[j]);
        if (!normalizeURL(aSchemas[j],*this,bOptional))
            continue;

        // now we have a correct file URL, which we will use
		mSchemaDataUrls[nSchemaLocations++] = aSchemas[j];
		
        // check existence
		if (!bOptional)
            checkFileExists(aSchemas[j], *this);

        else if(!FileHelper::fileExists(aSchemas[j]))
            continue; // skip the directory check


        checkIfDirectory(aSchemas[j],*this);

        ++nExistingSchemaLocations;
    }
=====================================================================
Found a 43 line (224 tokens) duplication in the following files: 
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

	sal_uInt32 length = 3+ m_typeName.getLength() + strlen(prefix);

	if (bExtended)
		length += m_name.getLength() + 1;

	OStringBuffer tmpBuf(length);

	tmpBuf.append('_');
	tmpBuf.append(typeName);
	tmpBuf.append('_');
	if (bExtended)
	{
		tmpBuf.append(m_name);
		tmpBuf.append('_');
	}
	tmpBuf.append(prefix);
	tmpBuf.append('_');

	OString tmp(tmpBuf.makeStringAndClear().replace('/', '_').toAsciiUpperCase());

	length = 1 + typeName.getLength() + strlen(prefix);
	if (bExtended)
		length += m_name.getLength() + 1;

	tmpBuf.ensureCapacity(length);
	tmpBuf.append(typeName);
	if (bExtended)
	{
		tmpBuf.append('/');
		tmpBuf.append(m_name);
	}
	tmpBuf.append('.');
	tmpBuf.append(prefix);

	o << "#ifndef " << tmp << "\n#include <";
	if (bCaseSensitive)
	{
		o << tmpBuf.makeStringAndClear();
	} else
	{
		o << tmpBuf.makeStringAndClear();
	}
	o << ">\n#endif\n";
=====================================================================
Found a 43 line (223 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_alpha_mask_u8.h
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_alpha_mask_u8.h

        void combine_vspan(int x, int y, cover_type* dst, int num_pix) const
        {
            int xmax = m_rbuf->width() - 1;
            int ymax = m_rbuf->height() - 1;

            int count = num_pix;
            cover_type* covers = dst;

            if(x < 0 || x > xmax)
            {
                memset(dst, 0, num_pix * sizeof(cover_type));
                return;
            }

            if(y < 0)
            {
                count += y;
                if(count <= 0) 
                {
                    memset(dst, 0, num_pix * sizeof(cover_type));
                    return;
                }
                memset(covers, 0, -y * sizeof(cover_type));
                covers -= y;
                y = 0;
            }

            if(y + count > ymax)
            {
                int rest = y + count - ymax - 1;
                count -= rest;
                if(count <= 0) 
                {
                    memset(dst, 0, num_pix * sizeof(cover_type));
                    return;
                }
                memset(covers + count, 0, rest * sizeof(cover_type));
            }

            const int8u* mask = m_rbuf->row(y) + x * Step + Offset;
            do
            {
                *covers = (cover_type)(((*covers) * 
=====================================================================
Found a 43 line (223 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_alpha_mask_u8.h
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_alpha_mask_u8.h

        void combine_hspan(int x, int y, cover_type* dst, int num_pix) const
        {
            int xmax = m_rbuf->width() - 1;
            int ymax = m_rbuf->height() - 1;

            int count = num_pix;
            cover_type* covers = dst;

            if(y < 0 || y > ymax)
            {
                memset(dst, 0, num_pix * sizeof(cover_type));
                return;
            }

            if(x < 0)
            {
                count += x;
                if(count <= 0) 
                {
                    memset(dst, 0, num_pix * sizeof(cover_type));
                    return;
                }
                memset(covers, 0, -x * sizeof(cover_type));
                covers -= x;
                x = 0;
            }

            if(x + count > xmax)
            {
                int rest = x + count - xmax - 1;
                count -= rest;
                if(count <= 0) 
                {
                    memset(dst, 0, num_pix * sizeof(cover_type));
                    return;
                }
                memset(covers + count, 0, rest * sizeof(cover_type));
            }

            const int8u* mask = m_rbuf->row(y) + x * Step + Offset;
            do
            {
                *covers = (cover_type)(((*covers) * 
=====================================================================
Found a 28 line (223 tokens) duplication in the following files: 
Starting at line 4949 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4523 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartMagneticTapeVert[] =
{
	{ 20980, 18150 }, {	20980, 21600 }, { 10670, 21600 },
	{ 4770, 21540 }, { 0, 16720 }, { 0, 10800 },			// ccp
	{ 0, 4840 }, { 4840, 0 }, { 10800, 0 },					// ccp
	{ 16740, 0 }, { 21600, 4840 }, { 21600, 10800 },		// ccp
	{ 21600, 13520 }, {	20550, 16160 }, { 18670, 18170 }	// ccp
};
static const sal_uInt16 mso_sptFlowChartMagneticTapeSegm[] =
{
	0x4000, 0x0002, 0x2004, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartMagneticTapeTextRect[] = 
{
	{ { 3100, 3100 }, { 18500, 18500 } }
};
static const mso_CustomShape msoFlowChartMagneticTape =
{
	(SvxMSDffVertPair*)mso_sptFlowChartMagneticTapeVert, sizeof( mso_sptFlowChartMagneticTapeVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartMagneticTapeSegm, sizeof( mso_sptFlowChartMagneticTapeSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartMagneticTapeTextRect, sizeof( mso_sptFlowChartMagneticTapeTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 18 line (223 tokens) duplication in the following files: 
Starting at line 920 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 844 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptQuadArrowVert[] =	// adjustment1: x 0 - 10800, adjustment2: x 0 - 10800	
{														// adjustment3: y 0 - 10800
	{ 0, 10800 }, { 0 MSO_I, 1 MSO_I }, { 0 MSO_I, 2 MSO_I }, { 2 MSO_I, 2 MSO_I },
	{ 2 MSO_I, 0 MSO_I }, { 1 MSO_I, 0 MSO_I }, { 10800, 0 }, { 3 MSO_I, 0 MSO_I },
	{ 4 MSO_I, 0 MSO_I }, { 4 MSO_I, 2 MSO_I }, { 5 MSO_I, 2 MSO_I }, { 5 MSO_I, 1 MSO_I },
	{ 21600, 10800 }, { 5 MSO_I, 3 MSO_I }, { 5 MSO_I, 4 MSO_I }, { 4 MSO_I, 4 MSO_I },
	{ 4 MSO_I, 5 MSO_I }, { 3 MSO_I, 5 MSO_I }, { 10800, 21600 }, { 1 MSO_I, 5 MSO_I },
	{ 2 MSO_I, 5 MSO_I }, { 2 MSO_I, 4 MSO_I }, { 0 MSO_I, 4 MSO_I }, { 0 MSO_I, 3 MSO_I }
};
static const sal_uInt16 mso_sptQuadArrowSegm[] =
{
	0x4000, 0x0017, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptQuadArrowCalc[] =
{
	{ 0x2000, DFF_Prop_adjust3Value, 0, 0 },
=====================================================================
Found a 43 line (223 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/include.c
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_include.c

    static Token ta = {UNCLASS, 0, 0, 0, NULL, 0};
    static Tokenrow tr = {&ta, &ta, &ta + 1, 1};
    uchar *p;

    ta.t = p = (uchar *) outptr;

	if (import)
		strcpy((char *) p, "#pragma import");
	else
		strcpy((char *) p, "#pragma include");

	p += strlen((char *) p);

	*p++ = '(';

    *p++ = angled ? '<' : '"';
	strcpy((char *) p, fname);
	p += strlen(fname);
    *p++ = angled ? '>' : '"';

	*p++ = ',';

	*p++ = '"';
	strcpy((char *) p, iname);
	p += strlen(iname);
	*p++ = '"';

	*p++ = ')';
    *p++ = '\n';

    ta.len = (char *) p - outptr;
    outptr = (char *) p;
    tr.tp = tr.bp;
    puttokens(&tr);
}

/*
 * Generate a extern C directive
 */
void
    genwrap(int end)
{
    static Token ta = {UNCLASS, 0, 0, 0, NULL, 0};
=====================================================================
Found a 8 line (223 tokens) duplication in the following files: 
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1159 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d60 - 0d6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
     0, 0,17,17,17, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0dd0 - 0ddf
=====================================================================
Found a 33 line (223 tokens) duplication in the following files: 
Starting at line 339 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1621 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

            "css::uno::Type", (a >>= b) && b == getCppuType< sal_Int32 >());
    }
    {
        css::uno::Any b(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("2")));
        CPPUNIT_ASSERT_MESSAGE("css::uno::Any", (a >>= b) && b == a);
    }
    {
        css::uno::Sequence< rtl::OUString > b(2);
        CPPUNIT_ASSERT_MESSAGE(
            "css::uno::Sequence<rtl::OUString>",
            !(a >>= b) && b.getLength() == 2);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testSequence() {
=====================================================================
Found a 36 line (223 tokens) duplication in the following files: 
Starting at line 1269 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx
Starting at line 1321 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx

        const bool bLocal = !aDefaulter.hasDoneSet();

        if (!aChanges.test().compact().isEmpty())
		{
			Broadcaster aSender(rNode.getNotifier().makeBroadcaster(aChanges,bLocal));

			aSender.queryConstraints(aChanges);

			aTree.integrate(aChanges, aNode, bLocal);

			lock.clearForBroadcast();
			aSender.notifyListeners(aChanges, bLocal);
		}

	}
	catch (configuration::InvalidName& ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot restore Defaults: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw UnknownPropertyException( sMessage += e.message(), xContext );
	}
	catch (configuration::ConstraintViolation & ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot restore Defaults: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw UnknownPropertyException( sMessage += e.message(), xContext );
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.unhandled();
	}
}
=====================================================================
Found a 53 line (223 tokens) duplication in the following files: 
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
=====================================================================
Found a 61 line (222 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavservices.cxx
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/services.cxx

using namespace com::sun::star;

//=========================================================================
static sal_Bool writeInfo( 
    void * pRegistryKey,
    const rtl::OUString & rImplementationName,
    uno::Sequence< rtl::OUString > const & rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
            pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo(
	void * /*pServiceManager*/, void * pRegistryKey )
{
	return pRegistryKey &&

	//////////////////////////////////////////////////////////////////////
	// Write info into registry.
	//////////////////////////////////////////////////////////////////////

	writeInfo( pRegistryKey,
			   ::chelp::ContentProvider::getImplementationName_Static(),
=====================================================================
Found a 34 line (222 tokens) duplication in the following files: 
Starting at line 746 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/flycnt.cxx
Starting at line 823 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/flycnt.cxx

						}
						else
						{
							pLay = pSect->GetUpper();
                            if( pLay->IsVertical() )
                            {
                                nFrmTop = pSect->Frm().Left();
                                nPrtHeight = pSect->Frm().Left() -
                                        pLay->Frm().Left() - pLay->Prt().Left();
                            }
                            else
                            {
                                nFrmTop = pSect->Frm().Bottom();
                                nPrtHeight = pLay->Frm().Top()+pLay->Prt().Top()
                                     + pLay->Prt().Height() - pSect->Frm().Top()
                                     - pSect->Frm().Height();
                            }
							pSect = 0;
						}
					}
					else if( pLay )
					{
                        if( pLay->IsVertical() )
                        {
                             nFrmTop = pLay->Frm().Left() + pLay->Frm().Width();
                             nPrtHeight = pLay->Prt().Width();
                        }
                        else
                        {
                            nFrmTop = pLay->Frm().Top();
                            nPrtHeight = pLay->Prt().Height();
                        }
						bSct = 0 != pSect;
					}
=====================================================================
Found a 34 line (222 tokens) duplication in the following files: 
Starting at line 2492 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 4654 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OStorage::getRelationshipsByType(  const ::rtl::OUString& sType  )
		throw ( io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< uno::Sequence< beans::StringPair > > aResult;
	sal_Int32 nEntriesNum = 0;

	// TODO/LATER: in future the unification of the ID could be checked
	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	for ( sal_Int32 nInd1 = 0; nInd1 < aSeq.getLength(); nInd1++ )
		for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ )
			if ( aSeq[nInd1][nInd2].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Type" ) ) )
			{
				if ( aSeq[nInd1][nInd2].Second.equals( sType ) )
				{
					aResult.realloc( nEntriesNum );
					aResult[nEntriesNum-1] = aSeq[nInd1];
				}
				break;
			}

	return aResult;
}

//-----------------------------------------------
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OStorage::getAllRelationships()
=====================================================================
Found a 33 line (222 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/largeToSmall_ja_JP.cxx
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/smallToLarge_ja_JP.cxx

OneToOneMappingTable_t small2large[] = {        
    MAKE_PAIR( 0x3041, 0x3042 ),  // HIRAGANA LETTER SMALL A --> HIRAGANA LETTER A
    MAKE_PAIR( 0x3043, 0x3044 ),  // HIRAGANA LETTER SMALL I --> HIRAGANA LETTER I
    MAKE_PAIR( 0x3045, 0x3046 ),  // HIRAGANA LETTER SMALL U --> HIRAGANA LETTER U
    MAKE_PAIR( 0x3047, 0x3048 ),  // HIRAGANA LETTER SMALL E --> HIRAGANA LETTER E
    MAKE_PAIR( 0x3049, 0x304A ),  // HIRAGANA LETTER SMALL O --> HIRAGANA LETTER O
    MAKE_PAIR( 0x3063, 0x3064 ),  // HIRAGANA LETTER SMALL TU --> HIRAGANA LETTER TU
    MAKE_PAIR( 0x3083, 0x3084 ),  // HIRAGANA LETTER SMALL YA --> HIRAGANA LETTER YA
    MAKE_PAIR( 0x3085, 0x3086 ),  // HIRAGANA LETTER SMALL YU --> HIRAGANA LETTER YU
    MAKE_PAIR( 0x3087, 0x3088 ),  // HIRAGANA LETTER SMALL YO --> HIRAGANA LETTER YO
    MAKE_PAIR( 0x308E, 0x308F ),  // HIRAGANA LETTER SMALL WA --> HIRAGANA LETTER WA
    MAKE_PAIR( 0x30A1, 0x30A2 ),  // KATAKANA LETTER SMALL A --> KATAKANA LETTER A
    MAKE_PAIR( 0x30A3, 0x30A4 ),  // KATAKANA LETTER SMALL I --> KATAKANA LETTER I
    MAKE_PAIR( 0x30A5, 0x30A6 ),  // KATAKANA LETTER SMALL U --> KATAKANA LETTER U
    MAKE_PAIR( 0x30A7, 0x30A8 ),  // KATAKANA LETTER SMALL E --> KATAKANA LETTER E
    MAKE_PAIR( 0x30A9, 0x30AA ),  // KATAKANA LETTER SMALL O --> KATAKANA LETTER O
    MAKE_PAIR( 0x30C3, 0x30C4 ),  // KATAKANA LETTER SMALL TU --> KATAKANA LETTER TU
    MAKE_PAIR( 0x30E3, 0x30E4 ),  // KATAKANA LETTER SMALL YA --> KATAKANA LETTER YA
    MAKE_PAIR( 0x30E5, 0x30E6 ),  // KATAKANA LETTER SMALL YU --> KATAKANA LETTER YU
    MAKE_PAIR( 0x30E7, 0x30E8 ),  // KATAKANA LETTER SMALL YO --> KATAKANA LETTER YO
    MAKE_PAIR( 0x30EE, 0x30EF ),  // KATAKANA LETTER SMALL WA --> KATAKANA LETTER WA
    MAKE_PAIR( 0x30F5, 0x30AB ),  // KATAKANA LETTER SMALL KA --> KATAKANA LETTER KA
    MAKE_PAIR( 0x30F6, 0x30B1 ),  // KATAKANA LETTER SMALL KE --> KATAKANA LETTER KE
    MAKE_PAIR( 0xFF67, 0xFF71 ),  // HALFWIDTH KATAKANA LETTER SMALL A --> HALFWIDTH KATAKANA LETTER A
    MAKE_PAIR( 0xFF68, 0xFF72 ),  // HALFWIDTH KATAKANA LETTER SMALL I --> HALFWIDTH KATAKANA LETTER I
    MAKE_PAIR( 0xFF69, 0xFF73 ),  // HALFWIDTH KATAKANA LETTER SMALL U --> HALFWIDTH KATAKANA LETTER U
    MAKE_PAIR( 0xFF6A, 0xFF74 ),  // HALFWIDTH KATAKANA LETTER SMALL E --> HALFWIDTH KATAKANA LETTER E
    MAKE_PAIR( 0xFF6B, 0xFF75 ),  // HALFWIDTH KATAKANA LETTER SMALL O --> HALFWIDTH KATAKANA LETTER O
    MAKE_PAIR( 0xFF6C, 0xFF94 ),  // HALFWIDTH KATAKANA LETTER SMALL YA --> HALFWIDTH KATAKANA LETTER YA
    MAKE_PAIR( 0xFF6D, 0xFF95 ),  // HALFWIDTH KATAKANA LETTER SMALL YU --> HALFWIDTH KATAKANA LETTER YU
    MAKE_PAIR( 0xFF6E, 0xFF96 ),  // HALFWIDTH KATAKANA LETTER SMALL YO --> HALFWIDTH KATAKANA LETTER YO
    MAKE_PAIR( 0xFF6F, 0xFF82 )   // HALFWIDTH KATAKANA LETTER SMALL TU --> HALFWIDTH KATAKANA LETTER TU
};
=====================================================================
Found a 113 line (222 tokens) duplication in the following files: 
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/workbench/XTDo.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/clipboardwben/testcopy/XTDataObject.cxx

	}

	return hr;
}

//------------------------------------------------------------------------
// IDataObject->EnumFormatEtc
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::EnumFormatEtc( DWORD dwDirection, IEnumFORMATETC** ppenumFormatetc )
{
	if ( ( NULL == ppenumFormatetc ) || ( DATADIR_SET == dwDirection ) )
		return E_INVALIDARG;
	
	*ppenumFormatetc = NULL;

	HRESULT hr = E_FAIL;

	if ( DATADIR_GET == dwDirection )
	{
		*ppenumFormatetc = new CEnumFormatEtc( this );
		static_cast< LPUNKNOWN >( *ppenumFormatetc )->AddRef( );
		hr = S_OK;
	}

	return hr;
}

//------------------------------------------------------------------------
// IDataObject->QueryGetData
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::QueryGetData( LPFORMATETC pFormatetc )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->GetDataHere
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::GetDataHere( LPFORMATETC, LPSTGMEDIUM )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->GetCanonicalFormatEtc
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::GetCanonicalFormatEtc( LPFORMATETC, LPFORMATETC )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->SetData
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::SetData( LPFORMATETC, LPSTGMEDIUM, BOOL )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->DAdvise
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::DAdvise( LPFORMATETC, DWORD, LPADVISESINK, DWORD * )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->DUnadvise
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::DUnadvise( DWORD )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->EnumDAdvise
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::EnumDAdvise( LPENUMSTATDATA * )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// for our convenience
//------------------------------------------------------------------------

CXTDataObject::operator IDataObject*( )
{
	return static_cast< IDataObject* >( this );
}


//============================================================================
// CEnumFormatEtc
//============================================================================


//----------------------------------------------------------------------------
// ctor
//----------------------------------------------------------------------------

CEnumFormatEtc::CEnumFormatEtc( LPUNKNOWN pUnkDataObj ) :
	m_nRefCnt( 0 ),
	m_pUnkDataObj( pUnkDataObj ),
=====================================================================
Found a 49 line (222 tokens) duplication in the following files: 
Starting at line 773 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ENoException.cxx

	OFlatConnection* pConnection = (OFlatConnection*)m_pConnection;
	// ----------------------------------------------------------
	// Positionierung vorbereiten:

	m_nFilePos = nCurPos;

	switch(eCursorPosition)
	{
		case IResultSetHelper::FIRST:
			m_nFilePos = 0;
			m_nRowPos = 1;
			// run through
		case IResultSetHelper::NEXT:
			if(eCursorPosition != IResultSetHelper::FIRST)
				++m_nRowPos;
			m_pFileStream->Seek(m_nFilePos);
			if (m_pFileStream->IsEof() || !checkHeaderLine())
			{
				m_nMaxRowCount = m_nRowPos;
				return sal_False;
			}

			m_aRowToFilePos.insert(::std::map<sal_Int32,sal_Int32>::value_type(m_nRowPos,m_nFilePos));

			m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
			if (m_pFileStream->IsEof())
			{
				m_nMaxRowCount = m_nRowPos;
				return sal_False;
			}
			nCurPos = m_pFileStream->Tell();
			break;
		case IResultSetHelper::PRIOR:
			--m_nRowPos;
			if(m_nRowPos > 0)
			{
				m_nFilePos = m_aRowToFilePos.find(m_nRowPos)->second;
				m_pFileStream->Seek(m_nFilePos);
				if (m_pFileStream->IsEof() || !checkHeaderLine())
					return sal_False;
				m_pFileStream->ReadByteStringLine(m_aCurrentLine,pConnection->getTextEncoding());
				if (m_pFileStream->IsEof())
					return sal_False;
				nCurPos = m_pFileStream->Tell();
			}
			else
				m_nRowPos = 0;

			break;
=====================================================================
Found a 53 line (221 tokens) duplication in the following files: 
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/signer.cxx
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/signer.cxx

		xManager = serviceManager( xContext , OUString::createFromAscii( "local" ), OUString::createFromAscii( argv[3] ) ) ;
		OSL_ENSURE( xManager.is() ,
			"ServicesManager - "
			"Cannot get service manager" ) ;

		//Create signature template
		Reference< XInterface > element =
			xManager->createInstanceWithContext( OUString::createFromAscii( "com.sun.star.xml.security.bridge.xmlsec.XMLElementWrapper_XmlSecImpl" ) , xContext ) ;
		OSL_ENSURE( element.is() ,
			"Signer - "
			"Cannot get service instance of \"wrapper.XMLElementWrapper\"" ) ;

		Reference< XXMLElementWrapper > xElement( element , UNO_QUERY ) ;
		OSL_ENSURE( xElement.is() ,
			"Signer - "
			"Cannot get interface of \"XXMLElement\" from service \"xsec.XMLElement\"" ) ;

		Reference< XUnoTunnel > xEleTunnel( xElement , UNO_QUERY ) ;
		OSL_ENSURE( xEleTunnel.is() ,
			"Signer - "
			"Cannot get interface of \"XUnoTunnel\" from service \"xsec.XMLElement\"" ) ;

		XMLElementWrapper_XmlSecImpl* pElement = ( XMLElementWrapper_XmlSecImpl* )xEleTunnel->getSomething( XMLElementWrapper_XmlSecImpl::getUnoTunnelImplementationId() ) ;
		OSL_ENSURE( pElement != NULL ,
			"Signer - "
			"Cannot get implementation of \"xsec.XMLElement\"" ) ;

		//Set signature template
		pElement->setNativeElement( tplNode ) ;

		//Build XML Signature template
		Reference< XInterface > signtpl =
			xManager->createInstanceWithContext( OUString::createFromAscii( "com.sun.star.xml.crypto.XMLSignatureTemplate" ) , xContext ) ;
		OSL_ENSURE( signtpl.is() ,
			"Signer - "
			"Cannot get service instance of \"xsec.XMLSignatureTemplate\"" ) ;

		Reference< XXMLSignatureTemplate > xTemplate( signtpl , UNO_QUERY ) ;
		OSL_ENSURE( xTemplate.is() ,
			"Signer - "
			"Cannot get interface of \"XXMLSignatureTemplate\" from service \"xsec.XMLSignatureTemplate\"" ) ;

		//Import the signature template
		xTemplate->setTemplate( xElement ) ;

		//Import the URI/Stream binding
		if( xUriBinding.is() )
			xTemplate->setBinding( xUriBinding ) ;

		//Create security environment
		//Build Security Environment
		Reference< XInterface > xsecenv =
			xManager->createInstanceWithContext( OUString::createFromAscii("com.sun.star.xml.security.bridge.xmlsec.SecurityEnvironment_MSCryptImpl"), xContext ) ;
=====================================================================
Found a 58 line (221 tokens) duplication in the following files: 
Starting at line 487 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const ucb::CommandInfo aStreamCommandInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                -1,
                getCppuBooleanType()
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                -1,
                getCppuType(
                    static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
            )
            ///////////////////////////////////////////////////////////
            // New commands
            ///////////////////////////////////////////////////////////
        };
        return uno::Sequence<
                ucb::CommandInfo >( aStreamCommandInfoTable, 7 );
	}
=====================================================================
Found a 44 line (221 tokens) duplication in the following files: 
Starting at line 691 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx
Starting at line 875 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx

		}

		if ((io.dwFlags & IOF_CHECKDISPLAYASICON)
			&& NULL!=io.hMetaPict)
		{
			fe.dwAspect=DVASPECT_ICON;
			dwData=(DWORD)(UINT)io.hMetaPict;
		}

		xRet = new SvOutPlaceObject();
		xRet->DoInitNew( pIStorage );

		xRet->pImpl->pSO_Cont = new CSO_Cont( 1, NULL, xRet );
		xRet->pImpl->pSO_Cont->AddRef();

		POINTL      ptl;
		SIZEL       szl;
		UINT uRet = xRet->pImpl->pSO_Cont->Create(tType, pv, &fe, &ptl, &szl, pIStorage, NULL, dwData);
		if (CREATE_FAILED==uRet)
		{
			xRet = SvOutPlaceObjectRef();
			bOk = FALSE;
		}
		else
		{
			xRet->pImpl->pSO_Cont->Invalidate();
			if( tType == TENANTTYPE_EMBEDDEDFILE )
				xRet->pImpl->pSO_Cont->Update();

			//RECTL rcl;
			//SETRECTL(rcl, 0, 0, szl.cx, szl.cy);
			//xRet->pImpl->pSO_Cont->RectSet(&rcl, FALSE, TRUE);
			xRet->SetVisAreaSize( Size( szl.cx, szl.cy ) );
			WIN_BOOL fSetExtent;
			xRet->pImpl->pSO_Cont->GetInfo( xRet->pImpl->dwAspect, fSetExtent );
			xRet->pImpl->bSetExtent = fSetExtent;

			//Free this regardless of what we do with it.
			StarObject_MetafilePictIconFree(io.hMetaPict);
		}
	}
#else
	(void)pIStorage;
	(void)rInternalClassName;
=====================================================================
Found a 11 line (221 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 749 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_TABLAYOUT),SC_WID_UNO_TABLAYOUT,&getCppuType((sal_Int16*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIXML),	SC_WID_UNO_VALIXML,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLVJUS),	ATTR_VER_JUSTIFY,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_WRITING),	ATTR_WRITINGDIR,	&getCppuType((sal_Int16*)0),			0, 0 },
        {0,0,0,0,0,0}
	};
	return aSheetPropertyMap_Impl;
=====================================================================
Found a 8 line (221 tokens) duplication in the following files: 
Starting at line 1324 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1331 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2280 - 228f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2290 - 229f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22a0 - 22af
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22b0 - 22bf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22c0 - 22cf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22d0 - 22df
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 22e0 - 22ef
    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 22f0 - 22ff
=====================================================================
Found a 7 line (221 tokens) duplication in the following files: 
Starting at line 855 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 894 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe90 - fe9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 22 line (221 tokens) duplication in the following files: 
Starting at line 395 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/xforms/xpathlib/xpathlib.cxx

static OString makeDateTimeString (const DateTime& aDateTime, sal_Bool bUTC = sal_True)
{
    OStringBuffer aDateTimeString;
    aDateTimeString.append((sal_Int32)aDateTime.GetYear());
    aDateTimeString.append("-");
    if (aDateTime.GetMonth()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetMonth());
    aDateTimeString.append("-");
    if (aDateTime.GetDay()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetDay());
    aDateTimeString.append("T");
    if (aDateTime.GetHour()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetHour());
    aDateTimeString.append(":");
    if (aDateTime.GetMin()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetMin());
    aDateTimeString.append(":");
    if (aDateTime.GetSec()<10) aDateTimeString.append("0");
    aDateTimeString.append((sal_Int32)aDateTime.GetSec());
    if (bUTC) aDateTimeString.append("Z");

    return aDateTimeString.makeStringAndClear();
=====================================================================
Found a 22 line (221 tokens) duplication in the following files: 
Starting at line 992 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/UITools.cxx
Starting at line 318 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/helper/vclunohelper.cxx

float VCLUnoHelper::ConvertFontWeight( FontWeight eWeight )
{
	if( eWeight == WEIGHT_DONTKNOW )
		return ::com::sun::star::awt::FontWeight::DONTKNOW;
	else if( eWeight == WEIGHT_THIN )
		return ::com::sun::star::awt::FontWeight::THIN;
	else if( eWeight == WEIGHT_ULTRALIGHT )
		return ::com::sun::star::awt::FontWeight::ULTRALIGHT;
	else if( eWeight == WEIGHT_LIGHT )
		return ::com::sun::star::awt::FontWeight::LIGHT;
	else if( eWeight == WEIGHT_SEMILIGHT )
		return ::com::sun::star::awt::FontWeight::SEMILIGHT;
	else if( ( eWeight == WEIGHT_NORMAL ) || ( eWeight == WEIGHT_MEDIUM ) )
		return ::com::sun::star::awt::FontWeight::NORMAL;
	else if( eWeight == WEIGHT_SEMIBOLD )
		return ::com::sun::star::awt::FontWeight::SEMIBOLD;
	else if( eWeight == WEIGHT_BOLD )
		return ::com::sun::star::awt::FontWeight::BOLD;
	else if( eWeight == WEIGHT_ULTRABOLD )
		return ::com::sun::star::awt::FontWeight::ULTRABOLD;
	else if( eWeight == WEIGHT_BLACK )
		return ::com::sun::star::awt::FontWeight::BLACK;
=====================================================================
Found a 44 line (221 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunomaker.cxx
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idlmaker.cxx

						 IdlOptions* pOptions,
						 sal_Bool bFullScope)
	throw( CannotDumpException )
{
	if (!produceType(typeName, typeMgr,	typeDependencies, pOptions))
	{
		fprintf(stderr, "%s ERROR: %s\n", 
				pOptions->getProgramName().getStr(), 
				OString("cannot dump Type '" + typeName + "'").getStr());
		exit(99);
	}

	RegistryKey	typeKey = typeMgr.getTypeKey(typeName);
	RegistryKeyNames subKeys;
	
	if (typeKey.getKeyNames(OUString(), subKeys))
		return sal_False;
	
	OString tmpName;
	for (sal_uInt32 i=0; i < subKeys.getLength(); i++)
	{
		tmpName = OUStringToOString(subKeys.getElement(i), RTL_TEXTENCODING_UTF8);

		if (pOptions->isValid("-B"))
			tmpName = tmpName.copy(tmpName.indexOf('/', 1) + 1);
		else
			tmpName = tmpName.copy(1);

		if (bFullScope)
		{
			if (!produceAllTypes(tmpName, typeMgr, typeDependencies, pOptions, sal_True))
				return sal_False;
		} else
		{
			if (!produceType(tmpName, typeMgr, typeDependencies, pOptions))
				return sal_False;
		}
	}
	
	return sal_True;			
}

SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
{
=====================================================================
Found a 41 line (221 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

}


void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /* functionCount */, sal_Int32 vtableOffset)
{

  // fprintf(stderr, "in addLocalFunctions functionOffset is %x\n",functionOffset);
  // fprintf(stderr, "in addLocalFunctions vtableOffset is %x\n",vtableOffset);
  // fflush(stderr);

    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
=====================================================================
Found a 30 line (220 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salgdi.h
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/pspgraphics.h

                                                   const sal_uInt32* pPoints,
                                                   const SalPoint* const* pPtAry,
                                                   const BYTE* const* pFlgAry );
    virtual void			copyArea( long nDestX,
                                      long nDestY,
                                      long nSrcX,
                                      long nSrcY,
                                      long nSrcWidth,
                                      long nSrcHeight,
                                      USHORT nFlags );
    virtual void			copyBits( const SalTwoRect* pPosAry,
                                      SalGraphics* pSrcGraphics );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap,
                                        SalColor nTransparentColor );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap,
                                        const SalBitmap& rTransparentBitmap );
    virtual void			drawMask( const SalTwoRect* pPosAry,
                                      const SalBitmap& rSalBitmap,
                                      SalColor nMaskColor );
    virtual SalBitmap*		getBitmap( long nX, long nY, long nWidth, long nHeight );
    virtual SalColor		getPixel( long nX, long nY );
    virtual void			invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
    virtual void			invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );

    virtual BOOL			drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
    virtual bool            filterText( const String& rOrigText, String& rNewText, xub_StrLen nIndex, xub_StrLen& rLen, xub_StrLen& rCutStart, xub_StrLen& rCutStop );
=====================================================================
Found a 51 line (220 tokens) duplication in the following files: 
Starting at line 718 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/drtxtob.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drtxtob1.cxx

					break;
					case SID_ATTR_PARA_LINESPACE_10:
					{
                        SvxLineSpacingItem aItem( SVX_LINESPACE_ONE_LINE, EE_PARA_SBL );
						aItem.SetPropLineSpace( 100 );
						aNewAttr.Put( aItem );
					}
					break;
					case SID_ATTR_PARA_LINESPACE_15:
					{
                        SvxLineSpacingItem aItem( SVX_LINESPACE_ONE_POINT_FIVE_LINES, EE_PARA_SBL );
						aItem.SetPropLineSpace( 150 );
						aNewAttr.Put( aItem );
					}
					break;
					case SID_ATTR_PARA_LINESPACE_20:
					{
                        SvxLineSpacingItem aItem( SVX_LINESPACE_TWO_LINES, EE_PARA_SBL );
						aItem.SetPropLineSpace( 200 );
						aNewAttr.Put( aItem );
					}
    				break;
					case SID_SET_SUPER_SCRIPT:
					{
                        SvxEscapementItem aItem( EE_CHAR_ESCAPEMENT );
						SvxEscapement eEsc = (SvxEscapement ) ( (const SvxEscapementItem&)
                                        aEditAttr.Get( EE_CHAR_ESCAPEMENT ) ).GetEnumValue();

						if( eEsc == SVX_ESCAPEMENT_SUPERSCRIPT )
							aItem.SetEscapement( SVX_ESCAPEMENT_OFF );
						else
							aItem.SetEscapement( SVX_ESCAPEMENT_SUPERSCRIPT );
						aNewAttr.Put( aItem );
					}
					break;
					case SID_SET_SUB_SCRIPT:
					{
                        SvxEscapementItem aItem( EE_CHAR_ESCAPEMENT );
						SvxEscapement eEsc = (SvxEscapement ) ( (const SvxEscapementItem&)
                                        aEditAttr.Get( EE_CHAR_ESCAPEMENT ) ).GetEnumValue();

						if( eEsc == SVX_ESCAPEMENT_SUBSCRIPT )
							aItem.SetEscapement( SVX_ESCAPEMENT_OFF );
						else
							aItem.SetEscapement( SVX_ESCAPEMENT_SUBSCRIPT );
						aNewAttr.Put( aItem );
					}
					break;

					// Attribute fuer die TextObjectBar
					case SID_ATTR_CHAR_FONT:
=====================================================================
Found a 76 line (220 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_AcceptorSocket.cxx
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

using namespace osl;
using namespace rtl;

#define IP_PORT_FTP     21
#define IP_PORT_TELNET  23
#define IP_PORT_HTTP2   8080
#define IP_PORT_INVAL   99999
#define IP_PORT_POP3    110
#define IP_PORT_NETBIOS 139
#define IP_PORT_MYPORT  8881
#define IP_PORT_MYPORT1 8882
#define IP_PORT_MYPORT5 8886
#define IP_PORT_MYPORT6 8887
#define IP_PORT_MYPORT7 8895
#define IP_PORT_MYPORT8 8896
#define IP_PORT_MYPORT9 8897

//------------------------------------------------------------------------
// helper functions
//------------------------------------------------------------------------

// just used to test socket::close() when accepting
class AcceptorThread : public Thread
{
	::osl::AcceptorSocket asAcceptorSocket;
	::rtl::OUString aHostIP;
	sal_Bool bOK;
protected:	
	void SAL_CALL run( )
	{
		::osl::SocketAddr saLocalSocketAddr( aHostIP, IP_PORT_MYPORT9 );
		::osl::StreamSocket ssStreamConnection;
		
		asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //integer not sal_Bool : sal_True);
		sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
		if  ( sal_True != bOK1 )
		{
			t_print("# AcceptorSocket bind address failed.\n" ) ;
			return;
		}
		sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
		if  ( sal_True != bOK2 )
		{ 
			t_print("# AcceptorSocket listen address failed.\n" ) ;
			return;
		}

		asAcceptorSocket.enableNonBlockingMode( sal_False );
		
		oslSocketResult eResult = asAcceptorSocket.acceptConnection( ssStreamConnection );
		if (eResult != osl_Socket_Ok )
		{
			bOK = sal_True;
			t_print("AcceptorThread: acceptConnection failed! \n");			
		}	
	}
public:
	AcceptorThread(::osl::AcceptorSocket & asSocket, ::rtl::OUString const& aBindIP )
		: asAcceptorSocket( asSocket ), aHostIP( aBindIP )
	{
		bOK = sal_False;
	}
	
	sal_Bool isOK() { return bOK; }
	
	~AcceptorThread( )
	{
		if ( isRunning( ) )
		{
			asAcceptorSocket.shutdown();
			t_print("# error: Acceptor thread not terminated.\n" );
		}
	}
};

namespace osl_Socket
=====================================================================
Found a 20 line (220 tokens) duplication in the following files: 
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/descriptor.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unopool.cxx

uno::Any SAL_CALL SvxUnoDrawPool::queryAggregation( const uno::Type & rType )
	throw(uno::RuntimeException)
{
	uno::Any aAny;

	if( rType == ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0) )
		aAny <<= uno::Reference< lang::XServiceInfo >(this);
	else if( rType == ::getCppuType((const uno::Reference< lang::XTypeProvider >*)0) )
		aAny <<= uno::Reference< lang::XTypeProvider >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XPropertySet >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertyState >*)0) )
		aAny <<= uno::Reference< beans::XPropertyState >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XMultiPropertySet >(this);
	else
		aAny <<= OWeakAggObject::queryAggregation( rType );

	return aAny;
}
=====================================================================
Found a 42 line (219 tokens) duplication in the following files: 
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 243 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                intr.local_scale(&rx, &ry);

                rx = (rx * base_type::m_blur_x) >> image_subpixel_shift;
                ry = (ry * base_type::m_blur_y) >> image_subpixel_shift;

                if(rx < image_subpixel_size)
                {
                    rx = image_subpixel_size;
                }
                else
                {
                    if(rx > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        rx = image_subpixel_size * base_type::m_scale_limit;
                    }
                    rx_inv = image_subpixel_size * image_subpixel_size / rx;
                }

                if(ry < image_subpixel_size)
                {
                    ry = image_subpixel_size;
                }
                else
                {
                    if(ry > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        ry = image_subpixel_size * base_type::m_scale_limit;
                    }
                    ry_inv = image_subpixel_size * image_subpixel_size / ry;
                }

                int radius_x = (diameter * rx) >> 1;
                int radius_y = (diameter * ry) >> 1;
                int maxx = base_type::source_image().width() - 1;
                int maxy = base_type::source_image().height() - 1;

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr  = m_wrap_mode_y(y >> image_subpixel_shift);
=====================================================================
Found a 18 line (219 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/components/display.cxx
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/components/display.cxx

	DisplayAccess ();

    // XPropertySet
    virtual Reference< XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (RuntimeException);
    virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const Any& aValue ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException);
    virtual Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& xListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);

    // XPropertySetInfo
    virtual Sequence< Property > SAL_CALL getProperties(  ) throw (RuntimeException);
    virtual Property SAL_CALL getPropertyByName( const OUString& aName ) throw (UnknownPropertyException, RuntimeException);
    virtual ::sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) throw (RuntimeException);

    // XIndexAccess
    virtual ::sal_Int32 SAL_CALL getCount() throw (RuntimeException);
=====================================================================
Found a 31 line (219 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salgdi.h
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salgdi.h

    virtual sal_Bool	drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );

    // CopyArea --> No RasterOp, but ClipRegion
    virtual void		copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
                                  long nSrcHeight, USHORT nFlags );

    // CopyBits and DrawBitmap --> RasterOp and ClipRegion
    // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
    virtual void		copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
    virtual void		drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
    virtual void		drawBitmap( const SalTwoRect* pPosAry,
                                    const SalBitmap& rSalBitmap,
                                    SalColor nTransparentColor );
    virtual void		drawBitmap( const SalTwoRect* pPosAry,
                                    const SalBitmap& rSalBitmap,
                                    const SalBitmap& rTransparentBitmap );
    virtual void		drawMask( const SalTwoRect* pPosAry,
                                  const SalBitmap& rSalBitmap,
                                  SalColor nMaskColor );

    virtual SalBitmap*	getBitmap( long nX, long nY, long nWidth, long nHeight );
    virtual SalColor	getPixel( long nX, long nY );

    // invert --> ClipRegion (only Windows or VirDevs)
    virtual void		invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
    virtual void		invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );

    virtual BOOL		drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );

    // native widget rendering methods that require mirroring
    virtual BOOL        hitTestNativeControl( ControlType nType, ControlPart nPart, const Region& rControlRegion,
=====================================================================
Found a 36 line (219 tokens) duplication in the following files: 
Starting at line 1129 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShape2d.cxx
Starting at line 5856 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

Color SvxMSDffCustomShape::ImplGetColorData( const Color& rFillColor, sal_uInt32 nIndex )
{
	Color aRetColor;

	sal_uInt32 i, nColor, nTmp, nCount = nColorData >> 28;

	if ( nCount )
	{
		if ( nIndex >= nCount )
			nIndex = nCount - 1;

		sal_uInt32 nFillColor = (sal_uInt32)rFillColor.GetRed() |
									((sal_uInt32)rFillColor.GetGreen() << 8 ) |
										((sal_uInt32)rFillColor.GetBlue() << 16 );

		sal_Int32 nLumDat = nColorData << ( ( 1 + nIndex ) << 2 );
		sal_Int32 nLuminance = ( nLumDat >> 28 ) * 12;

		nTmp = nFillColor;
		nColor = 0;
		for ( i = 0; i < 3; i++ )
		{
			sal_Int32 nC = (sal_uInt8)nTmp;
			nTmp >>= 8;
			nC += ( ( nLuminance * nC ) >> 8 );
			if ( nC < 0 )
				nC = 0;
			else if ( nC &~ 0xff )
				nC = 0xff;
			nColor >>= 8;
			nColor |= nC << 16;
		}
		aRetColor = Color( (sal_uInt8)nColor, (sal_uInt8)( nColor >> 8 ), (sal_uInt8)( nColor >> 16 ) );
	}
	return aRetColor;
}
=====================================================================
Found a 23 line (219 tokens) duplication in the following files: 
Starting at line 2517 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 584 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindow.cxx

void ImplInitMouseEvent( awt::MouseEvent& rEvent, const MouseEvent& rEvt )
{
	rEvent.Modifiers = 0;
	if ( rEvt.IsShift() )
		rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::SHIFT;
	if ( rEvt.IsMod1() )
	rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD1;
	if ( rEvt.IsMod2() )
		rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD2;

	rEvent.Buttons = 0;
	if ( rEvt.IsLeft() )
		rEvent.Buttons |= ::com::sun::star::awt::MouseButton::LEFT;
	if ( rEvt.IsRight() )
		rEvent.Buttons |= ::com::sun::star::awt::MouseButton::RIGHT;
	if ( rEvt.IsMiddle() )
		rEvent.Buttons |= ::com::sun::star::awt::MouseButton::MIDDLE;

	rEvent.X = rEvt.GetPosPixel().X();
	rEvent.Y = rEvt.GetPosPixel().Y();
	rEvent.ClickCount = rEvt.GetClicks();
	rEvent.PopupTrigger = sal_False;
}
=====================================================================
Found a 61 line (219 tokens) duplication in the following files: 
Starting at line 4529 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 4793 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

				rEntry.eOp = SC_LESS_EQUAL;
			switch ( GetStackType() )
			{
				case svDouble:
				{
					rEntry.bQueryByString = FALSE;
					rEntry.nVal = GetDouble();
				}
				break;
				case svString:
				{
					sStr = GetString();
					rEntry.bQueryByString = TRUE;
					*rEntry.pStr = sStr;
				}
				break;
				case svDoubleRef :
				case svSingleRef :
				{
					ScAddress aAdr;
					if ( !PopDoubleRefOrSingleRef( aAdr ) )
					{
						PushInt(0);
						return ;
					}
					ScBaseCell* pCell = GetCell( aAdr );
					if (HasCellValueData(pCell))
					{
						rEntry.bQueryByString = FALSE;
						rEntry.nVal = GetCellValue( aAdr, pCell );
					}
					else
					{
						if ( GetCellType( pCell ) == CELLTYPE_NOTE )
						{
							rEntry.bQueryByString = FALSE;
							rEntry.nVal = 0.0;
						}
						else
						{
							GetCellString(sStr, pCell);
							rEntry.bQueryByString = TRUE;
							*rEntry.pStr = sStr;
						}
					}
				}
				break;
                case svMatrix :
                {
                    ScMatValType nType = GetDoubleOrStringFromMatrix(
                            rEntry.nVal, *rEntry.pStr);
                    rEntry.bQueryByString = ScMatrix::IsStringType( nType);
                }
                break;
				default:
				{
					SetIllegalParameter();
					return;
				}
			}
			if ( rEntry.bQueryByString )
=====================================================================
Found a 9 line (219 tokens) duplication in the following files: 
Starting at line 533 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 569 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* UnoParamValue */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, /* !"#$%&'()*+,-./*/
=====================================================================
Found a 26 line (219 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx

            rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionBoth, pKeyBuffer, nKeyLen, pArgBuffer, nArgLen);
            CPPUNIT_ASSERT_MESSAGE("wrong init", aError == rtl_Cipher_E_None);

            sal_uInt32     nPlainTextLen = 16;
            sal_uInt8     *pPlainTextBuffer = new sal_uInt8[ nPlainTextLen ];
            memset(pPlainTextBuffer, 0, nPlainTextLen);
            strncpy((char*)pPlainTextBuffer, _sPlainTextStr.getStr(), 16);

            sal_uInt32     nCipherLen = 16;
            sal_uInt8     *pCipherBuffer = new sal_uInt8[ nCipherLen ];
            memset(pCipherBuffer, 0, nCipherLen);

            /* rtlCipherError */ aError = rtl_cipher_encode(aCipher, pPlainTextBuffer, nPlainTextLen, pCipherBuffer, nCipherLen);
            CPPUNIT_ASSERT_MESSAGE("wrong encode", aError == rtl_Cipher_E_None);

            t_print(T_VERBOSE, "       Key: %s\n", createHex(pKeyBuffer, nKeyLen).getStr());
            t_print(T_VERBOSE, "       Arg: %s\n", createHex(pArgBuffer, nArgLen).getStr());
            t_print(T_VERBOSE, "     Plain: %s\n", createHex(pPlainTextBuffer, nPlainTextLen).getStr());
            t_print(           "Cipher Buf: %s\n", createHex(pCipherBuffer, nCipherLen).getStr());

            sal_uInt32     nPlainText2Len = 16;
            sal_uInt8     *pPlainText2Buffer = new sal_uInt8[ nPlainText2Len ];
            memset(pPlainText2Buffer, 0, nPlainText2Len);

            /* rtlCipherError */ aError = rtl_cipher_decode(aCipher, pCipherBuffer, nCipherLen, pPlainText2Buffer, nPlainText2Len);
            CPPUNIT_ASSERT_MESSAGE("wrong decode", aError == rtl_Cipher_E_None);
=====================================================================
Found a 39 line (219 tokens) duplication in the following files: 
Starting at line 567 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx
Starting at line 687 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx

                                }
                            }
                        }
                        break;

                        case 2:
                        {
                            const sal_uInt8* pSubTable = pTable;
                            /*sal_uInt16 nRowWidth    =*/ getUInt16BE( pTable );
                            sal_uInt16 nOfLeft      = getUInt16BE( pTable );
                            sal_uInt16 nOfRight     = getUInt16BE( pTable );
                            /*sal_uInt16 nOfArray     =*/ getUInt16BE( pTable );
                            const sal_uInt8* pTmp = pSubTable + nOfLeft;
                            sal_uInt16 nFirstLeft   = getUInt16BE( pTmp );
                            sal_uInt16 nLastLeft    = getUInt16BE( pTmp ) + nFirstLeft - 1;
                            pTmp = pSubTable + nOfRight;
                            sal_uInt16 nFirstRight  = getUInt16BE( pTmp );
                            sal_uInt16 nLastRight   = getUInt16BE( pTmp ) + nFirstRight -1;

                            for( aPair.first = nFirstLeft; aPair.first < nLastLeft; aPair.first++ )
                            {
                                for( aPair.second = 0; aPair.second < nLastRight; aPair.second++ )
                                {
                                    sal_Int16 nKern = (sal_Int16)getUInt16BE( pTmp );
                                    switch( nCoverage & 1 )
                                    {
                                        case 1:
                                            aPair.kern_x = (int)nKern * 1000 / pImplTTFont->unitsPerEm;
                                            m_pMetrics->m_aXKernPairs.push_back( aPair );
                                            break;
                                        case 0:
                                            aPair.kern_y = (int)nKern * 1000 / pImplTTFont->unitsPerEm;
                                            m_pMetrics->m_aYKernPairs.push_back( aPair );
                                            break;                                          
                                    }
                                }
                            }
                        }
                        break;
=====================================================================
Found a 44 line (219 tokens) duplication in the following files: 
Starting at line 1266 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 1168 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx

			m_nSymbolsStyle		= nSymbolsStyle;
			AddonsOptions		aAddonOptions;

			for ( USHORT nPos = 0; nPos < pMenu->GetItemCount(); nPos++ )
			{
				USHORT nId = pMenu->GetItemId( nPos );
				if ( pMenu->GetItemType( nPos ) != MENUITEM_SEPARATOR )
				{
					if ( bShowMenuImages )
					{
						sal_Bool		bImageSet = sal_False;
						::rtl::OUString aImageId;

						::framework::MenuConfiguration::Attributes* pMenuAttributes =
							(::framework::MenuConfiguration::Attributes*)pMenu->GetUserValue( nId );

						if ( pMenuAttributes )
							aImageId = pMenuAttributes->aImageId; // Retrieve image id from menu attributes

						if ( aImageId.getLength() > 0 )
						{
							Image aImage = GetImageFromURL( m_xFrame, aImageId, FALSE, bIsHiContrast );
							if ( !!aImage )
							{
								bImageSet = sal_True;
								pMenu->SetItemImage( nId, aImage );
							}
						}

						if ( !bImageSet )
						{
							rtl::OUString aMenuItemCommand = pMenu->GetItemCommand( nId );
							Image aImage = GetImageFromURL( m_xFrame, aMenuItemCommand, FALSE, bIsHiContrast );
							if ( !aImage )
								aImage = aAddonOptions.GetImageFromURL( aMenuItemCommand, FALSE, bIsHiContrast );

							pMenu->SetItemImage( nId, aImage );
						}
					}
					else
						pMenu->SetItemImage( nId, Image() );
				}
			}
		}
=====================================================================
Found a 55 line (219 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/office/OfficeFilePicker.cxx
Starting at line 508 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFilePicker.cxx

struct FilterEntry
{
protected:
	::rtl::OUString		m_sTitle;
	::rtl::OUString		m_sFilter;

	UnoFilterList		m_aSubFilters;

public:
	FilterEntry( const ::rtl::OUString& _rTitle, const ::rtl::OUString& _rFilter )
		:m_sTitle( _rTitle )
		,m_sFilter( _rFilter )
	{
	}

	FilterEntry( const ::rtl::OUString& _rTitle, const UnoFilterList& _rSubFilters );

	::rtl::OUString		getTitle() const { return m_sTitle; }
	::rtl::OUString		getFilter() const { return m_sFilter; }

	/// determines if the filter has sub filter (i.e., the filter is a filter group in real)
	sal_Bool		hasSubFilters( ) const;

	/** retrieves the filters belonging to the entry
	@return
		the number of sub filters
	*/
	sal_Int32		getSubFilters( UnoFilterList& _rSubFilterList );

	// helpers for iterating the sub filters
	const UnoFilterEntry*	beginSubFilters() const { return m_aSubFilters.getConstArray(); }
	const UnoFilterEntry*	endSubFilters() const { return m_aSubFilters.getConstArray() + m_aSubFilters.getLength(); }
};

//=====================================================================

//---------------------------------------------------------------------
FilterEntry::FilterEntry( const ::rtl::OUString& _rTitle, const UnoFilterList& _rSubFilters )
	:m_sTitle( _rTitle )
	,m_aSubFilters( _rSubFilters )
{
}

//---------------------------------------------------------------------
sal_Bool FilterEntry::hasSubFilters() const
{
	return( 0 < m_aSubFilters.getLength() );
}

//---------------------------------------------------------------------
sal_Int32 FilterEntry::getSubFilters( UnoFilterList& _rSubFilterList )
{
	_rSubFilterList = m_aSubFilters;
	return m_aSubFilters.getLength();
}
=====================================================================
Found a 45 line (219 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilteradaptor/streamwrap.cxx
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/java/streamwrap.cxx

	return nRead;
}

//------------------------------------------------------------------------------
sal_Int32 SAL_CALL OInputStreamWrapper::readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	checkError();

	if (nMaxBytesToRead < 0)
		throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));

	return readBytes(aData, nMaxBytesToRead);
}

//------------------------------------------------------------------------------
void SAL_CALL OInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkError();

	m_pSvStream->setPos(osl_Pos_Current,nBytesToSkip);
	checkError();
}

//------------------------------------------------------------------------------
sal_Int32 SAL_CALL OInputStreamWrapper::available() throw( stario::NotConnectedException, staruno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	sal_uInt64 nPos = 0;
	m_pSvStream->getPos(nPos);
	checkError();

	m_pSvStream->setPos(Pos_End,0);
	checkError();

	sal_uInt64 nAvailable = 0;
	m_pSvStream->getPos(nAvailable);
	nAvailable -= nPos;

	m_pSvStream->setPos(Pos_Absolut,nPos);
	checkError();

	return nAvailable;
=====================================================================
Found a 20 line (219 tokens) duplication in the following files: 
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/filter/XMLFilter.cxx
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx

		{ MAP_LEN( "PageLayouts" ), 0, SEQTYPE(::getCppuType((const uno::Reference< container::XNameAccess >*)0)), 	::com::sun::star::beans::PropertyAttribute::MAYBEVOID,     0},
		{ MAP_LEN( "PrivateData" ), 0,
			  &::getCppuType( (Reference<XInterface> *)0 ),
			  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
		{ MAP_LEN( "BaseURI" ), 0,
			  &::getCppuType( (OUString *)0 ),
			  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
		{ MAP_LEN( "StreamRelPath" ), 0,
			  &::getCppuType( (OUString *)0 ),
			  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
		{ MAP_LEN( "StreamName" ), 0,
			  &::getCppuType( (OUString *)0 ),
			  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
		{ MAP_LEN( "BuildId" ), 0,
			  &::getCppuType( (OUString *)0 ),
			  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },			
		{ NULL, 0, 0, NULL, 0, 0 }
	};

	uno::Reference< beans::XPropertySet > xInfoSet( GenericPropertySet_CreateInstance( new PropertySetInfo( aImportInfoMap ) ) );
=====================================================================
Found a 42 line (218 tokens) duplication in the following files: 
Starting at line 3676 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3769 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

void ScInterpreter::ScSTEXY()
{
	if ( !MustHaveParamCount( GetByte(), 2 ) )
		return;
	ScMatrixRef pMat1 = GetMatrix();
	ScMatrixRef pMat2 = GetMatrix();
	if (!pMat1 || !pMat2)
	{
		SetIllegalParameter();
		return;
	}
	SCSIZE nC1, nC2;
	SCSIZE nR1, nR2;
	pMat1->GetDimensions(nC1, nR1);
	pMat2->GetDimensions(nC2, nR2);
	if (nR1 != nR2 || nC1 != nC2)
	{
		SetIllegalParameter();
		return;
	}
	// #i78250# numerical stability improved
	double fCount           = 0.0;
	double fSumX            = 0.0;
	double fSumY            = 0.0;
	double fSumDeltaXDeltaY = 0.0; // sum of (ValX-MeanX)*(ValY-MeanY)
	double fSumSqrDeltaX    = 0.0; // sum of (ValX-MeanX)^2
	double fSumSqrDeltaY    = 0.0; // sum of (ValY-MeanY)^2
	for (SCSIZE i = 0; i < nC1; i++)
    {
		for (SCSIZE j = 0; j < nR1; j++)
		{
			if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
			{
				double fValX = pMat1->GetDouble(i,j);
				double fValY = pMat2->GetDouble(i,j);
				fSumX += fValX;
				fSumY += fValY;
				fCount++;
			}
		}
    }
	if (fCount < 3.0)
=====================================================================
Found a 32 line (217 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

                    y_hr += ry_inv;
                    y_lr = ++m_wrap_mode_y;
                }
                while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;

                if(fg[0] > base_mask) fg[0] = base_mask;
                if(fg[1] > base_mask) fg[1] = base_mask;
                if(fg[2] > base_mask) fg[2] = base_mask;

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)base_mask;

                ++span;
                ++intr;
            } while(--len);
            return base_type::allocator().span();
        }

    private:
        WrapModeX m_wrap_mode_x;
        WrapModeY m_wrap_mode_y;
    };
=====================================================================
Found a 28 line (217 tokens) duplication in the following files: 
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/calcmove.cxx
Starting at line 629 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/calcmove.cxx

			if ( !bUseUpper && pPrv )
            {
                aFrm.Pos( pPrv->Frm().Pos() );
                if( FRM_NEIGHBOUR & nMyType )
                {
                    BOOL bR2L = IsRightToLeft();
                    if( bR2L )
                        (aFrm.*fnRect->fnSetPosX)( (aFrm.*fnRect->fnGetLeft)() -
                                                 (aFrm.*fnRect->fnGetWidth)() );
                    else
                        (aFrm.*fnRect->fnSetPosX)( (aFrm.*fnRect->fnGetLeft)() +
                                          (pPrv->Frm().*fnRect->fnGetWidth)() );

                    // cells may now leave their uppers
                    if( bVert && FRM_CELL & nMyType && !bReverse )
                        aFrm.Pos().X() -= aFrm.Width() -pPrv->Frm().Width();
                }
                else if( bVert && FRM_NOTE_VERT & nMyType )
                {
                    if( bReverse )
                        aFrm.Pos().X() += pPrv->Frm().Width();
                    else
                        aFrm.Pos().X() -= aFrm.Width();
                }
                else
                    aFrm.Pos().Y() += pPrv->Frm().Height();
			}
			else
=====================================================================
Found a 34 line (217 tokens) duplication in the following files: 
Starting at line 3257 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/crsrsh.cxx
Starting at line 1097 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edlingu.cxx

                pNode->SetWrongDirty( true );
#endif
				// make sure the selection build later from the
				// data below does not include footnotes and other
				// "in word" character to the left and right in order
				// to preserve those. Therefore count those "in words"
				// in order to modify the selection accordingly.
				const sal_Unicode* pChar = aText.GetBuffer();
				xub_StrLen nLeft = 0;
				while (pChar && *pChar++ == CH_TXTATR_INWORD)
					++nLeft;
				pChar = aText.Len() ? aText.GetBuffer() + aText.Len() - 1 : 0;
				xub_StrLen nRight = 0;
				while (pChar && *pChar-- == CH_TXTATR_INWORD)
					++nRight;

				aPos.nContent = nBegin + nLeft;
                pCrsr = GetCrsr();
				*pCrsr->GetPoint() = aPos;
				pCrsr->SetMark();
				ExtendSelection( sal_True, nLen - nLeft - nRight );
                //no determine the rectangle in the current line
                xub_StrLen nWordStart = (nBegin + nLeft) < nLineStart ? nLineStart : nBegin + nLeft;
                //take one less than the line end - otherwise the next line would be calculated
                xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd ? nLineEnd - 1: (nBegin + nLen - nLeft - nRight);
                Push();
                pCrsr->DeleteMark();
                SwIndex& rContent = GetCrsr()->GetPoint()->nContent;
                rContent = nWordStart;
                SwRect aStartRect;
                SwCrsrMoveState aState;
                aState.bRealWidth = TRUE;
                SwCntntNode* pCntntNode = pCrsr->GetCntntNode();
                SwCntntFrm *pCntntFrame = pCntntNode->GetFrm(pPt, pCrsr->GetPoint(), FALSE);
=====================================================================
Found a 34 line (217 tokens) duplication in the following files: 
Starting at line 980 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/acccfg.cxx
Starting at line 1064 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/acccfg.cxx

IMPL_LINK( SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, EMPTYARG )
{
    DBG_ASSERT( m_pFileDlg, "SfxInternetPage::DialogClosedHdl(): no file dialog" );

    ::rtl::OUString sCfgName;
    if ( ERRCODE_NONE == m_pFileDlg->GetError() )
        sCfgName = m_pFileDlg->GetPath();

    if ( !sCfgName.getLength() )
        return 0;

    GetTabDialog()->EnterWait();

    css::uno::Reference< css::frame::XModel >                xDoc        ;
    css::uno::Reference< css::ui::XUIConfigurationManager > xCfgMgr     ;
    css::uno::Reference< css::embed::XStorage >              xRootStorage;

    try
    {
        // first check if URL points to a document already loaded
        xDoc = SearchForAlreadyLoadedDoc(sCfgName);
        if (xDoc.is())
        {
            // get config manager, force creation if there was none before
            css::uno::Reference< css::ui::XUIConfigurationManagerSupplier > xCfgSupplier(xDoc, css::uno::UNO_QUERY_THROW);
            xCfgMgr = xCfgSupplier->getUIConfigurationManager();
        }
        else
        {
            // URL doesn't point to a loaded document, try to access it as a single storage
            css::uno::Reference< css::lang::XSingleServiceFactory > xStorageFactory(m_xSMGR->createInstance(SERVICE_STORAGEFACTORY), css::uno::UNO_QUERY_THROW);
            css::uno::Sequence< css::uno::Any >                     lArgs(2);
            lArgs[0] <<= sCfgName;
            lArgs[1] <<= css::embed::ElementModes::WRITE;
=====================================================================
Found a 72 line (217 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/clipboardwben/testpaste/cbptest.cxx
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/clipboardwben/testviewer/cbvtest.cxx

	if( !InitInstance( g_hInst, nCmdShow ) ) 
	{
		return FALSE;
	}

	hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_TESTWIN32);

	// Hauptnachrichtenschleife:
	while( GetMessage(&msg, NULL, 0, 0) ) 
	{
		if( !TranslateAccelerator (msg.hwnd, hAccelTable, &msg) ) 
		{
			TranslateMessage( &msg );
			DispatchMessage( &msg );
		}
	}

	// uninitializing the ole libraries
	//OleUninitialize( );
	CoUninitialize( );

	return msg.wParam;
}



//
//  FUNKTION: MyRegisterClass()
//
//  AUFGABE: Registriert die Fensterklasse.
//
//  KOMMENTARE:
//
//    Diese Funktion und ihre Verwendung sind nur notwendig, wenn dieser Code
//    mit Win32-Systemen vor der 'RegisterClassEx'-Funktion kompatibel sein soll,
//    die zu Windows 95 hinzugef�gt wurde. Es ist wichtig diese Funktion aufzurufen,
//    damit der Anwendung kleine Symbole mit den richtigen Proportionen zugewiesen
//    werden.
//
ATOM MyRegisterClass( HINSTANCE hInstance )
{
	WNDCLASSEXW wcex;

	wcex.cbSize = sizeof(WNDCLASSEX); 

	wcex.style			= CS_HREDRAW | CS_VREDRAW;
	wcex.lpfnWndProc	= (WNDPROC)WndProc;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= hInstance;
	wcex.hIcon			= LoadIcon(hInstance, (LPCTSTR)IDI_TESTWIN32);
	wcex.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wcex.hbrBackground	= (HBRUSH)(COLOR_WINDOW+1);
	wcex.lpszMenuName	= (LPCWSTR)IDC_TESTWIN32;
	wcex.lpszClassName	= szWindowClass;
	wcex.hIconSm		= LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL);

	return RegisterClassExW(&wcex);
}

//
//   FUNKTION: InitInstance(HANDLE, int)
//
//   AUFGABE: Speichert die Instanzzugriffsnummer und erstellt das Hauptfenster
//
//   KOMMENTARE:
//
//        In dieser Funktion wird die Instanzzugriffsnummer in einer globalen Variable
//        gespeichert und das Hauptprogrammfenster erstellt und angezeigt.
//
BOOL InitInstance( HINSTANCE hInstance, int nCmdShow )
{
=====================================================================
Found a 8 line (217 tokens) duplication in the following files: 
Starting at line 1506 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1534 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13, 0,13, 0,13,13,13,13,13,13,13,13,13,13,// fe70 - fe7f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fe80 - fe8f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fe90 - fe9f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fea0 - feaf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// feb0 - febf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fec0 - fecf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fed0 - fedf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fee0 - feef
=====================================================================
Found a 8 line (217 tokens) duplication in the following files: 
Starting at line 855 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 864 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbd0 - fbdf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbe0 - fbef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbf0 - fbff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd00 - fd0f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd10 - fd1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd20 - fd2f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,20,21,// fd30 - fd3f
=====================================================================
Found a 8 line (217 tokens) duplication in the following files: 
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 649 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c20 - 2c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c30 - 2c3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c40 - 2c4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c50 - 2c5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c60 - 2c6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c70 - 2c7f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 2c80 - 2c8f
     1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2c90 - 2c9f
=====================================================================
Found a 46 line (217 tokens) duplication in the following files: 
Starting at line 192 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LFolderList.cxx
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

			nStartPosFirstLine2 = nStartPosFirstLine;
		}
		else
		{
			String aField2;
			if ( pConnection->getStringDelimiter() != '\0' )
				aFirstLine.GetTokenSpecial(aField2,nStartPosFirstLine2,pConnection->getFieldDelimiter(),pConnection->getStringDelimiter());
			else
				aField2 = aField;

			if (aField2.Len() == 0)
			{
				bNumeric = FALSE;
			}
			else
			{
				bNumeric = TRUE;
				xub_StrLen nDot = 0;
				for (xub_StrLen j = 0; j < aField2.Len(); j++)
				{
					sal_Unicode c = aField2.GetChar(j);
					// nur Ziffern und Dezimalpunkt und Tausender-Trennzeichen?
					if ((!cDecimalDelimiter || c != cDecimalDelimiter) &&
						(!cThousandDelimiter || c != cThousandDelimiter) &&
						!aCharClass.isDigit(aField2,j))
					{
						bNumeric = FALSE;
						break;
					}
					if (cDecimalDelimiter && c == cDecimalDelimiter)
					{
						nPrecision = 15; // we have an decimal value
						nScale = 2;
						nDot++;
					}
				}

				if (nDot > 1) // if there is more than one dot it isn't a number
					bNumeric = FALSE;
				if (bNumeric && cThousandDelimiter)
				{
					// Ist der Trenner richtig angegeben?
					String aValue = aField2.GetToken(0,cDecimalDelimiter);
					for (sal_Int32 j = aValue.Len() - 4; j >= 0; j -= 4)
					{
						sal_Unicode c = aValue.GetChar(static_cast<sal_uInt16>(j));
=====================================================================
Found a 50 line (216 tokens) duplication in the following files: 
Starting at line 374 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlsect.cxx
Starting at line 770 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlsect.cxx

		aFrmItemSet.Put( aFmtCol );

		const SfxPoolItem *pItem;
		if( SFX_ITEM_SET == aItemSet.GetItemState( RES_BACKGROUND, sal_False,
												   &pItem ) )
		{
			aFrmItemSet.Put( *pItem );
			aItemSet.ClearItem( RES_BACKGROUND );
		}
		if( SFX_ITEM_SET == aItemSet.GetItemState( RES_FRAMEDIR, sal_False,
												   &pItem ) )
		{
			aFrmItemSet.Put( *pItem );
			aItemSet.ClearItem( RES_FRAMEDIR );
		}
		pDoc->Insert( *pPam, aSection, &aFrmItemSet, sal_False );

		// Jump to section, if this is requested.
		if( JUMPTO_REGION == eJumpTo && aName == sJmpMark )
		{
			bChkJumpMark = sal_True;
			eJumpTo = JUMPTO_NONE;
		}

		SwTxtNode* pOldTxtNd =
			bAppended ? 0 : pDoc->GetNodes()[pPam->GetPoint()->nNode]
								->GetTxtNode();

		pPam->Move( fnMoveBackward );

		// Move PageDesc and SwFmtBreak attributes of the current node
		// to the section's first node.
		if( pOldTxtNd )
			MovePageDescAttrs( pOldTxtNd, pPam->GetPoint()->nNode.GetIndex(),
							   sal_True	 );

		if( pPostIts )
		{
			// Move pending PostIts into the section.
			InsertAttrs( *pPostIts );
			delete pPostIts;
			pPostIts = 0;
		}

		pCntxt->SetSpansSection( sal_True );

		// Insert a bookmark if its name differs from the section's name only.
		if( aPropInfo.aId.Len() && aPropInfo.aId==aName )
			aPropInfo.aId.Erase();
	}
=====================================================================
Found a 61 line (216 tokens) duplication in the following files: 
Starting at line 797 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 699 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

    OSL_TRACE("Out osl_writeProfileString [ok]\n");
#endif
	return bRet;
}


sal_Bool SAL_CALL osl_writeProfileBool(oslProfile Profile,
							 const sal_Char* pszSection, const sal_Char* pszEntry,
							 sal_Bool Value)
{
    sal_Bool bRet = sal_False;

#ifdef TRACE_OSL_PROFILE
    OSL_TRACE("In  osl_writeProfileBool\n");
#endif

	if (Value)
		bRet=osl_writeProfileString(Profile, pszSection, pszEntry, STR_INI_BOOLONE);
	else
		bRet=osl_writeProfileString(Profile, pszSection, pszEntry, STR_INI_BOOLZERO);

#ifdef TRACE_OSL_PROFILE
    OSL_TRACE("Out osl_writeProfileBool [ok]\n");
#endif

    return bRet;
}


sal_Bool SAL_CALL osl_writeProfileIdent(oslProfile Profile,
							  const sal_Char* pszSection, const sal_Char* pszEntry,
							  sal_uInt32 FirstId, const sal_Char* Strings[],
							  sal_uInt32 Value)
{
	int i, n;
    sal_Bool bRet = sal_False;

#ifdef TRACE_OSL_PROFILE
    OSL_TRACE("In  osl_writeProfileIdent\n");
#endif

	for (n = 0; Strings[n] != NULL; n++);

	if ((i = Value - FirstId) >= n)
		bRet=sal_False;
	else
		bRet=osl_writeProfileString(Profile, pszSection, pszEntry, Strings[i]);

#ifdef TRACE_OSL_PROFILE
    OSL_TRACE("Out osl_writeProfileIdent\n");
#endif
    return bRet;
}


sal_Bool SAL_CALL osl_removeProfileEntry(oslProfile Profile,
							   const sal_Char *pszSection, const sal_Char *pszEntry)
{
	sal_uInt32    NoEntry;
	osl_TProfileSection* pSec;
	osl_TProfileImpl*    pProfile = 0;
=====================================================================
Found a 30 line (216 tokens) duplication in the following files: 
Starting at line 521 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx
Starting at line 575 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx

			case 0x10 : ComOut( CGM_LEVEL1 | CGM_EXTENDED_PRIMITIVES_SET, "Circular Arc Centre Close" )
			{
				double fOrientation, fStartAngle, fEndAngle, vector[ 4 ];
				FloatPoint aCenter, aRadius;

				if ( mbFigure )
					mpOutAct->CloseRegion();

				ImplGetPoint( aCenter, sal_True );
				ImplGetVector( &vector[ 0 ] );
				if ( pElement->eVDCType == VDC_REAL )
				{
					aRadius.X = (double)ImplGetFloat( pElement->eVDCRealPrecision, pElement->nVDCRealSize );
				}
				else
				{
					aRadius.X = (double)ImplGetI( pElement->nVDCIntegerPrecision );
				}
				ImplMapDouble( aRadius.X );
				aRadius.Y = aRadius.X;
				fStartAngle = acos( vector[ 0 ] / sqrt( vector[ 0 ] * vector[ 0 ] + vector[ 1 ] * vector[ 1 ] ) ) * 57.29577951308;
				fEndAngle = acos( vector[ 2 ] / sqrt( vector[ 2 ] * vector[ 2 ] + vector[ 3 ] * vector[ 3 ] ) ) * 57.29577951308;

				if ( vector[ 1 ] > 0 )
					fStartAngle = 360 - fStartAngle;
				if ( vector[ 3 ] > 0 )
					fEndAngle = 360 - fEndAngle;

				if ( mbAngReverse )
					ImplSwitchStartEndAngle( fStartAngle, fEndAngle );
=====================================================================
Found a 30 line (216 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltfilter/XSLTFilter.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx

    virtual sal_Bool SAL_CALL importer(
            const Sequence<PropertyValue>& aSourceData, 
            const Reference<XDocumentHandler>& xHandler, 
            const Sequence<OUString>& msUserData) 
        throw(RuntimeException);

    // XExportFilter
    virtual sal_Bool SAL_CALL exporter(
            const Sequence<PropertyValue>& aSourceData, 
            const Sequence<OUString>& msUserData) 
        throw(RuntimeException);

    // XDocumentHandler
    virtual void SAL_CALL startDocument() 
        throw (SAXException,RuntimeException);
    virtual void SAL_CALL endDocument() 
        throw (SAXException, RuntimeException);
    virtual void SAL_CALL startElement(const OUString& str, const Reference<XAttributeList>& attriblist) 
        throw (SAXException,RuntimeException);
    virtual void SAL_CALL endElement(const OUString& str)  
        throw (SAXException, RuntimeException);
    virtual void SAL_CALL characters(const OUString& str)  
        throw (SAXException, RuntimeException);
    virtual void SAL_CALL ignorableWhitespace(const OUString& str) 
        throw (SAXException, RuntimeException);
    virtual void SAL_CALL processingInstruction(const OUString& str, const OUString& str2) 
        throw (com::sun::star::xml::sax::SAXException,RuntimeException);
    virtual void SAL_CALL setDocumentLocator(const Reference<XLocator>& doclocator) 
        throw (SAXException,RuntimeException);    
};
=====================================================================
Found a 61 line (216 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BDriver.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ORealDriver.cxx

	extern T3SQLAllocHandle pODBC3SQLAllocHandle;
	extern T3SQLConnect pODBC3SQLConnect;
	extern T3SQLDriverConnect pODBC3SQLDriverConnect;
	extern T3SQLBrowseConnect pODBC3SQLBrowseConnect;
	extern T3SQLDataSources pODBC3SQLDataSources;
	extern T3SQLDrivers pODBC3SQLDrivers;
	extern T3SQLGetInfo pODBC3SQLGetInfo;
	extern T3SQLGetFunctions pODBC3SQLGetFunctions;
	extern T3SQLGetTypeInfo pODBC3SQLGetTypeInfo;
	extern T3SQLSetConnectAttr pODBC3SQLSetConnectAttr;
	extern T3SQLGetConnectAttr pODBC3SQLGetConnectAttr;
	extern T3SQLSetEnvAttr pODBC3SQLSetEnvAttr;
	extern T3SQLGetEnvAttr pODBC3SQLGetEnvAttr;
	extern T3SQLSetStmtAttr pODBC3SQLSetStmtAttr;
	extern T3SQLGetStmtAttr pODBC3SQLGetStmtAttr;
	//extern T3SQLSetDescField pODBC3SQLSetDescField;
	//extern T3SQLGetDescField pODBC3SQLGetDescField;
	//extern T3SQLGetDescRec pODBC3SQLGetDescRec;
	//extern T3SQLSetDescRec pODBC3SQLSetDescRec;
	extern T3SQLPrepare pODBC3SQLPrepare;
	extern T3SQLBindParameter pODBC3SQLBindParameter;
	//extern T3SQLGetCursorName pODBC3SQLGetCursorName;
	extern T3SQLSetCursorName pODBC3SQLSetCursorName;
	extern T3SQLExecute pODBC3SQLExecute;
	extern T3SQLExecDirect pODBC3SQLExecDirect;
	//extern T3SQLNativeSql pODBC3SQLNativeSql;
	extern T3SQLDescribeParam pODBC3SQLDescribeParam;
	extern T3SQLNumParams pODBC3SQLNumParams;
	extern T3SQLParamData pODBC3SQLParamData;
	extern T3SQLPutData pODBC3SQLPutData;
	extern T3SQLRowCount pODBC3SQLRowCount;
	extern T3SQLNumResultCols pODBC3SQLNumResultCols;
	extern T3SQLDescribeCol pODBC3SQLDescribeCol;
	extern T3SQLColAttribute pODBC3SQLColAttribute;
	extern T3SQLBindCol pODBC3SQLBindCol;
	extern T3SQLFetch pODBC3SQLFetch;
	extern T3SQLFetchScroll pODBC3SQLFetchScroll;
	extern T3SQLGetData pODBC3SQLGetData;
	extern T3SQLSetPos pODBC3SQLSetPos;
	extern T3SQLBulkOperations pODBC3SQLBulkOperations;
	extern T3SQLMoreResults pODBC3SQLMoreResults;
	//extern T3SQLGetDiagField pODBC3SQLGetDiagField;
	extern T3SQLGetDiagRec pODBC3SQLGetDiagRec;
	extern T3SQLColumnPrivileges pODBC3SQLColumnPrivileges;
	extern T3SQLColumns pODBC3SQLColumns;
	extern T3SQLForeignKeys pODBC3SQLForeignKeys;
	extern T3SQLPrimaryKeys pODBC3SQLPrimaryKeys;
	extern T3SQLProcedureColumns pODBC3SQLProcedureColumns;
	extern T3SQLProcedures pODBC3SQLProcedures;
	extern T3SQLSpecialColumns pODBC3SQLSpecialColumns;
	extern T3SQLStatistics pODBC3SQLStatistics;
	extern T3SQLTablePrivileges pODBC3SQLTablePrivileges;
	extern T3SQLTables pODBC3SQLTables;
	extern T3SQLFreeStmt pODBC3SQLFreeStmt;
	extern T3SQLCloseCursor pODBC3SQLCloseCursor;
	extern T3SQLCancel pODBC3SQLCancel;
	extern T3SQLEndTran pODBC3SQLEndTran;
	extern T3SQLDisconnect pODBC3SQLDisconnect;
	extern T3SQLFreeHandle pODBC3SQLFreeHandle;
	extern T3SQLGetCursorName pODBC3SQLGetCursorName;
	extern T3SQLNativeSql pODBC3SQLNativeSql;
=====================================================================
Found a 30 line (215 tokens) duplication in the following files: 
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_rasterizer_outline_aa.h
Starting at line 430 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_rasterizer_outline_aa.h

                    v = &m_src_vertices[2];
                    dv.x1    = v->x;
                    dv.y1    = v->y;
                    dv.lnext = v->len;
                    dv.curr = line_parameters(x2, y2, dv.x1, dv.y1, dv.lcurr);

                    v = &m_src_vertices[dv.idx];
                    dv.x2 = v->x;
                    dv.y2 = v->y;
                    dv.next = line_parameters(dv.x1, dv.y1, dv.x2, dv.y2, dv.lnext);

                    dv.xb1 = 0;
                    dv.yb1 = 0;
                    dv.xb2 = 0;
                    dv.yb2 = 0;

                    if(m_accurate_join)
                    {
                        dv.flags = 0;
                    }
                    else
                    {
                        dv.flags = 
                                (prev.diagonal_quadrant() == dv.curr.diagonal_quadrant()) |
                            ((dv.curr.diagonal_quadrant() == dv.next.diagonal_quadrant()) << 1);
                    }

                    if((dv.flags & 1) == 0)
                    {
                        bisectrix(prev, dv.curr, &dv.xb1, &dv.yb1);
=====================================================================
Found a 26 line (215 tokens) duplication in the following files: 
Starting at line 839 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/enhwmf.cxx
Starting at line 887 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/enhwmf.cxx

				UINT32 nSize = cbBmiSrc + cbBitsSrc + 14;
				char* pBuf = new char[ nSize ];
				SvMemoryStream aTmp( pBuf, nSize, STREAM_READ | STREAM_WRITE );
				aTmp.ObjectOwnsMemory( TRUE );
				aTmp << (BYTE)'B'
					 << (BYTE)'M'
					 << (UINT32)cbBitsSrc
					 << (UINT16)0
					 << (UINT16)0
					 << (UINT32)cbBmiSrc + 14;
				pWMF->Seek( nStart + offBmiSrc );
				pWMF->Read( pBuf + 14, cbBmiSrc );
				pWMF->Seek( nStart + offBitsSrc );
				pWMF->Read( pBuf + 14 + cbBmiSrc, cbBitsSrc );
				aTmp.Seek( 0 );
				aBitmap.Read( aTmp, TRUE );

                // test if it is sensible to crop
                if ( ( cxSrc > 0 ) && ( cySrc > 0 ) && 
                    ( xSrc >= 0 ) && ( ySrc >= 0 ) &&
                        ( xSrc + cxSrc <= aBitmap.GetSizePixel().Width() ) &&
                            ( ySrc + cySrc <= aBitmap.GetSizePixel().Height() ) )
                {
                    Rectangle aCropRect( Point( xSrc, ySrc ), Size( cxSrc, cySrc ) );
                    aBitmap.Crop( aCropRect );
                }
=====================================================================
Found a 22 line (215 tokens) duplication in the following files: 
Starting at line 408 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/lingucfg.cxx
Starting at line 508 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/lingucfg.cxx

    SvtLinguOptions &rOpt = aOpt;
    switch (nPropertyHandle)
    {
        case UPH_IS_GERMAN_PRE_REFORM :     pbVal = &rOpt.bIsGermanPreReform;  break;
        case UPH_IS_USE_DICTIONARY_LIST :   pbVal = &rOpt.bIsUseDictionaryList;    break;
        case UPH_IS_IGNORE_CONTROL_CHARACTERS : pbVal = &rOpt.bIsIgnoreControlCharacters;  break;
        case UPH_IS_HYPH_AUTO :             pbVal = &rOpt.bIsHyphAuto; break;
        case UPH_IS_HYPH_SPECIAL :          pbVal = &rOpt.bIsHyphSpecial;  break;
        case UPH_IS_SPELL_AUTO :            pbVal = &rOpt.bIsSpellAuto;    break;
        case UPH_IS_SPELL_HIDE :            pbVal = &rOpt.bIsSpellHideMarkings;    break;
        case UPH_IS_SPELL_IN_ALL_LANGUAGES :pbVal = &rOpt.bIsSpellInAllLanguages;  break;
        case UPH_IS_SPELL_SPECIAL :         pbVal = &rOpt.bIsSpellSpecial; break;
        case UPH_IS_WRAP_REVERSE :          pbVal = &rOpt.bIsSpellReverse; break;
        case UPH_DEFAULT_LANGUAGE :         pnVal = &rOpt.nDefaultLanguage;    break;
        case UPH_IS_SPELL_CAPITALIZATION :  pbVal = &rOpt.bIsSpellCapitalization;      break;
        case UPH_IS_SPELL_WITH_DIGITS :     pbVal = &rOpt.bIsSpellWithDigits;  break;
        case UPH_IS_SPELL_UPPER_CASE :      pbVal = &rOpt.bIsSpellUpperCase;       break;
        case UPH_HYPH_MIN_LEADING :         pnVal = &rOpt.nHyphMinLeading;     break;
        case UPH_HYPH_MIN_TRAILING :        pnVal = &rOpt.nHyphMinTrailing;    break;
        case UPH_HYPH_MIN_WORD_LENGTH :     pnVal = &rOpt.nHyphMinWordLength;  break;
        case UPH_ACTIVE_DICTIONARIES :
        {
=====================================================================
Found a 7 line (215 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c50 - 0c5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c60 - 0c6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c70 - 0c7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c80 - 0c8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c90 - 0c9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ca0 - 0caf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,// 0cb0 - 0cbf
=====================================================================
Found a 21 line (215 tokens) duplication in the following files: 
Starting at line 2338 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 1017 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/emfwr.cxx

				const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pAction;
				
				GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
				Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size		aSrcSize( aTmpMtf.GetPrefSize() );
				const Point		aDestPt( pA->GetPoint() );
				const Size		aDestSize( pA->GetSize() );
				const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long			nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
				}

				nMoveX = aDestPt.X() - aSrcPt.X(), nMoveY = aDestPt.Y() - aSrcPt.Y();

				if( nMoveX || nMoveY )
					aTmpMtf.Move( nMoveX, nMoveY );
=====================================================================
Found a 28 line (215 tokens) duplication in the following files: 
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx
Starting at line 775 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx

		case (B3D_TXT_MODE_BND|B3D_TXT_KIND_LUM) :
		{
			fS = fS - floor(fS);
			fT = fT - floor(fT);
			long nX2, nY2;

			if(fS > 0.5) {
				nX2 = (nX + 1) % GetBitmapSize().Width();
				fS = 1.0 - fS;
			} else
				nX2 = nX ? nX - 1 : GetBitmapSize().Width() - 1;

			if(fT > 0.5) {
				nY2 = (nY + 1) % GetBitmapSize().Height();
				fT = 1.0 - fT;
			} else
				nY2 = nY ? nY - 1 : GetBitmapSize().Height() - 1;

			fS += 0.5;
			fT += 0.5;
			double fRight = 1.0 - fS;
			double fBottom = 1.0 - fT;

			double fMidVal = (
				(double)pReadAccess->GetLuminance(nY, nX) * fS +
				(double)pReadAccess->GetLuminance(nY, nX2) * fRight) * fT + (
				(double)pReadAccess->GetLuminance(nY2, nX) * fS +
				(double)pReadAccess->GetLuminance(nY2, nX2) * fRight) * fBottom;
=====================================================================
Found a 53 line (215 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilteradaptor/streamwrap.cxx
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/java/streamwrap.cxx

namespace foo
{

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::osl;

//==================================================================
//= OInputStreamWrapper
//==================================================================
//------------------------------------------------------------------
OInputStreamWrapper::OInputStreamWrapper( File& _rStream )
				 :m_pSvStream(&_rStream)
				 ,m_bSvStreamOwner(sal_False)
{
}

//------------------------------------------------------------------
OInputStreamWrapper::OInputStreamWrapper( File* pStream, sal_Bool bOwner )
				 :m_pSvStream( pStream )
				 ,m_bSvStreamOwner( bOwner )
{
}

//------------------------------------------------------------------
OInputStreamWrapper::~OInputStreamWrapper()
{
	if( m_bSvStreamOwner )
		delete m_pSvStream;

}

//------------------------------------------------------------------------------
sal_Int32 SAL_CALL OInputStreamWrapper::readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
				throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	checkConnected();

	if (nBytesToRead < 0)
		throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));

	::osl::MutexGuard aGuard( m_aMutex );

	aData.realloc(nBytesToRead);

	sal_uInt64 nRead = 0;
	m_pSvStream->read((void*)aData.getArray(), nBytesToRead,nRead);

	checkError();

	// Wenn gelesene Zeichen < MaxLength, staruno::Sequence anpassen
	if (nRead < nBytesToRead)
=====================================================================
Found a 21 line (215 tokens) duplication in the following files: 
Starting at line 1231 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 2338 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx

				const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
				
				GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
				Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size		aSrcSize( aTmpMtf.GetPrefSize() );
				const Point		aDestPt( pA->GetPoint() );
				const Size		aDestSize( pA->GetSize() );
				const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long			nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
				}

				nMoveX = aDestPt.X() - aSrcPt.X(), nMoveY = aDestPt.Y() - aSrcPt.Y();

				if( nMoveX || nMoveY )
					aTmpMtf.Move( nMoveX, nMoveY );
=====================================================================
Found a 41 line (215 tokens) duplication in the following files: 
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 526 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx

                    pThis->getBridge()->getUnoEnv(),
                    (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pReturn ),
                        &pInterface, pTD, 0 );
                    (*pInterface->release)( pInterface );
                    TYPELIB_DANGER_RELEASE( pTD );
                    *ppException = 0;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

} } }
=====================================================================
Found a 42 line (214 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_trans_bilinear.h
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_trans_perspective.h

            m_valid = simul_eq<8, 1>::solve(left, right, m_mtx);
        }


        //--------------------------------------------------------------------
        // Set the direct transformations, i.e., rectangle -> quadrangle
        void rect_to_quad(double x1, double y1, double x2, double y2, 
                          const double* quad)
        {
            double src[8];
            src[0] = src[6] = x1;
            src[2] = src[4] = x2;
            src[1] = src[3] = y1;
            src[5] = src[7] = y2;
            quad_to_quad(src, quad);
        }


        //--------------------------------------------------------------------
        // Set the reverse transformations, i.e., quadrangle -> rectangle
        void quad_to_rect(const double* quad, 
                          double x1, double y1, double x2, double y2)
        {
            double dst[8];
            dst[0] = dst[6] = x1;
            dst[2] = dst[4] = x2;
            dst[1] = dst[3] = y1;
            dst[5] = dst[7] = y2;
            quad_to_quad(quad, dst);
        }

        //--------------------------------------------------------------------
        // Check if the equations were solved successfully
        bool is_valid() const { return m_valid; }

        //--------------------------------------------------------------------
        // Transform a point (x, y)
        void transform(double* x, double* y) const
        {
            double tx = *x;
            double ty = *y;
            double d = 1.0 / (m_mtx[6][0] * tx + m_mtx[7][0] * ty + 1.0);
=====================================================================
Found a 59 line (214 tokens) duplication in the following files: 
Starting at line 42 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_outline_aa.h
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_outline_aa.h

            m_dy <<= line_subpixel_shift;
        }

        //---------------------------------------------------------------------
        void inc_x() { m_dist += m_dy; }
        void dec_x() { m_dist -= m_dy; }
        void inc_y() { m_dist -= m_dx; }
        void dec_y() { m_dist += m_dx; }

        //---------------------------------------------------------------------
        void inc_x(int _dy)
        {
            m_dist += m_dy; 
            if(_dy > 0) m_dist -= m_dx; 
            if(_dy < 0) m_dist += m_dx; 
        }

        //---------------------------------------------------------------------
        void dec_x(int _dy)
        {
            m_dist -= m_dy; 
            if(_dy > 0) m_dist -= m_dx; 
            if(_dy < 0) m_dist += m_dx; 
        }

        //---------------------------------------------------------------------
        void inc_y(int _dx)
        {
            m_dist -= m_dx; 
            if(_dx > 0) m_dist += m_dy; 
            if(_dx < 0) m_dist -= m_dy; 
        }

        void dec_y(int _dx)
        //---------------------------------------------------------------------
        {
            m_dist += m_dx; 
            if(_dx > 0) m_dist += m_dy; 
            if(_dx < 0) m_dist -= m_dy; 
        }

        //---------------------------------------------------------------------
        int dist() const { return m_dist; }
        int dx()   const { return m_dx;   }
        int dy()   const { return m_dy;   }

    private:
        //---------------------------------------------------------------------
        int m_dx;
        int m_dy;
        int m_dist;
    };





    //===================================================distance_interpolator2
    class distance_interpolator2
=====================================================================
Found a 59 line (214 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchyservices.cxx
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_services.cxx
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavservices.cxx

using namespace com::sun::star;

//=========================================================================
static sal_Bool writeInfo( void * pRegistryKey,
                           const rtl::OUString & rImplementationName,
                           uno::Sequence< rtl::OUString > const & rServiceNames )
{
    rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
    aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

    uno::Reference< registry::XRegistryKey > xKey;
	try
	{
        xKey = static_cast< registry::XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
    catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
        catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo(
	void * /*pServiceManager*/, void * pRegistryKey )
{
	return pRegistryKey &&

	//////////////////////////////////////////////////////////////////////
	// WebDAV Content Provider.
	//////////////////////////////////////////////////////////////////////

	writeInfo( pRegistryKey,
=====================================================================
Found a 57 line (214 tokens) duplication in the following files: 
Starting at line 155 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/provider.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavservices.cxx

static sal_Bool writeInfo( void * pRegistryKey,
                           const rtl::OUString & rImplementationName,
                           uno::Sequence< rtl::OUString > const & rServiceNames )
{
    rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
    aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

    uno::Reference< registry::XRegistryKey > xKey;
	try
	{
        xKey = static_cast< registry::XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
    catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
        catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo(
	void * /*pServiceManager*/, void * pRegistryKey )
{
	return pRegistryKey &&

	//////////////////////////////////////////////////////////////////////
	// WebDAV Content Provider.
	//////////////////////////////////////////////////////////////////////

	writeInfo( pRegistryKey,
			   ::webdav_ucp::ContentProvider::getImplementationName_Static(),
=====================================================================
Found a 59 line (214 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpservices.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchyservices.cxx

using namespace hierarchy_ucp;

//=========================================================================
static sal_Bool writeInfo( void * pRegistryKey,
                           const rtl::OUString & rImplementationName,
                           uno::Sequence< rtl::OUString > const & rServiceNames )
{
    rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
    aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

    uno::Reference< registry::XRegistryKey > xKey;
	try
	{
        xKey = static_cast< registry::XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
    catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
        catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo(
	void * /*pServiceManager*/, void * pRegistryKey )
{
	return pRegistryKey &&

	//////////////////////////////////////////////////////////////////////
	// Hierarchy Content Provider.
	//////////////////////////////////////////////////////////////////////

	writeInfo( pRegistryKey,
=====================================================================
Found a 41 line (214 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/view/viewpg.cxx
Starting at line 495 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/view/viewpg.cxx

		( !rOptions.bPrintLeftPage && !rOptions.bPrintRightPage ))
		return;

	MultiSelection aMulti( rOptions.aMulti );
	Range aPages( aMulti.FirstSelected(), aMulti.LastSelected() );
	if ( aPages.Max() > USHRT_MAX )
		aPages.Max() = USHRT_MAX;

	ASSERT( aPages.Min() > 0,
			"Seite 0 Drucken?" );
	ASSERT( aPages.Min() <= aPages.Max(),
			"MinSeite groesser MaxSeite." );

	// eine neue Shell fuer den Printer erzeugen
	ViewShell aShell( *this, 0 );
	if ( &GetRefDev() == pPrt )
        aShell.mpTmpRef = new SfxPrinter( *pPrt );

	SET_CURR_SHELL( &aShell );

	aShell.PrepareForPrint( rOptions );

	// gibt es versteckte Absatzfelder, unnoetig wenn die Absaetze bereits
	// ausgeblendet sind.
	int bHiddenFlds = FALSE;
	SwFieldType* pFldType = 0;
	if ( GetViewOptions()->IsShowHiddenPara() )
	{
        pFldType = getIDocumentFieldsAccess()->GetSysFldType( RES_HIDDENPARAFLD );
		bHiddenFlds = 0 != pFldType->GetDepends();
		if( bHiddenFlds )
		{
			SwMsgPoolItem aHnt( RES_HIDDENPARA_PRINT );
			pFldType->Modify( &aHnt, 0);
		}
	}

	// Seiten fuers Drucken formatieren
	aShell.CalcPagesForPrint( (USHORT)aPages.Max(), &rProgress );

	USHORT nCopyCnt = rOptions.bCollate ? rOptions.nCopyCount : 1;
=====================================================================
Found a 48 line (214 tokens) duplication in the following files: 
Starting at line 2674 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl1.cxx
Starting at line 2730 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

	const Rectangle& rRect = GetBoundingRect( pRefEntry );
	Size aEntrySize( rRect.GetSize() );
	Rectangle aPrevEntryRect( aDDLastEntryPos, aEntrySize );
	Rectangle aCurEntryRect( aCurEntryPos, aEntrySize );

	if( !aPrevEntryRect.IsOver( aCurEntryRect ) )
	{
		HideDDIcon();
		ShowDDIcon( pRefEntry, rPosPix );
		return;
	}

	// Ueberlappung des neuen und alten D&D-Pointers!

	Rectangle aFullRect( aPrevEntryRect.Union( aCurEntryRect ) );
	if( !pDDTempDev )
	{
		pDDTempDev = new VirtualDevice( *pView );
		pDDTempDev->SetFont( pView->GetFont() );
	}

	Size aFullSize( aFullRect.GetSize() );
	Point aFullPos( aFullRect.TopLeft() );

	pDDTempDev->SetOutputSizePixel( aFullSize );

	// Hintergrund (mit dem alten D&D-Pointer!) sichern
	pDDTempDev->DrawOutDev( aEmptyPoint, aFullSize, aFullPos, aFullSize, *pView );
	// den alten Buffer in den neuen Buffer pasten
	aDDLastRectPos = aDDLastRectPos - aFullPos;

	pDDTempDev->DrawOutDev(
		aDDLastRectPos,
		pDDDev->GetOutputSizePixel(),
		aEmptyPoint,
		pDDDev->GetOutputSizePixel(),
		*pDDDev );

	// Swap
	VirtualDevice* pTemp = pDDDev;
	pDDDev = pDDTempDev;
	pDDTempDev = pTemp;

	// in den restaurierten Hintergrund den neuen D&D-Pointer zeichnen
	pDDTempDev->SetOutputSizePixel( pDDDev->GetOutputSizePixel() );
	pDDTempDev->DrawOutDev(
		aEmptyPoint, aFullSize, aEmptyPoint, aFullSize, *pDDDev );
	Point aRelPos = aCurEntryPos - aFullPos;
=====================================================================
Found a 25 line (214 tokens) duplication in the following files: 
Starting at line 1142 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/appserv.cxx
Starting at line 1172 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/appserv.cxx

				xORB->createInstance( ::rtl::OUString::createFromAscii("com.sun.star.text.ModuleDispatcher")), UNO_QUERY );

			if ( xProv.is() )
			{
				::rtl::OUString aCmd = ::rtl::OUString::createFromAscii( GetInterface()->GetSlot( rReq.GetSlot() )->GetUnoName() );
				Reference< com::sun::star::frame::XDispatchHelper > xHelper(
					xORB->createInstance( ::rtl::OUString::createFromAscii("com.sun.star.frame.DispatchHelper")), UNO_QUERY );
				if ( xHelper.is() )
				{
					Sequence < com::sun::star::beans::PropertyValue > aSeq;
					if ( rReq.GetArgs() )
						TransformItems( rReq.GetSlot(), *rReq.GetArgs(), aSeq );
					Any aResult = xHelper->executeDispatch( xProv, aCmd, ::rtl::OUString(), 0, aSeq );
					::com::sun::star::frame::DispatchResultEvent aEvent;
					sal_Bool bSuccess = (
										 (aResult >>= aEvent) &&
                                         (aEvent.State == ::com::sun::star::frame::DispatchResultState::SUCCESS)
										);
					rReq.SetReturnValue( SfxBoolItem( rReq.GetSlot(), bSuccess ) );
				}
			}
		}
		break;

		case SID_ADDRESS_DATA_SOURCE:
=====================================================================
Found a 56 line (214 tokens) duplication in the following files: 
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx

	uno::Reference<lang::XMultiServiceFactory> & rFactory,
	const sal_Char* pFilterName,
	Sequence<Any> rFilterArguments,
	const OUString& rName,
	sal_Bool bMustBeSuccessfull)
{
    DBG_ASSERT(xStorage.is(), "Need storage!");
	DBG_ASSERT(NULL != pStreamName, "Please, please, give me a name!");

	// open stream (and set parser input)
	OUString sStreamName = OUString::createFromAscii(pStreamName);
    sal_Bool bContainsStream = sal_False;
    try
    {
        bContainsStream = xStorage->isStreamElement(sStreamName);
    }
    catch( container::NoSuchElementException& )
    {
    }

    if (!bContainsStream )
	{
		// stream name not found! Then try the compatibility name.
		// if no stream can be opened, return immediatly with OK signal

		// do we even have an alternative name?
		if ( NULL == pCompatibilityStreamName )
			return 0;

		// if so, does the stream exist?
		sStreamName = OUString::createFromAscii(pCompatibilityStreamName);
        try
        {
            bContainsStream = xStorage->isStreamElement(sStreamName);
        }
        catch( container::NoSuchElementException& )
        {
        }

        if (! bContainsStream )
			return 0;
	}

	// set Base URL
	uno::Reference< beans::XPropertySet > xInfoSet;
	if( rFilterArguments.getLength() > 0 )
		rFilterArguments.getConstArray()[0] >>= xInfoSet;
	DBG_ASSERT( xInfoSet.is(), "missing property set" );
	if( xInfoSet.is() )
	{
		OUString sPropName( RTL_CONSTASCII_USTRINGPARAM("StreamName") );
		xInfoSet->setPropertyValue( sPropName, makeAny( sStreamName ) );
	}

    try
    {
=====================================================================
Found a 9 line (214 tokens) duplication in the following files: 
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 539 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIXML),	SC_WID_UNO_VALIXML,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLVJUS),	ATTR_VER_JUSTIFY,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLWID),	SC_WID_UNO_CELLWID,	&getCppuType((sal_Int32*)0),			0, 0 },
=====================================================================
Found a 17 line (214 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxfentrd.cxx
Starting at line 378 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxfentrd.cxx

		case  1: strncpy( sText, rDGR.GetS(), DXF_MAX_STRING_LEN + 1 ); break;
		case  2: strncpy( sTagStr, rDGR.GetS(), DXF_MAX_STRING_LEN + 1 ); break;
		case 70: nAttrFlags=rDGR.GetI(); break;
		case 73: nFieldLen=rDGR.GetI(); break;
		case 50: fRotAngle=rDGR.GetF(); break;
		case 41: fXScale=rDGR.GetF(); break;
		case 51: fOblAngle=rDGR.GetF(); break;
		case  7: strncpy( sStyle, rDGR.GetS(), DXF_MAX_STRING_LEN + 1 ); break;
		case 71: nGenFlags=rDGR.GetI(); break;
		case 72: nHorzJust=rDGR.GetI(); break;
		case 74: nVertJust=rDGR.GetI(); break;
		case 11: aAlign.fx=rDGR.GetF(); break;
		case 21: aAlign.fy=rDGR.GetF(); break;
		case 31: aAlign.fz=rDGR.GetF(); break;
		default: DXFBasicEntity::EvaluateGroup(rDGR);
	}
}
=====================================================================
Found a 42 line (214 tokens) duplication in the following files: 
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/statusbarfactory.cxx
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/toolboxfactory.cxx

    if ( aResourceURL.indexOf( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:resource/toolbar/" ))) != 0 )
        throw IllegalArgumentException();
    else
    {
        // Identify frame and determine document based ui configuration manager/module ui configuration manager
        if ( xFrame.is() && !xConfigSource.is() )
        {
            bool bHasSettings( false );
            Reference< XModel > xModel;

            Reference< XController > xController = xFrame->getController();
            if ( xController.is() )
                xModel = xController->getModel();

            if ( xModel.is() )
            {
                Reference< XUIConfigurationManagerSupplier > xUIConfigurationManagerSupplier( xModel, UNO_QUERY );
                if ( xUIConfigurationManagerSupplier.is() )
                {
                    xCfgMgr = xUIConfigurationManagerSupplier->getUIConfigurationManager();
                    bHasSettings = xCfgMgr->hasSettings( aResourceURL );
                }
            }

            if ( !bHasSettings )
            {
                rtl::OUString aModuleIdentifier = m_xModuleManager->identify( Reference< XInterface >( xFrame, UNO_QUERY ));
                if ( aModuleIdentifier.getLength() )
                {
                    Reference< ::com::sun::star::ui::XModuleUIConfigurationManagerSupplier > xModuleCfgSupplier(
                        m_xServiceManager->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( 
                            "com.sun.star.ui.ModuleUIConfigurationManagerSupplier" ))), 
                        UNO_QUERY );
                    xCfgMgr = xModuleCfgSupplier->getUIConfigurationManager( aModuleIdentifier );
                    bHasSettings = xCfgMgr->hasSettings( aResourceURL );
                }
            }
        }
    }

    PropertyValue aPropValue;
    Sequence< Any > aPropSeq( 5 );
=====================================================================
Found a 56 line (214 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LNoException.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/quotedstring.cxx

    void QuotedTokenizedString::GetTokenSpecial( String& _rStr,xub_StrLen& nStartPos, sal_Unicode cTok, sal_Unicode cStrDel ) const
    {
	    _rStr.Erase();
	    xub_StrLen nLen = Len();
	    if ( nLen )
	    {
		    BOOL bInString = (nStartPos < nLen) && ((*this).GetChar(nStartPos) == cStrDel);	// Befinden wir uns INNERHALB eines (cStrDel delimited) String?

		    // Erstes Zeichen ein String-Delimiter?
		    if (bInString )
			    ++nStartPos;			// dieses Zeichen ueberlesen!
		    // Suche bis Stringende nach dem ersten nicht uebereinstimmenden Zeichen
		    for( xub_StrLen i = nStartPos; i < nLen; ++i )
		    {
			    if (bInString)
			    {
				    // Wenn jetzt das String-Delimiter-Zeichen auftritt ...
				    if ( (*this).GetChar(i) == cStrDel )
				    {
					    if ((i+1 < nLen) && ((*this).GetChar(i+1) == cStrDel))
					    {
						    // Verdoppeltes String-Delimiter-Zeichen:
						    ++i;	// kein String-Ende, naechstes Zeichen ueberlesen.

						    _rStr += (*this).GetChar(i);	// Zeichen gehoert zum Resultat-String
					    }
					    else
					    {
						    // String-Ende
						    bInString = FALSE;
					    }
				    }
				    else
				    {
					    _rStr += (*this).GetChar(i);	// Zeichen gehoert zum Resultat-String
				    }

			    }
			    else
			    {
				    // Stimmt das Tokenzeichen ueberein, dann erhoehe nTok
				    if ( (*this).GetChar(i) == cTok )
				    {
					    // Vorzeitiger Abbruch der Schleife moeglich, denn
					    // wir haben, was wir wollten.
					    nStartPos = i+1;
					    break;
				    }
				    else
				    {
					    _rStr += (*this).GetChar(i);	// Zeichen gehoert zum Resultat-String
				    }
			    }
		    }
	    }
    }
=====================================================================
Found a 37 line (214 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

using namespace lang;

using namespace ::com::sun::star::container;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::util;

using ::rtl::OUString;
using ::rtl::OString;

using namespace ::cppu;

#define ASCII(x) ::rtl::OUString::createFromAscii(x)

ostream& operator << (ostream& out, rtl::OUString const& aStr)
{
	sal_Unicode const* const pStr = aStr.getStr();
	sal_Unicode const* const pEnd = pStr + aStr.getLength();
	for (sal_Unicode const* p = pStr; p < pEnd; ++p)
		if (0 < *p && *p < 127) // ASCII
			out << char(*p);
		else
			out << "[\\u" << hex << *p << "]";
	return out;
}

void showSequence(const Sequence<OUString> &aSeq)
{
	OUString aArray;
	const OUString *pStr = aSeq.getConstArray();
	for (int i=0;i<aSeq.getLength();i++)
	{
		OUString aStr = pStr[i];
		// aArray += aStr + ASCII(", ");
		cout << aStr << endl;
	}
	volatile int dummy = 0;
}
=====================================================================
Found a 41 line (214 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javamaker.cxx
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javamaker.cxx

	if (!produceType(typeName, typeMgr,	generated, pOptions))
	{
		fprintf(stderr, "%s ERROR: %s\n", 
				pOptions->getProgramName().getStr(), 
				OString("cannot dump Type '" + typeName + "'").getStr());
		exit(99);
	}

    RegistryKeyList typeKeys = typeMgr.getTypeKeys(typeName);
	RegistryKeyList::const_iterator iter = typeKeys.begin();
    RegistryKey key, subKey;
    RegistryKeyArray subKeys;

	while (iter != typeKeys.end())
	{
        key = (*iter).first;
        if (!(*iter).second  && !key.openSubKeys(OUString(), subKeys))
        {
            for (sal_uInt32 i = 0; i < subKeys.getLength(); i++)
            {
                subKey = subKeys.getElement(i);
                if (bFullScope)
                {
                    if (!produceAllTypes(
                            subKey, (*iter).second,
                            typeMgr, generated, pOptions, sal_True))
                        return sal_False;
                } else
                {
                    if (!produceType(subKey, (*iter).second,
                                     typeMgr, generated, pOptions))
                        return sal_False;
                }
            }
        }      
        
        ++iter;
	}
    
	return sal_True;			
}
=====================================================================
Found a 54 line (214 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx
Starting at line 1195 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

sal_Bool ConstantsType::dump(IdlOptions* pOptions)
	throw( CannotDumpException )
{
	sal_Bool ret = sal_False;

	OString outPath;
	if (pOptions->isValid("-O"))
		outPath = pOptions->getOption("-O");

	OString tmpFileName;
	OString hFileName = createFileNameFromType(outPath, m_typeName, ".idl");

	sal_Bool bFileExists = sal_False;
	sal_Bool bFileCheck = sal_False;

	if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
	{
		bFileExists = fileExists( hFileName );
		ret = sal_True;
	}

	if ( bFileExists && pOptions->isValid("-Gc") )
	{
		tmpFileName	 = createFileNameFromType(outPath, m_typeName, ".tml");
		bFileCheck = sal_True;
	}

	if ( !bFileExists || bFileCheck )
	{
		FileStream hFile;

		if ( bFileCheck )
			hFile.open(tmpFileName);
		else
			hFile.open(hFileName);

		if(!hFile.isValid())
		{
			OString message("cannot open ");
			message += hFileName + " for writing";
			throw CannotDumpException(message);
		}

		ret = dumpHFile(hFile);

		hFile.close();
		if (ret && bFileCheck)
		{
			ret = checkFileContent(hFileName, tmpFileName);
		}
	}

	return ret;
}
=====================================================================
Found a 35 line (213 tokens) duplication in the following files: 
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx
Starting at line 1706 of /local/ooo-build/ooo-build/src/oog680-m3/uui/source/iahndl.cxx

                                                 xIH));
                if (aRec.UserList.getLength() != 0)
                {
                    OSL_ENSURE(aRec.UserList[0].Passwords.getLength() != 0,
                               "empty password list");
                    if (!rRequest.HasPassword
                        || rRequest.Password != aRec.UserList[0].Passwords[0])
                    {
                        if (xSupplyAuthentication->canSetUserName())
                            xSupplyAuthentication->
                                setUserName(
				    aRec.UserList[0].UserName.getStr());
                        if (xSupplyAuthentication->canSetPassword())
                            xSupplyAuthentication->
                                setPassword(aRec.UserList[0].Passwords[0].
                                            getStr());
                        if (aRec.UserList[0].Passwords.getLength() > 1)
                            if (rRequest.HasRealm)
                            {
                                if (xSupplyAuthentication->canSetRealm())
                                    xSupplyAuthentication->
                                        setRealm(aRec.UserList[0].Passwords[1].
                                                                  getStr());
                            }
                            else if (xSupplyAuthentication->canSetAccount())
                                xSupplyAuthentication->
                                    setAccount(aRec.UserList[0].Passwords[1].
                                               getStr());
                        xSupplyAuthentication->select();
                        return;
                    }
                }
            }
        }
        catch (star::task::NoMasterException const &)
=====================================================================
Found a 47 line (213 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpservices.cxx
Starting at line 155 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/provider.cxx

static sal_Bool
writeInfo( void                                 *pRegistryKey,
	   const rtl::OUString                  &rImplementationName,
	   uno::Sequence< rtl::OUString > const &rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

	uno::Reference< registry::XRegistryKey > xKey;
	try {
		xKey = static_cast< registry::XRegistryKey * >
			(pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & ) {
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n ) {
		try {
			xKey->createKey( rServiceNames[ n ] );

		} catch ( registry::InvalidRegistryException const & ) {
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

extern "C" void SAL_CALL 
component_getImplementationEnvironment( const sal_Char  **ppEnvTypeName,
					uno_Environment **/*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

extern "C" sal_Bool SAL_CALL 
component_writeInfo( void */*pServiceManager*/,
		     void *pRegistryKey )
{
	return pRegistryKey &&
		writeInfo( pRegistryKey,
=====================================================================
Found a 8 line (213 tokens) duplication in the following files: 
Starting at line 1440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1448 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f60 - 2f6f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f70 - 2f7f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f80 - 2f8f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f90 - 2f9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fa0 - 2faf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fb0 - 2fbf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2fc0 - 2fcf
    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2fd0 - 2fdf
=====================================================================
Found a 7 line (213 tokens) duplication in the following files: 
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1243 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 19 line (213 tokens) duplication in the following files: 
Starting at line 507 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ipict/ipict.cxx
Starting at line 531 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ipict/ipict.cxx

	Point aStartPt, aEndPt, aCenter;

	*pPict >> nstartAngle >> narcAngle;
	if (narcAngle<0) {
		nstartAngle = nstartAngle + narcAngle;
		narcAngle=-narcAngle;
	}
	fAng1=((double)nstartAngle)/180.0*3.14159265359;
	fAng2=((double)(nstartAngle+narcAngle))/180.0*3.14159265359;
	aCenter=Point((aLastArcRect.Left()+aLastArcRect.Right())/2,
				  (aLastArcRect.Top()+aLastArcRect.Bottom())/2);
	aStartPt=Point(aCenter.X()+(long)( sin(fAng2)*256.0),
				   aCenter.Y()+(long)(-cos(fAng2)*256.0));
	aEndPt=  Point(aCenter.X()+(long)( sin(fAng1)*256.0),
				   aCenter.Y()+(long)(-cos(fAng1)*256.0));
		DrawingMethod(eMethod);
	if (eMethod==PDM_FRAME) pVirDev->DrawArc(aLastArcRect,aStartPt,aEndPt);
	else pVirDev->DrawPie(aLastArcRect,aStartPt,aEndPt);
	return 4;
=====================================================================
Found a 27 line (213 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/os2/ibm/tempnam.c
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/borland/tempnam.c

	unsigned int _psp = rand();
#endif

   pl = strlen(P_tmpdir);

   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
   else if( (tmpdir = getenv("TMP")) != NULL ) tl = strlen(tmpdir);
   if( dir != NULL ) dl = strlen(dir);

   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
     return(NULL);

   *p = '\0';

   if( (tl == 0) || (d_access( strcpy(p, tmpdir), 0) != 0) )
     if( (dl == 0) || (d_access( strcpy(p, dir), 0) != 0) )
	if( d_access( strcpy(p, P_tmpdir), 0) != 0 )
	   if( !prefix )
	      prefix = "tp";

   if(prefix)
   {
      *(p+strlen(p)+2) = '\0';
      (void)strncat(p, prefix, 2);
   }

   sprintf( buf, "%08x", _psp );
=====================================================================
Found a 22 line (213 tokens) duplication in the following files: 
Starting at line 1019 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/UITools.cxx
Starting at line 264 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/helper/vclunohelper.cxx

float VCLUnoHelper::ConvertFontWidth( FontWidth eWidth )
{
	if( eWidth == WIDTH_DONTKNOW )
		return ::com::sun::star::awt::FontWidth::DONTKNOW;
	else if( eWidth == WIDTH_ULTRA_CONDENSED )
		return ::com::sun::star::awt::FontWidth::ULTRACONDENSED;
	else if( eWidth == WIDTH_EXTRA_CONDENSED )
		return ::com::sun::star::awt::FontWidth::EXTRACONDENSED;
	else if( eWidth == WIDTH_CONDENSED )
		return ::com::sun::star::awt::FontWidth::CONDENSED;
	else if( eWidth == WIDTH_SEMI_CONDENSED )
		return ::com::sun::star::awt::FontWidth::SEMICONDENSED;
	else if( eWidth == WIDTH_NORMAL )
		return ::com::sun::star::awt::FontWidth::NORMAL;
	else if( eWidth == WIDTH_SEMI_EXPANDED )
		return ::com::sun::star::awt::FontWidth::SEMIEXPANDED;
	else if( eWidth == WIDTH_EXPANDED )
		return ::com::sun::star::awt::FontWidth::EXPANDED;
	else if( eWidth == WIDTH_EXTRA_EXPANDED )
		return ::com::sun::star::awt::FontWidth::EXTRAEXPANDED;
	else if( eWidth == WIDTH_ULTRA_EXPANDED )
		return ::com::sun::star::awt::FontWidth::ULTRAEXPANDED;
=====================================================================
Found a 24 line (213 tokens) duplication in the following files: 
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

Sequence< Type > SAL_CALL OFlatTable::getTypes(  ) throw(RuntimeException)
{
	Sequence< Type > aTypes = OTable_TYPEDEF::getTypes();
	::std::vector<Type> aOwnTypes;
	aOwnTypes.reserve(aTypes.getLength());
	const Type* pBegin = aTypes.getConstArray();
	const Type* pEnd = pBegin + aTypes.getLength();
	for(;pBegin != pEnd;++pBegin)
	{
		if(!(*pBegin == ::getCppuType((const Reference<XKeysSupplier>*)0)	||
			*pBegin == ::getCppuType((const Reference<XRename>*)0)			||
			*pBegin == ::getCppuType((const Reference<XIndexesSupplier>*)0) ||
			*pBegin == ::getCppuType((const Reference<XAlterTable>*)0)		||
			*pBegin == ::getCppuType((const Reference<XDataDescriptorFactory>*)0)))
		{
			aOwnTypes.push_back(*pBegin);
		}
	}
	Type *pTypes = aOwnTypes.empty() ? 0 : &aOwnTypes[0];
	return Sequence< Type >(pTypes, aOwnTypes.size());
}

// -------------------------------------------------------------------------
Any SAL_CALL OFlatTable::queryInterface( const Type & rType ) throw(RuntimeException)
=====================================================================
Found a 21 line (213 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
Starting at line 1184 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx

	aMap[adDate]			= _bJetEngine ? ADOS::MapADOType2Jdbc(adDBTimeStamp) : ADOS::MapADOType2Jdbc(adDate);
	aMap[adDBDate]			= ADOS::MapADOType2Jdbc(adDBDate);
	aMap[adDBTime]			= ADOS::MapADOType2Jdbc(adDBTime);
	aMap[adDBTimeStamp]		= ADOS::MapADOType2Jdbc(adDBTimeStamp);
	aMap[adBSTR]			= ADOS::MapADOType2Jdbc(adBSTR);
	aMap[adChar]			= ADOS::MapADOType2Jdbc(adChar);
	aMap[adVarChar]			= ADOS::MapADOType2Jdbc(adVarChar);
	aMap[adLongVarChar]		= ADOS::MapADOType2Jdbc(adLongVarChar);
	aMap[adWChar]			= ADOS::MapADOType2Jdbc(adWChar);
	aMap[adVarWChar]		= ADOS::MapADOType2Jdbc(adVarWChar);
	aMap[adLongVarWChar]	= ADOS::MapADOType2Jdbc(adLongVarWChar);
	aMap[adBinary]			= ADOS::MapADOType2Jdbc(adBinary);
	aMap[adVarBinary]		= ADOS::MapADOType2Jdbc(adVarBinary);
	aMap[adLongVarBinary]	= ADOS::MapADOType2Jdbc(adLongVarBinary);
	aMap[adChapter]			= ADOS::MapADOType2Jdbc(adChapter);
	aMap[adFileTime]		= ADOS::MapADOType2Jdbc(adFileTime);
	aMap[adPropVariant]		= ADOS::MapADOType2Jdbc(adPropVariant);
	aMap[adVarNumeric]		= ADOS::MapADOType2Jdbc(adVarNumeric);
//	aMap[adArray]			= ADOS::MapADOType2Jdbc(adArray);

	m_aValueRange[2] = aMap;
=====================================================================
Found a 37 line (213 tokens) duplication in the following files: 
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx
Starting at line 2152 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx

		const basegfx::B2DPolygon aPolygon(aPolyPolygon.getB2DPolygon(nPolygon));
		const sal_uInt32 nPointCount(aPolygon.count());

		if(nPointCount)
		{
			if(aPolygon.areControlPointsUsed())
			{
				// prepare edge-based loop
				basegfx::B2DPoint aCurrentPoint(aPolygon.getB2DPoint(0));
				const sal_uInt32 nEdgeCount(aPolygon.isClosed() ? nPointCount - 1 : nPointCount);

				// first vertex
				path.move_to(aCurrentPoint.getX(), aCurrentPoint.getY());

				for(sal_uInt32 a(0); a < nEdgeCount; a++)
				{
					// access next point
					const sal_uInt32 nNextIndex((a + 1) % nPointCount);
					const basegfx::B2DPoint aNextPoint(aPolygon.getB2DPoint(nNextIndex));

					// get control points
					const basegfx::B2DPoint aControlNext(aPolygon.getNextControlPoint(a));
					const basegfx::B2DPoint aControlPrev(aPolygon.getPrevControlPoint(nNextIndex));

					// specify first cp, second cp, next vertex
					path.curve4(
						aControlNext.getX(), aControlNext.getY(),
						aControlPrev.getX(), aControlPrev.getY(),
						aNextPoint.getX(), aNextPoint.getY());

					// prepare next step
					aCurrentPoint = aNextPoint;
				}
			}
			else
			{
				const basegfx::B2DPoint aPoint(aPolygon.getB2DPoint(0));
=====================================================================
Found a 49 line (213 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx

        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if defined BRIDGES_DEBUG
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
=====================================================================
Found a 28 line (212 tokens) duplication in the following files: 
Starting at line 622 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 804 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

							  OUString( RTL_CONSTASCII_USTRINGPARAM("currency-symbol") ),
							  _xAttributes );	
	ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DecimalAccuracy") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("decimal-accuracy") ),
							   _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowThousandsSeparator") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("thousands-separator") ),
							   _xAttributes );
	ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Value") ),
							  OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
							  _xAttributes );
	ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMin") ),
							  OUString( RTL_CONSTASCII_USTRINGPARAM("value-min") ),
							  _xAttributes );
	ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMax") ),
							  OUString( RTL_CONSTASCII_USTRINGPARAM("value-max") ),
							  _xAttributes );
	ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueStep") ),
							  OUString( RTL_CONSTASCII_USTRINGPARAM("value-step") ),
							  _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("spin") ),
							   _xAttributes );
	if (ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat"),
                                _xAttributes ))
		ctx.getControlModel()->setPropertyValue(
            OUSTR("Repeat"), makeAny(true) );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("PrependCurrencySymbol") ),
=====================================================================
Found a 39 line (212 tokens) duplication in the following files: 
Starting at line 391 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

	PrinterInfoManager& rManager( PrinterInfoManager::get() );
    static const char* pNoSyncDetection = getenv( "SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION" );
    if( ! pNoSyncDetection || ! *pNoSyncDetection )
    {
        // #i62663# synchronize possible asynchronouse printer detection now
        rManager.checkPrintersChanged( true );
    }
	::std::list< OUString > aPrinters;
	rManager.listPrinters( aPrinters );

	for( ::std::list< OUString >::iterator it = aPrinters.begin(); it != aPrinters.end(); ++it )
	{
		const PrinterInfo& rInfo( rManager.getPrinterInfo( *it ) );
		// Neuen Eintrag anlegen
		SalPrinterQueueInfo* pInfo = new SalPrinterQueueInfo;
		pInfo->maPrinterName	= *it;
		pInfo->maDriver			= rInfo.m_aDriverName;
		pInfo->maLocation		= rInfo.m_aLocation;
		pInfo->maComment      	= rInfo.m_aComment;
		pInfo->mpSysData		= NULL;

        sal_Int32 nIndex = 0;
        while( nIndex != -1 )
		{
			String aToken( rInfo.m_aFeatures.getToken( 0, ',', nIndex ) );
			if( aToken.CompareToAscii( "pdf=", 4 ) == COMPARE_EQUAL )
			{
				pInfo->maLocation = getPdfDir( rInfo );
				break;
			}
		}

		pList->Add( pInfo );
	}
}

// -----------------------------------------------------------------------

void X11SalInstance::DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo )
=====================================================================
Found a 18 line (212 tokens) duplication in the following files: 
Starting at line 1271 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/print2.cxx
Starting at line 1314 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/print2.cxx

                pOut->DrawGradient( rPolyPoly, rGradient );
        }
        else
        {
            const Color&    rStartColor = rGradient.GetStartColor();
            const Color&    rEndColor = rGradient.GetEndColor();
            const long      nR = ( ( (long) rStartColor.GetRed() * rGradient.GetStartIntensity() ) / 100L +
                                   ( (long) rEndColor.GetRed() * rGradient.GetEndIntensity() ) / 100L ) >> 1;
            const long      nG = ( ( (long) rStartColor.GetGreen() * rGradient.GetStartIntensity() ) / 100L +
                                   ( (long) rEndColor.GetGreen() * rGradient.GetEndIntensity() ) / 100L ) >> 1;
            const long      nB = ( ( (long) rStartColor.GetBlue() * rGradient.GetStartIntensity() ) / 100L +
                                   ( (long) rEndColor.GetBlue() * rGradient.GetEndIntensity() ) / 100L ) >> 1;
            const Color     aColor( (BYTE) nR, (BYTE) nG, (BYTE) nB );

            pOut->Push( PUSH_LINECOLOR | PUSH_FILLCOLOR );
            pOut->SetLineColor( aColor );
            pOut->SetFillColor( aColor );
            pOut->DrawPolyPolygon( rPolyPoly );
=====================================================================
Found a 27 line (212 tokens) duplication in the following files: 
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcfg.cxx
Starting at line 436 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcfg.cxx

                    aVal.Value <<= OUString( RTL_CONSTASCII_USTRINGPARAM( "/org.openoffice.VCL/FontSubstitutions" ) );
                    aArgs.getArray()[0] <<= aVal;
                    m_xConfigAccess =
                        Reference< XNameAccess >(
                            m_xConfigProvider->createInstanceWithArguments( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
                                                "com.sun.star.configuration.ConfigurationAccess" )),
                                                                            aArgs ),
                            UNO_QUERY );
                    if( m_xConfigAccess.is() )
                    {
                        Sequence< OUString > aLocales = m_xConfigAccess->getElementNames();
                        // fill config hash with empty interfaces
                        int nLocales = aLocales.getLength();
                        const OUString* pLocaleStrings = aLocales.getConstArray();
                        Locale aLoc;
                        for( int i = 0; i < nLocales; i++ )
                        {
                            sal_Int32 nIndex = 0;
                            aLoc.Language = pLocaleStrings[i].getToken( 0, sal_Unicode('-'), nIndex ).toAsciiLowerCase();
                            if( nIndex != -1 )
                                aLoc.Country = pLocaleStrings[i].getToken( 0, sal_Unicode('-'), nIndex ).toAsciiUpperCase();
                            else
                                aLoc.Country = OUString();
                            if( nIndex != -1 )
                                aLoc.Variant = pLocaleStrings[i].getToken( 0, sal_Unicode('-'), nIndex ).toAsciiUpperCase();
                            else
                                aLoc.Variant = OUString();
=====================================================================
Found a 21 line (212 tokens) duplication in the following files: 
Starting at line 5070 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4640 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptWedgeRectCalloutVert[] =
{
	{ 0, 0 },
	{ 0, 3590 }, { 2 MSO_I, 3 MSO_I }, { 0, 8970 },
	{ 0, 12630 },{ 4 MSO_I, 5 MSO_I }, { 0, 18010 },
	{ 0, 21600 },
	{ 3590, 21600 }, { 6 MSO_I, 7 MSO_I }, { 8970, 21600 },
	{ 12630, 21600 }, { 8 MSO_I, 9 MSO_I }, { 18010, 21600 },
	{ 21600, 21600 },
	{ 21600, 18010 }, { 10 MSO_I, 11 MSO_I }, { 21600, 12630 },
	{ 21600, 8970 }, { 12 MSO_I, 13 MSO_I }, { 21600, 3590 },
	{ 21600, 0 },
	{ 18010, 0 }, { 14 MSO_I, 15 MSO_I }, { 12630, 0 },
	{ 8970, 0 }, { 16 MSO_I, 17 MSO_I }, { 3590, 0 },
	{ 0, 0 }
};
static const SvxMSDffCalculationData mso_sptWedgeRectCalloutCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 10800 },		//0x400
=====================================================================
Found a 32 line (212 tokens) duplication in the following files: 
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/digest.c
Starting at line 1150 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/digest.c

static void __rtl_digest_endSHA (DigestContextSHA *ctx)
{
	static const sal_uInt8 end[4] =
	{
		0x80, 0x00, 0x00, 0x00
	};
	register const sal_uInt8 *p = end;
	
	register sal_uInt32 *X;
	register int         i;

	X = ctx->m_pData;
	i = (ctx->m_nDatLen >> 2);

#ifdef OSL_BIGENDIAN
	__rtl_digest_swapLong (X, i + 1);
#endif /* OSL_BIGENDIAN */

	switch (ctx->m_nDatLen & 0x03)
	{
		case 1: X[i] &= 0x000000ff; break;
		case 2: X[i] &= 0x0000ffff; break;
		case 3: X[i] &= 0x00ffffff; break;
	}

	switch (ctx->m_nDatLen & 0x03)
	{
		case 0: X[i]  = ((sal_uInt32)(*(p++))) <<  0L;
		case 1: X[i] |= ((sal_uInt32)(*(p++))) <<  8L;
		case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L;
		case 3: X[i] |= ((sal_uInt32)(*(p++))) << 24L;
	}
=====================================================================
Found a 59 line (212 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_AcceptorSocket.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_StreamSocket.cxx

const char * pTestString2 = " Passed#OK";

//------------------------------------------------------------------------
// helper functions
//------------------------------------------------------------------------

// just used to test socket::close() when accepting
class AcceptorThread : public Thread
{
    ::osl::AcceptorSocket asAcceptorSocket;
    ::rtl::OUString aHostIP;
    sal_Bool bOK;
protected:  
    void SAL_CALL run( )
        {
            ::osl::SocketAddr saLocalSocketAddr( aHostIP, IP_PORT_MYPORT9 );
            ::osl::StreamSocket ssStreamConnection;
        
            asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //integer not sal_Bool : sal_True);
            sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
            if  ( sal_True != bOK1 )
            {
                t_print("# AcceptorSocket bind address failed.\n" ) ;
                return;
            }
            sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
            if  ( sal_True != bOK2 )
            { 
                t_print("# AcceptorSocket listen address failed.\n" ) ;
                return;
            }

            asAcceptorSocket.enableNonBlockingMode( sal_False );
        
            oslSocketResult eResult = asAcceptorSocket.acceptConnection( ssStreamConnection );
            if (eResult != osl_Socket_Ok )
            {
                bOK = sal_True;
                t_print("AcceptorThread: acceptConnection failed! \n");            
            }   
        }
public:
    AcceptorThread(::osl::AcceptorSocket & asSocket, ::rtl::OUString const& aBindIP )
            : asAcceptorSocket( asSocket ), aHostIP( aBindIP )
        {
            bOK = sal_False;
        }
    
    sal_Bool isOK() { return bOK; }
    
    ~AcceptorThread( )
        {
            if ( isRunning( ) )
            {
                asAcceptorSocket.shutdown();
                t_print("# error: Acceptor thread not terminated.\n" );
            }
        }
};
=====================================================================
Found a 92 line (212 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/win32/misc/AutoBuffer.cxx
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/sysui/source/win32/misc/AutoBuffer.cxx

	if ( new_size != m_buffSize )
	{
		if ( new_size > m_buffSize )
		{
			delete [] m_pBuff;
			m_pBuff = NULL;
		}

		m_buffSize = new_size;
	}

	return sal_True;
}

//------------------------------------------------------------------------
// 
//------------------------------------------------------------------------

void SAL_CALL CAutoUnicodeBuffer::empty( )
{
	if ( m_pBuff )
		ZeroMemory( m_pBuff, m_buffSize * sizeof( sal_Unicode ) );
}

//------------------------------------------------------------------------
// 
//------------------------------------------------------------------------

sal_Bool SAL_CALL CAutoUnicodeBuffer::fill( const sal_Unicode* pContent, size_t nLen )
{
	OSL_ASSERT( pContent && m_buffSize && (m_buffSize >= nLen) );

	init( );

	sal_Bool bRet = sal_False;

	if ( m_pBuff && pContent && nLen )
	{
		CopyMemory( m_pBuff, pContent, nLen * sizeof( sal_Unicode ) );
		bRet = sal_True;
	}

	return bRet;
}

//------------------------------------------------------------------------
// 
//------------------------------------------------------------------------

size_t SAL_CALL CAutoUnicodeBuffer::size( ) const
{
	return m_buffSize;
}
	
//------------------------------------------------------------------------
// 
//------------------------------------------------------------------------

CAutoUnicodeBuffer::operator sal_Unicode*( )
{
	return m_pBuff;
}
	
//------------------------------------------------------------------------
// 
//------------------------------------------------------------------------

sal_Unicode* CAutoUnicodeBuffer::operator&( )
{
	return m_pBuff;
}

//------------------------------------------------------------------------
// 
//------------------------------------------------------------------------

const sal_Unicode* CAutoUnicodeBuffer::operator&( ) const
{
	return m_pBuff;
}

//------------------------------------------------------------------------
// 
//------------------------------------------------------------------------

void SAL_CALL CAutoUnicodeBuffer::init( )
{
	if ( !m_pBuff && (m_buffSize > 0) )
		m_pBuff = new sal_Unicode[ m_buffSize ];		

	empty( );
}
=====================================================================
Found a 20 line (212 tokens) duplication in the following files: 
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

class Impl2b: public Interface2b, private Base {
public:
    virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const & type)
        throw (css::uno::RuntimeException)
    {
        if (type
            == getCppuType< css::uno::Reference< css::uno::XInterface > >())
        {
            css::uno::Reference< css::uno::XInterface > ref(
                static_cast< css::uno::XInterface * >(
                    static_cast< Interface2a * >(this)));
            return css::uno::Any(&ref, type);
        } else if (type == getCppuType< css::uno::Reference< Interface2 > >()) {
            css::uno::Reference< Interface2 > ref(this);
            return css::uno::Any(&ref, type);
        } else if (type == getCppuType< css::uno::Reference< Interface2a > >())
        {
            css::uno::Reference< Interface2a > ref(this);
            return css::uno::Any(&ref, type);
        } else if (type == getCppuType< css::uno::Reference< Interface2b > >())
=====================================================================
Found a 44 line (212 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

	void ** pCppArgs  = (void **)malloc( 3 * sizeof(void *) * nParams );
#else
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
#endif
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
                break;
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
#ifdef BROKEN_ALLOCA
					*(void **)pCppStack = pCppArgs[nPos] = malloc( pParamTypeDescr->nSize ),
=====================================================================
Found a 47 line (212 tokens) duplication in the following files: 
Starting at line 481 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 476 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

    sal_Int32 functionCount, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription * >(
                        member)->pAttributeTypeRef));
            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(code, functionOffset++, vtableOffset, true);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription * >(
                        member)->pReturnTypeRef));
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}

void bridges::cpp_uno::shared::VtableFactory::flushCode(
    unsigned char const *, unsigned char const *)
=====================================================================
Found a 39 line (212 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx

			pUnoReturn = pReturnValue; // direct way for simple types
		}
		else // complex return via ptr (pCppReturn)
		{
			pCppReturn = *(void **)pCppStack;
			pCppStack += sizeof(void *);
			
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
                              pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
=====================================================================
Found a 23 line (211 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokTestService.cxx
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx

sal_Int32 SAL_CALL XMLScanner::run( const uno::Sequence< rtl::OUString >& aArguments ) throw (uno::RuntimeException)
{
  	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
			rtl::OUString arg=aArguments[0];

			uno::Reference<com::sun::star::ucb::XSimpleFileAccess> xFileAccess(
			xFactory->createInstanceWithContext(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SimpleFileAccess")),
				xContext), uno::UNO_QUERY_THROW );

			rtl_uString *dir=NULL;
			osl_getProcessWorkingDir(&dir);
			rtl::OUString absFileUrl;
			osl_getAbsoluteFileURL(dir, arg.pData, &absFileUrl.pData);
			rtl_uString_release(dir);

			uno::Reference <lang::XSingleServiceFactory> xStorageFactory(
=====================================================================
Found a 20 line (211 tokens) duplication in the following files: 
Starting at line 751 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 821 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                            y_lr++;

                        } while(--y_count);


                        fg[0] >>= image_filter_shift;
                        fg[1] >>= image_filter_shift;
                        fg[2] >>= image_filter_shift;
                        fg[3] >>= image_filter_shift;

                        if(fg[0] < 0) fg[0] = 0;
                        if(fg[1] < 0) fg[1] = 0;
                        if(fg[2] < 0) fg[2] = 0;
                        if(fg[3] < 0) fg[3] = 0;

                        if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                        if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                        if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                        if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
                    }
=====================================================================
Found a 34 line (211 tokens) duplication in the following files: 
Starting at line 698 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi3.cxx
Starting at line 737 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi3.cxx

    XubString aFontName( reinterpret_cast<const xub_Unicode*>(rLogFont.lfFaceName) );
    if ( aFontName.Len() )
    {
        rFont.SetName( aFontName );
        rFont.SetCharSet( ImplCharSetToSal( rLogFont.lfCharSet ) );
        rFont.SetFamily( ImplFamilyToSal( rLogFont.lfPitchAndFamily ) );
        rFont.SetPitch( ImplLogPitchToSal( rLogFont.lfPitchAndFamily ) );
        rFont.SetWeight( ImplWeightToSal( rLogFont.lfWeight ) );

        long nFontHeight = rLogFont.lfHeight;
        if ( nFontHeight < 0 )
            nFontHeight = -nFontHeight;
        long nDPIY = GetDeviceCaps( hDC, LOGPIXELSY );
        if( !nDPIY )
            nDPIY = 600;
        nFontHeight *= 72;
        nFontHeight += nDPIY/2;
        nFontHeight /= nDPIY;
        rFont.SetSize( Size( 0, nFontHeight ) );
        rFont.SetOrientation( (short)rLogFont.lfEscapement );
        if ( rLogFont.lfItalic )
            rFont.SetItalic( ITALIC_NORMAL );
        else
            rFont.SetItalic( ITALIC_NONE );
        if ( rLogFont.lfUnderline )
            rFont.SetUnderline( UNDERLINE_SINGLE );
        else
            rFont.SetUnderline( UNDERLINE_NONE );
        if ( rLogFont.lfStrikeOut )
            rFont.SetStrikeout( STRIKEOUT_SINGLE );
        else
            rFont.SetStrikeout( STRIKEOUT_NONE );
    }
}
=====================================================================
Found a 31 line (211 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx

									  const sal_uInt32* pData, sal_uInt32 nOffset, sal_uInt32 nScanSize )
{
	DBG_ASSERT( !!maBitmap && !!maMask, "Missing call to ImageConsumer::SetColorModel(...)!" );

	BitmapWriteAccess*	pBmpAcc = maBitmap.AcquireWriteAccess();
	BitmapWriteAccess*	pMskAcc = maMask.AcquireWriteAccess();
	sal_Bool			bDataChanged = sal_False;

	if( pBmpAcc && pMskAcc )
	{
		const long	nWidth = pBmpAcc->Width();
		const long	nHeight = pBmpAcc->Height();

		maChangedRect = Rectangle( Point(), Size( nWidth, nHeight ) );
		maChangedRect.Intersection( Rectangle( Point( nConsX, nConsY ), Size( nConsWidth, nConsHeight ) ) );

		if( !maChangedRect.IsEmpty() )
		{
			const long nStartX = maChangedRect.Left();
			const long nEndX = maChangedRect.Right();
			const long nStartY = maChangedRect.Top();
			const long nEndY = maChangedRect.Bottom();

			if( mpMapper && ( pBmpAcc->GetBitCount() > 8 ) )
			{
				BitmapColor aCol;
				BitmapColor	aMskWhite( pMskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );

				for( long nY = nStartY; nY <= nEndY; nY++ )
				{
					const sal_Int32* pTmp = (sal_Int32*) pData + ( nY - nStartY ) * nScanSize + nOffset;
=====================================================================
Found a 38 line (211 tokens) duplication in the following files: 
Starting at line 2049 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 3416 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx

IMPL_LINK( SvxNumPositionTabPage, LevelHdl_Impl, ListBox *, pBox )
{
	USHORT nSaveNumLvl = nActNumLvl;
	nActNumLvl = 0;
	if(pBox->IsEntryPosSelected( pActNum->GetLevelCount() ) &&
			(pBox->GetSelectEntryCount() == 1 || nSaveNumLvl != 0xffff))
	{
		nActNumLvl = 0xFFFF;
		pBox->SetUpdateMode(FALSE);
		for( USHORT i = 0; i < pActNum->GetLevelCount(); i++ )
			pBox->SelectEntryPos( i, FALSE );
		pBox->SetUpdateMode(TRUE);
	}
	else if(pBox->GetSelectEntryCount())
	{
		USHORT nMask = 1;
		for( USHORT i = 0; i < pActNum->GetLevelCount(); i++ )
		{
			if(pBox->IsEntryPosSelected( i ))
				nActNumLvl |= nMask;
			nMask <<= 1;
		}
		pBox->SelectEntryPos( pActNum->GetLevelCount(), FALSE );
	}
	else
	{
		nActNumLvl = nSaveNumLvl;
		USHORT nMask = 1;
		for( USHORT i = 0; i < pActNum->GetLevelCount(); i++ )
		{
			if(nActNumLvl & nMask)
			{
				pBox->SelectEntryPos(i);
				break;
			}
			nMask <<=1;
		}
	}
=====================================================================
Found a 30 line (211 tokens) duplication in the following files: 
Starting at line 3639 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3706 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

	double fSumSqrDeltaY    = 0.0; // sum of (ValY-MeanY)^2
	for (SCSIZE i = 0; i < nC1; i++)
    {
		for (SCSIZE j = 0; j < nR1; j++)
		{
			if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
			{
				double fValX = pMat1->GetDouble(i,j);
				double fValY = pMat2->GetDouble(i,j);
				fSumX += fValX;
				fSumY += fValY;
				fCount++;
			}
		}
    }
	if (fCount < 1.0) // fCount==1 is handled by checking denominator later on
		SetNoValue();
	else
	{
		double fMeanX = fSumX / fCount;
		double fMeanY = fSumY / fCount;
		for (SCSIZE i = 0; i < nC1; i++)
        {
            for (SCSIZE j = 0; j < nR1; j++)
            {
                if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
                {
                    double fValX = pMat1->GetDouble(i,j);
                    double fValY = pMat2->GetDouble(i,j);
                    fSumDeltaXDeltaY += (fValX - fMeanX) * (fValY - fMeanY);
=====================================================================
Found a 43 line (211 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/cpp.h
Starting at line 19 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/cpp.h

typedef unsigned char uchar;

#endif

enum toktype
{
    END, UNCLASS, NAME, NUMBER, STRING, CCON, NL, WS, DSHARP,
    EQ, NEQ, LEQ, GEQ, LSH, RSH, LAND, LOR, PPLUS, MMINUS,
    ARROW, SBRA, SKET, LP, RP, DOT, AND, STAR, PLUS, MINUS,
    TILDE, NOT, SLASH, PCT, LT, GT, CIRC, OR, QUEST,
    COLON, ASGN, COMMA, SHARP, SEMIC, CBRA, CKET,
    ASPLUS, ASMINUS, ASSTAR, ASSLASH, ASPCT, ASCIRC, ASLSH,
    ASRSH, ASOR, ASAND, ELLIPS,
    DSHARP1, NAME1, NAME2, DEFINED, UMINUS, ARCHITECTURE, IDENT,
	COMMENT
};

enum kwtype
{
    KIF, KIFDEF, KIFNDEF, KELIF, KELSE, KENDIF, KINCLUDE, KINCLUDENEXT,
    KIMPORT, KDEFINE, KUNDEF, KLINE, KERROR, KPRAGMA, KIDENT, KDEFINED, 
	KMACHINE, KLINENO, KFILE, KDATE, KTIME, KSTDC, KEVAL
};

#define	ISDEFINED		0x01            /* has #defined value */
#define	ISKW			0x02            /* is PP keyword */
#define	ISUNCHANGE		0x04            /* can't be #defined in PP */
#define	ISMAC			0x08            /* builtin macro, e.g. __LINE__ */
#define	ISARCHITECTURE	0x10            /* architecture */
#define ISACTIVE        0x80            /* is macro currently expanded */

#define	EOB		0xFE                    /* sentinel for end of input buffer */
#define	EOFC	0xFD                    /* sentinel for end of input file */
#define	XPWS	1                       /* token flag: white space to assure token sep. */
#define XTWS	2

typedef struct token
{
    unsigned char type;
    unsigned char flag;
    unsigned int wslen;
    unsigned int len;
	uchar *t;
=====================================================================
Found a 9 line (211 tokens) duplication in the following files: 
Starting at line 1349 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1400 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2690 - 269f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26a0 - 26af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,10,10,10,10, 0,10,10,10,10, 0, 0,10,10,10,10,// 2700 - 270f
=====================================================================
Found a 9 line (211 tokens) duplication in the following files: 
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1149 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cd0 - 0cdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ce0 - 0cef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cf0 - 0cff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d00 - 0d0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d10 - 0d1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d20 - 0d2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d30 - 0d3f
     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
=====================================================================
Found a 7 line (211 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c50 - 0c5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c60 - 0c6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c70 - 0c7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c80 - 0c8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c90 - 0c9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ca0 - 0caf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,// 0cb0 - 0cbf
=====================================================================
Found a 9 line (211 tokens) duplication in the following files: 
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 622 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2690 - 269f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26a0 - 26af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,27,27,27,27, 0,27,27,27,27, 0, 0,27,27,27,27,// 2700 - 270f
=====================================================================
Found a 28 line (211 tokens) duplication in the following files: 
Starting at line 3875 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 3947 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

					 padd(ascii("draw:z-index"), sXML_CDATA,
                    ascii(Int2Str(hbox->zorder, "%d", buf)));
                switch (hbox->style.anchor_type)
                {
                    case CHAR_ANCHOR:
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("as-char"));
                        break;
                    case PARA_ANCHOR:
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("paragraph"));
                        break;
                    case PAGE_ANCHOR:
                    case PAPER_ANCHOR:
                    {
                        // os unused
                        // HWPInfo *hwpinfo = hwpfile.GetHWPInfo();
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("page"));
                        padd(ascii("text:anchor-page-number"), sXML_CDATA,
                            ascii(Int2Str(hbox->pgno +1, "%d", buf)));
                        break;
                    }
                }
                if (hbox->style.anchor_type != CHAR_ANCHOR)
                {
                    padd(ascii("svg:x"), sXML_CDATA,
                        Double2Str(WTMM( hbox->pgx + hbox->style.margin[0][0] )) + ascii("mm"));
                    padd(ascii("svg:y"), sXML_CDATA,
                        Double2Str(WTMM( hbox->pgy + hbox->style.margin[0][2] )) + ascii("mm"));
                }
=====================================================================
Found a 21 line (211 tokens) duplication in the following files: 
Starting at line 1124 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
Starting at line 947 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

		aRow.push_back(new ORowSetValueDecorator(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("VARCHAR"))));
		aRow.push_back(new ORowSetValueDecorator(DataType::VARCHAR));
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)s_nCHAR_OCTET_LENGTH));
		aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		// aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnValue::NULLABLE));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);
=====================================================================
Found a 41 line (211 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DNoException.cxx
Starting at line 2420 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DTable.cxx

			sal_uInt32 nLength(0);
			(*m_pMemoStream) >> nLength;

			if (m_aMemoHeader.db_typ == MemodBaseIV)
				nLength -= 8;

			//	char cChar;
			::rtl::OUString aStr;
			while ( nLength > STRING_MAXLEN )
			{
				ByteString aBStr;
				aBStr.Expand(STRING_MAXLEN);
				m_pMemoStream->Read(aBStr.AllocBuffer(STRING_MAXLEN),STRING_MAXLEN);
				aStr += ::rtl::OUString(aBStr.GetBuffer(),aBStr.Len(), getConnection()->getTextEncoding());
				nLength -= STRING_MAXLEN;
			}
			if ( nLength > 0 )
			{
				ByteString aBStr;
				aBStr.Expand(static_cast<xub_StrLen>(nLength));
				m_pMemoStream->Read(aBStr.AllocBuffer(static_cast<xub_StrLen>(nLength)),nLength);
				//	aBStr.ReleaseBufferAccess();

				aStr += ::rtl::OUString(aBStr.GetBuffer(),aBStr.Len(), getConnection()->getTextEncoding());

			}
			if ( aStr.getLength() )
				aVariable = aStr;
		}
	}
	return sal_True;
}
// -----------------------------------------------------------------------------
void ODbaseTable::AllocBuffer()
{
	UINT16 nSize = m_aHeader.db_slng;
	OSL_ENSURE(nSize > 0, "Size too small");

	if (m_nBufferSize != nSize)
	{
		delete m_pBuffer;
=====================================================================
Found a 35 line (211 tokens) duplication in the following files: 
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx

			nRes = *p->pInteger; break;

		// ab hier muss getestet werden
		case SbxBYREF | SbxLONG:
			aTmp.nLong = *p->pLong; goto ref;
		case SbxBYREF | SbxULONG:
			aTmp.nULong = *p->pULong; goto ref;
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			aTmp.nUShort = *p->pUShort; goto ref;
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
		case SbxBYREF | SbxSALINT64:
			aTmp.nInt64 = *p->pnInt64; goto ref;
		case SbxBYREF | SbxSALUINT64:
			aTmp.uInt64 = *p->puInt64; goto ref;
		ref:
			aTmp.eType = SbxDataType( p->eType & 0x0FFF );
			p = &aTmp; goto start;

		default:
			SbxBase::SetError( SbxERR_CONVERSION ); nRes = 0;
	}
	return nRes;
}

void ImpPutInteger( SbxValues* p, INT16 n )
=====================================================================
Found a 17 line (210 tokens) duplication in the following files: 
Starting at line 751 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                    y_lr = ++m_wrap_mode_y;
                } while(--y_count);

                fg[0] >>= image_filter_shift;
                fg[1] >>= image_filter_shift;
                fg[2] >>= image_filter_shift;
                fg[3] >>= image_filter_shift;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
=====================================================================
Found a 44 line (210 tokens) duplication in the following files: 
Starting at line 1341 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/glyphs/gcach_ftyp.cxx
Starting at line 1496 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/glyphs/gcach_ftyp.cxx

    if( mnPrioEmbedded <= mnPrioAntiAlias )
        nLoadFlags |= FT_LOAD_NO_BITMAP;

    FT_Error rc = -1;
#if (FTVERSION <= 2008)
    // #88364# freetype<=2005 prefers autohinting to embedded bitmaps
    // => first we have to try without hinting
    if( (nLoadFlags & (FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP)) == 0 )
    {
        rc = FT_Load_Glyph( maFaceFT, nGlyphIndex, nLoadFlags|FT_LOAD_NO_HINTING );
        if( (rc==FT_Err_Ok) && (maFaceFT->glyph->format != FT_GLYPH_FORMAT_BITMAP) )
            rc = -1; // mark as "loading embedded bitmap" was unsuccessful
        nLoadFlags |= FT_LOAD_NO_BITMAP;
    }

    if( rc != FT_Err_Ok )
#endif
        rc = FT_Load_Glyph( maFaceFT, nGlyphIndex, nLoadFlags );

    if( rc != FT_Err_Ok )
        return false;

    if( mbArtBold && pFTEmbolden )
        (*pFTEmbolden)( maFaceFT->glyph );

    FT_Glyph pGlyphFT;
    rc = FT_Get_Glyph( maFaceFT->glyph, &pGlyphFT );
    if( rc != FT_Err_Ok )
        return false;

    int nAngle = ApplyGlyphTransform( nGlyphFlags, pGlyphFT, true );

    if( mbArtItalic )
    {
        FT_Matrix aMatrix;
        aMatrix.xx = aMatrix.yy = 0x10000L;
        if( nFTVERSION >= 2102 )    // Freetype 2.1.2 API swapped xy with yx
            aMatrix.xy = 0x6000L, aMatrix.yx = 0;
        else
            aMatrix.yx = 0x6000L, aMatrix.xy = 0;
        FT_Glyph_Transform( pGlyphFT, &aMatrix, NULL );
    }

    if( pGlyphFT->format == FT_GLYPH_FORMAT_OUTLINE )
=====================================================================
Found a 39 line (210 tokens) duplication in the following files: 
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 826 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx

void  SvxNumPickTabPage::ActivatePage(const SfxItemSet& rSet)
{
	const SfxPoolItem* pItem;
	bPreset = FALSE;
	BOOL bIsPreset = FALSE;
	const SfxItemSet* pExampleSet = GetTabDialog()->GetExampleSet();
	if(pExampleSet)
	{
		if(SFX_ITEM_SET == pExampleSet->GetItemState(SID_PARAM_NUM_PRESET, FALSE, &pItem))
			bIsPreset = ((const SfxBoolItem*)pItem)->GetValue();
		if(SFX_ITEM_SET == pExampleSet->GetItemState(SID_PARAM_CUR_NUM_LEVEL, FALSE, &pItem))
			nActNumLvl = ((const SfxUInt16Item*)pItem)->GetValue();
	}
	if(SFX_ITEM_SET == rSet.GetItemState(nNumItemId, FALSE, &pItem))
	{
		delete pSaveNum;
		pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule());
	}
	if(*pSaveNum != *pActNum)
	{
		*pActNum = *pSaveNum;
		pExamplesVS->SetNoSelection();
	}
	// ersten Eintrag vorselektieren
	if(pActNum && (!lcl_IsNumFmtSet(pActNum, nActNumLvl) || bIsPreset))
	{
		pExamplesVS->SelectItem(1);
		NumSelectHdl_Impl(pExamplesVS);
		bPreset = TRUE;
	}
	bPreset |= bIsPreset;
	bModified = FALSE;
}

/* -----------------08.02.97 11.29-------------------

--------------------------------------------------*/

int  SvxNumPickTabPage::DeactivatePage(SfxItemSet *_pSet)
=====================================================================
Found a 32 line (210 tokens) duplication in the following files: 
Starting at line 2007 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/printfun.cxx
Starting at line 2073 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/printfun.cxx

	if ( bClearWin && bDoPrint )
	{
		//	muss genau zum Zeichnen des Rahmens in preview.cxx passen !!!

		Color aBackgroundColor( COL_WHITE );
		if ( bUseStyleColor )
            aBackgroundColor.SetColor( SC_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor );

		pDev->SetMapMode(aOffsetMode);
		pDev->SetLineColor();
		pDev->SetFillColor(aBackgroundColor);
		pDev->DrawRect(Rectangle(Point(),
				Size((long)(aPageSize.Width() * nScaleX * 100 / nZoom),
					 (long)(aPageSize.Height() * nScaleY * 100 / nZoom))));
	}


	//		aPageRect auf linke / rechte Seiten anpassen

	Rectangle aTempRect = Rectangle( Point(), aPageSize );
	if (IsMirror(nPageNo))
	{
		aPageRect.Left()  = ( aTempRect.Left()  + nRightMargin ) * 100 / nZoom;
		aPageRect.Right() = ( aTempRect.Right() - nLeftMargin  ) * 100 / nZoom;
	}
	else
	{
		aPageRect.Left()  = ( aTempRect.Left()  + nLeftMargin  ) * 100 / nZoom;
		aPageRect.Right() = ( aTempRect.Right() - nRightMargin ) * 100 / nZoom;
	}

	if ( aAreaParam.bRepeatCol )
=====================================================================
Found a 56 line (210 tokens) duplication in the following files: 
Starting at line 883 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx
Starting at line 1597 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx

			if(pScChangeAction==NULL) continue;


			switch(pScChangeAction->GetState())
			{
				case SC_CAS_VIRGIN:

					if(pScChangeAction->IsDialogRoot())
					{
						if(pScChangeAction->IsDialogParent())
							pParent=InsertChangeAction(pScChangeAction,SC_CAS_VIRGIN);
						else
							pParent=InsertFilteredAction(pScChangeAction,SC_CAS_VIRGIN);
					}
					else
						pParent=NULL;

					bTheFlag=TRUE;
					break;

				case SC_CAS_ACCEPTED:
					pParent=NULL;
					nAcceptCount++;
					break;

				case SC_CAS_REJECTED:
					pParent=NULL;
					nRejectCount++;
					break;
			}

			if(pParent!=NULL && pScChangeAction->IsDialogParent())
			{
				if(!bFilterFlag)
				{
					pParent->EnableChildsOnDemand(TRUE);
				}
				else
				{
					BOOL bTestFlag=bHasFilterEntry;
					bHasFilterEntry=FALSE;
					if(Expand(pChanges,pScChangeAction,pParent,!bTestFlag)&&!bTestFlag)
                        pTheView->RemoveEntry(pParent);
				}
			}

			pScChangeAction=pScChangeAction->GetNext();
		}

        if( bTheFlag && (!pDoc->IsDocEditable() || pChanges->IsProtected()) )
			bTheFlag=FALSE;

		pTPView->EnableAccept(bTheFlag);
		pTPView->EnableAcceptAll(bTheFlag);
		pTPView->EnableReject(bTheFlag);
		pTPView->EnableRejectAll(bTheFlag);
=====================================================================
Found a 43 line (210 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/saxdemo.cxx

class OFileWriter :
		public WeakImplHelper1< XOutputStream >
{
public:
	OFileWriter( char *pcFile ) { strncpy( m_pcFile , pcFile, 256 - 1 ); m_f = 0; }


public:
    virtual void SAL_CALL writeBytes(const Sequence< sal_Int8 >& aData)
		throw  (NotConnectedException, BufferSizeExceededException, RuntimeException);
    virtual void SAL_CALL flush(void)
		throw  (NotConnectedException, BufferSizeExceededException, RuntimeException);
    virtual void SAL_CALL closeOutput(void)
		throw  (NotConnectedException, BufferSizeExceededException, RuntimeException);
private:
	char m_pcFile[256];
	FILE *m_f;
};


void OFileWriter::writeBytes(const Sequence< sal_Int8 >& aData)
	throw  (NotConnectedException, BufferSizeExceededException, RuntimeException)
{
	if( ! m_f ) {
		m_f = fopen( m_pcFile , "w" );
	}

	fwrite( aData.getConstArray() , 1 , aData.getLength() , m_f );
}


void OFileWriter::flush(void)
	throw  (NotConnectedException, BufferSizeExceededException, RuntimeException)
{
	fflush( m_f );
}

void OFileWriter::closeOutput(void)
	throw  (NotConnectedException, BufferSizeExceededException, RuntimeException)
{
	fclose( m_f );
	m_f = 0;
}
=====================================================================
Found a 23 line (210 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvasfont.cxx
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvasfont.cxx

    CanvasFont::CanvasFont( const rendering::FontRequest& 					rFontRequest,
                            const uno::Sequence< beans::PropertyValue >&	, 
                            const geometry::Matrix2D& 						rFontMatrix,
                            const DeviceRef&								rDevice ) :
        CanvasFont_Base( m_aMutex ),
        maFont( Font( rFontRequest.FontDescription.FamilyName,
                      rFontRequest.FontDescription.StyleName,
                      Size( 0, ::basegfx::fround(rFontRequest.CellSize) ) ) ),
        maFontRequest( rFontRequest ),
        mpRefDevice( rDevice )
    {
        maFont->SetAlign( ALIGN_BASELINE );
        maFont->SetCharSet( (rFontRequest.FontDescription.IsSymbolFont==com::sun::star::util::TriState_YES) ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE );
        maFont->SetVertical( (rFontRequest.FontDescription.IsVertical==com::sun::star::util::TriState_YES) ? TRUE : FALSE );

        // TODO(F2): improve panose->vclenum conversion
        maFont->SetWeight( static_cast<FontWeight>(rFontRequest.FontDescription.FontDescription.Weight) );
        maFont->SetItalic( (rFontRequest.FontDescription.FontDescription.Letterform<=8) ? ITALIC_NONE : ITALIC_NORMAL );

        // adjust to stretched/shrinked font
        if( !::rtl::math::approxEqual( rFontMatrix.m00, rFontMatrix.m11) )
        {
            OutputDevice* pOutDev( mpRefDevice->getOutDev() );
=====================================================================
Found a 38 line (210 tokens) duplication in the following files: 
Starting at line 909 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxulng.cxx

				pVal->PutULong( n );
			else
				SbxBase::SetError( SbxERR_NO_OBJECT );
			break;
		}
		case SbxBYREF | SbxCHAR:
			if( n > SbxMAXCHAR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCHAR;
			}
			*p->pChar = (xub_Unicode) n; break;
		case SbxBYREF | SbxBYTE:
			if( n > SbxMAXBYTE )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXBYTE;
			}
			*p->pByte = (BYTE) n; break;
		case SbxBYREF | SbxINTEGER:
		case SbxBYREF | SbxBOOL:
			if( n > SbxMAXINT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXINT;
			}
			*p->pInteger = (INT16) n; break;
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			if( n > SbxMAXUINT )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXUINT;
			}
			*p->pUShort = (UINT16) n; break;
		case SbxBYREF | SbxLONG:
			if( n > SbxMAXLNG )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXLNG;
			}
			*p->pLong = (INT32) n; break;
		case SbxBYREF | SbxULONG:
=====================================================================
Found a 40 line (210 tokens) duplication in the following files: 
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessiblebutton.cxx
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessiblecheckbox.cxx
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessibleradiobutton.cxx

Reference< XAccessibleKeyBinding > VCLXAccessibleRadioButton::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
    OExternalLockGuard aGuard( this );

    if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
        throw IndexOutOfBoundsException();
	
    OAccessibleKeyBindingHelper* pKeyBindingHelper = new OAccessibleKeyBindingHelper();
    Reference< XAccessibleKeyBinding > xKeyBinding = pKeyBindingHelper;

    Window* pWindow = GetWindow();
    if ( pWindow )
    {
        KeyEvent aKeyEvent = pWindow->GetActivationKey();
        KeyCode aKeyCode = aKeyEvent.GetKeyCode();
        if ( aKeyCode.GetCode() != 0 )
        {
            awt::KeyStroke aKeyStroke;
            aKeyStroke.Modifiers = 0;
            if ( aKeyCode.IsShift() )
                aKeyStroke.Modifiers |= awt::KeyModifier::SHIFT;
            if ( aKeyCode.IsMod1() )
                aKeyStroke.Modifiers |= awt::KeyModifier::MOD1;
            if ( aKeyCode.IsMod2() )
                aKeyStroke.Modifiers |= awt::KeyModifier::MOD2;
            aKeyStroke.KeyCode = aKeyCode.GetCode();
            aKeyStroke.KeyChar = aKeyEvent.GetCharCode();
            aKeyStroke.KeyFunc = static_cast< sal_Int16 >( aKeyCode.GetFunction() );
            pKeyBindingHelper->AddKeyBinding( aKeyStroke );
        }
    }

    return xKeyBinding;
}

// -----------------------------------------------------------------------------
// XAccessibleValue
// -----------------------------------------------------------------------------

Any VCLXAccessibleRadioButton::getCurrentValue(  ) throw (RuntimeException)
=====================================================================
Found a 50 line (209 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/verifier.cxx
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/verifier.cxx

		xManager = serviceManager( xContext , OUString::createFromAscii( "local" ),  OUString::createFromAscii( argv[2] ) ) ;

		//Create signature template
		Reference< XInterface > element =
			xManager->createInstanceWithContext( OUString::createFromAscii( "com.sun.star.xml.security.bridge.xmlsec.XMLElementWrapper_XmlSecImpl" ) , xContext ) ;
		OSL_ENSURE( element.is() ,
			"Verifier - "
			"Cannot get service instance of \"xsec.XMLElementWrapper\"" ) ;

		Reference< XXMLElementWrapper > xElement( element , UNO_QUERY ) ;
		OSL_ENSURE( xElement.is() ,
			"Verifier - "
			"Cannot get interface of \"XXMLElementWrapper\" from service \"xsec.XMLElementWrapper\"" ) ;

		Reference< XUnoTunnel > xEleTunnel( xElement , UNO_QUERY ) ;
		OSL_ENSURE( xEleTunnel.is() ,
			"Verifier - "
			"Cannot get interface of \"XUnoTunnel\" from service \"xsec.XMLElement\"" ) ;

		XMLElementWrapper_XmlSecImpl* pElement = ( XMLElementWrapper_XmlSecImpl* )xEleTunnel->getSomething( XMLElementWrapper_XmlSecImpl::getUnoTunnelImplementationId() ) ;
		OSL_ENSURE( pElement != NULL ,
			"Verifier - "
			"Cannot get implementation of \"xsec.XMLElementWrapper\"" ) ;

		//Set signature template
		pElement->setNativeElement( tplNode ) ;

		//Build XML Signature template
		Reference< XInterface > signtpl =
			xManager->createInstanceWithContext( OUString::createFromAscii("com.sun.star.xml.crypto.XMLSignatureTemplate"), xContext ) ;
		OSL_ENSURE( signtpl.is() ,
			"Verifier - "
			"Cannot get service instance of \"xsec.XMLSignatureTemplate\"" ) ;

		Reference< XXMLSignatureTemplate > xTemplate( signtpl , UNO_QUERY ) ;
		OSL_ENSURE( xTemplate.is() ,
			"Verifier - "
			"Cannot get interface of \"XXMLSignatureTemplate\" from service \"xsec.XMLSignatureTemplate\"" ) ;

		//Import the signature template
		xTemplate->setTemplate( xElement ) ;

		//Import the URI/Stream binding
		if( xUriBinding.is() )
			xTemplate->setBinding( xUriBinding ) ;

		//Create security environment
		//Build Security Environment
		Reference< XInterface > xsecenv =
			xManager->createInstanceWithContext( OUString::createFromAscii("com.sun.star.xml.security.bridge.xmlsec.SecurityEnvironment_MSCryptImpl"), xContext ) ;
=====================================================================
Found a 51 line (209 tokens) duplication in the following files: 
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/tempfile.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/tempfile.cxx

        FileBase::getSystemPathFromFileURL( aName, aTmp );
    return aTmp;
}

TempFile::TempFile( const String* pParent, sal_Bool bDirectory )
    : pImp( new TempFile_Impl )
    , bKillingFileEnabled( sal_False )
{
    pImp->bIsDirectory = bDirectory;

    // get correct directory
    pImp->aName = ConstructTempDir_Impl( pParent );

    // get TempFile with default naming scheme
    CreateTempName_Impl( pImp->aName, sal_True, bDirectory );
}

TempFile::TempFile( const String& rLeadingChars, const String* pExtension, const String* pParent, sal_Bool bDirectory )
    : pImp( new TempFile_Impl )
    , bKillingFileEnabled( sal_False )
{
    pImp->bIsDirectory = bDirectory;

    // get correct directory
    String aName = ConstructTempDir_Impl( pParent );

    // now use special naming scheme ( name takes leading chars and an index counting up from zero
    aName += rLeadingChars;
    for ( sal_Int32 i=0;; i++ )
    {
        String aTmp( aName );
        aTmp += String::CreateFromInt32( i );
        if ( pExtension )
            aTmp += *pExtension;
        else
            aTmp += String::CreateFromAscii( ".tmp" );
        if ( bDirectory )
        {
            FileBase::RC err = Directory::create( aTmp );
            if ( err == FileBase::E_None )
            {
                pImp->aName = aTmp;
                break;
            }
            else if ( err != FileBase::E_EXIST )
                // if f.e. name contains invalid chars stop trying to create dirs
                break;
        }
        else
        {
            File aFile( aTmp );
=====================================================================
Found a 33 line (209 tokens) duplication in the following files: 
Starting at line 2033 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrols.cxx
Starting at line 2440 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrols.cxx

void UnoComboBoxControl::removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(uno::RuntimeException)
{
	uno::Any aVal = ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_STRINGITEMLIST ) );
	uno::Sequence< ::rtl::OUString> aSeq;
	aVal >>= aSeq;
	sal_uInt16 nOldLen = (sal_uInt16)aSeq.getLength();
	if ( nOldLen && ( nPos < nOldLen ) )
	{
		if ( nCount > ( nOldLen-nPos ) )
			nCount = nOldLen-nPos;

		sal_uInt16 nNewLen = nOldLen - nCount;

		uno::Sequence< ::rtl::OUString> aNewSeq( nNewLen );
		::rtl::OUString* pNewData = aNewSeq.getArray();
		::rtl::OUString* pOldData = aSeq.getArray();

		sal_uInt16 n;
		// Items vor der Entfern-Position
		for ( n = 0; n < nPos; n++ )
			pNewData[n] = pOldData[n];

		// Rest der Items
		for ( n = nPos; n < (nOldLen-nCount); n++ )
			pNewData[n] = pOldData[n+nCount];

		uno::Any aAny;
		aAny <<= aNewSeq;
		ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_STRINGITEMLIST ), aAny, sal_True );
	}
}

sal_Int16 UnoComboBoxControl::getItemCount() throw(uno::RuntimeException)
=====================================================================
Found a 25 line (209 tokens) duplication in the following files: 
Starting at line 704 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl1.cxx
Starting at line 980 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl1.cxx

				const SwCellFrm *pCell = (const SwCellFrm*)aCellArr[j];
                const sal_Bool bVert = pTab->IsVertical();
                const sal_Bool bRTL = pTab->IsRightToLeft();
                sal_Bool bTopOver, bLeftOver, bRightOver, bBottomOver;
                if ( bVert )
                {
                    bTopOver = pCell->Frm().Right() >= rUnion.Right();
                    bLeftOver = pCell->Frm().Top() <= rUnion.Top();
                    bRightOver = pCell->Frm().Bottom() >= rUnion.Bottom();
                    bBottomOver = pCell->Frm().Left() <= rUnion.Left();
                }
                else
                {
                    bTopOver = pCell->Frm().Top() <= rUnion.Top();
                    bLeftOver = pCell->Frm().Left() <= rUnion.Left();
                    bRightOver = pCell->Frm().Right() >= rUnion.Right();
                    bBottomOver = pCell->Frm().Bottom() >= rUnion.Bottom();
                }

                if ( bRTL )
                {
                    sal_Bool bTmp = bRightOver;
                    bRightOver = bLeftOver;
                    bLeftOver = bTmp;
                }
=====================================================================
Found a 20 line (209 tokens) duplication in the following files: 
Starting at line 2286 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2369 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffCalculationData mso_sptActionButtonForwardBackCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, { DFF_Prop_adjustValue, 0, 0 } },
	{ 0x6000, { DFF_Prop_geoLeft, DFF_Prop_adjustValue, 0 } },
	{ 0x6000, { DFF_Prop_geoTop, DFF_Prop_adjustValue, 0 } },
	{ 0xa000, { DFF_Prop_geoRight, 0, DFF_Prop_adjustValue } },
	{ 0xa000, { DFF_Prop_geoBottom, 0, DFF_Prop_adjustValue } },
	{ 0x8000, { 10800, 0, DFF_Prop_adjustValue } },
	{ 0x2001, { 0x0405, 1, 10800 } },			// scaling	 6
	{ 0x2001, { DFF_Prop_geoRight, 1, 2 } },	// lr center 7
	{ 0x2001, { DFF_Prop_geoBottom, 1, 2 } },	// ul center 8

	{ 0x4001, { -8050, 0x0406, 1 } },	// 9
	{ 0x6000, { 0x0409, 0x0407, 0 } },	// a
	{ 0x4001, { -8050, 0x0406, 1 } },	// b
	{ 0x6000, { 0x040b, 0x0408, 0 } },	// c
	{ 0x4001, { 8050, 0x0406, 1 } },	// d
	{ 0x6000, { 0x040d, 0x0407, 0 } },	// e
	{ 0x4001, { 8050, 0x0406, 1 } },	// f
	{ 0x6000, { 0x040f, 0x0408, 0 } }	// 10
=====================================================================
Found a 35 line (209 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr4.cxx
Starting at line 521 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr4.cxx

BOOL ScInterpreter::CreateCellArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
								  SCCOL nCol2, SCROW nRow2, SCTAB nTab2,
								  BYTE* pCellArr)
{
#if SC_ROWLIMIT_MORE_THAN_64K
#error row limit 64k
#endif
	USHORT nCount = 0;
	USHORT* p = (USHORT*) pCellArr;
	*p++ = static_cast<USHORT>(nCol1);
	*p++ = static_cast<USHORT>(nRow1);
	*p++ = static_cast<USHORT>(nTab1);
	*p++ = static_cast<USHORT>(nCol2);
	*p++ = static_cast<USHORT>(nRow2);
	*p++ = static_cast<USHORT>(nTab2);
	USHORT* pCount = p;
	*p++ = 0;
	USHORT nPos = 14;
	SCTAB nTab = nTab1;
	ScAddress aAdr;
	while (nTab <= nTab2)
	{
		aAdr.SetTab( nTab );
		SCROW nRow = nRow1;
		while (nRow <= nRow2)
		{
			aAdr.SetRow( nRow );
			SCCOL nCol = nCol1;
			while (nCol <= nCol2)
			{
				aAdr.SetCol( nCol );
				ScBaseCell* pCell = pDok->GetCell( aAdr );
				if (pCell)
				{
					USHORT	nErr = 0;
=====================================================================
Found a 7 line (209 tokens) duplication in the following files: 
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 843 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa90 - fa9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// faa0 - faaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fab0 - fabf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fac0 - facf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fad0 - fadf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fae0 - faef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// faf0 - faff
=====================================================================
Found a 7 line (209 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1349 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10, 0,10,10,10,10,10, 0, 0, 0, 0, 0,// 2390 - 239f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23a0 - 23af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23b0 - 23bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23c0 - 23cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23d0 - 23df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23e0 - 23ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23f0 - 23ff
=====================================================================
Found a 9 line (209 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

	0x308F, 0x308F, 0x308F, 0x308F, 0x3042, 0x304B, 0x304B, 0x308F, 0x308F, 0x308F, 0x308F, 0x30FB, 0x30FC, 0x30FD, 0x30FE, 0x30FF,  // 30F0

	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF00
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF10
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF20
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF30
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF40
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF50
	0xFF60, 0xFF61, 0xFF62, 0xFF63, 0xFF64, 0xFF65, 0x308F, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3084, 0x3084, 0x3084, 0x305F,  // FF60
=====================================================================
Found a 7 line (209 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c50 - 0c5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c60 - 0c6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c70 - 0c7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c80 - 0c8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c90 - 0c9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ca0 - 0caf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,// 0cb0 - 0cbf
=====================================================================
Found a 32 line (209 tokens) duplication in the following files: 
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/cpputools/source/unoexe/unoexe.cxx
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/unodevtools/options.cxx

sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
                     sal_Int32 * pnIndex, const OUString & aArg)
	throw (RuntimeException)
{
	const OUString dash = OUString(RTL_CONSTASCII_USTRINGPARAM("-"));
	if(aArg.indexOf(dash) != 0)
		return sal_False;

	OUString aOpt = OUString::createFromAscii( pOpt );

	if (aArg.getLength() < aOpt.getLength())
		return sal_False;

	if (aOpt.equalsIgnoreAsciiCase( aArg.copy(1) )) {
		// take next argument
		++(*pnIndex);

		rtl_getAppCommandArg(*pnIndex, &pValue->pData);
		if (*pnIndex >= (sal_Int32)rtl_getAppCommandArgCount() ||
            pValue->copy(1).equals(dash))
		{
			OUStringBuffer buf( 32 );
			buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("incomplete option \"-") );
			buf.appendAscii( pOpt );
			buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" given!") );
			throw RuntimeException( buf.makeStringAndClear(), Reference< XInterface >() );
		} else {
#if OSL_DEBUG_LEVEL > 1
			out( "\n> identified option -" );
			out( pOpt );
			out( " = " );
			OString tmp = OUStringToOString(*pValue, RTL_TEXTENCODING_ASCII_US);
=====================================================================
Found a 39 line (208 tokens) duplication in the following files: 
Starting at line 585 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/plugin.cxx
Starting at line 744 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/embedhlp.cxx

    Bitmap aBmp( SvtResId( BMP_PLUGIN ) );
	long nHeight = rRect.GetHeight() - pOut->GetTextHeight();
	long nWidth = rRect.GetWidth();
	if( nHeight > 0 )
	{
		aPt.Y() = nHeight;
		Point	aP = rRect.TopLeft();
		Size	aBmpSize = aBmp.GetSizePixel();
		// Bitmap einpassen
		if( nHeight * 10 / nWidth
		  > aBmpSize.Height() * 10 / aBmpSize.Width() )
		{
			// nach der Breite ausrichten
			// Proportion beibehalten
			long nH = nWidth * aBmpSize.Height() / aBmpSize.Width();
			// zentrieren
			aP.Y() += (nHeight - nH) / 2;
			nHeight = nH;
		}
		else
		{
			// nach der H"ohe ausrichten
			// Proportion beibehalten
			long nW = nHeight * aBmpSize.Width() / aBmpSize.Height();
			// zentrieren
			aP.X() += (nWidth - nW) / 2;
			nWidth = nW;
		}

		pOut->DrawBitmap( aP, Size( nWidth, nHeight ), aBmp );
	}

	pOut->IntersectClipRegion( rRect );
	aPt += rRect.TopLeft();
	pOut->DrawText( aPt, rText );
	pOut->Pop();
}

void EmbeddedObjectRef::DrawShading( const Rectangle &rRect, OutputDevice *pOut )
=====================================================================
Found a 49 line (208 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/accessibility/AccessiblePageShape.cxx
Starting at line 591 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/accessibility/AccessibleShape.cxx

		::Size aPixelSize = maShapeTreeInfo.GetViewForwarder()->LogicToPixel (
			::Size (aBoundingBox.Width, aBoundingBox.Height));
		::Point aPixelPosition = maShapeTreeInfo.GetViewForwarder()->LogicToPixel (
			::Point (aBoundingBox.X, aBoundingBox.Y));

		// Clip the shape's bounding box with the bounding box of its parent.
		Reference<XAccessibleComponent> xParentComponent (
			getAccessibleParent(), uno::UNO_QUERY);
		if (xParentComponent.is())
		{
			// Make the coordinates relative to the parent.
			awt::Point aParentLocation (xParentComponent->getLocationOnScreen());
			int x = aPixelPosition.getX() - aParentLocation.X;
			int y = aPixelPosition.getY() - aParentLocation.Y;

			/*        //  The following block is a workarround for bug #99889# (property
			//  BoundRect returnes coordinates relative to document window
			//  instead of absolute coordinates for shapes in Writer).  Has to
			//  be removed as soon as bug is fixed.

			// Use a non-null anchor position as flag that the shape is in a
			// Writer document.
			if (xSetInfo.is())
				if (xSetInfo->hasPropertyByName (sAnchorPositionName))
				{
					uno::Any aPos = xSet->getPropertyValue (sAnchorPositionName);
					awt::Point aAnchorPosition;
					aPos >>= aAnchorPosition;
					if (aAnchorPosition.X > 0)
					{
						x = aPixelPosition.getX();
						y = aPixelPosition.getY();
					}
				}
			//  End of workarround.
			*/
			// Clip with parent (with coordinates relative to itself).
			::Rectangle aBBox (
				x, y, x + aPixelSize.getWidth(), y + aPixelSize.getHeight());
			awt::Size aParentSize (xParentComponent->getSize());
			::Rectangle aParentBBox (0,0, aParentSize.Width, aParentSize.Height);
			aBBox = aBBox.GetIntersection (aParentBBox);
			aBoundingBox = awt::Rectangle (
				aBBox.getX(),
				aBBox.getY(),
				aBBox.getWidth(),
				aBBox.getHeight());
		}
		else
=====================================================================
Found a 18 line (208 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxfentrd.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxfentrd.cxx

void DXFSolidEntity::EvaluateGroup(DXFGroupReader & rDGR)
{
	switch (rDGR.GetG()) {
		case 10: aP0.fx=rDGR.GetF(); break;
		case 20: aP0.fy=rDGR.GetF(); break;
		case 30: aP0.fz=rDGR.GetF(); break;
		case 11: aP1.fx=rDGR.GetF(); break;
		case 21: aP1.fy=rDGR.GetF(); break;
		case 31: aP1.fz=rDGR.GetF(); break;
		case 12: aP2.fx=rDGR.GetF(); break;
		case 22: aP2.fy=rDGR.GetF(); break;
		case 32: aP2.fz=rDGR.GetF(); break;
		case 13: aP3.fx=rDGR.GetF(); break;
		case 23: aP3.fy=rDGR.GetF(); break;
		case 33: aP3.fz=rDGR.GetF(); break;
		default: DXFBasicEntity::EvaluateGroup(rDGR);
	}
}
=====================================================================
Found a 38 line (208 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/services/autocorrmigration.cxx
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/services/basicmigration.cxx

    TStringVectorPtr BasicMigration::getFiles( const ::rtl::OUString& rBaseURL ) const
    {
        TStringVectorPtr aResult( new TStringVector );
        ::osl::Directory aDir( rBaseURL);

        if ( aDir.open() == ::osl::FileBase::E_None )
        {
            // iterate over directory content
            TStringVector aSubDirs;
            ::osl::DirectoryItem aItem;
            while ( aDir.getNextItem( aItem ) == ::osl::FileBase::E_None )
            {
                ::osl::FileStatus aFileStatus( FileStatusMask_Type | FileStatusMask_FileURL );
                if ( aItem.getFileStatus( aFileStatus ) == ::osl::FileBase::E_None )
                {
                    if ( aFileStatus.getFileType() == ::osl::FileStatus::Directory )
                        aSubDirs.push_back( aFileStatus.getFileURL() );
                    else
                        aResult->push_back( aFileStatus.getFileURL() );
                }
            }

            // iterate recursive over subfolders
            TStringVector::const_iterator aI = aSubDirs.begin();
            while ( aI != aSubDirs.end() )
            {
                TStringVectorPtr aSubResult = getFiles( *aI );
                aResult->insert( aResult->end(), aSubResult->begin(), aSubResult->end() );
                ++aI;
            }
        }

        return aResult;
    }

    // -----------------------------------------------------------------------------

    ::osl::FileBase::RC BasicMigration::checkAndCreateDirectory( INetURLObject& rDirURL )
=====================================================================
Found a 39 line (208 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propertysetinfo.cxx
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/property/propertysetinfo.cxx

			DBG_ERROR( "No type in PropertyMapEntry!" );
			pMap->mpType = &::getCppuType((const sal_Int32*)0);
		}

		maPropertyMap[aName] = pMap;

		if( maProperties.getLength() )
			maProperties.realloc( 0 );

		pMap = &pMap[1];
	}
}

void PropertyMapImpl::remove( const OUString& aName ) throw()
{
	maPropertyMap.erase( aName );

	if( maProperties.getLength() )
		maProperties.realloc( 0 );
}

Sequence< Property > PropertyMapImpl::getProperties() throw()
{
	// maybe we have to generate the properties after
	// a change in the property map or at first call
	// to getProperties
	if( maProperties.getLength() != (sal_Int32)maPropertyMap.size() )
	{
		maProperties = Sequence< Property >( maPropertyMap.size() );
		Property* pProperties = maProperties.getArray();

		PropertyMap::iterator aIter = maPropertyMap.begin();
		const PropertyMap::iterator aEnd = maPropertyMap.end();
		while( aIter != aEnd )
		{
			PropertyMapEntry* pEntry = (*aIter).second;

			pProperties->Name = OUString( pEntry->mpName, pEntry->mnNameLen, RTL_TEXTENCODING_ASCII_US );
			pProperties->Handle = pEntry->mnWhich;
=====================================================================
Found a 34 line (208 tokens) duplication in the following files: 
Starting at line 1110 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 621 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

OString	IdlType::checkRealBaseType(const OString& type, sal_Bool bResolveTypeOnly)
{
	sal_uInt32 index = type.lastIndexOf(']');
	OString baseType = (index > 0 ? ((OString)type).copy(index+1) : type);
	OString seqPrefix = (index > 0 ? ((OString)type).copy(0, index+1) : OString());

	RegistryTypeReaderLoader & rReaderLoader = getRegistryTypeReaderLoader();

	RegistryKey 	key;
	sal_uInt8*		pBuffer=NULL;
	RTTypeClass 	typeClass;
	sal_Bool 		mustBeChecked = (m_typeMgr.getTypeClass(baseType) == RT_TYPE_TYPEDEF);
	TypeReader		reader;

	while (mustBeChecked)
	{
		reader = m_typeMgr.getTypeReader(baseType);

		if (reader.isValid())
		{
			typeClass = reader.getTypeClass();

			if (typeClass == RT_TYPE_TYPEDEF)
			{
				baseType = reader.getSuperTypeName();
				index = baseType.lastIndexOf(']');
		  		if (index > 0)
				{
					seqPrefix += baseType.copy(0, index+1);
					baseType = baseType.copy(index+1);
				}
			} else
				mustBeChecked = sal_False;
		} else
=====================================================================
Found a 50 line (208 tokens) duplication in the following files: 
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
=====================================================================
Found a 40 line (207 tokens) duplication in the following files: 
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

                intr.local_scale(&rx, &ry);

                rx = (rx * base_type::m_blur_x) >> image_subpixel_shift;
                ry = (ry * base_type::m_blur_y) >> image_subpixel_shift;

                if(rx < image_subpixel_size)
                {
                    rx = image_subpixel_size;
                }
                else
                {
                    if(rx > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        rx = image_subpixel_size * base_type::m_scale_limit;
                    }
                    rx_inv = image_subpixel_size * image_subpixel_size / rx;
                }

                if(ry < image_subpixel_size)
                {
                    ry = image_subpixel_size;
                }
                else
                {
                    if(ry > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        ry = image_subpixel_size * base_type::m_scale_limit;
                    }
                    ry_inv = image_subpixel_size * image_subpixel_size / ry;
                }

                int radius_x = (diameter * rx) >> 1;
                int radius_y = (diameter * ry) >> 1;
                int maxx = base_type::source_image().width() - 1;
                int maxy = base_type::source_image().height() - 1;

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = image_filter_size / 2;
=====================================================================
Found a 43 line (207 tokens) duplication in the following files: 
Starting at line 436 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx
Starting at line 492 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx

	{ XML_NAMESPACE_FO, XML_MIN_HEIGHT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_MARGIN_LEFT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_MARGIN_RIGHT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_MARGIN_TOP, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_MARGIN_BOTTOM, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_TOP, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_RIGHT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_SHADOW, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS },
	{ XML_NAMESPACE_OFFICE, XML_TOKEN_INVALID, XML_ATACTION_EOT, NO_PARAMS }
=====================================================================
Found a 43 line (207 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx
Starting at line 294 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx

	{ XML_NAMESPACE_FO, XML_MIN_HEIGHT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_MARGIN_LEFT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_MARGIN_RIGHT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_MARGIN_TOP, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_MARGIN_BOTTOM, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_TOP, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_BOTTOM, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_LEFT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_RIGHT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_TOP, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_RIGHT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_SHADOW, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS },
	{ XML_NAMESPACE_OFFICE, XML_TOKEN_INVALID, XML_ATACTION_EOT, NO_PARAMS }
=====================================================================
Found a 52 line (207 tokens) duplication in the following files: 
Starting at line 1424 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static const ucb::CommandInfo aCommandInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory commands
		///////////////////////////////////////////////////////////////
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::Property > * >( 0 ) )
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
		)
		///////////////////////////////////////////////////////////////
		// Optional standard commands
		///////////////////////////////////////////////////////////////

#ifdef IMPLEMENT_COMMAND_DELETE
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
			-1,
			getCppuBooleanType()
		)
#endif
#ifdef IMPLEMENT_COMMAND_INSERT
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
			-1,
            getCppuType(
                static_cast< ucb::InsertCommandArgument * >( 0 ) )
		)
#endif
#ifdef IMPLEMENT_COMMAND_OPEN
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
			-1,
            getCppuType( static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
		)
=====================================================================
Found a 38 line (207 tokens) duplication in the following files: 
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/crstrvl.cxx
Starting at line 434 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/crstrvl.cxx

			( !pFnd || pFnd->GetIndex() < pSectNd->GetIndex() ) &&
// JP 10.12.96: solange wir nur 3 Typen kennen und UI-seitig keine anderen
//				einstellbar sind, muss ueber den Titel gesucht werden!
//			( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTypeName() ) &&
			( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTOXName() )
			)
		{
			SwNodeIndex aIdx( *pSectNd, 1 );
			SwCntntNode* pCNd = aIdx.GetNode().GetCntntNode();
			if( !pCNd )
				pCNd = GetDoc()->GetNodes().GoNext( &aIdx );
			const SwCntntFrm* pCFrm;
			if( pCNd &&
				pCNd->EndOfSectionIndex() <= pSectNd->EndOfSectionIndex() &&
				0 != ( pCFrm = pCNd->GetFrm() ) &&
				( IsReadOnlyAvailable() || !pCFrm->IsProtected() ))
			{
				pFnd = pCNd;
			}
		}
	}

	if( pFnd )
	{
		SwCallLink aLk( *this );        // Crsr-Moves ueberwachen,
		SwCrsrSaveState aSaveState( *pCurCrsr );
		pCurCrsr->GetPoint()->nNode = *pFnd;
		pCurCrsr->GetPoint()->nContent.Assign( pFnd, 0 );
		bRet = !pCurCrsr->IsSelOvr();
		if( bRet )
			UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
	}
	return bRet;
}

// springe zum Verzeichnis vom TOXMark

FASTBOOL SwCrsrShell::GotoTOXMarkBase()
=====================================================================
Found a 36 line (207 tokens) duplication in the following files: 
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/dlg/sdtreelb.cxx
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/dlg/sdtreelb.cxx

			SetCollapsedEntryBmp( pEntry, aImgPageH, BMP_COLOR_HIGHCONTRAST );

			SdrObjListIter aIter( *pPage, IM_DEEPWITHGROUPS );

			while( aIter.IsMore() )
			{
				pObj = aIter.Next();
				String aStr( GetObjectName( pObj ) );
				if( aStr.Len() )
				{
					if( pObj->GetObjInventor() == SdrInventor && pObj->GetObjIdentifier() == OBJ_OLE2 )
					{
						SvLBoxEntry* pNewEntry = InsertEntry( aStr, maImgOle, maImgOle, pEntry ); // pEntry entspr. Parent

						SetExpandedEntryBmp( pNewEntry, maImgOleH, BMP_COLOR_HIGHCONTRAST );
						SetCollapsedEntryBmp( pNewEntry, maImgOleH, BMP_COLOR_HIGHCONTRAST );
					}
					else if( pObj->GetObjInventor() == SdrInventor && pObj->GetObjIdentifier() == OBJ_GRAF )
					{
						SvLBoxEntry* pNewEntry = InsertEntry( aStr, maImgGraphic, maImgGraphic, pEntry ); // pEntry entspr. Parent

						SetExpandedEntryBmp( pNewEntry, maImgGraphicH, BMP_COLOR_HIGHCONTRAST );
						SetCollapsedEntryBmp( pNewEntry, maImgGraphicH, BMP_COLOR_HIGHCONTRAST );
					}
					else
					{
						SvLBoxEntry* pNewEntry = InsertEntry( aStr, aImgObjects, aImgObjects, pEntry );

						SetExpandedEntryBmp( pNewEntry, aImgObjectsH, BMP_COLOR_HIGHCONTRAST );
						SetCollapsedEntryBmp( pNewEntry, aImgObjectsH, BMP_COLOR_HIGHCONTRAST );
					}
				}
			}
			if( pEntry->HasChilds() )
			{
				SetExpandedEntryBmp( pEntry, aImgPageObjs );
=====================================================================
Found a 44 line (207 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/signal.c
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/source/result/signal.cxx

    { SIGIOT,    ACT_ABORT,  NULL },    /* IOT instruction */
#endif 
//      { SIGABRT,   ACT_ABORT,  NULL },    /* used by abort, replace SIGIOT in the future */
#ifdef SIGEMT   
    { SIGEMT,    ACT_SYSTEM,  NULL },    /* EMT instruction */
/* changed from ACT_ABORT to ACT_SYSTEM to remove handler*/
/* SIGEMT may also be used by the profiler - so it is probably not a good
   plan to have the new handler use this signal*/
#endif  
    { SIGFPE,    ACT_ABORT,  NULL },    /* floating point exception */
    { SIGKILL,   ACT_SYSTEM, NULL },    /* kill (cannot be caught or ignored) */
    { SIGBUS,    ACT_ABORT,  NULL },    /* bus error */
    { SIGSEGV,   ACT_ABORT,  NULL },    /* segmentation violation */
#ifdef SIGSYS
    { SIGSYS,    ACT_ABORT,  NULL },    /* bad argument to system call */
#endif
    { SIGPIPE,   ACT_HIDE,   NULL },    /* write on a pipe with no one to read it */
    { SIGALRM,   ACT_EXIT,   NULL },    /* alarm clock */
    { SIGTERM,   ACT_EXIT,   NULL },    /* software termination signal from kill */
    { SIGUSR1,   ACT_SYSTEM, NULL },    /* user defined signal 1 */
    { SIGUSR2,   ACT_SYSTEM, NULL },    /* user defined signal 2 */
    { SIGCHLD,   ACT_SYSTEM, NULL },    /* child status change */
#ifdef SIGPWR
    { SIGPWR,    ACT_IGNORE, NULL },    /* power-fail restart */
#endif
    { SIGWINCH,  ACT_IGNORE, NULL },    /* window size change */
    { SIGURG,    ACT_EXIT,   NULL },    /* urgent socket condition */
#ifdef SIGPOLL
    { SIGPOLL,   ACT_EXIT,   NULL },    /* pollable event occured */
#endif
    { SIGSTOP,   ACT_SYSTEM, NULL },    /* stop (cannot be caught or ignored) */
    { SIGTSTP,   ACT_SYSTEM, NULL },    /* user stop requested from tty */
    { SIGCONT,   ACT_SYSTEM, NULL },    /* stopped process has been continued */
    { SIGTTIN,   ACT_SYSTEM, NULL },    /* background tty read attempted */
    { SIGTTOU,   ACT_SYSTEM, NULL },    /* background tty write attempted */
    { SIGVTALRM, ACT_EXIT,   NULL },    /* virtual timer expired */
    { SIGPROF,   ACT_SYSTEM,   NULL },    /* profiling timer expired */
/*Change from ACT_EXIT to ACT_SYSTEM for SIGPROF is so that profiling signals do
  not get taken by the new handler - the new handler does not pass on context 
  information which causes 'collect' to crash. This is a way of avoiding
  what looks like a bug in the new handler*/
    { SIGXCPU,   ACT_ABORT,  NULL },    /* exceeded cpu limit */
    { SIGXFSZ,   ACT_ABORT,  NULL }     /* exceeded file size limit */
};
=====================================================================
Found a 43 line (207 tokens) duplication in the following files: 
Starting at line 985 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 833 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

        OSL_TRACE("Out osl_getProfileSectionEntries [pProfile=0]\n");
#endif


		return (0);
    }


	if (! (pProfile->m_Flags & osl_Profile_SYSTEM))
	{
		if ((pSec = findEntry(pProfile, pszSection, "", &NoEntry)) != NULL)
		{
			if (MaxLen != 0)
			{
				for (i = 0; i < pSec->m_NoEntries; i++)
				{
					if ((n + pSec->m_Entries[i].m_Len + 1) < MaxLen)
					{
						strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Entries[i].m_Line]
								[pSec->m_Entries[i].m_Offset], pSec->m_Entries[i].m_Len);
						n += pSec->m_Entries[i].m_Len;
						pszBuffer[n++] = '\0';
					}
					else
						break;

				}

				pszBuffer[n++] = '\0';
			}
			else
			{
				for (i = 0; i < pSec->m_NoEntries; i++)
					n += pSec->m_Entries[i].m_Len + 1;

				n += 1;
			}
		}
		else
			n = 0;
	}
	else
	{
=====================================================================
Found a 7 line (207 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1349 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10, 0,10,10,10,10,10, 0, 0, 0, 0, 0,// 2390 - 239f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23a0 - 23af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23b0 - 23bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23c0 - 23cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23d0 - 23df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23e0 - 23ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23f0 - 23ff
=====================================================================
Found a 7 line (207 tokens) duplication in the following files: 
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10a0 - 10af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10b0 - 10bf
=====================================================================
Found a 8 line (207 tokens) duplication in the following files: 
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fc0 - 0fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fd0 - 0fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fe0 - 0fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ff0 - 0fff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1000 - 100f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1010 - 101f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,17,// 1020 - 102f
=====================================================================
Found a 9 line (207 tokens) duplication in the following files: 
Starting at line 1079 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1182 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17, 0, 0,// 0ec0 - 0ecf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ed0 - 0edf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ee0 - 0eef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ef0 - 0eff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f00 - 0f0f
     0, 0, 0, 0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0,// 0f10 - 0f1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f20 - 0f2f
     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
=====================================================================
Found a 8 line (207 tokens) duplication in the following files: 
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 829 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7c0 - d7cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7d0 - d7df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7e0 - d7ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7f0 - d7ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fa00 - fa0f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fa10 - fa1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,// fa20 - fa2f
=====================================================================
Found a 16 line (207 tokens) duplication in the following files: 
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/descriptor.cxx
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/renderer.cxx

uno::Any SAL_CALL GraphicRendererVCL::queryAggregation( const uno::Type & rType ) 
	throw( uno::RuntimeException )
{
	uno::Any aAny;

	if( rType == ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0) )
		aAny <<= uno::Reference< lang::XServiceInfo >(this);
	else if( rType == ::getCppuType((const uno::Reference< lang::XTypeProvider >*)0) )
		aAny <<= uno::Reference< lang::XTypeProvider >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XPropertySet >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertyState >*)0) )
		aAny <<= uno::Reference< beans::XPropertyState >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XMultiPropertySet >(this);
	else if( rType == ::getCppuType((const uno::Reference< graphic::XGraphicRenderer >*)0) )
=====================================================================
Found a 58 line (207 tokens) duplication in the following files: 
Starting at line 546 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
Starting at line 438 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 fromType, sal_Int32 toType ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
=====================================================================
Found a 59 line (207 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/XMLRangeHelper.cxx
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/XMLRangeHelper.cxx

    /*::chart::*/XMLRangeHelper::CellRange & rOutRange )
{
    bool bResult = true;
    static const sal_Unicode aColon( ':' );
    static const sal_Unicode aQuote( '\'' );
    static const sal_Unicode aBackslash( '\\' );

    sal_Int32 nDelimiterPos = nStartPos;
    bool bInQuotation = false;
    // parse table name
    while( nDelimiterPos < nEndPos &&
           ( bInQuotation || rXMLString[ nDelimiterPos ] != aColon ))
    {
        // skip escaped characters (with backslash)
        if( rXMLString[ nDelimiterPos ] == aBackslash )
            ++nDelimiterPos;
        // toggle quotation mode when finding single quotes
        else if( rXMLString[ nDelimiterPos ] == aQuote )
            bInQuotation = ! bInQuotation;

        ++nDelimiterPos;
    }

    if( nDelimiterPos == nEndPos )
    {
        // only one cell
        bResult = lcl_getCellAddressFromXMLString( rXMLString, nStartPos, nEndPos,
                                                   rOutRange.aUpperLeft,
                                                   rOutRange.aTableName );
    }
    else
    {
        // range (separated by a colon)
        bResult = lcl_getCellAddressFromXMLString( rXMLString, nStartPos, nDelimiterPos - 1,
                                                   rOutRange.aUpperLeft,
                                                   rOutRange.aTableName );
        ::rtl::OUString sTableSecondName;
        if( bResult )
        {
            bResult = lcl_getCellAddressFromXMLString( rXMLString, nDelimiterPos + 1, nEndPos,
                                                       rOutRange.aLowerRight,
                                                       sTableSecondName );
        }
        if( bResult &&
            sTableSecondName.getLength() &&
            ! sTableSecondName.equals( rOutRange.aTableName ))
            bResult = false;
    }

    return bResult;
}

} // anonymous namespace

// ================================================================================

//namespace chart
//{
namespace XMLRangeHelper
=====================================================================
Found a 46 line (206 tokens) duplication in the following files: 
Starting at line 264 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_scanline.h
Starting at line 337 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_scanline.h

        renderer_scanline_bin_opaque(base_ren_type& ren, SpanGenerator& span_gen) :
            m_ren(&ren),
            m_span_gen(&span_gen)
        {
        }
        
        //--------------------------------------------------------------------
        void prepare(unsigned max_span_len) 
        { 
            m_span_gen->prepare(max_span_len); 
        }

        //--------------------------------------------------------------------
        template<class Scanline> void render(const Scanline& sl)
        {
            int y = sl.y();
            m_ren->first_clip_box();
            do
            {
                int xmin = m_ren->xmin();
                int xmax = m_ren->xmax();

                if(y >= m_ren->ymin() && y <= m_ren->ymax())
                {
                    unsigned num_spans = sl.num_spans();
                    typename Scanline::const_iterator span = sl.begin();
                    do
                    {
                        int x = span->x;
                        int len = span->len;

                        if(len < 0) len = -len;
                        if(x < xmin)
                        {
                            len -= xmin - x;
                            x = xmin;
                        }
                        if(len > 0)
                        {
                            if(x + len > xmax)
                            {
                                len = xmax - x + 1;
                            }
                            if(len > 0)
                            {
                                m_ren->blend_opaque_color_hspan_no_clip(
=====================================================================
Found a 61 line (206 tokens) duplication in the following files: 
Starting at line 5191 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5451 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

			rSt >> lcbSttbFnm;
            rSt >> fcPlcfLst;
            rSt >> lcbPlcfLst;
            rSt >> fcPlfLfo;
            rSt >> lcbPlfLfo;
            rSt >> fcPlcftxbxBkd;
            rSt >> lcbPlcftxbxBkd;
            rSt >> fcPlcfHdrtxbxBkd;
            rSt >> lcbPlcfHdrtxbxBkd;
            if( 0 != rSt.GetError() )
            {
                nFibError = ERR_SWG_READ_ERROR;
            }

            rSt.Seek( 0x372 );          // fcSttbListNames
            rSt >> fcSttbListNames;
            rSt >> lcbSttbListNames;
            rSt.Seek( 0x382 );          // MagicTables
            rSt >> fcMagicTable;
            rSt >> lcbMagicTable;
            if( 0 != rSt.GetError() )
                nFibError = ERR_SWG_READ_ERROR;

            rSt.Seek( nOldPos );
        }
    }
    else
    {
        nFibError = ERR_SWG_READ_ERROR;     // Error melden
    }
}


WW8Fib::WW8Fib(BYTE nVer)
{
    memset(this, 0, sizeof(*this));
    nVersion = nVer;
    if (8 == nVer)
    {
        fcMin = 0x400;
        wIdent = 0xa5ec;
        nFib = 0xc2;
        nFibBack = 0xbf;
        nProduct = 0x204D;

        csw = 0x0e;     // muss das sein ???
        cfclcb = 0x6c;  //      -""-
        clw = 0x16;     //      -""-
        pnFbpChpFirst = pnFbpPapFirst = pnFbpLvcFirst = 0x000fffff;
        fExtChar = true;
        fWord97Saved = fWord2000Saved = true;

        // diese Flags muessen nicht gesetzt werden; koennen aber.
        //  wMagicCreated = wMagicRevised = 0x6a62;
        //  wMagicCreatedPrivate = wMagicRevisedPrivate = 0xb3b2;
        //

        wMagicCreated = 0x6143;
        wMagicRevised = 0x6C6F;
        wMagicCreatedPrivate = 0x6E61;
        wMagicRevisedPrivate = 0x3038;
=====================================================================
Found a 36 line (206 tokens) duplication in the following files: 
Starting at line 1844 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4914 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

    *rContents << nSpecialEffect;
    pBlockFlags[3] |= 0x04;

	WriteAlign(rContents,4);
	*rContents << rSize.Width;
	*rContents << rSize.Height;

	nDefault += 0x30;
	*rContents << sal_uInt8(nDefault);
	*rContents << sal_uInt8(0x00);

    aCaption.WriteCharArray( *rContents );

	WriteAlign(rContents,4);
    nFixedAreaLen = static_cast<sal_uInt16>(rContents->Tell()-nOldPos-4);
	bRet = aFontData.Export(rContents,rPropSet);
    rContents->Seek(nOldPos);
	*rContents << nStandardId;
	*rContents << nFixedAreaLen;

	*rContents << pBlockFlags[0];
	*rContents << pBlockFlags[1];
	*rContents << pBlockFlags[2];
	*rContents << pBlockFlags[3];
	*rContents << pBlockFlags[4];
	*rContents << pBlockFlags[5];
	*rContents << pBlockFlags[6];
	*rContents << pBlockFlags[7];

	DBG_ASSERT((rContents.Is() &&
		(SVSTREAM_OK==rContents->GetError())),"damn");
	return bRet;
}


sal_Bool OCX_CheckBox::Export(SvStorageRef &rObj,
=====================================================================
Found a 29 line (206 tokens) duplication in the following files: 
Starting at line 913 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/passwordcontainer/passwordcontainer.cxx
Starting at line 955 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/passwordcontainer/passwordcontainer.cxx

void SAL_CALL PasswordContainer::removePersistent( const ::rtl::OUString& url, const ::rtl::OUString& name ) throw(RuntimeException)
{
	// this feature still should not be used
    //throw RuntimeException( ::rtl::OUString::createFromAscii( "Not implememted!" ), Reference< XInterface >() );

	::osl::MutexGuard aGuard( mMutex );
	
	::rtl::OUString aUrl( url );
	if( !container.empty() )
	{
		PassMap::iterator aIter = container.find( aUrl );

		if( aIter == container.end() )
		{
			sal_Int32 aInd = aUrl.lastIndexOf( sal_Unicode( '/' ) );
			if( aInd > 0 && aUrl.getLength()-1 == aInd )
				aUrl = aUrl.copy( 0, aUrl.getLength() - 1 );
			else
				aUrl += ::rtl::OUString::createFromAscii( "/" );

			aIter = container.find( aUrl );
		}

		if( aIter != container.end() )
		{
			for( vector< NamePassRecord >::iterator aVIter = aIter->second.begin(); aVIter != aIter->second.end(); aVIter++ )
				if( aVIter->mName.equals( name ) )
				{
					if( aVIter->mStatus == PERSISTENT_RECORD && storageFile )
=====================================================================
Found a 61 line (206 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

rtl::OString input(const char* pDefaultText, char cEcho)
{
	// PRE: a Default Text would be shown, cEcho is a Value which will show if a key is pressed.
	const int MAX_INPUT_LEN = 500;
	char aBuffer[MAX_INPUT_LEN];

	strcpy(aBuffer, pDefaultText);
	int nLen = strlen(aBuffer);

#ifdef WNT
	char ch = '\0';

	cout << aBuffer;
	cout.flush();

	while(ch != 13)
	{
		ch = getch();
		if (ch == 8)
		{
			if (nLen > 0)
			{
				cout << "\b \b";
				cout.flush();
				--nLen;
				aBuffer[nLen] = '\0';
			}
			else
			{
				cout << "\a";
				cout.flush();
			}
		}
		else if (ch != 13)
		{
			if (nLen < MAX_INPUT_LEN)
			{
				if (cEcho == 0)
				{
					cout << ch;
				}
				else
				{
					cout << cEcho;
				}
				cout.flush();
				aBuffer[nLen++] = ch;
				aBuffer[nLen] = '\0';
			}
			else
			{
				cout << "\a";
				cout.flush();
			}
		}
	}
#else
	if (!cin.getline(aBuffer,sizeof aBuffer))
		return OString();
#endif
	return rtl::OString(aBuffer);
=====================================================================
Found a 35 line (206 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_devicehelper.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/devicehelper.cxx

    }

    geometry::RealSize2D DeviceHelper::getPhysicalResolution()
    {
        if( !mpOutputWindow )
            return ::canvas::tools::createInfiniteSize2D(); // we're disposed

        // Map a one-by-one millimeter box to pixel
        const MapMode aOldMapMode( mpOutputWindow->GetMapMode() );
        mpOutputWindow->SetMapMode( MapMode(MAP_MM) );
        const Size aPixelSize( mpOutputWindow->LogicToPixel(Size(1,1)) );
        mpOutputWindow->SetMapMode( aOldMapMode );

        return ::vcl::unotools::size2DFromSize( aPixelSize );
    }

    geometry::RealSize2D DeviceHelper::getPhysicalSize()
    {
        if( !mpOutputWindow )
            return ::canvas::tools::createInfiniteSize2D(); // we're disposed

        // Map the pixel dimensions of the output window to millimeter
        const MapMode aOldMapMode( mpOutputWindow->GetMapMode() );
        mpOutputWindow->SetMapMode( MapMode(MAP_MM) );
        const Size aLogSize( mpOutputWindow->PixelToLogic(mpOutputWindow->GetOutputSizePixel()) );
        mpOutputWindow->SetMapMode( aOldMapMode );

        return ::vcl::unotools::size2DFromSize( aLogSize );
    }

    uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon( 
        const uno::Reference< rendering::XGraphicDevice >& 				,
        const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >&	points )
    {
        if( !mpOutputWindow )
=====================================================================
Found a 42 line (205 tokens) duplication in the following files: 
Starting at line 929 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 856 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

    if ( !m_aProps.getIsFolder() )
		return;

	// Obtain a list with a snapshot of all currently instanciated contents
	// from provider and extract the contents which are direct children
	// of this content.

	::ucbhelper::ContentRefList aAllContents;
	m_xProvider->queryExistingContents( aAllContents );

    rtl::OUString aURL = m_xIdentifier->getContentIdentifier();
	sal_Int32 nURLPos = aURL.lastIndexOf( '/' );

	if ( nURLPos != ( aURL.getLength() - 1 ) )
	{
		// No trailing slash found. Append.
        aURL += rtl::OUString::createFromAscii( "/" );
	}

	sal_Int32 nLen = aURL.getLength();

	::ucbhelper::ContentRefList::const_iterator it  = aAllContents.begin();
	::ucbhelper::ContentRefList::const_iterator end = aAllContents.end();

	while ( it != end )
	{
		::ucbhelper::ContentImplHelperRef xChild = (*it);
        rtl::OUString aChildURL
            = xChild->getIdentifier()->getContentIdentifier();

		// Is aURL a prefix of aChildURL?
		if ( ( aChildURL.getLength() > nLen ) &&
			 ( aChildURL.compareTo( aURL, nLen ) == 0 ) )
		{
			sal_Int32 nPos = nLen;
			nPos = aChildURL.indexOf( '/', nPos );

			if ( ( nPos == -1 ) ||
				 ( nPos == ( aChildURL.getLength() - 1 ) ) )
			{
                // No further slashes / only a final slash. It's a child!
				rChildren.push_back(
=====================================================================
Found a 18 line (205 tokens) duplication in the following files: 
Starting at line 4486 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4077 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartMultidocumentVert[] =
{
	{ 0, 3600 }, { 1500, 3600 }, { 1500, 1800 }, { 3000, 1800 },
	{ 3000, 0 }, { 21600, 0 }, { 21600, 14409 }, { 21600 - 1500, 14409 },
	{ 21600 - 1500, 14409 + 1800 }, { 21600 - 3000, 14409 + 1800 }, { 21600 - 3000, 14409 + 3600 },
	{ 11610, 14293 + 3600 }, { 11472, 17239 + 3600 }, { 4833, 17928 + 3600 },						// ccp
	{ 2450, 17513 + 3600 }, { 1591, 17181 + 3600 }, { 0, 16700 + 3600 },							// ccp

	{ 1500, 3600 }, { 21600 - 3000, 3600 }, { 21600 - 3000, 14409 + 1800 },

	{ 3000, 1800 }, { 21600 - 1500, 1800 }, { 21600 - 1500, 14409 }
};
static const sal_uInt16 mso_sptFlowChartMultidocumentSegm[] =
{
	0x4000, 0x000a, 0x2002, 0x6000, 0x8000,
	0x4000, 0x0002, 0x8000,
=====================================================================
Found a 23 line (205 tokens) duplication in the following files: 
Starting at line 2317 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx
Starting at line 2450 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx

            fprintf( stderr, "adding cache directory: %s\n", aDir.getStr() );
#endif
            for( ::std::list< PrintFont* >::iterator it = aCacheFonts.begin(); it != aCacheFonts.end(); ++it )
            {
                fontID aFont = m_nNextFontID++;
                m_aFonts[ aFont ] = *it;
                if( (*it)->m_eType == fonttype::Type1 )
                    m_aFontFileToFontID[ static_cast<Type1FontFile*>(*it)->m_aFontFile ].insert( aFont );
                else if( (*it)->m_eType == fonttype::TrueType )
                    m_aFontFileToFontID[ static_cast<TrueTypeFontFile*>(*it)->m_aFontFile ].insert( aFont );
                else if( (*it)->m_eType == fonttype::Builtin )
                    m_aFontFileToFontID[ static_cast<BuiltinFont*>(*it)->m_aMetricFile ].insert( aFont );
#if OSL_DEBUG_LEVEL > 1
                if( (*it)->m_eType == fonttype::Builtin )
                    nBuiltinFonts++;
                nCached++;
#if OSL_DEBUG_LEVEL > 2
                fprintf( stderr, "adding cached font %d: \"%s\" from %s\n", aFont,
                         OUStringToOString( getFontFamily( aFont ), RTL_TEXTENCODING_MS_1252 ).getStr(),
                         getFontFileSysPath( aFont ).getStr() );
#endif
#endif
            }
=====================================================================
Found a 7 line (205 tokens) duplication in the following files: 
Starting at line 1392 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1434 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,// 2e90 - 2e9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ea0 - 2eaf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2eb0 - 2ebf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ec0 - 2ecf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ed0 - 2edf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ee0 - 2eef
    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff
=====================================================================
Found a 9 line (205 tokens) duplication in the following files: 
Starting at line 1277 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1349 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10, 0,10,10,10,10,10, 0, 0, 0, 0, 0,// 2390 - 239f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23a0 - 23af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23b0 - 23bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23c0 - 23cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23d0 - 23df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23e0 - 23ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23f0 - 23ff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2400 - 240f
=====================================================================
Found a 9 line (205 tokens) duplication in the following files: 
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1215 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10b0 - 10bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10c0 - 10cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10d0 - 10df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10e0 - 10ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10f0 - 10ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1600 - 160f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1610 - 161f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1620 - 162f
=====================================================================
Found a 7 line (205 tokens) duplication in the following files: 
Starting at line 1115 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1124 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b50 - 0b5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b60 - 0b6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b70 - 0b7f
     0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b80 - 0b8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b90 - 0b9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ba0 - 0baf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bb0 - 0bbf
=====================================================================
Found a 7 line (205 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  // 9000
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  // a000
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  // b000
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  // c000
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  // d000
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  // e000
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0100,  // f000
=====================================================================
Found a 8 line (205 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fc0 - 0fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fd0 - 0fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fe0 - 0fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ff0 - 0fff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1000 - 100f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1010 - 101f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,17,// 1020 - 102f
=====================================================================
Found a 36 line (205 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LServices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NServices.cxx

using namespace connectivity::evoab;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pT
		);

//***************************************************************************************
//
// Die vorgeschriebene C-Api muss erfuellt werden!
// Sie besteht aus drei Funktionen, die von dem Modul exportiert werden muessen.
//

//---------------------------------------------------------------------------------------
void REGISTER_PROVIDER(
		const OUString& aServiceImplName,
		const Sequence< OUString>& Services,
		const Reference< ::com::sun::star::registry::XRegistryKey > & xKey)
{
	OUString aMainKeyName;
	aMainKeyName = OUString::createFromAscii("/");
	aMainKeyName += aServiceImplName;
	aMainKeyName += OUString::createFromAscii("/UNO/SERVICES");

	Reference< ::com::sun::star::registry::XRegistryKey >  xNewKey( xKey->createKey(aMainKeyName) );
	OSL_ENSURE(xNewKey.is(), "EVOAB::component_writeInfo : could not create a registry key !");
=====================================================================
Found a 63 line (205 tokens) duplication in the following files: 
Starting at line 674 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 509 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

                code += 20;
            }
            TYPELIB_DANGER_RELEASE( pTD );
        }
        OSL_ASSERT( vtable_pos == nSlots );
    }
    else
    {
        buffer = iFind->second;
    }
    }
    
    return ((void **)buffer +2);
}

//==================================================================================================
void SAL_CALL cppu_cppInterfaceProxy_patchVtable(
	XInterface * pCppI, typelib_InterfaceTypeDescription * pTypeDescr ) throw ()
{
	static MediateClassData * s_pMediateClassData = 0;
	if (! s_pMediateClassData)
	{
		MutexGuard aGuard( Mutex::getGlobalMutex() );
		if (! s_pMediateClassData)
		{
#ifdef LEAK_STATIC_DATA
			s_pMediateClassData = new MediateClassData();
#else
			static MediateClassData s_aMediateClassData;
			s_pMediateClassData = &s_aMediateClassData;
#endif
		}
	}
	*(void const **)pCppI = s_pMediateClassData->get_vtable( pTypeDescr );
}

}

extern "C"
{
//##################################################################################################
sal_Bool SAL_CALL component_canUnload( TimeValue * pTime )
	SAL_THROW_EXTERN_C()
{
	return CPPU_CURRENT_NAMESPACE::g_moduleCount.canUnload(
        &CPPU_CURRENT_NAMESPACE::g_moduleCount, pTime );
}
//##################################################################################################
void SAL_CALL uno_initEnvironment( uno_Environment * pCppEnv )
	SAL_THROW_EXTERN_C()
{
	CPPU_CURRENT_NAMESPACE::cppu_cppenv_initEnvironment(
        pCppEnv );
}
//##################################################################################################
void SAL_CALL uno_ext_getMapping(
	uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo )
	SAL_THROW_EXTERN_C()
{
	CPPU_CURRENT_NAMESPACE::cppu_ext_getMapping(
        ppMapping, pFrom, pTo );
}
}
=====================================================================
Found a 46 line (204 tokens) duplication in the following files: 
Starting at line 3237 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3405 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    : WW8PLCFx(rFib.GetFIBVersion(), true), maSprmParser(rFib.GetFIBVersion()), 
    pStrm(pSt), nArrMax(256), nSprmSiz(0)
{
    pPLCF =   rFib.lcbPlcfsed
            ? new WW8PLCF(pTblSt, rFib.fcPlcfsed, rFib.lcbPlcfsed, 12, nStartCp)
            : 0;

    pSprms = new BYTE[nArrMax];     // maximum length
}

WW8PLCFx_SEPX::~WW8PLCFx_SEPX()
{
    delete pPLCF;
    delete[] pSprms;
}

ULONG WW8PLCFx_SEPX::GetIdx() const
{
    return pPLCF ? pPLCF->GetIdx() : 0;
}

void WW8PLCFx_SEPX::SetIdx( ULONG nIdx )
{
    if( pPLCF ) pPLCF->SetIdx( nIdx );
}

bool WW8PLCFx_SEPX::SeekPos(WW8_CP nCpPos)
{
    return pPLCF ? pPLCF->SeekPos( nCpPos ) : 0;
}

WW8_CP WW8PLCFx_SEPX::Where()
{
    return pPLCF ? pPLCF->Where() : 0;
}

void WW8PLCFx_SEPX::GetSprms(WW8PLCFxDesc* p)
{
    if( !pPLCF ) return;

    void* pData;

    p->bRealLineEnd = false;
    if (!pPLCF->Get( p->nStartPos, p->nEndPos, pData ))
    {
        p->nStartPos = p->nEndPos = WW8_CP_MAX;       // PLCF fertig abgearbeitet
=====================================================================
Found a 29 line (204 tokens) duplication in the following files: 
Starting at line 4893 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4469 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartOnlineStorageVert[] =
{
	{ 3600, 21600 }, { 0, 10800 }, { 3600, 0 }, { 21600, 0 },
	{ 18000, 10800 }, { 21600, 21600 }
};
static const sal_uInt16 mso_sptFlowChartOnlineStorageSegm[] =
{
	0x4000, 0xa702, 0x0001, 0xa702, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartOnlineStorageTextRect[] = 
{
	{ { 3600, 0 }, { 18000, 21600 } }
};
static const SvxMSDffVertPair mso_sptFlowChartOnlineStorageGluePoints[] =
{
	{ 10800, 0 }, { 0, 10800 }, { 10800, 21600 }, { 18000, 10800 }
};
static const mso_CustomShape msoFlowChartOnlineStorage =
{
	(SvxMSDffVertPair*)mso_sptFlowChartOnlineStorageVert, sizeof( mso_sptFlowChartOnlineStorageVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartOnlineStorageSegm, sizeof( mso_sptFlowChartOnlineStorageSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartOnlineStorageTextRect, sizeof( mso_sptFlowChartOnlineStorageTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartOnlineStorageGluePoints, sizeof( mso_sptFlowChartOnlineStorageGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 29 line (204 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/marktest.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/pipetest.cxx

	~OPipeTest();

public: // refcounting
	BOOL						queryInterface( Uik aUik, XInterfaceRef & rOut );
	void 						acquire() 						 { OWeakObject::acquire(); }
	void 						release() 						 { OWeakObject::release(); }
	void* 						getImplementation(Reflection *p) { return OWeakObject::getImplementation(p); }

public: // implementation names
    static Sequence< UString > 	getSupportedServiceNames_Static(void) THROWS( () );
	static UString 				getImplementationName_Static() THROWS( () );

public:
    virtual void testInvariant(const UString& TestName, const XInterfaceRef& TestObject)
    															THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual INT32 test(	const UString& TestName,
    					const XInterfaceRef& TestObject,
    					INT32 hTestHandle) 						THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual BOOL testPassed(void) 								THROWS( (	UsrSystemException) );
    virtual Sequence< UString > getErrors(void) 				THROWS( (UsrSystemException) );
    virtual Sequence< UsrAny > getErrorExceptions(void) 		THROWS( (UsrSystemException) );
    virtual Sequence< UString > getWarnings(void) 				THROWS( (UsrSystemException) );

private:
	void testSimple( const XInterfaceRef & );
=====================================================================
Found a 41 line (204 tokens) duplication in the following files: 
Starting at line 1116 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1491 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx

				Impl_writeEllipse( rRect.Center(), rRect.GetWidth() >> 1, rRect.GetHeight() >> 1 );
			}
			break;

			case( META_ARC_ACTION ):
			case( META_PIE_ACTION ):
			case( META_CHORD_ACTION	):
			case( META_POLYGON_ACTION ):
			{
				Polygon aPoly;

				switch( nType )
				{
					case( META_ARC_ACTION ):
					{
						const MetaArcAction* pA = (const MetaArcAction*) pAction;
						aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_ARC );
					}
					break;

					case( META_PIE_ACTION ):
					{
						const MetaPieAction* pA = (const MetaPieAction*) pAction;
						aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_PIE );
					}
					break;

					case( META_CHORD_ACTION	):
					{
						const MetaChordAction* pA = (const MetaChordAction*) pAction;
						aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_CHORD );
					}
					break;
					
					case( META_POLYGON_ACTION ):
						aPoly = ( (const MetaPolygonAction*) pAction )->GetPolygon();
					break;
				}

				if( aPoly.GetSize() )
				{
=====================================================================
Found a 42 line (204 tokens) duplication in the following files: 
Starting at line 670 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/verifyinput.cxx
Starting at line 762 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/verifyinput.cxx

                    ::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's NumComponents is negative"),
                    xIf,
                    nArgPos );
#else
                throw lang::IllegalArgumentException();
#endif
            }

            if( bitmapLayout.Endianness < rendering::Endianness::LITTLE ||
                bitmapLayout.Endianness > rendering::Endianness::BIG )
            {
#if OSL_DEBUG_LEVEL > 0
                throw lang::IllegalArgumentException(
                    ::rtl::OUString::createFromAscii(pStr) +
                    ::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's Endianness value is out of range (") +
                    ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.Endianness)) +
                    ::rtl::OUString::createFromAscii(" not known)"),
                    xIf,
                    nArgPos );
#else
                throw lang::IllegalArgumentException();
#endif
            }                

            if( bitmapLayout.Format < rendering::IntegerBitmapFormat::CHUNKY_1BIT ||
                bitmapLayout.Format > rendering::IntegerBitmapFormat::PLANES_64BIT )
            {
#if OSL_DEBUG_LEVEL > 0
                throw lang::IllegalArgumentException(
                    ::rtl::OUString::createFromAscii(pStr) +
                    ::rtl::OUString::createFromAscii(": verifyInput(): bitmap layout's Format value is out of range (") +
                    ::rtl::OUString::valueOf(sal::static_int_cast<sal_Int32>(bitmapLayout.Format)) +
                    ::rtl::OUString::createFromAscii(" not known)"),
                    xIf,
                    nArgPos );
#else
                throw lang::IllegalArgumentException();
#endif
            }
        }

        void verifyInput( const rendering::FontInfo&				/*fontInfo*/,
=====================================================================
Found a 34 line (204 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx

			pCppReturn = *pCallStack;
			pCppStack += sizeof( void* );
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
                              pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes   = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[ nPos ] = pUnoArgs[ nPos ] =
=====================================================================
Found a 36 line (203 tokens) duplication in the following files: 
Starting at line 649 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_aa.h
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_bin.h

        serialized_scanlines_adaptor_bin(const int8u* data, unsigned size,
                                         double dx, double dy) :
            m_data(data),
            m_end(data + size),
            m_ptr(data),
            m_dx(int(floor(dx + 0.5))),
            m_dy(int(floor(dy + 0.5))),
            m_min_x(0x7FFFFFFF),
            m_min_y(0x7FFFFFFF),
            m_max_x(-0x7FFFFFFF),
            m_max_y(-0x7FFFFFFF)
        {}

        //--------------------------------------------------------------------
        void init(const int8u* data, unsigned size, double dx, double dy)
        {
            m_data  = data;
            m_end   = data + size;
            m_ptr   = data;
            m_dx    = int(floor(dx + 0.5));
            m_dy    = int(floor(dy + 0.5));
            m_min_x = 0x7FFFFFFF;
            m_min_y = 0x7FFFFFFF;
            m_max_x = -0x7FFFFFFF;
            m_max_y = -0x7FFFFFFF;
        }

    private:
        //--------------------------------------------------------------------
        int read_int16()
        {
            int16 val;
            ((int8u*)&val)[0] = *m_ptr++;
            ((int8u*)&val)[1] = *m_ptr++;
            return val;
        }
=====================================================================
Found a 41 line (203 tokens) duplication in the following files: 
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linksrc.cxx
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linksrc.cxx

	delete pImpl;
}

void  SvLinkSource::Closed()
{
	SvLinkSource_EntryIter_Impl aIter( pImpl->aArr );
	for( SvLinkSource_Entry_Impl* p = aIter.Curr(); p; p = aIter.Next() )
		if( !p->bIsDataSink )
			p->xSink->Closed();
}

ULONG SvLinkSource::GetUpdateTimeout() const
{
	return pImpl->nTimeout;
}

void SvLinkSource::SetUpdateTimeout( ULONG nTimeout )
{
	pImpl->nTimeout = nTimeout;
	if( pImpl->pTimer )
		pImpl->pTimer->SetTimeout( nTimeout );
}

void SvLinkSource::SendDataChanged()
{
	SvLinkSource_EntryIter_Impl aIter( pImpl->aArr );
	for( SvLinkSource_Entry_ImplPtr p = aIter.Curr(); p; p = aIter.Next() )
	{
		if( p->bIsDataSink )
		{
			String sDataMimeType( pImpl->aDataMimeType );
			if( !sDataMimeType.Len() )
				sDataMimeType = p->aDataMimeType;

			Any aVal;
			if( ( p->nAdviseModes & ADVISEMODE_NODATA ) ||
				GetData( aVal, sDataMimeType, TRUE ) )
			{
				p->xSink->DataChanged( sDataMimeType, aVal );

				if( p->nAdviseModes & ADVISEMODE_ONLYONCE )
=====================================================================
Found a 28 line (203 tokens) duplication in the following files: 
Starting at line 1922 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 597 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT6 );
			
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);
			
			sal_Bool bOK1 = sSocket.bind( saBindSocketAddr );
			::rtl::OUString suError1 = ::rtl::OUString::createFromAscii("Socket bind fail:") + sSocket.getErrorAsString();
			CPPUNIT_ASSERT_MESSAGE( suError1, sal_True == bOK1 );
			sal_Bool bOK;
			::rtl::OUString suError;
#ifdef WNT
			bOK = compareUString( sSocket.getLocalHost( ), getThisHostname( ) ) ;
			suError = outputError(sSocket.getLocalHost( ), getThisHostname( ), 
"test for getLocalHost function: create localhost socket and check name");
#else	
			::rtl::OUString aUString = ::rtl::OUString::createFromAscii( (const sal_Char *) "localhost" );
			sal_Bool bRes1, bRes2;
			bRes1 = compareUString( sSocket.getLocalHost( ), aUString ) ;
			bRes2 = compareUString( sSocket.getLocalHost( ), saBindSocketAddr.getHostname(0) ) ;
			bOK = bRes1 || bRes2;
			suError = outputError(sSocket.getLocalHost( ), aUString, "test for getLocalHost function: create localhost socket and check name");
#endif				
			CPPUNIT_ASSERT_MESSAGE( suError, sal_True == bOK );
		}
	
		void getLocalHost_002()
		{
			::osl::Socket sSocket(sHandle);
			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("123.45.67.89"), IP_PORT_POP3);
=====================================================================
Found a 9 line (203 tokens) duplication in the following files: 
Starting at line 1349 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

     41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0,  0,  0,  0,  0, // 112-127
//    p   q   r   s   t   u   v   w   x   y   z

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
=====================================================================
Found a 7 line (203 tokens) duplication in the following files: 
Starting at line 1332 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1434 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,// 2e90 - 2e9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ea0 - 2eaf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2eb0 - 2ebf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ec0 - 2ecf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ed0 - 2edf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ee0 - 2eef
    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff
=====================================================================
Found a 13 line (203 tokens) duplication in the following files: 
Starting at line 1222 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  1,  0,  1,  0,  0,  	0,  0,  0,  0,  0,	  	// <, >
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,  // 100 - 149
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
=====================================================================
Found a 8 line (203 tokens) duplication in the following files: 
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17,17, 0,// 0e40 - 0e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e50 - 0e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e60 - 0e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e70 - 0e7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e80 - 0e8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e90 - 0e9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ea0 - 0eaf
     0,17, 0, 0,17,17,17,17,17,17, 0,17,17, 0, 0, 0,// 0eb0 - 0ebf
=====================================================================
Found a 8 line (203 tokens) duplication in the following files: 
Starting at line 1058 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1506 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0,13,13,13,13,13,13,13,13,13,13,13,13,13,// fbd0 - fbdf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fbe0 - fbef
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fbf0 - fbff

    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd00 - fd0f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd10 - fd1f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd20 - fd2f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,10,10,// fd30 - fd3f
=====================================================================
Found a 8 line (203 tokens) duplication in the following files: 
Starting at line 1036 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1255 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,18,18,18,18, 0,// 1800 - 180f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1810 - 181f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1820 - 182f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1830 - 183f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1840 - 184f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1850 - 185f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
=====================================================================
Found a 7 line (203 tokens) duplication in the following files: 
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 756 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27, 0, 0, 0, 0,27,27,27,27,27,// 3370 - 337f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3380 - 338f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3390 - 339f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33a0 - 33af
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33b0 - 33bf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33c0 - 33cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0, 0,// 33d0 - 33df
=====================================================================
Found a 8 line (203 tokens) duplication in the following files: 
Starting at line 573 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 31b0 - 31bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31c0 - 31cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31d0 - 31df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31e0 - 31ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31f0 - 31ff

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3200 - 320f
    27,27,27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0,// 3210 - 321f
=====================================================================
Found a 7 line (203 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0, 0, 0,// 2390 - 239f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23a0 - 23af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23b0 - 23bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23c0 - 23cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23d0 - 23df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23e0 - 23ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23f0 - 23ff
=====================================================================
Found a 38 line (203 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 790 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
};


//=======================================================================

static sal_Unicode ImplStarSymbolToStarBats( sal_Unicode c )
=====================================================================
Found a 31 line (203 tokens) duplication in the following files: 
Starting at line 3602 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 3869 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

            if( hbox->style.cap_len > 0 )
            {
                padd(ascii("draw:style-name"), sXML_CDATA,
                    ascii(Int2Str(hbox->style.boxnum, "CapBox%d", buf)));
                padd(ascii("draw:name"), sXML_CDATA,
                    ascii(Int2Str(hbox->style.boxnum, "CaptionBox%d", buf)));
					 padd(ascii("draw:z-index"), sXML_CDATA,
                    ascii(Int2Str(hbox->zorder, "%d", buf)));
                switch (hbox->style.anchor_type)
                {
                    case CHAR_ANCHOR:
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("as-char"));
                        break;
                    case PARA_ANCHOR:
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("paragraph"));
                        break;
                    case PAGE_ANCHOR:
                    case PAPER_ANCHOR:
                    {
                        // os unused
                        // HWPInfo *hwpinfo = hwpfile.GetHWPInfo();
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("page"));
                        padd(ascii("text:anchor-page-number"), sXML_CDATA,
                            ascii(Int2Str(hbox->pgno +1, "%d", buf)));
                        break;
                    }
                }
                if (hbox->style.anchor_type != CHAR_ANCHOR)
                {
                    padd(ascii("svg:x"), sXML_CDATA,
                        Double2Str(WTMM(  hbox->pgx + hbox->style.margin[0][0] )) + ascii("mm"));
=====================================================================
Found a 7 line (203 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0, 0, 0,// 2390 - 239f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23a0 - 23af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23b0 - 23bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23c0 - 23cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23d0 - 23df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23e0 - 23ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23f0 - 23ff
=====================================================================
Found a 55 line (203 tokens) duplication in the following files: 
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 538 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

		else if( !m_bLink && m_aInterceptedURL[4] == Requests[i].FeatureURL.Complete )
			aRet[i] = (frame::XDispatch*) this;
		else if(m_aInterceptedURL[5] == Requests[i].FeatureURL.Complete)
			aRet[i] = (frame::XDispatch*) this;

	return aRet;
}



//XDispatchProviderInterceptor

uno::Reference< frame::XDispatchProvider > SAL_CALL 
Interceptor::getSlaveDispatchProvider(  ) 
	throw (
		uno::RuntimeException
	)
{
	osl::MutexGuard aGuard(m_aMutex);
	return m_xSlaveDispatchProvider;
}

void SAL_CALL
Interceptor::setSlaveDispatchProvider( 
	const uno::Reference< frame::XDispatchProvider >& NewDispatchProvider )
	throw (
		uno::RuntimeException
	)
{
	osl::MutexGuard aGuard(m_aMutex);
	m_xSlaveDispatchProvider = NewDispatchProvider;
}


uno::Reference< frame::XDispatchProvider > SAL_CALL
Interceptor::getMasterDispatchProvider(  ) 
	throw (
		uno::RuntimeException
	)
{
	osl::MutexGuard aGuard(m_aMutex);
	return m_xMasterDispatchProvider;	
}

	
void SAL_CALL
Interceptor::setMasterDispatchProvider( 
	const uno::Reference< frame::XDispatchProvider >& NewSupplier )
	throw (
		uno::RuntimeException
	)
{
	osl::MutexGuard aGuard(m_aMutex);
	m_xMasterDispatchProvider = NewSupplier;
}
=====================================================================
Found a 37 line (203 tokens) duplication in the following files: 
Starting at line 1002 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx

		const basegfx::B2DPolygon aPolygon(rPolyPolygon.getB2DPolygon(nPolygon));
		const sal_uInt32 nPointCount(aPolygon.count());

		if(nPointCount)
		{
			if(aPolygon.areControlPointsUsed())
			{
				// prepare edge-based loop
				basegfx::B2DPoint aCurrentPoint(aPolygon.getB2DPoint(0));
				const sal_uInt32 nEdgeCount(aPolygon.isClosed() ? nPointCount - 1 : nPointCount);

				// first vertex
				path.move_to(aCurrentPoint.getX(), aCurrentPoint.getY());

				for(sal_uInt32 a(0); a < nEdgeCount; a++)
				{
					// access next point
					const sal_uInt32 nNextIndex((a + 1) % nPointCount);
					const basegfx::B2DPoint aNextPoint(aPolygon.getB2DPoint(nNextIndex));

					// get control points
					const basegfx::B2DPoint aControlNext(aPolygon.getNextControlPoint(a));
					const basegfx::B2DPoint aControlPrev(aPolygon.getPrevControlPoint(nNextIndex));

					// specify first cp, second cp, next vertex
					path.curve4(
						aControlNext.getX(), aControlNext.getY(),
						aControlPrev.getX(), aControlPrev.getY(),
						aNextPoint.getX(), aNextPoint.getY());

					// prepare next step
					aCurrentPoint = aNextPoint;
				}
			}
			else
			{
				const basegfx::B2DPoint aPoint(aPolygon.getB2DPoint(0));
=====================================================================
Found a 55 line (203 tokens) duplication in the following files: 
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_textlayout.cxx
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/textlayout.cxx

        return true;
    }

    namespace
    {
        class OffsetTransformer
        {
        public:
            OffsetTransformer( const ::basegfx::B2DHomMatrix& rMat ) :
                maMatrix( rMat )
            {
            }

            sal_Int32 operator()( const double& rOffset )
            {
                // This is an optimization of the normal rMat*[x,0]
                // transformation of the advancement vector (in x
                // direction), followed by a length calculation of the
                // resulting vector: advancement' =
                // ||rMat*[x,0]||. Since advancements are vectors, we
                // can ignore translational components, thus if [x,0],
                // it follows that rMat*[x,0]=[x',0] holds. Thus, we
                // just have to calc the transformation of the x
                // component.

                // TODO(F2): Handle non-horizontal advancements!
                return ::basegfx::fround( hypot(maMatrix.get(0,0)*rOffset,
												maMatrix.get(1,0)*rOffset) );
            }

        private:
            ::basegfx::B2DHomMatrix maMatrix;
        };
    }

    void TextLayout::setupTextOffsets( sal_Int32*						outputOffsets,
                                       const uno::Sequence< double >& 	inputOffsets,
                                       const rendering::ViewState& 		viewState,
                                       const rendering::RenderState& 	renderState		) const
    {
        ENSURE_AND_THROW( outputOffsets!=NULL,
                          "TextLayout::setupTextOffsets offsets NULL" );

        ::basegfx::B2DHomMatrix aMatrix;

        ::canvas::tools::mergeViewAndRenderTransform(aMatrix,
                                                     viewState,
                                                     renderState);

        // fill integer offsets
        ::std::transform( const_cast< uno::Sequence< double >& >(inputOffsets).getConstArray(),
                          const_cast< uno::Sequence< double >& >(inputOffsets).getConstArray()+inputOffsets.getLength(),
                          outputOffsets,
                          OffsetTransformer( aMatrix ) );
    }
=====================================================================
Found a 28 line (202 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 776 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

		OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlCurrencyFieldModel") ) );
	
	Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
	if (xStyle.is())
	{
		StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () );
		Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
		pStyle->importBackgroundColorStyle( xControlModel );
		pStyle->importTextColorStyle( xControlModel );
		pStyle->importTextLineColorStyle( xControlModel );
		pStyle->importBorderStyle( xControlModel );
		pStyle->importFontStyle( xControlModel );
	}
	
	ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
							   _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
							   _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("strict-format") ),
							   _xAttributes );
	ctx.importBooleanProperty(
        OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
        _xAttributes );
	ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("CurrencySymbol") ),
=====================================================================
Found a 41 line (202 tokens) duplication in the following files: 
Starting at line 928 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/epptso.cxx
Starting at line 3463 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/escherex.cxx

sal_Bool EscherPropertyValueHelper::GetPropertyValue(
	::com::sun::star::uno::Any& rAny,
		const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & rXPropSet,
			const String& rString,
					sal_Bool bTestPropertyAvailability )
{
    sal_Bool bRetValue = sal_True;
	if ( bTestPropertyAvailability )
	{
		bRetValue = sal_False;
		try
		{
			::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
				aXPropSetInfo( rXPropSet->getPropertySetInfo() );
			if ( aXPropSetInfo.is() )
				bRetValue = aXPropSetInfo->hasPropertyByName( rString );
		}
		catch( ::com::sun::star::uno::Exception& )
		{
			bRetValue = sal_False;
		}
	}
	if ( bRetValue )
	{
		try
		{
			rAny = rXPropSet->getPropertyValue( rString );
			if ( !rAny.hasValue() )
				bRetValue = sal_False;
		}
		catch( ::com::sun::star::uno::Exception& )
		{
			bRetValue = sal_False;
		}
	}
    return bRetValue;
}

// ---------------------------------------------------------------------------------------------

::com::sun::star::beans::PropertyState EscherPropertyValueHelper::GetPropertyState(
=====================================================================
Found a 14 line (202 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,   19,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0

    } ;
=====================================================================
Found a 35 line (201 tokens) duplication in the following files: 
Starting at line 1203 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/combobox.cxx
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/lstbox.cxx

void ListBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags )
{
	mpImplLB->GetMainWindow()->ImplInitSettings( TRUE, TRUE, TRUE );

	Point aPos = pDev->LogicToPixel( rPos );
	Size aSize = pDev->LogicToPixel( rSize );
	Font aFont = mpImplLB->GetMainWindow()->GetDrawPixelFont( pDev );
	OutDevType eOutDevType = pDev->GetOutDevType();

	pDev->Push();
	pDev->SetMapMode();
	pDev->SetFont( aFont );
	pDev->SetTextFillColor();

	// Border/Background
	pDev->SetLineColor();
	pDev->SetFillColor();
	BOOL bBorder = !(nFlags & WINDOW_DRAW_NOBORDER ) && (GetStyle() & WB_BORDER);
	BOOL bBackground = !(nFlags & WINDOW_DRAW_NOBACKGROUND) && IsControlBackground();
	if ( bBorder || bBackground )
	{
		Rectangle aRect( aPos, aSize );
		if ( bBorder )
		{
            ImplDrawFrame( pDev, aRect );
		}
		if ( bBackground )
		{
			pDev->SetFillColor( GetControlBackground() );
			pDev->DrawRect( aRect );
		}
	}

	// Inhalt
	if ( ( nFlags & WINDOW_DRAW_MONO ) || ( eOutDevType == OUTDEV_PRINTER ) )
=====================================================================
Found a 35 line (201 tokens) duplication in the following files: 
Starting at line 936 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 2288 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

    ::ucbhelper::ContentRefList aAllContents;
    m_xProvider->queryExistingContents( aAllContents );

    rtl::OUString aURL = m_xIdentifier->getContentIdentifier();
    sal_Int32 nURLPos = aURL.lastIndexOf( '/' );
	
    if ( nURLPos != ( aURL.getLength() - 1 ) )
    {
        // No trailing slash found. Append.
        aURL += rtl::OUString::createFromAscii( "/" );
    }

    sal_Int32 nLen = aURL.getLength();
    
    ::ucbhelper::ContentRefList::const_iterator it  = aAllContents.begin();
    ::ucbhelper::ContentRefList::const_iterator end = aAllContents.end();

    while ( it != end )
    {
        ::ucbhelper::ContentImplHelperRef xChild = (*it);
        rtl::OUString aChildURL
            = xChild->getIdentifier()->getContentIdentifier();
	    
        // Is aURL a prefix of aChildURL?
        if ( ( aChildURL.getLength() > nLen ) &&
             ( aChildURL.compareTo( aURL, nLen ) == 0 ) )
        {
            sal_Int32 nPos = nLen;
            nPos = aChildURL.indexOf( '/', nPos );
	    
            if ( ( nPos == -1 ) ||
                 ( nPos == ( aChildURL.getLength() - 1 ) ) )
            {
                // No further slashes / only a final slash. It's a child!
                rChildren.push_back(
=====================================================================
Found a 23 line (201 tokens) duplication in the following files: 
Starting at line 5273 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4939 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};
static const sal_Int32 mso_sptWedgeEllipseCalloutDefault[] =
{
	2, 1350, 25920
};
static const SvxMSDffVertPair mso_sptWedgeEllipseCalloutGluePoints[] =
{
	{ 10800, 0 }, { 3160, 3160 }, { 0, 10800 }, { 3160, 18440 }, { 10800, 21600 }, { 18440, 18440 }, { 21600, 10800 }, { 18440, 3160 }, { 0xe MSO_I, 0xf MSO_I }
};
static const SvxMSDffTextRectangles mso_sptWedgeEllipseCalloutTextRect[] =
{
	{ { 3200, 3200 }, { 18400, 18400 } }
};
static const mso_CustomShape msoWedgeEllipseCallout =
{
	(SvxMSDffVertPair*)mso_sptWedgeEllipseCalloutVert, sizeof( mso_sptWedgeEllipseCalloutVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptWedgeEllipseCalloutSegm, sizeof( mso_sptWedgeEllipseCalloutSegm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptWedgeEllipseCalloutCalc, sizeof( mso_sptWedgeEllipseCalloutCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptWedgeEllipseCalloutDefault,
	(SvxMSDffTextRectangles*)mso_sptWedgeEllipseCalloutTextRect, sizeof( mso_sptWedgeEllipseCalloutTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptWedgeEllipseCalloutGluePoints, sizeof( mso_sptWedgeEllipseCalloutGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 13 line (201 tokens) duplication in the following files: 
Starting at line 3093 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2784 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptSunVert[] =	// adj value 2700 -> 10125
{
	{ 0, 10800 },				{ 4 MSO_I, 8 MSO_I },		{ 4 MSO_I, 9 MSO_I },
	{ 0x0a MSO_I, 0x0b MSO_I },	{ 0x0c MSO_I, 0x0d MSO_I }, { 0x0e MSO_I, 0x0f MSO_I },
	{ 0x10 MSO_I, 0x11 MSO_I }, { 0x12 MSO_I, 0x13 MSO_I }, { 0x14 MSO_I, 0x15 MSO_I },
	{ 0x16 MSO_I, 0x17 MSO_I }, { 0x18 MSO_I, 0x19 MSO_I }, { 0x1a MSO_I, 0x1b MSO_I },
	{ 0x1c MSO_I, 0x1d MSO_I }, { 0x1e MSO_I, 0x1f MSO_I }, { 0x20 MSO_I, 0x21 MSO_I },
	{ 0x22 MSO_I, 0x23 MSO_I }, { 0x24 MSO_I, 0x25 MSO_I }, { 0x26 MSO_I, 0x27 MSO_I },
	{ 0x28 MSO_I, 0x29 MSO_I }, { 0x2a MSO_I, 0x2b MSO_I }, { 0x2c MSO_I, 0x2d MSO_I },
	{ 0x2e MSO_I, 0x2f MSO_I }, { 0x30 MSO_I, 0x31 MSO_I }, { 0x32 MSO_I, 0x33 MSO_I },
	{ 0 MSO_I, 0 MSO_I },		{ 1 MSO_I, 1 MSO_I }
=====================================================================
Found a 60 line (201 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/insdlg.cxx

};

/********************** SvObjectServerList ********************************
**************************************************************************/
PRV_SV_IMPL_OWNER_LIST( SvObjectServerList, SvObjectServer )

/*************************************************************************
|*    SvObjectServerList::SvObjectServerList()
|*
|*    Beschreibung
*************************************************************************/
const SvObjectServer * SvObjectServerList::Get( const String & rHumanName ) const
{
	for( ULONG i = 0; i < Count(); i++ )
	{
		if( rHumanName == GetObject( i ).GetHumanName() )
			return &GetObject( i );
	}
	return NULL;
}

/*************************************************************************
|*    SvObjectServerList::SvObjectServerList()
|*
|*    Beschreibung
*************************************************************************/
const SvObjectServer * SvObjectServerList::Get( const SvGlobalName & rName ) const
{
	for( ULONG i = 0; i < Count(); i++ )
	{
		if( rName == GetObject( i ).GetClassName() )
			return &GetObject( i );
	}
	return NULL;
}

void SvObjectServerList::Remove( const SvGlobalName & rName )
{
	SvObjectServer * pS = (SvObjectServer *)aTypes.First();
	while( pS )
	{
		if( rName == pS->GetClassName() )
		{
			Remove();
			pS = (SvObjectServer *)aTypes.GetCurObject();
		}
		else
			pS = (SvObjectServer *)aTypes.Next();
	}
}

//---------------------------------------------------------------------
void SvObjectServerList::FillInsertObjects()
/* [Beschreibung]

	Die Liste wird mit allen Typen gef"ullt, die im Insert-Dialog
	ausgew"ahlt werden k"onnen.
*/
{
	try{
=====================================================================
Found a 56 line (201 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/ppt/pptatom.cpp
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/svx/workben/msview/msview.cxx

	if( isContainer() )
	{
		if( seekToContent() )
		{
			DffRecordHeader aChildHeader;

			Atom* pLastAtom = NULL;

			while( (mrStream.GetError() == 0 ) && ( mrStream.Tell() < maRecordHeader.GetRecEndFilePos() ) )
			{
				mrStream >> aChildHeader;

				if( mrStream.GetError() == 0 )
				{
					Atom* pAtom = new Atom( aChildHeader, mrStream );

					if( pLastAtom )
						pLastAtom->mpNextAtom = pAtom;
					if( mpFirstChild == NULL )
						mpFirstChild = pAtom;

					pLastAtom = pAtom;
				}
			}
		}
	}

	maRecordHeader.SeekToEndOfRecord( mrStream );
}

Atom::~Atom()
{
	Atom* pChild = mpFirstChild;
	while( pChild )
	{
		Atom* pNextChild = pChild->mpNextAtom;
		delete pChild;
		pChild = pNextChild;
	}
}

/** imports this atom and its child atoms */
Atom* Atom::import( const DffRecordHeader& rRootRecordHeader, SvStream& rStCtrl )
{
	Atom* pRootAtom = new Atom( rRootRecordHeader, rStCtrl );

	if( rStCtrl.GetError() == 0 )
	{
		return pRootAtom;
	}
	else
	{
		delete pRootAtom;
		return NULL;
	}
}
=====================================================================
Found a 35 line (201 tokens) duplication in the following files: 
Starting at line 1921 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 2056 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

	double fCount1  = 0.0;
	double fCount2  = 0.0;
	double fSum1    = 0.0;
	double fSumSqr1 = 0.0;
	double fSum2    = 0.0;
	double fSumSqr2 = 0.0;
	double fVal;
	for (i = 0; i < nC1; i++)
		for (j = 0; j < nR1; j++)
		{
			if (!pMat1->IsString(i,j))
			{
				fVal = pMat1->GetDouble(i,j);
				fSum1    += fVal;
				fSumSqr1 += fVal * fVal;
				fCount1++;
			}
		}
	for (i = 0; i < nC2; i++)
		for (j = 0; j < nR2; j++)
		{
			if (!pMat2->IsString(i,j))
			{
				fVal = pMat2->GetDouble(i,j);
				fSum2    += fVal;
				fSumSqr2 += fVal * fVal;
				fCount2++;
			}
		}
	if (fCount1 < 2.0 || fCount2 < 2.0)
	{
		SetNoValue();
		return;
	}
	double fS1 = (fSumSqr1-fSum1*fSum1/fCount1)/(fCount1-1.0);
=====================================================================
Found a 50 line (201 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/backtrace.c
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/backtrace.c

		fp=fp->fr_savfp;
	}
	return i;
}

void backtrace_symbols_fd( void **buffer, int size, int fd )
{
	FILE	*fp = fdopen( fd, "w" );

	if ( fp )
	{
		void **pFramePtr;
		for ( pFramePtr = buffer; size > 0 && pFramePtr && *pFramePtr; pFramePtr++, size-- )
		{
			Dl_info		dli;
			ptrdiff_t	offset;

			if ( 0 != dladdr( *pFramePtr, &dli ) )
			{
				if ( dli.dli_fname && dli.dli_fbase )
				{
					offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase;
					fprintf( fp, "%s+0x%x", dli.dli_fname, offset );
				}
				if ( dli.dli_sname && dli.dli_saddr )
				{
					offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr;
					fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset );
				}
			}
			fprintf( fp, "[0x%x]\n", *pFramePtr );
		}
		fflush( fp );
		fclose( fp );
	}
}
#endif /* defined FREEBSD */

#if defined(IRIX)
#include <stdio.h>
#include <rld_interface.h>
#include <exception.h>
#include <sys/signal.h>
#include <unistd.h>
 
/* Need extra libs -lexc -ldwarf -lelf */

int backtrace( void **buffer, int max_frames )
{
	struct sigcontext context;
=====================================================================
Found a 7 line (201 tokens) duplication in the following files: 
Starting at line 1497 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1536 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fe90 - fe9f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fea0 - feaf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// feb0 - febf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fec0 - fecf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fed0 - fedf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fee0 - feef
    13,13,13,13,13,13,13,13,13,13,13,13,13, 0, 0,18,// fef0 - feff
=====================================================================
Found a 7 line (201 tokens) duplication in the following files: 
Starting at line 1314 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1324 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10, 4, 4,10,10,10,10,10,10,10,10,10,10,10,10,// 2210 - 221f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2220 - 222f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2230 - 223f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2240 - 224f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2250 - 225f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2260 - 226f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2270 - 227f
=====================================================================
Found a 9 line (201 tokens) duplication in the following files: 
Starting at line 1222 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 0,// 27b0 - 27bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27c0 - 27cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27d0 - 27df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27e0 - 27ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27f0 - 27ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
=====================================================================
Found a 8 line (201 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17,17, 0,// 0e40 - 0e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e50 - 0e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e60 - 0e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e70 - 0e7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e80 - 0e8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e90 - 0e9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ea0 - 0eaf
     0,17, 0, 0,17,17,17,17,17,17, 0,17,17, 0, 0, 0,// 0eb0 - 0ebf
=====================================================================
Found a 7 line (201 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1600 - 160f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1610 - 161f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1620 - 162f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1630 - 163f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1640 - 164f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1650 - 165f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,23,23, 5,// 1660 - 166f
=====================================================================
Found a 8 line (201 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 513 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 28 line (201 tokens) duplication in the following files: 
Starting at line 394 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/ole/oleobjw.cxx
Starting at line 1144 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/ole/oleobjw.cxx

        throw IllegalArgumentException();
        break;
    case DISP_E_OVERFLOW:
        throw CannotConvertException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("call to OLE object failed")), static_cast<XInterface*>(
                                         static_cast<XWeak*>(this)), TypeClass_UNKNOWN, FailReason::OUT_OF_RANGE, uArgErr);
        break;
    case DISP_E_PARAMNOTFOUND:
        throw IllegalArgumentException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("call to OLE object failed")), static_cast<XInterface*>(
                                           static_cast<XWeak*>(this)), uArgErr);
        break;
    case DISP_E_TYPEMISMATCH:
        throw CannotConvertException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("call to OLE object failed")),static_cast<XInterface*>(
                                         static_cast<XWeak*>(this)) , TypeClass_UNKNOWN, FailReason::UNKNOWN, uArgErr);
        break;
    case DISP_E_UNKNOWNINTERFACE:
        throw RuntimeException() ;
        break;
    case DISP_E_UNKNOWNLCID:
        throw RuntimeException() ;
        break;
    case DISP_E_PARAMNOTOPTIONAL:
        throw CannotConvertException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("call to OLE object failed")), static_cast<XInterface*>(
                                         static_cast<XWeak*>(this)), TypeClass_UNKNOWN, FailReason::NO_DEFAULT_AVAILABLE, uArgErr);
				break;
    default:
        throw RuntimeException();
        break;
    }		
=====================================================================
Found a 28 line (201 tokens) duplication in the following files: 
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YUser.cxx

void SAL_CALL OMySQLUser::revokePrivileges( const ::rtl::OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
    if ( objType != PrivilegeObject::TABLE )
        ::dbtools::throwSQLException( "Privilege not revoked: Only table privileges can be revoked", "01006", *this );

	::osl::MutexGuard aGuard(m_aMutex);
	checkDisposed(OUser_BASE_RBHELPER::rBHelper.bDisposed);
    ::rtl::OUString sPrivs = getPrivilegeString(objPrivileges);
	if(sPrivs.getLength())
	{
		::rtl::OUString sGrant;
		sGrant += ::rtl::OUString::createFromAscii("REVOKE ");
		sGrant += sPrivs;
		sGrant += ::rtl::OUString::createFromAscii(" ON ");
		Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData();
		sGrant += ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation);
		sGrant += ::rtl::OUString::createFromAscii(" FROM ");
		sGrant += m_Name;
		
		Reference<XStatement> xStmt = m_xConnection->createStatement();
		if(xStmt.is())
			xStmt->execute(sGrant);
		::comphelper::disposeComponent(xStmt);
	}
}
// -----------------------------------------------------------------------------
// XUser
void SAL_CALL OMySQLUser::changePassword( const ::rtl::OUString& /*oldPassword*/, const ::rtl::OUString& newPassword ) throw(SQLException, RuntimeException)
=====================================================================
Found a 27 line (201 tokens) duplication in the following files: 
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx

Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getColumns(
	const Any& /*catalog*/, const ::rtl::OUString& /*schemaPattern*/, const ::rtl::OUString& tableNamePattern,
        const ::rtl::OUString& columnNamePattern ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );


    Reference< XTablesSupplier > xTables = m_pConnection->createCatalog();
	if(!xTables.is())
        throw SQLException();

	Reference< XNameAccess> xNames = xTables->getTables();
	if(!xNames.is())
        throw SQLException();

	ODatabaseMetaDataResultSet::ORows aRows;
	ODatabaseMetaDataResultSet::ORow aRow(19);

	aRow[10] = new ORowSetValueDecorator((sal_Int32)10);
	Sequence< ::rtl::OUString> aTabNames(xNames->getElementNames());
	const ::rtl::OUString* pTabBegin	= aTabNames.getConstArray();
	const ::rtl::OUString* pTabEnd		= pTabBegin + aTabNames.getLength();
	for(;pTabBegin != pTabEnd;++pTabBegin)
	{
		if(match(tableNamePattern,*pTabBegin,'\0'))
		{
			Reference< XColumnsSupplier> xTable;
=====================================================================
Found a 31 line (201 tokens) duplication in the following files: 
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper_text.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx

            if( !::rtl::math::approxEqual(aScale.getX(), aScale.getY()) )
            {
                // retrieve true font width
                const sal_Int32 nFontWidth( rOutDev.GetFontMetric( io_rVCLFont ).GetWidth() );

                const sal_Int32 nScaledFontWidth( ::basegfx::fround(nFontWidth * aScale.getX()) );

                if( !nScaledFontWidth )
                {
                    // scale is smaller than one pixel - disable text
                    // output altogether
                    return false;
                }

                io_rVCLFont.SetWidth( nScaledFontWidth );
            }

            if( !::rtl::math::approxEqual(aScale.getY(), 1.0) )
            {
                const sal_Int32 nFontHeight( io_rVCLFont.GetHeight() );
                io_rVCLFont.SetHeight( ::basegfx::fround(nFontHeight * aScale.getY()) );
            }

            io_rVCLFont.SetOrientation( static_cast< short >( ::basegfx::fround(-fmod(nRotate, 2*M_PI)*(1800.0/M_PI)) ) );

            // TODO(F2): Missing functionality in VCL: shearing
            o_rPoint.X() = ::basegfx::fround(aTranslate.getX());
            o_rPoint.Y() = ::basegfx::fround(aTranslate.getY());

            return true;
        }
=====================================================================
Found a 30 line (201 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlgedfunc.cxx
Starting at line 1515 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/ui/report/ViewsWindow.cxx

		    const SdrHdlList& rHdlList = pView->GetHdlList();
		    SdrHdl* pHdl = rHdlList.GetFocusHdl();

		    if ( pHdl == 0 )
		    {
			    // no handle selected
			    if ( pView->IsMoveAllowed() )
			    {
				    // restrict movement to work area
				    const Rectangle& rWorkArea = pView->GetWorkArea();

				    if ( !rWorkArea.IsEmpty() )
				    {
					    Rectangle aMarkRect( pView->GetMarkedObjRect() );
					    aMarkRect.Move( nX, nY );

					    if ( !rWorkArea.IsInside( aMarkRect ) )
					    {
						    if ( aMarkRect.Left() < rWorkArea.Left() )
							    nX += rWorkArea.Left() - aMarkRect.Left();

						    if ( aMarkRect.Right() > rWorkArea.Right() )
							    nX -= aMarkRect.Right() - rWorkArea.Right();

						    if ( aMarkRect.Top() < rWorkArea.Top() )
							    nY += rWorkArea.Top() - aMarkRect.Top();

						    if ( aMarkRect.Bottom() > rWorkArea.Bottom() )
							    nY -= aMarkRect.Bottom() - rWorkArea.Bottom();
					    }
=====================================================================
Found a 53 line (200 tokens) duplication in the following files: 
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/cfgmerge.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/xrmmerge.cxx

		else if ( ByteString( argv[ i ] ).ToUpperAscii() == "-ISO99" ) {
			nState = STATE_ISOCODE99;
		}
		else {
			switch ( nState ) {
				case STATE_NON: {
					return NULL;	// no valid command line
				}
				case STATE_INPUT: {
					sInputFileName = argv[ i ];
					bInput = TRUE; // source file found
				}
				break;
				case STATE_OUTPUT: {
					sOutputFile = argv[ i ]; // the dest. file
				}
				break;
				case STATE_PRJ: {
					sPrj = ByteString( argv[ i ]);
				}
				break;
				case STATE_ROOT: {
					sPrjRoot = ByteString( argv[ i ]); // path to project root
				}
				break;
				case STATE_MERGESRC: {
					sMergeSrc = ByteString( argv[ i ]);
					bMergeMode = TRUE; // activate merge mode, cause merge database found
				}
				break;
				case STATE_LANGUAGES: {
					Export::sLanguages = ByteString( argv[ i ]);
				}
				break;
				case STATE_ISOCODE99: {
					Export::sIsoCode99 = ByteString( argv[ i ]);
				}
				break;
			}
		}
	}

	if ( bInput ) {
		// command line is valid
		bEnableExport = TRUE;
		char *pReturn = new char[ sOutputFile.Len() + 1 ];
		strcpy( pReturn, sOutputFile.GetBuffer());  // #100211# - checked
		return pReturn;
	}

	// command line is not valid
	return NULL;
}
=====================================================================
Found a 41 line (200 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlflyt.cxx
Starting at line 465 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlflyt.cxx

		TE(GRFFRM,	INSIDE,	NONE)		// Netscape 4
	},
	{
		// Grafik-Node
		TE(GRFNODE,	INSIDE,	NONE),		// HTML 3.2
		TE(GRFNODE,	INSIDE,	NONE),		// IE 4
		TE(GRFNODE,	INSIDE,	NONE),		// SW
		TE(GRFNODE,	INSIDE,	NONE)		// Netscape 4
	},
	{
		// Plugin
		TE(OLENODE,	INSIDE,	NONE),		// HTML 3.2
		TE(OLENODE,	INSIDE,	NONE),		// IE 4
		TE(OLENODE,	INSIDE,	NONE),		// SW
		TE(OLENODE,	INSIDE,	NONE)		// Netscape 4
	},
	{
		// Applet
		TE(OLENODE,	INSIDE,	NONE),		// HTML 3.2
		TE(OLENODE,	INSIDE,	NONE),		// IE 4
		TE(OLENODE,	INSIDE,	NONE),		// SW
		TE(OLENODE,	INSIDE,	NONE)		// Netscape 4
	},
	{
		// Floating-Frame
		TE(OLEGRF,	INSIDE,	NONE),		// HTML 3.2
		TE(OLENODE,	INSIDE,	NONE),		// IE 4
		TE(OLENODE,	INSIDE,	NONE),		// SW
		TE(OLEGRF,	INSIDE,	NONE)		// Netscape 4
	},
	{
		// sonstige OLE-Objekte
		TE(OLEGRF,	INSIDE,	NONE),		// HTML 3.2
		TE(OLEGRF,	INSIDE,	NONE),		// IE 4
		TE(OLEGRF,	INSIDE,	NONE),		// SW
		TE(OLEGRF,	INSIDE,	NONE)		// Netscape 4
	},
	{
		// Laufschrift (kann immer als MARQUEE exportiert werden, weil
		// der Inhalt an der richtigen Stelle erscheint
		TE(MARQUEE,	INSIDE,	NONE),		// HTML 3.2
=====================================================================
Found a 17 line (200 tokens) duplication in the following files: 
Starting at line 3721 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 3830 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

OCX_Page::OCX_Page( SotStorageRef& parent,
            const ::rtl::OUString& storageName,
            const ::rtl::OUString& sN,
            const uno::Reference< container::XNameContainer >  &rDialog,
            OCX_Control* pParent):
		OCX_ContainerControl(parent, storageName, sN, rDialog, pParent ),
        fUnknown1(0), fEnabled(1), fLocked(0),
		fBackStyle(1), fWordWrap(1), fAutoSize(0), nCaptionLen(0), nVertPos(1),
		nHorzPos(7), nMousePointer(0), nBorderColor(0x80000012),
		nKeepScrollBarsVisible(3), nCycle(0), nBorderStyle(0), nSpecialEffect(0),
		nPicture(0), nPictureAlignment(2), nPictureSizeMode(0),
		bPictureTiling(FALSE), nAccelerator(0), nIcon(0), pCaption(0),
		nScrollWidth(0), nScrollHeight(0), nIconLen(0), pIcon(0), nPictureLen(0),
		pPicture(0)
{
    msDialogType = C2U("NotSupported");
    mnForeColor = 0x80000012,
=====================================================================
Found a 44 line (200 tokens) duplication in the following files: 
Starting at line 509 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/textconv.cxx
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/lingu/hhcwrp.cxx

        SwTxtNode *pStartTxtNode = aStartNodeIndex.GetNode().GetTxtNode();

        const sal_Int32  nIndices = pOffsets->getLength();
        const sal_Int32 *pIndices = pOffsets->getConstArray();
        xub_StrLen nConvTextLen = rNewText.Len();
        xub_StrLen nPos = 0;
        xub_StrLen nChgPos = STRING_NOTFOUND;
        xub_StrLen nChgLen = 0;
        xub_StrLen nConvChgPos = STRING_NOTFOUND;
        xub_StrLen nConvChgLen = 0;
		
		// offset to calculate the position in the text taking into 
		// account that text may have been replaced with new text of
		// different length. Negative values allowed!
		long nCorrectionOffset = 0;
        
		DBG_ASSERT(nIndices == 0 || nIndices == nConvTextLen, 
                "mismatch between string length and sequence length!" );
        
        // find all substrings that need to be replaced (and only those)
        while (sal_True)
        {
			// get index in original text that matches nPos in new text
			xub_StrLen nIndex;
			if (nPos < nConvTextLen)
				nIndex = (sal_Int32) nPos < nIndices ? (xub_StrLen) pIndices[nPos] : nPos;
			else
			{
				nPos   = nConvTextLen;
				nIndex = static_cast< xub_StrLen >( rOrigText.getLength() );
			}

            if (rOrigText.getStr()[nIndex] == rNewText.GetChar(nPos) ||
				nPos == nConvTextLen /* end of string also terminates non-matching char sequence */)
            {
                // substring that needs to be replaced found?
                if (nChgPos != STRING_NOTFOUND && nConvChgPos != STRING_NOTFOUND)
                {
                    nChgLen = nIndex - nChgPos;
                    nConvChgLen = nPos - nConvChgPos;
#ifdef DEBUG
                    String aInOrig( rOrigText.copy( nChgPos, nChgLen ) );
#endif
                    String aInNew( rNewText.Copy( nConvChgPos, nConvChgLen ) );
=====================================================================
Found a 44 line (200 tokens) duplication in the following files: 
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/drtxtob.cxx
Starting at line 691 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/editsh.cxx

		pClipEvtLstnr = new TransferableClipboardListener( LINK( this, ScEditShell, ClipboardChanged ) );
		pClipEvtLstnr->acquire();
		Window* pWin = pViewData->GetActiveWin();
		pClipEvtLstnr->AddRemoveListener( pWin, TRUE );

		// get initial state
		TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( pViewData->GetActiveWin() ) );
		bPastePossible = ( aDataHelper.HasFormat( SOT_FORMAT_STRING ) || aDataHelper.HasFormat( SOT_FORMAT_RTF ) );
	}

	SfxWhichIter aIter( rSet );
	USHORT nWhich = aIter.FirstWhich();
	while (nWhich)
	{
		switch (nWhich)
		{
			case SID_PASTE:
			case FID_PASTE_CONTENTS:
				if( !bPastePossible )
					rSet.DisableItem( nWhich );
				break;
			case SID_CLIPBOARD_FORMAT_ITEMS:
				if( bPastePossible )
				{
					SvxClipboardFmtItem aFormats( SID_CLIPBOARD_FORMAT_ITEMS );
					TransferableDataHelper aDataHelper(
							TransferableDataHelper::CreateFromSystemClipboard( pViewData->GetActiveWin() ) );

					if ( aDataHelper.HasFormat( SOT_FORMAT_STRING ) )
						aFormats.AddClipbrdFormat( SOT_FORMAT_STRING );
					if ( aDataHelper.HasFormat( SOT_FORMAT_RTF ) )
						aFormats.AddClipbrdFormat( SOT_FORMAT_RTF );

					rSet.Put( aFormats );
				}
				else
					rSet.DisableItem( nWhich );
				break;
		}
		nWhich = aIter.NextWhich();
	}
}

void lcl_InvalidateUnder( SfxBindings& rBindings )
=====================================================================
Found a 45 line (200 tokens) duplication in the following files: 
Starting at line 4727 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 4985 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

void ScInterpreter::ScVLookup()
{
	BYTE nParamCount = GetByte();
	if ( MustHaveParamCount( nParamCount, 3, 4 ) )
	{
		BOOL bSorted;
		if (nParamCount == 4)
			bSorted = GetBool();
		else
			bSorted = TRUE;
		double fIndex = ::rtl::math::approxFloor( GetDouble() ) - 1.0;
		ScMatrixRef pMat = NULL;
        SCSIZE nC = 0, nR = 0;
        SCCOL nCol1 = 0;
        SCROW nRow1 = 0;
        SCTAB nTab1 = 0;
        SCCOL nCol2 = 0;
        SCROW nRow2 = 0;
        SCTAB nTab2;
		if (GetStackType() == svDoubleRef)
		{
			PopDoubleRef(nCol1, nRow1, nTab1, nCol2, nRow2, nTab2);
			if (nTab1 != nTab2)
			{
				SetIllegalParameter();
				return;
			}
		}
		else if (GetStackType() == svMatrix)
		{
			pMat = PopMatrix();
			if (pMat)
				pMat->GetDimensions(nC, nR);
			else
			{
				SetIllegalParameter();
				return;
			}
		}
		else
		{
			SetIllegalParameter();
			return;
		}
        if ( fIndex < 0.0 || (pMat ? (fIndex >= nC) : (fIndex+nCol1 > nCol2)) )
=====================================================================
Found a 32 line (200 tokens) duplication in the following files: 
Starting at line 1022 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngsvcmgr.cxx
Starting at line 1116 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngsvcmgr.cxx

    String  aNode( String::CreateFromAscii( "ServiceManager/ThesaurusList" ) );
    Sequence< OUString > aNames( /*aCfg.*/GetNodeNames( aNode ) );
    OUString *pNames = aNames.getArray();
    INT32 nLen = aNames.getLength();

	// append path prefix need for 'GetProperties' call below
	String aPrefix( aNode );
	aPrefix.Append( (sal_Unicode) '/' );
	for (int i = 0;  i < nLen;  ++i)
	{
		OUString aTmp( aPrefix );
		aTmp += pNames[i];
		pNames[i] = aTmp;
	}

    Sequence< Any > aValues( /*aCfg.*/GetProperties( aNames ) );
    if (nLen  &&  nLen == aValues.getLength())
    {
        const Any *pValues = aValues.getConstArray();
        for (INT32 i = 0;  i < nLen;  ++i)
        {
            Sequence< OUString > aSvcImplNames;
            if (pValues[i] >>= aSvcImplNames)
            {
#if OSL_DEBUG_LEVEL > 1
//                INT32 nSvcs = aSvcImplNames.getLength();
//                const OUString *pSvcImplNames = aSvcImplNames.getConstArray();
#endif
				String aLocaleStr( pNames[i] );
				xub_StrLen nSeperatorPos = aLocaleStr.SearchBackward( sal_Unicode( '/' ) );
				aLocaleStr = aLocaleStr.Copy( nSeperatorPos + 1 );
                Locale aLocale( CreateLocale( MsLangId::convertIsoStringToLanguage(aLocaleStr) ) );
=====================================================================
Found a 36 line (200 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx

	    DictMgr* sdMgr = new DictMgr(sTmp.getStr(),"DICT");
            numshr = 0;
            if (sdMgr) 
                 numshr = sdMgr->get_list(&spdict);

            //Test for existence of the dictionaries
            for (int i = 0; i < numusr; i++)
	    {
            	OUString str = aPathOpt.GetUserDictionaryPath() + A2OU("/") + A2OU(updict[i].filename) + 
			A2OU(".dic");
		osl::File aTest(str);
		if (aTest.open(osl_File_OpenFlag_Read))
			continue;
		aTest.close();
		postupdict.push_back(&updict[i]);
            }

            for (int i = 0; i < numshr; i++)
	    {
                OUString str = aPathOpt.GetLinguisticPath() + A2OU("/ooo/") + A2OU(spdict[i].filename) + 
			A2OU(".dic");
		osl::File aTest(str);
		if (aTest.open(osl_File_OpenFlag_Read))
			continue;
		aTest.close();
		postspdict.push_back(&spdict[i]);
            }

	    numusr = postupdict.size();
            numshr = postspdict.size();

            // we really should merge these and remove duplicates but since 
            // users can name their dictionaries anything they want it would
            // be impossible to know if a real duplication exists unless we
            // add some unique key to each myspell dictionary
            numdict = numshr + numusr;
=====================================================================
Found a 8 line (200 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16f0 - 16ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1700 - 170f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1710 - 171f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
=====================================================================
Found a 37 line (200 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/headermenucontroller.cxx

void SAL_CALL HeaderMenuController::select( const css::awt::MenuEvent& rEvent ) throw (RuntimeException)
{
    Reference< css::awt::XPopupMenu >   xPopupMenu;
    Reference< XDispatch >              xDispatch;
    Reference< XMultiServiceFactory >   xServiceManager;

    ResetableGuard aLock( m_aLock );
    xPopupMenu      = m_xPopupMenu;
    xDispatch       = m_xDispatch;
    xServiceManager = m_xServiceManager;
    aLock.unlock();

    if ( xPopupMenu.is() && xDispatch.is() )
    {
        VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( xPopupMenu );
        if ( pPopupMenu )
        {
            css::util::URL               aTargetURL;
	        Sequence<PropertyValue>	     aArgs( 1 );
            Reference< XURLTransformer > xURLTransformer( xServiceManager->createInstance( 
                                                            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                        UNO_QUERY );

            {
                vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
                PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();

                aTargetURL.Complete = pVCLPopupMenu->GetItemCommand( rEvent.MenuId );
            }
            
            xURLTransformer->parseStrict( aTargetURL );
            xDispatch->dispatch( aTargetURL, aArgs );
        }
    }
}

void SAL_CALL HeaderMenuController::activate( const css::awt::MenuEvent& ) throw (RuntimeException)
=====================================================================
Found a 32 line (200 tokens) duplication in the following files: 
Starting at line 1158 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1547 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx
Starting at line 1637 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 1382 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uiconfigurationmanager.cxx

void UIConfigurationManager::implts_notifyContainerListener( const ConfigurationEvent& aEvent, NotifyOp eOp )
{
    ::cppu::OInterfaceContainerHelper* pContainer = m_aListenerContainer.getContainer( ::getCppuType( ( const css::uno::Reference< ::com::sun::star::ui::XUIConfigurationListener >*) NULL ) );
    if ( pContainer != NULL )
	{
        ::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
        while ( pIterator.hasMoreElements() )
        {
            try
            {
                switch ( eOp )
                {
                    case NotifyOp_Replace:
                        ((::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementReplaced( aEvent );
                        break;
                    case NotifyOp_Insert:
                        ((::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementInserted( aEvent );
                        break;
                    case NotifyOp_Remove:
                        ((::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementRemoved( aEvent );
                        break;
                }
            }
            catch( css::uno::RuntimeException& )
            {
                pIterator.remove();
            }
        }
	}
}

} // namespace framework
=====================================================================
Found a 75 line (200 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsdocumenthandler.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsdocumenthandler.cxx

using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::xml::sax;


#define XMLNS_EVENT				"http://openoffice.org/2001/event"
#define XMLNS_XLINK				"http://www.w3.org/1999/xlink"
#define XMLNS_EVENT_PREFIX		"event:"
#define XMLNS_XLINK_PREFIX		"xlink:"

#define ATTRIBUTE_XMLNS_EVENT	"xmlns:event"
#define ATTRIBUTE_XMLNS_XLINK	"xmlns:xlink"

#define XMLNS_FILTER_SEPARATOR	"^"

#define ELEMENT_EVENTS			"events"
#define ELEMENT_EVENT			"event"

#define ATTRIBUTE_LANGUAGE		"language"
#define ATTRIBUTE_LIBRARY		"library"
#define ATTRIBUTE_NAME			"name"
#define ATTRIBUTE_HREF			"href"
#define ATTRIBUTE_TYPE			"type"
#define ATTRIBUTE_MACRONAME		"macro-name"

#define ELEMENT_NS_EVENTS		"event:events"
#define ELEMENT_NS_EVENT		"event:event"

#define ATTRIBUTE_TYPE_CDATA	"CDATA"

#define EVENTS_DOCTYPE			"<!DOCTYPE event:events PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"event.dtd\">"

// Property names for events
#define	PROP_EVENT_TYPE		"EventType"
#define PROP_LIBRARY		"Library"
#define PROP_SCRIPT			"Script"
#define PROP_MACRO_NAME		"MacroName"
#define STAR_BASIC			"StarBasic"
#define JAVA_SCRIPT			"JavaScript"


namespace framework
{

struct EventEntryProperty
{
	OReadEventsDocumentHandler::Event_XML_Namespace	nNamespace;
	char											aEntryName[20];
};

static EventEntryProperty EventEntries[OReadEventsDocumentHandler::EV_XML_ENTRY_COUNT] =
{
	{ OReadEventsDocumentHandler::EV_NS_EVENT,	ELEMENT_EVENTS			},
	{ OReadEventsDocumentHandler::EV_NS_EVENT,	ELEMENT_EVENT			},
	{ OReadEventsDocumentHandler::EV_NS_EVENT,	ATTRIBUTE_LANGUAGE		},
	{ OReadEventsDocumentHandler::EV_NS_EVENT,	ATTRIBUTE_NAME			},
	{ OReadEventsDocumentHandler::EV_NS_XLINK,	ATTRIBUTE_HREF			},
	{ OReadEventsDocumentHandler::EV_NS_XLINK,	ATTRIBUTE_TYPE			},
	{ OReadEventsDocumentHandler::EV_NS_EVENT,	ATTRIBUTE_MACRONAME		},
	{ OReadEventsDocumentHandler::EV_NS_EVENT,	ATTRIBUTE_LIBRARY		}
};


OReadEventsDocumentHandler::OReadEventsDocumentHandler( EventsConfig& aItems ) :
	ThreadHelpBase( &Application::GetSolarMutex() ),
	::cppu::OWeakObject(),
	m_aEventItems( aItems )
{
	OUString aNamespaceEvent( RTL_CONSTASCII_USTRINGPARAM( XMLNS_EVENT ));
	OUString aNamespaceXLink( RTL_CONSTASCII_USTRINGPARAM( XMLNS_XLINK ));
	OUString aSeparator( RTL_CONSTASCII_USTRINGPARAM( XMLNS_FILTER_SEPARATOR ));

	// create hash map
	for ( int i = 0; i < (int)EV_XML_ENTRY_COUNT; i++ )
=====================================================================
Found a 36 line (200 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/oservices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SServices.cxx

using namespace connectivity::skeleton;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName, 
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pTemp
		);

//***************************************************************************************
//
// Die vorgeschriebene C-Api muss erfuellt werden!
// Sie besteht aus drei Funktionen, die von dem Modul exportiert werden muessen.
//

//---------------------------------------------------------------------------------------
void REGISTER_PROVIDER(
		const OUString& aServiceImplName, 
		const Sequence< OUString>& Services, 
		const Reference< ::com::sun::star::registry::XRegistryKey > & xKey)
{
	OUString aMainKeyName;
	aMainKeyName = OUString::createFromAscii("/");
	aMainKeyName += aServiceImplName;
	aMainKeyName += OUString::createFromAscii("/UNO/SERVICES");

	Reference< ::com::sun::star::registry::XRegistryKey >  xNewKey( xKey->createKey(aMainKeyName) );
	OSL_ENSURE(xNewKey.is(), "SKELETON::component_writeInfo : could not create a registry key !");
=====================================================================
Found a 56 line (200 tokens) duplication in the following files: 
Starting at line 629 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getURL(  ) throw(SQLException, RuntimeException)
{
	::rtl::OUString aValue = ::rtl::OUString::createFromAscii("sdbc:skeleton:");
=====================================================================
Found a 36 line (200 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/kab/KServices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/oservices.cxx

using namespace connectivity::odbc;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pTemp
		);

//***************************************************************************************
//
// Die vorgeschriebene C-Api muss erfuellt werden!
// Sie besteht aus drei Funktionen, die von dem Modul exportiert werden muessen.
//

//---------------------------------------------------------------------------------------
void REGISTER_PROVIDER(
		const OUString& aServiceImplName,
		const Sequence< OUString>& Services,
		const Reference< ::com::sun::star::registry::XRegistryKey > & xKey)
{
	OUString aMainKeyName;
	aMainKeyName = OUString::createFromAscii("/");
	aMainKeyName += aServiceImplName;
	aMainKeyName += OUString::createFromAscii("/UNO/SERVICES");

	Reference< ::com::sun::star::registry::XRegistryKey >  xNewKey( xKey->createKey(aMainKeyName) );
	OSL_ENSURE(xNewKey.is(), "ODBC::component_writeInfo : could not create a registry key !");
=====================================================================
Found a 36 line (200 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Aservices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/Cservices.cxx

using namespace connectivity::calc;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pT
		);

//***************************************************************************************
//
// Die vorgeschriebene C-Api muss erfuellt werden!
// Sie besteht aus drei Funktionen, die von dem Modul exportiert werden muessen.
//

//---------------------------------------------------------------------------------------
void REGISTER_PROVIDER(
		const OUString& aServiceImplName,
		const Sequence< OUString>& Services,
		const Reference< ::com::sun::star::registry::XRegistryKey > & xKey)
{
	OUString aMainKeyName;
	aMainKeyName = OUString::createFromAscii("/");
	aMainKeyName += aServiceImplName;
	aMainKeyName += OUString::createFromAscii("/UNO/SERVICES");

	Reference< ::com::sun::star::registry::XRegistryKey >  xNewKey( xKey->createKey(aMainKeyName) );
	OSL_ENSURE(xNewKey.is(), "FILE::component_writeInfo : could not create a registry key !");
=====================================================================
Found a 48 line (200 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/except.cxx

        rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iFind( m_generatedRttis.find( unoName ) );
            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
=====================================================================
Found a 35 line (199 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + (x_lr << 2);
                        do
                        {
                            int weight = (weight_y * weight_array[x_hr] + 
                                         image_filter_size / 2) >> 
                                         downscale_shift;

                            if(x_lr >= 0 && x_lr <= maxx)
                            {
                                fg[0] += fg_ptr[0] * weight;
                                fg[1] += fg_ptr[1] * weight;
                                fg[2] += fg_ptr[2] * weight;
                                fg[3] += fg_ptr[3] * weight;
                            }
                            else
                            {
                                fg[order_type::R] += back_r * weight;
                                fg[order_type::G] += back_g * weight;
                                fg[order_type::B] += back_b * weight;
                                fg[order_type::A] += back_a * weight;
                            }
                            total_weight += weight;
                            fg_ptr += 4;
                            x_hr   += rx_inv;
=====================================================================
Found a 38 line (199 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtparae.cxx
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtparae.cxx

                    rPropSet, sal_True ), uno::UNO_QUERY);
				if( xNumRule.is() && xNumRule->getCount() )
				{
					Reference < XNamed > xNamed( xNumRule, UNO_QUERY );
					OUString sName;
					if( xNamed.is() )
						sName = xNamed->getName();
					sal_Bool bAdd = !sName.getLength();
					if( !bAdd )
					{
						Reference < XPropertySet > xNumPropSet( xNumRule,
																UNO_QUERY );
                        const OUString sIsAutomatic( RTL_CONSTASCII_USTRINGPARAM( "IsAutomatic" ) );
						if( xNumPropSet.is() &&
							xNumPropSet->getPropertySetInfo()
									   ->hasPropertyByName( sIsAutomatic ) )
						{
							bAdd = *(sal_Bool *)xNumPropSet->getPropertyValue( sIsAutomatic ).getValue();
                            // --> OD 2007-01-12 #i73361# - check on outline style
                            const OUString sNumberingIsOutline( RTL_CONSTASCII_USTRINGPARAM( "NumberingIsOutline" ) );
                            if ( bAdd &&
                                 xNumPropSet->getPropertySetInfo()
                                           ->hasPropertyByName( sNumberingIsOutline ) )
                            {
                                bAdd = !(*(sal_Bool *)xNumPropSet->getPropertyValue( sNumberingIsOutline ).getValue());
                            }
                            // <--
						}
						else
						{
							bAdd = sal_True;
						}
					}
					if( bAdd )
						pListAutoPool->Add( xNumRule );
				}
			}
			break;
=====================================================================
Found a 44 line (199 tokens) duplication in the following files: 
Starting at line 3421 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx
Starting at line 2138 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

	Rectangle aRectangle(aRect);

	// fill other values
	basegfx::B2DTuple aScale(aRectangle.GetWidth(), aRectangle.GetHeight());
	basegfx::B2DTuple aTranslate(aRectangle.Left(), aRectangle.Top());

	// position maybe relative to anchorpos, convert
	if( pModel->IsWriter() )
	{
		if(GetAnchorPos().X() || GetAnchorPos().Y())
		{
			aTranslate -= basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
		}
	}

	// force MapUnit to 100th mm
	SfxMapUnit eMapUnit = pModel->GetItemPool().GetMetric(0);
	if(eMapUnit != SFX_MAPUNIT_100TH_MM)
	{
		switch(eMapUnit)
		{
			case SFX_MAPUNIT_TWIP :
			{
				// postion
				aTranslate.setX(ImplTwipsToMM(aTranslate.getX()));
				aTranslate.setY(ImplTwipsToMM(aTranslate.getY()));

				// size
				aScale.setX(ImplTwipsToMM(aScale.getX()));
				aScale.setY(ImplTwipsToMM(aScale.getY()));

				break;
			}
			default:
			{
				DBG_ERROR("TRGetBaseGeometry: Missing unit translation to 100th mm!");
			}
		}
	}

	// build matrix
	rMatrix.identity();

    if(!basegfx::fTools::equal(aScale.getX(), 1.0) || !basegfx::fTools::equal(aScale.getY(), 1.0))
=====================================================================
Found a 53 line (199 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx
Starting at line 518 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx

				const basegfx::B2DVector aOldVec(aCenterLeft - aTopLeft);
				const double fFullLen(aFullVec.getLength());
				const double fOldLen(aOldVec.getLength());
				const double fNewBorder((fFullLen * 100.0) / fOldLen);
				sal_Int32 nNewBorder(100L - FRound(fNewBorder));

				// clip
				if(nNewBorder < 0L)
				{
					nNewBorder = 0L;
				}

				if(nNewBorder > 100L)
				{
					nNewBorder = 100L;
				}

				// set
				if(nNewBorder != rG.aGradient.GetBorder())
				{
					rG.aGradient.SetBorder((sal_uInt16)nNewBorder);
				}

				// angle is not definitely necessary for these modes, but it makes
				// controlling more fun for the user
				aFullVec.normalize();
				double fNewFullAngle(atan2(aFullVec.getY(), aFullVec.getX()));
				fNewFullAngle /= F_PI180;
				fNewFullAngle *= -10.0;
				fNewFullAngle += 900.0;

				// clip
				while(fNewFullAngle < 0.0)
				{
					fNewFullAngle += 3600.0;
				}

				while(fNewFullAngle >= 3600.0)
				{
					fNewFullAngle -= 3600.0;
				}

				// to int and set
				const sal_Int32 nNewAngle(FRound(fNewFullAngle));

				if(nNewAngle != rGOld.aGradient.GetAngle())
				{
					rG.aGradient.SetAngle(nNewAngle);
				}
			}

			break;
		}
=====================================================================
Found a 29 line (199 tokens) duplication in the following files: 
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/graphhelp.cxx
Starting at line 2510 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx

		GDIMetaFile aMonchromeMtf( GetMonochromeMtf( COL_BLACK ) );
		aVDev.DrawWallpaper( Rectangle( aNullPt, aSizePix ), Wallpaper( Color( COL_WHITE ) ) );
		aMonchromeMtf.WindStart();
		aMonchromeMtf.Play( &aVDev, aBackPosPix, aDrawSize );
		
		// watch for overlay mask
		if ( pOverlay  )
		{
			Bitmap aOverlayMergeBmp( aVDev.GetBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize() ) );
			
			// create ANDed resulting mask at overlay area
			if ( pOverlay->IsTransparent() )
				aVDev.DrawBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), pOverlay->GetMask() );
			else
			{
				aVDev.SetLineColor( COL_BLACK );
				aVDev.SetFillColor( COL_BLACK );
				aVDev.DrawRect( aOverlayRect);
			}			
				
			aOverlayMergeBmp.CombineSimple( aVDev.GetBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize() ), BMP_COMBINE_AND );
			aVDev.DrawBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), aOverlayMergeBmp );
		}
		
		rBmpEx = BitmapEx( aBmp, aVDev.GetBitmap( aNullPt, aVDev.GetOutputSizePixel() ) );
	}
	
	return !rBmpEx.IsEmpty();
}
=====================================================================
Found a 31 line (199 tokens) duplication in the following files: 
Starting at line 1677 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1707 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

            { RTL_TEXTENCODING_SHIFT_JIS,
              RTL_CONSTASCII_STRINGPARAM(
                  "\x87\x40\x87\x41\x87\x42\x87\x43\x87\x44\x87\x45\x87\x46"
                  "\x87\x47\x87\x48\x87\x49\x87\x4A\x87\x4B\x87\x4C\x87\x4D"
                  "\x87\x4E\x87\x4F\x87\x50\x87\x51\x87\x52\x87\x53\x87\x54"
                  "\x87\x55\x87\x56\x87\x57\x87\x58\x87\x59\x87\x5A\x87\x5B"
                  "\x87\x5C\x87\x5D\x87\x5F\x87\x60\x87\x61\x87\x62\x87\x63"
                  "\x87\x64\x87\x65\x87\x66\x87\x67\x87\x68\x87\x69\x87\x6A"
                  "\x87\x6B\x87\x6C\x87\x6D\x87\x6E\x87\x6F\x87\x70\x87\x71"
                  "\x87\x72\x87\x73\x87\x74\x87\x75\x87\x7E\x87\x80\x87\x81"
                  "\x87\x82\x87\x83\x87\x84\x87\x85\x87\x86\x87\x87\x87\x88"
                  "\x87\x89\x87\x8A\x87\x8B\x87\x8C\x87\x8D\x87\x8E\x87\x8F"
                  "\x87\x90\x87\x91\x87\x92\x87\x93\x87\x94\x87\x95\x87\x96"
                  "\x87\x97\x87\x98\x87\x99\x87\x9A\x87\x9B\x87\x9C"),
              { 0x2460,0x2461,0x2462,0x2463,0x2464,0x2465,0x2466,0x2467,0x2468,
                0x2469,0x246A,0x246B,0x246C,0x246D,0x246E,0x246F,0x2470,0x2471,
                0x2472,0x2473,0x2160,0x2161,0x2162,0x2163,0x2164,0x2165,0x2166,
                0x2167,0x2168,0x2169,0x3349,0x3314,0x3322,0x334D,0x3318,0x3327,
                0x3303,0x3336,0x3351,0x3357,0x330D,0x3326,0x3323,0x332B,0x334A,
                0x333B,0x339C,0x339D,0x339E,0x338E,0x338F,0x33C4,0x33A1,0x337B,
                0x301D,0x301F,0x2116,0x33CD,0x2121,0x32A4,0x32A5,0x32A6,0x32A7,
                0x32A8,0x3231,0x3232,0x3239,0x337E,0x337D,0x337C,0x2252,0x2261,
                0x222B,0x222E,0x2211,0x221A,0x22A5,0x2220,0x221F,0x22BF,0x2235,
                0x2229,0x222A },
              83,
              true,
              true,
              false,
              false,
              RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR },
            { RTL_TEXTENCODING_ISO_2022_JP,
=====================================================================
Found a 15 line (199 tokens) duplication in the following files: 
Starting at line 1856 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 1903 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

									,	::getCppuType( ( const uno::Reference< embed::XEncryptionProtectedSource >* )NULL )
									,	::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
				}
				else if ( m_pData->m_nStorageType == OFOPXML_STORAGE )
				{
					m_pData->m_pTypeCollection = new ::cppu::OTypeCollection
									(	::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XInputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XOutputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XSeekable >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XTruncate >* )NULL )
									,	::getCppuType( ( const uno::Reference< lang::XComponent >* )NULL )
									,	::getCppuType( ( const uno::Reference< embed::XRelationshipAccess >* )NULL )
									,	::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
=====================================================================
Found a 36 line (199 tokens) duplication in the following files: 
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/tokens.c
Starting at line 367 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_tokens.c

        fprintf(stderr, "(tp offset %ld) ", (long int) (tp - trp->bp));
    for (tp = trp->bp; tp < trp->lp && tp < trp->bp + 32; tp++)
    {
        if (tp->type != NL)
        {
            int c = tp->t[tp->len];

            tp->t[tp->len] = 0;
            fprintf(stderr, "%s", tp->t);
            tp->t[tp->len] = (uchar) c;
        }
        fprintf(stderr, tp == trp->tp ? "{%x*} " : "{%x} ", tp->type);
    }
    fprintf(stderr, "\n");
    fflush(stderr);
}

void
    puttokens(Tokenrow * trp)
{
    Token *tp;
    int len;
    uchar *p;

    if (Vflag)
        peektokens(trp, "");
    tp = trp->bp;
    for (; tp < trp->lp; tp++)
    {
        if (tp->type != NL)
        {
            len = tp->len + tp->wslen;
            p = tp->t - tp->wslen;

			/* add parameter check to delete operator? */
			if( Dflag )
=====================================================================
Found a 7 line (199 tokens) duplication in the following files: 
Starting at line 1377 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1434 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,// 2e90 - 2e9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ea0 - 2eaf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2eb0 - 2ebf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ec0 - 2ecf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ed0 - 2edf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ee0 - 2eef
    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff
=====================================================================
Found a 7 line (199 tokens) duplication in the following files: 
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1243 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 7 line (199 tokens) duplication in the following files: 
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1175 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e50 - 0e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e60 - 0e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e70 - 0e7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e80 - 0e8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e90 - 0e9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ea0 - 0eaf
     0,17, 0, 0,17,17,17,17,17,17, 0,17,17, 0, 0, 0,// 0eb0 - 0ebf
=====================================================================
Found a 7 line (199 tokens) duplication in the following files: 
Starting at line 681 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 756 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27, 0, 0, 0, 0,27,27,27,27,27,// 3370 - 337f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3380 - 338f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3390 - 339f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33a0 - 33af
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33b0 - 33bf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33c0 - 33cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0, 0,// 33d0 - 33df
=====================================================================
Found a 7 line (199 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1400 - 140f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1410 - 141f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1420 - 142f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1430 - 143f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1440 - 144f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1450 - 145f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1460 - 146f
=====================================================================
Found a 55 line (199 tokens) duplication in the following files: 
Starting at line 940 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseMetaData::getURL(  ) throw(SQLException, RuntimeException)
{
=====================================================================
Found a 35 line (199 tokens) duplication in the following files: 
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx

			pCppReturn = *(void **)pCppStack;
			pCppStack += sizeof(void *);
			
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType(
                              pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
=====================================================================
Found a 9 line (199 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/ary/kernel/namesort.cxx
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/ary/kernel/namesort.cxx

int C_cAryNameOrdering2[256] =
    {   0,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255, //  0 ..
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255, // 32 ..
       71, 72, 73, 74,  75, 76, 77, 78,      79, 80,255,255, 255,255,255,255,
        
      255, 11, 13, 15,  17, 19, 21, 23,      25, 27, 29, 31,  33, 35, 37, 39, // 64 ..
       41, 43, 45, 47,  49, 51, 53, 55,      57, 59, 61,255, 255,255,255, 63,
      255, 12, 14, 16,  18, 20, 22, 24,      26, 28, 30, 32,  34, 36, 38, 40, // 96 ..
=====================================================================
Found a 9 line (198 tokens) duplication in the following files: 
Starting at line 6753 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 7059 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

    const int8u verdana12_bold[] = 
    {
        12, 3, 32, 128-32,
        0x00,0x00,0x0D,0x00,0x1A,0x00,0x27,0x00,0x34,0x00,0x41,0x00,0x5A,0x00,0x67,0x00,0x74,0x00,
        0x81,0x00,0x8E,0x00,0x9B,0x00,0xA8,0x00,0xB5,0x00,0xC2,0x00,0xCF,0x00,0xDC,0x00,0xE9,0x00,
        0xF6,0x00,0x03,0x01,0x10,0x01,0x1D,0x01,0x2A,0x01,0x37,0x01,0x44,0x01,0x51,0x01,0x5E,0x01,
        0x6B,0x01,0x78,0x01,0x85,0x01,0x92,0x01,0x9F,0x01,0xAC,0x01,0xC5,0x01,0xD2,0x01,0xDF,0x01,
        0xEC,0x01,0xF9,0x01,0x06,0x02,0x13,0x02,0x20,0x02,0x2D,0x02,0x3A,0x02,0x47,0x02,0x54,0x02,
        0x61,0x02,0x6E,0x02,0x7B,0x02,0x88,0x02,0x95,0x02,0xA2,0x02,0xAF,0x02,0xBC,0x02,0xC9,0x02,
=====================================================================
Found a 9 line (198 tokens) duplication in the following files: 
Starting at line 4305 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6141 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

    const int8u mcs7x12_mono_high[] = 
    {
        12, 3, 32, 128-32,
        0x00,0x00,0x0D,0x00,0x1A,0x00,0x27,0x00,0x34,0x00,0x41,0x00,0x4E,0x00,0x5B,0x00,0x68,0x00,
        0x75,0x00,0x82,0x00,0x8F,0x00,0x9C,0x00,0xA9,0x00,0xB6,0x00,0xC3,0x00,0xD0,0x00,0xDD,0x00,
        0xEA,0x00,0xF7,0x00,0x04,0x01,0x11,0x01,0x1E,0x01,0x2B,0x01,0x38,0x01,0x45,0x01,0x52,0x01,
        0x5F,0x01,0x6C,0x01,0x79,0x01,0x86,0x01,0x93,0x01,0xA0,0x01,0xAD,0x01,0xBA,0x01,0xC7,0x01,
        0xD4,0x01,0xE1,0x01,0xEE,0x01,0xFB,0x01,0x08,0x02,0x15,0x02,0x22,0x02,0x2F,0x02,0x3C,0x02,
        0x49,0x02,0x56,0x02,0x63,0x02,0x70,0x02,0x7D,0x02,0x8A,0x02,0x97,0x02,0xA4,0x02,0xB1,0x02,
=====================================================================
Found a 41 line (198 tokens) duplication in the following files: 
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx
Starting at line 476 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx

		case XGRAD_RECT :
		{
			if(!bMoveSingle || (bMoveSingle && !bMoveFirst))
			{
				const basegfx::B2DPoint aTopLeft(aRange.getMinX(), aRange.getMinY());
				const basegfx::B2DPoint aOffset(aEndPos - aTopLeft);
				sal_Int32 nNewXOffset(FRound((aOffset.getX() * 100.0) / aRange.getWidth()));
				sal_Int32 nNewYOffset(FRound((aOffset.getY() * 100.0) / aRange.getHeight()));

				// clip
				if(nNewXOffset < 0L)
				{
					nNewXOffset = 0L;
				}

				if(nNewXOffset > 100L)
				{
					nNewXOffset = 100L;
				}

				if(nNewYOffset < 0L)
				{
					nNewYOffset = 0L;
				}

				if(nNewYOffset > 100L)
				{
					nNewYOffset = 100L;
				}

				rG.aGradient.SetXOffset((sal_uInt16)nNewXOffset);
				rG.aGradient.SetYOffset((sal_uInt16)nNewYOffset);

				aStartPos -= aOffset;
				aEndPos -= aOffset;
			}

			if(!bMoveSingle || (bMoveSingle && bMoveFirst))
			{
				basegfx::B2DVector aFullVec(aStartPos - aEndPos);
				const basegfx::B2DPoint aTopLeft(aRange.getMinX(), aRange.getMinY());
=====================================================================
Found a 12 line (198 tokens) duplication in the following files: 
Starting at line 2665 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2386 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonSoundVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 },	{ 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0x10 MSO_I, 0x14 MSO_I },
	{ 0xe MSO_I, 0x16 MSO_I }, { 0xa MSO_I, 0x16 MSO_I }, { 0x18 MSO_I, 10800 }, { 0x1a MSO_I, 10800 },
=====================================================================
Found a 74 line (198 tokens) duplication in the following files: 
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertbig5hkscs.c
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/converteuctw.c

            *pDestBufPtr++ = (sal_Char) (0xA0 + pCns116431992Data[nOffset]);
        }
        nHighSurrogate = 0;
        continue;

    bad_input:
        switch (ImplHandleBadInputUnicodeToTextConversion(bUndefined,
                                                          nChar,
                                                          nFlags,
                                                          &pDestBufPtr,
                                                          pDestBufEnd,
                                                          &nInfo,
                                                          NULL,
                                                          0,
                                                          NULL))
        {
        case IMPL_BAD_INPUT_STOP:
            nHighSurrogate = 0;
            break;

        case IMPL_BAD_INPUT_CONTINUE:
            nHighSurrogate = 0;
            continue;

        case IMPL_BAD_INPUT_NO_OUTPUT:
            goto no_output;
        }
        break;

    no_output:
        --pSrcBuf;
        nInfo |= RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL;
        break;
    }

    if (nHighSurrogate != 0
        && (nInfo & (RTL_UNICODETOTEXT_INFO_ERROR
                         | RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL))
               == 0)
    {
        if ((nFlags & RTL_UNICODETOTEXT_FLAGS_FLUSH) != 0)
            nInfo |= RTL_UNICODETOTEXT_INFO_SRCBUFFERTOSMALL;
        else
            switch (ImplHandleBadInputUnicodeToTextConversion(sal_False,
                                                              0,
                                                              nFlags,
                                                              &pDestBufPtr,
                                                              pDestBufEnd,
                                                              &nInfo,
                                                              NULL,
                                                              0,
                                                              NULL))
            {
            case IMPL_BAD_INPUT_STOP:
            case IMPL_BAD_INPUT_CONTINUE:
                nHighSurrogate = 0;
                break;

            case IMPL_BAD_INPUT_NO_OUTPUT:
                nInfo |= RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL;
                break;
            }
    }

    if (pContext)
        ((ImplUnicodeToTextContext *) pContext)->m_nHighSurrogate
            = nHighSurrogate;
    if (pInfo)
        *pInfo = nInfo;
    if (pSrcCvtChars)
        *pSrcCvtChars = nConverted;

    return pDestBufPtr - pDestBuf;
}
=====================================================================
Found a 8 line (198 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

	0x307E, 0x307E, 0x307E, 0x307E, 0x3084, 0x3084, 0x3084, 0x3089, 0x3089, 0x3089, 0x3089, 0x3089, 0x308F, 0x308F, 0xFF9E, 0xFF9F,  // FF90
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFA0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFB0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFC0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFD0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFE0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000   // FFF0
};
=====================================================================
Found a 50 line (198 tokens) duplication in the following files: 
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

	mxServiceFactory(xServiceFactory)
{
}

// #110897#
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& OReadMenuDocumentHandler::getServiceFactory()
{
	// #110897#
	return mxServiceFactory;
}

OReadMenuDocumentHandler::~OReadMenuDocumentHandler()
{
}


void SAL_CALL OReadMenuDocumentHandler::startDocument(void)
	throw ( SAXException, RuntimeException )
{
}


void SAL_CALL OReadMenuDocumentHandler::endDocument(void)
	throw( SAXException, RuntimeException )
{
	if ( m_nElementDepth > 0 )
	{
		OUString aErrorMessage = getErrorLineString();
		aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "A closing element is missing!" ));
		throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
	}
}


void SAL_CALL OReadMenuDocumentHandler::startElement(
	const OUString& aName, const Reference< XAttributeList > &xAttrList )
throw( SAXException, RuntimeException )
{
	if ( m_bMenuBarMode )
	{
		++m_nElementDepth;
		m_xReader->startElement( aName, xAttrList );
	}
	else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUBAR )))
	{
		++m_nElementDepth;
		m_bMenuBarMode = sal_True;

		// #110897# m_xReader = Reference< XDocumentHandler >( new OReadMenuBarHandler( m_xMenuBarContainer, m_xContainerFactory ));
		m_xReader = Reference< XDocumentHandler >( new OReadMenuBarHandler( getServiceFactory(), m_xMenuBarContainer, m_xContainerFactory ));
=====================================================================
Found a 44 line (198 tokens) duplication in the following files: 
Starting at line 396 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/propctrlr/formmetadata.cxx
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/ui/inspection/metadata.cxx

        return s_pPropertyInfos;
	}

	//------------------------------------------------------------------------
	sal_Int32 OPropertyInfoService::getPropertyId(const String& _rName) const
	{
		const OPropertyInfoImpl* pInfo = getPropertyInfo(_rName);
		return pInfo ? pInfo->nId : -1;
	}

	//------------------------------------------------------------------------
	String OPropertyInfoService::getPropertyName( sal_Int32 _nPropId )
    {
		const OPropertyInfoImpl* pInfo = getPropertyInfo(_nPropId);
		return pInfo ? pInfo->sName : String();
    }

	//------------------------------------------------------------------------
	String OPropertyInfoService::getPropertyTranslation(sal_Int32 _nId) const
	{
		const OPropertyInfoImpl* pInfo = getPropertyInfo(_nId);
		return (pInfo) ? pInfo->sTranslation : String();
	}

	//------------------------------------------------------------------------
	sal_Int32 OPropertyInfoService::getPropertyHelpId(sal_Int32 _nId) const
	{
		const OPropertyInfoImpl* pInfo = getPropertyInfo(_nId);
		return (pInfo) ? pInfo->nHelpId : 0;
	}

	//------------------------------------------------------------------------
	sal_Int16 OPropertyInfoService::getPropertyPos(sal_Int32 _nId) const
	{
		const OPropertyInfoImpl* pInfo = getPropertyInfo(_nId);
		return (pInfo) ? pInfo->nPos : 0xFFFF;
	}

	//------------------------------------------------------------------------
	sal_uInt32 OPropertyInfoService::getPropertyUIFlags(sal_Int32 _nId) const
	{
		const OPropertyInfoImpl* pInfo = getPropertyInfo(_nId);
		return (pInfo) ? pInfo->nUIFlags : 0;
	}
=====================================================================
Found a 21 line (198 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 1126 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx

		aRow.push_back(new ORowSetValueDecorator((sal_Int32)s_nCHAR_OCTET_LENGTH));
		aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		// aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnValue::NULLABLE));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("VARCHAR"));
=====================================================================
Found a 46 line (198 tokens) duplication in the following files: 
Starting at line 1989 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/dbtools.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx

	{
//.........................................................................

void release(oslInterlockedCount& _refCount,
			 ::cppu::OBroadcastHelper& rBHelper,
			 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface,
			 ::com::sun::star::lang::XComponent* _pObject)
{
	if (osl_decrementInterlockedCount( &_refCount ) == 0)
	{
		osl_incrementInterlockedCount( &_refCount );

		if (!rBHelper.bDisposed && !rBHelper.bInDispose)
		{
			// remember the parent
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xParent;
			{
				::osl::MutexGuard aGuard( rBHelper.rMutex );
				xParent = _xInterface;
				_xInterface = NULL;
			}

			// First dispose
			_pObject->dispose();

			// only the alive ref holds the object
			OSL_ASSERT( _refCount == 1 );

			// release the parent in the ~
			if (xParent.is())
			{
				::osl::MutexGuard aGuard( rBHelper.rMutex );
				_xInterface = xParent;
			}
		}
	}
	else
		osl_incrementInterlockedCount( &_refCount );
}

void checkDisposed(sal_Bool _bThrow) throw ( DisposedException )
{
	if (_bThrow)
		throw DisposedException();
		
}
=====================================================================
Found a 40 line (198 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr, bSimpleReturn,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
=====================================================================
Found a 48 line (198 tokens) duplication in the following files: 
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

				pCppStack += sizeof(sal_Int32); // extra long
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic)" );
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr, bSimpleReturn,
=====================================================================
Found a 40 line (198 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr, bSimpleReturn,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
=====================================================================
Found a 48 line (198 tokens) duplication in the following files: 
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

				pCppStack += sizeof(sal_Int32); // extra long
            default:
                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic)" );
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr, bSimpleReturn,
=====================================================================
Found a 32 line (198 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

			pCppStack += sizeof( void* );
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

	 	if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))  // value
		{
			pCppArgs[nPos] = pUnoArgs[nPos] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr);
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
            		case typelib_TypeClass_DOUBLE:
=====================================================================
Found a 44 line (197 tokens) duplication in the following files: 
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 403 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

            }
        }
    }

    bool bSuccess = true;
    if( aFaxNumbers.begin() != aFaxNumbers.end() )
	{
        while( aFaxNumbers.begin() != aFaxNumbers.end() && bSuccess )
        {
            String aCmdLine( rCommand );
            String aFaxNumber( aFaxNumbers.front() );
            aFaxNumbers.pop_front();
            while( aCmdLine.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "(PHONE)" ) ), aFaxNumber ) != STRING_NOTFOUND )
                ;
#if OSL_DEBUG_LEVEL > 1
            fprintf( stderr, "sending fax to \"%s\"\n", OUStringToOString( aFaxNumber, osl_getThreadTextEncoding() ).getStr() );
#endif
            bSuccess = passFileToCommandLine( rFileName, aCmdLine, false );
        }
	}
    else
        bSuccess = false;

    // clean up temp file
    unlink( ByteString( rFileName, osl_getThreadTextEncoding() ).GetBuffer() );

    return bSuccess;
}

static bool createPdf( const String& rToFile, const String& rFromFile, const String& rCommandLine )
{
	String aCommandLine( rCommandLine );
	while( aCommandLine.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "(OUTFILE)" ) ), rToFile ) != STRING_NOTFOUND )
		;
	return passFileToCommandLine( rFromFile, aCommandLine );
}

/*
 *	SalInstance
 */

// -----------------------------------------------------------------------

SalInfoPrinter* X11SalInstance::CreateInfoPrinter( SalPrinterQueueInfo*	pQueueInfo,
=====================================================================
Found a 51 line (197 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 487 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

        static const ucb::CommandInfo aStreamCommandInfoTable[] =
		{
			///////////////////////////////////////////////////////////////
			// Required commands
			///////////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
				-1,
				getCppuVoidType()
			),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
				-1,
				getCppuVoidType()
			),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
				-1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
			),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
				-1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
			),
			///////////////////////////////////////////////////////////////
			// Optional standard commands
			///////////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
				-1,
				getCppuBooleanType()
			),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
				-1,
				getCppuVoidType()
			),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
				-1,
                getCppuType(
                    static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
			)
=====================================================================
Found a 52 line (197 tokens) duplication in the following files: 
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 551 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const ucb::CommandInfo aDocCommandInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                -1,
                getCppuType(
                    static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
                -1,
                getCppuType( static_cast< ucb::TransferInfo * >( 0 ) )
            )
            ///////////////////////////////////////////////////////////
            // New commands
            ///////////////////////////////////////////////////////////
        };
        return uno::Sequence<
                ucb::CommandInfo >( aDocCommandInfoTable, 6 );
=====================================================================
Found a 51 line (197 tokens) duplication in the following files: 
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 487 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

        static const ucb::CommandInfo aStreamCommandInfoTable[] =
		{
			///////////////////////////////////////////////////////////////
			// Required commands
			///////////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
				-1,
				getCppuVoidType()
			),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
				-1,
				getCppuVoidType()
			),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
				-1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
			),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
				-1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
			),
			///////////////////////////////////////////////////////////////
			// Optional standard commands
			///////////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
				-1,
				getCppuBooleanType()
			),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
				-1,
				getCppuVoidType()
			),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
				-1,
                getCppuType(
                    static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
			)
=====================================================================
Found a 41 line (197 tokens) duplication in the following files: 
Starting at line 1082 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx
Starting at line 3206 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx

		AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
		AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );

		//RTF vor das Metafile von OLE stellen, weil mit weniger verlusten
		//behaftet.
		if( !pWrtShell->IsObjSelected() )
		{
			AddFormat( FORMAT_RTF );
			AddFormat( SOT_FORMATSTR_ID_HTML );
		}
		if( pWrtShell->IsSelection() )
			AddFormat( FORMAT_STRING );

		if( nSelection & ( SwWrtShell::SEL_DRW | SwWrtShell::SEL_DRW_FORM ))
		{
			AddFormat( SOT_FORMATSTR_ID_DRAWING );
			if ( nSelection & SwWrtShell::SEL_DRW )
			{
				AddFormat( FORMAT_GDIMETAFILE );
				AddFormat( FORMAT_BITMAP );
			}
			eBufferType = (TransferBufferType)( TRNSFR_GRAPHIC | eBufferType );

			pClpGraphic = new Graphic;
			if( !pWrtShell->GetDrawObjGraphic( FORMAT_GDIMETAFILE, *pClpGraphic ))
				pOrigGrf = pClpGraphic;
			pClpBitmap = new Graphic;
			if( !pWrtShell->GetDrawObjGraphic( FORMAT_BITMAP, *pClpBitmap ))
				pOrigGrf = pClpBitmap;

			// ist es ein URL-Button ?
			String sURL, sDesc;
			if( pWrtShell->GetURLFromButton( sURL, sDesc ) )
			{
				AddFormat( FORMAT_STRING );
 				AddFormat( SOT_FORMATSTR_ID_SOLK );
 				AddFormat( SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK );
 				AddFormat( SOT_FORMATSTR_ID_FILECONTENT );
 				AddFormat( SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR );
 				AddFormat( SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR );
				eBufferType = (TransferBufferType)( TRNSFR_INETFLD | eBufferType );
=====================================================================
Found a 41 line (197 tokens) duplication in the following files: 
Starting at line 3857 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3424 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx

	basegfx::B2DTuple aScale(aRectangle.GetWidth(), aRectangle.GetHeight());
	basegfx::B2DTuple aTranslate(aRectangle.Left(), aRectangle.Top());

	// position maybe relative to anchorpos, convert
	if( pModel->IsWriter() )
	{
		if(GetAnchorPos().X() || GetAnchorPos().Y())
		{
			aTranslate -= basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
		}
	}

	// force MapUnit to 100th mm
	SfxMapUnit eMapUnit = pModel->GetItemPool().GetMetric(0);
	if(eMapUnit != SFX_MAPUNIT_100TH_MM)
	{
		switch(eMapUnit)
		{
			case SFX_MAPUNIT_TWIP :
			{
				// postion
				aTranslate.setX(ImplTwipsToMM(aTranslate.getX()));
				aTranslate.setY(ImplTwipsToMM(aTranslate.getY()));

				// size
				aScale.setX(ImplTwipsToMM(aScale.getX()));
				aScale.setY(ImplTwipsToMM(aScale.getY()));

				break;
			}
			default:
			{
				DBG_ERROR("TRGetBaseGeometry: Missing unit translation to 100th mm!");
			}
		}
	}

	// build matrix
	rMatrix.identity();
	
	if(1.0 != aScale.getX() || 1.0 != aScale.getY())
=====================================================================
Found a 33 line (197 tokens) duplication in the following files: 
Starting at line 1640 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/view3d.cxx
Starting at line 1060 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdmrkv.cxx

		{
			// Erstmal die laenge der Spiegelachsenlinie berechnen
			long nOutMin=0;
			long nOutMax=0;
			long nMinLen=0;
			long nObjDst=0;
			long nOutHgt=0;
			OutputDevice* pOut=GetFirstOutputDevice();
			//OutputDevice* pOut=GetWin(0);
			if (pOut!=NULL) {
				// Mindestlaenge 50 Pixel
				nMinLen=pOut->PixelToLogic(Size(0,50)).Height();
				// 20 Pixel fuer RefPt-Abstand vom Obj
				nObjDst=pOut->PixelToLogic(Size(0,20)).Height();
				// MinY/MaxY
				// Abstand zum Rand = Mindestlaenge = 10 Pixel
				long nDst=pOut->PixelToLogic(Size(0,10)).Height();
				nOutMin=-pOut->GetMapMode().GetOrigin().Y();
				nOutMax=pOut->GetOutputSize().Height()-1+nOutMin;
				nOutMin+=nDst;
				nOutMax-=nDst;
				// Absolute Mindestlaenge jedoch 10 Pixel
				if (nOutMax-nOutMin<nDst) {
					nOutMin+=nOutMax+1;
					nOutMin/=2;
					nOutMin-=(nDst+1)/2;
					nOutMax=nOutMin+nDst;
				}
				nOutHgt=nOutMax-nOutMin;
				// Sonst Mindestlaenge = 1/4 OutHgt
				long nTemp=nOutHgt/4;
				if (nTemp>nMinLen) nMinLen=nTemp;
			}
=====================================================================
Found a 69 line (197 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/lnkbase2.cxx
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/lnkbase2.cxx

class  ImplDdeItem;

// nur fuer die interne Verwaltung
struct ImplBaseLinkData
{
	struct tClientType
	{
		// gilt fuer alle Links
		ULONG				nCntntType; // Update Format
		// nicht Ole-Links
		BOOL 			bIntrnlLnk; // ist es ein interner Link
		USHORT 			nUpdateMode;// UpdateMode
	};

	struct tDDEType
	{
		ImplDdeItem* pItem;
	};

	union {
		tClientType ClientType;
		tDDEType DDEType;
	};
	ImplBaseLinkData()
	{
		ClientType.nCntntType = 0;
		ClientType.bIntrnlLnk = FALSE;
		ClientType.nUpdateMode = 0;
		DDEType.pItem = NULL;
	}
};


class ImplDdeItem : public DdeGetPutItem
{
	SvBaseLink* pLink;
	DdeData aData;
	Sequence< sal_Int8 > aSeq;		    // Datacontainer for DdeData !!!
	BOOL bIsValidData : 1;
	BOOL bIsInDTOR : 1;
public:
	ImplDdeItem( SvBaseLink& rLink, const String& rStr )
		: DdeGetPutItem( rStr ), pLink( &rLink ), bIsValidData( FALSE ),
		bIsInDTOR( FALSE )
	{}
	virtual ~ImplDdeItem();

	virtual DdeData* Get( ULONG );
	virtual BOOL Put( const DdeData* );
	virtual void AdviseLoop( BOOL );

	void Notify()
	{
		bIsValidData = FALSE;
		DdeGetPutItem::NotifyClient();
	}

	BOOL IsInDTOR() const { return bIsInDTOR; }
};


/************************************************************************
|*	  SvBaseLink::SvBaseLink()
|*
|*	  Beschreibung
*************************************************************************/

SvBaseLink::SvBaseLink()
{
=====================================================================
Found a 18 line (197 tokens) duplication in the following files: 
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbaworksheet.cxx
Starting at line 334 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbaworksheet.cxx

ScVbaWorksheet::Copy( const uno::Any& Before, const uno::Any& After ) throw (uno::RuntimeException) 
{
	rtl::OUString aSheetName;
	uno::Reference<excel::XWorksheet> xSheet;
	rtl::OUString aCurrSheetName =getName();
	if (!(Before >>= xSheet) && !(After >>=xSheet)&& !(Before.hasValue()) && !(After.hasValue()))
	{
		uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor = getSheet()->createCursor( );
		uno::Reference<sheet::XUsedAreaCursor> xUsedCursor(xSheetCellCursor,uno::UNO_QUERY_THROW);
        	uno::Reference< table::XCellRange > xRange1( xSheetCellCursor, uno::UNO_QUERY);
		uno::Reference<excel::XRange> xRange =  new ScVbaRange(m_xContext, xRange1);
		if (xRange.is())
			xRange->Select();
		implnCopy();
		uno::Reference<frame::XModel> xModel = openNewDoc(aCurrSheetName);
		if (xModel.is())
		{
			implnPaste();
=====================================================================
Found a 33 line (197 tokens) duplication in the following files: 
Starting at line 1444 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/inputwin.cxx
Starting at line 694 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/navipi/content.cxx

		return;

	ScRangeName* pRangeNames = pDoc->GetRangeName();
	USHORT nCount = pRangeNames->GetCount();
	if ( nCount > 0 )
	{
		USHORT nValidCount = 0;
		ScRange aDummy;
		USHORT i;
		for ( i=0; i<nCount; i++ )
		{
			ScRangeData* pData = (*pRangeNames)[i];
			if (pData->IsValidReference(aDummy))
				nValidCount++;
		}
		if ( nValidCount )
		{
			ScRangeData** ppSortArray = new ScRangeData* [ nValidCount ];
			USHORT j;
			for ( i=0, j=0; i<nCount; i++ )
			{
				ScRangeData* pData = (*pRangeNames)[i];
				if (pData->IsValidReference(aDummy))
					ppSortArray[j++] = pData;
			}
#ifndef ICC
			qsort( (void*)ppSortArray, nValidCount, sizeof(ScRangeData*),
				&ScRangeData_QsortNameCompare );
#else
			qsort( (void*)ppSortArray, nValidCount, sizeof(ScRangeData*),
				ICCQsortNameCompare );
#endif
			for ( j=0; j<nValidCount; j++ )
=====================================================================
Found a 8 line (197 tokens) duplication in the following files: 
Starting at line 526 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* RegName */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* !"#$%&'()*+,-./*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, /*0123456789:;<=>?*/
=====================================================================
Found a 44 line (197 tokens) duplication in the following files: 
Starting at line 3005 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 3060 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

sal_Bool SAL_CALL OStorage::isStorageElement( const ::rtl::OUString& aElementName )
		throw ( embed::InvalidStorageException,
				lang::IllegalArgumentException,
				container::NoSuchElementException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( !aElementName.getLength() )
		throw lang::IllegalArgumentException();

	if ( m_pData->m_nStorageType == OFOPXML_STORAGE
	  && aElementName.equals( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "_rels" ) ) ) )
		throw lang::IllegalArgumentException();

	SotElement_Impl* pElement = NULL;
	
	try
	{
		pElement = m_pImpl->FindElement( aElementName );
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( container::NoSuchElementException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't detect whether it is a storage" ),
=====================================================================
Found a 25 line (197 tokens) duplication in the following files: 
Starting at line 2602 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 4764 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

void SAL_CALL OStorage::removeRelationshipByID(  const ::rtl::OUString& sID  )
		throw ( container::NoSuchElementException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	for ( sal_Int32 nInd1 = 0; nInd1 < aSeq.getLength(); nInd1++ )
		for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ )
			if ( aSeq[nInd1][nInd2].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Id" ) ) )
			{
				if ( aSeq[nInd1][nInd2].Second.equals( sID ) )
				{
					sal_Int32 nLength = aSeq.getLength();
					aSeq[nInd1] = aSeq[nLength-1];
					aSeq.realloc( nLength - 1 );

					m_pImpl->m_aRelInfo = aSeq;
=====================================================================
Found a 8 line (197 tokens) duplication in the following files: 
Starting at line 1497 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1506 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0,13,13,13,13,13,13,13,13,13,13,13,13,13,// fbd0 - fbdf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fbe0 - fbef
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fbf0 - fbff

    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd00 - fd0f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd10 - fd1f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd20 - fd2f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,10,10,// fd30 - fd3f
=====================================================================
Found a 9 line (197 tokens) duplication in the following files: 
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1215 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10b0 - 10bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10c0 - 10cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10d0 - 10df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10e0 - 10ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10f0 - 10ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1600 - 160f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1610 - 161f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1620 - 162f
=====================================================================
Found a 8 line (197 tokens) duplication in the following files: 
Starting at line 1058 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1497 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,// fb40 - fb4f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fb50 - fb5f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fb60 - fb6f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fb70 - fb7f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fb80 - fb8f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fb90 - fb9f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fba0 - fbaf
    13,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fbb0 - fbbf
=====================================================================
Found a 8 line (197 tokens) duplication in the following files: 
Starting at line 667 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 31b0 - 31bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31c0 - 31cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31d0 - 31df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31e0 - 31ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31f0 - 31ff

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3200 - 320f
    27,27,27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0,// 3210 - 321f
=====================================================================
Found a 7 line (197 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 717 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0,// 3120 - 312f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3130 - 313f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3140 - 314f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3150 - 315f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3160 - 316f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3170 - 317f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0,// 3180 - 318f
=====================================================================
Found a 8 line (197 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17,17, 0,// 0e40 - 0e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e50 - 0e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e60 - 0e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e70 - 0e7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e80 - 0e8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e90 - 0e9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ea0 - 0eaf
     0,17, 0, 0,17,17,17,17,17,17, 0,17,17, 0, 0, 0,// 0eb0 - 0ebf
=====================================================================
Found a 15 line (197 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxfentrd.cxx
Starting at line 786 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxfentrd.cxx

void DXF3DFaceEntity::EvaluateGroup(DXFGroupReader & rDGR)
{
	switch (rDGR.GetG()) {
		case 10: aP0.fx=rDGR.GetF(); break;
		case 20: aP0.fy=rDGR.GetF(); break;
		case 30: aP0.fz=rDGR.GetF(); break;
		case 11: aP1.fx=rDGR.GetF(); break;
		case 21: aP1.fy=rDGR.GetF(); break;
		case 31: aP1.fz=rDGR.GetF(); break;
		case 12: aP2.fx=rDGR.GetF(); break;
		case 22: aP2.fy=rDGR.GetF(); break;
		case 32: aP2.fz=rDGR.GetF(); break;
		case 13: aP3.fx=rDGR.GetF(); break;
		case 23: aP3.fy=rDGR.GetF(); break;
		case 33: aP3.fz=rDGR.GetF(); break;
=====================================================================
Found a 37 line (197 tokens) duplication in the following files: 
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontmenucontroller.cxx
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/objectmenucontroller.cxx

void SAL_CALL ObjectMenuController::select( const css::awt::MenuEvent& rEvent ) throw (RuntimeException)
{
    Reference< css::awt::XPopupMenu >   xPopupMenu;
    Reference< XDispatch >              xDispatch;
    Reference< XMultiServiceFactory >   xServiceManager;

    ResetableGuard aLock( m_aLock );
    xPopupMenu      = m_xPopupMenu;
    xDispatch       = m_xDispatch;
    xServiceManager = m_xServiceManager;
    aLock.unlock();

    if ( xPopupMenu.is() && xDispatch.is() )
    {
        VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( xPopupMenu );
        if ( pPopupMenu )
        {
            css::util::URL               aTargetURL;
	        Sequence<PropertyValue>	     aArgs;
            Reference< XURLTransformer > xURLTransformer( xServiceManager->createInstance(
                                                            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
                                                        UNO_QUERY );

            {
                vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
                PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();

                aTargetURL.Complete = pVCLPopupMenu->GetItemCommand( rEvent.MenuId );
            }

            xURLTransformer->parseStrict( aTargetURL );
            xDispatch->dispatch( aTargetURL, aArgs );
        }
    }
}

void SAL_CALL ObjectMenuController::activate( const css::awt::MenuEvent& ) throw (RuntimeException)
=====================================================================
Found a 39 line (197 tokens) duplication in the following files: 
Starting at line 958 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfileview.cxx
Starting at line 660 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/docvw/srcedtw.cxx

    DBG_ASSERT( pTextView, "Noch keine View, aber Syntax-Highlight ?!" );
	// pTextEngine->SetUpdateMode( FALSE );

	bHighlighting = TRUE;
	USHORT nLine;
	USHORT nCount  = 0;
	// zuerst wird der Bereich um dem Cursor bearbeitet
	TextSelection aSel = pTextView->GetSelection();
    USHORT nCur = (USHORT)aSel.GetStart().GetPara();
	if(nCur > 40)
		nCur -= 40;
	else
		nCur = 0;
	if(aSyntaxLineTable.Count())
		for(USHORT i = 0; i < 80 && nCount < 40; i++, nCur++)
		{
			void * p = aSyntaxLineTable.Get(nCur);
			if(p)
			{
				DoSyntaxHighlight( nCur );
				aSyntaxLineTable.Remove( nCur );
				nCount++;
                if(!aSyntaxLineTable.Count())
                    break;
                if((Time().GetTime() - aSyntaxCheckStart.GetTime()) > MAX_HIGHLIGHTTIME )
                {
                    pTimer->SetTimeout( 2 * SYNTAX_HIGHLIGHT_TIMEOUT );
                    break;
                }
            }
		}

	// wenn dann noch etwas frei ist, wird von Beginn an weitergearbeitet
	void* p = aSyntaxLineTable.First();
	while ( p && nCount < MAX_SYNTAX_HIGHLIGHT)
	{
		nLine = (USHORT)aSyntaxLineTable.GetCurKey();
		DoSyntaxHighlight( nLine );
		USHORT nCur = (USHORT)aSyntaxLineTable.GetCurKey();
=====================================================================
Found a 8 line (197 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17,17, 0,// 0e40 - 0e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e50 - 0e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e60 - 0e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e70 - 0e7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e80 - 0e8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e90 - 0e9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ea0 - 0eaf
     0,17, 0, 0,17,17,17,17,17,17, 0,17,17, 0, 0, 0,// 0eb0 - 0ebf
=====================================================================
Found a 41 line (197 tokens) duplication in the following files: 
Starting at line 30 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/qssl/runargv.c
Starting at line 36 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/win95/microsft/vpp40/runargv.c

typedef struct prp {
   char *prp_cmd;
   int   prp_group;
   int   prp_ignore;
   int   prp_last;
   int	 prp_shell;
   struct prp *prp_next;
} RCP, *RCPPTR;

typedef struct pr {
   int		pr_valid;
   int		pr_pid;
   CELLPTR	pr_target;
   int		pr_ignore;
   int		pr_last;
   RCPPTR  	pr_recipe;
   RCPPTR  	pr_recipe_end;
   char        *pr_dir;
} PR;

static PR  *_procs    = NIL(PR);
static int  _proc_cnt = 0;
static int  _abort_flg= FALSE;
static int  _use_i    = -1;
static int  _do_upd   = 0;

static  void	_add_child ANSI((int, CELLPTR, int, int));
static  void	_attach_cmd ANSI((char *, int, int, CELLPTR, int, int));
static  void    _finished_child ANSI((int, int));
static  int     _running ANSI((CELLPTR));

PUBLIC int
runargv(target, ignore, group, last, shell, cmd)
CELLPTR target;
int     ignore;
int	group;
int	last;
int     shell;
char	*cmd;
{
   extern  int  errno;
=====================================================================
Found a 11 line (197 tokens) duplication in the following files: 
Starting at line 677 of /local/ooo-build/ooo-build/src/oog680-m3/cosv/source/strings/streamstr.cxx
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/idl/source/cmptools/char.cxx

static unsigned char EqualTab[ 256 ] = {
  0,   1,   2,   3,   4,   5,   6,   7,   8,   9,
 10,  11,  12,  13,  14,  15,  16,  17,  18,  19,
 20,  21,  22,  23,  24,  25,  26,  27,  28,  29,
 30,  31,  32,  33,  34,  35,  36,  37,  38,  39,
 40,  41,  42,  43,  44,  45,  46,  47,  48,  49,
 50,  51,  52,  53,  54,  55,  56,  57,  58,  59,
 60,  61,  62,  63,  64,  65,  66,  67,  68,  69,
 70,  71,  72,  73,  74,  75,  76,  77,  78,  79,
 80,  81,  82,  83,  84,  85,  86,  87,  88,  89,
 90,  91,  92,  93,  94,  95,  96,  97,  98,  99,
=====================================================================
Found a 35 line (197 tokens) duplication in the following files: 
Starting at line 580 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 566 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

			(*_rRow)[i]->setNull();
		else
		{
			// Laengen je nach Datentyp:
			sal_Int32	nLen,
						nType = 0;
			if(bIsTable)
			{
				nLen	= m_aPrecisions[i];
				nType	= m_aTypes[i];
			}
			else
			{
				Reference< XPropertySet> xColumn = *aIter;
				xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION))	>>= nLen;
				xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))		>>= nType;
			}
			switch(nType)
			{
				case DataType::TIMESTAMP:
				case DataType::DATE:
				case DataType::TIME:
				{
					double nRes = 0.0;
					try
					{
						nRes = m_xNumberFormatter->convertStringToNumber(::com::sun::star::util::NumberFormat::ALL,aStr);
						Reference<XPropertySet> xProp(m_xNumberFormatter->getNumberFormatsSupplier()->getNumberFormatSettings(),UNO_QUERY);
						com::sun::star::util::Date aDate;
						xProp->getPropertyValue(::rtl::OUString::createFromAscii("NullDate")) >>= aDate;

						switch(nType)
						{
							case DataType::DATE:
								*(*_rRow)[i] = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDate(nRes,aDate));
=====================================================================
Found a 36 line (197 tokens) duplication in the following files: 
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/apinotifierimpl.cxx
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/apinotifierimpl.cxx

void implAddListener( NodeGroupInfoAccess& rNode, const uno::Reference< beans::XPropertyChangeListener >& xListener, const OUString& sPropertyName ) 
	throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
	using namespace css::beans;
	try
	{
		if (!genericAddChildListener(rNode,xListener,sPropertyName))
		{
			throw UnknownPropertyException(
					OUString(RTL_CONSTASCII_USTRINGPARAM("Configuration: cannot add listener - node not found !")),
					rNode.getUnoInstance() );
		}
	}
	catch (configuration::InvalidName& ex)
	{
		ExceptionMapper e(ex);
		throw UnknownPropertyException(
				OUString(RTL_CONSTASCII_USTRINGPARAM("Configuration: cannot add listener - node not found:")) += ex.message(),
				rNode.getUnoInstance() );
	}
	catch (configuration::WrappedUnoException& ex)
	{
		throw css::lang::WrappedTargetException(
				OUString(RTL_CONSTASCII_USTRINGPARAM("Configuration: adding a listener failed: ")) += ex.message(),
				rNode.getUnoInstance(), 
				ex.getAnyUnoException());
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );
		e.unhandled();
	}
}

void implRemoveListener( NodeGroupInfoAccess& rNode, const uno::Reference< beans::XPropertyChangeListener >& xListener, const OUString& sPropertyName ) 
=====================================================================
Found a 12 line (197 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/namecontainer.cxx
Starting at line 1192 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unoobj.cxx

	SdUnoEventsAccess( SdXShape* pShape ) throw();

    // XNameReplace
    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    
    // XNameAccess
    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);

    // XElementAccess
    virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 44 line (197 tokens) duplication in the following files: 
Starting at line 680 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx
Starting at line 476 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

    sal_Int32 functionCount, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription * >(
                        member)->pAttributeTypeRef));
            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(code, functionOffset++, vtableOffset, true);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription * >(
                        member)->pReturnTypeRef));
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}
=====================================================================
Found a 44 line (197 tokens) duplication in the following files: 
Starting at line 517 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

    sal_Int32 functionCount, sal_Int32 vTableOffset)
{
	for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vTableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
		    typelib_InterfaceAttributeTypeDescription * >(
		    member)->pAttributeTypeRef));
            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(code, functionOffset++, vTableOffset, true);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vTableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription * >(
                        member)->pReturnTypeRef));
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}
=====================================================================
Found a 50 line (197 tokens) duplication in the following files: 
Starting at line 481 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

    sal_Int32 functionCount, sal_Int32 vtableOffset)
{

  // fprintf(stderr, "in addLocalFunctions functionOffset is %x\n",functionOffset);
  // fprintf(stderr, "in addLocalFunctions vtableOffset is %x\n",vtableOffset);
  // fflush(stderr);

    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription * >(
                        member)->pAttributeTypeRef));

            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(code, functionOffset++, vtableOffset, true);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription * >(
                        member)->pReturnTypeRef));
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}
=====================================================================
Found a 18 line (196 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                fg[3] >>= image_filter_shift;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)fg[order_type::A];
                ++span;
                ++base_type::interpolator();

            } while(--len);

            return base_type::allocator().span();
        }
=====================================================================
Found a 34 line (196 tokens) duplication in the following files: 
Starting at line 394 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 923 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

                value_type* p = (value_type*)m_rbuf->span_ptr(x, y, len);
                calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8;
                if(alpha == base_mask)
                {
                    pixel_type v;
                    ((value_type*)&v)[order_type::R] = c.r;
                    ((value_type*)&v)[order_type::G] = c.g;
                    ((value_type*)&v)[order_type::B] = c.b;
                    ((value_type*)&v)[order_type::A] = c.a;
                    do
                    {
                        *(pixel_type*)p = v;
                        p += 4;
                    }
                    while(--len);
                }
                else
                {
                    do
                    {
                        blender_type::blend_pix(p, c.r, c.g, c.b, alpha, cover);
                        p += 4;
                    }
                    while(--len);
                }
            }
        }

        //--------------------------------------------------------------------
        void blend_vline(int x, int y, unsigned len, 
                         const color_type& c, int8u cover)
        {
            if (c.a)
            {
=====================================================================
Found a 28 line (196 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 511 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 597 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 685 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

		OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlDateFieldModel") ) );
	
	Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
	if (xStyle.is())
	{
		StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () );
		Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
		pStyle->importBackgroundColorStyle( xControlModel );
		pStyle->importTextColorStyle( xControlModel );
		pStyle->importTextLineColorStyle( xControlModel );
		pStyle->importBorderStyle( xControlModel );
		pStyle->importFontStyle( xControlModel );
	}
	
	ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
							   _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
							   _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("strict-format") ),
							   _xAttributes );
	ctx.importBooleanProperty(
        OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
        _xAttributes );
	ctx.importDateFormatProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DateFormat") ),
=====================================================================
Found a 31 line (196 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xline.cxx
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xline.cxx

		aP2.Y() += nDy;
		SegEnd.X() += nDx;
		SegEnd.Y() += nDy;

		// wenn das Ende ueberschritten wurde, hat das Vorzeichen
		// der Abstaende vom Endpunkt gewechselt; durch Xor-Verknuepfung
		// wird dieser Wechsel festgestellt
		long nEndDiffX = (SegEnd.X() - rEnd.X());
		long nEndDiffY = (SegEnd.Y() - rEnd.Y());

		if ( (nEndDiffX ^ (SegStart.X() - rEnd.X())) < 0 ||
			 (nEndDiffY ^ (SegStart.Y() - rEnd.Y())) < 0 ||
			 (!nEndDiffX && !nEndDiffY) )
		{
			if ( nDx || nDy )
			{
				if ( Abs(nDx) >= Abs(nDy) )
				{
					long nDiffX = SegEnd.X() - rEnd.X();
					rParam.nPatRemain = nPattern * nDiffX / nDx;
				}
				else
				{
					long nDiffY = SegEnd.Y() - rEnd.Y();
					rParam.nPatRemain = nPattern * nDiffY / nDy;
				}
			}
			else
				rParam.nPatRemain = 0;

			rParam.nPatSeg = nSeg;
=====================================================================
Found a 35 line (196 tokens) duplication in the following files: 
Starting at line 2204 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2657 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_ComboBox::WriteContents(SvStorageStreamRef &rContents,
	const uno::Reference< beans::XPropertySet > &rPropSet,
	const awt::Size &rSize)
{
	sal_Bool bRet=sal_True;
    sal_uInt32 nOldPos = rContents->Tell();
	rContents->SeekRel(12);

	pBlockFlags[0] = 0;
	pBlockFlags[1] = 0x01;
	pBlockFlags[2] = 0x00;
	pBlockFlags[3] = 0x80;
	pBlockFlags[4] = 0;
	pBlockFlags[5] = 0;
	pBlockFlags[6] = 0;
	pBlockFlags[7] = 0;


	sal_uInt8 nTemp=0x19;//fEnabled;
	uno::Any aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("Enabled"));
	fEnabled = any2bool(aTmp);
	if (fEnabled)
		nTemp |= 0x02;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("ReadOnly"));
	fLocked = any2bool(aTmp);
	if (fLocked)
		nTemp |= 0x04;

	*rContents << nTemp;
	pBlockFlags[0] |= 0x01;
	*rContents << sal_uInt8(0x48);
	*rContents << sal_uInt8(0x80);

    nTemp = 0x0C;
=====================================================================
Found a 44 line (196 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testregistry.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testsmgr.cxx

OString userRegEnv("STAR_USER_REGISTRY=");

OUString getExePath()
{
	OUString 		exe;

	OSL_VERIFY( osl_getExecutableFile( &exe.pData) == osl_Process_E_None);

#if defined(WIN32) || defined(__OS2__) || defined(WNT)
	exe = exe.copy(0, exe.getLength() - 16);
#else
	exe = exe.copy(0, exe.getLength() - 12);
#endif
	return exe;
}

void setStarUserRegistry()
{
	RegistryLoader* pLoader = new RegistryLoader();

	if (!pLoader->isLoaded())
	{
		delete pLoader;
		return;
	}

	Registry *myRegistry = new Registry(*pLoader);
	delete pLoader;

	RegistryKey rootKey, rKey, rKey2;

	OUString userReg = getExePath();
	userReg += OUString::createFromAscii("user.rdb");
	if(myRegistry->open(userReg, REG_READWRITE))
	{
		TEST_ENSHURE(!myRegistry->create(userReg), "setStarUserRegistry error 1");
	}

	TEST_ENSHURE(!myRegistry->close(), "setStarUserRegistry error 9");
	delete myRegistry;

	userRegEnv += OUStringToOString(userReg, RTL_TEXTENCODING_ASCII_US);
	putenv((char *)userRegEnv.getStr());
}
=====================================================================
Found a 34 line (196 tokens) duplication in the following files: 
Starting at line 4505 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 935 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin2.cxx

		if ( nDx != 0 ) pViewData->GetView()->ScrollX( nDx, WhichH(eWhich) );
		if ( nDy != 0 ) pViewData->GetView()->ScrollY( nDy, WhichV(eWhich) );
		bTimer = TRUE;
	}

	//	Umschalten bei Fixierung (damit Scrolling funktioniert)

	if ( eWhich == pViewData->GetActivePart() )		//??
	{
		if ( pViewData->GetHSplitMode() == SC_SPLIT_FIX )
			if ( nDx > 0 )
			{
				if ( eWhich == SC_SPLIT_TOPLEFT )
					pViewData->GetView()->ActivatePart( SC_SPLIT_TOPRIGHT );
				else if ( eWhich == SC_SPLIT_BOTTOMLEFT )
					pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT );
			}

		if ( pViewData->GetVSplitMode() == SC_SPLIT_FIX )
			if ( nDy > 0 )
			{
				if ( eWhich == SC_SPLIT_TOPLEFT )
					pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMLEFT );
				else if ( eWhich == SC_SPLIT_TOPRIGHT )
					pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT );
			}
	}

	//	ab hier neu

	//	gesucht wird eine Position zwischen den Zellen (vor nPosX / nPosY)
	SCsCOL nPosX;
	SCsROW nPosY;
	pViewData->GetPosFromPixel( aPos.X(), aPos.Y(), eWhich, nPosX, nPosY );
=====================================================================
Found a 51 line (196 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/smdetect.cxx

                        aTypeName = SfxFilter::GetTypeFromStorage( xStorage, pFilter ? pFilter->IsAllowedAsTemplate() : FALSE, &aTmpFilterName );
					}
					catch( lang::WrappedTargetException& aWrap )
					{
						packages::zip::ZipIOException aZipException;

						// repairing is done only if this type is requested from outside
						if ( ( aWrap.TargetException >>= aZipException ) && aTypeName.Len() )
						{
							if ( xInteraction.is() )
							{
								// the package is broken one
       							aDocumentTitle = aMedium.GetURLObject().getName(
															INetURLObject::LAST_SEGMENT,
															true,
															INetURLObject::DECODE_WITH_CHARSET );

								if ( !bRepairPackage )
								{
									// ask the user whether he wants to try to repair
            						RequestPackageReparation* pRequest = new RequestPackageReparation( aDocumentTitle );
            						uno::Reference< task::XInteractionRequest > xRequest ( pRequest );

            						xInteraction->handle( xRequest );

            						bRepairAllowed = pRequest->isApproved();
								}

								if ( !bRepairAllowed )
								{
									// repair either not allowed or not successful
	        						NotifyBrokenPackage* pNotifyRequest = new NotifyBrokenPackage( aDocumentTitle );
            						uno::Reference< task::XInteractionRequest > xRequest ( pNotifyRequest );
           							xInteraction->handle( xRequest );
								}
							}

							if ( !bRepairAllowed )
								aTypeName.Erase();
						}
					}
					catch( uno::RuntimeException& )
					{
						throw;
					}
					catch( uno::Exception& )
					{
						aTypeName.Erase();
					}

                   	if ( aTypeName.Len() )
=====================================================================
Found a 72 line (196 tokens) duplication in the following files: 
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertbig5hkscs.c
Starting at line 423 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertgb18030.c

        nHighSurrogate = 0;
        continue;

    bad_input:
        switch (ImplHandleBadInputUnicodeToTextConversion(bUndefined,
                                                          nChar,
                                                          nFlags,
                                                          &pDestBufPtr,
                                                          pDestBufEnd,
                                                          &nInfo,
                                                          NULL,
                                                          0,
                                                          NULL))
        {
        case IMPL_BAD_INPUT_STOP:
            nHighSurrogate = 0;
            break;

        case IMPL_BAD_INPUT_CONTINUE:
            nHighSurrogate = 0;
            continue;

        case IMPL_BAD_INPUT_NO_OUTPUT:
            goto no_output;
        }
        break;

    no_output:
        --pSrcBuf;
        nInfo |= RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL;
        break;
    }

    if (nHighSurrogate != 0
        && (nInfo & (RTL_UNICODETOTEXT_INFO_ERROR
                         | RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL))
               == 0)
    {
        if ((nFlags & RTL_UNICODETOTEXT_FLAGS_FLUSH) != 0)
            nInfo |= RTL_UNICODETOTEXT_INFO_SRCBUFFERTOSMALL;
        else
            switch (ImplHandleBadInputUnicodeToTextConversion(sal_False,
                                                              0,
                                                              nFlags,
                                                              &pDestBufPtr,
                                                              pDestBufEnd,
                                                              &nInfo,
                                                              NULL,
                                                              0,
                                                              NULL))
            {
            case IMPL_BAD_INPUT_STOP:
            case IMPL_BAD_INPUT_CONTINUE:
                nHighSurrogate = 0;
                break;

            case IMPL_BAD_INPUT_NO_OUTPUT:
                nInfo |= RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL;
                break;
            }
    }

    if (pContext)
        ((ImplUnicodeToTextContext *) pContext)->m_nHighSurrogate
            = nHighSurrogate;
    if (pInfo)
        *pInfo = nInfo;
    if (pSrcCvtChars)
        *pSrcCvtChars = nConverted;

    return pDestBufPtr - pDestBuf;
}
=====================================================================
Found a 14 line (196 tokens) duplication in the following files: 
Starting at line 902 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 935 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
                0x00A0,0x0E01,0x0E02,0x0E03,0x0E04,0x0E05,0x0E06,0x0E07,
                0x0E08,0x0E09,0x0E0A,0x0E0B,0x0E0C,0x0E0D,0x0E0E,0x0E0F,
                0x0E10,0x0E11,0x0E12,0x0E13,0x0E14,0x0E15,0x0E16,0x0E17,
                0x0E18,0x0E19,0x0E1A,0x0E1B,0x0E1C,0x0E1D,0x0E1E,0x0E1F,
                0x0E20,0x0E21,0x0E22,0x0E23,0x0E24,0x0E25,0x0E26,0x0E27,
                0x0E28,0x0E29,0x0E2A,0x0E2B,0x0E2C,0x0E2D,0x0E2E,0x0E2F,
                0x0E30,0x0E31,0x0E32,0x0E33,0x0E34,0x0E35,0x0E36,0x0E37,
                0x0E38,0x0E39,0x0E3A,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x0E3F,
                0x0E40,0x0E41,0x0E42,0x0E43,0x0E44,0x0E45,0x0E46,0x0E47,
                0x0E48,0x0E49,0x0E4A,0x0E4B,0x0E4C,0x0E4D,0x0E4E,0x0E4F,
                0x0E50,0x0E51,0x0E52,0x0E53,0x0E54,0x0E55,0x0E56,0x0E57,
                0x0E58,0x0E59,0x0E5A,0x0E5B,0xFFFF,0xFFFF,0xFFFF,0xFFFF } },
            { RTL_TEXTENCODING_MS_1255,
=====================================================================
Found a 14 line (196 tokens) duplication in the following files: 
Starting at line 535 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 734 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                0x0098,0x0099,0x009A,0x009B,0x009C,0x009D,0x009E,0x009F,
                0x00A0,0x00A1,0x00A2,0x00A3,0x00A4,0x00A5,0x00A6,0x00A7,
                0x00A8,0x00A9,0x00AA,0x00AB,0x00AC,0x00AD,0x00AE,0x00AF,
                0x00B0,0x00B1,0x00B2,0x00B3,0x00B4,0x00B5,0x00B6,0x00B7,
                0x00B8,0x00B9,0x00BA,0x00BB,0x00BC,0x00BD,0x00BE,0x00BF,
                0x00C0,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,
                0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
                0x00D0,0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,
                0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x00DD,0x00DE,0x00DF,
                0x00E0,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,
                0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
                0x00F0,0x00F1,0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x00F7,
                0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x00FD,0x00FE,0x00FF } },
            { RTL_TEXTENCODING_ISO_8859_2,
=====================================================================
Found a 27 line (196 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx
Starting at line 624 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx

		case (B3D_TXT_MODE_MOD|B3D_TXT_KIND_COL) :
		{
			fS = fS - floor(fS);
			fT = fT - floor(fT);
			long nX2, nY2;

			if(fS > 0.5) {
				nX2 = (nX + 1) % GetBitmapSize().Width();
				fS = 1.0 - fS;
			} else
				nX2 = nX ? nX - 1 : GetBitmapSize().Width() - 1;

			if(fT > 0.5) {
				nY2 = (nY + 1) % GetBitmapSize().Height();
				fT = 1.0 - fT;
			} else
				nY2 = nY ? nY - 1 : GetBitmapSize().Height() - 1;

			fS += 0.5;
			fT += 0.5;
			double fRight = 1.0 - fS;
			double fBottom = 1.0 - fT;

			BitmapColor aColTL = pReadAccess->GetColor(nY, nX);
			BitmapColor aColTR = pReadAccess->GetColor(nY, nX2);
			BitmapColor aColBL = pReadAccess->GetColor(nY2, nX);
			BitmapColor aColBR = pReadAccess->GetColor(nY2, nX2);
=====================================================================
Found a 34 line (196 tokens) duplication in the following files: 
Starting at line 1124 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1064 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

				{
					Polygon aPoly;

					switch( nType )
					{
						case( META_ARC_ACTION ):
						{
							const MetaArcAction* pA = (const MetaArcAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_ARC );
						}
						break;

						case( META_PIE_ACTION ):
						{
							const MetaPieAction* pA = (const MetaPieAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_PIE );
						}
						break;

						case( META_CHORD_ACTION	):
						{
							const MetaChordAction* pA = (const MetaChordAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_CHORD );
						}
						break;
						
						case( META_POLYGON_ACTION ):
							aPoly = ( (const MetaPolygonAction*) pAction )->GetPolygon();
						break;
					}

					if( aPoly.GetSize() )
					{
						mpContext->SetPaintAttr( mpVDev->GetLineColor(), mpVDev->GetFillColor() );
=====================================================================
Found a 46 line (196 tokens) duplication in the following files: 
Starting at line 2287 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 2482 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx

sal_Bool ExceptionType::dumpSuperMember(FileStream& o, const OString& superType, sal_Bool bWithType)
{
	sal_Bool hasMember = sal_False;

	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));
		
		if (aSuperReader.isValid())
		{
			hasMember = dumpSuperMember(o, aSuperReader.getSuperTypeName(), bWithType);

			sal_uInt32 		fieldCount = aSuperReader.getFieldCount();
			RTFieldAccess 	access = RT_ACCESS_INVALID;
			OString 		fieldName;
			OString 		fieldType;	
			for (sal_uInt16 i=0; i < fieldCount; i++)
			{
				access = aSuperReader.getFieldAccess(i);
				
				if (access == RT_ACCESS_CONST || access == RT_ACCESS_INVALID)
					continue;

				fieldName = aSuperReader.getFieldName(i);
				fieldType = aSuperReader.getFieldType(i);
						
				if (hasMember) 
				{
					o << ", ";
				} else
				{
					hasMember = (fieldCount > 0);
				}

				if (bWithType)
				{
					dumpUnoType(o, fieldType, sal_True, sal_True);	
					o << " ";
				}		
				o << "__" << fieldName;
			}
		}
	}
	
	return hasMember;
}	
=====================================================================
Found a 34 line (195 tokens) duplication in the following files: 
Starting at line 5261 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    lid = lidFE = 0x409;
}

bool WW8Fib::Write(SvStream& rStrm)
{
    BYTE *pDataPtr = new BYTE[ fcMin ];
    BYTE *pData = pDataPtr;
    memset( pData, 0, fcMin );

    bool bVer8 = 8 == nVersion;

    ULONG nPos = rStrm.Tell();
    cbMac = rStrm.Seek( STREAM_SEEK_TO_END );
    rStrm.Seek( nPos );

    Set_UInt16( pData, wIdent );
    Set_UInt16( pData, nFib );
    Set_UInt16( pData, nProduct );
    Set_UInt16( pData, lid );
    Set_UInt16( pData, pnNext );

    UINT16 nBits16 = 0;
    if( fDot )          nBits16 |= 0x0001;
    if( fGlsy)          nBits16 |= 0x0002;
    if( fComplex )      nBits16 |= 0x0004;
    if( fHasPic )       nBits16 |= 0x0008;
    nBits16 |= (0xf0 & ( cQuickSaves << 4 ));
    if( fEncrypted )    nBits16 |= 0x0100;
    if( fWhichTblStm )  nBits16 |= 0x0200;
    if( fExtChar )      nBits16 |= 0x1000;
    Set_UInt16( pData, nBits16 );

    Set_UInt16( pData, nFibBack );
    Set_UInt16( pData, nHash );
=====================================================================
Found a 38 line (195 tokens) duplication in the following files: 
Starting at line 1163 of /local/ooo-build/ooo-build/src/oog680-m3/svx/workben/msview/msview.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/workben/signaturetest.cxx

    uno::Reference< lang::XMultiServiceFactory > xMSF;
	try
	{
        uno::Reference< uno::XComponentContext > xCtx( cppu::defaultBootstrap_InitialComponentContext() );
        if ( !xCtx.is() )
        {
            DBG_ERROR( "Error creating initial component context!" );
            return -1;
        }

        xMSF = uno::Reference< lang::XMultiServiceFactory >(xCtx->getServiceManager(), uno::UNO_QUERY );

        if ( !xMSF.is() )
        {
            DBG_ERROR( "No service manager!" );
            return -1;
        }

        // Init USB
        uno::Sequence< uno::Any > aArgs( 2 );
        aArgs[ 0 ] <<= rtl::OUString::createFromAscii( UCB_CONFIGURATION_KEY1_LOCAL );
	    aArgs[ 1 ] <<= rtl::OUString::createFromAscii( UCB_CONFIGURATION_KEY2_OFFICE );
	    sal_Bool bSuccess = ::ucb::ContentBroker::initialize( xMSF, aArgs );
	    if ( !bSuccess )
	    {
		    DBG_ERROR( "Error creating UCB!" );
		    return -1;
	    }

	}
    catch ( uno::Exception const & )
	{
        DBG_ERROR( "Exception during creation of initial component context!" );
		return -1;
	}
	comphelper::setProcessServiceFactory( xMSF );

    InitVCL( xMSF );
=====================================================================
Found a 14 line (195 tokens) duplication in the following files: 
Starting at line 3721 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 3900 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

OCX_Frame::OCX_Frame( SotStorageRef& parent,
            const ::rtl::OUString& storageName,
            const ::rtl::OUString& sN,
            const uno::Reference< container::XNameContainer >  &rDialog, OCX_Control* pParent):
		OCX_ContainerControl(parent, storageName, sN, rDialog, pParent ),fUnknown1(0),fEnabled(1), fLocked(0),
		fBackStyle(1), fWordWrap(1), fAutoSize(0), nCaptionLen(0), nVertPos(1),
		nHorzPos(7), nMousePointer(0), nBorderColor(0x80000012),
		nKeepScrollBarsVisible(3), nCycle(0), nBorderStyle(0), nSpecialEffect(0),
		nPicture(0), nPictureAlignment(2), nPictureSizeMode(0),
		bPictureTiling(FALSE), nAccelerator(0), nIcon(0), pCaption(0),
		nScrollWidth(0), nScrollHeight(0), nIconLen(0), pIcon(0), nPictureLen(0),
		pPicture(0)
{
    msDialogType = C2U("com.sun.star.awt.UnoControlGroupBoxModel");
=====================================================================
Found a 34 line (195 tokens) duplication in the following files: 
Starting at line 1845 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2517 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

        pBlockFlags[2] |= 0x80;

    WriteAlign(rContents,4);
    *rContents << rSize.Width;
    *rContents << rSize.Height;

    nDefault += 0x30;
    *rContents << sal_uInt8(nDefault);
    *rContents << sal_uInt8(0x00);

    aCaption.WriteCharArray( *rContents );

    WriteAlign(rContents,4);
    nFixedAreaLen = static_cast<sal_uInt16>(rContents->Tell()-nOldPos-4);
    bRet = aFontData.Export(rContents,rPropSet);
    rContents->Seek(nOldPos);
    *rContents << nStandardId;
    *rContents << nFixedAreaLen;

    *rContents << pBlockFlags[0];
    *rContents << pBlockFlags[1];
    *rContents << pBlockFlags[2];
    *rContents << pBlockFlags[3];
    *rContents << pBlockFlags[4];
    *rContents << pBlockFlags[5];
    *rContents << pBlockFlags[6];
    *rContents << pBlockFlags[7];

    DBG_ASSERT((rContents.Is() &&
        (SVSTREAM_OK==rContents->GetError())),"damn");
    return bRet;
}

sal_Bool OCX_Label::Import(uno::Reference< beans::XPropertySet > &rPropSet)
=====================================================================
Found a 13 line (195 tokens) duplication in the following files: 
Starting at line 2516 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2239 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonReturnVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600,	21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 },	{ 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I },	{ 0xe MSO_I, 0x10 MSO_I },							// ppp
	{ 0xe MSO_I, 0x12 MSO_I }, { 0x14 MSO_I, 0x16 MSO_I }, { 0x18 MSO_I, 0x16 MSO_I },						// ccp
	{ 10800, 0x16 MSO_I },																					// p
=====================================================================
Found a 40 line (195 tokens) duplication in the following files: 
Starting at line 2441 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/dispatch.cxx
Starting at line 2560 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/dispatch.cxx

	for ( sal_uInt16 i=0 ; i < nTotCount; ++i )
	{
		SfxShell *pObjShell = GetShell(i);
		SfxInterface *pIFace = pObjShell->GetInterface();
		const SfxSlot *pSlot = pIFace->GetSlot(nSlot);
		if ( pSlot && pSlot->nDisableFlags && ( pSlot->nDisableFlags & pObjShell->GetDisableFlags() ) != 0 )
			return sal_False;

		if ( pSlot && !( pSlot->nFlags & SFX_SLOT_READONLYDOC ) && bReadOnly )
			return sal_False;

		if ( pSlot )
		{
			// Slot geh"ort zum Container?
			FASTBOOL bIsContainerSlot = pSlot->IsMode(SFX_SLOT_CONTAINER);
            FASTBOOL bIsInPlace = pImp->pFrame && pImp->pFrame->GetObjectShell()->IsInPlaceActive();

            // Shell geh"ort zum Server?
			// AppDispatcher oder IPFrame-Dispatcher
			FASTBOOL bIsServerShell = !pImp->pFrame || bIsInPlace;

			// Nat"urlich sind ServerShell-Slots auch ausf"uhrbar, wenn sie auf
			// einem Container-Dispatcher ohne IPClient ausgef"uhrt werden sollen.
			if ( !bIsServerShell )
			{
				SfxViewShell *pViewSh = pImp->pFrame->GetViewShell();
                bIsServerShell = !pViewSh || !pViewSh->GetUIActiveClient();
			}

			// Shell geh"ort zum Container?
			// AppDispatcher oder kein IPFrameDispatcher
			FASTBOOL bIsContainerShell = !pImp->pFrame || !bIsInPlace;

			// Shell und Slot passen zusammen
			if ( !( ( bIsContainerSlot && bIsContainerShell ) ||
					( !bIsContainerSlot && bIsServerShell ) ) )
				pSlot = 0;
		}

		if ( pSlot && !IsAllowed( nSlot ) )
=====================================================================
Found a 45 line (195 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/sal/systools/win32/uwinapi/MoveFileExA.cpp
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx

static BOOL MoveFileEx9x( LPCSTR lpExistingFileNameA, LPCSTR lpNewFileNameA, DWORD dwFlags )
{
	BOOL	fSuccess = FALSE;	// assume failure

	// Windows 9x has a special mechanism to move files after reboot

	if ( dwFlags & MOVEFILE_DELAY_UNTIL_REBOOT )
	{
		CHAR	szExistingFileNameA[MAX_PATH];
		CHAR	szNewFileNameA[MAX_PATH] = "NUL";

		// Path names in WININIT.INI must be in short path name form

		if ( 
			GetShortPathNameA( lpExistingFileNameA, szExistingFileNameA, MAX_PATH ) &&
			(!lpNewFileNameA || GetShortPathNameA( lpNewFileNameA, szNewFileNameA, MAX_PATH ))
			)
		{
			CHAR	szBuffer[32767];	// The buffer size must not exceed 32K
			DWORD	dwBufLen = GetPrivateProfileSectionA( RENAME_SECTION, szBuffer, elementsof(szBuffer), WININIT_FILENAME );

			CHAR	szRename[MAX_PATH];	// This is enough for at most to times 67 chracters
			strcpy( szRename, szNewFileNameA );
			strcat( szRename, "=" );
			strcat( szRename, szExistingFileNameA );
			size_t	lnRename = strlen(szRename);

			if ( dwBufLen + lnRename + 2 <= elementsof(szBuffer) )
			{
				CopyMemory( &szBuffer[dwBufLen], szRename, lnRename );
				szBuffer[dwBufLen + lnRename ] = 0;
				szBuffer[dwBufLen + lnRename + 1 ] = 0;

				fSuccess = WritePrivateProfileSectionA( RENAME_SECTION, szBuffer, WININIT_FILENAME );
			}
			else
				SetLastError( ERROR_BUFFER_OVERFLOW );
		}
	}
	else
	{

		fSuccess = MoveFileA( lpExistingFileNameA, lpNewFileNameA );

		if ( !fSuccess && GetLastError() != ERROR_ACCESS_DENIED &&
=====================================================================
Found a 14 line (195 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/parseAFM.cxx
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/parseAFM.cxx

    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false, // 191

    false, false, false, false, false, false, false, false, // 192 -
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false,
    false, false, false, false, false, false, false, false, // 255
=====================================================================
Found a 29 line (195 tokens) duplication in the following files: 
Starting at line 2464 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 4626 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

uno::Sequence< beans::StringPair > SAL_CALL OStorage::getRelationshipByID(  const ::rtl::OUString& sID  )
		throw ( container::NoSuchElementException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	// TODO/LATER: in future the unification of the ID could be checked
	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	for ( sal_Int32 nInd1 = 0; nInd1 < aSeq.getLength(); nInd1++ )
		for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ )
			if ( aSeq[nInd1][nInd2].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Id" ) ) )
			{
				if ( aSeq[nInd1][nInd2].Second.equals( sID ) )
					return aSeq[nInd1];
				break;
			}
	
	throw container::NoSuchElementException();
}

//-----------------------------------------------
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OStorage::getRelationshipsByType(  const ::rtl::OUString& sType  )
=====================================================================
Found a 26 line (195 tokens) duplication in the following files: 
Starting at line 967 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3817 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xbe, 0xbd },
{ 0x00, 0xbf, 0xaf },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x01, 0xf7, 0xd7 },
=====================================================================
Found a 7 line (195 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0, 0,10,10,// 3030 - 303f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3040 - 304f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3050 - 305f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3060 - 306f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3070 - 307f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3080 - 308f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
=====================================================================
Found a 6 line (195 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x1F78}, {0x6a, 0x1F79}, {0x6a, 0x1F7C}, {0x6a, 0x1F7D}, {0xec, 0x0137}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 1ff8 - 1fff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2100 - 2107
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2108 - 210f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2110 - 2117
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2118 - 211f
=====================================================================
Found a 32 line (195 tokens) duplication in the following files: 
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx

			aTree.integrate(aChanges, aNode, false);

			lock.clearForBroadcast();
			aSender.notifyListeners(aChanges, true); // if we use 'false' we don't need 'Deep' change objects
		}
	}
	catch (configuration::TypeMismatch& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.illegalArgument(2);
	}
	catch (configuration::ConstraintViolation& ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot set Property Value: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw PropertyVetoException( sMessage += e.message(), xContext );
	}
	catch (configuration::WrappedUnoException& ex)
	{
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot set Property Value: ") );
		throw WrappedTargetException( sMessage += ex.extractMessage(), xContext, ex.getAnyUnoException() );
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.unhandled();
	}
}
=====================================================================
Found a 39 line (195 tokens) duplication in the following files: 
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlgedfunc.cxx
Starting at line 640 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fudraw.cxx

							}
						}
						else
						{
							// move handle with index nHandleIndex
							if(pHdl && (nX || nY))
							{
								// now move the Handle (nX, nY)
								Point aStartPoint(pHdl->GetPos());
								Point aEndPoint(pHdl->GetPos() + Point(nX, nY));
								const SdrDragStat& rDragStat = pView->GetDragStat();

								// start dragging
								pView->BegDragObj(aStartPoint, 0, pHdl, 0);

								if(pView->IsDragObj())
								{
									FASTBOOL bWasNoSnap = rDragStat.IsNoSnap();
									BOOL bWasSnapEnabled = pView->IsSnapEnabled();

									// switch snapping off
									if(!bWasNoSnap)
										((SdrDragStat&)rDragStat).SetNoSnap(TRUE);
									if(bWasSnapEnabled)
										pView->SetSnapEnabled(FALSE);

									pView->MovAction(aEndPoint);
									pView->EndDragObj();

									// restore snap
									if(!bWasNoSnap)
										((SdrDragStat&)rDragStat).SetNoSnap(bWasNoSnap);
									if(bWasSnapEnabled)
										pView->SetSnapEnabled(bWasSnapEnabled);
								}

								// make moved handle visible
								Rectangle aVisRect(aEndPoint - Point(100, 100), Size(200, 200));
								pView->MakeVisible(aVisRect, *pWindow);
=====================================================================
Found a 40 line (194 tokens) duplication in the following files: 
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h

                intr.local_scale(&rx, &ry);

                rx = (rx * base_type::m_blur_x) >> image_subpixel_shift;
                ry = (ry * base_type::m_blur_y) >> image_subpixel_shift;

                if(rx < image_subpixel_size)
                {
                    rx = image_subpixel_size;
                }
                else
                {
                    if(rx > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        rx = image_subpixel_size * base_type::m_scale_limit;
                    }
                    rx_inv = image_subpixel_size * image_subpixel_size / rx;
                }

                if(ry < image_subpixel_size)
                {
                    ry = image_subpixel_size;
                }
                else
                {
                    if(ry > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        ry = image_subpixel_size * base_type::m_scale_limit;
                    }
                    ry_inv = image_subpixel_size * image_subpixel_size / ry;
                }

                int radius_x = (diameter * rx) >> 1;
                int radius_y = (diameter * ry) >> 1;
                int maxx = base_type::source_image().width() - 1;
                int maxy = base_type::source_image().height() - 1;

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg = image_filter_size / 2;
=====================================================================
Found a 39 line (194 tokens) duplication in the following files: 
Starting at line 955 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx
Starting at line 1599 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx

	}

	if( nFeatures & SEF_EXPORT_X )
	{
		// svg: x1
		mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aStart.X);
		aStr = sStringBuffer.makeStringAndClear();
		mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_X1, aStr);
	}
	else
	{
		aEnd.X -= aStart.X;
	}

	if( nFeatures & SEF_EXPORT_Y )
	{
		// svg: y1
		mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aStart.Y);
		aStr = sStringBuffer.makeStringAndClear();
		mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_Y1, aStr);
	}
	else
	{
		aEnd.Y -= aStart.Y;
	}

	// svg: x2
	mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aEnd.X);
	aStr = sStringBuffer.makeStringAndClear();
	mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_X2, aStr);

	// svg: y2
	mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aEnd.Y);
	aStr = sStringBuffer.makeStringAndClear();
	mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_Y2, aStr);

	// write measure shape
	sal_Bool bCreateNewline( (nFeatures & SEF_EXPORT_NO_WS) == 0 ); // #86116#/#92210#
	SvXMLElementExport aOBJ(mrExport, XML_NAMESPACE_DRAW, XML_MEASURE, bCreateNewline, sal_True);
=====================================================================
Found a 41 line (194 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

        static const beans::Property aStreamPropertyInfoTable[] =
		{
			///////////////////////////////////////////////////////////////
			// Required properties
			///////////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
				-1,
				getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
				-1,
				getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
			),
			///////////////////////////////////////////////////////////////
			// Optional standard properties
			///////////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "MediaType" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
			),
=====================================================================
Found a 30 line (194 tokens) duplication in the following files: 
Starting at line 421 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edlingu.cxx
Starting at line 1394 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edlingu.cxx

                    xSpeller, 0, 0 ) >>= xSpellRet;
        bGoOn = GetCrsrCnt() > 1;
        if( xSpellRet.is() )
        {
            bGoOn = sal_False;
            SwPosition* pNewPoint = new SwPosition( *pCrsr->GetPoint() );
            SwPosition* pNewMark = new SwPosition( *pCrsr->GetMark() );

            SetCurr( pNewPoint );
            SetCurrX( pNewMark );
        }
        if( bGoOn )
        {
            pSh->Pop( sal_False );
            pCrsr = pSh->GetCrsr();
            if ( *pCrsr->GetPoint() > *pCrsr->GetMark() )
                pCrsr->Exchange();
            SwPosition* pNew = new SwPosition( *pCrsr->GetPoint() );
            SetStart( pNew );
            pNew = new SwPosition( *pCrsr->GetMark() );
            SetEnd( pNew );
            pNew = new SwPosition( *GetStart() );
            SetCurr( pNew );
            pNew = new SwPosition( *pNew );
            SetCurrX( pNew );
            pCrsr->SetMark();
            --GetCrsrCnt();
        }
    }
    while ( bGoOn );
=====================================================================
Found a 31 line (194 tokens) duplication in the following files: 
Starting at line 959 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docedt.cxx
Starting at line 1053 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docedt.cxx

	sal_uInt16 nNewAttrCnt = pNode->GetpSwpHints()
								? pNode->GetpSwpHints()->Count() : 0;
	if( nOldAttrCnt != nNewAttrCnt )
	{
		SwUpdateAttr aHint( 0, 0, 0 );
		SwClientIter aIter( *pNode );
		SwClient* pGTO = aIter.First(TYPE( SwCrsrShell ));
		while( pGTO )
		{
			pGTO->Modify( 0, &aHint );
			pGTO = aIter.Next();
		}
	}

	if( !DoesUndo() && !IsIgnoreRedline() && GetRedlineTbl().Count() )
	{
		SwPaM aPam( rPt.nNode, nStart, rPt.nNode, rPt.nContent.GetIndex() );
		DeleteRedline( aPam, true, USHRT_MAX );
	}
	else if( IsRedlineOn() )
	{
		SwPaM aPam( rPt.nNode, nStart, rPt.nNode, rPt.nContent.GetIndex() );
		AppendRedline( new SwRedline( IDocumentRedlineAccess::REDLINE_INSERT, aPam ), true);
	}

	SetModified();
	return sal_True;
}


bool SwDoc::MoveAndJoin( SwPaM& rPaM, SwPosition& rPos, SwMoveFlags eMvFlags )
=====================================================================
Found a 33 line (194 tokens) duplication in the following files: 
Starting at line 2019 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2204 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_FieldControl::WriteContents(SvStorageStreamRef &rContents,
	const uno::Reference< beans::XPropertySet > &rPropSet,
	const awt::Size &rSize)
{
	sal_Bool bRet=sal_True;
    sal_uInt32 nOldPos = rContents->Tell();
	rContents->SeekRel(12);

	pBlockFlags[0] = 0;
	pBlockFlags[1] = 0x01;
	pBlockFlags[2] = 0x00;
	pBlockFlags[3] = 0x80;
	pBlockFlags[4] = 0;
	pBlockFlags[5] = 0;
	pBlockFlags[6] = 0;
	pBlockFlags[7] = 0;


	sal_uInt8 nTemp=0x19;
	uno::Any aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("Enabled"));
	fEnabled = any2bool(aTmp);
	if (fEnabled)
		nTemp |= 0x02;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("ReadOnly"));
	fLocked = any2bool(aTmp);
	if (fLocked)
		nTemp |= 0x04;

	*rContents << nTemp;
	pBlockFlags[0] |= 0x01;
	*rContents << sal_uInt8(0x48);
	*rContents << sal_uInt8(0x80);
=====================================================================
Found a 35 line (194 tokens) duplication in the following files: 
Starting at line 1640 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 3309 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx

			sEntry.Append( UniString::CreateFromInt32( pSaveNum->GetLevelCount() ) );
			aLevelLB.InsertEntry(sEntry);
			aLevelLB.SelectEntry(sEntry);
		}
		else
			aLevelLB.SelectEntryPos(0);
	}
	else
		aLevelLB.SelectEntryPos(aLevelLB.GetEntryCount() - 1);
//	nActNumLvl =
//		pOutlineDlg ? pOutlineDlg->GetActNumLevel() : 0;
//		((SwNumBulletTabDialog*)GetTabDialog())->GetActNumLevel();
	USHORT nMask = 1;
	aLevelLB.SetUpdateMode(FALSE);
	aLevelLB.SetNoSelection();
	if(nActNumLvl == USHRT_MAX)
	{
		aLevelLB.SelectEntryPos( pSaveNum->GetLevelCount(), TRUE);
	}
	else
		for(USHORT i = 0; i < pSaveNum->GetLevelCount(); i++)
		{
			if(nActNumLvl & nMask)
				aLevelLB.SelectEntryPos( i, TRUE);
			nMask <<= 1;
		}
	aLevelLB.SetUpdateMode(TRUE);

	if(SFX_ITEM_SET == rSet.GetItemState(SID_PARAM_CHILD_LEVELS, FALSE, &pItem))
		bHasChild = ((const SfxBoolItem*)pItem)->GetValue();
	if(!pActNum)
		pActNum = new  SvxNumRule(*pSaveNum);
	else if(*pSaveNum != *pActNum)
		*pActNum = *pSaveNum;
	pPreviewWIN->SetNumRule(pActNum);
=====================================================================
Found a 31 line (194 tokens) duplication in the following files: 
Starting at line 5011 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 5067 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx

    if ( aPixelRects.size() && pViewData->IsActive() )
    {
        sdr::overlay::OverlayObjectCell::RangeVector aRanges;

        std::vector<Rectangle>::const_iterator aPixelEnd( aPixelRects.end() );
        for ( std::vector<Rectangle>::const_iterator aPixelIter( aPixelRects.begin() );
              aPixelIter != aPixelEnd; ++aPixelIter )
        {
            Rectangle aLogic( PixelToLogic( *aPixelIter, aDrawMode ) );

            const basegfx::B2DPoint aTopLeft(aLogic.Left(), aLogic.Top());
            const basegfx::B2DPoint aBottomRight(aLogic.Right(), aLogic.Bottom());
            const basegfx::B2DRange a2DRange(aTopLeft, aBottomRight);

            aRanges.push_back( a2DRange );
        }

		// #i70788# get the OverlayManager safely
		::sdr::overlay::OverlayManager* pOverlayManager = getOverlayManager();

		if(pOverlayManager)
		{
			ScOverlayType eType = SC_OVERLAY_INVERT;
//		          ScOverlayType eType = SC_OVERLAY_HATCH;
//			      ScOverlayType eType = SC_OVERLAY_LIGHT_TRANSPARENT;

			Color aHighlight = GetSettings().GetStyleSettings().GetHighlightColor();
            sdr::overlay::OverlayObjectCell* pOverlay =
	            new sdr::overlay::OverlayObjectCell( eType, aHighlight, aRanges );

            pOverlayManager->add(*pOverlay);
=====================================================================
Found a 34 line (194 tokens) duplication in the following files: 
Starting at line 724 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/drawsh5.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/drtxtob2.cxx

	ScDrawView* 		pDrView 	= pTabView->GetScDrawView();
	const SdrMarkList&	rMarkList	= pDrView->GetMarkedObjectList();

	if ( rMarkList.GetMarkCount() == 1 && rReq.GetArgs() )
	{
		const SfxItemSet& rSet = *rReq.GetArgs();
		const SfxPoolItem* pItem;

		if ( pDrView->IsTextEdit() )
			pDrView->ScEndTextEdit();

		if (	SFX_ITEM_SET ==
				rSet.GetItemState(XATTR_FORMTXTSTDFORM, TRUE, &pItem)
			 && XFTFORM_NONE !=
				((const XFormTextStdFormItem*) pItem)->GetValue() )
		{

			USHORT nId				= SvxFontWorkChildWindow::GetChildWindowId();
			SfxViewFrame* pViewFrm	= pViewData->GetViewShell()->GetViewFrame();
			SvxFontWorkDialog* pDlg	= (SvxFontWorkDialog*)
									   (pViewFrm->
											GetChildWindow(nId)->GetWindow());

			pDlg->CreateStdFormObj(*pDrView, *pDrView->GetSdrPageView(),
									rSet, *rMarkList.GetMark(0)->GetMarkedSdrObj(),
								   ((const XFormTextStdFormItem*) pItem)->
								   GetValue());
		}
		else
			pDrView->SetAttributes(rSet);
	}
}

void ScDrawTextObjectBar::GetFormTextState(SfxItemSet& rSet)
=====================================================================
Found a 31 line (194 tokens) duplication in the following files: 
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/chartarr.cxx
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/chartarr.cxx

		{
			for ( nRow = 0; nRow < nRowCount; nRow++, nIndex++ )
			{
				double nVal = DBL_MIN;		// Hack fuer Chart, um leere Zellen zu erkennen
				const ScAddress* pPos = GetPositionMap()->GetPosition( nIndex );
				if ( pPos )
				{	// sonst: Luecke
					ScBaseCell* pCell = pDocument->GetCell( *pPos );
					if (pCell)
					{
						CellType eType = pCell->GetCellType();
						if (eType == CELLTYPE_VALUE)
						{
							nVal = ((ScValueCell*)pCell)->GetValue();
							if ( bCalcAsShown && nVal != 0.0 )
							{
								ULONG nFormat = pDocument->GetNumberFormat( *pPos );
								nVal = pDocument->RoundValueAsShown( nVal, nFormat );
							}
						}
						else if (eType == CELLTYPE_FORMULA)
						{
							ScFormulaCell* pFCell = (ScFormulaCell*)pCell;
							if ( (pFCell->GetErrCode() == 0) && pFCell->IsValue() )
								nVal = pFCell->GetValue();
						}
					}
				}
				pMemChart->SetData(static_cast<short>(nCol), static_cast<short>(nRow), nVal);
			}
		}
=====================================================================
Found a 53 line (194 tokens) duplication in the following files: 
Starting at line 2079 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 754 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("123.45.67.89"), IP_PORT_NETBIOS );
			::osl::SocketAddr saLocalSocketAddr;
			
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1); // sal_True);
			sal_Bool bOK1 = sSocket.bind( saBindSocketAddr );
			sal_Bool bOK2 = compareUString( sSocket.getLocalHost( ), getThisHostname( ) ) ;
	
			CPPUNIT_ASSERT_MESSAGE( "test for bind function: bind a valid address.", 
									( sal_False == bOK1 ) && ( sal_False == bOK2 ) );
		}
				
		CPPUNIT_TEST_SUITE( bind );
		CPPUNIT_TEST( bind_001 );
		CPPUNIT_TEST( bind_002 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class bind


	/** testing the methods:
		inline sal_Bool	SAL_CALL isRecvReady(const TimeValue *pTimeout = 0) const;
		
	*/
	class isRecvReady : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		TimeValue *pTimeout;
		::osl::AcceptorSocket asAcceptorSocket;
		::osl::ConnectorSocket csConnectorSocket;
		
		
		// initialization
		void setUp( )
		{
			pTimeout  = ( TimeValue* )malloc( sizeof( TimeValue ) );
			pTimeout->Seconds = 3;
			pTimeout->Nanosec = 0;
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			free( pTimeout );
			sHandle = NULL;
			asAcceptorSocket.close( );
			csConnectorSocket.close( );
		}

	
		void isRecvReady_001()
		{
			::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT1 );
=====================================================================
Found a 32 line (194 tokens) duplication in the following files: 
Starting at line 2969 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 2125 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

	OSL_ENSURE( !m_pData->m_bReadOnlyWrap, "The storage can not be modified at all!\n" );

   	lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );

   	::cppu::OInterfaceContainerHelper* pContainer =
			m_pData->m_aListenersContainer.getContainer(
				::getCppuType( ( const uno::Reference< embed::XTransactionListener >*) NULL ) );
   	if ( pContainer )
	{
       	::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
       	while ( pIterator.hasMoreElements( ) )
       	{
			OSL_ENSURE( nMessage >= 1 && nMessage <= 4, "Wrong internal notification code is used!\n" );

			switch( nMessage )
			{
				case STOR_MESS_PRECOMMIT:
           			( ( embed::XTransactionListener* )pIterator.next( ) )->preCommit( aSource );
					break;
				case STOR_MESS_COMMITED:
           			( ( embed::XTransactionListener* )pIterator.next( ) )->commited( aSource );
					break;
				case STOR_MESS_PREREVERT:
           			( ( embed::XTransactionListener* )pIterator.next( ) )->preRevert( aSource );
					break;
				case STOR_MESS_REVERTED:
           			( ( embed::XTransactionListener* )pIterator.next( ) )->reverted( aSource );
					break;
			}
       	}
	}
}
=====================================================================
Found a 25 line (194 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/cpp.h
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/cpp.h

void tokenrow_zeroTokenIdentifiers(Tokenrow* trp);

void expandlex(void);
void fixlex(void);
void setup(int, char **);
int gettokens(Tokenrow *, int);
int comparetokens(Tokenrow *, Tokenrow *);
Source *setsource(char *, int, int, char *, int);
void unsetsource(void);
void puttokens(Tokenrow *);
void process(Tokenrow *);
void *domalloc(int);
void dofree(void *);
void error(enum errtype, char *,...);
void flushout(void);
int fillbuf(Source *);
int trigraph(Source *);
int foldline(Source *);
Nlist *lookup(Token *, int);
void control(Tokenrow *);
void dodefine(Tokenrow *);
void doadefine(Tokenrow *, int);
void doinclude(Tokenrow *, int, int);
void doif(Tokenrow *, enum kwtype);
void expand(Tokenrow *, Nlist *, MacroValidatorList *);
=====================================================================
Found a 53 line (194 tokens) duplication in the following files: 
Starting at line 2597 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eps/eps.cxx
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/etiff/etiff.cxx

	TIFFLZWCTreeNode*	 p;
	USHORT				i;
	BYTE				nV;

	if( !pPrefix )
	{
		pPrefix = pTable + nCompThis;
	}
	else
	{
		nV = nCompThis;
		for( p = pPrefix->pFirstChild; p != NULL; p = p->pBrother )
		{
			if ( p->nValue == nV )
				break;
		}

		if( p )
			pPrefix = p;
		else
		{
			WriteBits( pPrefix->nCode, nCodeSize );

			if ( nTableSize == 409 )
			{
				WriteBits( nClearCode, nCodeSize );

				for ( i = 0; i < nClearCode; i++ )
					pTable[ i ].pFirstChild = NULL;

				nCodeSize = nDataSize + 1;
				nTableSize = nEOICode + 1;
			}
			else
			{
				if( nTableSize == (USHORT)( ( 1 << nCodeSize ) - 1 ) )
					nCodeSize++;

				p = pTable + ( nTableSize++ );
				p->pBrother = pPrefix->pFirstChild;
				pPrefix->pFirstChild = p;
				p->nValue = nV;
				p->pFirstChild = NULL;
			}

			pPrefix = pTable + nV;
		}
	}
}

// ------------------------------------------------------------------------

void TIFFWriter::EndCompression()
=====================================================================
Found a 18 line (194 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/dlgeos2.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/dlgepct.cxx

				ModalDialog			( rPara.pWindow, ResId( DLG_EXPORT_EPCT, *rPara.pResMgr ) ),
				rFltCallPara		( rPara ),
				aBtnOK				( this, ResId( BTN_OK, *rPara.pResMgr ) ),
				aBtnCancel			( this, ResId( BTN_CANCEL, *rPara.pResMgr ) ),
				aBtnHelp			( this, ResId( BTN_HELP, *rPara.pResMgr ) ),
				aRbOriginal			( this, ResId( RB_ORIGINAL, *rPara.pResMgr ) ),
				aRbSize				( this, ResId( RB_SIZE, *rPara.pResMgr ) ),
				aGrpMode			( this, ResId( GRP_MODE, *rPara.pResMgr ) ),
				aFtSizeX			( this, ResId( FT_SIZEX, *rPara.pResMgr ) ),
				aMtfSizeX			( this, ResId( MTF_SIZEX, *rPara.pResMgr ) ),
				aFtSizeY			( this, ResId( FT_SIZEY, *rPara.pResMgr ) ),
				aMtfSizeY			( this, ResId( MTF_SIZEY, *rPara.pResMgr ) ),
				aGrpSize			( this, ResId( GRP_SIZE, *rPara.pResMgr ) ),
				pMgr				( rPara.pResMgr )
{
	FreeResource();

	String	aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/PCT" ) );
=====================================================================
Found a 40 line (194 tokens) duplication in the following files: 
Starting at line 713 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 788 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

	m_xWriteDocumentHandler( rDocumentHandler )
{
	m_xEmptyList = Reference< XAttributeList >( (XAttributeList *)new AttributeListImpl, UNO_QUERY );
	m_aAttributeType = 	OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_TYPE_CDATA ));
}


OWriteMenuDocumentHandler::~OWriteMenuDocumentHandler()
{
}


void OWriteMenuDocumentHandler::WriteMenuDocument()
throw ( SAXException, RuntimeException )
{
	AttributeListImpl* pList = new AttributeListImpl;
	Reference< XAttributeList > rList( (XAttributeList *) pList , UNO_QUERY );

	m_xWriteDocumentHandler->startDocument();

	// write DOCTYPE line!
	Reference< XExtendedDocumentHandler > xExtendedDocHandler( m_xWriteDocumentHandler, UNO_QUERY );
	if ( xExtendedDocHandler.is() )
	{
		xExtendedDocHandler->unknown( OUString( RTL_CONSTASCII_USTRINGPARAM( MENUBAR_DOCTYPE )) );
		m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	}

	pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_XMLNS_MENU )),
						 m_aAttributeType,
						 OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_MENU )) );

	pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_NS_ID )),
						 m_aAttributeType,
						 OUString( RTL_CONSTASCII_USTRINGPARAM( "menubar" )) );

	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_MENUBAR )), pList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );

	WriteMenu( m_xMenuBarContainer );
=====================================================================
Found a 39 line (194 tokens) duplication in the following files: 
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilterdetect/filterdetect.cxx
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx

                sTypeName = OUString::createFromAscii("devguide_FlatXMLType_Cpp_impress");                 
        }
    }
    return sTypeName;
}


// XInitialization
void SAL_CALL FilterDetect::initialize( const Sequence< Any >& aArguments ) 
	throw (Exception, RuntimeException)
{
	Sequence < PropertyValue > aAnySeq;
	sal_Int32 nLength = aArguments.getLength();
	if ( nLength && ( aArguments[0] >>= aAnySeq ) )
	{
		const PropertyValue * pValue = aAnySeq.getConstArray();
		nLength = aAnySeq.getLength();
		for ( sal_Int32 i = 0 ; i < nLength; i++)
		{		  
			if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "Type" ) ) )
			{
                pValue[i].Value >>= msFilterName;     
			}
			else if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "UserData" ) ) )
			{
				pValue[i].Value >>= msUserData;
			}
			else if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "TemplateName" ) ) )
			{
                pValue[i].Value>>=msTemplateName;
			}
		}
	}
}

OUString FilterDetect_getImplementationName ()
	throw (RuntimeException)
{
	return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "devguide.officedev.samples.filter.FlatXmlDetect" ) );
=====================================================================
Found a 36 line (194 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 972 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< sal_Int64 >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", (a >>= b) && b == 1);
=====================================================================
Found a 27 line (194 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HTables.cxx
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YTables.cxx

	Reference< XConnection > xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection();
	::rtl::OUString aSql = ::dbtools::createSqlCreateTableStatement(descriptor,xConnection);

    Reference< XStatement > xStmt = xConnection->createStatement(  );
	if ( xStmt.is() )
	{
		xStmt->execute(aSql);
		::comphelper::disposeComponent(xStmt);
	}
}
// -----------------------------------------------------------------------------
void OTables::appendNew(const ::rtl::OUString& _rsNewTable)
{
	insertElement(_rsNewTable,NULL);

	// notify our container listeners
	ContainerEvent aEvent(static_cast<XContainer*>(this), makeAny(_rsNewTable), Any(), Any());
	OInterfaceIteratorHelper aListenerLoop(m_aContainerListeners);
	while (aListenerLoop.hasMoreElements())
		static_cast<XContainerListener*>(aListenerLoop.next())->elementInserted(aEvent);
}
// -----------------------------------------------------------------------------
::rtl::OUString OTables::getNameForObject(const sdbcx::ObjectType& _xObject)
{
    OSL_ENSURE(_xObject.is(),"OTables::getNameForObject: Object is NULL!");
	return ::dbtools::composeTableName( m_xMetaData, _xObject, ::dbtools::eInDataManipulation, false, false, false );
}
=====================================================================
Found a 49 line (194 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx

	m_pConnection(_pConnection)
{
	m_pConnection->acquire();
}
// -----------------------------------------------------------------------------
OStatement_Base::~OStatement_Base()
{
}
//------------------------------------------------------------------------------
void OStatement_Base::disposeResultSet()
{
	// free the cursor if alive
	Reference< XComponent > xComp(m_xResultSet.get(), UNO_QUERY);
	if (xComp.is())
		xComp->dispose();
	m_xResultSet = Reference< XResultSet>();
}
//------------------------------------------------------------------------------
void OStatement_BASE2::disposing()
{
	::osl::MutexGuard aGuard(m_aMutex);

	disposeResultSet();

	if (m_pConnection)
		m_pConnection->release();
	m_pConnection = NULL;

	dispose_ChildImpl();
	OStatement_Base::disposing();
}
//-----------------------------------------------------------------------------
void SAL_CALL OStatement_BASE2::release() throw()
{
	relase_ChildImpl();
}
//-----------------------------------------------------------------------------
Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(RuntimeException)
{
	Any aRet = OStatement_BASE::queryInterface(rType);
	if(!aRet.hasValue())
		aRet = OPropertySetHelper::queryInterface(rType);
	return aRet;
}
// -------------------------------------------------------------------------
Sequence< Type > SAL_CALL OStatement_Base::getTypes(  ) throw(RuntimeException)
{
	::cppu::OTypeCollection aTypes(
        ::cppu::UnoType< Reference< XMultiPropertySet > >::get(),
=====================================================================
Found a 37 line (194 tokens) duplication in the following files: 
Starting at line 741 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
Starting at line 783 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx

	return ::rtl::OUString();
}

// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper* ODatabaseMetaDataResultSet::createArrayHelper( ) const
{

	Sequence< com::sun::star::beans::Property > aProps(5);
	com::sun::star::beans::Property* pProperties = aProps.getArray();
	sal_Int32 nPos = 0;
	DECL_PROP0(CURSORNAME,			::rtl::OUString);
	DECL_PROP0(FETCHDIRECTION,		sal_Int32);
	DECL_PROP0(FETCHSIZE,			sal_Int32);
	DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
	DECL_PROP0(RESULTSETTYPE,		sal_Int32);

	return new ::cppu::OPropertyArrayHelper(aProps);
}
// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper & ODatabaseMetaDataResultSet::getInfoHelper()
{
	return *const_cast<ODatabaseMetaDataResultSet*>(this)->getArrayHelper();
}
// -------------------------------------------------------------------------
sal_Bool ODatabaseMetaDataResultSet::convertFastPropertyValue(
							Any & rConvertedValue,
							Any & rOldValue,
							sal_Int32 nHandle,
							const Any& rValue )
								throw (::com::sun::star::lang::IllegalArgumentException)
{
	switch(nHandle)
	{
		case PROPERTY_ID_CURSORNAME:
		case PROPERTY_ID_RESULTSETCONCURRENCY:
		case PROPERTY_ID_RESULTSETTYPE:
			throw ::com::sun::star::lang::IllegalArgumentException();
=====================================================================
Found a 48 line (194 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 2749 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

		m_cunoTypeDynamic = sal_True;

	OString outPath;
	if (pOptions->isValid("-O"))
		outPath = pOptions->getOption("-O");

	OString tmpFileName;
	OString hFileName = createFileNameFromType(outPath, m_typeName, ".h");

	sal_Bool bFileExists = sal_False;
	sal_Bool bFileCheck = sal_False;

	if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
	{
		bFileExists = fileExists( hFileName );
		ret = sal_True;
	}

	if ( bFileExists && pOptions->isValid("-Gc") )
	{
		tmpFileName	 = createFileNameFromType(outPath, m_typeName, ".tmh");
		bFileCheck = sal_True;
	}

	if ( !bFileExists || bFileCheck )
	{
		FileStream hFile;

		if ( bFileCheck )
			hFile.open(tmpFileName);
		else
			hFile.open(hFileName);

		if(!hFile.isValid())
		{
			OString message("cannot open ");
			message += hFileName + " for writing";
			throw CannotDumpException(message);
		}

		ret = dumpHFile(hFile);

		hFile.close();
		if (ret && bFileCheck)
		{
			ret = checkFileContent(hFileName, tmpFileName);
		}
	}
=====================================================================
Found a 46 line (194 tokens) duplication in the following files: 
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic)" );
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr->eTypeClass,
=====================================================================
Found a 40 line (193 tokens) duplication in the following files: 
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 243 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                intr.local_scale(&rx, &ry);

                rx = (rx * base_type::m_blur_x) >> image_subpixel_shift;
                ry = (ry * base_type::m_blur_y) >> image_subpixel_shift;

                if(rx < image_subpixel_size)
                {
                    rx = image_subpixel_size;
                }
                else
                {
                    if(rx > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        rx = image_subpixel_size * base_type::m_scale_limit;
                    }
                    rx_inv = image_subpixel_size * image_subpixel_size / rx;
                }

                if(ry < image_subpixel_size)
                {
                    ry = image_subpixel_size;
                }
                else
                {
                    if(ry > image_subpixel_size * base_type::m_scale_limit) 
                    {
                        ry = image_subpixel_size * base_type::m_scale_limit;
                    }
                    ry_inv = image_subpixel_size * image_subpixel_size / ry;
                }

                int radius_x = (diameter * rx) >> 1;
                int radius_y = (diameter * ry) >> 1;
                int maxx = base_type::source_image().width() - 1;
                int maxy = base_type::source_image().height() - 1;

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 33 line (193 tokens) duplication in the following files: 
Starting at line 493 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_base.h
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_base.h

        void blend_from(const SrcPixelFormatRenderer& src, 
                       const rect* rect_src_ptr = 0, 
                       int dx = 0, 
                       int dy = 0)
        {
            rect rsrc(0, 0, src.width(), src.height());
            if(rect_src_ptr)
            {
                rsrc.x1 = rect_src_ptr->x1; 
                rsrc.y1 = rect_src_ptr->y1;
                rsrc.x2 = rect_src_ptr->x2 + 1;
                rsrc.y2 = rect_src_ptr->y2 + 1;
            }

            // Version with xdst, ydst (absolute positioning)
            //rect rdst(xdst, ydst, xdst + rsrc.x2 - rsrc.x1, ydst + rsrc.y2 - rsrc.y1);

            // Version with dx, dy (relative positioning)
            rect rdst(rsrc.x1 + dx, rsrc.y1 + dy, rsrc.x2 + dx, rsrc.y2 + dy);

            rect rc = clip_rect_area(rdst, rsrc, src.width(), src.height());

            if(rc.x2 > 0)
            {
                int incy = 1;
                if(rdst.y1 > rsrc.y1)
                {
                    rsrc.y1 += rc.y2 - 1;
                    rdst.y1 += rc.y2 - 1;
                    incy = -1;
                }
                while(rc.y2 > 0)
                {
=====================================================================
Found a 13 line (193 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/base14.cxx

    600, 600, 600, 600, 600, 0, 600, 600, // 152 - 159
    600, 600, 600, 600, 600, 600, 600, 600, // 160 - 167
    600, 600, 600, 600, 600, 600, 600, 600, // 168 - 175
    600, 600, 600, 600, 600, 600, 600, 600, // 176 - 183
    600, 600, 600, 600, 600, 600, 600, 600, // 184 - 191
    600, 600, 600, 600, 600, 600, 600, 600, // 192 - 199
    600, 600, 600, 600, 600, 600, 600, 600, // 200 - 207
    600, 600, 600, 600, 600, 600, 600, 600, // 208 - 215
    600, 600, 600, 600, 600, 600, 600, 600, // 216 - 223
    600, 600, 600, 600, 600, 600, 600, 600, // 224 - 231
    600, 600, 600, 600, 600, 600, 600, 600, // 232 - 239
    600, 600, 600, 600, 600, 600, 600, 600, // 240 - 247
    600, 600, 600, 600, 600, 600, 600, 600 // 248 - 255
=====================================================================
Found a 25 line (193 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dialog/uiregionsw.cxx
Starting at line 1637 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dialog/uiregionsw.cxx

    aCurName            ( this, SW_RES( ED_RNAME ) ),
    aLinkFL             ( this, SW_RES( FL_LINK ) ),
    aFileCB             ( this, SW_RES( CB_FILE ) ),
#ifdef DDE_AVAILABLE
	aDDECB              ( this, SW_RES( CB_DDE ) ) ,
	aDDECommandFT       ( this, SW_RES( FT_DDE ) ) ,
#endif
    aFileNameFT         ( this, SW_RES( FT_FILE ) ) ,
	aFileNameED         ( this, SW_RES( ED_FILE ) ),
    aFilePB             ( this, SW_RES( PB_FILE ) ),
    aSubRegionFT        ( this, SW_RES( FT_SUBREG ) ) ,
	aSubRegionED        ( this, SW_RES( LB_SUBREG ) ) ,

    aProtectFL          ( this, SW_RES( FL_PROTECT ) ),
    aProtectCB          ( this, SW_RES( CB_PROTECT ) ),
    aPasswdCB           ( this, SW_RES( CB_PASSWD ) ),
    aPasswdPB           ( this, SW_RES( PB_PASSWD ) ),

    aHideFL             ( this, SW_RES( FL_HIDE ) ),
    aHideCB             ( this, SW_RES( CB_HIDE ) ),
    aConditionFT             ( this, SW_RES( FT_CONDITION ) ),
    aConditionED        ( this, SW_RES( ED_CONDITION ) ),
    // --> FME 2004-06-22 #114856# edit in readonly sections
    aPropertiesFL       ( this, SW_RES( FL_PROPERTIES ) ),
    aEditInReadonlyCB   ( this, SW_RES( CB_EDIT_IN_READONLY ) ),
=====================================================================
Found a 26 line (193 tokens) duplication in the following files: 
Starting at line 488 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShape3d.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape3d.cxx

			p3DObj->NbcSetLayer( pObj->GetLayer() );
			p3DObj->SetMergedItemSet( aSet );
			if ( bIsPlaceholderObject )
				aPlaceholderObjectList.push_back( p3DObj );
			else if ( bUseTwoFillStyles )
			{			
				Bitmap aFillBmp;
				sal_Bool bFillBmpTile = ((XFillBmpTileItem&)p3DObj->GetMergedItem( XATTR_FILLBMP_TILE )).GetValue();
				if ( bFillBmpTile )
				{
					const XFillBitmapItem& rBmpItm = (XFillBitmapItem&)p3DObj->GetMergedItem( XATTR_FILLBITMAP );
					const XOBitmap& rXOBmp = rBmpItm.GetBitmapValue();
					aFillBmp = rXOBmp.GetBitmap();
					Size aLogicalSize = aFillBmp.GetPrefSize();
					if ( aFillBmp.GetPrefMapMode() == MAP_PIXEL )
						aLogicalSize = Application::GetDefaultDevice()->PixelToLogic( aLogicalSize, MAP_100TH_MM ); 
					else
						aLogicalSize = OutputDevice::LogicToLogic( aLogicalSize, aFillBmp.GetPrefMapMode(), MAP_100TH_MM );
					aLogicalSize.Width()  *= 5;			;//				:-(		nice scaling, look at engine3d/obj3d.cxx
					aLogicalSize.Height() *= 5;
					aFillBmp.SetPrefSize( aLogicalSize );
					aFillBmp.SetPrefMapMode( MAP_100TH_MM );
					p3DObj->SetMergedItem( XFillBitmapItem( String(), aFillBmp ) );
				}
				else
				{
=====================================================================
Found a 11 line (193 tokens) duplication in the following files: 
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN("HeaderText"),					WID_PAGE_HEADERTEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("IsBackgroundDark" ),			WID_PAGE_ISDARK,	&::getBooleanCppuType(),						beans::PropertyAttribute::READONLY, 0},
		{ MAP_CHAR_LEN("IsFooterVisible"),				WID_PAGE_FOOTERVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("FooterText"),					WID_PAGE_FOOTERTEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("IsPageNumberVisible"),			WID_PAGE_PAGENUMBERVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("IsDateTimeVisible"),			WID_PAGE_DATETIMEVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("IsDateTimeFixed"),				WID_PAGE_DATETIMEFIXED, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("DateTimeText"),					WID_PAGE_DATETIMETEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("DateTimeFormat"),				WID_PAGE_DATETIMEFORMAT, &::getCppuType((const sal_Int32*)0),			0,	0},

		{0,0,0,0,0,0}
=====================================================================
Found a 33 line (193 tokens) duplication in the following files: 
Starting at line 3081 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx
Starting at line 3181 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx

							double fStart, double fStep, double fMax,
							BOOL bRecord, BOOL bApi )
{
	ScDocShellModificator aModificator( rDocShell );

	BOOL bSuccess = FALSE;
	ScDocument* pDoc = rDocShell.GetDocument();
	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	SCTAB nStartTab = rRange.aStart.Tab();
	SCCOL nEndCol = rRange.aEnd.Col();
	SCROW nEndRow = rRange.aEnd.Row();
	SCTAB nEndTab = rRange.aEnd.Tab();

	if (bRecord && !pDoc->IsUndoEnabled())
		bRecord = FALSE;

	ScMarkData aMark;
	if (pTabMark)
		aMark = *pTabMark;
	else
	{
		for (SCTAB nTab=nStartTab; nTab<=nEndTab; nTab++)
			aMark.SelectTable( nTab, TRUE );
	}

	ScEditableTester aTester( pDoc, nStartCol,nStartRow, nEndCol,nEndRow, aMark );
	if ( aTester.IsEditable() )
	{
		WaitObject aWait( rDocShell.GetActiveDialogParent() );

		ScRange aSourceArea = rRange;
		ScRange aDestArea   = rRange;
=====================================================================
Found a 44 line (193 tokens) duplication in the following files: 
Starting at line 343 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/helper/strhelper.cxx
Starting at line 400 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/helper/strhelper.cxx

    char *pLeap = pBuffer;

    while( *pRun )
    {
        if( *pRun && isSpace( *pRun ) )
        {
            *pLeap = ' ';
            pLeap++;
            pRun++;
        }
        while( *pRun && isSpace( *pRun ) )
            pRun++;
        while( *pRun && ! isSpace( *pRun ) )
        {
            if( *pRun == '\\' )
            {
                // escapement
                pRun++;
                *pLeap = *pRun;
                pLeap++;
                if( *pRun )
                    pRun++;
            }
            else if( bProtect && *pRun == '`' )
                CopyUntil( pLeap, pRun, '`', TRUE );
            else if( bProtect && *pRun == '\'' )
                CopyUntil( pLeap, pRun, '\'', TRUE );
            else if( bProtect && *pRun == '"' )
                CopyUntil( pLeap, pRun, '"', TRUE );
            else
            {
                *pLeap = *pRun;
                *pLeap++;
                *pRun++;
            }
        }
    }

    *pLeap = 0;

    // there might be a space at beginning or end
    pLeap--;
    if( *pLeap == ' ' )
        *pLeap = 0;
=====================================================================
Found a 25 line (193 tokens) duplication in the following files: 
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3850 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xff, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xd7 },
=====================================================================
Found a 7 line (193 tokens) duplication in the following files: 
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1426 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 7 line (193 tokens) duplication in the following files: 
Starting at line 1315 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1383 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2590 - 259f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25a0 - 25af
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25b0 - 25bf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25c0 - 25cf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25d0 - 25df
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25e0 - 25ef
    10,10,10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0,// 25f0 - 25ff
=====================================================================
Found a 7 line (193 tokens) duplication in the following files: 
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 988 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0250 - 025f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0260 - 026f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0270 - 027f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0280 - 028f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0290 - 029f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 02a0 - 02af
     0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0,// 02b0 - 02bf
=====================================================================
Found a 7 line (193 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
=====================================================================
Found a 5 line (193 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0020 - 0027
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0028 - 002f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0030 - 0037
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0038 - 003f
    {0x00, 0x0000}, {0x6a, 0x0061}, {0x6a, 0x0062}, {0x6a, 0x0063}, {0x6a, 0x0064}, {0x6a, 0x0065}, {0x6a, 0x0066}, {0x6a, 0x0067}, // 0040 - 0047
=====================================================================
Found a 42 line (193 tokens) duplication in the following files: 
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/canvastools.cxx
Starting at line 1267 of /local/ooo-build/ooo-build/src/oog680-m3/basebmp/source/bitmapdevice.cxx

    bool clipAreaImpl( ::basegfx::B2IRange&       io_rSourceArea,
                       ::basegfx::B2IPoint&       io_rDestPoint,
                       const ::basegfx::B2IRange& rSourceBounds,
                       const ::basegfx::B2IRange& rDestBounds )
    {
        const ::basegfx::B2IPoint aSourceTopLeft( 
            io_rSourceArea.getMinimum() );

        ::basegfx::B2IRange aLocalSourceArea( io_rSourceArea );

        // clip source area (which must be inside rSourceBounds)
        aLocalSourceArea.intersect( rSourceBounds );

        if( aLocalSourceArea.isEmpty() )
            return false;
            
        // calc relative new source area points (relative to orig
        // source area)
        const ::basegfx::B2IVector aUpperLeftOffset( 
            aLocalSourceArea.getMinimum()-aSourceTopLeft );
        const ::basegfx::B2IVector aLowerRightOffset( 
            aLocalSourceArea.getMaximum()-aSourceTopLeft );

        ::basegfx::B2IRange aLocalDestArea( io_rDestPoint + aUpperLeftOffset,
                                            io_rDestPoint + aLowerRightOffset );
            
        // clip dest area (which must be inside rDestBounds)
        aLocalDestArea.intersect( rDestBounds );
            
        if( aLocalDestArea.isEmpty() )
            return false;

        // calc relative new dest area points (relative to orig
        // source area)
        const ::basegfx::B2IVector aDestUpperLeftOffset( 
            aLocalDestArea.getMinimum()-io_rDestPoint );
        const ::basegfx::B2IVector aDestLowerRightOffset( 
            aLocalDestArea.getMaximum()-io_rDestPoint );

        io_rSourceArea = ::basegfx::B2IRange( aSourceTopLeft + aDestUpperLeftOffset,
                                              aSourceTopLeft + aDestLowerRightOffset );
        io_rDestPoint  = aLocalDestArea.getMinimum();
=====================================================================
Found a 50 line (193 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
=====================================================================
Found a 35 line (192 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h

                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + x_lr * 3;
                        do
                        {
                            int weight = (weight_y * weight_array[x_hr] + 
                                         image_filter_size / 2) >> 
                                         downscale_shift;

                            if(x_lr >= 0 && x_lr <= maxx)
                            {
                                fg[0] += fg_ptr[0] * weight;
                                fg[1] += fg_ptr[1] * weight;
                                fg[2] += fg_ptr[2] * weight;
                                fg[3] += base_mask * weight;
                            }
                            else
                            {
                                fg[order_type::R] += back_r * weight;
                                fg[order_type::G] += back_g * weight;
                                fg[order_type::B] += back_b * weight;
                                fg[3]             += back_a * weight;
                            }
                            total_weight += weight;
                            fg_ptr += 3;
                            x_hr   += rx_inv;
=====================================================================
Found a 32 line (192 tokens) duplication in the following files: 
Starting at line 682 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_outline_aa.h
Starting at line 1042 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_outline_aa.h

            m_di(lp.x1, lp.y1, lp.x2, lp.y2, sx, sy, ex, ey, 
                 lp.x1 & ~line_subpixel_mask, lp.y1 & ~line_subpixel_mask)
        {
            int dist1_start;
            int dist2_start;
            int npix = 1;
            if(lp.vertical)
            {
                do
                {
                    --base_type::m_li;
                    base_type::m_y -= lp.inc;
                    base_type::m_x = (base_type::m_lp->x1 + base_type::m_li.y()) >> line_subpixel_shift;

                    if(lp.inc > 0) m_di.dec_y(base_type::m_x - base_type::m_old_x);
                    else           m_di.inc_y(base_type::m_x - base_type::m_old_x);

                    base_type::m_old_x = base_type::m_x;

                    dist1_start = dist2_start = m_di.dist_start(); 

                    int dx = 0;
                    if(dist1_start < 0) ++npix;
                    do
                    {
                        dist1_start += m_di.dy_start();
                        dist2_start -= m_di.dy_start();
                        if(dist1_start < 0) ++npix;
                        if(dist2_start < 0) ++npix;
                        ++dx;
                    }
                    while(base_type::m_dist[dx] <= base_type::m_width);
=====================================================================
Found a 35 line (192 tokens) duplication in the following files: 
Starting at line 2740 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtflde.cxx
Starting at line 3577 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtfldi.cxx

}

// TODO: this is the same map as is used in the text field export
SvXMLEnumMapEntry __READONLY_DATA aBibliographyDataTypeMap[] =
{
	{ XML_ARTICLE,			BibliographyDataType::ARTICLE },
	{ XML_BOOK,			    BibliographyDataType::BOOK },
	{ XML_BOOKLET,			BibliographyDataType::BOOKLET },
	{ XML_CONFERENCE,		BibliographyDataType::CONFERENCE },
	{ XML_CUSTOM1,			BibliographyDataType::CUSTOM1 },
	{ XML_CUSTOM2,			BibliographyDataType::CUSTOM2 },
	{ XML_CUSTOM3,			BibliographyDataType::CUSTOM3 },
	{ XML_CUSTOM4,			BibliographyDataType::CUSTOM4 },
	{ XML_CUSTOM5,			BibliographyDataType::CUSTOM5 },
	{ XML_EMAIL,			BibliographyDataType::EMAIL },
	{ XML_INBOOK,			BibliographyDataType::INBOOK },
	{ XML_INCOLLECTION,	    BibliographyDataType::INCOLLECTION },
	{ XML_INPROCEEDINGS,	BibliographyDataType::INPROCEEDINGS },
	{ XML_JOURNAL,			BibliographyDataType::JOURNAL },
	{ XML_MANUAL,			BibliographyDataType::MANUAL },
	{ XML_MASTERSTHESIS,	BibliographyDataType::MASTERSTHESIS },
	{ XML_MISC,			    BibliographyDataType::MISC },
	{ XML_PHDTHESIS,		BibliographyDataType::PHDTHESIS },
	{ XML_PROCEEDINGS,		BibliographyDataType::PROCEEDINGS },
	{ XML_TECHREPORT,		BibliographyDataType::TECHREPORT },
	{ XML_UNPUBLISHED,		BibliographyDataType::UNPUBLISHED },
	{ XML_WWW,				BibliographyDataType::WWW },
	{ XML_TOKEN_INVALID, 0 }
};


// we'll process attributes on our own and forfit the standard
// tecfield mechanism, because our attributes have zero overlp with
// all the oher textfields.
void XMLBibliographyFieldImportContext::StartElement(
=====================================================================
Found a 36 line (192 tokens) duplication in the following files: 
Starting at line 529 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/spinbtn.cxx
Starting at line 915 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/spinfld.cxx

long SpinField::PreNotify( NotifyEvent& rNEvt )
{
    long nDone = 0;
    const MouseEvent* pMouseEvt = NULL;

    if( (rNEvt.GetType() == EVENT_MOUSEMOVE) && (pMouseEvt = rNEvt.GetMouseEvent()) != NULL )
    {
        if( !pMouseEvt->GetButtons() && !pMouseEvt->IsSynthetic() && !pMouseEvt->IsModifierChanged() )
        {
            // trigger redraw if mouse over state has changed
            if( IsNativeControlSupported(CTRL_SPINBOX, PART_ENTIRE_CONTROL) ||
                IsNativeControlSupported(CTRL_SPINBOX, PART_ALL_BUTTONS) )
            {
                Rectangle* pRect = ImplFindPartRect( GetPointerPosPixel() );
                Rectangle* pLastRect = ImplFindPartRect( GetLastPointerPosPixel() );
                if( pRect != pLastRect || (pMouseEvt->IsLeaveWindow() || pMouseEvt->IsEnterWindow()) )
                {
                    Region aRgn( GetActiveClipRegion() );
                    if( pLastRect )
                    {
                        SetClipRegion( *pLastRect );
                        Paint( *pLastRect );
                        SetClipRegion( aRgn );
                    }
                    if( pRect )
                    {
                        SetClipRegion( *pRect );
                        Paint( *pRect );
                        SetClipRegion( aRgn );
                    }
                }
            }
        }
    }

    return nDone ? nDone : Edit::PreNotify(rNEvt);
=====================================================================
Found a 55 line (192 tokens) duplication in the following files: 
Starting at line 683 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

        {
            //=================================================================
            //
            // Root Folder: Supported commands
            //
            //=================================================================

            static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::TransferInfo * >( 0 ) )
                ),
=====================================================================
Found a 38 line (192 tokens) duplication in the following files: 
Starting at line 1242 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1167 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

    rtl::OUString aNewTitle;
    sal_Int32 nTitlePos = -1;

	for ( sal_Int32 n = 0; n < nCount; ++n )
	{
        const beans::PropertyValue& rValue = pValues[ n ];

        if ( rValue.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "IsDocument" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "IsFolder" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
		{
            if ( m_aUri.isRootFolder() )
=====================================================================
Found a 16 line (192 tokens) duplication in the following files: 
Starting at line 3687 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 3703 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x10
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x11
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x12
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x13
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x14
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x15
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x16
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x17
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x18
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x19
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x1A
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x1B
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x1C
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x1D
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x1E
		INetMIMEEncodedWordOutputSink::CONTEXT_TEXT | INetMIMEEncodedWordOutputSink::CONTEXT_COMMENT | INetMIMEEncodedWordOutputSink::CONTEXT_PHRASE,   // 0x1F
=====================================================================
Found a 32 line (192 tokens) duplication in the following files: 
Starting at line 2726 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/untbl.cxx
Starting at line 2809 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/untbl.cxx

		}
		pEntry->pUndo = pUndo;
        // b62341295: Redline for copying tables - End.

		aInsIdx = rBox.GetSttIdx() + 1;
		rDoc.GetNodes().Delete( aInsIdx, 1 );

		SfxItemSet aTmpSet( rDoc.GetAttrPool(), RES_BOXATR_FORMAT, RES_BOXATR_VALUE,
												RES_VERT_ORIENT, RES_VERT_ORIENT, 0 );
		aTmpSet.Put( rBox.GetFrmFmt()->GetAttrSet() );
		if( aTmpSet.Count() )
		{
			SwFrmFmt* pBoxFmt = rBox.ClaimFrmFmt();
			pBoxFmt->ResetAttr( RES_BOXATR_FORMAT, RES_BOXATR_VALUE );
			pBoxFmt->ResetAttr( RES_VERT_ORIENT );
		}
		if( pEntry->pBoxNumAttr )
		{
			rBox.ClaimFrmFmt()->SetAttr( *pEntry->pBoxNumAttr );
			delete pEntry->pBoxNumAttr, pEntry->pBoxNumAttr = 0;
		}

		if( aTmpSet.Count() )
		{
			pEntry->pBoxNumAttr = new SfxItemSet( rDoc.GetAttrPool(),
									RES_BOXATR_FORMAT, RES_BOXATR_VALUE,
									RES_VERT_ORIENT, RES_VERT_ORIENT, 0 );
			pEntry->pBoxNumAttr->Put( aTmpSet );
		}

		pEntry->nOffset = rBox.GetSttIdx() - pEntry->nBoxIdx;
	}
=====================================================================
Found a 35 line (192 tokens) duplication in the following files: 
Starting at line 800 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
Starting at line 1420 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/slidvish.cxx

	Size aPageSize(pSlideView->GetPageArea(0).GetSize());

	Rectangle aRect(rZoomRect);

	if (aRect.GetWidth()  < aPageSize.Width())
	{
		long nWidthDiff  = (aPageSize.Width() - aRect.GetWidth()) / 2;

		aRect.Left() -= nWidthDiff;
		aRect.Right() += nWidthDiff;

		if (aRect.Left() < 0)
		{
			aRect.SetPos(Point(0, aRect.Top()));
		}
	}

	if (aRect.GetHeight()  < aPageSize.Height())
	{
		long nHeightDiff  = (aPageSize.Height() - aRect.GetHeight()) / 2;

		aRect.Top() -= nHeightDiff;
		aRect.Bottom() += nHeightDiff;

		if (aRect.Top() < 0)
		{
			aRect.SetPos(Point(aRect.Left(), 0));
		}
	}

	ViewShell::SetZoomRect(aRect);

	// #106268#
	GetViewFrame()->GetBindings().Invalidate( SID_ATTR_ZOOM );
}
=====================================================================
Found a 12 line (192 tokens) duplication in the following files: 
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/textenc.cxx

    = { 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, /* 0x00A0 */
        0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF,
        0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, /* 0x00B0 */
        0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF,
        0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x00C0 */
        0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF,
        0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x00D0 */
        0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF,
        0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x00E0 */
        0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF,
        0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x00F0 */
        0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF };
=====================================================================
Found a 64 line (192 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_StreamSocket.cxx

                t_print("# error: client thread not terminated.\n" );
        }

};

// -----------------------------------------------------------------------------
// Helper functions, to create buffers, check buffers
class ValueCheckProvider
{
    bool m_bFoundFailure;
    char *m_pBuffer;
    sal_Int32 m_nBufferSize;
  
public:
    ValueCheckProvider()
            :m_bFoundFailure(false),
             m_pBuffer(NULL),
             m_nBufferSize(0)
        {
        }
    
    bool       isFailure() {return m_bFoundFailure;}

    const char* getBuffer() {return m_pBuffer;}
    char*       getWriteBuffer() {return m_pBuffer;}
    
    sal_Int32   getBufferSize() {return m_nBufferSize;}

    bool checkValues(sal_Int32 _nLength, int _nValue)
        {
            m_bFoundFailure = false;
            for(sal_Int32 i=0;i<_nLength;i++)
            {
                if (m_pBuffer[i] != _nValue)
                {
                    m_bFoundFailure = true;
                }
            }
            return m_bFoundFailure;
        }

    void createBuffer(sal_Int32 _nLength, int _nValue)
        {
            m_nBufferSize = _nLength;
            m_pBuffer = (char*) malloc(m_nBufferSize);
            if (m_pBuffer)
            {
                memset(m_pBuffer, _nValue, m_nBufferSize);
            }
        }

    void freeBuffer()
        {
            if (m_pBuffer) free(m_pBuffer);
        }

};

// -----------------------------------------------------------------------------
/** Client Socket Thread, served as a temp little client to communicate with server.
 */

class ReadSocketThread : public Thread
{
=====================================================================
Found a 47 line (192 tokens) duplication in the following files: 
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/keyimpl.cxx
Starting at line 942 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/keyimpl.cxx

RegError ORegKey::getUnicodeListValue(const OUString& valueName, sal_Unicode*** pValueList, sal_uInt32* pLen) const
{
    OStoreStream    rValue;
    sal_uInt8*      pBuffer;
    RegValueType    valueType;
    sal_uInt32      valueSize;
    storeAccessMode accessMode = VALUE_MODE_OPEN;

    if (m_pRegistry->isReadOnly())
    {
        accessMode = VALUE_MODE_OPENREAD;
    }

    OUString sImplValueName( RTL_CONSTASCII_USTRINGPARAM(VALUE_PREFIX) );
    sImplValueName += valueName;

    REG_GUARD(m_pRegistry->m_mutex);

    if ( rValue.create(m_storeFile, m_name + m_pRegistry->ROOT, sImplValueName, accessMode) )
    {
        pValueList = NULL;
        *pLen = 0;
        return REG_VALUE_NOT_EXISTS;
    }

    pBuffer = (sal_uInt8*)rtl_allocateMemory(VALUE_HEADERSIZE);

    sal_uInt32  readBytes;
    if ( rValue.readAt(0, pBuffer, VALUE_HEADERSIZE, readBytes) )
    {
        pValueList = NULL;
        *pLen = 0;
        rtl_freeMemory(pBuffer);
        return REG_INVALID_VALUE;
    }
    if (readBytes != VALUE_HEADERSIZE)
    {
        pValueList = NULL;
        *pLen = 0;
        rtl_freeMemory(pBuffer);
        return REG_INVALID_VALUE;
    }

    sal_uInt8   type = *((sal_uInt8*)pBuffer);
    valueType = (RegValueType)type;

    if (valueType != RG_VALUETYPE_UNICODELIST)
=====================================================================
Found a 10 line (192 tokens) duplication in the following files: 
Starting at line 590 of /local/ooo-build/ooo-build/src/oog680-m3/padmin/source/padialog.cxx
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svptest.cxx

		DrawLine( project( aP1 ) + aCenter,
                  project( aP2 ) + aCenter,
                  aLineInfo );
		aPoint.X() = (int)((((double)aP1.X())*cosd - ((double)aP1.Y())*sind)*factor);
		aPoint.Y() = (int)((((double)aP1.Y())*cosd + ((double)aP1.X())*sind)*factor);
		aP1 = aPoint;
		aPoint.X() = (int)((((double)aP2.X())*cosd - ((double)aP2.Y())*sind)*factor);
		aPoint.Y() = (int)((((double)aP2.Y())*cosd + ((double)aP2.X())*sind)*factor);
		aP2 = aPoint;
	}
=====================================================================
Found a 58 line (192 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/UnoRegister.cxx
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/cacher/cacheserv.cxx

using namespace com::sun::star::registry;

//=========================================================================
static sal_Bool writeInfo( void * pRegistryKey,
						   const OUString & rImplementationName,
   						   Sequence< OUString > const & rServiceNames )
{
	OUString aKeyName( OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += OUString::createFromAscii( "/UNO/SERVICES" );

	Reference< XRegistryKey > xKey;
	try
	{
		xKey = static_cast< XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
	catch ( InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo( void *, void * pRegistryKey )
{
	return pRegistryKey &&

	//////////////////////////////////////////////////////////////////////
	// CachedContentResultSetFactory.
	//////////////////////////////////////////////////////////////////////

	writeInfo( pRegistryKey,
=====================================================================
Found a 7 line (192 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

	0x307F, 0x3080, 0x3081, 0x3082, 0x3084, 0x3086, 0x3088, 0x3089, 0x308A, 0x308B, 0x308C, 0x308D, 0x308F, 0x3093, 0xFF9E, 0xFF9F,  // FF90
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFA0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFB0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFC0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFD0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FFE0
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000   // FFF0
=====================================================================
Found a 29 line (192 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/headermenucontroller.cxx

            const rtl::OUString aHeaderIsOnStr( RTL_CONSTASCII_USTRINGPARAM( "HeaderIsOn" ));

            Reference< XNameContainer > xNameContainer;
            Any a = xStyleFamilies->getByName( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PageStyles" )));
            if ( a >>= xNameContainer )
            {
                Sequence< rtl::OUString > aSeqNames = xNameContainer->getElementNames();

                USHORT   nId = 2;
                USHORT  nCount = 0;
                sal_Bool bAllOneState( sal_True );
                sal_Bool bLastCheck( sal_True );
                sal_Bool bFirstChecked( sal_False );
                sal_Bool bFirstItemInserted( sal_False );
                for ( sal_Int32 n = 0; n < aSeqNames.getLength(); n++ )
                {
                    rtl::OUString aName = aSeqNames[n];
                    Reference< XPropertySet > xPropSet( xNameContainer->getByName( aName ), UNO_QUERY );
                    if ( xPropSet.is() )
                    {
                        sal_Bool bIsPhysical( sal_False );
                        a = xPropSet->getPropertyValue( aIsPhysicalStr );
                        if (( a >>= bIsPhysical ) && bIsPhysical )
                        {
                            rtl::OUString aDisplayName;
                            sal_Bool      bHeaderIsOn( sal_False );
                            a = xPropSet->getPropertyValue( aDisplayNameStr );
                            a >>= aDisplayName;
                            a = xPropSet->getPropertyValue( aHeaderIsOnStr );
=====================================================================
Found a 32 line (192 tokens) duplication in the following files: 
Starting at line 1114 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1502 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

void SAL_CALL ModuleImageManager::storeToStorage( const uno::Reference< XStorage >& Storage ) 
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException)
{
    ResetableGuard aGuard( m_aLock );

    if ( m_bDisposed )
        throw DisposedException();

    if ( m_bModified && Storage.is() )
    {
        long nModes = ElementModes::READWRITE;

        uno::Reference< XStorage > xUserImageStorage = Storage->openStorageElement( OUString::createFromAscii( IMAGE_FOLDER ), 
                                                                                    nModes );
        if ( xUserImageStorage.is() )
        {
            uno::Reference< XStorage > xUserBitmapsStorage = xUserImageStorage->openStorageElement( OUString::createFromAscii( BITMAPS_FOLDER ),
                                                                                                    nModes );
            for ( sal_Int32 i = 0; i < ImageType_COUNT; i++ )
            {
                implts_getUserImageList( (ImageType)i );
                implts_storeUserImages( (ImageType)i, xUserImageStorage, xUserBitmapsStorage );
            }
        
            uno::Reference< XTransactedObject > xTransaction( Storage, UNO_QUERY );
			if ( xTransaction.is() )
            	xTransaction->commit();
        }
    }
}

sal_Bool SAL_CALL ModuleImageManager::isModified() 
=====================================================================
Found a 24 line (192 tokens) duplication in the following files: 
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/dockingareadefaultacceptor.cxx
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/dockingareadefaultacceptor.cxx

void SAL_CALL DockingAreaDefaultAcceptor::setDockingAreaSpace( const css::awt::Rectangle& BorderSpace ) throw (css::uno::RuntimeException)
{
	// Ready for multithreading
	ResetableGuard aGuard( m_aLock );

	// Try to "lock" the frame for access to taskscontainer.
	Reference< XFrame > xFrame( m_xOwner.get(), UNO_QUERY );
	if ( xFrame.is() == sal_True )
	{
        Reference< css::awt::XWindow > xContainerWindow( xFrame->getContainerWindow() );
        Reference< css::awt::XWindow > xComponentWindow( xFrame->getComponentWindow() );

        if (( xContainerWindow.is() == sal_True ) &&
            ( xComponentWindow.is() == sal_True )       )
        {
            css::uno::Reference< css::awt::XDevice > xDevice( xContainerWindow, css::uno::UNO_QUERY );
            // Convert relativ size to output size.
            css::awt::Rectangle  aRectangle  = xContainerWindow->getPosSize();
            css::awt::DeviceInfo aInfo       = xDevice->getInfo();
            css::awt::Size       aSize       (  aRectangle.Width  - aInfo.LeftInset - aInfo.RightInset  ,
                                                aRectangle.Height - aInfo.TopInset  - aInfo.BottomInset );
            // client size of container window
//            css::uno::Reference< css::awt::XLayoutConstrains > xLayoutContrains( xComponentWindow, css::uno::UNO_QUERY );
            css::awt::Size aMinSize( 0, 0 );// = xLayoutContrains->getMinimumSize();
=====================================================================
Found a 27 line (192 tokens) duplication in the following files: 
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YUser.cxx

void SAL_CALL OMySQLUser::grantPrivileges( const ::rtl::OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
    if ( objType != PrivilegeObject::TABLE )
        ::dbtools::throwSQLException( "Privilege not granted: Only table privileges can be granted", "01007", *this );

	::osl::MutexGuard aGuard(m_aMutex);

	::rtl::OUString sPrivs = getPrivilegeString(objPrivileges);
	if(sPrivs.getLength())
	{
		::rtl::OUString sGrant;
		sGrant += ::rtl::OUString::createFromAscii("GRANT ");
		sGrant += sPrivs;
		sGrant += ::rtl::OUString::createFromAscii(" ON ");
		Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData();
		sGrant += ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation);
		sGrant += ::rtl::OUString::createFromAscii(" TO ");
		sGrant += m_Name;
		
		Reference<XStatement> xStmt = m_xConnection->createStatement();
		if(xStmt.is())
			xStmt->execute(sGrant);
		::comphelper::disposeComponent(xStmt);
	}
}
// -------------------------------------------------------------------------
void SAL_CALL OMySQLUser::revokePrivileges( const ::rtl::OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
=====================================================================
Found a 43 line (192 tokens) duplication in the following files: 
Starting at line 483 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 678 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceAttributeTypeDescription * >(
                        member)->pAttributeTypeRef));

            // Setter:
            if (!reinterpret_cast<
                typelib_InterfaceAttributeTypeDescription * >(
                    member)->bReadOnly)
            {
                *slots++ = code;
                code = codeSnippet(code, functionOffset++, vtableOffset, true);
            }
            break;

        case typelib_TypeClass_INTERFACE_METHOD:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                bridges::cpp_uno::shared::isSimpleType(
                    reinterpret_cast<
                    typelib_InterfaceMethodTypeDescription * >(
                        member)->pReturnTypeRef));
            break;

        default:
            OSL_ASSERT(false);
            break;
        }
        TYPELIB_DANGER_RELEASE(member);
    }
    return code;
}
=====================================================================
Found a 7 line (191 tokens) duplication in the following files: 
Starting at line 4307 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6449 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        12, 4, 32, 128-32,
        0x00,0x00,0x0D,0x00,0x1A,0x00,0x27,0x00,0x34,0x00,0x41,0x00,0x4E,0x00,0x5B,0x00,0x68,0x00,
        0x75,0x00,0x82,0x00,0x8F,0x00,0x9C,0x00,0xA9,0x00,0xB6,0x00,0xC3,0x00,0xD0,0x00,0xDD,0x00,
        0xEA,0x00,0xF7,0x00,0x04,0x01,0x11,0x01,0x1E,0x01,0x2B,0x01,0x38,0x01,0x45,0x01,0x52,0x01,
        0x5F,0x01,0x6C,0x01,0x79,0x01,0x86,0x01,0x93,0x01,0xA0,0x01,0xAD,0x01,0xBA,0x01,0xC7,0x01,
        0xD4,0x01,0xE1,0x01,0xEE,0x01,0xFB,0x01,0x08,0x02,0x15,0x02,0x22,0x02,0x2F,0x02,0x3C,0x02,
        0x49,0x02,0x56,0x02,0x63,0x02,0x70,0x02,0x7D,0x02,0x8A,0x02,0x97,0x02,0xA4,0x02,0xB1,0x02,
=====================================================================
Found a 51 line (191 tokens) duplication in the following files: 
Starting at line 584 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_aa.h
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_bin.h

                    return val;
                }

                const int8u* m_ptr;
                span         m_span;
                int          m_dx;
            };

            friend class const_iterator;


            //----------------------------------------------------------------
            embedded_scanline() : m_ptr(0), m_y(0), m_num_spans(0) {}

            //----------------------------------------------------------------
            void     reset(int, int)     {}
            unsigned num_spans()   const { return m_num_spans;  }
            int      y()           const { return m_y;          }
            const_iterator begin() const { return const_iterator(*this); }


        private:
            //----------------------------------------------------------------
            int read_int16()
            {
                int16 val;
                ((int8u*)&val)[0] = *m_ptr++;
                ((int8u*)&val)[1] = *m_ptr++;
                return val;
            }

        public:
            //----------------------------------------------------------------
            void init(const int8u* ptr, int dx, int dy)
            {
                m_ptr       = ptr;
                m_y         = read_int16() + dy;
                m_num_spans = unsigned(read_int16());
                m_dx        = dx;
            }

        private:
            const int8u* m_ptr;
            int          m_y;
            unsigned     m_num_spans;
            int          m_dx;
        };



    public:
=====================================================================
Found a 30 line (191 tokens) duplication in the following files: 
Starting at line 743 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx
Starting at line 911 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

		Gradient aGradient( rGradient );

		if ( mnDrawMode & ( DRAWMODE_GRAYGRADIENT | DRAWMODE_GHOSTEDGRADIENT ) )
		{
			Color aStartCol( aGradient.GetStartColor() );
			Color aEndCol( aGradient.GetEndColor() );

			if ( mnDrawMode & DRAWMODE_GRAYGRADIENT )
			{
				BYTE cStartLum = aStartCol.GetLuminance(), cEndLum = aEndCol.GetLuminance();
				aStartCol = Color( cStartLum, cStartLum, cStartLum );
				aEndCol = Color( cEndLum, cEndLum, cEndLum );
			}
			
			if ( mnDrawMode & DRAWMODE_GHOSTEDGRADIENT )
			{
				aStartCol = Color( ( aStartCol.GetRed() >> 1 ) | 0x80, 
								   ( aStartCol.GetGreen() >> 1 ) | 0x80,
								   ( aStartCol.GetBlue() >> 1 ) | 0x80 );

				aEndCol = Color( ( aEndCol.GetRed() >> 1 ) | 0x80, 
								 ( aEndCol.GetGreen() >> 1 ) | 0x80,
								 ( aEndCol.GetBlue() >> 1 ) | 0x80 );
			}

			aGradient.SetStartColor( aStartCol );
			aGradient.SetEndColor( aEndCol );
		}

		if( OUTDEV_PRINTER == meOutDevType )
=====================================================================
Found a 13 line (191 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 55 line (191 tokens) duplication in the following files: 
Starting at line 1743 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1801 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

                    pWwFib->fcPlcfwkb, pWwFib->lcbPlcfwkb, 12);
            }
            break;
        default:
            ASSERT( !this, "Es wurde vergessen, nVersion zu kodieren!" );
            break;
    }

    // PLCF fuer TextBox-Stories im Maintext
    long nLenTxBxS = (8 > pWw8Fib->nVersion) ? 0 : 22;
    if( pWwFib->fcPlcftxbxTxt && pWwFib->lcbPlcftxbxTxt )
    {
        pMainTxbx = new WW8PLCFspecial( pTblSt, pWwFib->fcPlcftxbxTxt,
            pWwFib->lcbPlcftxbxTxt, nLenTxBxS );
    }

    // PLCF fuer TextBox-Stories im Header-/Footer-Bereich
    if( pWwFib->fcPlcfHdrtxbxTxt && pWwFib->lcbPlcfHdrtxbxTxt )
    {
        pHdFtTxbx = new WW8PLCFspecial( pTblSt, pWwFib->fcPlcfHdrtxbxTxt,
            pWwFib->lcbPlcfHdrtxbxTxt, nLenTxBxS );
    }

    pBook = new WW8PLCFx_Book(pTblSt, *pWwFib);
}

WW8ScannerBase::~WW8ScannerBase()
{
    DeletePieceTable();
    delete pPLCFx_PCDAttrs;
    delete pPLCFx_PCD;
    delete pPieceIter;
    delete pPiecePLCF;
    delete pBook;
    delete pFldEdnPLCF;
    delete pFldFtnPLCF;
    delete pFldAndPLCF;
    delete pFldHdFtPLCF;
    delete pFldPLCF;
    delete pFldTxbxPLCF;
    delete pFldTxbxHdFtPLCF;
    delete pEdnPLCF;
    delete pFtnPLCF;
    delete pAndPLCF;
    delete pSepPLCF;
    delete pPapPLCF;
    delete pChpPLCF;
    // vergessene Schaeflein
    delete pMainFdoa;
    delete pHdFtFdoa;
    delete pMainTxbx;
    delete pMainTxbxBkd;
    delete pHdFtTxbx;
    delete pHdFtTxbxBkd;
    delete pMagicTables;
=====================================================================
Found a 18 line (191 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoctabl.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unomtabl.cxx

    virtual uno::Sequence<  OUString > SAL_CALL getSupportedServiceNames(  ) throw( uno::RuntimeException);

	// XNameContainer
	virtual void SAL_CALL insertByName( const  OUString& aName, const  uno::Any& aElement ) throw( lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, uno::RuntimeException);
	virtual void SAL_CALL removeByName( const  OUString& Name ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);

	// XNameReplace
    virtual void SAL_CALL replaceByName( const  OUString& aName, const  uno::Any& aElement ) throw( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);

	// XNameAccess
    virtual uno::Any SAL_CALL getByName( const  OUString& aName ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);
    virtual uno::Sequence<  OUString > SAL_CALL getElementNames(  ) throw( uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const  OUString& aName ) throw( uno::RuntimeException);

	// XElementAccess
    virtual uno::Type SAL_CALL getElementType(  ) throw( uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasElements(  ) throw( uno::RuntimeException);
};
=====================================================================
Found a 41 line (191 tokens) duplication in the following files: 
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linkmgr2.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linkmgr2.cxx

	SvStringsDtor aApps, aTopics, aItems;
	String sApp, sTopic, sItem;

	// erstmal eine Kopie vom Array machen, damit sich updatende Links in
	// Links in ... nicht dazwischen funken!!
	SvPtrarr aTmpArr( 255, 50 );
	USHORT n;
	for( n = 0; n < aLinkTbl.Count(); ++n )
	{
		SvBaseLink* pLink = *aLinkTbl[ n ];
		if( !pLink )
		{
			Remove( n-- );
			continue;
		}
		aTmpArr.Insert( pLink, aTmpArr.Count() );
	}

	for( n = 0; n < aTmpArr.Count(); ++n )
	{
		SvBaseLink* pLink = (SvBaseLink*)aTmpArr[ n ];

		// suche erstmal im Array nach dem Eintrag
		USHORT nFndPos = USHRT_MAX;
		for( USHORT i = 0; i < aLinkTbl.Count(); ++i )
			if( pLink == *aLinkTbl[ i ] )
			{
				nFndPos = i;
				break;
			}

		if( USHRT_MAX == nFndPos )
			continue;					// war noch nicht vorhanden!

		// Graphic-Links noch nicht updaten
		if( !pLink->IsVisible() ||
			( !bUpdateGrfLinks && OBJECT_CLIENT_GRF == pLink->GetObjType() ))
			continue;

		if( bAskUpdate )
		{
=====================================================================
Found a 33 line (191 tokens) duplication in the following files: 
Starting at line 2113 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 2150 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

void ScInterpreter::ScSumX2DY2()
{
	if ( !MustHaveParamCount( GetByte(), 2 ) )
		return;

	ScMatrixRef pMat1 = NULL;
	ScMatrixRef pMat2 = NULL;
	SCSIZE i, j;
	pMat2 = GetMatrix();
	pMat1 = GetMatrix();
	if (!pMat2 || !pMat1)
	{
		SetIllegalParameter();
		return;
	}
	SCSIZE nC1, nC2;
	SCSIZE nR1, nR2;
	pMat2->GetDimensions(nC2, nR2);
	pMat1->GetDimensions(nC1, nR1);
	if (nC1 != nC2 || nR1 != nR2)
	{
		SetNoValue();
		return;
	}
	double fVal, fSum = 0.0;
	for (i = 0; i < nC1; i++)
		for (j = 0; j < nR1; j++)
			if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
			{
				fVal = pMat1->GetDouble(i,j);
				fSum += fVal * fVal;
				fVal = pMat2->GetDouble(i,j);
				fSum += fVal * fVal;
=====================================================================
Found a 13 line (191 tokens) duplication in the following files: 
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 618 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                  0x18,  0x19,  0x1A,  0x1B,  0x1C,  0x1D,  0x1E,  0x1F,
                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
                0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
                0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
                0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
                0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,  0x7F,
=====================================================================
Found a 47 line (191 tokens) duplication in the following files: 
Starting at line 739 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/keyimpl.cxx
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/keyimpl.cxx

RegError ORegKey::getStringListValue(const OUString& valueName, sal_Char*** pValueList, sal_uInt32* pLen) const
{
    OStoreStream    rValue;
    sal_uInt8*      pBuffer;
    RegValueType    valueType;
    sal_uInt32      valueSize;
    storeAccessMode accessMode = VALUE_MODE_OPEN;

    if (m_pRegistry->isReadOnly())
    {
        accessMode = VALUE_MODE_OPENREAD;
    }

    OUString sImplValueName( RTL_CONSTASCII_USTRINGPARAM(VALUE_PREFIX) );
    sImplValueName += valueName;

    REG_GUARD(m_pRegistry->m_mutex);

    if ( rValue.create(m_storeFile, m_name + m_pRegistry->ROOT, sImplValueName, accessMode) )
    {
        pValueList = NULL;
        *pLen = 0;
        return REG_VALUE_NOT_EXISTS;
    }

    pBuffer = (sal_uInt8*)rtl_allocateMemory(VALUE_HEADERSIZE);

    sal_uInt32  readBytes;
    if ( rValue.readAt(0, pBuffer, VALUE_HEADERSIZE, readBytes) )
    {
        pValueList = NULL;
        *pLen = 0;
        rtl_freeMemory(pBuffer);
        return REG_INVALID_VALUE;
    }
    if (readBytes != VALUE_HEADERSIZE)
    {
        pValueList = NULL;
        *pLen = 0;
        rtl_freeMemory(pBuffer);
        return REG_INVALID_VALUE;
    }

    sal_uInt8   type = *((sal_uInt8*)pBuffer);
    valueType = (RegValueType)type;

    if (valueType != RG_VALUETYPE_STRINGLIST)
=====================================================================
Found a 7 line (191 tokens) duplication in the following files: 
Starting at line 1427 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30a0 - 30af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30b0 - 30bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30c0 - 30cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30e0 - 30ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff
=====================================================================
Found a 6 line (191 tokens) duplication in the following files: 
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1427 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 7 line (191 tokens) duplication in the following files: 
Starting at line 718 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 894 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe90 - fe9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 8 line (191 tokens) duplication in the following files: 
Starting at line 717 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 764 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0,// 33f0 - 33ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d00 - 4d0f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d10 - 4d1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d20 - 4d2f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d30 - 4d3f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d40 - 4d4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d50 - 4d5f
=====================================================================
Found a 7 line (191 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 771 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d50 - 4d5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d60 - 4d6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d70 - 4d7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d80 - 4d8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d90 - 4d9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4da0 - 4daf
     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4db0 - 4dbf
=====================================================================
Found a 7 line (191 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 347 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
     1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,// 10a0 - 10af
     1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,// 10b0 - 10bf
     1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10c0 - 10cf
=====================================================================
Found a 20 line (191 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/public.h
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h

const int in_quit ANSI((void));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
time_t seek_arch ANSI((char *, char *));
int touch_arch ANSI(( char *, char *));
void void_lcache ANSI(( char *, char *));
=====================================================================
Found a 35 line (191 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1377 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
    }
    {
        double b = 2;
        CPPUNIT_ASSERT_MESSAGE("double", !(a >>= b) && b == 2);
    }
    {
        sal_Unicode b = '2';
=====================================================================
Found a 25 line (191 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDriver.cxx
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NDriver.cxx

	return getSupportedServiceNames_Static();
}

//------------------------------------------------------------------
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >  SAL_CALL connectivity::evoab::OEvoabDriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
	return *(new OEvoabDriver(_rxFactory));
}
// --------------------------------------------------------------------------------
Reference< XConnection > SAL_CALL OEvoabDriver::connect( const ::rtl::OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	if (ODriver_BASE::rBHelper.bDisposed)
		throw DisposedException();
	
	if ( ! acceptsURL(url) )
		return NULL;
	
	OEvoabConnection* pCon = new OEvoabConnection(this);
	pCon->construct(url,info);
        Reference< XConnection > xCon = pCon;
        m_xConnections.push_back(WeakReferenceHelper(*pCon));
	
	return xCon;
}
=====================================================================
Found a 34 line (190 tokens) duplication in the following files: 
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/xxml/FileXXmlReader.cxx
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/xxml/StorageXXmlReader.cxx

sal_Int32 SAL_CALL StorageXXmlReader::run( const uno::Sequence< rtl::OUString >& aArguments ) throw (uno::RuntimeException)
{
  MyHandler handler;

  if (aArguments.getLength()!=1)
  {
	  return 1;
  }
	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
		// construct an URL of the input file name
		rtl::OUString arg=aArguments[0];
		rtl_uString *dir=NULL;
		osl_getProcessWorkingDir(&dir);
		rtl::OUString absFileUrl;
		osl_getAbsoluteFileURL(dir, arg.pData, &absFileUrl.pData);
		rtl_uString_release(dir);
/*
		// get file simple file access service
		uno::Reference<com::sun::star::ucb::XSimpleFileAccess> xFileAccess(
		xFactory->createInstanceWithContext(
			::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SimpleFileAccess")), 
			xContext), uno::UNO_QUERY_THROW );

		// open file
		uno::Reference<io::XInputStream> xInputStream = xFileAccess->openFileRead(absFileUrl);
*/

		uno::Reference <lang::XSingleServiceFactory> xStorageFactory(
=====================================================================
Found a 27 line (190 tokens) duplication in the following files: 
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 567 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readFileControlModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readBorderProps( this, aStyle ))
        aStyle._set |= 0x4;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }

    // collect elements
    readDefaults();
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
    readBoolAttr( OUSTR("HideInactiveSelection"),
                  OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
=====================================================================
Found a 37 line (190 tokens) duplication in the following files: 
Starting at line 1242 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1237 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

    rtl::OUString aOldTitle;
    sal_Int32 nTitlePos = -1;

	for ( sal_Int32 n = 0; n < nCount; ++n )
	{
        const beans::PropertyValue& rValue = pValues[ n ];

        if ( rValue.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM(  "ContentType" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "IsDocument" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "IsFolder" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
		{
=====================================================================
Found a 35 line (190 tokens) duplication in the following files: 
Starting at line 4914 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/paintfrm.cxx
Starting at line 4972 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/paintfrm.cxx

                                    SwRect aVert( Point(aTmp.Pos().X()-nHeight,
                                            aGrid.Top() ), Size( nHeight, 1 ) );
                                    if( bLeft )
                                        PaintBorderLine(rRect,aVert,this,pCol);
                                    if( bRight )
                                    {
                                        aVert.Pos().Y() = nGridBottom;
                                        PaintBorderLine(rRect,aVert,this,pCol);
                                    }
                                }
                            }
                        }
                        else
                        {
                            nY -= nRuby;
                            if( bBorder )
                            {
                                SwTwips nPos = Max( aInter.Left(), nY );
                                SwTwips nW = Min(nRight, aTmp.Pos().X()) - nPos;
                                SwRect aVert( Point( nPos, aGrid.Top() ),
                                              Size( nW, 1 ) );
                                if( nW > 0 )
                                {
                                    if( bLeft )
                                        PaintBorderLine(rRect,aVert,this,pCol);
                                    if( bRight )
                                    {
                                        aVert.Pos().Y() = nGridBottom;
                                        PaintBorderLine(rRect,aVert,this,pCol);
                                    }
                                }
                            }
                        }
                        bGrid = !bGrid;
                    }
=====================================================================
Found a 29 line (190 tokens) duplication in the following files: 
Starting at line 5013 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 5270 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx

        sdr::overlay::OverlayObjectCell::RangeVector aRanges;

        std::vector<Rectangle>::const_iterator aPixelEnd( aPixelRects.end() );
        for ( std::vector<Rectangle>::const_iterator aPixelIter( aPixelRects.begin() );
              aPixelIter != aPixelEnd; ++aPixelIter )
        {
            Rectangle aLogic( PixelToLogic( *aPixelIter, aDrawMode ) );

            const basegfx::B2DPoint aTopLeft(aLogic.Left(), aLogic.Top());
            const basegfx::B2DPoint aBottomRight(aLogic.Right(), aLogic.Bottom());
            const basegfx::B2DRange a2DRange(aTopLeft, aBottomRight);

            aRanges.push_back( a2DRange );
        }

		// #i70788# get the OverlayManager safely
		::sdr::overlay::OverlayManager* pOverlayManager = getOverlayManager();

		if(pOverlayManager)
		{
			ScOverlayType eType = SC_OVERLAY_INVERT;
//		          ScOverlayType eType = SC_OVERLAY_HATCH;
//			      ScOverlayType eType = SC_OVERLAY_TRANSPARENT;

			Color aHighlight = GetSettings().GetStyleSettings().GetHighlightColor();
            sdr::overlay::OverlayObjectCell* pOverlay =
	            new sdr::overlay::OverlayObjectCell( eType, aHighlight, aRanges );

		    pOverlayManager->add(*pOverlay);
=====================================================================
Found a 55 line (190 tokens) duplication in the following files: 
Starting at line 1510 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1705 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

void ScInterpreter::ScSub()
{
	ScMatrixRef pMat1 = NULL;
	ScMatrixRef pMat2 = NULL;
    double fVal1 = 0.0, fVal2 = 0.0;
	short nFmt1, nFmt2;
	nFmt1 = nFmt2 = NUMBERFORMAT_UNDEFINED;
	short nFmtCurrencyType = nCurFmtType;
	ULONG nFmtCurrencyIndex = nCurFmtIndex;
    short nFmtPercentType = nCurFmtType;
	if ( GetStackType() == svMatrix )
		pMat2 = GetMatrix();
	else
	{
		fVal2 = GetDouble();
		switch ( nCurFmtType )
		{
			case NUMBERFORMAT_DATE :
			case NUMBERFORMAT_TIME :
			case NUMBERFORMAT_DATETIME :
				nFmt2 = nCurFmtType;
			break;
			case NUMBERFORMAT_CURRENCY :
				nFmtCurrencyType = nCurFmtType;
				nFmtCurrencyIndex = nCurFmtIndex;
			break;
            case NUMBERFORMAT_PERCENT :
                nFmtPercentType = NUMBERFORMAT_PERCENT;
            break;
		}
	}
	if ( GetStackType() == svMatrix )
		pMat1 = GetMatrix();
	else
	{
		fVal1 = GetDouble();
		switch ( nCurFmtType )
		{
			case NUMBERFORMAT_DATE :
			case NUMBERFORMAT_TIME :
			case NUMBERFORMAT_DATETIME :
				nFmt1 = nCurFmtType;
			break;
			case NUMBERFORMAT_CURRENCY :
				nFmtCurrencyType = nCurFmtType;
				nFmtCurrencyIndex = nCurFmtIndex;
			break;
            case NUMBERFORMAT_PERCENT :
                nFmtPercentType = NUMBERFORMAT_PERCENT;
            break;
		}
	}
	if (pMat1 && pMat2)
	{
		ScMatrixRef pResMat = MatSub(pMat1, pMat2);
=====================================================================
Found a 51 line (190 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/localedata/saxparser.cxx
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/saxdemo.cxx

    virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
		throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
		{
			// not implemented
		}
    virtual sal_Int32 SAL_CALL available(  )
		throw(NotConnectedException, IOException, RuntimeException)
		{
			return m_seq.getLength() - nPos;
		}
    virtual void SAL_CALL closeInput(  )
		throw(NotConnectedException, IOException, RuntimeException)
		{
			// not needed
		}
	sal_Int32 nPos;
	Sequence< sal_Int8> m_seq;
};

//-------------------------------
// Helper : create an input stream from a file
//------------------------------
Reference< XInputStream > createStreamFromFile(
	const char *pcFile )
{
	FILE *f = fopen( pcFile , "rb" );
	Reference<  XInputStream >  r;

	if( f ) {
		fseek( f , 0 , SEEK_END );
		int nLength = ftell( f );
		fseek( f , 0 , SEEK_SET );

		Sequence<sal_Int8> seqIn(nLength);
		fread( seqIn.getArray() , nLength , 1 , f );

		r = Reference< XInputStream > ( new OInputStream( seqIn ) );
		fclose( f );
	}
	return r;
}

//-----------------------------------------
// The document handler, which is needed for the saxparser
// The Documenthandler for reading sax
//-----------------------------------------
class TestDocumentHandler :
	public WeakImplHelper3< XExtendedDocumentHandler , XEntityResolver , XErrorHandler >
{
public:
	TestDocumentHandler(  )
=====================================================================
Found a 42 line (190 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/scanner/scanwin.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/scanner/twain.cxx

			if( ( ( pDSM = (DSMENTRYPROC) pMod->getSymbol( TWAIN_FUNCNAME ) ) != NULL ) &&
				( PFUNC( &aAppIdent, NULL, DG_CONTROL, DAT_PARENT, MSG_OPENDSM, &hTwainWnd ) == TWRC_SUCCESS ) )
			{
				nCurState = 3;
			}
		}
		else
		{
			delete pMod;
			pMod = NULL;
		}
	}
}

// -----------------------------------------------------------------------------

void ImpTwain::ImplOpenSource()
{
	if( 3 == nCurState )
	{
		if( ( PFUNC( &aAppIdent, NULL, DG_CONTROL, DAT_IDENTITY, MSG_GETDEFAULT, &aSrcIdent ) == TWRC_SUCCESS ) &&
			( PFUNC( &aAppIdent, NULL, DG_CONTROL, DAT_IDENTITY, MSG_OPENDS, &aSrcIdent ) == TWRC_SUCCESS ) )
		{
#ifdef OS2

			// negotiate capabilities
			
#else

			TW_CAPABILITY	aCap = { CAP_XFERCOUNT, TWON_ONEVALUE, GlobalAlloc( GHND, sizeof( TW_ONEVALUE ) ) };
			TW_ONEVALUE*	pVal = (TW_ONEVALUE*) GlobalLock( aCap.hContainer );

			pVal->ItemType = TWTY_INT16, pVal->Item = 1;
			GlobalUnlock( aCap.hContainer );
			PFUNC( &aAppIdent, &aSrcIdent, DG_CONTROL, DAT_CAPABILITY, MSG_SET, &aCap );
			GlobalFree( aCap.hContainer );
#endif

			nCurState = 4;
		}
	}
}
=====================================================================
Found a 16 line (189 tokens) duplication in the following files: 
Starting at line 321 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_outline_aa.h
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_outline_image.h

                               int len, double scale, int x, int y) :
            m_dx(x2 - x1),
            m_dy(y2 - y1),
            m_dx_start(line_mr(sx) - line_mr(x1)),
            m_dy_start(line_mr(sy) - line_mr(y1)),
            m_dx_end(line_mr(ex) - line_mr(x2)),
            m_dy_end(line_mr(ey) - line_mr(y2)),

            m_dist(int(double(x + line_subpixel_size/2 - x2) * double(m_dy) - 
                       double(y + line_subpixel_size/2 - y2) * double(m_dx))),

            m_dist_start((line_mr(x + line_subpixel_size/2) - line_mr(sx)) * m_dy_start - 
                         (line_mr(y + line_subpixel_size/2) - line_mr(sy)) * m_dx_start),

            m_dist_end((line_mr(x + line_subpixel_size/2) - line_mr(ex)) * m_dy_end - 
                       (line_mr(y + line_subpixel_size/2) - line_mr(ey)) * m_dx_end),
=====================================================================
Found a 42 line (189 tokens) duplication in the following files: 
Starting at line 535 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi3.cxx
Starting at line 617 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi3.cxx

    if( rMetric.ntmFlags & NTM_TYPE1 )
        aDFA.mbEmbeddable = true;

    // heuristics for font quality
    // -   standard-type1 > opentypeTT > truetype > non-standard-type1 > raster
    // -   subsetting > embedding > none
    aDFA.mnQuality = 0;
    if( rMetric.tmPitchAndFamily & TMPF_TRUETYPE )
        aDFA.mnQuality += 50;
    if( rMetric.ntmFlags & NTM_TT_OPENTYPE )
        aDFA.mnQuality += 10;
    if( aDFA.mbSubsettable )
        aDFA.mnQuality += 200;
    else if( aDFA.mbEmbeddable )
        aDFA.mnQuality += 100;

    // #i38665# prefer Type1 versions of the standard postscript fonts
    if( aDFA.mbEmbeddable )
    {
        if( aDFA.maName.EqualsAscii( "AvantGarde" )
        ||  aDFA.maName.EqualsAscii( "Bookman" )
        ||  aDFA.maName.EqualsAscii( "Courier" )
        ||  aDFA.maName.EqualsAscii( "Helvetica" )
        ||  aDFA.maName.EqualsAscii( "NewCenturySchlbk" )
        ||  aDFA.maName.EqualsAscii( "Palatino" )
        ||  aDFA.maName.EqualsAscii( "Symbol" )
        ||  aDFA.maName.EqualsAscii( "Times" )
        ||  aDFA.maName.EqualsAscii( "ZapfChancery" )
        ||  aDFA.maName.EqualsAscii( "ZapfDingbats" ) )
            aDFA.mnQuality += 500;
    }

    aDFA.meEmbeddedBitmap = EMBEDDEDBITMAP_DONTKNOW;
    aDFA.meAntiAlias = ANTIALIAS_DONTKNOW;

    // TODO: add alias names
    return aDFA;
}

// -----------------------------------------------------------------------

static ImplWinFontData* ImplLogMetricToDevFontDataA( const ENUMLOGFONTEXA* pLogFont,
=====================================================================
Found a 37 line (189 tokens) duplication in the following files: 
Starting at line 329 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

	PspSalInfoPrinter* pPrinter = new PspSalInfoPrinter;

	if( pJobSetup )
	{
		PrinterInfoManager& rManager( PrinterInfoManager::get() );
		PrinterInfo aInfo( rManager.getPrinterInfo( pQueueInfo->maPrinterName ) );
		pPrinter->m_aJobData = aInfo;
		pPrinter->m_aPrinterGfx.Init( pPrinter->m_aJobData );

		if( pJobSetup->mpDriverData )
			JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aInfo );

		pJobSetup->mnSystem			= JOBSETUP_SYSTEM_UNIX;
		pJobSetup->maPrinterName	= pQueueInfo->maPrinterName;
		pJobSetup->maDriver			= aInfo.m_aDriverName;
		copyJobDataToJobSetup( pJobSetup, aInfo );
        
        // set/clear backwards compatibility flag
        bool bStrictSO52Compatibility = false;
        std::hash_map<rtl::OUString, rtl::OUString, rtl::OUStringHash >::const_iterator compat_it =
            pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" ) ) );
           
        if( compat_it != pJobSetup->maValueMap.end() )
        {
            if( compat_it->second.equalsIgnoreAsciiCaseAscii( "true" ) )
                bStrictSO52Compatibility = true;
        }
        pPrinter->m_aPrinterGfx.setStrictSO52Compatibility( bStrictSO52Compatibility );
	}


	return pPrinter;
}

// -----------------------------------------------------------------------

void X11SalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
=====================================================================
Found a 28 line (189 tokens) duplication in the following files: 
Starting at line 1146 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/print2.cxx
Starting at line 1215 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/print2.cxx

            const Size      aBmpSize( aBmpEx.GetSizePixel() );
            const double    fBmpPixelX = aBmpSize.Width();
            const double    fBmpPixelY = aBmpSize.Height();
            const double    fMaxPixelX = aDstSizeTwip.Width() * nMaxBmpDPIX / 1440.0;
            const double    fMaxPixelY = aDstSizeTwip.Height() * nMaxBmpDPIY / 1440.0;

            // check, if the bitmap DPI exceeds the maximum DPI (allow 4 pixel rounding tolerance)
            if( ( ( fBmpPixelX > ( fMaxPixelX + 4 ) ) || 
                  ( fBmpPixelY > ( fMaxPixelY + 4 ) ) ) && 
                ( fBmpPixelY > 0.0 ) && ( fMaxPixelY > 0.0 ) )
            {
                // do scaling
                Size            aNewBmpSize;
		        const double    fBmpWH = fBmpPixelX / fBmpPixelY;
		        const double    fMaxWH = fMaxPixelX / fMaxPixelY;

			    if( fBmpWH < fMaxWH )
			    {
				    aNewBmpSize.Width() = FRound( fMaxPixelY * fBmpWH );
				    aNewBmpSize.Height() = FRound( fMaxPixelY );
			    }
			    else if( fBmpWH > 0.0 )
			    {
				    aNewBmpSize.Width() = FRound( fMaxPixelX );
				    aNewBmpSize.Height() = FRound( fMaxPixelX / fBmpWH);
			    }

                if( aNewBmpSize.Width() && aNewBmpSize.Height() )
=====================================================================
Found a 24 line (189 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx

BOOL Bitmap::ImplMedianFilter( const BmpFilterParam* /*pFilterParam*/, const Link* /*pProgress*/ )
{
	BitmapReadAccess*	pReadAcc = AcquireReadAccess();
	BOOL				bRet = FALSE;

	if( pReadAcc )
	{
		Bitmap				aNewBmp( GetSizePixel(), 24 );
		BitmapWriteAccess*	pWriteAcc = aNewBmp.AcquireWriteAccess();

		if( pWriteAcc )
		{
			const long		nWidth = pWriteAcc->Width(), nWidth2 = nWidth + 2;
			const long		nHeight = pWriteAcc->Height(), nHeight2 = nHeight + 2;
			long*			pColm = new long[ nWidth2 ];
			long*			pRows = new long[ nHeight2 ];
			BitmapColor*	pColRow1 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
			BitmapColor*	pColRow2 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
			BitmapColor*	pColRow3 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
			BitmapColor*	pRowTmp1 = pColRow1;
			BitmapColor*	pRowTmp2 = pColRow2;
			BitmapColor*	pRowTmp3 = pColRow3;
			BitmapColor*	pColor;
			long			nY, nX, i;
=====================================================================
Found a 32 line (189 tokens) duplication in the following files: 
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx
Starting at line 1671 of /local/ooo-build/ooo-build/src/oog680-m3/uui/source/iahndl.cxx

                    aRec(xContainer->find(rRequest.ServerName, xIH));
                if (aRec.UserList.getLength() != 0)
                {
                    if (xSupplyAuthentication->canSetUserName())
                        xSupplyAuthentication->
                            setUserName(aRec.UserList[0].UserName.getStr());
                    if (xSupplyAuthentication->canSetPassword())
                    {
                        OSL_ENSURE(aRec.UserList[0].Passwords.getLength() != 0,
                                   "empty password list");
                        xSupplyAuthentication->
                            setPassword(
				aRec.UserList[0].Passwords[0].getStr());
                    }
                    if (aRec.UserList[0].Passwords.getLength() > 1)
                        if (rRequest.HasRealm)
                        {
                            if (xSupplyAuthentication->canSetRealm())
                                xSupplyAuthentication->
                                    setRealm(aRec.UserList[0].Passwords[1].
                                             getStr());
                        }
                        else if (xSupplyAuthentication->canSetAccount())
                            xSupplyAuthentication->
                                setAccount(aRec.UserList[0].Passwords[1].
                                           getStr());
                    xSupplyAuthentication->select();
                    return;
                }
            }
            else
            {
=====================================================================
Found a 19 line (189 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx
Starting at line 503 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

                sizeof( aArr1 ), aArr1 );

    static const sal_uInt8 aComboData1[] =
    {
        0,0,0,0,        // len of struct
        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
    };
    pDataStrm->Write( aComboData1, sizeof(aComboData1) );

    static const sal_uInt8 aComboData2[] =
    {
        0xFF, 0xFF, 0xFF, 0xFF
    };
    pDataStrm->Write( aComboData2, sizeof(aComboData2) );
=====================================================================
Found a 24 line (189 tokens) duplication in the following files: 
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx

	double fScanInc    = (double)nMinRect / (double)nSteps * 0.5;

	// Intensitaeten von Start- und Endfarbe ggf. aendern und
	// Farbschrittweiten berechnen
	long            nFactor;
	const Color&    rStartCol   = rGradient.GetStartColor();
	const Color&    rEndCol     = rGradient.GetEndColor();
	long            nRed        = rStartCol.GetRed();
	long            nGreen      = rStartCol.GetGreen();
	long            nBlue       = rStartCol.GetBlue();
	long            nEndRed     = rEndCol.GetRed();
	long            nEndGreen   = rEndCol.GetGreen();
	long            nEndBlue    = rEndCol.GetBlue();
	nFactor                     = rGradient.GetStartIntensity();
	nRed                        = (nRed   * nFactor) / 100;
	nGreen                      = (nGreen * nFactor) / 100;
	nBlue                       = (nBlue  * nFactor) / 100;
	nFactor                     = rGradient.GetEndIntensity();
	nEndRed                     = (nEndRed   * nFactor) / 100;
	nEndGreen                   = (nEndGreen * nFactor) / 100;
	nEndBlue                    = (nEndBlue  * nFactor) / 100;
	long            nStepRed    = (nEndRed   - nRed)   / nSteps;
	long            nStepGreen  = (nEndGreen - nGreen) / nSteps;
	long            nStepBlue   = (nEndBlue  - nBlue)  / nSteps;
=====================================================================
Found a 8 line (189 tokens) duplication in the following files: 
Starting at line 526 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 562 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Pchar */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* !"#$%&'()*+,-./*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, /*0123456789:;<=>?*/
=====================================================================
Found a 52 line (189 tokens) duplication in the following files: 
Starting at line 2599 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 1274 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT );
			::osl::StreamSocket ssConnection;
			
			/// launch server socket 
			asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); // sal_True);
			sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket bind address failed.", sal_True == bOK1 );
			sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket listen failed.",  sal_True == bOK2 );
			
			sal_Bool bOK3 = asAcceptorSocket.isNonBlockingMode( );
			asAcceptorSocket.enableNonBlockingMode( sal_True );
 			asAcceptorSocket.acceptConnection(ssConnection); /// waiting for incoming connection...
 
			/// if reach this statement, it is non-blocking mode, since acceptConnection will blocked by default. 
			sal_Bool bOK4 = asAcceptorSocket.isNonBlockingMode( );
			asAcceptorSocket.close( );
				
			CPPUNIT_ASSERT_MESSAGE( "test for isNonBlockingMode function: launch a server socket and make it non blocking. it is expected to change from blocking mode to non-blocking mode.",
  									( sal_False == bOK3 ) && ( sal_True == bOK4 ) );
		}
	
		
		CPPUNIT_TEST_SUITE( isNonBlockingMode );
		CPPUNIT_TEST( isNonBlockingMode_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class isNonBlockingMode

	/** testing the method:
		inline void	SAL_CALL clearError() const;
	*/
	class clearError : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
		void clearError_001()
		{
			::osl::Socket sSocket(sHandle);
			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("123.45.67.89"), IP_PORT_HTTP2 );
=====================================================================
Found a 39 line (189 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/marktest.cxx
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/marktest.cxx

	~OMarkableInputStreamTest();

public: // implementation names
    static Sequence< OUString > 	getSupportedServiceNames_Static(void) throw () ;
	static OUString 				getImplementationName_Static() throw () ;

public:
    virtual void SAL_CALL testInvariant(
		const OUString& TestName,
		const Reference < XInterface >& TestObject)
		throw (	IllegalArgumentException, RuntimeException) ;

    virtual sal_Int32 SAL_CALL test(
		const OUString& TestName,
		const Reference < XInterface >& TestObject,
		sal_Int32 hTestHandle)
		throw (	IllegalArgumentException,
				RuntimeException) ;

    virtual sal_Bool SAL_CALL testPassed(void)
		throw (	RuntimeException);
    virtual Sequence< OUString > SAL_CALL getErrors(void)
		throw (RuntimeException);
    virtual Sequence< Any > SAL_CALL getErrorExceptions(void)
		throw (RuntimeException);
    virtual Sequence< OUString > SAL_CALL getWarnings(void)
		throw (RuntimeException);

private:
	void testSimple( const Reference< XOutputStream > &r,
					 const Reference < XInputStream > &rInput );

private:
	Sequence<Any>  m_seqExceptions;
	Sequence<OUString> m_seqErrors;
	Sequence<OUString> m_seqWarnings;
	Reference< XMultiServiceFactory > m_rFactory;

};
=====================================================================
Found a 7 line (189 tokens) duplication in the following files: 
Starting at line 1398 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30a0 - 30af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30b0 - 30bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30c0 - 30cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30e0 - 30ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff
=====================================================================
Found a 7 line (189 tokens) duplication in the following files: 
Starting at line 1372 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1392 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10, 0, 0, 0, 0, 0,10,10,10,10,10,10,10,// 2610 - 261f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2620 - 262f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2630 - 263f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2640 - 264f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2650 - 265f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2660 - 266f
    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2670 - 267f
=====================================================================
Found a 7 line (189 tokens) duplication in the following files: 
Starting at line 1349 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30a0 - 30af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30b0 - 30bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30c0 - 30cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30e0 - 30ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff
=====================================================================
Found a 7 line (189 tokens) duplication in the following files: 
Starting at line 1314 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1392 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10, 0, 0, 0, 0, 0,10,10,10,10,10,10,10,// 2610 - 261f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2620 - 262f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2630 - 263f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2640 - 264f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2650 - 265f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2660 - 266f
    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2670 - 267f
=====================================================================
Found a 7 line (189 tokens) duplication in the following files: 
Starting at line 1018 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30a0 - 30af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30b0 - 30bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30c0 - 30cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30e0 - 30ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff
=====================================================================
Found a 6 line (189 tokens) duplication in the following files: 
Starting at line 968 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1544 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10, 4, 4, 4,10,10,10,10,10, 4, 6, 4, 6, 3,// ff00 - ff0f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6,10,10,10,10,10,// ff10 - ff1f
    10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff20 - ff2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10,10,10,10,10,// ff30 - ff3f
    10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff40 - ff4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10,10,10,10, 0,// ff50 - ff5f
=====================================================================
Found a 6 line (189 tokens) duplication in the following files: 
Starting at line 773 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 877 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd90 - fd9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fda0 - fdaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fdb0 - fdbf
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// fdc0 - fdcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fdd0 - fddf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fde0 - fdef
=====================================================================
Found a 7 line (189 tokens) duplication in the following files: 
Starting at line 475 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 1e90 - 1e9f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1ea0 - 1eaf
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1eb0 - 1ebf
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1ec0 - 1ecf
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1ed0 - 1edf
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1ee0 - 1eef
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 0, 0, 0, 0,// 1ef0 - 1eff
=====================================================================
Found a 8 line (189 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 13f0 - 13ff

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1400 - 140f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1410 - 141f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1420 - 142f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1430 - 143f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1440 - 144f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1450 - 145f
=====================================================================
Found a 6 line (189 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 718 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3130 - 313f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3140 - 314f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3150 - 315f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3160 - 316f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3170 - 317f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0,// 3180 - 318f
=====================================================================
Found a 6 line (189 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 902 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,23,23,23,25,23,23,23,20,21,23,24,23,19,23,23,// ff00 - ff0f
     9, 9, 9, 9, 9, 9, 9, 9, 9, 9,23,23,24,24,24,23,// ff10 - ff1f
    23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,// ff20 - ff2f
     1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,20,23,21,26,22,// ff30 - ff3f
    26, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// ff40 - ff4f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,20,24,21,24, 0,// ff50 - ff5f
=====================================================================
Found a 5 line (189 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x0231}, {0x15, 0x0230}, {0x6a, 0x0233}, {0x15, 0x0232}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0230 - 0237
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0238 - 023f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0240 - 0247
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0248 - 024f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x15, 0x0181}, {0x15, 0x0186}, {0x00, 0x0000}, {0x15, 0x0189}, {0x15, 0x018A}, // 0250 - 0257
=====================================================================
Found a 6 line (189 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1223 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1620 - 162f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1630 - 163f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1640 - 164f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1650 - 165f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1660 - 166f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1670 - 167f
=====================================================================
Found a 7 line (189 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0240 - 024f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 0250 - 025f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 0260 - 026f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 0270 - 027f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 0280 - 028f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 0290 - 029f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0,// 02a0 - 02af
=====================================================================
Found a 7 line (189 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30a0 - 30af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30b0 - 30bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30c0 - 30cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30e0 - 30ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff
=====================================================================
Found a 9 line (189 tokens) duplication in the following files: 
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 3703 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

	m_pDbgWin->AddText( String::CreateFromInt32( nMethodId ) );
	m_pDbgWin->AddText( " Params:" );
	if( nParams & PARAM_USHORT_1 )	{m_pDbgWin->AddText( " n1:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr1 ) );}
	if( nParams & PARAM_USHORT_2 )	{m_pDbgWin->AddText( " n2:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr2 ) );}
	if( nParams & PARAM_USHORT_3 )	{m_pDbgWin->AddText( " n3:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr3 ) );}
	if( nParams & PARAM_USHORT_4 )	{m_pDbgWin->AddText( " n4:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr4 ) );}
	if( nParams & PARAM_ULONG_1 )	{m_pDbgWin->AddText( " nl1:" );m_pDbgWin->AddText( String::CreateFromInt64( nLNr1 ) );}
	if( nParams & PARAM_STR_1 )		{m_pDbgWin->AddText( " s1:" );m_pDbgWin->AddText( aString1 );}
	if( nParams & PARAM_STR_2 )		{m_pDbgWin->AddText( " s2:" );m_pDbgWin->AddText( aString2 );}
=====================================================================
Found a 35 line (188 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokTestService.cxx
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx

			xTransact->commit();


        ::ucbhelper::ContentBroker::deinitialize();
	}
	else
	{
		fprintf(stderr, "can't initialize UCB");
	}
	return 0;
}

::rtl::OUString ScannerTestService_getImplementationName ()
{
	return rtl::OUString::createFromAscii ( ScannerTestService::IMPLEMENTATION_NAME );
}

sal_Bool SAL_CALL ScannerTestService_supportsService( const ::rtl::OUString& ServiceName )
{
	return ServiceName.equals( rtl::OUString::createFromAscii( ScannerTestService::SERVICE_NAME ) );
}
uno::Sequence< rtl::OUString > SAL_CALL ScannerTestService_getSupportedServiceNames(  ) throw (uno::RuntimeException)
{
	uno::Sequence < rtl::OUString > aRet(1);
	rtl::OUString* pArray = aRet.getArray();
	pArray[0] =  rtl::OUString::createFromAscii ( ScannerTestService::SERVICE_NAME );
	return aRet;
}

uno::Reference< uno::XInterface > SAL_CALL ScannerTestService_createInstance( const uno::Reference< uno::XComponentContext > & xContext) throw( uno::Exception )
{
	return (cppu::OWeakObject*) new ScannerTestService( xContext );
}

} } /* end namespace writerfilter::rtftok */
=====================================================================
Found a 34 line (188 tokens) duplication in the following files: 
Starting at line 6176 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6473 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        if (nFib > 105)
        {
            adt = Get_Short( pData );

            doptypography.ReadFromMem(pData);

            memcpy( &dogrid, pData, sizeof( WW8_DOGRID ));
            pData += sizeof( WW8_DOGRID );

            a16Bit = Get_UShort( pData );
            // die untersten 9 Bit sind uninteressant
            fHtmlDoc                = ( a16Bit &  0x0200 ) >>  9 ;
            fSnapBorder             = ( a16Bit &  0x0800 ) >> 11 ;
            fIncludeHeader          = ( a16Bit &  0x1000 ) >> 12 ;
            fIncludeFooter          = ( a16Bit &  0x2000 ) >> 13 ;
            fForcePageSizePag       = ( a16Bit &  0x4000 ) >> 14 ;
            fMinFontSizePag         = ( a16Bit &  0x8000 ) >> 15 ;

            a16Bit = Get_UShort( pData );
            fHaveVersions   = 0 != ( a16Bit  &  0x0001 );
            fAutoVersion    = 0 != ( a16Bit  &  0x0002 );

            pData += 12;

            cChWS = Get_Long( pData );
            cChWSFtnEdn = Get_Long( pData );
            grfDocEvents = Get_Long( pData );

            pData += 4+30+8;

            cDBC = Get_Long( pData );
            cDBCFtnEdn = Get_Long( pData );

            pData += 1 * sizeof( INT32);
=====================================================================
Found a 28 line (188 tokens) duplication in the following files: 
Starting at line 784 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/fly.cxx
Starting at line 2398 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/sectfrm.cxx

void SwSectionFrm::Modify( SfxPoolItem * pOld, SfxPoolItem * pNew )
{
	BYTE nInvFlags = 0;

	if( pNew && RES_ATTRSET_CHG == pNew->Which() )
	{
		SfxItemIter aNIter( *((SwAttrSetChg*)pNew)->GetChgSet() );
		SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() );
		SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld );
		SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew );
		while( TRUE )
		{
			_UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(),
						 (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags,
						 &aOldSet, &aNewSet );
			if( aNIter.IsAtEnd() )
				break;
			aNIter.NextItem();
			aOIter.NextItem();
		}
		if ( aOldSet.Count() || aNewSet.Count() )
			SwLayoutFrm::Modify( &aOldSet, &aNewSet );
	}
	else
		_UpdateAttr( pOld, pNew, nInvFlags );

	if ( nInvFlags != 0 )
	{
=====================================================================
Found a 43 line (188 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx
Starting at line 1165 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx

	storeError eErrCode = find (e, *m_pNode[0]);
	if (eErrCode != store_E_None)
		return eErrCode;

	// Find Index.
	sal_uInt16 i = m_pNode[0]->find(e), n = m_pNode[0]->usageCount();
	if (!(i < n))
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Check for exact match.
	if (!(e.compare (m_pNode[0]->m_pData[i]) == entry::COMPARE_EQUAL))
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Existing entry. Check address.
	e = m_pNode[0]->m_pData[i];
	if (e.m_aLink.m_nAddr == STORE_PAGE_NULL)
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Check for hardlink.
	if (!(e.m_nAttrib & STORE_ATTRIB_ISLINK))
	{
		// Check directory page buffer.
		if (!m_pDirect)
			m_pDirect = new(m_nPageSize) inode(m_nPageSize);
		if (!m_pDirect)
			return store_E_OutOfMemory;

		// Load directory page.
		OStoreDirectoryPageObject aPage (*m_pDirect);
		aPage.location (e.m_aLink.m_nAddr);

		eErrCode = base::load (aPage);
		if (eErrCode != store_E_None)
			return eErrCode;
=====================================================================
Found a 32 line (188 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/linkdlg2.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/linkdlg.cxx

IMPL_LINK( SvBaseLinksDlg, LinksSelectHdl, SvTabListBox *, pSvTabListBox )
{
	USHORT nSelectionCount = pSvTabListBox ?
		(USHORT)pSvTabListBox->GetSelectionCount() : 0;
	if(nSelectionCount > 1)
	{
		//bei Mehrfachselektion ggf. alte Eintraege deselektieren
		SvLBoxEntry* pEntry = 0;
		SvBaseLink* pLink = 0;
		pEntry = pSvTabListBox->GetHdlEntry();
		pLink = (SvBaseLink*)pEntry->GetUserData();
		USHORT nObjectType = pLink->GetObjType();
		if((OBJECT_CLIENT_FILE & nObjectType) != OBJECT_CLIENT_FILE)
		{
			pSvTabListBox->SelectAll(FALSE);
			pSvTabListBox->Select(pEntry);
			nSelectionCount = 1;
		}
		else
		{
			for( USHORT i = 0; i < nSelectionCount; i++)
			{
				pEntry = i == 0 ? pSvTabListBox->FirstSelected() :
									pSvTabListBox->NextSelected(pEntry);
				DBG_ASSERT(pEntry, "Wo ist der Entry?")
				pLink = (SvBaseLink*)pEntry->GetUserData();
				DBG_ASSERT(pLink, "Wo ist der Link?")
				if( (OBJECT_CLIENT_FILE & pLink->GetObjType()) != OBJECT_CLIENT_FILE )
					pSvTabListBox->Select( pEntry, FALSE );

			}
		}
=====================================================================
Found a 37 line (188 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/macropg.cxx
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/macropg.cxx

}

_HeaderTabListBox::~_HeaderTabListBox()
{
}

void _HeaderTabListBox::ConnectElements( void )
{
    // calc pos and size of header bar
    Point    aPnt( 0, 0 );
    Size    aSize( maHeaderBar.CalcWindowSizePixel() );
    Size    aCtrlSize( GetOutputSizePixel() );
    aSize.Width() = aCtrlSize.Width();
    maHeaderBar.SetPosSizePixel( aPnt, aSize );

    // calc pos and size of ListBox
    aPnt.Y() += aSize.Height();
    aSize.Height() = aCtrlSize.Height() - aSize.Height();
    maListBox.SetPosSizePixel( aPnt, aSize );

    // set handler
    maHeaderBar.SetEndDragHdl( LINK( this, _HeaderTabListBox, HeaderEndDrag_Impl ) );

    maListBox.InitHeaderBar( &maHeaderBar );
}

void _HeaderTabListBox::Show( BOOL bVisible, USHORT nFlags )
{
    maListBox.Show( bVisible, nFlags );
    maHeaderBar.Show( bVisible, nFlags );
}

void _HeaderTabListBox::Enable( bool bEnable, bool bChild )
{
    maListBox.Enable( bEnable, bChild );
    maHeaderBar.Enable( bEnable, bChild );
}
=====================================================================
Found a 12 line (188 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/bastyp/fltfnc.cxx
Starting at line 1266 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/bastyp/fltfnc.cxx

    {
        // get the FilterFactory service to access the registered filters ... and types!
        ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
        ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >     xFilterCFG                                                ;
        ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >     xTypeCFG                                                  ;
        if( xServiceManager.is() == sal_True )
        {
            xFilterCFG = ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >( xServiceManager->createInstance( DEFINE_CONST_UNICODE( "com.sun.star.document.FilterFactory" ) ), ::com::sun::star::uno::UNO_QUERY );
            xTypeCFG   = ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >( xServiceManager->createInstance( DEFINE_CONST_UNICODE( "com.sun.star.document.TypeDetection" ) ), ::com::sun::star::uno::UNO_QUERY );
        }

        if(
=====================================================================
Found a 38 line (188 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/backtrace.c
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/backtrace.c

		fp=fp->fr_savfp;
	}
	return i;
}

void backtrace_symbols_fd( void **buffer, int size, int fd )
{
	FILE	*fp = fdopen( fd, "w" );

	if ( fp )
	{
		void **pFramePtr;

		for ( pFramePtr = buffer; size > 0 && pFramePtr && *pFramePtr; pFramePtr++, size-- )
		{
			Dl_info		dli;
			ptrdiff_t	offset;

			if ( 0 != dladdr( *pFramePtr, &dli ) )
			{
				if ( dli.dli_fname && dli.dli_fbase )
				{
					offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase;
					fprintf( fp, "%s+0x%x", dli.dli_fname, offset );
				}
				if ( dli.dli_sname && dli.dli_saddr )
				{
					offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr;
					fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset );
				}
			}
			fprintf( fp, "[0x%x]\n", *pFramePtr );
		}

		fflush( fp );
		fclose( fp );
	}
}
=====================================================================
Found a 28 line (188 tokens) duplication in the following files: 
Starting at line 2058 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx
Starting at line 2258 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx

    sal_Int32 nLastPos( 0 );

    for ( j = 0; j < sal_Int32( aWindowVector.size()); j++ )
    {
        const UIElement& rElement = aWindowVector[j];
        Reference< css::awt::XWindow > xWindow;
        Reference< XUIElement > xUIElement( rElement.m_xUIElement );
        css::awt::Rectangle aPosSize;
        if ( xUIElement.is() )
        {
            vos::OGuard	aGuard( Application::GetSolarMutex() );
            xWindow = Reference< css::awt::XWindow >( xUIElement->getRealInterface(), UNO_QUERY );
            aPosSize = xWindow->getPosSize();

            Window* pWindow = VCLUnoHelper::GetWindow( xWindow );
            if ( pWindow->GetType() == WINDOW_TOOLBOX )
            {
                ::Size aSize = ((ToolBox*)pWindow)->CalcWindowSizePixel( 1 );
                aPosSize.Width = aSize.Width();
                aPosSize.Height = aSize.Height();
            }
        }
        else
            continue;

        if (( eDockingArea == DockingArea_DOCKINGAREA_TOP ) ||
            ( eDockingArea == DockingArea_DOCKINGAREA_BOTTOM ))
        {
=====================================================================
Found a 26 line (188 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfileview.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/docvw/srcedtw.cxx

void  SwSrcEditWindow::Resize()
{
	// ScrollBars, etc. passiert in Adjust...
	if ( pTextView )
	{
		long nVisY = pTextView->GetStartDocPos().Y();
		pTextView->ShowCursor();
		Size aOutSz( GetOutputSizePixel() );
		long nMaxVisAreaStart = pTextView->GetTextEngine()->GetTextHeight() - aOutSz.Height();
		if ( nMaxVisAreaStart < 0 )
			nMaxVisAreaStart = 0;
		if ( pTextView->GetStartDocPos().Y() > nMaxVisAreaStart )
		{
			Point aStartDocPos( pTextView->GetStartDocPos() );
			aStartDocPos.Y() = nMaxVisAreaStart;
			pTextView->SetStartDocPos( aStartDocPos );
			pTextView->ShowCursor();
		}
        long nScrollStd = GetSettings().GetStyleSettings().GetScrollBarSize();
		Size aScrollSz(aOutSz.Width() - nScrollStd, nScrollStd );
		Point aScrollPos(0, aOutSz.Height() - nScrollStd);

		pHScrollbar->SetPosSizePixel( aScrollPos, aScrollSz);

		aScrollSz.Width() = aScrollSz.Height();
		aScrollSz.Height() = aOutSz.Height();
=====================================================================
Found a 30 line (188 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/microsft/tempnam.c
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/tempnam.c

   sprintf( buf, "%08x", getpid() );
   buf[6]='\0';
   (void)strcat(p, buf );
   sprintf( buf, "%04d", count++ );
   q=p+strlen(p)-6;
   *q++ = buf[0]; *q++ = buf[1];
   *q++ = buf[2]; *q++ = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;
   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 34 line (188 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LFolderList.cxx
Starting at line 625 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx

						(*_rRow)[i+1]->setNull();
					}
				}	break;
				case DataType::DOUBLE:
				case DataType::INTEGER:
				case DataType::DECIMAL:				// #99178# OJ
				case DataType::NUMERIC:
				{
					sal_Unicode cDecimalDelimiter = pConnection->getDecimalDelimiter();
					sal_Unicode cThousandDelimiter = pConnection->getThousandDelimiter();
					String aStrConverted;

					OSL_ENSURE(cDecimalDelimiter && nType != DataType::INTEGER ||
							   !cDecimalDelimiter && nType == DataType::INTEGER,
							   "FalscherTyp");

					// In Standard-Notation (DezimalPUNKT ohne Tausender-Komma) umwandeln:
					for (xub_StrLen j = 0; j < aStr.Len(); ++j)
					{
						if (cDecimalDelimiter && aStr.GetChar(j) == cDecimalDelimiter)
							aStrConverted += '.';
						else if ( aStr.GetChar(j) == '.' ) // special case, if decimal seperator isn't '.' we have to vut the string after it
							break; // #99189# OJ
						else if (cThousandDelimiter && aStr.GetChar(j) == cThousandDelimiter)
						{
							// weglassen
						}
						else
							aStrConverted += aStr.GetChar(j) ;
					}
					double nVal = ::rtl::math::stringToDouble(aStrConverted.GetBuffer(),',','.',NULL,NULL);

					// #99178# OJ
					if ( DataType::DECIMAL == nType || DataType::NUMERIC == nType )
=====================================================================
Found a 16 line (188 tokens) duplication in the following files: 
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx

::com::sun::star::uno::Any WrappedUpDownProperty::getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& /*xInnerPropertySet*/ ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
    Reference< chart2::XChartDocument > xChartDoc( m_spChart2ModelContact->getChart2Document() );
    Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
    if( xDiagram.is() && xChartDoc.is() )
    {
        ::std::vector< uno::Reference< chart2::XDataSeries > > aSeriesVector(
            DiagramHelper::getDataSeriesFromDiagram( xDiagram ) );
        if( aSeriesVector.size() > 0 )
        {
            Reference< lang::XMultiServiceFactory > xFact( xChartDoc->getChartTypeManager(), uno::UNO_QUERY );
            DiagramHelper::tTemplateWithServiceName aTemplateAndService =
                    DiagramHelper::getTemplateForDiagram( xDiagram, xFact );

            if(    aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockOpenLowHighClose" ) )
=====================================================================
Found a 29 line (188 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
			pUnoArgs[nPos] = pCppStack;
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 23 line (187 tokens) duplication in the following files: 
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salframe.h
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salframe.h

    virtual void				ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
    virtual void				StartPresentation( BOOL bStart );
    virtual void				SetAlwaysOnTop( BOOL bOnTop );
    virtual void				ToTop( USHORT nFlags );
    virtual void				SetPointer( PointerStyle ePointerStyle );
    virtual void				CaptureMouse( BOOL bMouse );
    virtual void				SetPointerPos( long nX, long nY );
    virtual void				Flush();
    virtual void				Sync();
    virtual void				SetInputContext( SalInputContext* pContext );
    virtual void				EndExtTextInput( USHORT nFlags );
    virtual String				GetKeyName( USHORT nKeyCode );
    virtual String				GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
    virtual BOOL                MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
    virtual LanguageType		GetInputLanguage();
    virtual SalBitmap*			SnapShot();
    virtual void				UpdateSettings( AllSettings& rSettings );
    virtual void				Beep( SoundType eSoundType );
    virtual const SystemEnvData*	GetSystemData() const;
    virtual SalPointerState		GetPointerState();
    virtual void				SetParent( SalFrame* pNewParent );
    virtual bool				SetPluginParent( SystemParentData* pNewParent );
    virtual void                SetBackgroundBitmap( SalBitmap* );
=====================================================================
Found a 40 line (187 tokens) duplication in the following files: 
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx
Starting at line 604 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx

						pWriteAcc->SetPixel( nY, nX, aGrey );

						if( nX < ( nWidth - 1 ) )
						{
							const long nNextX = pHMap[ nX + 3 ];

							nGrey11 = nGrey12; nGrey12 = nGrey13; nGrey13 = pReadAcc->GetPixel( pVMap[ nY ], nNextX ).GetIndex();
							nGrey21 = nGrey22; nGrey22 = nGrey23; nGrey23 = pReadAcc->GetPixel( pVMap[ nY + 1 ], nNextX ).GetIndex();
							nGrey31 = nGrey32; nGrey32 = nGrey33; nGrey33 = pReadAcc->GetPixel( pVMap[ nY + 2 ], nNextX ).GetIndex();
						}
					}
				}

				delete[] pHMap;
				delete[] pVMap;
				aNewBmp.ReleaseAccess( pWriteAcc );
				bRet = TRUE;
			}

			ReleaseAccess( pReadAcc );

			if( bRet )
			{
				const MapMode	aMap( maPrefMapMode );
				const Size		aSize( maPrefSize );

				*this = aNewBmp;

				maPrefMapMode = aMap;
				maPrefSize = aSize;
			}
		}
	}

	return bRet;
}

// -----------------------------------------------------------------------------

BOOL Bitmap::ImplSolarize( const BmpFilterParam* pFilterParam, const Link* /*pProgress*/ )
=====================================================================
Found a 41 line (187 tokens) duplication in the following files: 
Starting at line 1733 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svddrgmt.cxx
Starting at line 2099 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svddrgmt.cxx

		aDistortedRect=XPolygon(aMarkRect);
		SetDragPolys();
		
		// #96920# Add extended XOR frame raster
		SdrPageView* pPV = rView.GetSdrPageView();

		if(pPV)
		{
			if(pPV->PageWindowCount())
			{
				OutputDevice& rOut = (pPV->GetPageWindow(0)->GetPaintWindow().GetOutputDevice());
				Rectangle aPixelSize = rOut.LogicToPixel(aMarkRect);

				sal_uInt32 nHorDiv(aPixelSize.GetWidth() / DRAG_CROOK_RASTER_DISTANCE);
				sal_uInt32 nVerDiv(aPixelSize.GetHeight() / DRAG_CROOK_RASTER_DISTANCE);

				if(nHorDiv > DRAG_CROOK_RASTER_MAXIMUM)
					nHorDiv = DRAG_CROOK_RASTER_MAXIMUM;
				if(nHorDiv < DRAG_CROOK_RASTER_MINIMUM)
					nHorDiv = DRAG_CROOK_RASTER_MINIMUM;

				if(nVerDiv > DRAG_CROOK_RASTER_MAXIMUM)
					nVerDiv = DRAG_CROOK_RASTER_MAXIMUM;
				if(nVerDiv < DRAG_CROOK_RASTER_MINIMUM)
					nVerDiv = DRAG_CROOK_RASTER_MINIMUM;

				basegfx::B2DPolyPolygon aPolyPolygon(pPV->getDragPoly0());
				aPolyPolygon.append(ImplCreateDragRaster(aMarkRect, nHorDiv, nVerDiv));
				pPV->setDragPoly0(aPolyPolygon);
				pPV->setDragPoly(pPV->getDragPoly0());
			}
		}

		Show();
		return TRUE;
	} else {
		return FALSE;
	}
}

void SdrDragDistort::MovAllPoints()
=====================================================================
Found a 39 line (187 tokens) duplication in the following files: 
Starting at line 2118 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2264 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		pBlockFlags[2] |= 0x40;
#endif

	*rContents << nSpecialEffect;
	pBlockFlags[3] |= 0x04;

	WriteAlign(rContents,4);
	*rContents << rSize.Width;
	*rContents << rSize.Height;

#if 0
    aValue.WriteCharArray( *rContents );
#endif

	WriteAlign(rContents,4);

    nFixedAreaLen = static_cast<sal_uInt16>(rContents->Tell()-nOldPos-4);

	bRet = aFontData.Export(rContents,rPropSet);

    rContents->Seek(nOldPos);
	*rContents << nStandardId;
	*rContents << nFixedAreaLen;

	*rContents << pBlockFlags[0];
	*rContents << pBlockFlags[1];
	*rContents << pBlockFlags[2];
	*rContents << pBlockFlags[3];
	*rContents << pBlockFlags[4];
	*rContents << pBlockFlags[5];
	*rContents << pBlockFlags[6];
	*rContents << pBlockFlags[7];

	DBG_ASSERT((rContents.Is() &&
		(SVSTREAM_OK==rContents->GetError())),"damn");
	return bRet;
}

sal_Bool OCX_FieldControl::Export(SvStorageRef &rObj,
=====================================================================
Found a 27 line (187 tokens) duplication in the following files: 
Starting at line 568 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
};

static const SvxMSDffVertPair mso_sptPentagonVert[] =
{
	{ 10800, 0 }, { 0, 8260 }, { 4230, 21600 }, { 17370, 21600 },
	{ 21600, 8260 }, { 10800, 0 }
};
static const SvxMSDffTextRectangles mso_sptPentagonTextRect[] =
{
	{ { 4230, 5080 }, { 17370, 21600 } }
};
static const SvxMSDffVertPair mso_sptPentagonGluePoints[] =
{
	{ 10800, 0 }, { 0, 8260 }, { 4230, 21600 }, { 10800, 21600 },
	{ 17370, 21600 }, { 21600, 8260 }
};
static const mso_CustomShape msoPentagon =
{
	(SvxMSDffVertPair*)mso_sptPentagonVert, sizeof( mso_sptPentagonVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0, 
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptPentagonTextRect, sizeof( mso_sptPentagonTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptPentagonGluePoints, sizeof( mso_sptPentagonGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 94 line (187 tokens) duplication in the following files: 
Starting at line 1110 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx
Starting at line 1641 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx

		ocGetDiffDate360,	//  166 D360 (US-Version, ersatzweise wie ander D360-Funktion)
		ocNoName,			//  167
		ocNoName,			//  168
		ocNoName,			//  169
		ocNoName,			//  170
		ocNoName,			//  171
		ocNoName,			//  172
		ocNoName,			//  173
		ocNoName,			//  174
		ocNoName,			//  175
		ocNoName,			//  176
		ocNoName,			//  177
		ocNoName,			//  178
		ocNoName,			//  179
		ocNoName,			//  180
		ocNoName,			//  181
		ocNoName,			//  182
		ocNoName,			//  183
		ocNoName,			//  184
		ocNoName,			//  185
		ocNoName,			//  186
		ocNoName,			//  187
		ocNoName,			//  188
		ocNoName,			//  189
		ocNoName,			//  190
		ocNoName,			//  191
		ocNoName,			//  192
		ocNoName,			//  193
		ocNoName,			//  194
		ocNoName,			//  195
		ocNoName,			//  196
		ocNoName,			//  197
		ocNoName,			//  198
		ocNoName,			//  199
		ocNoName,			//  200
		ocNoName,			//  201
		ocNoName,			//  202
		ocNoName,			//  203
		ocNoName,			//  204
		ocNoName,			//  205
		ocNoName,			//  206 ?
		ocNoName,			//  207
		ocNoName,			//  208
		ocNoName,			//  209
		ocNoName,			//  210
		ocNoName,			//  211
		ocNoName,			//  212
		ocNoName,			//  213
		ocNoName,			//  214
		ocNoName,			//  215
		ocNoName,			//  216
		ocNoName,			//  217
		ocNoName,			//  218
		ocNoName,			//  219
		ocNoName,			//  220
		ocNoName,			//  221
		ocNoName,			//  222
		ocNoName,			//  223
		ocNoName,			//  224
		ocNoName,			//  225
		ocNoName,			//  226
		ocNoName,			//  227
		ocNoName,			//  228
		ocNoName,			//  229
		ocNoName,			//  230
		ocNoName,			//  231
		ocNoName,			//  232
		ocNoName,			//  233
		ocNoName,			//  234
		ocNoName,			//  235
		ocNoName,			//  236
		ocNoName,			//  237
		ocNoName,			//  238
		ocNoName,			//  239
		ocNoName,			//  240
		ocNoName,			//  241
		ocNoName,			//  242
		ocNoName,			//  243
		ocNoName,			//  244
		ocNoName,			//  245
		ocNoName,			//  246
		ocNoName,			//  247
		ocNoName,			//  248
		ocNoName,			//  249
		ocNoName,			//  250
		ocNoName,			//  251
		ocNoName,			//  252
		ocNoName,			//  253
		ocNoName,			//  254
		ocNoName			//  255 ?
	};

	return pToken[ nIndex ];
}
=====================================================================
Found a 22 line (187 tokens) duplication in the following files: 
Starting at line 545 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx
Starting at line 618 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx

	if (bArea)
		rAttrSet.Put( XLineWidthItem( 50 ) );				// Bereich
	else
		rAttrSet.Put( XLineWidthItem( 0 ) );				// einzelne Referenz

	ColorData nColorData = ( bRed ? GetErrorColor() : GetArrowColor() );
	rAttrSet.Put( XLineColorItem( String(), Color( nColorData ) ) );

	basegfx::B2DPolygon aTempPoly;
	aTempPoly.append(basegfx::B2DPoint(aStartPos.X(), aStartPos.Y()));
	aTempPoly.append(basegfx::B2DPoint(aEndPos.X(), aEndPos.Y()));
	SdrPathObj* pArrow = new SdrPathObj(OBJ_LINE, basegfx::B2DPolyPolygon(aTempPoly));
	pArrow->NbcSetLogicRect(Rectangle(aStartPos,aEndPos));	//! noetig ???

	pArrow->SetMergedItemSetAndBroadcast(rAttrSet);

	ScDrawLayer::SetAnchor( pArrow, SCA_CELL );
	pArrow->SetLayer( SC_LAYER_INTERN );
	pPage->InsertObject( pArrow );
	pModel->AddCalcUndo( new SdrUndoInsertObj( *pArrow ) );

	ScDrawObjData* pData = ScDrawLayer::GetObjData( pArrow, TRUE );
=====================================================================
Found a 8 line (187 tokens) duplication in the following files: 
Starting at line 526 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 535 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* RelSegment */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* !"#$%&'()*+,-./*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, /*0123456789:;<=>?*/
=====================================================================
Found a 37 line (187 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 1712 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

void ThreeByteToFourByte (const sal_Int8* pBuffer, const sal_Int32 nStart, const sal_Int32 nFullLen, rtl::OUStringBuffer& sBuffer)
{
    sal_Int32 nLen(nFullLen - nStart);
    if (nLen > 3)
        nLen = 3;
    if (nLen == 0)
    {
        sBuffer.setLength(0);
        return;
    }

    sal_Int32 nBinaer;
    switch (nLen)
    {
        case 1:
        {
            nBinaer = ((sal_uInt8)pBuffer[nStart + 0]) << 16;
        }
        break;
        case 2:
        {
            nBinaer = (((sal_uInt8)pBuffer[nStart + 0]) << 16) +
                    (((sal_uInt8)pBuffer[nStart + 1]) <<  8);
        }
        break;
        default:
        {
            nBinaer = (((sal_uInt8)pBuffer[nStart + 0]) << 16) +
                    (((sal_uInt8)pBuffer[nStart + 1]) <<  8) +
                    ((sal_uInt8)pBuffer[nStart + 2]);
        }
        break;
    }

    sBuffer.appendAscii("====");

    sal_uInt8 nIndex (static_cast<sal_uInt8>((nBinaer & 0xFC0000) >> 18));
=====================================================================
Found a 25 line (187 tokens) duplication in the following files: 
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 4337 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xbf, 0xbb },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x01, 0xf7, 0xd7 },
=====================================================================
Found a 7 line (187 tokens) duplication in the following files: 
Starting at line 1383 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1392 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10, 0, 0, 0, 0, 0,10,10,10,10,10,10,10,// 2610 - 261f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2620 - 262f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2630 - 263f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2640 - 264f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2650 - 265f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2660 - 266f
    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2670 - 267f
=====================================================================
Found a 8 line (187 tokens) duplication in the following files: 
Starting at line 1142 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,17,17,17, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0dd0 - 0ddf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0de0 - 0def
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0df0 - 0dff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e00 - 0e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e10 - 0e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e20 - 0e2f
     0,17, 0, 0,17,17,17,17,17,17,17, 0, 0, 0, 0, 4,// 0e30 - 0e3f
=====================================================================
Found a 6 line (187 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 649 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c20 - 2c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c30 - 2c3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c40 - 2c4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c50 - 2c5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c60 - 2c6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c70 - 2c7f
=====================================================================
Found a 37 line (187 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1712 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

void ThreeByteToFourByte (const sal_Int8* pBuffer, const sal_Int32 nStart, const sal_Int32 nFullLen, rtl::OUStringBuffer& sBuffer)
{
    sal_Int32 nLen(nFullLen - nStart);
    if (nLen > 3)
        nLen = 3;
    if (nLen == 0)
    {
        sBuffer.setLength(0);
        return;
    }

    sal_Int32 nBinaer;
    switch (nLen)
    {
        case 1:
        {
            nBinaer = ((sal_uInt8)pBuffer[nStart + 0]) << 16;
        }
        break;
        case 2:
        {
            nBinaer = (((sal_uInt8)pBuffer[nStart + 0]) << 16) +
                    (((sal_uInt8)pBuffer[nStart + 1]) <<  8);
        }
        break;
        default:
        {
            nBinaer = (((sal_uInt8)pBuffer[nStart + 0]) << 16) +
                    (((sal_uInt8)pBuffer[nStart + 1]) <<  8) +
                    ((sal_uInt8)pBuffer[nStart + 2]);
        }
        break;
    }

    sBuffer.appendAscii("====");

    sal_uInt8 nIndex (static_cast<sal_uInt8>((nBinaer & 0xFC0000) >> 18));
=====================================================================
Found a 48 line (187 tokens) duplication in the following files: 
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SServices.cxx

	for (sal_uInt32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname, 
				const Sequence< OUString > & Services, 
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try																							
		{																								
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);	
		}
		catch(...)
		{
		}
		return xRet.is();
	}
	
	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	**ppEnv
=====================================================================
Found a 29 line (187 tokens) duplication in the following files: 
Starting at line 1388 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx
Starting at line 1456 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx

        }
	}
	catch (configuration::InvalidName& ex)
	{
		ExceptionMapper e(ex);
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw UnknownPropertyException( e.message(), xContext );
	}
	catch (configuration::ConstraintViolation & ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot get Default: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw UnknownPropertyException( sMessage += e.message(), xContext );
	}
	catch (configuration::WrappedUnoException& ex)
	{
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot get Default: ") );
		throw WrappedTargetException( sMessage += ex.extractMessage(), xContext, ex.getAnyUnoException() );
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.unhandled();
	}

	return aDefaults;
=====================================================================
Found a 32 line (187 tokens) duplication in the following files: 
Starting at line 479 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx
Starting at line 652 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx

		throw UnknownPropertyException( e.message(), xContext );
	}
	catch (configuration::TypeMismatch& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.illegalArgument(2);
	}
	catch (configuration::ConstraintViolation& ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot set Property Value: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw PropertyVetoException( sMessage += e.message(), xContext );
	}
	catch (configuration::WrappedUnoException& ex)
	{
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot set Property Value: ") );
		throw WrappedTargetException( sMessage += ex.extractMessage(), xContext, ex.getAnyUnoException() );
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.unhandled();
	}
}

// XMultiHierarchicalPropertySet
//-----------------------------------------------------------------------------------
void implSetHierarchicalPropertyValues( NodeGroupAccess& rNode, const Sequence< OUString >& aPropertyNames, const Sequence< Any >& aValues ) 
=====================================================================
Found a 7 line (187 tokens) duplication in the following files: 
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idl/cx_idlco.cxx
Starting at line 343 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	 err,err,err,err,err,err,err,err,err,err,fof,err,err,err,err,err, // ... 31
	 wht,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig, // ... 63
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig, // ... 95
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
	 fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig  // ... 127
=====================================================================
Found a 23 line (186 tokens) duplication in the following files: 
Starting at line 3963 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/com/sun/star/help/HelpLinker.cxx
Starting at line 4013 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/com/sun/star/help/HelpLinker.cxx

                for (int max = n1; max < n2; a >>= 1, power2 <<= 1, lev++)
                    if ((a & 1) != 0)
                        min -= power2;
                    else
                        max += power2;
            else
                for ( ; min > n2; a >>= 1, power2 <<= 1, lev++)
                    if ((a & 1) != 0)
                        min -= power2;
            // lev 0s, 1, lev bits of (n2 - min) plus following value
            if (lev*2 + 1 + k <= NBits)
                _buffer.append((1<<lev | (n2 - min)) << k | rem, lev*2+1+k);
            else 
            {
                if (lev*2 + 1 <= NBits)
                    _buffer.append(1 << lev | (n2 - min), lev*2 + 1);
                else 
                {
                    _buffer.append(0, lev);
                    _buffer.append(1 << lev | (n2 - min), lev + 1);
                }
                _buffer.append(rem, k);
            }
=====================================================================
Found a 9 line (186 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyfile_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkfile_curs.h

static char linkfile_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x02, 0x00, 0x00,
   0xfe, 0x00, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00,
   0xfe, 0x07, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0xfe, 0x04, 0x00, 0x00,
   0xfe, 0x02, 0x00, 0x00, 0xfe, 0x06, 0x00, 0x00, 0xfe, 0x0e, 0x00, 0x00,
   0xfe, 0x1e, 0x00, 0x00, 0xfe, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00,
   0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x03, 0x00,
   0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
   0x00, 0xc2, 0xe0, 0x3f, 0x00, 0xc0, 0xe0, 0x30, 0x00, 0x80, 0xe1, 0x31,
=====================================================================
Found a 46 line (186 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/provider.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/helpprovider/helpcontentprovider.cxx

	return Seq;
}


//=========================================================================
static sal_Bool writeInfo( void * pRegistryKey,
						   const rtl::OUString & rImplementationName,
   						   uno::Sequence< rtl::OUString > const & rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 30 line (186 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

	return Sequence< OUString >( &aName, 1 );
}

//==================================================================================================
static void assign( TestElement & rData,
					sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
					sal_Int16 nShort, sal_uInt16 nUShort,
					sal_Int32 nLong, sal_uInt32 nULong,
					sal_Int64 nHyper, sal_uInt64 nUHyper,
					float fFloat, double fDouble,
					TestEnum eEnum, const ::rtl::OUString& rStr,
					const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
					const ::com::sun::star::uno::Any& rAny )
{
	rData.Bool = bBool;
	rData.Char = cChar;
	rData.Byte = nByte;
	rData.Short = nShort;
	rData.UShort = nUShort;
	rData.Long = nLong;
	rData.ULong = nULong;
	rData.Hyper = nHyper;
	rData.UHyper = nUHyper;
	rData.Float = fFloat;
	rData.Double = fDouble;
	rData.Enum = eEnum;
	rData.String = rStr;
	rData.Interface = xTest;
	rData.Any = rAny;
}
=====================================================================
Found a 22 line (186 tokens) duplication in the following files: 
Starting at line 3270 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxed.cxx

	if (pViewMin!=NULL) {
		*pViewMin=aViewInit;

		long nXFree=aAnkSiz.Width()-aPaperMin.Width();
		if (eHAdj==SDRTEXTHORZADJUST_LEFT) pViewMin->Right()-=nXFree;
		else if (eHAdj==SDRTEXTHORZADJUST_RIGHT) pViewMin->Left()+=nXFree;
		else { pViewMin->Left()+=nXFree/2; pViewMin->Right()=pViewMin->Left()+aPaperMin.Width(); }

		long nYFree=aAnkSiz.Height()-aPaperMin.Height();
		if (eVAdj==SDRTEXTVERTADJUST_TOP) pViewMin->Bottom()-=nYFree;
		else if (eVAdj==SDRTEXTVERTADJUST_BOTTOM) pViewMin->Top()+=nYFree;
		else { pViewMin->Top()+=nYFree/2; pViewMin->Bottom()=pViewMin->Top()+aPaperMin.Height(); }
	}

	// Die PaperSize soll in den meisten Faellen von selbst wachsen
	// #89459#
	if(IsVerticalWriting())
		aPaperMin.Width() = 0;
	else
		aPaperMin.Height() = 0; // #33102#

	if(eHAdj!=SDRTEXTHORZADJUST_BLOCK || bFitToSize) {
=====================================================================
Found a 38 line (186 tokens) duplication in the following files: 
Starting at line 851 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/defaultregistry/defaultregistry.cxx
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/defaultregistry/defaultregistry.cxx

Sequence< OUString > SAL_CALL NestedKeyImpl::getKeyNames(  ) 
	throw(InvalidRegistryException, RuntimeException)
{
	Guard< Mutex > aGuard( m_pRegistry->m_mutex );
	if ( !m_localKey.is() && !m_defaultKey.is() )
	{
		throw InvalidRegistryException();
	}

	Sequence<OUString> localSeq, defaultSeq;

	if ( m_localKey.is() && m_localKey->isValid() )
	{
		localSeq = m_localKey->getKeyNames();	
	}
	if ( m_defaultKey.is() && m_defaultKey->isValid() )
	{
		defaultSeq = m_defaultKey->getKeyNames();	
	}

	sal_uInt32 local = localSeq.getLength();
	sal_uInt32 def = defaultSeq.getLength();
	sal_uInt32 len = 0;
	
	sal_uInt32 i, j;
	for (i=0; i < local; i++)
	{
		for (j=0 ; j < def; j++)
		{
			if ( localSeq.getConstArray()[i] == defaultSeq.getConstArray()[j] )
			{
				len++;
				break;
			}
		}
	}
	
	Sequence<OUString> 	retSeq(local + def - len);
=====================================================================
Found a 46 line (186 tokens) duplication in the following files: 
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/regmerge.cxx
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/regview.cxx

using namespace ::rtl;
using namespace ::osl;

sal_Bool isFileUrl(const OString& fileName)
{
    if (fileName.indexOf("file://") == 0 )
        return sal_True;
    return sal_False;
}

OUString convertToFileUrl(const OString& fileName)
{
    if ( isFileUrl(fileName) )
    {
        return OStringToOUString(fileName, osl_getThreadTextEncoding());
    }

    OUString uUrlFileName;
    OUString uFileName(fileName.getStr(), fileName.getLength(), osl_getThreadTextEncoding());
    if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
    {
        OUString uWorkingDir;
        if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None)
        {
            OSL_ASSERT(false);
        }
        if (FileBase::getAbsoluteFileURL(uWorkingDir, uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    } else
    {
        if (FileBase::getFileURLFromSystemPath(uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    }

    return uUrlFileName;
}


#if (defined UNX) || (defined OS2)
int main( int argc, char * argv[] )
=====================================================================
Found a 25 line (186 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxdocumenthandler.cxx
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxdocumenthandler.cxx

	for ( int i = 0; i < (int)TB_XML_ENTRY_COUNT; i++ )
	{
		if ( ToolBoxEntries[i].nNamespace == TB_NS_TOOLBAR )
		{
			OUString temp( aNamespaceToolBar );
			temp += aSeparator;
			temp += OUString::createFromAscii( ToolBoxEntries[i].aEntryName );
			m_aToolBoxMap.insert( ToolBoxHashMap::value_type( temp, (ToolBox_XML_Entry)i ) );
		}
		else
		{
			OUString temp( aNamespaceXLink );
			temp += aSeparator;
			temp += OUString::createFromAscii( ToolBoxEntries[i].aEntryName );
			m_aToolBoxMap.insert( ToolBoxHashMap::value_type( temp, (ToolBox_XML_Entry)i ) );
		}
	}

	// pre-calculate a hash code for all style strings to speed up xml read process
	m_nHashCode_Style_Radio		    = OUString::createFromAscii( ATTRIBUTE_ITEMSTYLE_RADIO ).hashCode();
	m_nHashCode_Style_Auto		    = OUString::createFromAscii( ATTRIBUTE_ITEMSTYLE_AUTO ).hashCode();
	m_nHashCode_Style_Left		    = OUString::createFromAscii( ATTRIBUTE_ITEMSTYLE_LEFT ).hashCode();
	m_nHashCode_Style_AutoSize	    = OUString::createFromAscii( ATTRIBUTE_ITEMSTYLE_AUTOSIZE ).hashCode();
	m_nHashCode_Style_DropDown	    = OUString::createFromAscii( ATTRIBUTE_ITEMSTYLE_DROPDOWN ).hashCode();
	m_nHashCode_Style_Repeat	    = OUString::createFromAscii( ATTRIBUTE_ITEMSTYLE_REPEAT ).hashCode();
=====================================================================
Found a 25 line (186 tokens) duplication in the following files: 
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/datatest.cxx

	ODataStreamTest( const XMultiServiceFactoryRef & rFactory ) : m_rFactory( rFactory ){}

public: // refcounting
	BOOL						queryInterface( Uik aUik, XInterfaceRef & rOut );
	void 						acquire() 						 { OWeakObject::acquire(); }
	void 						release() 						 { OWeakObject::release(); }
	void* 						getImplementation(Reflection *p) { return OWeakObject::getImplementation(p); }

public:
    virtual void testInvariant(const UString& TestName, const XInterfaceRef& TestObject)
    															THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual INT32 test(	const UString& TestName,
    					const XInterfaceRef& TestObject,
    					INT32 hTestHandle) 						THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual BOOL testPassed(void) 								THROWS( (	UsrSystemException) );
    virtual Sequence< UString > getErrors(void) 				THROWS( (UsrSystemException) );
    virtual Sequence< UsrAny > getErrorExceptions(void) 		THROWS( (UsrSystemException) );
    virtual Sequence< UString > getWarnings(void) 				THROWS( (UsrSystemException) );

private:
	void testSimple( const XDataInputStreamRef & , const XDataOutputStreamRef &);
=====================================================================
Found a 29 line (186 tokens) duplication in the following files: 
Starting at line 427 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 502 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

	else if( !m_bLink && URL.Complete == m_aInterceptedURL[4] )
		return (frame::XDispatch*)this;
	else if(URL.Complete == m_aInterceptedURL[5])
		return (frame::XDispatch*)this;
	else {
		if(m_xSlaveDispatchProvider.is())
			return m_xSlaveDispatchProvider->queryDispatch(
				URL,TargetFrameName,SearchFlags);
		else
			return uno::Reference<frame::XDispatch>(0);
	}
}

uno::Sequence< uno::Reference< frame::XDispatch > > SAL_CALL
Interceptor::queryDispatches(
	const uno::Sequence<frame::DispatchDescriptor >& Requests )
	throw (
		uno::RuntimeException
	)
{
	uno::Sequence< uno::Reference< frame::XDispatch > > aRet;
	osl::MutexGuard aGuard(m_aMutex);
	if(m_xSlaveDispatchProvider.is())
		aRet = m_xSlaveDispatchProvider->queryDispatches(Requests);
	else
		aRet.realloc(Requests.getLength());
	
	for(sal_Int32 i = 0; i < Requests.getLength(); ++i)
		if ( !m_bLink && m_aInterceptedURL[0] == Requests[i].FeatureURL.Complete )
=====================================================================
Found a 37 line (186 tokens) duplication in the following files: 
Starting at line 360 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/xml/dbloader2.cxx
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/browser/dbloader.cxx

	static ::dbaui::OMultiInstanceAutoRegistration< DBContentLoader > aAutoRegistration;
}
// -------------------------------------------------------------------------
Reference< XInterface > SAL_CALL DBContentLoader::Create( const Reference< XMultiServiceFactory >  & rSMgr )
{
	return *(new DBContentLoader(rSMgr));
}
// -------------------------------------------------------------------------
// XServiceInfo
::rtl::OUString SAL_CALL DBContentLoader::getImplementationName() throw(  )
{
	return getImplementationName_Static();
}
// -------------------------------------------------------------------------

// XServiceInfo
sal_Bool SAL_CALL DBContentLoader::supportsService(const ::rtl::OUString& ServiceName) throw(  )
{
	Sequence< ::rtl::OUString > aSNL = getSupportedServiceNames();
	const ::rtl::OUString * pBegin	= aSNL.getConstArray();
	const ::rtl::OUString * pEnd	= pBegin + aSNL.getLength();
	for( ; pBegin != pEnd; ++pBegin)
		if( *pBegin == ServiceName )
			return sal_True;
	return sal_False;
}
// -------------------------------------------------------------------------
// XServiceInfo
Sequence< ::rtl::OUString > SAL_CALL DBContentLoader::getSupportedServiceNames(void) throw(  )
{
	return getSupportedServiceNames_Static();
}
// -------------------------------------------------------------------------
// ORegistryServiceManager_Static
Sequence< ::rtl::OUString > DBContentLoader::getSupportedServiceNames_Static(void) throw(  )
{
	Sequence< ::rtl::OUString > aSNS( 2 );
=====================================================================
Found a 38 line (186 tokens) duplication in the following files: 
Starting at line 935 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx

	m_aLastWarning = SQLWarning();
}
// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper* OStatement_Base::createArrayHelper( ) const
{
	// this properties are define by the service statement
	// they must in alphabetic order
	Sequence< Property > aProps(10);
	Property* pProperties = aProps.getArray();
	sal_Int32 nPos = 0;
	DECL_PROP0(CURSORNAME,	::rtl::OUString);
	DECL_BOOL_PROP0(ESCAPEPROCESSING);
	DECL_PROP0(FETCHDIRECTION,sal_Int32);
	DECL_PROP0(FETCHSIZE,	sal_Int32);
	DECL_PROP0(MAXFIELDSIZE,sal_Int32);
	DECL_PROP0(MAXROWS,		sal_Int32);
	DECL_PROP0(QUERYTIMEOUT,sal_Int32);
	DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
	DECL_PROP0(RESULTSETTYPE,sal_Int32);
	DECL_BOOL_PROP0(USEBOOKMARKS);

	return new ::cppu::OPropertyArrayHelper(aProps);
}

// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
{
	return *const_cast<OStatement_Base*>(this)->getArrayHelper();
}
// -------------------------------------------------------------------------
sal_Bool OStatement_Base::convertFastPropertyValue(
							Any & rConvertedValue,
							Any & rOldValue,
							sal_Int32 nHandle,
							const Any& rValue )
								throw (::com::sun::star::lang::IllegalArgumentException)
{
	sal_Bool bConverted = sal_False;
=====================================================================
Found a 44 line (186 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/PageBackground.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/Wall.cxx

    rOutMap[ ::chart::LineProperties::PROP_LINE_STYLE ] =
        uno::makeAny( drawing::LineStyle_NONE );
}

const uno::Sequence< Property > & lcl_GetPropertySequence()
{
    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        ::chart::LineProperties::AddPropertiesToVector( aProperties );
        ::chart::FillProperties::AddPropertiesToVector( aProperties );
        ::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

::cppu::IPropertyArrayHelper & lcl_getInfoHelper()
{
    static ::cppu::OPropertyArrayHelper aArrayHelper(
        lcl_GetPropertySequence(),
        /* bSorted = */ sal_True );

    return aArrayHelper;
}

} // anonymous namespace

// ================================================================================

namespace chart
{
=====================================================================
Found a 43 line (186 tokens) duplication in the following files: 
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx

void cc50_solaris_sparc_fillUnoException(
	void* pCppExc,
	const char* pInfo,
	uno_Any* pUnoExc,
	uno_Mapping * pCpp2Uno )
{
    OSL_ASSERT( pInfo != 0 );
    OString uno_name( toUNOname( pInfo ) );
    OUString aName( OStringToOUString(
                        uno_name, RTL_TEXTENCODING_ASCII_US ) );
    typelib_TypeDescription * pExcTypeDescr = 0;
    typelib_typedescription_getByName( &pExcTypeDescr, aName.pData );

    if (pExcTypeDescr == 0) // the thing that should not be
    {
        RuntimeException aRE(
            OUString( RTL_CONSTASCII_USTRINGPARAM(
                          "exception type not found: ") ) + aName,
            Reference< XInterface >() );
        Type const & rType = ::getCppuType( &aRE );
        uno_type_any_constructAndConvert(
            pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
#if OSL_DEBUG_LEVEL > 0
        OString cstr( OUStringToOString(
                          aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
        OSL_ENSURE( 0, cstr.getStr() );
#endif
        return;
    }

#if OSL_DEBUG_LEVEL > 1
    fprintf( stderr, "> c++ exception occured: %s\n",
             ::rtl::OUStringToOString(
                 pExcTypeDescr->pTypeName,
                 RTL_TEXTENCODING_ASCII_US ).getStr() );
#endif
    // construct uno exception any
    uno_any_constructAndConvert(
        pUnoExc, pCppExc, pExcTypeDescr, pCpp2Uno );
    typelib_typedescription_release( pExcTypeDescr );
}

}
=====================================================================
Found a 30 line (185 tokens) duplication in the following files: 
Starting at line 396 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

            calc_type fg[4];
            value_type back_r = base_type::background_color().r;
            value_type back_g = base_type::background_color().g;
            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            const value_type *fg_ptr;

            color_type* span = base_type::allocator().span();
            const int16* weight_array = base_type::filter().weight_array() + 
                                        ((base_type::filter().diameter()/2 - 1) << 
                                          image_subpixel_shift);

            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            do
            {
                int x_hr;
                int y_hr;

                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                unsigned weight;
=====================================================================
Found a 48 line (185 tokens) duplication in the following files: 
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/decrypter.cxx
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/decrypter.cxx

			xManager->createInstanceWithContext( OUString::createFromAscii("com.sun.star.xml.xsec.XMLEncryption"), xContext ) ;
		OSL_ENSURE( xmlencrypter.is() ,
			"Decryptor - "
			"Cannot get service instance of \"xsec.XMLEncryption\"" ) ;

		Reference< XXMLEncryption > xEncrypter( xmlencrypter , UNO_QUERY ) ;
		OSL_ENSURE( xEncrypter.is() ,
			"Decryptor - "
			"Cannot get interface of \"XXMLEncryption\" from service \"xsec.XMLEncryption\"" ) ;


		//Perform decryption
		Reference< XXMLElementWrapper> xDecrRes = xEncrypter->decrypt( xTemplate , xSecCtx ) ;
		OSL_ENSURE( xDecrRes.is() ,
			"Decryptor - "
			"Cannot decrypt the xml document" ) ;
	} catch( Exception& e ) {
		fprintf( stderr , "Error Message: %s\n" , OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
		goto done ;
	}

	dstFile = fopen( argv[3], "w" ) ;
	if( dstFile == NULL ) {
		fprintf( stderr , "### Can not open file %s\n", argv[3] ) ;
		goto done ;
	}

	//Save result
	xmlDocDump( dstFile, doc ) ;

done:
	if( dstFile != NULL )
		fclose( dstFile ) ;

	if( slot != NULL )
		PK11_FreeSlot( slot ) ;

	PK11_LogoutAll() ;
	NSS_Shutdown() ;

	/* Shutdown libxslt/libxml */
	#ifndef XMLSEC_NO_XSLT
	xsltCleanupGlobals();            
	#endif /* XMLSEC_NO_XSLT */
	xmlCleanupParser();

	return 0;
}
=====================================================================
Found a 40 line (185 tokens) duplication in the following files: 
Starting at line 1973 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev.cxx
Starting at line 1518 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

	DBG_TRACE( "OutputDevice::DrawPixel()" );
	DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );

	Color aColor( rColor );

	if( mnDrawMode & ( DRAWMODE_BLACKLINE | DRAWMODE_WHITELINE | 
					   DRAWMODE_GRAYLINE | DRAWMODE_GHOSTEDLINE |
                       DRAWMODE_SETTINGSLINE ) )
	{
		if( !ImplIsColorTransparent( aColor ) )
		{
			if( mnDrawMode & DRAWMODE_BLACKLINE )
			{
				aColor = Color( COL_BLACK );
			}
			else if( mnDrawMode & DRAWMODE_WHITELINE )
			{
				aColor = Color( COL_WHITE );
			}
			else if( mnDrawMode & DRAWMODE_GRAYLINE )
			{
				const UINT8 cLum = aColor.GetLuminance();
				aColor = Color( cLum, cLum, cLum );
			}
            else if( mnDrawMode & DRAWMODE_SETTINGSLINE )
            {
                aColor = GetSettings().GetStyleSettings().GetFontColor();
            }

			if( mnDrawMode & DRAWMODE_GHOSTEDLINE )
			{
				aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80,
								( aColor.GetGreen() >> 1 ) | 0x80,
								( aColor.GetBlue() >> 1 ) | 0x80 );
			}
		}
	}

	if ( mpMetaFile )
		mpMetaFile->AddAction( new MetaPixelAction( rPt, aColor ) );
=====================================================================
Found a 46 line (185 tokens) duplication in the following files: 
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 551 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const ucb::CommandInfo aDocCommandInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                -1,
                getCppuType(
                    static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
                -1,
                getCppuType( static_cast< ucb::TransferInfo * >( 0 ) )
            )
=====================================================================
Found a 68 line (185 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_contentcaps.cxx
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

using namespace myucp;

//=========================================================================
//
// Content implementation.
//
//=========================================================================

//=========================================================================
//
// IMPORTENT: If any property data ( name / type / ... ) are changed, then
//            Content::getPropertyValues(...) must be adapted too!
//
//=========================================================================

// virtual
uno::Sequence< beans::Property > Content::getProperties(
    const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
{
	// @@@ Add additional properties...

	// @@@ Note: If your data source supports adding/removing properties,
	//           you should implement the interface XPropertyContainer
	//           by yourself and supply your own logic here. The base class
	//           uses the service "com.sun.star.ucb.Store" to maintain
	//           Additional Core properties. But using server functionality
	//           is preferred! In fact you should return a table conatining
	//           even that dynamicly added properties.

//	osl::Guard< osl::Mutex > aGuard( m_aMutex );

	//=================================================================
	//
	// Supported properties
	//
	//=================================================================

	#define PROPERTY_COUNT 4

    static beans::Property aPropertyInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory properties
		///////////////////////////////////////////////////////////////
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND
		)
=====================================================================
Found a 30 line (185 tokens) duplication in the following files: 
Starting at line 4393 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3987 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartPredefinedProcessVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },

	{ 2540, 0 }, { 2540, 21600 },

	{ 21600 - 2540, 0 }, { 21600 - 2540, 21600 }
};
static const sal_uInt16 mso_sptFlowChartPredefinedProcessSegm[] =
{
	0x4000, 0x0003, 0x6000, 0x8000,
	0x4000, 0x0001, 0x8000,
	0x4000, 0x0001, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartPredefinedProcessTextRect[] = 
{
	{ { 2540, 0 }, { 21600 - 2540, 21600 } }
};
static const mso_CustomShape msoFlowChartPredefinedProcess =
{
	(SvxMSDffVertPair*)mso_sptFlowChartPredefinedProcessVert, sizeof( mso_sptFlowChartPredefinedProcessVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartPredefinedProcessSegm, sizeof( mso_sptFlowChartPredefinedProcessSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartPredefinedProcessTextRect, sizeof( mso_sptFlowChartPredefinedProcessTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 8 line (185 tokens) duplication in the following files: 
Starting at line 540 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 749 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_TABLAYOUT),SC_WID_UNO_TABLAYOUT,&getCppuType((sal_Int16*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_VALIXML),	SC_WID_UNO_VALIXML,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLVJUS),	ATTR_VER_JUSTIFY,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_WRITING),	ATTR_WRITINGDIR,	&getCppuType((sal_Int16*)0),			0, 0 },
=====================================================================
Found a 33 line (185 tokens) duplication in the following files: 
Starting at line 621 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dociter.cxx
Starting at line 663 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dociter.cxx

	nEndTab( rRange.aEnd.Tab() ),
	bSubTotal(bSTotal)

{
	PutInOrder( nStartCol, nEndCol);
	PutInOrder( nStartRow, nEndRow);
	PutInOrder( nStartTab, nEndTab );

	if (!ValidCol(nStartCol)) nStartCol = MAXCOL;
	if (!ValidCol(nEndCol)) nEndCol = MAXCOL;
	if (!ValidRow(nStartRow)) nStartRow = MAXROW;
	if (!ValidRow(nEndRow)) nEndRow = MAXROW;
	if (!ValidTab(nStartTab)) nStartTab = MAXTAB;
	if (!ValidTab(nEndTab)) nEndTab = MAXTAB;

	while (nEndTab>0 && !pDoc->pTab[nEndTab])
		--nEndTab;										// nur benutzte Tabellen
	if (nStartTab>nEndTab)
		nStartTab = nEndTab;

	nCol = nStartCol;
	nRow = nStartRow;
	nTab = nStartTab;
	nColRow = 0;					// wird bei GetFirst initialisiert

	if (!pDoc->pTab[nTab])
	{
		DBG_ERROR("Tabelle nicht gefunden");
		nStartCol = nCol = MAXCOL+1;
		nStartRow = nRow = MAXROW+1;
		nStartTab = nTab = MAXTAB+1;	// -> Abbruch bei GetFirst
	}
}
=====================================================================
Found a 42 line (185 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/checksingleton.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/regmerge.cxx

using namespace ::rtl;
using namespace ::osl;

sal_Bool isFileUrl(const OString& fileName)
{
    if (fileName.indexOf("file://") == 0 )
        return sal_True;
    return sal_False;
}

OUString convertToFileUrl(const OString& fileName)
{
    if ( isFileUrl(fileName) )
    {
        return OStringToOUString(fileName, osl_getThreadTextEncoding());
    }

    OUString uUrlFileName;
    OUString uFileName(fileName.getStr(), fileName.getLength(), osl_getThreadTextEncoding());
    if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
    {
        OUString uWorkingDir;
        if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None)
        {
            OSL_ASSERT(false);
        }
        if (FileBase::getAbsoluteFileURL(uWorkingDir, uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    } else
    {
        if (FileBase::getFileURLFromSystemPath(uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    }

    return uUrlFileName;
}
=====================================================================
Found a 8 line (185 tokens) duplication in the following files: 
Starting at line 1350 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 0,// 27b0 - 27bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27c0 - 27cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27d0 - 27df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27e0 - 27ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27f0 - 27ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
=====================================================================
Found a 8 line (185 tokens) duplication in the following files: 
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fc0 - 0fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fd0 - 0fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fe0 - 0fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ff0 - 0fff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1000 - 100f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1010 - 101f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,17,// 1020 - 102f
=====================================================================
Found a 7 line (185 tokens) duplication in the following files: 
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 988 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0250 - 025f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0260 - 026f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0270 - 027f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0280 - 028f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0290 - 029f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 02a0 - 02af
     0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0,// 02b0 - 02bf
=====================================================================
Found a 7 line (185 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30a0 - 30af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30b0 - 30bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30c0 - 30cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30d0 - 30df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30e0 - 30ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,22, 4, 4, 4, 0,// 30f0 - 30ff
=====================================================================
Found a 6 line (185 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 895 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 7 line (185 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30a0 - 30af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30b0 - 30bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30c0 - 30cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30d0 - 30df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30e0 - 30ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,22, 4, 4, 4, 0,// 30f0 - 30ff
=====================================================================
Found a 5 line (185 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x9f, 0x0000}, // 0300 - 0307
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0308 - 030f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0310 - 0317
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0318 - 031f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0320 - 0327
=====================================================================
Found a 6 line (185 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 827 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7a0 - d7af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7b0 - d7bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7c0 - d7cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7d0 - d7df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7e0 - d7ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7f0 - d7ff
=====================================================================
Found a 39 line (185 tokens) duplication in the following files: 
Starting at line 1798 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eps/eps.cxx
Starting at line 1861 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eps/eps.cxx

					ImplWriteLine( "/Decode[0 255]" );
					*mpPS << "/ImageMatrix[";
					ImplWriteLong( nWidth );
					*mpPS << "0 0 ";
					ImplWriteLong( -nHeight );
					ImplWriteLong( 0);
					ImplWriteLong( nHeight, PS_NONE );
					ImplWriteByte( ']', PS_RET );
					ImplWriteLine( "/DataSource currentfile" );
					ImplWriteLine( "/ASCIIHexDecode filter" );
					if ( mbCompression )
						ImplWriteLine( "/LZWDecode filter" );
					ImplWriteLine( ">>" );
					ImplWriteLine( "image" );
					if ( mbCompression )
					{
						StartCompression();
						for ( long y = 0; y < nHeight; y++ )
						{
							for ( long x = 0; x < nWidth; x++ )
							{
								Compress( (BYTE)pAcc->GetPixel( y, x ) );
							}
						}
						EndCompression();
					}
					else
					{
						for ( long y = 0; y < nHeight; y++ )
						{
							for ( long x = 0; x < nWidth; x++ )
							{
								ImplWriteHexByte( (BYTE)pAcc->GetPixel( y, x ) );
							}
						}
					}
				}
				else // 24 bit color
				{
=====================================================================
Found a 6 line (185 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 827 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7a0 - d7af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7b0 - d7bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7c0 - d7cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7d0 - d7df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7e0 - d7ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7f0 - d7ff
=====================================================================
Found a 30 line (185 tokens) duplication in the following files: 
Starting at line 342 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

	return hr;
}

HRESULT CSOActiveX::GetUnoStruct( OLECHAR* sStructName, CComPtr<IDispatch>& pdispResult )
{
	return GetIDispByFunc( mpDispFactory, L"Bridge_GetStruct", &CComVariant( sStructName ), 1, pdispResult );
}

HRESULT CSOActiveX::GetUrlStruct( OLECHAR* sUrl, CComPtr<IDispatch>& pdispUrl )
{
	HRESULT hr = GetUnoStruct( L"com.sun.star.util.URL", pdispUrl );
	if( !SUCCEEDED( hr ) ) return hr;

	OLECHAR* sURLMemberName = L"Complete";
	DISPID nURLID;
	hr = pdispUrl->GetIDsOfNames( IID_NULL, &sURLMemberName, 1, LOCALE_USER_DEFAULT, &nURLID );
	if( !SUCCEEDED( hr ) ) return hr;
	hr = CComDispatchDriver::PutProperty( pdispUrl, nURLID, &CComVariant( sUrl ) );
	if( !SUCCEEDED( hr ) ) return hr;

	CComPtr<IDispatch> pdispTransformer;
	hr = GetIDispByFunc( mpDispFactory, 
						 L"createInstance", 
						 &CComVariant( L"com.sun.star.util.URLTransformer" ), 
						 1, 
						 pdispTransformer );
	if( !SUCCEEDED( hr ) ) return hr;

	CComVariant dummyResult;
	CComVariant aInOutParam;
=====================================================================
Found a 28 line (185 tokens) duplication in the following files: 
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HViews.cxx
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YViews.cxx

	Reference<XConnection> xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection();
	connectivity::sdbcx::OView* pNew = new connectivity::sdbcx::OView(sal_True,xConnection->getMetaData());
	return pNew;
}
// -------------------------------------------------------------------------
// XAppend
sdbcx::ObjectType OViews::appendObject( const ::rtl::OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
	createView(descriptor);
    return createObject( _rForName );
}
// -------------------------------------------------------------------------
// XDrop
void OViews::dropObject(sal_Int32 _nPos,const ::rtl::OUString /*_sElementName*/)
{
	if ( m_bInDrop )
		return;

    Reference< XInterface > xObject( getObject( _nPos ) );
    sal_Bool bIsNew = connectivity::sdbcx::ODescriptor::isNew( xObject );
	if (!bIsNew)
	{
		::rtl::OUString aSql = ::rtl::OUString::createFromAscii("DROP VIEW");
		
		Reference<XPropertySet> xProp(xObject,UNO_QUERY);
		aSql += ::dbtools::composeTableName( m_xMetaData, xProp, ::dbtools::eInTableDefinitions, false, false, true );
		
		Reference<XConnection> xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection();
=====================================================================
Found a 41 line (185 tokens) duplication in the following files: 
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AConnection.cxx
Starting at line 497 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OConnection.cxx

	return nTxn;
}
// --------------------------------------------------------------------------------
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnection::getTypeMap(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);


	return NULL;
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
    ::dbtools::throwFeatureNotImplementedException( "XConnection::setTypeMap", *this );
}
// --------------------------------------------------------------------------------
// XCloseable
void SAL_CALL OConnection::close(  ) throw(SQLException, RuntimeException)
{
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(OConnection_BASE::rBHelper.bDisposed);

	}
	dispose();
}
// --------------------------------------------------------------------------------
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings(  ) throw(SQLException, RuntimeException)
{
	return Any();
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::clearWarnings(  ) throw(SQLException, RuntimeException)
{
}
//--------------------------------------------------------------------
void OConnection::buildTypeInfo() throw( SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
=====================================================================
Found a 55 line (185 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/XMLRangeHelper.cxx
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/XMLRangeHelper.cxx

using ::rtl::OUString;
using ::rtl::OUStringBuffer;

// ================================================================================

namespace
{
/** unary function that escapes backslashes and single quotes in a sal_Unicode
    array (which you can get from an OUString with getStr()) and puts the result
    into the OUStringBuffer given in the CTOR
 */
class lcl_Escape : public ::std::unary_function< sal_Unicode, void >
{
public:
    lcl_Escape( ::rtl::OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {}
    void operator() ( sal_Unicode aChar )
    {
        static const sal_Unicode m_aQuote( '\'' );
        static const sal_Unicode m_aBackslash( '\\' );

        if( aChar == m_aQuote ||
            aChar == m_aBackslash )
            m_aResultBuffer.append( m_aBackslash );
        m_aResultBuffer.append( aChar );
    }

private:
    ::rtl::OUStringBuffer & m_aResultBuffer;
};

// ----------------------------------------

/** unary function that removes backslash escapes in a sal_Unicode array (which
    you can get from an OUString with getStr()) and puts the result into the
    OUStringBuffer given in the CTOR
 */
class lcl_UnEscape : public ::std::unary_function< sal_Unicode, void >
{
public:
    lcl_UnEscape( ::rtl::OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {}
    void operator() ( sal_Unicode aChar )
    {
        static const sal_Unicode m_aBackslash( '\\' );

        if( aChar != m_aBackslash )
            m_aResultBuffer.append( aChar );
    }

private:
    ::rtl::OUStringBuffer & m_aResultBuffer;
};

// ----------------------------------------

OUStringBuffer lcl_getXMLStringForCell( const /*::chart::*/XMLRangeHelper::Cell & rCell )
=====================================================================
Found a 34 line (184 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

            calc_type fg[4];
            value_type back_r = base_type::background_color().r;
            value_type back_g = base_type::background_color().g;
            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            const value_type *fg_ptr;

            color_type* span = base_type::allocator().span();

            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            do
            {
                int x_hr;
                int y_hr;

                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                unsigned weight;

                if(x_lr >= 0    && y_lr >= 0 &&
                   x_lr <  maxx && y_lr <  maxy) 
                {
                    fg[0] = 
                    fg[1] = 
                    fg[2] = 
=====================================================================
Found a 41 line (184 tokens) duplication in the following files: 
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_services.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/helpprovider/helpcontentprovider.cxx

static sal_Bool writeInfo( void * pRegistryKey,
						   const rtl::OUString & rImplementationName,
   						   uno::Sequence< rtl::OUString > const & rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 36 line (184 tokens) duplication in the following files: 
Starting at line 1168 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 680 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

	sal_Bool bTriedToGetAdditonalPropSet = sal_False;

	for ( sal_Int32 n = 0; n < nCount; ++n )
	{
        const beans::PropertyValue& rValue = pValues[ n ];

        if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
        {
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "IsDocument" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "IsFolder" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
		{
=====================================================================
Found a 41 line (184 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchyservices.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/helpprovider/helpcontentprovider.cxx

static sal_Bool writeInfo( void * pRegistryKey,
						   const rtl::OUString & rImplementationName,
   						   uno::Sequence< rtl::OUString > const & rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 36 line (184 tokens) duplication in the following files: 
Starting at line 1243 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 680 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

	sal_Bool bTriedToGetAdditonalPropSet = sal_False;

	for ( sal_Int32 n = 0; n < nCount; ++n )
	{
        const beans::PropertyValue& rValue = pValues[ n ];

        if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
        {
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "IsDocument" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "IsFolder" ) ) )
		{
			// Read-only property!
            aRet[ n ] <<= lang::IllegalAccessException(
                            rtl::OUString::createFromAscii(
                                "Property is read-only!" ),
                            static_cast< cppu::OWeakObject * >( this ) );
		}
        else if ( rValue.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
		{
=====================================================================
Found a 41 line (184 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpservices.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/helpprovider/helpcontentprovider.cxx

static sal_Bool writeInfo( void * pRegistryKey,
						   const rtl::OUString & rImplementationName,
   						   uno::Sequence< rtl::OUString > const & rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 34 line (184 tokens) duplication in the following files: 
Starting at line 5044 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/paintfrm.cxx
Starting at line 5102 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/paintfrm.cxx

                                        aTmp.Pos().Y() ), Size( 1, nHeight ) );
                                    if( bLeft )
                                        PaintBorderLine(rRect,aVert,this,pCol);
                                    if( bRight )
                                    {
                                        aVert.Pos().X() = nGridRight;
                                        PaintBorderLine(rRect,aVert,this,pCol);
                                    }
                                }
                            }
                        }
                        else
                        {
                            nY += nRuby;
                            if( bBorder )
                            {
                                SwTwips nPos = Max(aInter.Top(),aTmp.Pos().Y());
                                SwTwips nH = Min( nBottom, nY ) - nPos;
                                SwRect aVert( Point( aGrid.Left(), nPos ),
                                            Size( 1, nH ) );
                                if( nH > 0 )
                                {
                                    if( bLeft )
                                        PaintBorderLine(rRect,aVert,this,pCol);
                                    if( bRight )
                                    {
                                        aVert.Pos().X() = nGridRight;
                                        PaintBorderLine(rRect,aVert,this,pCol);
                                    }
                                }
                            }
                        }
                        bGrid = !bGrid;
                    }
=====================================================================
Found a 41 line (184 tokens) duplication in the following files: 
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edundo.cxx
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edundo.cxx

			UpdateAttr();

		if( aUndoIter.pSelFmt )		// dann erzeuge eine Rahmen-Selection
		{
			if( RES_DRAWFRMFMT == aUndoIter.pSelFmt->Which() )
			{
				SdrObject* pSObj = aUndoIter.pSelFmt->FindSdrObject();
				((SwFEShell*)this)->SelectObj( pSObj->GetCurrentBoundRect().Center() );
			}
			else
			{
				Point aPt;
				SwFlyFrm* pFly = ((SwFlyFrmFmt*)aUndoIter.pSelFmt)->GetFrm(
															&aPt, FALSE );
				if( pFly )
					((SwFEShell*)this)->SelectFlyFrm( *pFly, TRUE );
			}
		}
		else if( aUndoIter.pMarkList )
		{
            lcl_SelectSdrMarkList( this, aUndoIter.pMarkList );
		}
		else if( GetCrsr()->GetNext() != GetCrsr() )	// gehe nach einem
			GoNextCrsr();					// Redo zur alten Undo-Position !!

		GetDoc()->SetRedlineMode( eOld );
		GetDoc()->CompressRedlines();

		//JP 18.09.97: autom. Erkennung  fuer die neue "Box"
		SaveTblBoxCntnt();
	}

	EndAllAction();

    // #105332# undo state was not restored but set FALSE everytime
	GetDoc()->DoUndo( bSaveDoesUndo );
	return bRet;
}


USHORT SwEditShell::Repeat( USHORT nCount )
=====================================================================
Found a 31 line (184 tokens) duplication in the following files: 
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/crstrvl.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/crstrvl.cxx

	FASTBOOL bRet = GetDoc()->GotoPrevNum( *pCurCrsr->GetPoint() );
	if( bRet )
	{
		SwCallLink aLk( *this );        // Crsr-Moves ueberwachen,
		SwCrsrSaveState aSaveState( *pCurCrsr );
		if( !ActionPend() )
		{
			SET_CURR_SHELL( this );
			// dann versuche den Cursor auf die Position zu setzen,
			// auf halber Heohe vom Char-SRectangle
			Point aPt( pCurCrsr->GetPtPos() );
			SwCntntFrm * pFrm = pCurCrsr->GetCntntNode()->GetFrm( &aPt,
														pCurCrsr->GetPoint() );
			pFrm->GetCharRect( aCharRect, *pCurCrsr->GetPoint() );
			aPt.Y() = aCharRect.Center().Y();
			pFrm->Calc();
			aPt.X() = pFrm->Frm().Left() + nUpDownX;
			pFrm->GetCrsrOfst( pCurCrsr->GetPoint(), aPt );
			bRet = !pCurCrsr->IsSelOvr( SELOVER_TOGGLE | SELOVER_CHANGEPOS );
			if( bRet )
				UpdateCrsr(SwCrsrShell::UPDOWN |
						SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
						SwCrsrShell::READONLY );
		}
	}
	return bRet;
}

// springe aus dem Content zum Header

FASTBOOL SwCrsrShell::GotoHeaderTxt()
=====================================================================
Found a 32 line (184 tokens) duplication in the following files: 
Starting at line 1485 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdomeas.cxx
Starting at line 1517 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdomeas.cxx

	else if(nCount == 5)
	{
		// five lines, first two are the outer ones
		//INT32 nStartWidth = ((const XLineStartWidthItem&)(aSet.Get(XATTR_LINESTARTWIDTH))).GetValue();
		INT32 nEndWidth = ((const XLineEndWidthItem&)(aSet.Get(XATTR_LINEENDWIDTH))).GetValue();

		aSet.Put(XLineEndWidthItem(0L));

		aPolyPoly.clear();
		aPolyPoly.append(aTmpPolyPolygon[0].getB2DPolygon());
		pPath = new SdrPathObj(OBJ_PATHLINE, aPolyPoly);
		pPath->SetModel(GetModel());

		pPath->SetMergedItemSet(aSet);

		pGroup->GetSubList()->NbcInsertObject(pPath);

		aSet.Put(XLineEndWidthItem(nEndWidth));
		aSet.Put(XLineStartWidthItem(0L));

		aPolyPoly.clear();
		aPolyPoly.append(aTmpPolyPolygon[1].getB2DPolygon());
		pPath = new SdrPathObj(OBJ_PATHLINE, aPolyPoly);
		pPath->SetModel(GetModel());

		pPath->SetMergedItemSet(aSet);

		pGroup->GetSubList()->NbcInsertObject(pPath);

		aSet.Put(XLineEndWidthItem(0L));
		nLoopStart = 2;
	}
=====================================================================
Found a 39 line (184 tokens) duplication in the following files: 
Starting at line 3355 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3706 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

		for (SCSIZE i = 0; i < nCY; i++)
			for (SCSIZE j = 0; j < nRY; j++)
			{
				fValX = pMatX->GetDouble(i,j);
				fValY = pMatY->GetDouble(i,j);
				fSumX    += fValX;
				fSumSqrX += fValX * fValX;
				fSumY    += fValY;
				fSumSqrY += fValY * fValY;
				fSumXY   += fValX*fValY;
				fCount++;
			}
		if (fCount < 1.0)
		{
			SetNoValue();
			return;
		}
		else
		{
			double f1 = fCount*fSumXY-fSumX*fSumY;
			double fX = fCount*fSumSqrX-fSumX*fSumX;
			double b, m;
			if (bConstant)
			{
				b = fSumY/fCount - f1/fX*fSumX/fCount;
				m = f1/fX;
			}
			else
			{
				b = 0.0;
				m = fSumXY/fSumSqrX;
			}
			pResMat = GetNewMat(nCXN, nRXN);
			if (!pResMat)
			{
				PushError();
				return;
			}
			for (SCSIZE i = 0; i < nCountXN; i++)
=====================================================================
Found a 45 line (184 tokens) duplication in the following files: 
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

						fy = fx * fy / ScGetGGT(fx, fy);
					}
					SetError(nErr);
				}
				else
					SetError(errIllegalArgument);
			}
			break;
			case svMatrix :
			{
				ScMatrixRef pMat = PopMatrix();
				if (pMat)
				{
                    SCSIZE nC, nR;
                    pMat->GetDimensions(nC, nR);
					if (nC == 0 || nR == 0)
						SetError(errIllegalArgument);
					else
					{
						if (!pMat->IsValue(0))
						{
							SetIllegalArgument();
							return;
						}
						fy = pMat->GetDouble(0);
						if (fy < 0.0)
						{
							fy *= -1.0;
							fSign *= -1.0;
						}
						SCSIZE nCount = nC * nR;
						for ( SCSIZE j = 1; j < nCount; j++ )
						{
							if (!pMat->IsValue(j))
							{
								SetIllegalArgument();
								return;
							}
							fx = pMat->GetDouble(j);
							if (fx < 0.0)
							{
								fx *= -1.0;
								fSign *= -1.0;
							}
							fy = fx * fy / ScGetGGT(fx, fy);
=====================================================================
Found a 18 line (184 tokens) duplication in the following files: 
Starting at line 1690 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1809 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                  "\xAD\xF7\xAD\xF8\xAD\xF9\xAD\xFA\xAD\xFB\xAD\xFC"),
              { 0x2460,0x2461,0x2462,0x2463,0x2464,0x2465,0x2466,0x2467,0x2468,
                0x2469,0x246A,0x246B,0x246C,0x246D,0x246E,0x246F,0x2470,0x2471,
                0x2472,0x2473,0x2160,0x2161,0x2162,0x2163,0x2164,0x2165,0x2166,
                0x2167,0x2168,0x2169,0x3349,0x3314,0x3322,0x334D,0x3318,0x3327,
                0x3303,0x3336,0x3351,0x3357,0x330D,0x3326,0x3323,0x332B,0x334A,
                0x333B,0x339C,0x339D,0x339E,0x338E,0x338F,0x33C4,0x33A1,0x337B,
                0x301D,0x301F,0x2116,0x33CD,0x2121,0x32A4,0x32A5,0x32A6,0x32A7,
                0x32A8,0x3231,0x3232,0x3239,0x337E,0x337D,0x337C,0x2252,0x2261,
                0x222B,0x222E,0x2211,0x221A,0x22A5,0x2220,0x221F,0x22BF,0x2235,
                0x2229,0x222A },
              83,
              true,
              true,
              false,
              false,
              RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR },
            { RTL_TEXTENCODING_EUC_JP,
=====================================================================
Found a 50 line (184 tokens) duplication in the following files: 
Starting at line 478 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/libhnj/hyphen.c
Starting at line 618 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/libhnj/hyphen.c

    hyphens[i] = '0';    

#ifdef VERBOSE
  printf ("prep_word = %s\n", prep_word);
#endif

  /* now, run the finite state machine */
  state = 0;
  for (i = 0; i < j; i++)
    {
      ch = prep_word[i];
      for (;;)
	{

	  if (state == -1) {
            /* return 1; */
	    /*  KBH: FIXME shouldn't this be as follows? */
            state = 0;
            goto try_next_letter;
          }          

#ifdef VERBOSE
	  char *state_str;
	  state_str = get_state_str (state);

	  for (k = 0; k < i - strlen (state_str); k++)
	    putchar (' ');
	  printf ("%s", state_str);
#endif

	  hstate = &dict->states[state];
	  for (k = 0; k < hstate->num_trans; k++)
	    if (hstate->trans[k].ch == ch)
	      {
		state = hstate->trans[k].new_state;
		goto found_state;
	      }
	  state = hstate->fallback_state;
#ifdef VERBOSE
	  printf (" falling back, fallback_state %d\n", state);
#endif
	}
    found_state:
#ifdef VERBOSE
      printf ("found state %d\n",state);
#endif
      /* Additional optimization is possible here - especially,
	 elimination of trailing zeroes from the match. Leading zeroes
	 have already been optimized. */
      match = dict->states[state].match;
=====================================================================
Found a 45 line (184 tokens) duplication in the following files: 
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/unix.c
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_unix.c

        int fdo = creat(argv[optind + 1], 0666);

        if (fdo < 0)
            error(FATAL, "Can't open output file %s", argv[optind + 1]);

        dup2(fdo, 1);
    }
    includelist[NINCLUDE - 1].always = 0;
    includelist[NINCLUDE - 1].file = dp;
    setsource(fp, -1, fd, NULL, 0);
}


/* memmove is defined here because some vendors don't provide it at
   all and others do a terrible job (like calling malloc) */

#if !defined(__IBMC__) && !defined(_WIN32) && !defined(__GLIBC__)

void *
    memmove(void *dp, const void *sp, size_t n)
{
    unsigned char *cdp, *csp;

    if (n <= 0)
        return 0;
    cdp = dp;
    csp = (unsigned char *) sp;
    if (cdp < csp)
    {
        do
        {
            *cdp++ = *csp++;
        } while (--n);
    }
    else
    {
        cdp += n;
        csp += n;
        do
        {
            *--cdp = *--csp;
        } while (--n);
    }
    return 0;
}
=====================================================================
Found a 82 line (184 tokens) duplication in the following files: 
Starting at line 603 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/threadtest/threadtest.cxx
Starting at line 605 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/threadtest.cxx

		}
        else
        if( nA % 3 == 0 )
		{
			m_pClass->setA( nA, m_nThreadID );
		}
		else
		{
			nA = m_pClass->getA( m_nThreadID );
		}
		#ifdef ENABLE_THREADDELAY
		// Sleep - use random value to do that too!
		nDelay.Seconds = 0;
		nDelay.Nanosec = getRandomValue();
		sleep( nDelay );
		#endif
	}

	// Don't forget to "close" teset object if you are the owner!
	if( m_bOwner == sal_True )
	{
		m_pClass->close( m_nThreadID );
	}
}

//_________________________________________________________________________________________________________________
void SAL_CALL TestThread::onTerminated()
{
	// Destroy yourself if you finished.
	// But don't forget to call listener before.
	m_pListener->set();

	m_pClass	= NULL;
	m_pListener	= NULL;

	delete this;
}

/*-****************************************************************************************************//**
	@descr	This is our test application.
			We create one ThreadSafeClass object and a lot of threads
			which use it at different times.
*//*-*****************************************************************************************************/

struct ThreadInfo
{
	Condition*	pCondition	;
	TestThread*	pThread		;
};

class TestApplication : public Application
{
	public:
		void		Main		(								);
		sal_Int32	measureTime	(	sal_Int32	nThreadCount	,
									sal_Int32	nOwner			,
									sal_Int32	nLoops=0		);
};

//_________________________________________________________________________________________________________________
//	definition
//_________________________________________________________________________________________________________________

TestApplication aApplication;

//_________________________________________________________________________________________________________________
// This function start "nThreadCount" threads to use same test class.
// You can specify the owner thread of this test class which start/stop it by using "nOwner". [1..nThreadcount]!
// If you specify "nLoops" different from 0 we use it as loop count for every started thread.
// Otherwise we work with random values.
sal_Int32 TestApplication::measureTime(	sal_Int32	nThreadCount	,
	  	 								sal_Int32	nOwner			,
	  									sal_Int32	nLoops			)
{
	// This is the class which should be tested.
	ThreadSafeClass aClass;

	// Create list of threads.
	ThreadInfo* pThreads	=	new ThreadInfo[nThreadCount];
	sal_Int32	nLoopCount	=	nLoops						;
	sal_Bool	bOwner		=	sal_False					;
	for( sal_Int32 nI=1; nI<=nThreadCount; ++nI )
=====================================================================
Found a 30 line (184 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/attributelist.cxx
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/sax/source/expatwrap/attrlistimpl.cxx

	if( std::vector< TagAttribute >::size_type(i) < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString AttributeListImpl::getValueByName(const OUString& sName) throw (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}
=====================================================================
Found a 14 line (184 tokens) duplication in the following files: 
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/PColumn.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/PColumn.cxx

									 ,sal_Bool _bAscending)
	: connectivity::sdbcx::OColumn(	getString(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)))
								,	getString(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME)))
								,	getString(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DEFAULTVALUE)))
								,	getINT32(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISNULLABLE)))
								,	getINT32(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION)))
								,	getINT32(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE)))
								,	getINT32(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE)))
								,	getBOOL(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISAUTOINCREMENT)))
								,	sal_False
								,	getBOOL(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISCURRENCY)))
								,	_bCase
								)
	, m_bAscending(_bAscending)
=====================================================================
Found a 25 line (184 tokens) duplication in the following files: 
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx
Starting at line 771 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/PreparedStatement.cxx

	::com::sun::star::uno::Sequence< sal_Int32 > aSeq;
    SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
	if( t.pEnv ){
		createStatement(t.pEnv);
		// temporaere Variable initialisieren
		static const char * cSignature = "()[I";
		static const char * cMethodName = "executeBatch";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			jintArray out = (jintArray)t.pEnv->CallObjectMethod( object, mID );
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			if(out)
			{
				jboolean p = sal_False;
				aSeq.realloc(t.pEnv->GetArrayLength(out));
				memcpy(aSeq.getArray(),t.pEnv->GetIntArrayElements(out,&p),aSeq.getLength());
				t.pEnv->DeleteLocalRef(out);
			}
		} //mID
	} //t.pEnv
	return aSeq;
}
=====================================================================
Found a 19 line (184 tokens) duplication in the following files: 
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LResultSet.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/EResultSet.cxx

Sequence<  Type > SAL_CALL OFlatResultSet::getTypes(  ) throw( RuntimeException)
{
	Sequence< Type > aTypes = OResultSet::getTypes();
	::std::vector<Type> aOwnTypes;
	aOwnTypes.reserve(aTypes.getLength());	
	const Type* pBegin = aTypes.getConstArray();
	const Type* pEnd = pBegin + aTypes.getLength();
	for(;pBegin != pEnd;++pBegin)
	{
		if(!(*pBegin == ::getCppuType((const Reference<XDeleteRows>*)0) ||
			*pBegin == ::getCppuType((const Reference<XResultSetUpdate>*)0) ||
			*pBegin == ::getCppuType((const Reference<XRowUpdate>*)0)))
		{
			aOwnTypes.push_back(*pBegin);
		}
	}
	Type* pTypes = aOwnTypes.empty() ? 0 : &aOwnTypes[0];
	Sequence< Type > aRet(pTypes, aOwnTypes.size());
	return ::comphelper::concatSequences(aRet,OFlatResultSet_BASE::getTypes());
=====================================================================
Found a 43 line (184 tokens) duplication in the following files: 
Starting at line 1286 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx
Starting at line 1406 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

	o << indent() << "any _derivedException;\n";
	OString superType(m_reader.getSuperTypeName());
	if (superType.getLength() > 0)
		dumpSuperMember(o, superType);

	sal_uInt32 		fieldCount = m_reader.getFieldCount();
	RTFieldAccess 	access = RT_ACCESS_INVALID;
	OString 		fieldName;
	OString 		fieldType;
	sal_uInt16 		i = 0;

	for (i=0; i < fieldCount; i++)
	{
		access = m_reader.getFieldAccess(i);

		if (access == RT_ACCESS_CONST || access == RT_ACCESS_INVALID)
			continue;

		fieldName = m_reader.getFieldName(i);
		fieldType = m_reader.getFieldType(i);

		// write documentation
		OString aDoc = m_reader.getFieldDoku(i);
		if( aDoc.getLength() )
			o << "/**\n" << aDoc << "\n*/";

		o << indent();
		dumpType(o, fieldType);
		o << " " << fieldName << ";\n";
	}


	dec();
	o << "};\n\n";

	dumpNameSpace(o, sal_False);

	o << "#endif /* "<< headerDefine << "*/" << "\n";

	return sal_True;
}

void ExceptionType::dumpSuperMember(FileStream& o, const OString& superType)
=====================================================================
Found a 15 line (184 tokens) duplication in the following files: 
Starting at line 3936 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 3955 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

		case M_GetPosY:
			if ( pControl->GetType() == WINDOW_DOCKINGWINDOW && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_FLOATINGWINDOW )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r FloatingWindows
			if ( pControl->GetType() == WINDOW_TABCONTROL && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_TABDIALOG )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r TabDialoge
			if ( pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_BORDERWINDOW )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r Border
            if ( (nParams & PARAM_BOOL_1) && bBool1 )
                pControl = pControl->GetWindow( WINDOW_OVERLAP );

			if ( pControl->GetType() == WINDOW_DOCKINGWINDOW && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_SPLITWINDOW )
			{
				Point aPos = pControl->GetPosPixel();
				aPos = pControl->GET_REAL_PARENT()->OutputToScreenPixel( aPos );
				pRet->GenReturn ( RET_Value, aUId, (comm_ULONG)aPos.Y() );
=====================================================================
Found a 23 line (183 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salframe.h
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salframe.h

    virtual void				ShowFullScreen( BOOL bFullScreen, sal_Int32 nMonitor );
    virtual void				StartPresentation( BOOL bStart );
    virtual void				SetAlwaysOnTop( BOOL bOnTop );
    virtual void				ToTop( USHORT nFlags );
    virtual void				SetPointer( PointerStyle ePointerStyle );
    virtual void				CaptureMouse( BOOL bMouse );
    virtual void				SetPointerPos( long nX, long nY );
    virtual void				Flush();
    virtual void				Sync();
    virtual void				SetInputContext( SalInputContext* pContext );
    virtual void				EndExtTextInput( USHORT nFlags );
    virtual String				GetKeyName( USHORT nKeyCode );
    virtual String				GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
    virtual BOOL                MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
    virtual LanguageType		GetInputLanguage();
    virtual SalBitmap*			SnapShot();
    virtual void				UpdateSettings( AllSettings& rSettings );
    virtual void				Beep( SoundType eSoundType );
    virtual const SystemEnvData*	GetSystemData() const;
    virtual SalPointerState     GetPointerState();
    virtual void				SetParent( SalFrame* pNewParent );
    virtual bool				SetPluginParent( SystemParentData* pNewParent );
    virtual void                SetBackgroundBitmap( SalBitmap* pBitmap );
=====================================================================
Found a 33 line (183 tokens) duplication in the following files: 
Starting at line 1275 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/servicemanager/servicemanager.cxx
Starting at line 1339 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/servicemanager/servicemanager.cxx

    Sequence< Any > const & rArguments,
    Reference< XComponentContext > const & xContext )
    throw (Exception, RuntimeException)
{
    check_undisposed();
#if OSL_DEBUG_LEVEL > 0
    Reference< beans::XPropertySet > xProps( xContext->getServiceManager(), UNO_QUERY );
    OSL_ASSERT( xProps.is() );
    if (xProps.is())
    {
        Reference< XComponentContext > xDefContext;
        xProps->getPropertyValue(
            OUString( RTL_CONSTASCII_USTRINGPARAM("DefaultContext") ) ) >>= xDefContext;
        OSL_ENSURE(
            xContext == xDefContext,
            "### default context of service manager singleton differs from context holding it!" );
    }
#endif

    Sequence< Reference< XInterface > > factories(
        queryServiceFactories( rServiceSpecifier, xContext ) );
    Reference< XInterface > const * p = factories.getConstArray();
    for ( sal_Int32 nPos = 0; nPos < factories.getLength(); ++nPos )
    {
        try
        {
            Reference< XInterface > const & xFactory = p[ nPos ];
            if (xFactory.is())
            {
                Reference< XSingleComponentFactory > xFac( xFactory, UNO_QUERY );
                if (xFac.is())
                {
                    return xFac->createInstanceWithArgumentsAndContext( rArguments, xContext );
=====================================================================
Found a 59 line (183 tokens) duplication in the following files: 
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodel.cxx
Starting at line 591 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodelapi.cxx

	m_xCurrentFrame	( _xFrame ),
	mePriority	( PRIO_NORMAL ),
	mbLoadDone	( sal_True )

{
}

SfxMailModel::~SfxMailModel()
{
	ClearList( mpToList );
	delete mpToList;
	ClearList( mpCcList );
	delete mpCcList;
	ClearList( mpBccList );
	delete mpBccList;
}

void SfxMailModel::AddAddress( const String& rAddress, AddressRole eRole )
{
	// don't add a empty address
	if ( rAddress.Len() > 0 )
	{
		AddressList_Impl* pList = NULL;
		if ( ROLE_TO == eRole )
		{
			if ( !mpToList )
				// create the list
				mpToList = new AddressList_Impl;
			pList = mpToList;
		}
		else if ( ROLE_CC == eRole )
		{
			if ( !mpCcList )
				// create the list
				mpCcList = new AddressList_Impl;
			pList = mpCcList;
		}
		else if ( ROLE_BCC == eRole )
		{
			if ( !mpBccList )
				// create the list
				mpBccList = new AddressList_Impl;
			pList = mpBccList;
		}
		else
		{
			DBG_ERRORFILE( "invalid address role" );
		}

		if ( pList )
		{
			// add address to list
			AddressItemPtr_Impl pAddress = new String( rAddress );
			pList->Insert( pAddress, LIST_APPEND );
		}
	}
}

SfxMailModel::SendMailResult SfxMailModel::Send( )
=====================================================================
Found a 24 line (183 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/formatsh.cxx
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/app/docst.cxx

                    com::sun::star::uno::Reference< com::sun::star::style::XStyleFamiliesSupplier > xModel(GetModel(), com::sun::star::uno::UNO_QUERY);
                    try
                    {
                        com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xStyles;
                        com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xCont = xModel->getStyleFamilies();
                        xCont->getByName(pFamilyItem->GetValue()) >>= xStyles;
                        com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xInfo;
                        xStyles->getByName( pNameItem->GetValue() ) >>= xInfo;
                        ::rtl::OUString aUIName;
                        xInfo->getPropertyValue( ::rtl::OUString::createFromAscii("DisplayName") ) >>= aUIName;
                        if ( aUIName.getLength() )
                            rReq.AppendItem( SfxStringItem( SID_STYLE_APPLY, aUIName ) );
                    }
                    catch( com::sun::star::uno::Exception& )
                    {
                    }
                }
            }

            // intentionally no break

		case SID_STYLE_EDIT:
		case SID_STYLE_DELETE:
		case SID_STYLE_WATERCAN:
=====================================================================
Found a 39 line (183 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/linkuno.cxx
Starting at line 767 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/linkuno.cxx

void SAL_CALL ScAreaLinkObj::setPropertyValue(
						const rtl::OUString& aPropertyName, const uno::Any& aValue )
				throw(beans::UnknownPropertyException, beans::PropertyVetoException,
						lang::IllegalArgumentException, lang::WrappedTargetException,
						uno::RuntimeException)
{
	ScUnoGuard aGuard;
	String aNameString(aPropertyName);
	rtl::OUString aValStr;
	if ( aNameString.EqualsAscii( SC_UNONAME_LINKURL ) )
	{
		if ( aValue >>= aValStr )
			setFileName( aValStr );
	}
	else if ( aNameString.EqualsAscii( SC_UNONAME_FILTER ) )
	{
		if ( aValue >>= aValStr )
			setFilter( aValStr );
	}
	else if ( aNameString.EqualsAscii( SC_UNONAME_FILTOPT ) )
	{
		if ( aValue >>= aValStr )
			setFilterOptions( aValStr );
	}
	else if ( aNameString.EqualsAscii( SC_UNONAME_REFPERIOD ) )
	{
		sal_Int32 nRefresh = 0;
		if ( aValue >>= nRefresh )
			setRefreshDelay( nRefresh );
	}
	else if ( aNameString.EqualsAscii( SC_UNONAME_REFDELAY ) )
	{
		sal_Int32 nRefresh = 0;
		if ( aValue >>= nRefresh )
			setRefreshDelay( nRefresh );
	}
}

uno::Any SAL_CALL ScAreaLinkObj::getPropertyValue( const rtl::OUString& aPropertyName )
=====================================================================
Found a 29 line (183 tokens) duplication in the following files: 
Starting at line 3008 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx
Starting at line 3081 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx

							FillDir eDir, BOOL bRecord, BOOL bApi )
{
	ScDocShellModificator aModificator( rDocShell );

	BOOL bSuccess = FALSE;
	ScDocument* pDoc = rDocShell.GetDocument();
	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	SCTAB nStartTab = rRange.aStart.Tab();
	SCCOL nEndCol = rRange.aEnd.Col();
	SCROW nEndRow = rRange.aEnd.Row();
	SCTAB nEndTab = rRange.aEnd.Tab();

	if (bRecord && !pDoc->IsUndoEnabled())
		bRecord = FALSE;

	ScMarkData aMark;
	if (pTabMark)
		aMark = *pTabMark;
	else
	{
		for (SCTAB nTab=nStartTab; nTab<=nEndTab; nTab++)
			aMark.SelectTable( nTab, TRUE );
	}

	ScEditableTester aTester( pDoc, nStartCol,nStartRow, nEndCol,nEndRow, aMark );
	if ( aTester.IsEditable() )
	{
		WaitObject aWait( rDocShell.GetActiveDialogParent() );
=====================================================================
Found a 31 line (183 tokens) duplication in the following files: 
Starting at line 602 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/drwtrans.cxx
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/transobj.cxx

                ::utl::TempFile     aTempFile;
                aTempFile.EnableKillingFile();
                uno::Reference< embed::XStorage > xWorkStore =
                    ::comphelper::OStorageHelper::GetStorageFromURL( aTempFile.GetURL(), embed::ElementModes::READWRITE );

                // write document storage
                pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, sal_False );

                // mba: no relative ULRs for clipboard!
                SfxMedium aMedium( xWorkStore, String() );
                bRet = pEmbObj->DoSaveObjectAs( aMedium, FALSE );
                pEmbObj->DoSaveCompleted();

                uno::Reference< embed::XTransactedObject > xTransact( xWorkStore, uno::UNO_QUERY );
                if ( xTransact.is() )
                    xTransact->commit();

                SvStream* pSrcStm = ::utl::UcbStreamHelper::CreateStream( aTempFile.GetURL(), STREAM_READ );
                if( pSrcStm )
                {
                    rxOStm->SetBufferSize( 0xff00 );
                    *rxOStm << *pSrcStm;
                    delete pSrcStm;
                }

                bRet = TRUE;

                xWorkStore->dispose();
                xWorkStore = uno::Reference < embed::XStorage >();
                rxOStm->Commit();
			}
=====================================================================
Found a 7 line (183 tokens) duplication in the following files: 
Starting at line 1397 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0, 0,10,10,// 3030 - 303f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3040 - 304f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3050 - 305f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3060 - 306f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3070 - 307f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3080 - 308f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
=====================================================================
Found a 6 line (183 tokens) duplication in the following files: 
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1427 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 7 line (183 tokens) duplication in the following files: 
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1243 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 7 line (183 tokens) duplication in the following files: 
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10a0 - 10af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 10b0 - 10bf
=====================================================================
Found a 7 line (183 tokens) duplication in the following files: 
Starting at line 1091 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1116 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ae0 - 0aef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0af0 - 0aff

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b00 - 0b0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b10 - 0b1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b20 - 0b2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,17,// 0b30 - 0b3f
=====================================================================
Found a 8 line (183 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,17,17,17, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0dd0 - 0ddf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0de0 - 0def
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0df0 - 0dff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e00 - 0e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e10 - 0e1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0e20 - 0e2f
     0,17, 0, 0,17,17,17,17,17,17,17, 0, 0, 0, 0, 4,// 0e30 - 0e3f
=====================================================================
Found a 8 line (183 tokens) duplication in the following files: 
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 764 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0,// 33f0 - 33ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d00 - 4d0f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d10 - 4d1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d20 - 4d2f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d30 - 4d3f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d40 - 4d4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d50 - 4d5f
=====================================================================
Found a 6 line (183 tokens) duplication in the following files: 
Starting at line 673 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 757 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3380 - 338f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3390 - 339f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33a0 - 33af
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33b0 - 33bf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33c0 - 33cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0, 0,// 33d0 - 33df
=====================================================================
Found a 6 line (183 tokens) duplication in the following files: 
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27, 0, 0, 0, 0, 0,27,27,27,27,27,27,27,// 2610 - 261f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2620 - 262f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2630 - 263f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2640 - 264f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2650 - 265f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,24,// 2660 - 266f
=====================================================================
Found a 6 line (183 tokens) duplication in the following files: 
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 649 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c20 - 2c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c30 - 2c3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c40 - 2c4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c50 - 2c5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c60 - 2c6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c70 - 2c7f
=====================================================================
Found a 7 line (183 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0, 0,10,10,// 3030 - 303f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3040 - 304f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3050 - 305f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3060 - 306f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3070 - 307f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3080 - 308f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
=====================================================================
Found a 7 line (183 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1780 - 178f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1790 - 179f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 17a0 - 17af
=====================================================================
Found a 19 line (183 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 949 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

		aRow.push_back(new ORowSetValueDecorator((sal_Int32)s_nCHAR_OCTET_LENGTH));
		aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		// aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnValue::NULLABLE));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);
=====================================================================
Found a 34 line (183 tokens) duplication in the following files: 
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/apinotifierimpl.cxx
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/apinotifierimpl.cxx

void implRemoveListener( NodeGroupInfoAccess& rNode, const uno::Reference< beans::XPropertyChangeListener >& xListener, const OUString& sPropertyName ) 
	throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
	using namespace css::beans;
	try
	{
		if (!genericRemoveChildListener(rNode,xListener,sPropertyName))
		{
			throw UnknownPropertyException(
					OUString(RTL_CONSTASCII_USTRINGPARAM("Configuration: cannot remove listener - node not found !")),
					rNode.getUnoInstance() );
		}
	}
	catch (configuration::InvalidName& ex)
	{
		ExceptionMapper e(ex);
		throw UnknownPropertyException(
				OUString(RTL_CONSTASCII_USTRINGPARAM("Configuration: cannot remove listener - node not found:")) += ex.message(),
				rNode.getUnoInstance() );
	}
	catch (configuration::WrappedUnoException& ex)
	{
		throw css::lang::WrappedTargetException(
				OUString(RTL_CONSTASCII_USTRINGPARAM("Configuration: removing a listener failed: ")) += ex.message(),
				rNode.getUnoInstance(), 
				ex.getAnyUnoException());
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );
		e.unhandled();
	}
}
=====================================================================
Found a 46 line (183 tokens) duplication in the following files: 
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/codemaker/global.cxx
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/codemaker/global.cxx

	return *(aGlobalMap.insert( sValue ).first);
}

static sal_Bool isFileUrl(const OString& fileName)
{
    if (fileName.indexOf("file://") == 0 )
        return sal_True;
    return sal_False;
}

OUString convertToFileUrl(const OString& fileName)
{
    if ( isFileUrl(fileName) )
    {
        return OStringToOUString(fileName, osl_getThreadTextEncoding());
    }

    OUString uUrlFileName;
    OUString uFileName(fileName.getStr(), fileName.getLength(), osl_getThreadTextEncoding());
    if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
    {
        OUString uWorkingDir;
        if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None) {
            OSL_ASSERT(false);
        }
        if (FileBase::getAbsoluteFileURL(uWorkingDir, uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    } else
    {
        if (FileBase::getFileURLFromSystemPath(uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    }

    return uUrlFileName;
}

//*************************************************************************
// FileStream
//*************************************************************************
FileStream::FileStream()
=====================================================================
Found a 49 line (183 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32 nFunctionIndex,
    sal_Int32 nVtableOffset,
	void ** pCallStack,
	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );
	
	// pCallStack: ret adr, [ret *], this, params
    void * pThis;
	if( nFunctionIndex & 0x80000000 )
	{
		nFunctionIndex &= 0x7fffffff;
        pThis = pCallStack[2];
=====================================================================
Found a 19 line (183 tokens) duplication in the following files: 
Starting at line 2071 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 1638 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/app/dbggui.cxx

                    if ( (pTempChild->GetType() == WINDOW_EDIT) ||
                         (pTempChild->GetType() == WINDOW_MULTILINEEDIT) ||
                         (pTempChild->GetType() == WINDOW_SPINFIELD) ||
                         (pTempChild->GetType() == WINDOW_PATTERNFIELD) ||
                         (pTempChild->GetType() == WINDOW_NUMERICFIELD) ||
                         (pTempChild->GetType() == WINDOW_METRICFIELD) ||
                         (pTempChild->GetType() == WINDOW_CURRENCYFIELD) ||
                         (pTempChild->GetType() == WINDOW_DATEFIELD) ||
                         (pTempChild->GetType() == WINDOW_TIMEFIELD) ||
                         (pTempChild->GetType() == WINDOW_LISTBOX) ||
                         (pTempChild->GetType() == WINDOW_MULTILISTBOX) ||
                         (pTempChild->GetType() == WINDOW_COMBOBOX) ||
                         (pTempChild->GetType() == WINDOW_PATTERNBOX) ||
                         (pTempChild->GetType() == WINDOW_NUMERICBOX) ||
                         (pTempChild->GetType() == WINDOW_METRICBOX) ||
                         (pTempChild->GetType() == WINDOW_CURRENCYBOX) ||
                         (pTempChild->GetType() == WINDOW_DATEBOX) ||
                         (pTempChild->GetType() == WINDOW_TIMEBOX) )
                    {
=====================================================================
Found a 26 line (182 tokens) duplication in the following files: 
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 636 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readCurrencyFieldModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readBorderProps( this, aStyle ))
        aStyle._set |= 0x4;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }

    // collect elements
    readDefaults();
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
=====================================================================
Found a 36 line (182 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/OOo2Oasis.cxx
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/Oasis2OOo.cxx

		  				XML_FAMILY_TYPE_PAGE_LAYOUT ),
	ENTRY1( NUMBER, NUMBER_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_DATA ),
	ENTRY1( NUMBER, CURRENCY_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_DATA ),
	ENTRY1( NUMBER, PERCENTAGE_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_DATA ),
	ENTRY1( NUMBER, DATE_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_DATA ),
	ENTRY1( NUMBER, TIME_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_DATA ),
	ENTRY1( NUMBER, BOOLEAN_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_DATA ),
	ENTRY1( NUMBER, TEXT_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_DATA ),
	ENTRY1( TEXT, LIST_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_LIST ),
//	ENTRY0( TEXT, OUTLINE_STYLE, STYLE ),

	ENTRY1( STYLE, HEADER_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_HEADER_FOOTER ),
	ENTRY1( STYLE, FOOTER_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_HEADER_FOOTER ),
	ENTRY1( TEXT, LIST_LEVEL_STYLE_NUMBER, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_LIST ),
	ENTRY1( TEXT, LIST_LEVEL_STYLE_BULLET, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_LIST ),
	ENTRY1( TEXT, LIST_LEVEL_STYLE_IMAGE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_LIST ),
	ENTRY1( TEXT, OUTLINE_LEVEL_STYLE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_LIST ),
	ENTRY1( DRAW, GRADIENT, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_GRADIENT ),
	ENTRY1( DRAW, FILL_IMAGE, XML_ETACTION_STYLE,
		 		XML_FAMILY_TYPE_FILL_IMAGE ),
	ENTRY2QN( DRAW, OPACITY, XML_ETACTION_STYLE_RENAME,
=====================================================================
Found a 9 line (182 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkdata_curs.h

static char linkdata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
   0x10, 0xf0, 0x1f, 0x00, 0x08, 0x70, 0x18, 0x00, 0x10, 0xf0, 0x18, 0x00,
=====================================================================
Found a 40 line (182 tokens) duplication in the following files: 
Starting at line 1138 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/gdi/salatslayout.cxx
Starting at line 1005 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/winlayout.cxx

        mpGlyphOrigAdvs = new int[ mnGlyphCount ];
        for( int k = 0; k < mnGlyphCount; ++k )
            mpGlyphOrigAdvs[ k ] = mpGlyphAdvances[ k ];
    }

    // remove dropped glyphs inside the layout
    int nNewGC = 0;
    for( i = 0; i < mnGlyphCount; ++i )
    {
        if( mpOutGlyphs[ i ] == DROPPED_OUTGLYPH )
        {
            // adjust relative position to last valid glyph
            int nDroppedWidth = mpGlyphAdvances[ i ];
            mpGlyphAdvances[ i ] = 0;
            if( nNewGC > 0 )
                mpGlyphAdvances[ nNewGC-1 ] += nDroppedWidth;
            else
                mnBaseAdv += nDroppedWidth;

            // zero the virtual char width for the char that has a fallback
            int nRelCharPos = mpGlyphs2Chars[ i ] - mnMinCharPos;
            if( nRelCharPos >= 0 )
                mpCharWidths[ nRelCharPos ] = 0;
        }
        else
        {
            if( nNewGC != i )
            {
                // rearrange the glyph array to get rid of the dropped glyph
                mpOutGlyphs[ nNewGC ]     = mpOutGlyphs[ i ];
                mpGlyphAdvances[ nNewGC ] = mpGlyphAdvances[ i ];
                mpGlyphOrigAdvs[ nNewGC ] = mpGlyphOrigAdvs[ i ];
                mpGlyphs2Chars[ nNewGC ]  = mpGlyphs2Chars[ i ];
            }
            ++nNewGC;
        }
    }

    mnGlyphCount = nNewGC;
    if( mnGlyphCount <= 0 )
=====================================================================
Found a 31 line (182 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    IMPLCONSTSTRINGARRAY(ListBox);
    IMPLCONSTSTRINGARRAY(TextBox);
    IMPLCONSTSTRINGARRAY(TextField);
    IMPLCONSTSTRINGARRAY(MSMacroCmds);
}

template<class C> bool wwString<C>::TestBeltAndBraces(const SvStream& rStrm)
{
    bool bRet = false;
    sal_uInt32 nOldPos = rStrm.Tell();
    SvStream &rMutableStrm = const_cast<SvStream &>(rStrm);
    sal_uInt32 nLen = rMutableStrm.Seek(STREAM_SEEK_TO_END);
    rMutableStrm.Seek(nOldPos);
    C nBelt;
    rMutableStrm >> nBelt;
    nBelt *= sizeof(C);
    if (nOldPos + sizeof(C) + nBelt + sizeof(C) <= nLen &&
        !rStrm.GetError() && !rStrm.IsEof())
    {
        rMutableStrm.SeekRel(nBelt);
        if (!rStrm.GetError())
        {
            C cBraces;
            rMutableStrm >> cBraces;
            if (!rMutableStrm.GetError() && cBraces == 0)
                bRet = true;
        }
    }
    rMutableStrm.Seek(nOldPos);
    return bRet;
}
=====================================================================
Found a 37 line (182 tokens) duplication in the following files: 
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 1596 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx

    aStyleHelper.ApplyAttrs();
#else
    if (bFontNodeNeeded)
    {
        SmToken aToken;
        aToken.cMathChar = '\0';
        aToken.nGroup = 0;
        aToken.nLevel = 5;

        if (nIsBold != -1)
        {
            if (nIsBold)
                aToken.eType = TBOLD;
            else
                aToken.eType = TNBOLD;
            SmStructureNode *pFontNode = static_cast<SmStructureNode *>
                (new SmFontNode(aToken));
            pFontNode->SetSubNodes(0,rNodeStack.Pop());
            rNodeStack.Push(pFontNode);
        }
        if (nIsItalic != -1)
        {
            if (nIsItalic)
                aToken.eType = TITALIC;
            else
                aToken.eType = TNITALIC;
            SmStructureNode *pFontNode = static_cast<SmStructureNode *>
                (new SmFontNode(aToken));
            pFontNode->SetSubNodes(0,rNodeStack.Pop());
            rNodeStack.Push(pFontNode);
        }
        if (nFontSize != 0.0)
        {
            aToken.eType = TSIZE;
            SmFontNode *pFontNode = new SmFontNode(aToken);

            if (MAP_RELATIVE == GetSmImport().GetMM100UnitConverter().
=====================================================================
Found a 15 line (182 tokens) duplication in the following files: 
Starting at line 2512 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/dapiuno.cxx
Starting at line 937 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

    switch (nPart)
    {
        //! use translated strings from globstr.src
        case com::sun::star::sheet::DataPilotFieldGroupBy::SECONDS:  aRet = String::CreateFromAscii("Seconds");  break;
        case com::sun::star::sheet::DataPilotFieldGroupBy::MINUTES:  aRet = String::CreateFromAscii("Minutes");  break;
        case com::sun::star::sheet::DataPilotFieldGroupBy::HOURS:    aRet = String::CreateFromAscii("Hours");    break;
        case com::sun::star::sheet::DataPilotFieldGroupBy::DAYS:     aRet = String::CreateFromAscii("Days");     break;
        case com::sun::star::sheet::DataPilotFieldGroupBy::MONTHS:   aRet = String::CreateFromAscii("Months");   break;
        case com::sun::star::sheet::DataPilotFieldGroupBy::QUARTERS: aRet = String::CreateFromAscii("Quarters"); break;
        case com::sun::star::sheet::DataPilotFieldGroupBy::YEARS:    aRet = String::CreateFromAscii("Years");    break;
        default:
            DBG_ERROR("invalid date part");
    }
    return aRet;
}
=====================================================================
Found a 30 line (182 tokens) duplication in the following files: 
Starting at line 2293 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/table2.cxx
Starting at line 2345 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/table2.cxx

void ScTable::ShowRows(SCROW nRow1, SCROW nRow2, BOOL bShow)
{
	SCROW nStartRow = nRow1;
	nRecalcLvl++;
	while (nStartRow <= nRow2)
	{
		BYTE nOldFlag = pRowFlags->GetValue(nStartRow) & CR_HIDDEN;
        SCROW nEndRow = pRowFlags->GetBitStateEnd( nStartRow, CR_HIDDEN, nOldFlag);
        if (nEndRow > nRow2)
            nEndRow = nRow2;

		BOOL bWasVis = ( nOldFlag == 0 );
		BOOL bChanged = ( bWasVis != bShow );
		if ( bChanged )
		{
			ScDrawLayer* pDrawLayer = pDocument->GetDrawLayer();
			if (pDrawLayer)
			{
				long nHeight = (long) pRowHeight->SumValues( nStartRow, nEndRow);
				if (bShow)
					pDrawLayer->HeightChanged( nTab, nStartRow, nHeight );
				else
					pDrawLayer->HeightChanged( nTab, nStartRow, -nHeight );
			}
		}

		if (bShow)
            pRowFlags->AndValue( nStartRow, nEndRow, sal::static_int_cast<BYTE>(~(CR_HIDDEN | CR_FILTERED)) );
		else
            pRowFlags->OrValue( nStartRow, nEndRow, CR_HIDDEN);
=====================================================================
Found a 44 line (182 tokens) duplication in the following files: 
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/helper/strhelper.cxx
Starting at line 290 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/helper/strhelper.cxx

    const char *pRun = rLine.GetBuffer();
    

    while( *pRun )
    {
        while( *pRun && isSpace( *pRun ) )
            pRun++;
        if( ! *pRun )
            break;
        while( *pRun && ! isSpace( *pRun ) )
        {
            if( *pRun == '\\' )
            {
                // escapement
                pRun++;
                if( *pRun )
                    pRun++;
            }
            else if( *pRun == '`' )
            {
                do pRun++; while( *pRun && *pRun != '`' );
                if( *pRun )
                    pRun++;
            }
            else if( *pRun == '\'' )
            {
                do pRun++; while( *pRun && *pRun != '\'' );
                if( *pRun )
                    pRun++;
            }
            else if( *pRun == '"' )
            {
                do pRun++; while( *pRun && *pRun != '"' );
                if( *pRun )
                    pRun++;
            }
            else
                pRun++;
        }
        nTokenCount++;
    }
    
    return nTokenCount;
}
=====================================================================
Found a 24 line (182 tokens) duplication in the following files: 
Starting at line 751 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/uicmdstohtml.cxx

            aID                     = aLine.getToken( 0, ',', nIndex );
            aAccelState             = aLine.getToken( 2, ',', nIndex );
            aMenuState              = aLine.getToken( 0, ',', nIndex );
            aStatusState            = aLine.getToken( 0, ',', nIndex );
            aToolbarState           = aLine.getToken( 0, ',', nIndex );
            aImageRotationState     = aLine.getToken( 8, ',', nIndex );
            aImageReflectionState   = aLine.getToken( 0, ',', nIndex );
            aCmdName                = aLine.getToken( 10, ',', nIndex );
            aSlotName               = aLine.getToken( 1, ',', nIndex );

            if ( aCmdName.getLength() == 0 )
                aCmdName = aSlotName;

            int nID = aID.toInt32();

            if ( nID > 5000 && ( aAccelState.equalsIgnoreAsciiCase( "TRUE" ) ||
                                 aMenuState.equalsIgnoreAsciiCase( "TRUE" ) ||
                                 aStatusState.equalsIgnoreAsciiCase( "TRUE" ) ||
                                 aToolbarState.equalsIgnoreAsciiCase( "TRUE" ) ))
            {
                CommandLabels aCmdLabel;

                aCmdLabel.nID = nID;
                aCmdLabel.aCommand += OStringToOUString( aCmdName, RTL_TEXTENCODING_ASCII_US );
=====================================================================
Found a 9 line (182 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/copydata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/linkdata_curs.h

static char linkdata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
   0x10, 0xf0, 0x1f, 0x00, 0x08, 0x70, 0x18, 0x00, 0x10, 0xf0, 0x18, 0x00,
=====================================================================
Found a 33 line (182 tokens) duplication in the following files: 
Starting at line 362 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

	return xRS;
}
// -------------------------------------------------------------------------

Reference< XConnection > SAL_CALL OStatement_Base::getConnection(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);

	return (Reference< XConnection >)m_pConnection;
}
// -------------------------------------------------------------------------

Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
	Any aRet = ::cppu::queryInterface(rType,static_cast< XBatchExecution*> (this));
	return aRet.hasValue() ? aRet : OStatement_Base::queryInterface(rType);
}
// -------------------------------------------------------------------------

void SAL_CALL OStatement::addBatch( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);


	m_aBatchList.push_back(sql);
}
// -------------------------------------------------------------------------
Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);
=====================================================================
Found a 37 line (182 tokens) duplication in the following files: 
Starting at line 1328 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx
Starting at line 1448 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

void ExceptionType::dumpSuperMember(FileStream& o, const OString& superType)
{
	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));

		if (aSuperReader.isValid())
		{
			dumpSuperMember(o, aSuperReader.getSuperTypeName());

			sal_uInt32 		fieldCount = aSuperReader.getFieldCount();
			RTFieldAccess 	access = RT_ACCESS_INVALID;
			OString 		fieldName;
			OString 		fieldType;
			for (sal_uInt16 i=0; i < fieldCount; i++)
			{
				access = aSuperReader.getFieldAccess(i);

				if (access == RT_ACCESS_CONST || access == RT_ACCESS_INVALID)
					continue;

				fieldName = aSuperReader.getFieldName(i);
				fieldType = aSuperReader.getFieldType(i);

				// write documentation
				OString aDoc = aSuperReader.getFieldDoku(i);
				if( aDoc.getLength() )
					o << "/**\n" << aDoc << "\n*/";

				o << indent();
				dumpType(o, fieldType);
				o << " ";
				o << fieldName << ";\n";
			}
		}
	}
}
=====================================================================
Found a 35 line (182 tokens) duplication in the following files: 
Starting at line 1015 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 1239 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 554 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

BASETYPE IdlType::isBaseType(const OString& type)
{
	if (type.equals("long"))
		return BT_LONG;
	if (type.equals("short"))
		return BT_SHORT;
	if (type.equals("hyper"))
		return BT_HYPER;
	if (type.equals("string"))
		return BT_STRING;
	if (type.equals("boolean"))
		return BT_BOOLEAN;
	if (type.equals("char"))
		return BT_CHAR;
	if (type.equals("byte"))
		return BT_BYTE;
	if (type.equals("any"))
		return BT_ANY;
	if (type.equals("float"))
		return BT_FLOAT;
	if (type.equals("double"))
		return BT_DOUBLE;
	if (type.equals("void"))
		return BT_VOID;
	if (type.equals("unsigned long"))
		return BT_UNSIGNED_LONG;
	if (type.equals("unsigned short"))
		return BT_UNSIGNED_SHORT;
	if (type.equals("unsigned hyper"))
		return BT_UNSIGNED_HYPER;

	return BT_INVALID;
}

OString	IdlType::checkSpecialIdlType(const OString& type)
=====================================================================
Found a 39 line (181 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/GradientStyle.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/TransGradientStyle.cxx

	SvXMLTokenMap aTokenMap( aTrGradientAttrTokenMap );
    SvXMLNamespaceMap& rNamespaceMap = rImport.GetNamespaceMap();

	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rFullAttrName = xAttrList->getNameByIndex( i );
		OUString aStrAttrName;
		sal_uInt16 nPrefix = rNamespaceMap.GetKeyByAttrName( rFullAttrName, &aStrAttrName );
		const OUString& rStrValue = xAttrList->getValueByIndex( i );

		sal_Int32 nTmpValue;

		switch( aTokenMap.Get( nPrefix, aStrAttrName ) )
		{
		case XML_TOK_GRADIENT_NAME:
			{
				rStrName = rStrValue;
				bHasName = sal_True;
			}			
			break;
		case XML_TOK_GRADIENT_DISPLAY_NAME:
			{
				aDisplayName = rStrValue;
			}			
			break;
		case XML_TOK_GRADIENT_STYLE:
			{
				sal_uInt16 eValue;
				if( SvXMLUnitConverter::convertEnum( eValue, rStrValue, pXML_GradientStyle_Enum ) )
				{
					aGradient.Style = (awt::GradientStyle) eValue;
					bHasStyle = sal_True;
				}
			}
			break;
		case XML_TOK_GRADIENT_CX:
			SvXMLUnitConverter::convertPercent( nTmpValue, rStrValue );
			aGradient.XOffset = sal::static_int_cast< sal_Int16 >(nTmpValue);
=====================================================================
Found a 36 line (181 tokens) duplication in the following files: 
Starting at line 914 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi.cxx
Starting at line 736 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/window/salobj.cxx

void WinSalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
{
	RECT*		pRect = mpNextClipRect;
	RECT*		pBoundRect = &(mpClipRgnData->rdh.rcBound);
	long		nRight = nX + nWidth;
	long		nBottom = nY + nHeight;

	if ( mbFirstClipRect )
	{
		pBoundRect->left	= nX;
		pBoundRect->top 	= nY;
		pBoundRect->right	= nRight;
		pBoundRect->bottom	= nBottom;
		mbFirstClipRect = FALSE;
	}
	else
	{
		if ( nX < pBoundRect->left )
			pBoundRect->left = (int)nX;

		if ( nY < pBoundRect->top )
			pBoundRect->top = (int)nY;

		if ( nRight > pBoundRect->right )
			pBoundRect->right = (int)nRight;

		if ( nBottom > pBoundRect->bottom )
			pBoundRect->bottom = (int)nBottom;
	}

	pRect->left 	= (int)nX;
	pRect->top		= (int)nY;
	pRect->right	= (int)nRight;
	pRect->bottom	= (int)nBottom;
	mpNextClipRect++;
}
=====================================================================
Found a 22 line (181 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx
Starting at line 423 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx

	Rectangle   aClipRect = rRect;
	Rectangle 	aRect = rRect;

	aRect.Left()--;
	aRect.Top()--;
	aRect.Right()++;
	aRect.Bottom()++;

	// rotiertes BoundRect ausrechnen
	double  fAngle  = (rGradient.GetAngle() % 3600) * F_PI1800;
	double  fWidth  = aRect.GetWidth();
	double  fHeight = aRect.GetHeight();
	double  fDX     = fWidth  * fabs( cos( fAngle ) ) +
					  fHeight * fabs( sin( fAngle ) );
	double  fDY     = fHeight * fabs( cos( fAngle ) ) +
					  fWidth  * fabs( sin( fAngle ) );
			fDX = (fDX - fWidth)  * 0.5 + 0.5;
			fDY = (fDY - fHeight) * 0.5 + 0.5;
	aRect.Left()   -= (long)fDX;
	aRect.Right()  += (long)fDX;
	aRect.Top()    -= (long)fDY;
	aRect.Bottom() += (long)fDY;
=====================================================================
Found a 18 line (181 tokens) duplication in the following files: 
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/registry_tdprovider/tdprovider.cxx
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/tdmanager/tdmgr.cxx

    virtual void SAL_CALL remove( const Any & rElement ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);

	// XHierarchicalNameAccess
	virtual Any SAL_CALL getByHierarchicalName( const OUString & rName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);
	virtual sal_Bool SAL_CALL hasByHierarchicalName( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException);

    // XTypeDescriptionEnumerationAccess
    virtual ::com::sun::star::uno::Reference<
        ::com::sun::star::reflection::XTypeDescriptionEnumeration > SAL_CALL
    createTypeDescriptionEnumeration(
        const ::rtl::OUString& moduleName,
        const ::com::sun::star::uno::Sequence<
            ::com::sun::star::uno::TypeClass >& types,
        ::com::sun::star::reflection::TypeDescriptionSearchDepth depth )
            throw ( ::com::sun::star::reflection::NoSuchTypeNameException,
                    ::com::sun::star::reflection::InvalidTypeNameException,
                    ::com::sun::star::uno::RuntimeException );
};
=====================================================================
Found a 49 line (181 tokens) duplication in the following files: 
Starting at line 969 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodel.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodelapi.cxx

	BOOL CreateFromAddress_Impl( String& rFrom )

	/*	[Beschreibung]

		Diese Funktion versucht mit Hilfe des IniManagers eine From-Adresse
		zu erzeugen. daf"ur werden die Felder 'Vorname', 'Name' und 'EMail'
		aus der Applikations-Ini-Datei ausgelesen. Sollten diese Felder
		nicht gesetzt sein, wird FALSE zur"uckgegeben.

		[R"uckgabewert]

		TRUE:	Adresse konnte erzeugt werden.
		FALSE:	Adresse konnte nicht erzeugt werden.
	*/

	{
		SvtUserOptions aUserCFG;
		String aName		= aUserCFG.GetLastName	();
		String aFirstName	= aUserCFG.GetFirstName	();
		if ( aFirstName.Len() || aName.Len() )
		{
			if ( aFirstName.Len() )
			{
				rFrom = TRIM( aFirstName );

				if ( aName.Len() )
					rFrom += ' ';
			}
			rFrom += TRIM( aName );
			// unerlaubte Zeichen entfernen
			rFrom.EraseAllChars( '<' );
			rFrom.EraseAllChars( '>' );
			rFrom.EraseAllChars( '@' );
		}
		String aEmailName = aUserCFG.GetEmail();
		// unerlaubte Zeichen entfernen
		aEmailName.EraseAllChars( '<' );
		aEmailName.EraseAllChars( '>' );

		if ( aEmailName.Len() )
		{
			if ( rFrom.Len() )
				rFrom += ' ';
			( ( rFrom += '<' ) += TRIM( aEmailName ) ) += '>';
		}
		else
			rFrom.Erase();
		return ( rFrom.Len() > 0 );
	}
=====================================================================
Found a 30 line (181 tokens) duplication in the following files: 
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/sax/source/expatwrap/attrlistimpl.cxx
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx

	if( i < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw  (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString AttributeListImpl::getValueByName(const OUString& sName) throw  (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}
=====================================================================
Found a 37 line (181 tokens) duplication in the following files: 
Starting at line 801 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx
Starting at line 856 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx

    c_rtl_tres_state_start( hRtlTestResult, "getStr");
	sal_Char methName[MAXBUFLENGTH];
	sal_Char* pMeth = methName;

	const sal_Unicode tmpUC=0x0;
	rtl_uString* tmpUstring = NULL;
	const sal_Char *tmpStr=kTestStr1;
	sal_Int32 tmpLen=(sal_Int32) kTestStr1Len;
	//sal_Int32 cmpLen = 0;
        OUString tempString(aUStr1);

	rtl_string2UString( &tmpUstring, tmpStr,  tmpLen,                                
		osl_getThreadTextEncoding(), OSTRING_TO_OUSTRING_CVTFLAGS );
    OSL_ASSERT(tmpUstring != NULL);


    typedef struct TestCase
    {
        sal_Char*			comments;
        const sal_Unicode*		expVal;
        sal_Int32			cmpLen;
        OUStringBuffer*                 input1;
        ~TestCase()                     {  delete input1;}
    } TestCase;

    TestCase arrTestCase[] =
    {
      	{"test normal ustring",(*tmpUstring).buffer,kTestStr1Len, 
      				new OUStringBuffer(tempString)},
        {"test empty ustring",&tmpUC, 1, new OUStringBuffer()}
    };

    sal_Bool res = sal_True;
    sal_Int32 i;
    for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
    {
       const sal_Unicode* pstr = arrTestCase[i].input1->getStr();
=====================================================================
Found a 8 line (181 tokens) duplication in the following files: 
Starting at line 1434 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f00 - 2f0f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f10 - 2f1f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f20 - 2f2f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f30 - 2f3f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f40 - 2f4f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f50 - 2f5f
=====================================================================
Found a 29 line (181 tokens) duplication in the following files: 
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,    0xE082,         0,         0,
    // F080
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F090
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
=====================================================================
Found a 7 line (181 tokens) duplication in the following files: 
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1488 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0,10,10,10, 0,10, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4c0 - a4cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4d0 - a4df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4e0 - a4ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fb00 - fb0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,17, 1,// fb10 - fb1f
=====================================================================
Found a 7 line (181 tokens) duplication in the following files: 
Starting at line 793 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,// fa20 - fa2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa30 - fa3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa40 - fa4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa50 - fa5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa60 - fa6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa70 - fa7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa80 - fa8f
=====================================================================
Found a 7 line (181 tokens) duplication in the following files: 
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 771 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d50 - 4d5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d60 - 4d6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d70 - 4d7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d80 - 4d8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d90 - 4d9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4da0 - 4daf
     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4db0 - 4dbf
=====================================================================
Found a 7 line (181 tokens) duplication in the following files: 
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 673 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27, 0,27,27,27,27,27,// 2e90 - 2e9f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2ea0 - 2eaf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2eb0 - 2ebf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2ec0 - 2ecf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2ed0 - 2edf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2ee0 - 2eef
    27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff
=====================================================================
Found a 6 line (181 tokens) duplication in the following files: 
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30a0 - 30af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30b0 - 30bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30c0 - 30cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30d0 - 30df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30e0 - 30ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,22, 4, 4, 4, 0,// 30f0 - 30ff
=====================================================================
Found a 7 line (181 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1390 - 139f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13a0 - 13af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13b0 - 13bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13c0 - 13cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13d0 - 13df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13e0 - 13ef
     5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 13f0 - 13ff
=====================================================================
Found a 8 line (181 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0,23, 0, 0, 0, 0,// 10f0 - 10ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1100 - 110f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1110 - 111f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1120 - 112f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1130 - 113f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1140 - 114f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 5,// 1150 - 115f
=====================================================================
Found a 6 line (181 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 793 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fa0 - 9faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fb0 - 9fbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fc0 - 9fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fd0 - 9fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fe0 - 9fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9ff0 - 9fff
=====================================================================
Found a 36 line (181 tokens) duplication in the following files: 
Starting at line 1995 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/newmenucontroller.cxx

    if ( m_bModuleIdentified )
    {
        Reference< XAcceleratorConfiguration > xDocAccelCfg( m_xDocAcceleratorManager );
        Reference< XAcceleratorConfiguration > xModuleAccelCfg( m_xModuleAcceleratorManager );
        Reference< XAcceleratorConfiguration > xGlobalAccelCfg( m_xGlobalAcceleratorManager );

        if ( !m_bAcceleratorCfg )
        {
            // Retrieve references on demand
            m_bAcceleratorCfg = sal_True;
            if ( !xDocAccelCfg.is() )
            {
                Reference< XController > xController = m_xFrame->getController();
                Reference< XModel > xModel;
                if ( xController.is() )
                {
                    xModel = xController->getModel();
                    if ( xModel.is() )
                    {
                        Reference< XUIConfigurationManagerSupplier > xSupplier( xModel, UNO_QUERY );
                        if ( xSupplier.is() )
                        {
                            Reference< XUIConfigurationManager > xDocUICfgMgr( xSupplier->getUIConfigurationManager(), UNO_QUERY );
                            if ( xDocUICfgMgr.is() )
                            {
                                xDocAccelCfg = Reference< XAcceleratorConfiguration >( xDocUICfgMgr->getShortCutManager(), UNO_QUERY );
                                m_xDocAcceleratorManager = xDocAccelCfg;
                            }
                        }
                    }
                }
            }

            if ( !xModuleAccelCfg.is() )
            {
                Reference< XModuleUIConfigurationManagerSupplier > xModuleCfgMgrSupplier( m_xServiceManager->createInstance(
=====================================================================
Found a 30 line (181 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/attributelist.cxx
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/sax/source/expatwrap/attrlistimpl.cxx

	if( std::vector< TagAttribute >::size_type(i) < m_pImpl->vecAttribute.size() ) {
		return m_pImpl->vecAttribute[i].sValue;
	}
	return OUString();

}

OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sType;
		}
	}
	return OUString();
}

OUString AttributeListImpl::getValueByName(const OUString& sName) throw (RuntimeException)
{
	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}
=====================================================================
Found a 38 line (181 tokens) duplication in the following files: 
Starting at line 1398 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 1418 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx

			 pMenu->GetItemType( nCurPos ) != MENUITEM_SEPARATOR )
		{
			if ( nCurItemId >= START_ITEMID_WINDOWLIST &&
				 nCurItemId <= END_ITEMID_WINDOWLIST )
			{
				// window list menu item selected

				// #110897#
                // Reference< XFramesSupplier > xDesktop( ::comphelper::getProcessServiceFactory()->createInstance( DESKTOP_SERVICE ), UNO_QUERY );
                Reference< XFramesSupplier > xDesktop( getServiceFactory()->createInstance( DESKTOP_SERVICE ), UNO_QUERY );

				if ( xDesktop.is() )
				{
					USHORT nTaskId = START_ITEMID_WINDOWLIST;
                    Reference< XIndexAccess > xList( xDesktop->getFrames(), UNO_QUERY );
                    sal_Int32 nCount = xList->getCount();
                    for ( sal_Int32 i=0; i<nCount; ++i )
					{
                        Any aItem = xList->getByIndex(i);
                        Reference< XFrame > xFrame;
                        aItem >>= xFrame;
                        if ( xFrame.is() && nTaskId == nCurItemId )
						{
                            Window* pWin = VCLUnoHelper::GetWindow( xFrame->getContainerWindow() );
							pWin->GrabFocus();
							pWin->ToTop( TOTOP_RESTOREWHENMIN );
							break;
						}

						nTaskId++;
					}
				}
			}
			else
			{
				MenuItemHandler* pMenuItemHandler = GetMenuItemHandler( nCurItemId );
				if ( pMenuItemHandler && pMenuItemHandler->xMenuItemDispatch.is() )
				{
=====================================================================
Found a 6 line (181 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 793 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fa0 - 9faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fb0 - 9fbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fc0 - 9fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fd0 - 9fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fe0 - 9fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9ff0 - 9fff
=====================================================================
Found a 12 line (181 tokens) duplication in the following files: 
Starting at line 2074 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 1103 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/poly.cxx

    {
        // deCasteljau bezier arc, split at t=0.5
        // Foley/vanDam, p. 508
        const double L1x( P1x ), 		   	 L1y( P1y );
        const double L2x( (P1x + P2x)*0.5 ), L2y( (P1y + P2y)*0.5 );
        const double Hx ( (P2x + P3x)*0.5 ), Hy ( (P2y + P3y)*0.5 );
        const double L3x( (L2x + Hx)*0.5 ),  L3y( (L2y + Hy)*0.5 );
        const double R4x( P4x ), 		   	 R4y( P4y );
        const double R3x( (P3x + P4x)*0.5 ), R3y( (P3y + P4y)*0.5 );
        const double R2x( (Hx + R3x)*0.5 ),  R2y( (Hy + R3y)*0.5 );
        const double R1x( (L3x + R2x)*0.5 ), R1y( (L3y + R2y)*0.5 );
        const double L4x( R1x ), 		     L4y( R1y );
=====================================================================
Found a 42 line (181 tokens) duplication in the following files: 
Starting at line 701 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/misc/mergechange.cxx
Starting at line 1086 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/misc/mergechange.cxx

	void OMergeChanges::handle(SubtreeChange const& _rSubtree)
	{
		// Handle a SubtreeChange
		// we must check if exact this SubtreeChange is in the TreeChangeList, if not,
		// we must add this SubtreeChange to the TreeChangeList
		// with the pointer m_pCurrentParent we remember our SubtreeChange in witch we
		// add all other Changes.

        OUString aNodeName = _rSubtree.getNodeName();

        Change *pChange = findExistingChange(m_pCurrentParent,aNodeName);

		// const sal_Char* pType = pChange ? pChange->getType() : NULL;
		SubtreeChange* pSubtreeChange = NULL;
		if (pChange == NULL || pChange->ISA(SubtreeChange))
		{
			// need to create a new Subtreechange
			if (!pChange)
			{
				// create a new SubtreeChange
				auto_ptr<SubtreeChange> pNewChange(new SubtreeChange(_rSubtree, SubtreeChange::NoChildCopy()));
                pSubtreeChange = pNewChange.get();

				// add the new SubtreeChange in m_aTreeChangeList
				m_pCurrentParent->addChange(auto_ptr<Change>(pNewChange.release()));
				// check list for this new SubtreeChange
				OSL_ASSERT(pSubtreeChange == findExistingChange(m_pCurrentParent,aNodeName));
			}
			else // hard cast(!) to SubtreeChange because we are a SubtreeChange
            {
			    pSubtreeChange = static_cast<SubtreeChange*>(pChange);
                adjustElementTemplate(*pSubtreeChange,_rSubtree);
            }

			// save this SubtreeChange so we allways have the last Subtree
            SubtreeChange* pSaveParent = pushTree(*pSubtreeChange);
			this->applyToChildren(_rSubtree);
            popTree( pSaveParent );
		}
		else if (pChange->ISA(AddNode))
		{
			AddNode* pAddNode = static_cast<AddNode*>(pChange);
=====================================================================
Found a 35 line (181 tokens) duplication in the following files: 
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

        pThis = pCallStack[1];
    }
    pThis = static_cast< char * >(pThis) - nVtableOffset;
	bridges::cpp_uno::shared::CppInterfaceProxy * pCppI
        = bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(
            pThis);
    
	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
	
	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("illegal vtable index!"),
            (XInterface *)pThis );
	}
	
	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
=====================================================================
Found a 39 line (181 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
=====================================================================
Found a 35 line (181 tokens) duplication in the following files: 
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

        pThis = pCallStack[1];
    }
    pThis = static_cast< char * >(pThis) - nVtableOffset;
	bridges::cpp_uno::shared::CppInterfaceProxy * pCppI
        = bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(
            pThis);
    
	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
	
	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("illegal vtable index!"),
            (XInterface *)pThis );
	}
	
	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
=====================================================================
Found a 39 line (181 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
=====================================================================
Found a 43 line (181 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

                          break;
                        }
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                                	pUnoArgs[nPos], pParamTypeDescr,
					pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		int nStackLongs = (pCppStack - pCppStackStart)/sizeof(sal_Int32);
=====================================================================
Found a 28 line (180 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h

        span_pattern_resample_gray(alloc_type& alloc,
                                   const rendering_buffer& src, 
                                   interpolator_type& inter,
                                   const image_filter_lut& filter) :
            base_type(alloc, src, color_type(0,0), inter, filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg;

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
=====================================================================
Found a 8 line (180 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotfld_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotrow_curs.h

   0x29, 0xa5, 0x06, 0x00, 0x7f, 0xc9, 0x07, 0x00, 0x00, 0x11, 0x00, 0x00,
   0x00, 0x21, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00,
   0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xc1, 0x07, 0x00,
   0x00, 0x59, 0x00, 0x00, 0x00, 0x95, 0x00, 0x00, 0x00, 0xa3, 0x00, 0x00,
   0x00, 0x21, 0x01, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x40, 0x02, 0x00,
   0x00, 0x80, 0x02, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 43 line (180 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/prov.cxx
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/treeview/tvfactory.cxx

static sal_Bool writeInfo( void * pRegistryKey,
						   const rtl::OUString & rImplementationName,
   						   Sequence< rtl::OUString > const & rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );
	
	Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}



//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 32 line (180 tokens) duplication in the following files: 
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dbregister.cxx
Starting at line 719 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/optpath.cxx

IMPL_LINK( SvxPathTabPage, HeaderEndDrag_Impl, HeaderBar*, pBar )
{
	if ( pBar && !pBar->GetCurItemId() )
		return 0;

	if ( !pHeaderBar->IsItemMode() )
	{
		Size aSz;
		USHORT nTabs = pHeaderBar->GetItemCount();
		long nTmpSz = 0;
		long nWidth = pHeaderBar->GetItemSize(ITEMID_TYPE);
		long nBarWidth = pHeaderBar->GetSizePixel().Width();

        if(nWidth < TAB_WIDTH_MIN)
            pHeaderBar->SetItemSize( ITEMID_TYPE, TAB_WIDTH_MIN);
        else if ( ( nBarWidth - nWidth ) < TAB_WIDTH_MIN )
            pHeaderBar->SetItemSize( ITEMID_TYPE, nBarWidth - TAB_WIDTH_MIN );

		for ( USHORT i = 1; i <= nTabs; ++i )
		{
			long _nWidth = pHeaderBar->GetItemSize(i);
			aSz.Width() =  _nWidth + nTmpSz;
			nTmpSz += _nWidth;
			pPathBox->SetTab( i, PixelToLogic( aSz, MapMode(MAP_APPFONT) ).Width(), MAP_APPFONT );
		}
	}
	return 1;
}

// -----------------------------------------------------------------------

IMPL_LINK( SvxPathTabPage, DialogClosedHdl, DialogClosedEvent*, pEvt )
=====================================================================
Found a 24 line (180 tokens) duplication in the following files: 
Starting at line 4368 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3963 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartInputOutputVert[] =
{
	{ 4230, 0 }, { 21600, 0 }, { 17370, 21600 }, { 0, 21600 }, { 4230, 0 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartInputOutputTextRect[] = 
{
	{ { 4230, 0 }, { 17370, 21600 } }
};
static const SvxMSDffVertPair mso_sptFlowChartInputOutputGluePoints[] =
{
	{ 12960, 0 }, { 10800, 0 }, { 2160, 10800 }, { 8600, 21600 }, { 10800, 21600 }, { 19400, 10800 }
};
static const mso_CustomShape msoFlowChartInputOutput =
{
	(SvxMSDffVertPair*)mso_sptFlowChartInputOutputVert, sizeof( mso_sptFlowChartInputOutputVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartInputOutputTextRect, sizeof( mso_sptFlowChartInputOutputTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartInputOutputGluePoints, sizeof( mso_sptFlowChartInputOutputGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 26 line (180 tokens) duplication in the following files: 
Starting at line 593 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/toolbox/tbxitem.cxx
Starting at line 1147 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/toolbox/tbxitem.cxx

        xController = m_xFrame->getController();

    Reference < XDispatchProvider > xProvider( xController, UNO_QUERY );
    if ( xProvider.is() )
    {
        Reference < XDispatch > xDisp = xProvider->queryDispatch( rEvent.FeatureURL, ::rtl::OUString(), 0 );
        if ( xDisp.is() )
        {
            Reference< XUnoTunnel > xTunnel( xDisp, UNO_QUERY );
            SfxOfficeDispatch* pDisp = NULL;
            if ( xTunnel.is() )
            {
                sal_Int64 nImplementation = xTunnel->getSomething(SfxOfficeDispatch::impl_getStaticIdentifier());
                pDisp = reinterpret_cast< SfxOfficeDispatch* >( sal::static_int_cast< sal_IntPtr >( nImplementation ));
            }

            if ( pDisp )
                pViewFrame = pDisp->GetDispatcher_Impl()->GetFrame();
        }
    }

    USHORT nSlotId = 0;
    SfxSlotPool& rPool = SfxSlotPool::GetSlotPool( pViewFrame );
    const SfxSlot* pSlot = rPool.GetUnoSlot( rEvent.FeatureURL.Path );
    if ( pSlot )
        nSlotId = pSlot->GetSlotId();
=====================================================================
Found a 45 line (180 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

void ScInterpreter:: ScKGV()
{
	BYTE nParamCount = GetByte();
	if ( MustHaveParamCountMin( nParamCount, 1 ) )
	{
		double fSign = 1.0;
        double fx, fy = 0.0;
		switch (GetStackType())
		{
			case svDouble :
			case svString:
			case svSingleRef:
			{
				fy = GetDouble();
				if (fy < 0.0)
				{
					fy *= -1.0;
					fSign *= -1.0;
				}
			}
			break;
			case svDoubleRef :
			{
				ScRange aRange;
				USHORT nErr = 0;
				PopDoubleRef( aRange );
				double nCellVal;
				ScValueIterator aValIter(pDok, aRange, glSubTotal);
				if (aValIter.GetFirst(nCellVal, nErr))
				{
					fy = nCellVal;
					if (fy < 0.0)
					{
						fy *= -1.0;
						fSign *= -1.0;
					}
					while (nErr == 0 && aValIter.GetNext(nCellVal, nErr))
					{
						fx = nCellVal;
						if (fx < 0.0)
						{
							fx *= -1.0;
							fSign *= -1.0;
						}
						fy = fx * fy / ScGetGGT(fx, fy);
=====================================================================
Found a 25 line (180 tokens) duplication in the following files: 
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/autoform.cxx
Starting at line 373 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/tblafmt.cxx

    READ( aHeight,      SvxFontHeightItem  , rVersions.nFontHeightVersion)
    READ( aWeight,      SvxWeightItem      , rVersions.nWeightVersion)
    READ( aPosture,     SvxPostureItem     , rVersions.nPostureVersion)
    // --- from 641 on: CJK and CTL font settings
    if( AUTOFORMAT_DATA_ID_641 <= nVer )
    {
        READ( aCJKFont,                        SvxFontItem         , rVersions.nFontVersion)
        READ( aCJKHeight,       SvxFontHeightItem   , rVersions.nFontHeightVersion)
        READ( aCJKWeight,     SvxWeightItem       , rVersions.nWeightVersion)
        READ( aCJKPosture,   SvxPostureItem      , rVersions.nPostureVersion)
        READ( aCTLFont,                        SvxFontItem         , rVersions.nFontVersion)
        READ( aCTLHeight,        SvxFontHeightItem   , rVersions.nFontHeightVersion)
        READ( aCTLWeight,       SvxWeightItem       , rVersions.nWeightVersion)
        READ( aCTLPosture,   SvxPostureItem      , rVersions.nPostureVersion)
    }
    READ( aUnderline,   SvxUnderlineItem   , rVersions.nUnderlineVersion)
    READ( aCrossedOut,  SvxCrossedOutItem  , rVersions.nCrossedOutVersion)
    READ( aContour,     SvxContourItem     , rVersions.nContourVersion)
    READ( aShadowed,    SvxShadowedItem       , rVersions.nShadowedVersion)
    READ( aColor,       SvxColorItem       , rVersions.nColorVersion)

    READ( aBox,         SvxBoxItem         , rVersions.nBoxVersion)

    // --- from 680/dr14 on: diagonal frame lines
    if( nVer >= AUTOFORMAT_DATA_ID_680DR14 )
=====================================================================
Found a 36 line (180 tokens) duplication in the following files: 
Starting at line 885 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx
Starting at line 942 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

    c_rtl_tres_state_start( hRtlTestResult, "getStr");
	sal_Char methName[MAXBUFLENGTH];
	sal_Char* pMeth = methName;

	const sal_Unicode tmpUC=0x0;
	rtl_uString* tmpUstring = NULL;
	const sal_Char *tmpStr=kTestStr1;
	sal_Int32 tmpLen=(sal_Int32) kTestStr1Len;
	sal_Int32 cmpLen = 0;

	rtl_string2UString( &tmpUstring, tmpStr,  tmpLen,                                
                        osl_getThreadTextEncoding(), OSTRING_TO_OUSTRING_CVTFLAGS );
    OSL_ASSERT(tmpUstring != NULL);


	typedef struct TestCase
    {
        sal_Char*				comments;
        const sal_Unicode*		expVal;
        sal_Int32				cmpLen;
        OUString*                input1;
        ~TestCase() {  delete input1;}
 	} TestCase;

    TestCase arrTestCase[] =
    {
      	{"test normal ustring",(*tmpUstring).buffer,kTestStr1Len, 
         new OUString(aUStr1)},
        {"test empty ustring",&tmpUC, 1, new OUString()}
    };

    sal_Bool res = sal_True;
    sal_Int32 i;
    for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
    {
        const sal_Unicode* pstr = arrTestCase[i].input1->getStr();
=====================================================================
Found a 51 line (180 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/test/Container1/nativelib/nativeview.c
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c

    return ((jlong)hWnd);
}

/*****************************************************************************
 *
 * Class      : -
 * Method     : NativeViewWndProc
 * Signature  : -
 * Description: registered window handler to intercept window messages between
 *              java and office process
 */
static LRESULT APIENTRY NativeViewWndProc(
    HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    HANDLE hFuncPtr;

    /* resize new created child window to fill out the java window complete */
    if (uMsg==WM_PARENTNOTIFY)
    {
        if (wParam == WM_CREATE)
        {
            RECT rect;
            HWND hChild = (HWND) lParam;

            GetClientRect(hWnd, &rect);

            SetWindowPos(hChild,
                        NULL,
                        rect.left,
                        rect.top,
                        rect.right - rect.left,
                        rect.bottom - rect.top,
                        SWP_NOZORDER);
        }
    }
    /* handle normal resize events */
    else if(uMsg==WM_SIZE)
    {
        WORD newHeight = HIWORD(lParam);
        WORD newWidth  = LOWORD(lParam);
        HWND hChild    = GetWindow(hWnd, GW_CHILD);

        if (hChild != NULL)
            SetWindowPos(hChild, NULL, 0, 0, newWidth, newHeight, SWP_NOZORDER);
    }

    /* forward request to original handler which is intercepted by this window procedure */
    hFuncPtr = GetProp(hWnd, OLD_PROC_KEY);
    MY_ASSERT(hFuncPtr,"lost original window proc handler");
    return CallWindowProc( hFuncPtr, hWnd, uMsg, wParam, lParam);
}
=====================================================================
Found a 22 line (180 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx

	::osl::MutexGuard aGuard( m_aMutex );

	Reference< XTablesSupplier > xTables = m_pConnection->createCatalog();
	if(!xTables.is())
		throw SQLException();

	Reference< XNameAccess> xNames = xTables->getTables();
	if(!xNames.is())
		throw SQLException();

	ODatabaseMetaDataResultSet::ORows aRows;
	ODatabaseMetaDataResultSet::ORow aRow(19);
	aRow[10] = new ORowSetValueDecorator((sal_Int32)10);
	Sequence< ::rtl::OUString> aTabNames(xNames->getElementNames());
	const ::rtl::OUString* pTabBegin	= aTabNames.getConstArray();
	const ::rtl::OUString* pTabEnd		= pTabBegin + aTabNames.getLength();
	for(;pTabBegin != pTabEnd;++pTabBegin)
	{
		if(match(tableNamePattern,*pTabBegin,'\0'))
		{
			Reference< XColumnsSupplier> xTable;
			::cppu::extractInterface(xTable,xNames->getByName(*pTabBegin));
=====================================================================
Found a 13 line (179 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                fg[3] >>= image_filter_shift;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];

                span->r = fg[order_type::R];
=====================================================================
Found a 24 line (179 tokens) duplication in the following files: 
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/cpptypemaker.cxx
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/javatypemaker.cxx

    OString const & type, bool referenceType, bool defaultvalue)
{
    RTTypeClass typeClass;
    OString name;
    sal_Int32 rank;
    std::vector< OString > arguments;
    codemaker::UnoType::Sort sort = codemaker::decomposeAndResolve(
        manager, type, true, true, true, &typeClass, &name, &rank, &arguments);
    printType(o,
        options, manager, sort, typeClass, name, rank, arguments,
        referenceType, defaultvalue);
}

bool printConstructorParameters(std::ostream & o,
    ProgramOptions const & options, TypeManager const & manager,
    typereg::Reader const & reader, typereg::Reader const & outerReader,
    std::vector< OString > const & arguments)
{
    bool previous = false;
    if ( reader.getSuperTypeCount() != 0 ) {
        OString super(
            codemaker::convertString(reader.getSuperTypeName(0)));
        typereg::Reader superReader(manager.getTypeReader(super));
        if ( !superReader.isValid() ) {
=====================================================================
Found a 25 line (179 tokens) duplication in the following files: 
Starting at line 2902 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshap.cxx
Starting at line 3133 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshap.cxx

SvXMLImportContext * SdXMLPluginShapeContext::CreateChildContext( USHORT p_nPrefix, const ::rtl::OUString& rLocalName, const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList )
{
	if( p_nPrefix == XML_NAMESPACE_DRAW && IsXMLToken( rLocalName, XML_PARAM ) )
	{
		OUString aParamName, aParamValue;
		const sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
		// now parse the attribute list and look for draw:name and draw:value
		for(sal_Int16 a(0); a < nAttrCount; a++)
		{
			const OUString& rAttrName = xAttrList->getNameByIndex(a);
			OUString aLocalName;
			sal_uInt16 nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName(rAttrName, &aLocalName);
			const OUString aValue( xAttrList->getValueByIndex(a) );

			if( nPrefix == XML_NAMESPACE_DRAW )
			{
				if( IsXMLToken( aLocalName, XML_NAME ) )
				{
					aParamName = aValue;
				}
				else if( IsXMLToken( aLocalName, XML_VALUE ) )
				{
					aParamValue = aValue;
				}
			}
=====================================================================
Found a 31 line (179 tokens) duplication in the following files: 
Starting at line 1136 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1206 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

							  m_pProvider,
							  m_xIdentifier->getContentIdentifier() );
}

//=========================================================================
uno::Sequence< uno::Any > Content::setPropertyValues(
        const uno::Sequence< beans::PropertyValue >& rValues,
        const uno::Reference< ucb::XCommandEnvironment > & xEnv )
    throw( uno::Exception )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );

    uno::Sequence< uno::Any > aRet( rValues.getLength() );
    uno::Sequence< beans::PropertyChangeEvent > aChanges( rValues.getLength() );
	sal_Int32 nChanged = 0;

    beans::PropertyChangeEvent aEvent;
    aEvent.Source         = static_cast< cppu::OWeakObject * >( this );
	aEvent.Further 		  = sal_False;
//	aEvent.PropertyName	  =
	aEvent.PropertyHandle = -1;
//	aEvent.OldValue		  =
//	aEvent.NewValue       =

    const beans::PropertyValue* pValues = rValues.getConstArray();
	sal_Int32 nCount = rValues.getLength();

    uno::Reference< ucb::XPersistentPropertySet > xAdditionalPropSet;
	sal_Bool bTriedToGetAdditonalPropSet = sal_False;

	sal_Bool bExchange = sal_False;
=====================================================================
Found a 18 line (179 tokens) duplication in the following files: 
Starting at line 439 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

			false, false,  true,  true, false,  true, false, false, //()*+,-./
			 true,  true,  true,  true,  true,  true,  true,  true, //01234567
			 true,  true, false, false, false, false, false, false, //89:;<=>?
			false,  true,  true,  true,  true,  true,  true,  true, //@ABCDEFG
			 true,  true,  true,  true,  true,  true,  true,  true, //HIJKLMNO
			 true,  true,  true,  true,  true,  true,  true,  true, //PQRSTUVW
			 true,  true,  true, false, false, false,  true,  true, //XYZ[\]^_
			 true,  true,  true,  true,  true,  true,  true,  true, //`abcdefg
			 true,  true,  true,  true,  true,  true,  true,  true, //hijklmno
			 true,  true,  true,  true,  true,  true,  true,  true, //pqrstuvw
			 true,  true,  true,  true,  true,  true,  true, false  //xyz{|}~
		  };
	return isUSASCII(nChar) && aMap[nChar];
}

//============================================================================
// static
bool INetMIME::isIMAPAtomChar(sal_uInt32 nChar)
=====================================================================
Found a 20 line (179 tokens) duplication in the following files: 
Starting at line 6152 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 6584 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    fNoTabForInd                = ( a32Bit &  0x00000001 )       ;
    fNoSpaceRaiseLower          = ( a32Bit &  0x00000002 ) >>  1 ;
    fSupressSpbfAfterPageBreak  = ( a32Bit &  0x00000004 ) >>  2 ;
    fWrapTrailSpaces            = ( a32Bit &  0x00000008 ) >>  3 ;
    fMapPrintTextColor          = ( a32Bit &  0x00000010 ) >>  4 ;
    fNoColumnBalance            = ( a32Bit &  0x00000020 ) >>  5 ;
    fConvMailMergeEsc           = ( a32Bit &  0x00000040 ) >>  6 ;
    fSupressTopSpacing          = ( a32Bit &  0x00000080 ) >>  7 ;
    fOrigWordTableRules         = ( a32Bit &  0x00000100 ) >>  8 ;
    fTransparentMetafiles       = ( a32Bit &  0x00000200 ) >>  9 ;
    fShowBreaksInFrames         = ( a32Bit &  0x00000400 ) >> 10 ;
    fSwapBordersFacingPgs       = ( a32Bit &  0x00000800 ) >> 11 ;
    fSuppressTopSpacingMac5     = ( a32Bit &  0x00010000 ) >> 16 ;
    fTruncDxaExpand             = ( a32Bit &  0x00020000 ) >> 17 ;
    fPrintBodyBeforeHdr         = ( a32Bit &  0x00040000 ) >> 18 ;
    fNoLeading                  = ( a32Bit &  0x00080000 ) >> 19 ;
    fMWSmallCaps                = ( a32Bit &  0x00200000 ) >> 21 ;

    fUsePrinterMetrics          = ( a32Bit &  0x80000000 ) >> 31 ;
}
=====================================================================
Found a 30 line (179 tokens) duplication in the following files: 
Starting at line 939 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/view.cxx
Starting at line 1030 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/view.cxx

	String	aText;

	for (USHORT i = 0; i < nLines; i++)
	{
		aLine = rText.GetToken(i, '\n');
		aLine.EraseAllChars('\r');
		aLine.EraseLeadingChars('\n');
		aLine.EraseTrailingChars('\n');
		aSize = GetTextLineSize(rDevice, aLine);
		if (aSize.Width() > MaxWidth)
		{
			do
			{
				xub_StrLen m	= aLine.Len();
				xub_StrLen nLen = m;

				for (xub_StrLen n = 0; n < nLen; n++)
				{
					sal_Unicode cLineChar = aLine.GetChar(n);
					if ((cLineChar == ' ') || (cLineChar == '\t'))
					{
						aText = aLine.Copy(0, n);
						if (GetTextLineSize(rDevice, aText).Width() < MaxWidth)
							m = n;
						else
							break;
					}
				}
				aText = aLine.Copy(0, m);
				aLine.Erase(0, m);
=====================================================================
Found a 25 line (179 tokens) duplication in the following files: 
Starting at line 1466 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 1850 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

    if (utf8) {
        for (cmin = 0, i = 0; (i < cpdmin) && word[cmin]; i++) {
          cmin++;
          for (; (word[cmin] & 0xc0) == 0x80; cmin++);
        }
        for (cmax = len, i = 0; (i < (cpdmin - 1)) && cmax; i++) {
          cmax--;
          for (; (word[cmax] & 0xc0) == 0x80; cmax--);
        }
    } else {
        cmin = cpdmin;
        cmax = len - cpdmin + 1;
    }

    strcpy(st, word);

    for (i = cmin; i < cmax; i++) {
	oldnumsyllable = numsyllable;
	oldwordnum = wordnum;
        checked_prefix = 0;

        // go to end of the UTF-8 character
        if (utf8) {
            for (; (st[i] & 0xc0) == 0x80; i++);
            if (i >= cmax) return 0;
=====================================================================
Found a 7 line (179 tokens) duplication in the following files: 
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30a0 - 30af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30b0 - 30bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30c0 - 30cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30e0 - 30ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff
=====================================================================
Found a 7 line (179 tokens) duplication in the following files: 
Starting at line 1324 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1434 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,// 2e90 - 2e9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ea0 - 2eaf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2eb0 - 2ebf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ec0 - 2ecf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ed0 - 2edf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ee0 - 2eef
    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff
=====================================================================
Found a 7 line (179 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0, 0,10,10,// 3030 - 303f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3040 - 304f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3050 - 305f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3060 - 306f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3070 - 307f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3080 - 308f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
=====================================================================
Found a 17 line (179 tokens) duplication in the following files: 
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/descriptor.cxx
Starting at line 417 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unopool.cxx

uno::Sequence< uno::Type > SAL_CALL SvxUnoDrawPool::getTypes()
	throw (uno::RuntimeException)
{
	uno::Sequence< uno::Type > aTypes( 6 );
	uno::Type* pTypes = aTypes.getArray();

	*pTypes++ = ::getCppuType((const uno::Reference< uno::XAggregation>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< lang::XTypeProvider>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet>*)0);

	return aTypes;
}

uno::Sequence< sal_Int8 > SAL_CALL SvxUnoDrawPool::getImplementationId()
=====================================================================
Found a 25 line (179 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/SalAquaFilePicker.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFilePicker.cxx

using namespace ::com::sun::star;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::ui::dialogs::TemplateDescription;
using namespace ::com::sun::star::ui::dialogs::ExtendedFilePickerElementIds;
using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;

//------------------------------------------------------------------------
// helper functions
//------------------------------------------------------------------------

namespace
{
	// controling event notifications    
	const bool STARTUP_SUSPENDED = true;
	const bool STARTUP_ALIVE     = false;
    
	uno::Sequence<rtl::OUString> SAL_CALL FilePicker_getSupportedServiceNames()
	{
		uno::Sequence<rtl::OUString> aRet(3);
	        aRet[0] = rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.FilePicker" );
		aRet[1] = rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.SystemFilePicker" );
		aRet[2] = rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.GtkFilePicker" );
=====================================================================
Found a 7 line (179 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0, 0,10,10,// 3030 - 303f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3040 - 304f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3050 - 305f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3060 - 306f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3070 - 307f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3080 - 308f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
=====================================================================
Found a 33 line (179 tokens) duplication in the following files: 
Starting at line 1499 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 1064 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

				{
					Polygon aPoly;

					switch( nType )
					{
						case( META_ARC_ACTION ):
						{
							const MetaArcAction* pA = (const MetaArcAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_ARC );
						}
						break;

						case( META_PIE_ACTION ):
						{
							const MetaPieAction* pA = (const MetaPieAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_PIE );
						}
						break;

						case( META_CHORD_ACTION	):
						{
							const MetaChordAction* pA = (const MetaChordAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_CHORD );
						}
						break;
						
						case( META_POLYGON_ACTION ):
							aPoly = ( (const MetaPolygonAction*) pAction )->GetPolygon();
						break;
					}

					if( aPoly.GetSize() )
					{
=====================================================================
Found a 53 line (179 tokens) duplication in the following files: 
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LNoException.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/quotedstring.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ENoException.cxx

xub_StrLen OFlatString::GetTokenCount( sal_Unicode cTok, sal_Unicode cStrDel ) const
{
	if ( !Len() )
		return 0;

	xub_StrLen nTokCount = 1;
	BOOL bStart = TRUE;		// Stehen wir auf dem ersten Zeichen im Token?
	BOOL bInString = FALSE;	// Befinden wir uns INNERHALB eines (cStrDel delimited) String?

	// Suche bis Stringende nach dem ersten nicht uebereinstimmenden Zeichen
	for( xub_StrLen i = 0; i < Len(); i++ )
	{
		if (bStart)
		{
			bStart = FALSE;
			// Erstes Zeichen ein String-Delimiter?
			if ((*this).GetChar(i) == cStrDel)
			{
				bInString = TRUE;	// dann sind wir jetzt INNERHALB des Strings!
				continue;			// dieses Zeichen ueberlesen!
			}
		}

		if (bInString) {
			// Wenn jetzt das String-Delimiter-Zeichen auftritt ...
			if ( (*this).GetChar(i) == cStrDel )
			{
				if ((i+1 < Len()) && ((*this).GetChar(i+1) == cStrDel))
				{
					// Verdoppeltes String-Delimiter-Zeichen:
					i++;	// kein String-Ende, naechstes Zeichen ueberlesen.
				}
				else
				{
					// String-Ende
					bInString = FALSE;
				}
			}
		} else {
			// Stimmt das Tokenzeichen ueberein, dann erhoehe TokCount
			if ( (*this).GetChar(i) == cTok )
			{
				nTokCount++;
				bStart = TRUE;
			}
		}
	}

	return nTokCount;
}

//------------------------------------------------------------------
void OFlatString::GetTokenSpecial( String& _rStr,xub_StrLen& nStartPos, sal_Unicode cTok, sal_Unicode cStrDel ) const
=====================================================================
Found a 42 line (179 tokens) duplication in the following files: 
Starting at line 2896 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 3006 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

	o << "\n/* Exception type */\ntypedef struct _" << m_name << "\n{\n";
	inc();

	OString superType(m_reader.getSuperTypeName());
	if (superType.getLength() > 0)
		o << indent() << superType.replace('/', '_').getStr() << " _Base;\n";
		//dumpInheritedMembers(o, superType);

	sal_uInt32 		fieldCount = m_reader.getFieldCount();
	RTFieldAccess 	access = RT_ACCESS_INVALID;
	OString 		fieldName;
	OString 		fieldType;
	sal_uInt16 		i = 0;

	for (i=0; i < fieldCount; i++)
	{
		access = m_reader.getFieldAccess(i);

		if (access == RT_ACCESS_CONST || access == RT_ACCESS_INVALID)
			continue;

		fieldName = m_reader.getFieldName(i);
		fieldType = m_reader.getFieldType(i);

		o << indent();
		dumpType(o, fieldType);
		o << " " << fieldName << ";\n";
	}

	dec();
	o << "} " << m_name << ";\n\n";

	o << "#ifdef SAL_W32\n"
	  << "#   pragma pack(pop)\n"
	  << "#elif defined(SAL_OS2)\n"
	  << "#   pragma pack()\n"
	  << "#endif\n\n";

	return sal_True;
}

sal_Bool ExceptionType::dumpCFile(FileStream& o)
=====================================================================
Found a 38 line (179 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper_texturefill.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper_texturefill.cxx

{
    namespace
    {
        bool textureFill( OutputDevice&			rOutDev,
                          GraphicObject&		rGraphic,
                          const ::Point&		rPosPixel,
                          const ::Size&			rNextTileX,
                          const ::Size&			rNextTileY,
                          sal_Int32				nTilesX,
                          sal_Int32				nTilesY,
                          const ::Size&			rTileSize,
                          const GraphicAttr&	rAttr)
        {
            BOOL	bRet( false );
            Point 	aCurrPos;
            int 	nX, nY;

            for( nY=0; nY < nTilesY; ++nY )
            {
                aCurrPos.X() = rPosPixel.X() + nY*rNextTileY.Width();
                aCurrPos.Y() = rPosPixel.Y() + nY*rNextTileY.Height();

                for( nX=0; nX < nTilesX; ++nX )
                {
                    // update return value. This method should return true, if
                    // at least one of the looped Draws succeeded.
                    bRet |= rGraphic.Draw( &rOutDev, 
                                           aCurrPos,
                                           rTileSize,
                                           &rAttr );
                    
                    aCurrPos.X() += rNextTileX.Width();
                    aCurrPos.Y() += rNextTileX.Height();
                }
            }

            return bRet;
        }
=====================================================================
Found a 25 line (179 tokens) duplication in the following files: 
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

	}
	// push this
	void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
  	       + aVtableSlot.offset;
  	       *(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 26 line (178 tokens) duplication in the following files: 
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readEditModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readBorderProps( this, aStyle ))
        aStyle._set |= 0x4;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }

    // collect elements
    readDefaults();
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
    readBoolAttr( OUSTR("HideInactiveSelection"),
=====================================================================
Found a 69 line (178 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpresultsetbase.cxx
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx

	return 0 <= m_nRow && sal::static_int_cast<sal_uInt32>( m_nRow ) < m_aItems.size();
}


void SAL_CALL
ResultSetBase::refreshRow(
	void )
	throw( sdbc::SQLException,
		   uno::RuntimeException)
{
}


sal_Bool SAL_CALL
ResultSetBase::rowUpdated(
	void )
	throw( sdbc::SQLException,
		   uno::RuntimeException )
{
	return false;
}

sal_Bool SAL_CALL
ResultSetBase::rowInserted(
	void  )
	throw( sdbc::SQLException,
		   uno::RuntimeException )
{
	return false;
}

sal_Bool SAL_CALL
ResultSetBase::rowDeleted(
	void  )
	throw( sdbc::SQLException,
		   uno::RuntimeException )
{
	return false;
}


uno::Reference< uno::XInterface > SAL_CALL
ResultSetBase::getStatement(
	void  )
	throw( sdbc::SQLException,
		   uno::RuntimeException )
{
	uno::Reference< uno::XInterface > test( 0 );
	return test;
}


// XCloseable

void SAL_CALL
ResultSetBase::close(
	void )
	throw( sdbc::SQLException,
		   uno::RuntimeException)
{
}


rtl::OUString SAL_CALL
ResultSetBase::queryContentIdentifierString(
	void )
	throw( uno::RuntimeException )
{
	if( 0 <= m_nRow && sal::static_int_cast<sal_uInt32>( m_nRow ) < m_aItems.size() )
=====================================================================
Found a 21 line (178 tokens) duplication in the following files: 
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fmtui/tmpdlg.cxx
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fmtui/tmpdlg.cxx

				DBG_ASSERT(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_NAME ), "GetTabPageCreatorFunc fail!");//CHINA001
				DBG_ASSERT(pFact->GetTabPageRangesFunc( RID_SVXPAGE_CHAR_NAME ), "GetTabPageRangesFunc fail!");//CHINA001
				AddTabPage(TP_CHAR_STD, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_NAME ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_CHAR_NAME ) ); //CHINA001 AddTabPage(TP_CHAR_STD, 	SvxCharNamePage::Create,
										//CHINA001 SvxCharNamePage::GetRanges );
				DBG_ASSERT(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_EFFECTS ), "GetTabPageCreatorFunc fail!");//CHINA001
				DBG_ASSERT(pFact->GetTabPageRangesFunc( RID_SVXPAGE_CHAR_EFFECTS ), "GetTabPageRangesFunc fail!");//CHINA001
				AddTabPage(TP_CHAR_EXT, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_EFFECTS ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_CHAR_EFFECTS ) ); //CHINA001 AddTabPage(TP_CHAR_EXT, 	SvxCharEffectsPage::Create,
										//CHINA001 SvxCharEffectsPage::GetRanges );
				DBG_ASSERT(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_POSITION ), "GetTabPageCreatorFunc fail!");//CHINA001
				DBG_ASSERT(pFact->GetTabPageRangesFunc( RID_SVXPAGE_CHAR_POSITION ) , "GetTabPageRangesFunc fail!");//CHINA001
				AddTabPage(TP_CHAR_POS, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_POSITION ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_CHAR_POSITION ) ); //CHINA001 AddTabPage(TP_CHAR_POS, 	SvxCharPositionPage::Create,
										//CHINA001 SvxCharPositionPage::GetRanges );
				DBG_ASSERT(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_TWOLINES ), "GetTabPageCreatorFunc fail!");//CHINA001
				DBG_ASSERT(pFact->GetTabPageRangesFunc( RID_SVXPAGE_CHAR_TWOLINES ) , "GetTabPageRangesFunc fail!");//CHINA001
				AddTabPage(TP_CHAR_TWOLN, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_CHAR_TWOLINES ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_CHAR_TWOLINES ) ); //CHINA001 AddTabPage(TP_CHAR_TWOLN, 	SvxCharTwoLinesPage::Create,
										//CHINA001 SvxCharTwoLinesPage::GetRanges );


			//CHINA001 AddTabPage(TP_TABULATOR, 	SvxTabulatorTabPage::Create,
			//CHINA001 							SvxTabulatorTabPage::GetRanges );
			DBG_ASSERT(pFact->GetTabPageCreatorFunc(RID_SVXPAGE_TABULATOR), "GetTabPageCreatorFunc fail!");//CHINA001
=====================================================================
Found a 37 line (178 tokens) duplication in the following files: 
Starting at line 1566 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doclay.cxx
Starting at line 1840 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doclay.cxx

	ASSERT( pNew, "No Label inserted" );

	if( pNew )
	{
        // prepare string
        String aTxt;
        if ( pType )
        {
            aTxt += pType->GetName();
            aTxt += ' ';
        }
		xub_StrLen nIdx = aTxt.Len();
        aTxt += rSeparator;
        xub_StrLen nSepIdx = aTxt.Len();
        aTxt += rTxt;

        // insert text
		SwIndex aIdx( pNew, 0 );
		pNew->Insert( aTxt, aIdx );

        // insert field
        if ( pType )
        {
            SwSetExpField aFld( (SwSetExpFieldType*)pType, aEmptyStr, SVX_NUM_ARABIC );
            pNew->InsertItem( SwFmtFld( aFld ), nIdx, nIdx );
            if ( rCharacterStyle.Len() )
            {
                SwCharFmt* pCharFmt = FindCharFmtByName( rCharacterStyle );
                if ( !pCharFmt )
                {
                    const USHORT nId = SwStyleNameMapper::GetPoolIdFromUIName( rCharacterStyle, GET_POOLID_CHRFMT );
                    pCharFmt = GetCharFmtFromPool( nId );
                }
                if ( pCharFmt )
                    pNew->InsertItem( SwFmtCharFmt( pCharFmt ), 0, nSepIdx + 1, SETATTR_DONTEXPAND );
            }
        }
=====================================================================
Found a 30 line (178 tokens) duplication in the following files: 
Starting at line 4278 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdfppt.cxx
Starting at line 4463 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdfppt.cxx

					while ( rIn.GetError() == 0 && rIn.Tell() < aTxMasterStyleHd2.GetRecEndFilePos() && nLev < nLevelAnz )
					{
						if ( nLev )
						{
							mpParaSheet[ TSS_TYPE_TEXT_IN_SHAPE ]->maParaLevel[ nLev ] = mpParaSheet[ TSS_TYPE_TEXT_IN_SHAPE ]->maParaLevel[ nLev - 1 ];
							mpCharSheet[ TSS_TYPE_TEXT_IN_SHAPE ]->maCharLevel[ nLev ] = mpCharSheet[ TSS_TYPE_TEXT_IN_SHAPE ]->maCharLevel[ nLev - 1 ];
						}
						mpParaSheet[ TSS_TYPE_TEXT_IN_SHAPE ]->Read( rManager, rIn, sal_True, nLev, bFirst );
                        if ( !nLev )
                        {
                            // set paragraph defaults for instance 4 (TSS_TYPE_TEXT_IN_SHAPE)
                            if ( rTxPFStyle.bValid )
                            {
                                PPTParaLevel& rParaLevel = mpParaSheet[ TSS_TYPE_TEXT_IN_SHAPE ]->maParaLevel[ 0 ];
                                rParaLevel.mnAsianLineBreak = 0;
                                if ( rTxPFStyle.bForbiddenRules )
                                    rParaLevel.mnAsianLineBreak |= 1;
                                if ( !rTxPFStyle.bLatinTextWrap )
                                    rParaLevel.mnAsianLineBreak |= 2;
                                if ( rTxPFStyle.bHangingPunctuation )
                                    rParaLevel.mnAsianLineBreak |= 4;
                            }
                        }
						mpCharSheet[ TSS_TYPE_TEXT_IN_SHAPE ]->Read( rIn, sal_True, nLev, bFirst );
						bFirst = sal_False;
						nLev++;
					}
					break;
				}
				else
=====================================================================
Found a 25 line (178 tokens) duplication in the following files: 
Starting at line 3108 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/num.cxx

				pFirstOrient = aNumFmtArr[nLvl]->GetGraphicOrientation();
//				nFirstLSpace = nLvl > 0 ?
//					aNumFmtArr[nLvl]->GetAbsLSpace() - aNumFmtArr[nLvl - 1]->GetAbsLSpace():
//						aNumFmtArr[nLvl]->GetAbsLSpace();
				nFirstBorderText = nLvl > 0 ?
					aNumFmtArr[nLvl]->GetAbsLSpace() + aNumFmtArr[nLvl]->GetFirstLineOffset() -
					aNumFmtArr[nLvl - 1]->GetAbsLSpace() + aNumFmtArr[nLvl - 1]->GetFirstLineOffset():
						aNumFmtArr[nLvl]->GetAbsLSpace() + aNumFmtArr[nLvl]->GetFirstLineOffset();
			}

			if( i > nLvl)
			{
				if(bRelative)
				{
					if(nFirstBorderTextRelative == -1)
						nFirstBorderTextRelative =
						(aNumFmtArr[i]->GetAbsLSpace() + aNumFmtArr[i]->GetFirstLineOffset() -
						aNumFmtArr[i - 1]->GetAbsLSpace() + aNumFmtArr[i - 1]->GetFirstLineOffset());
					else
						bSameDistBorderNum &= nFirstBorderTextRelative ==
						(aNumFmtArr[i]->GetAbsLSpace() + aNumFmtArr[i]->GetFirstLineOffset() -
						aNumFmtArr[i - 1]->GetAbsLSpace() + aNumFmtArr[i - 1]->GetFirstLineOffset());

				}
				else
=====================================================================
Found a 25 line (178 tokens) duplication in the following files: 
Starting at line 3467 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3117 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x8000, 21600, 0, 0x409 }
};
static const sal_uInt16 mso_sptBraceSegm[] =
{
	0x4000, 0x2001, 0x0001, 0x2002, 0x0001, 0x2001, 0x8000
};
static const sal_Int32 mso_sptBraceDefault[] =
{
	2, 1800, 10800
};
static const SvxMSDffVertPair mso_sptLeftBraceVert[] =
{
	{ 21600, 0 },												// p
	{ 16200, 0 }, { 10800, 0 MSO_I }, { 10800, 1 MSO_I },		// ccp
	{ 10800, 2 MSO_I },											// p
	{ 10800, 3 MSO_I }, { 5400, 4 MSO_I }, { 0, 4 MSO_I },		// ccp
	{ 5400, 4 MSO_I }, 	{ 10800, 5 MSO_I }, { 10800, 6 MSO_I },	// ccp
	{ 10800, 7 MSO_I },											// p
	{ 10800, 8 MSO_I }, { 16200, 21600 }, { 21600, 21600 }		// ccp
};
static const SvxMSDffTextRectangles mso_sptLeftBraceTextRect[] =
{
	{ { 13800, 9 MSO_I }, { 21600, 10 MSO_I } }
};
static const mso_CustomShape msoLeftBrace =		// adj value0 0 -> 5400
=====================================================================
Found a 33 line (178 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

void ScInterpreter::ScChoseJump()
{
	const short* pJump = pCur->GetJump();
	short nJumpCount = pJump[ 0 ];
    MatrixDoubleRefToMatrix();
    switch ( GetStackType() )
    {
        case svMatrix:
        {
            ScMatrixRef pMat = PopMatrix();
            if ( !pMat )
                SetIllegalArgument();
            else
            {
                ScTokenRef xNew;
                ScTokenMatrixMap::const_iterator aMapIter;
                // DoubleError handled by JumpMatrix
                pMat->SetErrorInterpreter( NULL);
                SCSIZE nCols, nRows;
                pMat->GetDimensions( nCols, nRows );
                if ( nCols == 0 || nRows == 0 )
                    SetIllegalParameter();
                else if (pTokenMatrixMap && ((aMapIter = pTokenMatrixMap->find(
                                    pCur)) != pTokenMatrixMap->end()))
                    xNew = (*aMapIter).second;
                else
                {
                    ScJumpMatrix* pJumpMat = new ScJumpMatrix( nCols, nRows );
                    for ( SCSIZE nC=0; nC < nCols; ++nC )
                    {
                        for ( SCSIZE nR=0; nR < nRows; ++nR )
                        {
                            double fVal;
=====================================================================
Found a 36 line (178 tokens) duplication in the following files: 
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/attarray.cxx
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/markarr.cxx

BOOL ScMarkArray::Search( SCROW nRow, SCSIZE& nIndex ) const
{
	long	nLo 		= 0;
	long	nHi 		= static_cast<long>(nCount) - 1;
	long	nStartRow	= 0;
	long	nEndRow 	= 0;
	long	i			= 0;
	BOOL	bFound		= (nCount == 1);
	if (pData)
	{
		while ( !bFound && nLo <= nHi )
		{
			i = (nLo + nHi) / 2;
			if (i > 0)
				nStartRow = (long) pData[i - 1].nRow;
			else
				nStartRow = -1;
			nEndRow = (long) pData[i].nRow;
			if (nEndRow < (long) nRow)
				nLo = ++i;
			else
				if (nStartRow >= (long) nRow)
					nHi = --i;
				else
					bFound = TRUE;
		}
	}
	else
		bFound = FALSE;

	if (bFound)
		nIndex=(SCSIZE)i;
	else
		nIndex=0;
	return bFound;
}
=====================================================================
Found a 17 line (178 tokens) duplication in the following files: 
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/ttcr.c
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/ttcr.c

_inline void PutInt32(sal_Int32 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian)
{
    assert(ptr != 0);

    if (bigendian) {
        ptr[offset]   = (sal_uInt8)((val >> 24) & 0xFF);
        ptr[offset+1] = (sal_uInt8)((val >> 16) & 0xFF);
        ptr[offset+2] = (sal_uInt8)((val >> 8) & 0xFF);
        ptr[offset+3] = (sal_uInt8)(val & 0xFF);
    } else {
        ptr[offset+3] = (sal_uInt8)((val >> 24) & 0xFF);
        ptr[offset+2] = (sal_uInt8)((val >> 16) & 0xFF);
        ptr[offset+1] = (sal_uInt8)((val >> 8) & 0xFF);
        ptr[offset]   = (sal_uInt8)(val & 0xFF);
    }

}
=====================================================================
Found a 30 line (178 tokens) duplication in the following files: 
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sprophelp.cxx
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/thesaurus/libnth/ntprophelp.cxx

PropertyHelper_Thes::PropertyHelper_Thes(
		const Reference< XInterface > & rxSource,
		Reference< XPropertySet > &rxPropSet ) :
	PropertyChgHelper	( rxSource, rxPropSet, aSP, sizeof(aSP) / sizeof(aSP[0]) )
{
	SetDefault();
	INT32 nLen = GetPropNames().getLength();
	if (rxPropSet.is() && nLen)
	{
		const OUString *pPropName = GetPropNames().getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			BOOL *pbVal		= NULL,
				 *pbResVal	= NULL;

			if (A2OU( UPN_IS_GERMAN_PRE_REFORM ) == pPropName[i])
			{
				pbVal	 = &bIsGermanPreReform;
				pbResVal = &bResIsGermanPreReform;
			}
                        else if (A2OU( UPN_IS_IGNORE_CONTROL_CHARACTERS ) == pPropName[i])
                        {
                                pbVal    = &bIsIgnoreControlCharacters;
                                pbResVal = &bResIsIgnoreControlCharacters;
                        }
                        else if (A2OU( UPN_IS_USE_DICTIONARY_LIST ) == pPropName[i])
                        {
                                pbVal    = &bIsUseDictionaryList;
                                pbResVal = &bResIsUseDictionaryList;
                        }
=====================================================================
Found a 73 line (178 tokens) duplication in the following files: 
Starting at line 529 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/threadtest/threadtest.cxx
Starting at line 531 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/threadtest.cxx

    return nReturn;
}

/*-****************************************************************************************************//**
	@descr	Every thread instance of these class lopp from 0 up to "nLoops".
			He sleep for a random time and work with given test class "pClass" then.
			We use random values for waiting for better results!
			Otherwise all threads are sychron after first 2,3...5 calls - I think!
*//*-*****************************************************************************************************/

class TestThread : public OThread
{
	public:

		TestThread(	ThreadSafeClass*	pClass						,
					sal_Int32			nLoops						,
					Condition*			pListener					,
					sal_Bool			bOwner		=	sal_False	);

	private:

   		virtual void SAL_CALL	run				();
   		virtual void SAL_CALL	onTerminated	();

	private:

		ThreadSafeClass*	m_pClass		;
		sal_Int32			m_nLoops		;
		sal_Int32			m_nThreadID		;
		Condition*			m_pListener		;
		sal_Bool			m_bOwner		;
};

//_________________________________________________________________________________________________________________
TestThread::TestThread(	ThreadSafeClass*	pClass		,
						sal_Int32			nLoops		,
						Condition*			pListener	,
						sal_Bool			bOwner		)
	:	m_pClass	( pClass	)
	,	m_nLoops	( nLoops	)
	,	m_pListener	( pListener	)
	,	m_bOwner	( bOwner	)
{
}

//_________________________________________________________________________________________________________________
void SAL_CALL TestThread::run()
{
	// Get ID of this thread.
	// Is used for logging information ...
	m_nThreadID = getCurrentIdentifier();

	// If we are the owner of given pClass
	// we must initialize ... and close
	// it. See at the end of this method too.
	if( m_bOwner == sal_True )
	{
		m_pClass->init( 0, m_nThreadID );
	}

	#ifdef ENABLE_THREADDELAY
	TimeValue	nDelay	;
	#endif

	sal_Int32	nA		;

	for( sal_Int32 nCount=0; nCount<m_nLoops; ++nCount )
	{
		// Work with class.
		// Use random to select called method.
		nA = (sal_Int32)getRandomValue();
        if( nA % 5 == 0 )
		{
=====================================================================
Found a 27 line (178 tokens) duplication in the following files: 
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx

		ULONG	 nHelpId = 0;
		OUString aCommandId;
		OUString aLabel;

		m_bMenuMode = sal_True;
		PopupMenu* pMenu = new PopupMenu();

		// read attributes for menu
		for ( int i=0; i< xAttrList->getLength(); i++ )
		{
			OUString aName = xAttrList->getNameByIndex( i );
			OUString aValue = xAttrList->getValueByIndex( i );
			if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_ID )))
				aCommandId = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_LABEL )))
				aLabel = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_HELPID )))
				nHelpId = aValue.toInt32();
		}

		if ( aCommandId.getLength() > 0 )
		{
            USHORT nItemId;
            if ( aCommandId.compareTo( aSlotProtocol, aSlotProtocol.getLength() ) == 0 )
                nItemId = (USHORT) aCommandId.copy( aSlotProtocol.getLength() ).toInt32();
            else
                nItemId = ++(*m_pItemId);
=====================================================================
Found a 25 line (178 tokens) duplication in the following files: 
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/cpputools/source/unoexe/unoexe.cxx
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/performance/ubtest.cxx

		x = xMgr->createInstance( rServiceName );
	}

	if (! x.is())
	{
		OUStringBuffer buf( 64 );
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("cannot get service instance \"") );
		buf.append( rServiceName );
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\"!") );
		throw RuntimeException( buf.makeStringAndClear(), Reference< XInterface >() );
	}

	rxOut = Reference< T >::query( x );
	if (! rxOut.is())
	{
		OUStringBuffer buf( 64 );
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("service instance \"") );
		buf.append( rServiceName );
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" does not support demanded interface \"") );
		const Type & rType = ::getCppuType( (const Reference< T > *)0 );
		buf.append( rType.getTypeName() );
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\"!") );
		throw RuntimeException( buf.makeStringAndClear(), Reference< XInterface >() );
	}
}
=====================================================================
Found a 15 line (178 tokens) duplication in the following files: 
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LFolderList.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx

void OEvoabTable::construct()
{
	Any aValue = ConfigManager::GetDirectConfigProperty(ConfigManager::LOCALE);
	LanguageType eLanguage = MsLangId::convertIsoStringToLanguage(comphelper::getString(aValue),'-');

	::com::sun::star::lang::Locale aAppLocale(MsLangId::convertLanguageToLocale(eLanguage));
	Sequence< ::com::sun::star::uno::Any > aArg(1);
	aArg[0] <<= aAppLocale;

	Reference< ::com::sun::star::util::XNumberFormatsSupplier >  xSupplier(m_pConnection->getDriver()->getFactory()->createInstanceWithArguments(::rtl::OUString::createFromAscii("com.sun.star.util.NumberFormatsSupplier"),aArg),UNO_QUERY);
	m_xNumberFormatter = Reference< ::com::sun::star::util::XNumberFormatter >(m_pConnection->getDriver()->getFactory()->createInstance(::rtl::OUString::createFromAscii("com.sun.star.util.NumberFormatter")),UNO_QUERY);
	m_xNumberFormatter->attachNumberFormatsSupplier(xSupplier);

	INetURLObject aURL;
	aURL.SetURL(getEntry());
=====================================================================
Found a 31 line (178 tokens) duplication in the following files: 
Starting at line 480 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx

	}
	catch (configuration::TypeMismatch& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.illegalArgument(2);
	}
	catch (configuration::ConstraintViolation& ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot set Property Value: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw PropertyVetoException( sMessage += e.message(), xContext );
	}
	catch (configuration::WrappedUnoException& ex)
	{
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot set Property Value: ") );
		throw WrappedTargetException( sMessage += ex.extractMessage(), xContext, ex.getAnyUnoException() );
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.unhandled();
	}
}

// XHierarchicalPropertySet
//-----------------------------------------------------------------------------------
void implSetHierarchicalPropertyValue( NodeGroupAccess& rNode, const OUString& aPropertyName, const Any& aValue ) 
=====================================================================
Found a 52 line (177 tokens) duplication in the following files: 
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/performance/ubobject.cxx
Starting at line 1284 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/performance/ubtest.cxx

	return 0;
}

}


//##################################################################################################
//##################################################################################################
//##################################################################################################


extern "C"
{
//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	if (pRegistryKey)
	{
		try
		{
			Reference< XRegistryKey > xNewKey(
				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
					OUString( RTL_CONSTASCII_USTRINGPARAM("/" IMPLNAME "/UNO/SERVICES") ) ) );
			xNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM(SERVICENAME) ) );

			return sal_True;
		}
		catch (InvalidRegistryException &)
		{
			OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
		}
	}
	return sal_False;
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
	void * pRet = 0;

	if (pServiceManager && rtl_str_compare( pImplName, IMPLNAME ) == 0)
	{
		Reference< XSingleServiceFactory > xFactory( createSingleFactory(
			reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
			OUString( RTL_CONSTASCII_USTRINGPARAM(IMPLNAME) ),
=====================================================================
Found a 32 line (177 tokens) duplication in the following files: 
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/utlui/content.cxx
Starting at line 843 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/utlui/content.cxx

		}
		break;
		case CONTENT_TYPE_POSTIT:
		{
			nMemberCount = 0;
			if(!pMember)
				pMember = new SwContentArr;
			else if(pMember->Count())
				pMember->DeleteAndDestroy(0, pMember->Count());
			SwFieldType* pType = pWrtShell->GetFldType(
									RES_POSTITFLD, aEmptyStr);
			SwClientIter aIter( *pType );
			SwClient * pFirst = aIter.GoStart();
			while(pFirst)
			{
				if(((SwFmtFld*)pFirst)->GetTxtFld() &&
						((SwFmtFld*)pFirst)->IsFldInDoc())
				{
					SwField* pField = (SwField*)((SwFmtFld*)pFirst)
																	->GetFld();
					String sEntry = pField->GetPar2();
					RemoveNewline(sEntry);
					SwPostItContent* pCnt = new SwPostItContent(
										this,
										sEntry, // hier steht der Text
										(const SwFmtFld*)pFirst,
										nMemberCount);
					pMember->Insert(pCnt);//, nMemberCount);
					nMemberCount++;
				}
				pFirst = aIter++;
			}
=====================================================================
Found a 27 line (177 tokens) duplication in the following files: 
Starting at line 423 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edlingu.cxx
Starting at line 502 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edlingu.cxx

        if( aConvText.getLength() )
        {
            bGoOn = sal_False;
            SwPosition* pNewPoint = new SwPosition( *pCrsr->GetPoint() );
            SwPosition* pNewMark = new SwPosition( *pCrsr->GetMark() );

            SetCurr( pNewPoint );
            SetCurrX( pNewMark );
        }
        if( bGoOn )
        {
            pSh->Pop( sal_False );
            pCrsr = pSh->GetCrsr();
            if ( *pCrsr->GetPoint() > *pCrsr->GetMark() )
                pCrsr->Exchange();
            SwPosition* pNew = new SwPosition( *pCrsr->GetPoint() );
            SetStart( pNew );
            pNew = new SwPosition( *pCrsr->GetMark() );
            SetEnd( pNew );
            pNew = new SwPosition( *GetStart() );
            SetCurr( pNew );
            pNew = new SwPosition( *pNew );
            SetCurrX( pNew );
            pCrsr->SetMark();
            --GetCrsrCnt();
        }
    }while ( bGoOn );
=====================================================================
Found a 27 line (177 tokens) duplication in the following files: 
Starting at line 1715 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4777 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_CheckBox::Import(com::sun::star::uno::Reference<
    com::sun::star::beans::XPropertySet> &rPropSet)
{
	uno::Any aTmp(&sName,getCppuType((OUString *)0));
	rPropSet->setPropertyValue( WW8_ASCII2STR("Name"), aTmp );

    // background color: fBackStyle==0 -> transparent
    if( fBackStyle )
        aTmp <<= ImportColor(mnBackColor);
    else
        aTmp = uno::Any();
    rPropSet->setPropertyValue( WW8_ASCII2STR("BackgroundColor"), aTmp);

	sal_Bool bTemp;
	if ((!(fEnabled)) || (fLocked))
		bTemp = sal_False;
	else
		bTemp = sal_True;
	aTmp = bool2any(bTemp);
	rPropSet->setPropertyValue( WW8_ASCII2STR("Enabled"), aTmp);

    bTemp = fWordWrap != 0;
    aTmp = bool2any(bTemp);
    rPropSet->setPropertyValue( WW8_ASCII2STR("MultiLine"), aTmp);

	aTmp <<= ImportColor(mnForeColor);
	rPropSet->setPropertyValue( WW8_ASCII2STR("TextColor"), aTmp);
=====================================================================
Found a 21 line (177 tokens) duplication in the following files: 
Starting at line 454 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx
Starting at line 6775 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev3.cxx

    }

    if ( nStyle & TEXT_DRAW_RIGHT )
        aRect.Left() = aRect.Right()-nMaxWidth+1;
    else if ( nStyle & TEXT_DRAW_CENTER )
    {
        aRect.Left() += (nWidth-nMaxWidth)/2;
        aRect.Right() = aRect.Left()+nMaxWidth-1;
    }
    else
        aRect.Right() = aRect.Left()+nMaxWidth-1;

    if ( nStyle & TEXT_DRAW_BOTTOM )
        aRect.Top() = aRect.Bottom()-(nTextHeight*nLines)+1;
    else if ( nStyle & TEXT_DRAW_VCENTER )
    {
        aRect.Top()   += (aRect.GetHeight()-(nTextHeight*nLines))/2;
        aRect.Bottom() = aRect.Top()+(nTextHeight*nLines)-1;
    }
    else
        aRect.Bottom() = aRect.Top()+(nTextHeight*nLines)-1;
=====================================================================
Found a 28 line (177 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/languagepacks/respintest.cxx
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/upgrade.cxx

    string GetMsiProperty(MSIHANDLE handle, const string& sProperty)
    {
	    string	result;
	    TCHAR	szDummy[1] = TEXT("");
	    DWORD	nChars = 0;

	    if (MsiGetProperty(handle, sProperty.c_str(), szDummy, &nChars) == ERROR_MORE_DATA)
	    {
            DWORD nBytes = ++nChars * sizeof(TCHAR);
            LPTSTR buffer = reinterpret_cast<LPTSTR>(_alloca(nBytes));
            ZeroMemory( buffer, nBytes );
            MsiGetProperty(handle, sProperty.c_str(), buffer, &nChars);
            result = buffer;            
	    }
	    return	result;
    }

    inline bool IsSetMsiProperty(MSIHANDLE handle, const string& sProperty)
    {    
        return (GetMsiProperty(handle, sProperty).length() > 0);
    }

    inline void UnsetMsiProperty(MSIHANDLE handle, const string& sProperty)
    {
        MsiSetProperty(handle, sProperty.c_str(), NULL);
    }

    inline void SetMsiProperty(MSIHANDLE handle, const string& sProperty)
=====================================================================
Found a 26 line (177 tokens) duplication in the following files: 
Starting at line 1646 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin4.cxx
Starting at line 1833 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin4.cxx

						if ( aMultiMark.IsCellMarked( nThisX, nThisY, TRUE ) == bRepeat )
						{
							if ( !pMergeFlag->IsOverlapped() )
							{
								ScMergeAttr* pMerge = (ScMergeAttr*)&pPattern->GetItem(ATTR_MERGE);
								if (pMerge->GetColMerge() > 0 || pMerge->GetRowMerge() > 0)
								{
									Point aEndPos = pViewData->GetScrPos(
											nThisX + pMerge->GetColMerge(),
											nThisY + pMerge->GetRowMerge(), eWhich );
									if ( aEndPos.X() * nLayoutSign > nScrX * nLayoutSign && aEndPos.Y() > nScrY )
									{
										aInvert.AddRect( Rectangle( nScrX,nScrY,
													aEndPos.X()-nLayoutSign,aEndPos.Y()-1 ) );
									}
								}
								else if ( nEndX * nLayoutSign >= nScrX * nLayoutSign && nEndY >= nScrY )
								{
									aInvert.AddRect( Rectangle( nScrX,nScrY,nEndX,nEndY ) );
								}
							}
						}
					}
					else		// !bTestMerge
					{
						if ( aMultiMark.IsCellMarked( nX, nY, TRUE ) == bRepeat &&
=====================================================================
Found a 28 line (177 tokens) duplication in the following files: 
Starting at line 1438 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1534 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	ScChangeActionType nActionType(SC_CAT_INSERT_COLS);

	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
			{
				nActionNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
			else if (IsXMLToken(aLocalName, XML_ACCEPTANCE_STATE))
			{
				if (IsXMLToken(sValue, XML_ACCEPTED))
					nActionState = SC_CAS_ACCEPTED;
				else if (IsXMLToken(sValue, XML_REJECTED))
					nActionState = SC_CAS_REJECTED;
			}
			else if (IsXMLToken(aLocalName, XML_REJECTING_CHANGE_ID))
			{
				nRejectingNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
=====================================================================
Found a 40 line (177 tokens) duplication in the following files: 
Starting at line 573 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 613 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

					ntr.lp--;

			    doconcat(&ntr);
                trp->tp = ltp;
				makespace(&ntr, ltp);
                insertrow(trp, ntp - ltp, &ntr);
                dofree(ntr.bp);
                trp->tp--;
            }
    }
}

/*
 * tp is a potential parameter name of macro mac;
 * look it up in mac's arglist, and if found, return the
 * corresponding index in the argname array.  Return -1 if not found.
 */
int
    lookuparg(Nlist * mac, Token * tp)
{
    Token *ap;

    if (tp->type != NAME || mac->ap == NULL)
        return -1;
    for (ap = mac->ap->bp; ap < mac->ap->lp; ap++)
    {
        if (ap->len == tp->len && strncmp((char *) ap->t, (char *) tp->t, ap->len) == 0)
            return ap - mac->ap->bp;
    }
    return -1;
}

/*
 * Return a quoted version of the tokenrow (from # arg)
 */
#define	STRLEN	512
Tokenrow *
    stringify(Tokenrow * vp)
{
    static Token t = {STRING, 0, 0, 0, NULL, 0};
=====================================================================
Found a 7 line (177 tokens) duplication in the following files: 
Starting at line 1324 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1383 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2590 - 259f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25a0 - 25af
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25b0 - 25bf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25c0 - 25cf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25d0 - 25df
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25e0 - 25ef
    10,10,10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0,// 25f0 - 25ff
=====================================================================
Found a 12 line (177 tokens) duplication in the following files: 
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 7 line (177 tokens) duplication in the following files: 
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1488 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0,10,10,10, 0,10, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4c0 - a4cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4d0 - a4df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4e0 - a4ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fb00 - fb0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,17, 1,// fb10 - fb1f
=====================================================================
Found a 6 line (177 tokens) duplication in the following files: 
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3040 - 304f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3050 - 305f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3060 - 306f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3070 - 307f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3080 - 308f
     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
=====================================================================
Found a 6 line (177 tokens) duplication in the following files: 
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13a0 - 13af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13b0 - 13bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13c0 - 13cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13d0 - 13df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13e0 - 13ef
     5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 13f0 - 13ff
=====================================================================
Found a 6 line (177 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3040 - 304f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3050 - 305f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3060 - 306f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3070 - 307f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3080 - 308f
     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
=====================================================================
Found a 5 line (177 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x14, 0x24CE}, {0x14, 0x24CF}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24e8 - 24ef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24f0 - 24f7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 24f8 - 24ff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2c00 - 2c07
=====================================================================
Found a 20 line (177 tokens) duplication in the following files: 
Starting at line 398 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxf2mtf.cxx
Starting at line 458 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxf2mtf.cxx

	if ((rE.nAttrFlags&1)==0) {
		DXFVector aV;
		Point aPt;
		double fA;
		USHORT nHeight;
		short nAng;
		ByteString aStr( rE.sText );
		DXFTransform aT( DXFTransform( rE.fXScale, rE.fHeight, 1.0, rE.fRotAngle, rE.aP0 ), rTransform ); 
		aT.TransDir(DXFVector(0,1,0),aV);
		nHeight=(USHORT)(aV.Abs()+0.5);
		fA=aT.CalcRotAngle();
		nAng=(short)(fA*10.0+0.5);
		aT.TransDir(DXFVector(1,0,0),aV);
		if (SetFontAttribute(rE,nAng,nHeight,aV.Abs()))
		{
			String aUString( aStr, pDXF->getTextEncoding() );
			aT.Transform( DXFVector( 0, 0, 0 ), aPt );
			pVirDev->DrawText( aPt, aUString );
		}
	}
=====================================================================
Found a 11 line (177 tokens) duplication in the following files: 
Starting at line 949 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 868 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

				ImplWritePolyPolygon( aPoly, sal_False );
			}

			if( rFont.GetUnderline() )
			{
				const long	nYLinePos = aBaseLinePos.Y() + ( nLineHeight << 1 );

				aPoly[ 0 ].X() = aBaseLinePos.X(); aPoly[ 0 ].Y() = nYLinePos - ( nLineHeight >> 1 );
				aPoly[ 1 ].X() = aBaseLinePos.X() + aNormSize.Width() - 1; aPoly[ 1 ].Y() = aPoly[ 0 ].Y();
				aPoly[ 2 ].X() = aPoly[ 1 ].X(); aPoly[ 2 ].Y() = aPoly[ 0 ].Y() + nLineHeight - 1;
				aPoly[ 3 ].X() = aPoly[ 0 ].X(); aPoly[ 3 ].Y() = aPoly[ 2 ].Y();
=====================================================================
Found a 41 line (177 tokens) duplication in the following files: 
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1307 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx

	sal_Bool bTryOptimization = sal_False;
	for ( sal_Int32 nInd = 0; nInd < lObjArgs.getLength(); nInd++ )
	{
		// StoreVisualReplacement and VisualReplacement args have no sence here
		if ( lObjArgs[nInd].Name.equalsAscii( "CanTryOptimization" ) )
			lObjArgs[nInd].Value >>= bTryOptimization;
	}

	sal_Bool bSwitchBackToLoaded = sal_False;

	// Storing to different format can be done only in running state.
	if ( m_nObjectState == embed::EmbedStates::LOADED )
	{
		// TODO/LATER: copying is not legal for documents with relative links.
		if ( nTargetStorageFormat == nOriginalStorageFormat )
		{
			sal_Bool bOptimizationWorks = sal_False;
			if ( bTryOptimization )
			{
				try
				{
					// try to use optimized copying
					uno::Reference< embed::XOptimizedStorage > xSource( m_xParentStorage, uno::UNO_QUERY_THROW );
					uno::Reference< embed::XOptimizedStorage > xTarget( xStorage, uno::UNO_QUERY_THROW );
					xSource->copyElementDirectlyTo( m_aEntryName, xTarget, sEntName );
					bOptimizationWorks = sal_True;
				}
				catch( uno::Exception& )
				{
				}
			}

			if ( !bOptimizationWorks )
				m_xParentStorage->copyElementTo( m_aEntryName, xStorage, sEntName );
		}
		else
		{
			changeState( embed::EmbedStates::RUNNING );
			bSwitchBackToLoaded = sal_True;
		}
	}
=====================================================================
Found a 24 line (177 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FResultSetMetaData.cxx
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MResultSetMetaData.cxx

	return sal_False;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
{
	checkColumnIndex(column);
	return getINT32((*m_xColumns)[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION)));
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
	checkColumnIndex(column);
	return getINT32((*m_xColumns)[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE)));
}
// -------------------------------------------------------------------------

sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
	checkColumnIndex(column);
	return getINT32((*m_xColumns)[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISNULLABLE)));
}
// -------------------------------------------------------------------------

sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 column ) throw(SQLException, RuntimeException)
=====================================================================
Found a 39 line (177 tokens) duplication in the following files: 
Starting at line 607 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 673 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx

	COUT << "\n:> " << flush;
	char buf[200] = {0};
	try
	{
		bool bHandled = false;
		bool bInserted = false;

		if (cin.getline(buf,sizeof buf))  
		{
			Reference< XInterface > xNext;
			if ((buf[0] == 'q' || buf[0] == 'Q') && (0 == buf[1]))
			{
				return false;
			}
			else if (buf[0] == 0)
			{
				return true;
			}
			else if((buf[0] == 0 || buf[0] == 'o' || buf[0] == 'O') && (0 == buf[1]))
			{
/*
				COUT << "work Offline" << endl;
				Reference<com::sun::star::configuration::XConfigurationSync> xSync(xMSF, UNO_QUERY);

				Sequence< Any > aArgs2(5);
				sal_Int32 n=0;
				aArgs2[n++] <<= configmgr::createPropertyValue(ASCII("path"), ASCII("org.openoffice.Setup"));
				// aArgs2[n++] <<= configmgr::createPropertyValue(ASCII("path"), ASCII("org.openoffice.Office.Common"));
				// aArgs2[n++] <<= configmgr::createPropertyValue(ASCII("path"), ASCII("org.openoffice.Office.Java"));
				// aArgs2[n++] <<= configmgr::createPropertyValue(ASCII("path"), ASCII("org.openoffice.Office.Writer"));
				// aArgs2[n++] <<= configmgr::createPropertyValue(ASCII("path"), ASCII("org.openoffice.Office.ucb.Hierarchy"));
				xSync->offline(aArgs2);
				bHandled = true;
*/
			}
			else if((buf[0] == 0 || buf[0] == 's' || buf[0] == 'S') && (0 == buf[1]))
			{
				// Replace a Value
				Reference< XNameAccess > xAccess(xIface, UNO_QUERY);
=====================================================================
Found a 27 line (177 tokens) duplication in the following files: 
Starting at line 480 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx
Starting at line 745 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/propsetaccessimpl.cxx

	}
	catch (configuration::TypeMismatch& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.illegalArgument(2);
	}
	catch (configuration::ConstraintViolation& ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot set Property Value: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw PropertyVetoException( sMessage += e.message(), xContext );
	}
	catch (configuration::WrappedUnoException& ex)
	{
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot set Property Value: ") );
		throw WrappedTargetException( sMessage += ex.extractMessage(), xContext, ex.getAnyUnoException() );
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.unhandled();
	}
}
=====================================================================
Found a 48 line (177 tokens) duplication in the following files: 
Starting at line 2563 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 1076 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

	OString hFileName = createFileNameFromType(outPath, tmpName, ".idl");

	sal_Bool bFileExists = sal_False;
	sal_Bool bFileCheck = sal_False;

	if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
	{
		bFileExists = fileExists( hFileName );
		ret = sal_True;
	}

	if ( bFileExists && pOptions->isValid("-Gc") )
	{
		tmpFileName	 = createFileNameFromType(outPath, m_typeName, ".tml");
		bFileCheck = sal_True;
	}

	if ( !bFileExists || bFileCheck )
	{
		FileStream hFile;

		if ( bFileCheck )
			hFile.open(tmpFileName);
		else
			hFile.open(hFileName);

		if(!hFile.isValid())
		{
			OString message("cannot open ");
			message += hFileName + " for writing";
			throw CannotDumpException(message);
		}

		ret = dumpHFile(hFile);

		hFile.close();
		if (ret && bFileCheck)
		{
			ret = checkFileContent(hFileName, tmpFileName);
		}
	}

	return ret;
}

sal_Bool ModuleType::dumpHFile(FileStream& o)
	throw( CannotDumpException )
{
=====================================================================
Found a 34 line (177 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_textlayout.cxx
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/textlayout.cxx

        OutputDevice* pOutDev = mpRefDevice->getOutDev();
    	if( !pOutDev )
            return geometry::RealRectangle2D();

        VirtualDevice aVDev( *pOutDev );
        aVDev.SetFont( mpFont->getVCLFont() );

        // need metrics for Y offset, the XCanvas always renders
        // relative to baseline
        const ::FontMetric& aMetric( aVDev.GetFontMetric() );

        setupLayoutMode( aVDev, mnTextDirection );

        const sal_Int32 nAboveBaseline( -aMetric.GetIntLeading() - aMetric.GetAscent() );
        const sal_Int32 nBelowBaseline( aMetric.GetDescent() );

        if( maLogicalAdvancements.getLength() )
        {
            return geometry::RealRectangle2D( 0, nAboveBaseline,
                                              maLogicalAdvancements[ maLogicalAdvancements.getLength()-1 ],
                                              nBelowBaseline );
        }
        else
        {
            return geometry::RealRectangle2D( 0, nAboveBaseline,
                                              aVDev.GetTextWidth(
                                                  maText.Text,
                                                  ::canvas::tools::numeric_cast<USHORT>(maText.StartPosition),
                                                  ::canvas::tools::numeric_cast<USHORT>(maText.Length) ),
                                              nBelowBaseline );
        }
    }

    double SAL_CALL TextLayout::justify( double nSize ) throw (lang::IllegalArgumentException, uno::RuntimeException)
=====================================================================
Found a 35 line (177 tokens) duplication in the following files: 
Starting at line 1287 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper.cxx
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvashelper.cxx

        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* 						/*pCanvas*/, 
                                                                                     const uno::Reference< rendering::XBitmap >& 	/*xBitmap*/, 
                                                                                     const rendering::ViewState& 					/*viewState*/, 
                                                                                     const rendering::RenderState& 					/*renderState*/ )
    {
        // TODO(P1): Provide caching here.
        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XGraphicDevice > CanvasHelper::getDevice()
    {
        return uno::Reference< rendering::XGraphicDevice >(mpDevice);
    }

    void CanvasHelper::copyRect( const rendering::XCanvas* 							/*pCanvas*/, 
                                 const uno::Reference< rendering::XBitmapCanvas >&	/*sourceCanvas*/, 
                                 const geometry::RealRectangle2D& 					/*sourceRect*/, 
                                 const rendering::ViewState& 						/*sourceViewState*/, 
                                 const rendering::RenderState& 						/*sourceRenderState*/, 
                                 const geometry::RealRectangle2D& 					/*destRect*/, 
                                 const rendering::ViewState& 						/*destViewState*/, 
                                 const rendering::RenderState& 						/*destRenderState*/ )
    {
        // TODO(F2): copyRect NYI
    }

    geometry::IntegerSize2D CanvasHelper::getSize()
    {
        if( !mpDevice )
            geometry::IntegerSize2D(1, 1); // we're disposed

        return ::basegfx::unotools::integerSize2DFromB2ISize( maSize );
=====================================================================
Found a 30 line (177 tokens) duplication in the following files: 
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

        = ((unsigned char *) cpp_vtable_call) - p - sizeof (sal_Int32);
    p += sizeof (sal_Int32);
    OSL_ASSERT(p - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vtableOffset)
=====================================================================
Found a 34 line (176 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_trans_bilinear.h

            m_valid = simul_eq<4, 2>::solve(left, right, m_mtx);
        }


        //--------------------------------------------------------------------
        // Set the direct transformations, i.e., rectangle -> quadrangle
        void rect_to_quad(double x1, double y1, double x2, double y2, 
                          const double* quad)
        {
            double src[8];
            src[0] = src[6] = x1;
            src[2] = src[4] = x2;
            src[1] = src[3] = y1;
            src[5] = src[7] = y2;
            quad_to_quad(src, quad);
        }


        //--------------------------------------------------------------------
        // Set the reverse transformations, i.e., quadrangle -> rectangle
        void quad_to_rect(const double* quad, 
                          double x1, double y1, double x2, double y2)
        {
            double dst[8];
            dst[0] = dst[6] = x1;
            dst[2] = dst[4] = x2;
            dst[1] = dst[3] = y1;
            dst[5] = dst[7] = y2;
            quad_to_quad(quad, dst);
        }

        //--------------------------------------------------------------------
        // Check if the equations were solved successfully
        bool is_valid() const { return m_valid; }
=====================================================================
Found a 39 line (176 tokens) duplication in the following files: 
Starting at line 312 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_aa.h
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_bin.h

                int x2 = sp.x + sp.len - 1;
                if(x1 < m_min_x) m_min_x = x1;
                if(x2 > m_max_x) m_max_x = x2;
                ++span_iterator;
            }
            while(--num_spans);
            m_scanlines.add(sl_this);
        }


        //---------------------------------------------------------------
        // Iterate scanlines interface
        int min_x() const { return m_min_x; }
        int min_y() const { return m_min_y; }
        int max_x() const { return m_max_x; }
        int max_y() const { return m_max_y; }

        //---------------------------------------------------------------
        bool rewind_scanlines()
        {
            m_cur_scanline = 0;
            return m_scanlines.size() > 0;
        }


        //---------------------------------------------------------------
        template<class Scanline> bool sweep_scanline(Scanline& sl)
        {
            sl.reset_spans();
            for(;;)
            {
                if(m_cur_scanline >= m_scanlines.size()) return false;
                const scanline_data& sl_this = m_scanlines[m_cur_scanline];

                unsigned num_spans = sl_this.num_spans;
                unsigned span_idx  = sl_this.start_span;
                do
                {
                    const span_data& sp = m_spans[span_idx++];
=====================================================================
Found a 25 line (176 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readListBoxModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readBorderProps( this, aStyle ))
        aStyle._set |= 0x4;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }

    // collect elements
    readDefaults();
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
=====================================================================
Found a 50 line (176 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svdem.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/vcldemo.cxx

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
// -----------------------------------------------------------------------

// Forward declaration
void Main();

// -----------------------------------------------------------------------

SAL_IMPLEMENT_MAIN()
{
    Reference< XMultiServiceFactory > xMS;
    xMS = cppu::createRegistryServiceFactory( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ), sal_True );

    InitVCL( xMS );
    ::Main();
    DeInitVCL();

    return 0;
}

// -----------------------------------------------------------------------

class MyWin : public WorkWindow
{
public:
				MyWin( Window* pParent, WinBits nWinStyle );

	void		MouseMove( const MouseEvent& rMEvt );
	void		MouseButtonDown( const MouseEvent& rMEvt );
	void		MouseButtonUp( const MouseEvent& rMEvt );
	void		KeyInput( const KeyEvent& rKEvt );
	void		KeyUp( const KeyEvent& rKEvt );
	void		Paint( const Rectangle& rRect );
	void		Resize();
};

// -----------------------------------------------------------------------

void Main()
{
    /*
    IntroWindow splash;
    splash.Show();
    sleep(5);
    splash.Hide();
    */

	MyWin aMainWin( NULL, WB_APP | WB_STDWORK );
	aMainWin.SetText( XubString( RTL_CONSTASCII_USTRINGPARAM( "VCLDemo - VCL Workbench" ) ) );
=====================================================================
Found a 9 line (176 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkfile_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movefile_curs.h

static char movefile_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x02, 0x00, 0x00,
   0xfe, 0x00, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00,
   0xfe, 0x07, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0xfe, 0x04, 0x00, 0x00,
   0xfe, 0x02, 0x00, 0x00, 0xfe, 0x06, 0x00, 0x00, 0xfe, 0x0e, 0x00, 0x00,
   0xfe, 0x1e, 0x00, 0x00, 0xfe, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00,
   0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x03, 0x00,
   0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
   0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00,
=====================================================================
Found a 9 line (176 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyflnk_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/moveflnk_curs.h

static char moveflnk_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x02, 0x00, 0x00,
   0xfe, 0x00, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00,
   0xfe, 0x07, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00,
   0xbe, 0x02, 0x00, 0x00, 0xa6, 0x06, 0x00, 0x00, 0xa2, 0x0e, 0x00, 0x00,
   0xba, 0x1e, 0x00, 0x00, 0xbe, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00,
   0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x03, 0x00,
   0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
   0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00,
=====================================================================
Found a 9 line (176 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyfiles_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movefiles_curs.h

static char movefiles_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0xe0, 0x0f, 0x00, 0x00, 0xe0, 0x2f, 0x00, 0x00,
   0xe8, 0x0f, 0x00, 0x00, 0xe8, 0x7f, 0x00, 0x00, 0xea, 0x7f, 0x00, 0x00,
   0xea, 0x7f, 0x00, 0x00, 0xea, 0x7f, 0x00, 0x00, 0x6a, 0x7e, 0x00, 0x00,
   0x6a, 0x7d, 0x00, 0x00, 0x6a, 0x7b, 0x00, 0x00, 0x6a, 0x77, 0x00, 0x00,
   0x6a, 0x6f, 0x00, 0x00, 0x6a, 0x5f, 0x00, 0x00, 0x0a, 0x3f, 0x00, 0x00,
   0x7a, 0x7f, 0x00, 0x00, 0x02, 0xff, 0x00, 0x00, 0x7e, 0xff, 0x01, 0x00,
   0x00, 0x3f, 0x00, 0x00, 0x00, 0x37, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00,
   0x00, 0x61, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00,
=====================================================================
Found a 9 line (176 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyfile_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movefile_curs.h

static char movefile_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x02, 0x00, 0x00,
   0xfe, 0x00, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00,
   0xfe, 0x07, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0xfe, 0x04, 0x00, 0x00,
   0xfe, 0x02, 0x00, 0x00, 0xfe, 0x06, 0x00, 0x00, 0xfe, 0x0e, 0x00, 0x00,
   0xfe, 0x1e, 0x00, 0x00, 0xfe, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00,
   0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x03, 0x00,
   0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
   0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00,
=====================================================================
Found a 31 line (176 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpinst.cxx
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/saldata.cxx

	FD_ZERO( &aExceptionFDS_ );

	m_pTimeoutFDS[0] = m_pTimeoutFDS[1] = -1;
	if (pipe (m_pTimeoutFDS) != -1)
	{
		// initialize 'wakeup' pipe.
		int flags;

		// set close-on-exec descriptor flag.
		if ((flags = fcntl (m_pTimeoutFDS[0], F_GETFD)) != -1)
		{
			flags |= FD_CLOEXEC;
			fcntl (m_pTimeoutFDS[0], F_SETFD, flags);
		}
		if ((flags = fcntl (m_pTimeoutFDS[1], F_GETFD)) != -1)
		{
			flags |= FD_CLOEXEC;
			fcntl (m_pTimeoutFDS[1], F_SETFD, flags);
		}

		// set non-blocking I/O flag.
		if ((flags = fcntl (m_pTimeoutFDS[0], F_GETFL)) != -1)
		{
			flags |= O_NONBLOCK;
			fcntl (m_pTimeoutFDS[0], F_SETFL, flags);
		}
		if ((flags = fcntl (m_pTimeoutFDS[1], F_GETFL)) != -1)
		{
			flags |= O_NONBLOCK;
			fcntl (m_pTimeoutFDS[1], F_SETFL, flags);
		}
=====================================================================
Found a 32 line (176 tokens) duplication in the following files: 
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx
Starting at line 396 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx

					const sal_Int32* pTmp = (sal_Int32*) pData + ( nY - nStartY ) * nScanSize + nOffset;

					for( long nX = nStartX; nX <= nEndX; nX++ )
					{
						const Color& rCol = mpMapper->ImplGetColor( *pTmp++ );
			
						// 0: Transparent; >0: Non-Transparent
						if( !rCol.GetTransparency() )
						{
							pMskAcc->SetPixel( nY, nX, aMskWhite );
							mbTrans = TRUE;
						}
						else
						{
							aCol.SetRed( rCol.GetRed() );
							aCol.SetGreen( rCol.GetGreen() );
							aCol.SetBlue( rCol.GetBlue() );
							pBmpAcc->SetPixel( nY, nX, aCol );
						}
					}
				}

				bDataChanged = sal_True;
			}
			else if( mpPal && ( pBmpAcc->GetBitCount() <= 8 ) )
			{
				BitmapColor aIndex( (BYTE) 0 );
				BitmapColor	aMskWhite( pMskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );

				for( long nY = nStartY; nY <= nEndY; nY++ )
				{
					const sal_Int32* pTmp = (sal_Int32*) pData + ( nY - nStartY ) * nScanSize + nOffset;
=====================================================================
Found a 45 line (176 tokens) duplication in the following files: 
Starting at line 5105 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5357 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        rSt >> fcPlcfdoaMom;
        rSt >> lcbPlcfdoaMom;
        rSt >> fcPlcfdoaHdr;
        rSt >> lcbPlcfdoaHdr;
        rSt >> fcPlcfspaMom;
        rSt >> lcbPlcfspaMom;
        rSt >> fcPlcfspaHdr;
        rSt >> lcbPlcfspaHdr;

        rSt >> fcPlcfAtnbkf;
        rSt >> lcbPlcfAtnbkf;
        rSt >> fcPlcfAtnbkl;
        rSt >> lcbPlcfAtnbkl;
        rSt >> fcPms;
        rSt >> lcbPMS;
        rSt >> fcFormFldSttbf;
        rSt >> lcbFormFldSttbf;
        rSt >> fcPlcfendRef;
        rSt >> lcbPlcfendRef;
        rSt >> fcPlcfendTxt;
        rSt >> lcbPlcfendTxt;
        rSt >> fcPlcffldEdn;
        rSt >> lcbPlcffldEdn;
        rSt >> fcPlcfpgdEdn;
        rSt >> lcbPlcfpgdEdn;
        rSt >> fcDggInfo;
        rSt >> lcbDggInfo;
        rSt >> fcSttbfRMark;
        rSt >> lcbSttbfRMark;
        rSt >> fcSttbfCaption;
        rSt >> lcbSttbfCaption;
        rSt >> fcSttbAutoCaption;
        rSt >> lcbSttbAutoCaption;
        rSt >> fcPlcfwkb;
        rSt >> lcbPlcfwkb;
        rSt >> fcPlcfspl;
        rSt >> lcbPlcfspl;
        rSt >> fcPlcftxbxTxt;
        rSt >> lcbPlcftxbxTxt;
        rSt >> fcPlcffldTxbx;
        rSt >> lcbPlcffldTxbx;
        rSt >> fcPlcfHdrtxbxTxt;
        rSt >> lcbPlcfHdrtxbxTxt;
        rSt >> fcPlcffldHdrTxbx;
        rSt >> lcbPlcffldHdrTxbx;
=====================================================================
Found a 41 line (176 tokens) duplication in the following files: 
Starting at line 3407 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3575 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    : WW8PLCFx(eVersion, true), pRef(0), pTxt(0)
{
    if( nLenRef && nLenTxt )
    {
        pRef = new WW8PLCF( pSt, nFcRef, nLenRef, nStruct, nStartCp );
        pTxt = new WW8PLCF( pSt, nFcTxt, nLenTxt, 0, nStartCp );
    }
}

WW8PLCFx_SubDoc::~WW8PLCFx_SubDoc()
{
    delete pRef;
    delete pTxt;
}

ULONG WW8PLCFx_SubDoc::GetIdx() const
{
    // Wahrscheinlich pTxt... nicht noetig
    if( pRef )
        return ( pRef->GetIdx() << 16 | pTxt->GetIdx() );
    return 0;
}

void WW8PLCFx_SubDoc::SetIdx( ULONG nIdx )
{
    if( pRef )
    {
        pRef->SetIdx( nIdx >> 16 );
        // Wahrscheinlich pTxt... nicht noetig
        pTxt->SetIdx( nIdx & 0xFFFF );
    }
}

bool WW8PLCFx_SubDoc::SeekPos( WW8_CP nCpPos )
{
    return ( pRef ) ? pRef->SeekPos( nCpPos ) : false;
}

WW8_CP WW8PLCFx_SubDoc::Where()
{
    return ( pRef ) ? pRef->Where() : WW8_CP_MAX;
=====================================================================
Found a 26 line (176 tokens) duplication in the following files: 
Starting at line 786 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/fly.cxx
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/pagechg.cxx

	BYTE nInvFlags = 0;

	if( pNew && RES_ATTRSET_CHG == pNew->Which() )
	{
		SfxItemIter aNIter( *((SwAttrSetChg*)pNew)->GetChgSet() );
		SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() );
		SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld );
		SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew );
		while( TRUE )
		{
			_UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(),
						 (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags,
						 &aOldSet, &aNewSet );
			if( aNIter.IsAtEnd() )
				break;
			aNIter.NextItem();
			aOIter.NextItem();
		}
		if ( aOldSet.Count() || aNewSet.Count() )
			SwLayoutFrm::Modify( &aOldSet, &aNewSet );
	}
	else
		_UpdateAttr( pOld, pNew, nInvFlags );

	if ( nInvFlags != 0 )
	{
=====================================================================
Found a 23 line (176 tokens) duplication in the following files: 
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedxv.cxx
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedxv.cxx

			aPixRect.Bottom()++;
			
			{ 
				// xPixRect Begrenzen, wegen Treiberproblem bei zu weit hinausragenden Pixelkoordinaten
				Size aMaxXY(pWin->GetOutputSizePixel());
				long a(2 * nPixSiz);
				long nMaxX(aMaxXY.Width() + a);
				long nMaxY(aMaxXY.Height() + a);

				if (aPixRect.Left  ()<-a) aPixRect.Left()=-a;
				if (aPixRect.Top   ()<-a) aPixRect.Top ()=-a;
				if (aPixRect.Right ()>nMaxX) aPixRect.Right ()=nMaxX;
				if (aPixRect.Bottom()>nMaxY) aPixRect.Bottom()=nMaxY;
			}

			Rectangle aOuterPix(aPixRect);
			aOuterPix.Left()-=nPixSiz;
			aOuterPix.Top()-=nPixSiz;
			aOuterPix.Right()+=nPixSiz;
			aOuterPix.Bottom()+=nPixSiz;

			bool bMerk(pWin->IsMapModeEnabled());
			pWin->EnableMapMode(FALSE);
=====================================================================
Found a 42 line (176 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/ViewShellImplementation.cxx
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviews2.cxx

namespace sd {

/*************************************************************************
|*
|* modal dialog for #90356#
|*
\************************************************************************/

class ImpUndoDeleteWarning : public ModalDialog
{
private:
	FixedImage		maImage;
	FixedText		maWarningFT;
	CheckBox		maDisableCB;
	OKButton		maYesBtn;
	CancelButton	maNoBtn;

public:
	ImpUndoDeleteWarning(Window* pParent);
	BOOL IsWarningDisabled() const { return maDisableCB.IsChecked(); }
};

ImpUndoDeleteWarning::ImpUndoDeleteWarning(Window* pParent)
:	ModalDialog(pParent, SdResId(RID_UNDO_DELETE_WARNING)),
	maImage(this, SdResId(IMG_UNDO_DELETE_WARNING)),
	maWarningFT(this, SdResId(FT_UNDO_DELETE_WARNING)),
	maDisableCB(this, SdResId(CB_UNDO_DELETE_DISABLE)),
	maYesBtn(this, SdResId(BTN_UNDO_DELETE_YES)),
	maNoBtn(this, SdResId(BTN_UNDO_DELETE_NO))
{
	FreeResource();

	SetHelpId( HID_SD_UNDODELETEWARNING_DLG );
	maDisableCB.SetHelpId( HID_SD_UNDODELETEWARNING_CBX );

	maYesBtn.SetText(Button::GetStandardText(BUTTON_YES));
	maNoBtn.SetText(Button::GetStandardText(BUTTON_NO));
	maImage.SetImage(WarningBox::GetStandardImage());

	// #93721# Set focus to YES-Button
	maYesBtn.GrabFocus();
}
=====================================================================
Found a 17 line (176 tokens) duplication in the following files: 
Starting at line 3126 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/frame.cxx
Starting at line 3169 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/frame.cxx

    TransactionGuard aTransaction( m_aTransactionManager, E_SOFTEXCEPTIONS );

    /* SAFE AREA ----------------------------------------------------------------------------------------------- */
    // Make snapshot of neccessary member!
    ReadGuard aReadLock( m_aLock );
    css::uno::Reference< css::awt::XWindow >                            xContainerWindow    = m_xContainerWindow   ;
    css::uno::Reference< css::lang::XMultiServiceFactory >              xFactory            = m_xFactory           ;
    css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >  xDragDropListener   = m_xDropTargetListener;
    css::uno::Reference< css::awt::XWindowListener >                    xWindowListener     ( static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY );
    css::uno::Reference< css::awt::XFocusListener >                     xFocusListener      ( static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY );
    css::uno::Reference< css::awt::XTopWindowListener >                 xTopWindowListener  ( static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY );
    aReadLock.unlock();
    /* UNSAFE AREA --------------------------------------------------------------------------------------------- */

    if( xContainerWindow.is() == sal_True )
    {
        xContainerWindow->removeWindowListener( xWindowListener);
=====================================================================
Found a 30 line (176 tokens) duplication in the following files: 
Starting at line 2202 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 2311 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx

bool ReadResourceWriteSubToolBarXML( const OUString& aOutDirURL,
                                     const OUString& aResourceDirURL,
                                     const OUString& aResourceFilePrefix,
                                     MODULES eModule,
                                     const OUString& aProjectName )
{
    static const char ToolBarDocType[]  = "<!DOCTYPE toolbar:toolbar PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"toolbar.dtd\">\n";
    static const char ToolBarStart[]    = "<toolbar:toolbar xmlns:toolbar=\"http://openoffice.org/2001/toolbar\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" toolbar:id=\"toolbar\">\n";
    static const char ToolBarEnd[]      = "</toolbar:toolbar>";

    OUString aSysDirPath;
    OString  aResFilePrefix = OUStringToOString( aResourceFilePrefix, RTL_TEXTENCODING_ASCII_US );

    osl::FileBase::getSystemPathFromFileURL( aResourceDirURL, aSysDirPath );

    String aSysDirPathStr( aSysDirPath );

    ::com::sun::star::lang::Locale aLocale;
    aLocale.Language = OUString::createFromAscii( Language_codes[0].pLanguage );
    aLocale.Country = OUString::createFromAscii( Language_codes[0].pCountry );
    ResMgr* pResMgr = ResMgr::CreateResMgr( aResFilePrefix.getStr(),
                                            aLocale,
                                            NULL,
                                            &aSysDirPathStr );

    WorkWindow* pWindow = new WorkWindow( NULL, WB_APP | WB_STDWORK | WB_HIDE );
    if ( pResMgr )
    {
        int i = 0;
        while ( TBSubResourceModule_Mapping[i].nParentResId > 0 )
=====================================================================
Found a 25 line (176 tokens) duplication in the following files: 
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testwriter.cxx

	~OSaxWriterTest() {}

public: // refcounting
	BOOL						queryInterface( Uik aUik, XInterfaceRef & rOut );
	void 						acquire() 						 { OWeakObject::acquire(); }
	void 						release() 						 { OWeakObject::release(); }
	void* 						getImplementation(Reflection *p) { return OWeakObject::getImplementation(p); }

public:
    virtual void testInvariant(const UString& TestName, const XInterfaceRef& TestObject)
    															THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual INT32 test(	const UString& TestName,
    					const XInterfaceRef& TestObject,
    					INT32 hTestHandle) 						THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual BOOL testPassed(void) 								THROWS( (	UsrSystemException) );
    virtual Sequence< UString > getErrors(void) 				THROWS( (UsrSystemException) );
    virtual Sequence< UsrAny > getErrorExceptions(void) 		THROWS( (UsrSystemException) );
    virtual Sequence< UString > getWarnings(void) 				THROWS( (UsrSystemException) );

private:
	void testSimple( const XExtendedDocumentHandlerRef &r );
=====================================================================
Found a 21 line (176 tokens) duplication in the following files: 
Starting at line 1224 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1592 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx

					Impl_writePolyPolygon( rPolyPoly, sal_True, nTransparence );
				}
			}
			break;

			case( META_FLOATTRANSPARENT_ACTION ):
			{
				const MetaFloatTransparentAction*	pA = (const MetaFloatTransparentAction*) pAction;
				GDIMetaFile							aTmpMtf( pA->GetGDIMetaFile() );
				Point								aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size							aSrcSize( aTmpMtf.GetPrefSize() );
				const Point							aDestPt( pA->GetPoint() );
				const Size							aDestSize( pA->GetSize() );
				const double						fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double						fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long								nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX );
=====================================================================
Found a 25 line (176 tokens) duplication in the following files: 
Starting at line 617 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/DiagramHelper.cxx
Starting at line 665 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/DiagramHelper.cxx

    if( !xGivenChartType.is() )
        return 0;

	//iterate through the model to find the given xChartType
	//the found parent indicates the coordinate system

    //iterate through all coordinate systems
    uno::Reference< XCoordinateSystemContainer > xCooSysContainer( xDiagram, uno::UNO_QUERY );
    if( !xCooSysContainer.is())
        return 0;

    uno::Sequence< uno::Reference< XCoordinateSystem > > aCooSysList( xCooSysContainer->getCoordinateSystems() );
    for( sal_Int32 nCS = 0; nCS < aCooSysList.getLength(); ++nCS )
    {
        uno::Reference< XCoordinateSystem > xCooSys( aCooSysList[nCS] );

        //iterate through all chart types in the current coordinate system
        uno::Reference< XChartTypeContainer > xChartTypeContainer( xCooSys, uno::UNO_QUERY );
        OSL_ASSERT( xChartTypeContainer.is());
        if( !xChartTypeContainer.is() )
            continue;
        uno::Sequence< uno::Reference< XChartType > > aChartTypeList( xChartTypeContainer->getChartTypes() );
        for( sal_Int32 nT = 0; nT < aChartTypeList.getLength(); ++nT )
        {
            uno::Reference< XChartType > xChartType( aChartTypeList[nT] );
=====================================================================
Found a 11 line (175 tokens) duplication in the following files: 
Starting at line 758 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
=====================================================================
Found a 40 line (175 tokens) duplication in the following files: 
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 1207 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

            value_type* pdst = (value_type*)m_rbuf->span_ptr(xdst, ydst, len);

            int incp = 4;
            if(xdst > xsrc)
            {
                psrc += (len-1) << 2;
                pdst += (len-1) << 2;
                incp = -4;
            }
            do 
            {
                value_type alpha = psrc[src_order::A];

                if(alpha)
                {
                    if(alpha == base_mask)
                    {
                        pdst[order_type::R] = psrc[src_order::R];
                        pdst[order_type::G] = psrc[src_order::G];
                        pdst[order_type::B] = psrc[src_order::B];
                        pdst[order_type::A] = psrc[src_order::A];
                    }
                    else
                    {
                        blender_type::blend_pix(pdst, 
                                                psrc[src_order::R],
                                                psrc[src_order::G],
                                                psrc[src_order::B],
                                                alpha,
                                                255);
                    }
                }
                psrc += incp;
                pdst += incp;
            }
            while(--len);
        }


    private:
=====================================================================
Found a 35 line (175 tokens) duplication in the following files: 
Starting at line 955 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx
Starting at line 1465 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx

	}

	if( nFeatures & SEF_EXPORT_X )
	{
		// svg: x1
		mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aStart.X);
		aStr = sStringBuffer.makeStringAndClear();
		mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_X1, aStr);
	}
	else
	{
		aEnd.X -= aStart.X;
	}

	if( nFeatures & SEF_EXPORT_Y )
	{
		// svg: y1
		mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aStart.Y);
		aStr = sStringBuffer.makeStringAndClear();
		mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_Y1, aStr);
	}
	else
	{
		aEnd.Y -= aStart.Y;
	}

	// svg: x2
	mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aEnd.X);
	aStr = sStringBuffer.makeStringAndClear();
	mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_X2, aStr);

	// svg: y2
	mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, aEnd.Y);
	aStr = sStringBuffer.makeStringAndClear();
	mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_Y2, aStr);
=====================================================================
Found a 28 line (175 tokens) duplication in the following files: 
Starting at line 4500 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 4565 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

bool INetURLObject::setExtension(rtl::OUString const & rTheExtension,
								 sal_Int32 nIndex, bool bIgnoreFinalSlash,
								 EncodeMechanism eMechanism,
								 rtl_TextEncoding eCharset)
{
	SubString aSegment(getSegment(nIndex, bIgnoreFinalSlash));
	if (!aSegment.isPresent())
		return false;

	sal_Unicode const * pPathBegin
		= m_aAbsURIRef.getStr() + m_aPath.getBegin();
	sal_Unicode const * pPathEnd = pPathBegin + m_aPath.getLength();
	sal_Unicode const * pSegBegin
		= m_aAbsURIRef.getStr() + aSegment.getBegin();
	sal_Unicode const * pSegEnd = pSegBegin + aSegment.getLength();

    if (pSegBegin < pSegEnd && *pSegBegin == '/')
        ++pSegBegin;
	sal_Unicode const * pExtension = 0;
	sal_Unicode const * p = pSegBegin;
	for (; p != pSegEnd && *p != ';'; ++p)
		if (*p == '.' && p != pSegBegin)
			pExtension = p;
	if (!pExtension)
		pExtension = p;

	rtl::OUStringBuffer aNewPath;
	aNewPath.append(pPathBegin, pExtension - pPathBegin);
=====================================================================
Found a 34 line (175 tokens) duplication in the following files: 
Starting at line 2634 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx
Starting at line 2863 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx

{
	const SwTableBox* pBox;
	SwTabFrm *pTab;

	if( pBoxFrm )
	{
		pTab = ((SwFrm*)pBoxFrm)->ImplFindTabFrm();
		pBox = pBoxFrm->GetTabBox();
	}
	else if( pCrsr )
	{
		const SwCntntNode* pCNd = pCrsr->GetCntntNode();
		if( !pCNd )
			return ;

		Point aPt;
		const SwShellCrsr *pShCrsr = *pCrsr;
		if( pShCrsr )
			aPt = pShCrsr->GetPtPos();

		const SwFrm* pTmpFrm = pCNd->GetFrm( &aPt, 0, FALSE );
		do {
			pTmpFrm = pTmpFrm->GetUpper();
		} while ( !pTmpFrm->IsCellFrm() );

		pBoxFrm = (SwCellFrm*)pTmpFrm;
		pTab = ((SwFrm*)pBoxFrm)->ImplFindTabFrm();
		pBox = pBoxFrm->GetTabBox();
	}
	else if( !pCrsr && !pBoxFrm )
	{
		ASSERT( !this, "einer von beiden muss angegeben werden!" );
		return ;
	}
=====================================================================
Found a 21 line (175 tokens) duplication in the following files: 
Starting at line 3220 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxed.cxx

	if (aGeo.nDrehWink!=0) {
		Point aCenter(aViewInit.Center());
		aCenter-=aViewInit.TopLeft();
		Point aCenter0(aCenter);
		RotatePoint(aCenter,Point(),aGeo.nSin,aGeo.nCos);
		aCenter-=aCenter0;
		aViewInit.Move(aCenter.X(),aCenter.Y());
	}
	Size aAnkSiz(aViewInit.GetSize());
	aAnkSiz.Width()--; aAnkSiz.Height()--; // weil GetSize() ein draufaddiert
	Size aMaxSiz(1000000,1000000);
	if (pModel!=NULL) {
		Size aTmpSiz(pModel->GetMaxObjSize());
		if (aTmpSiz.Width()!=0) aMaxSiz.Width()=aTmpSiz.Width();
		if (aTmpSiz.Height()!=0) aMaxSiz.Height()=aTmpSiz.Height();
	}
	
	// #106879#
	// Done earlier since used in else tree below
	SdrTextHorzAdjust eHAdj(GetTextHorizontalAdjust());
	SdrTextVertAdjust eVAdj(GetTextVerticalAdjust());
=====================================================================
Found a 31 line (175 tokens) duplication in the following files: 
Starting at line 3259 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 3349 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_Label::Read(SvStorageStream *pS)
{
    long nStart = pS->Tell();
	*pS >> nIdentifier;
	DBG_ASSERT(nStandardId==nIdentifier,
			"A control that has a different identifier");
	*pS >> nFixedAreaLen;
	pS->Read(pBlockFlags,4);


	if (pBlockFlags[0] & 0x01)
		*pS >> mnForeColor;
	if (pBlockFlags[0] & 0x02)
		*pS >> mnBackColor;


	if (pBlockFlags[0] & 0x04)
	{
		sal_uInt8 nTemp;
		*pS >> nTemp;
		fEnabled = (nTemp&0x02)>>1;
		fLocked = (nTemp&0x04)>>2;
		fBackStyle = (nTemp&0x08)>>3;
		*pS >> nTemp;
		*pS >> nTemp;
		fWordWrap = (nTemp&0x80)>>7;
		*pS >> nTemp;
		fAutoSize = (nTemp&0x10)>>4;
	}
    bool bCaption = (pBlockFlags[0] & 0x08) != 0;
    if (bCaption)
=====================================================================
Found a 20 line (175 tokens) duplication in the following files: 
Starting at line 2018 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2096 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffCalculationData mso_sptActionButtonForwardBackCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
	{ 0x6000, DFF_Prop_geoLeft, DFF_Prop_adjustValue, 0 },
	{ 0x6000, DFF_Prop_geoTop, DFF_Prop_adjustValue, 0 },
	{ 0xa000, DFF_Prop_geoRight, 0, DFF_Prop_adjustValue },
	{ 0xa000, DFF_Prop_geoBottom, 0, DFF_Prop_adjustValue },
	{ 0x8000, 10800, 0, DFF_Prop_adjustValue },
	{ 0x2001, 0x0405, 1, 10800 },							// scaling	 6
	{ 0x6000, DFF_Prop_geoRight, DFF_Prop_geoLeft, 10800 },	// lr center 7
	{ 0x6000, DFF_Prop_geoBottom, DFF_Prop_geoTop, 10800 },	// ul center 8

	{ 0x4001, -8050, 0x0406, 1 },	// 9
	{ 0x6000, 0x0409, 0x0407, 0 },	// a
	{ 0x4001, -8050, 0x0406, 1 },	// b
	{ 0x6000, 0x040b, 0x0408, 0 },	// c
	{ 0x4001, 8050, 0x0406, 1 },	// d
	{ 0x6000, 0x040d, 0x0407, 0 },	// e
	{ 0x4001, 8050, 0x0406, 1 },	// f
	{ 0x6000, 0x040f, 0x0408, 0 }	// 10
=====================================================================
Found a 29 line (175 tokens) duplication in the following files: 
Starting at line 1427 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/srchdlg.cxx
Starting at line 2413 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/srchdlg.cxx

	}

	pSearchItem->SetRegExp( FALSE );
	pSearchItem->SetLevenshtein( FALSE );
	if (GetCheckBoxValue( aRegExpBtn ))
		pSearchItem->SetRegExp( TRUE );
	else if (GetCheckBoxValue( aSimilarityBox ))
		pSearchItem->SetLevenshtein( TRUE );

	pSearchItem->SetWordOnly( GetCheckBoxValue( aWordBtn ) );
	pSearchItem->SetBackward( GetCheckBoxValue( aBackwardsBtn ) );
	pSearchItem->SetPattern( GetCheckBoxValue( aLayoutBtn ) );
	pSearchItem->SetSelection( GetCheckBoxValue( aSelectionBtn ) );

	pSearchItem->SetUseAsianOptions( GetCheckBoxValue( aJapOptionsCB ) );
	INT32 nFlags = GetTransliterationFlags();
	if( !pSearchItem->IsUseAsianOptions())
		nFlags &= (TransliterationModules_IGNORE_CASE |
				   TransliterationModules_IGNORE_WIDTH );
	pSearchItem->SetTransliterationFlags( nFlags );

	if ( !bWriter )
	{
        if ( aCalcSearchInLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND )
            pSearchItem->SetCellType( aCalcSearchInLB.GetSelectEntryPos() );

		pSearchItem->SetRowDirection( aRowsBtn.IsChecked() );
        pSearchItem->SetAllTables( aAllSheetsCB.IsChecked() );
	}
=====================================================================
Found a 17 line (175 tokens) duplication in the following files: 
Starting at line 1662 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptUpDownArrowCalloutVert[] =
{
	{ 0, 0 MSO_I }, { 0, 4 MSO_I }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 6 MSO_I },
	{ 1 MSO_I, 6 MSO_I }, { 10800, 21600 }, { 5 MSO_I, 6 MSO_I }, { 7 MSO_I, 6 MSO_I },
	{ 7 MSO_I, 4 MSO_I }, { 21600, 4 MSO_I }, { 21600, 0 MSO_I }, { 7 MSO_I, 0 MSO_I },
	{ 7 MSO_I, 2 MSO_I }, { 5 MSO_I, 2 MSO_I }, { 10800, 0 }, { 1 MSO_I, 2 MSO_I },
	{ 3 MSO_I, 2 MSO_I }, { 3 MSO_I, 0 MSO_I }
};
static const sal_uInt16 mso_sptUpDownArrowCalloutSegm[] =
{
	0x4000, 0x0011, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptUpDownArrowCalloutCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 17 line (175 tokens) duplication in the following files: 
Starting at line 1609 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1425 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptLeftRightArrowCalloutVert[] =
{
	{ 0 MSO_I, 0 }, { 4 MSO_I, 0 }, { 4 MSO_I, 3 MSO_I }, { 6 MSO_I, 3 MSO_I },
	{ 6 MSO_I, 1 MSO_I }, { 21600, 10800 }, { 6 MSO_I, 5 MSO_I }, { 6 MSO_I, 7 MSO_I },
	{ 4 MSO_I, 7 MSO_I }, { 4 MSO_I, 21600 }, { 0 MSO_I, 21600 }, { 0 MSO_I, 7 MSO_I },
	{ 2 MSO_I, 7 MSO_I }, { 2 MSO_I, 5 MSO_I }, { 0, 10800 }, { 2 MSO_I, 1 MSO_I },
	{ 2 MSO_I, 3 MSO_I }, { 0 MSO_I, 3 MSO_I }
};
static const sal_uInt16 mso_sptLeftRightArrowCalloutSegm[] =
{
	0x4000, 0x0011, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptLeftRightArrowCalloutCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 19 line (175 tokens) duplication in the following files: 
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1080 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptCurvedArrowVert[] =	// adjustment1 : y 10800 - 21600, adjustment2 : y 16424 - 21600
{															// adjustment3 : x 0 - 21600
	{ 21600, 0 },
	{ 9675,	0 }, { 0, 10 MSO_I }, { 0, 9 MSO_I },										// ccp
	{ 0, 11 MSO_I },
	{ 0, 14 MSO_I }, { 15 MSO_I, 1 MSO_I }, { 2 MSO_I, 1 MSO_I },						// ccp
	{ 2 MSO_I, 21600 }, { 21600, 7 MSO_I }, { 2 MSO_I, 0 MSO_I }, { 2 MSO_I, 16 MSO_I },// pppp
	{ 2 MSO_I, 16 MSO_I }, { 80, 8 MSO_I },	{ 80, 8 MSO_I },							// ccp
	{ 80, 8 MSO_I }, { 21600, 5 MSO_I }, { 21600, 0	}									// ccp
};
static const sal_uInt16 mso_sptCurvedArrowSegm[] =
{
	0x4000, 0x2001, 0x0001, 0x2001, 0x0004, 0x2002, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptCurvedArrowCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },						// 0
=====================================================================
Found a 32 line (175 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linkmgr2.cxx
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linkmgr2.cxx

			(*(*ppRef))->pLinkMgr = 0;
			(*(*ppRef)).Clear();
			bFound = TRUE;
		}

		// falls noch leere rum stehen sollten, weg damit
		if( !(*ppRef)->Is() )
		{
			delete *ppRef;
			aLinkTbl.Remove( aLinkTbl.Count() - n, 1 );
			if( bFound )
				return ;
			--ppRef;
		}
	}
}


void SvLinkManager::Remove( USHORT nPos, USHORT nCnt )
{
	if( nCnt && nPos < aLinkTbl.Count() )
	{
		if( nPos + nCnt > aLinkTbl.Count() )
			nCnt = aLinkTbl.Count() - nPos;

		SvBaseLinkRef** ppRef = (SvBaseLinkRef**)aLinkTbl.GetData() + nPos;
		for( USHORT n = nCnt; n; --n, ++ppRef )
		{
			if( (*ppRef)->Is() )
			{
				(*(*ppRef))->Disconnect();
				(*(*ppRef))->pLinkMgr = 0;
=====================================================================
Found a 30 line (175 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/editsrc.cxx
Starting at line 403 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/notesuno.cxx

SdrObject* ScAnnotationShapeObj::GetCaptionObj()
{
    SdrObject* pRet = NULL;

	ScDrawLayer* pModel = pDocShell->GetDocument()->GetDrawLayer();
	if (!pModel)
		return FALSE;
	SdrPage* pPage = pModel->GetPage(static_cast<sal_uInt16>(aCellPos.Tab()));
	DBG_ASSERT(pPage,"Page ?");

	pPage->RecalcObjOrdNums();

	SdrObjListIter aIter( *pPage, IM_FLAT );
	SdrObject* pObject = aIter.Next();
	while (pObject && !pRet)
	{
		if ( pObject->GetLayer() == SC_LAYER_INTERN && pObject->ISA( SdrCaptionObj ) )
		{
			ScDrawObjData* pData = ScDrawLayer::GetObjData( pObject );
			if ( pData && aCellPos.Col() == pData->aStt.Col() && aCellPos.Row() == pData->aStt.Row() )
			{
                pRet = pObject;
			}
		}

		pObject = aIter.Next();
	}

	return pRet;
}
=====================================================================
Found a 33 line (175 tokens) duplication in the following files: 
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fudraw.cxx
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/graphctl.cxx

				if(0L == pHdl)
				{
					// #90129# restrict movement to WorkArea
					const Rectangle& rWorkArea = pView->GetWorkArea();

					if(!rWorkArea.IsEmpty())
					{
						Rectangle aMarkRect(pView->GetMarkedObjRect());
						aMarkRect.Move(nX, nY);

						if(!aMarkRect.IsInside(rWorkArea))
						{
							if(aMarkRect.Left() < rWorkArea.Left())
							{
								nX += rWorkArea.Left() - aMarkRect.Left();
							}

							if(aMarkRect.Right() > rWorkArea.Right())
							{
								nX -= aMarkRect.Right() - rWorkArea.Right();
							}

							if(aMarkRect.Top() < rWorkArea.Top())
							{
								nY += rWorkArea.Top() - aMarkRect.Top();
							}

							if(aMarkRect.Bottom() > rWorkArea.Bottom())
							{
								nY -= aMarkRect.Bottom() - rWorkArea.Bottom();
							}
						}
					}
=====================================================================
Found a 19 line (175 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docsh.cxx
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx

static const sal_Char __FAR_DATA pFilterSc30Temp[]	= "StarCalc 3.0 Vorlage/Template";
static const sal_Char __FAR_DATA pFilterSc10[]		= "StarCalc 1.0";
static const sal_Char __FAR_DATA pFilterXML[]		= "StarOffice XML (Calc)";
static const sal_Char __FAR_DATA pFilterAscii[]		= "Text - txt - csv (StarCalc)";
static const sal_Char __FAR_DATA pFilterLotus[]		= "Lotus";
static const sal_Char __FAR_DATA pFilterQPro6[]		= "Quattro Pro 6.0";
static const sal_Char __FAR_DATA pFilterExcel4[]	= "MS Excel 4.0";
static const sal_Char __FAR_DATA pFilterEx4Temp[]	= "MS Excel 4.0 Vorlage/Template";
static const sal_Char __FAR_DATA pFilterExcel5[]	= "MS Excel 5.0/95";
static const sal_Char __FAR_DATA pFilterEx5Temp[]	= "MS Excel 5.0/95 Vorlage/Template";
static const sal_Char __FAR_DATA pFilterExcel95[]	= "MS Excel 95";
static const sal_Char __FAR_DATA pFilterEx95Temp[]	= "MS Excel 95 Vorlage/Template";
static const sal_Char __FAR_DATA pFilterExcel97[]	= "MS Excel 97";
static const sal_Char __FAR_DATA pFilterEx97Temp[]	= "MS Excel 97 Vorlage/Template";
static const sal_Char __FAR_DATA pFilterDBase[]		= "dBase";
static const sal_Char __FAR_DATA pFilterDif[]		= "DIF";
static const sal_Char __FAR_DATA pFilterSylk[]		= "SYLK";
static const sal_Char __FAR_DATA pFilterHtml[]		= "HTML (StarCalc)";
static const sal_Char __FAR_DATA pFilterHtmlWeb[]	= "calc_HTML_WebQuery";
=====================================================================
Found a 26 line (175 tokens) duplication in the following files: 
Starting at line 1595 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 2030 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

SvXMLImportContext *ScXMLRejectionContext::CreateChildContext( USHORT nPrefix,
									 const ::rtl::OUString& rLocalName,
									 const ::com::sun::star::uno::Reference<
									  	::com::sun::star::xml::sax::XAttributeList>& xAttrList )
{
	SvXMLImportContext *pContext(0);

	if ((nPrefix == XML_NAMESPACE_OFFICE) && (IsXMLToken(rLocalName, XML_CHANGE_INFO)))
	{
		pContext = new ScXMLChangeInfoContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
	}
	else if (nPrefix == XML_NAMESPACE_TABLE)
	{
		if (IsXMLToken(rLocalName, XML_DEPENDENCIES))
			pContext = new ScXMLDependingsContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
		else if (IsXMLToken(rLocalName, XML_DELETIONS))
			pContext = new ScXMLDeletionsContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
	}

	if( !pContext )
		pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName );

	return pContext;
}

void ScXMLRejectionContext::EndElement()
=====================================================================
Found a 39 line (175 tokens) duplication in the following files: 
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/codemaker/global.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/checksingleton.cxx

sal_Bool isFileUrl(const OString& fileName)
{
    if (fileName.indexOf("file://") == 0 )
        return sal_True;
    return sal_False;
}

OUString convertToFileUrl(const OString& fileName)
{
    if ( isFileUrl(fileName) )
    {
        return OStringToOUString(fileName, osl_getThreadTextEncoding());
    }

    OUString uUrlFileName;
    OUString uFileName(fileName.getStr(), fileName.getLength(), osl_getThreadTextEncoding());
    if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
    {
        OUString uWorkingDir;
        if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None)
        {
            OSL_ASSERT(false);
        }
        if (FileBase::getAbsoluteFileURL(uWorkingDir, uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    } else
    {
        if (FileBase::getFileURLFromSystemPath(uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    }

    return uUrlFileName;
}
=====================================================================
Found a 6 line (175 tokens) duplication in the following files: 
Starting at line 1500 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1519 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd90 - fd9f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fda0 - fdaf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fdb0 - fdbf
    13,13,13,13,13,13,13,13, 0, 0, 0, 0, 0, 0, 0, 0,// fdc0 - fdcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fdd0 - fddf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fde0 - fdef
=====================================================================
Found a 6 line (175 tokens) duplication in the following files: 
Starting at line 1488 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1550 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff60 - ff6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff70 - ff7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff80 - ff8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ff90 - ff9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
=====================================================================
Found a 7 line (175 tokens) duplication in the following files: 
Starting at line 1384 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1434 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,// 2e90 - 2e9f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ea0 - 2eaf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2eb0 - 2ebf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ec0 - 2ecf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ed0 - 2edf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ee0 - 2eef
    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff
=====================================================================
Found a 8 line (175 tokens) duplication in the following files: 
Starting at line 1311 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1352 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23c0 - 23cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23d0 - 23df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23e0 - 23ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23f0 - 23ff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2400 - 240f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2410 - 241f
    10,10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2420 - 242f
=====================================================================
Found a 8 line (175 tokens) duplication in the following files: 
Starting at line 1243 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 0,// 27b0 - 27bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27c0 - 27cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27d0 - 27df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27e0 - 27ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 27f0 - 27ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
=====================================================================
Found a 6 line (175 tokens) duplication in the following files: 
Starting at line 858 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 877 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd90 - fd9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fda0 - fdaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fdb0 - fdbf
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// fdc0 - fdcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fdd0 - fddf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fde0 - fdef
=====================================================================
Found a 7 line (175 tokens) duplication in the following files: 
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 673 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27, 0,27,27,27,27,27,// 2e90 - 2e9f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2ea0 - 2eaf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2eb0 - 2ebf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2ec0 - 2ecf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2ed0 - 2edf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2ee0 - 2eef
    27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff
=====================================================================
Found a 6 line (175 tokens) duplication in the following files: 
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 895 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 7 line (175 tokens) duplication in the following files: 
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30a0 - 30af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30b0 - 30bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30c0 - 30cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30d0 - 30df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30e0 - 30ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,22, 4, 4, 4, 0,// 30f0 - 30ff
=====================================================================
Found a 8 line (175 tokens) duplication in the following files: 
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 13f0 - 13ff

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1400 - 140f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1410 - 141f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1420 - 142f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1430 - 143f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1440 - 144f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1450 - 145f
=====================================================================
Found a 6 line (175 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5,// 11a0 - 11af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 11b0 - 11bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 11c0 - 11cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 11d0 - 11df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 11e0 - 11ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0,// 11f0 - 11ff
=====================================================================
Found a 31 line (175 tokens) duplication in the following files: 
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx
Starting at line 347 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/headermenucontroller.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/objectmenucontroller.cxx

void SAL_CALL ObjectMenuController::setPopupMenu( const Reference< css::awt::XPopupMenu >& xPopupMenu ) throw ( RuntimeException )
{
    ResetableGuard aLock( m_aLock );

    if ( m_bDisposed )
        throw DisposedException();

    if ( m_xFrame.is() && !m_xPopupMenu.is() )
    {
        // Create popup menu on demand
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );

        m_xPopupMenu = xPopupMenu;
	    m_xPopupMenu->addMenuListener( Reference< css::awt::XMenuListener >( (OWeakObject*)this, UNO_QUERY ));

        Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
                                                        rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
                                                    UNO_QUERY );
        Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );

        com::sun::star::util::URL aTargetURL;
        aTargetURL.Complete = m_aCommandURL;
        xURLTransformer->parseStrict( aTargetURL );
        m_xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );

        updatePopupMenu();
    }
}

// XInitialization
void SAL_CALL ObjectMenuController::initialize( const Sequence< Any >& aArguments ) throw ( Exception, RuntimeException )
=====================================================================
Found a 57 line (175 tokens) duplication in the following files: 
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 553 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

                      break;  
		}
	}
}

void SAL_CALL OReadImagesDocumentHandler::endElement(const OUString& aName)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	ImageHashMap::const_iterator pImageEntry = m_aImageMap.find( aName ) ;
	if ( pImageEntry != m_aImageMap.end() )
	{
		switch ( pImageEntry->second )
		{
			case IMG_ELEMENT_IMAGECONTAINER:
			{
				m_bImageContainerEndFound = sal_True;
			}
			break;

			case IMG_ELEMENT_IMAGES:
			{
				if ( m_pImages )
				{
					if ( m_aImageList.pImageList )
						m_aImageList.pImageList->Insert( m_pImages, m_aImageList.pImageList->Count() );
					m_pImages = NULL;
				}
				m_bImagesStartFound = sal_False;
			}
			break;

			case IMG_ELEMENT_ENTRY:
			{
				m_bImageStartFound = sal_False;
			}
			break;

			case IMG_ELEMENT_EXTERNALIMAGES:
			{
				if ( m_pExternalImages && !m_aImageList.pExternalImageList )
				{
					if ( !m_aImageList.pExternalImageList )
						m_aImageList.pExternalImageList = m_pExternalImages;
				}

				m_bExternalImagesStartFound = sal_False;
				m_pExternalImages = NULL;
			}
			break;

			case IMG_ELEMENT_EXTERNALENTRY:
			{
				m_bExternalImageStartFound = sal_False;
			}
			break;
=====================================================================
Found a 46 line (175 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilterdetect/filterdetect.cxx
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx

	return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "devguide.officedev.samples.filter.FlatXmlDetect" ) );
}

#define SERVICE_NAME1 "com.sun.star.document.ExtendedTypeDetection"

sal_Bool SAL_CALL FilterDetect_supportsService( const OUString& ServiceName ) 
	throw (RuntimeException)
{
    return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME1 ) );
}

Sequence< OUString > SAL_CALL FilterDetect_getSupportedServiceNames(  ) 
	throw (RuntimeException)
{
    Sequence < OUString > aRet(2);
    OUString* pArray = aRet.getArray();
    pArray[0] =  OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME1 ) );
    return aRet;
}
#undef SERVICE_NAME1
#undef SERVICE_NAME2

Reference< XInterface > SAL_CALL FilterDetect_createInstance( const Reference< XMultiServiceFactory > & rSMgr)
	throw( Exception )
{
	return (cppu::OWeakObject*) new FilterDetect( rSMgr );
}

// XServiceInfo
OUString SAL_CALL FilterDetect::getImplementationName(  ) 
	throw (RuntimeException)
{
	return FilterDetect_getImplementationName();
}

sal_Bool SAL_CALL FilterDetect::supportsService( const OUString& rServiceName ) 
	throw (RuntimeException)
{
    return FilterDetect_supportsService( rServiceName );
}

Sequence< OUString > SAL_CALL FilterDetect::getSupportedServiceNames(  ) 
	throw (RuntimeException)
{
    return FilterDetect_getSupportedServiceNames();
}
=====================================================================
Found a 29 line (175 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx

					switch((sal_Int32)aRow[5]->getValue())
					{
					case DataType::CHAR:
					case DataType::VARCHAR:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)254);
						break;
					case DataType::LONGVARCHAR:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)65535);
						break;
					default:
						aRow[16] = new ORowSetValueDecorator((sal_Int32)0);
					}
					aRow[17] = new ORowSetValueDecorator(i);
					switch(sal_Int32(aRow[11]->getValue()))
					{
					case ColumnValue::NO_NULLS:
						aRow[18] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("NO"));
						break;
					case ColumnValue::NULLABLE:
						aRow[18] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("YES"));
						break;
					default:
						aRow[18] = new ORowSetValueDecorator(::rtl::OUString());
					}
					aRows.push_back(aRow);
				}
			}
		}
	}
=====================================================================
Found a 39 line (175 tokens) duplication in the following files: 
Starting at line 258 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/codemaker/global.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/checksingleton.cxx

sal_Bool isFileUrl(const OString& fileName)
{
    if (fileName.indexOf("file://") == 0 )
        return sal_True;
    return sal_False;
}

OUString convertToFileUrl(const OString& fileName)
{
    if ( isFileUrl(fileName) )
    {
        return OStringToOUString(fileName, osl_getThreadTextEncoding());
    }

    OUString uUrlFileName;
    OUString uFileName(fileName.getStr(), fileName.getLength(), osl_getThreadTextEncoding());
    if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
    {
        OUString uWorkingDir;
        if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None)
        {
            OSL_ASSERT(false);
        }
        if (FileBase::getAbsoluteFileURL(uWorkingDir, uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    } else
    {
        if (FileBase::getFileURLFromSystemPath(uFileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    }

    return uUrlFileName;
}
=====================================================================
Found a 32 line (174 tokens) duplication in the following files: 
Starting at line 916 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi.cxx
Starting at line 3203 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/window/salframe.cxx

	RECT*		pRect = mpNextClipRect;
	RECT*		pBoundRect = &(mpClipRgnData->rdh.rcBound);
	long		nRight = nX + nWidth;
	long		nBottom = nY + nHeight;

	if ( mbFirstClipRect )
	{
		pBoundRect->left	= nX;
		pBoundRect->top 	= nY;
		pBoundRect->right	= nRight;
		pBoundRect->bottom	= nBottom;
		mbFirstClipRect = FALSE;
	}
	else
	{
		if ( nX < pBoundRect->left )
			pBoundRect->left = (int)nX;

		if ( nY < pBoundRect->top )
			pBoundRect->top = (int)nY;

		if ( nRight > pBoundRect->right )
			pBoundRect->right = (int)nRight;

		if ( nBottom > pBoundRect->bottom )
			pBoundRect->bottom = (int)nBottom;
	}

	pRect->left 	= (int)nX;
	pRect->top		= (int)nY;
	pRect->right	= (int)nRight;
	pRect->bottom	= (int)nBottom;
=====================================================================
Found a 25 line (174 tokens) duplication in the following files: 
Starting at line 1129 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx
Starting at line 1233 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

								nTemp = pLutFrac[ nY ];

								lXR1 = aCol1.GetRed() - ( lXR0 = aCol0.GetRed() );
								lXG1 = aCol1.GetGreen() - ( lXG0 = aCol0.GetGreen() );
								lXB1 = aCol1.GetBlue() - ( lXB0 = aCol0.GetBlue() );

								aCol0.SetRed( (BYTE) ( ( lXR1 * nTemp + ( lXR0 << 10 ) ) >> 10 ) );
								aCol0.SetGreen( (BYTE) ( ( lXG1 * nTemp + ( lXG0 << 10 ) ) >> 10 ) );
								aCol0.SetBlue( (BYTE) ( ( lXB1 * nTemp + ( lXB0 << 10 ) ) >> 10 ) );

								pWriteAcc->SetPixel( nY, nX, aCol0 );
							}
						}
					}
				}

				delete[] pLutInt;
				delete[] pLutFrac;
				bRet = TRUE;
			}

			ReleaseAccess( pReadAcc );
			aNewBmp.ReleaseAccess( pWriteAcc );

			if( bRet )
=====================================================================
Found a 50 line (174 tokens) duplication in the following files: 
Starting at line 602 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_stgelems.cxx
Starting at line 803 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_stgelems.cxx

  m_xWrappedInputStream( xStreamToWrap->getInputStream(), uno::UNO_QUERY ),
  m_xWrappedComponent( xStreamToWrap, uno::UNO_QUERY ),
  m_xWrappedTypeProv( xStreamToWrap, uno::UNO_QUERY )
{
    OSL_ENSURE( m_xWrappedStream.is(),
                "OutputStream::OutputStream: No stream to wrap!" );

    OSL_ENSURE( m_xWrappedComponent.is(),
                "OutputStream::OutputStream: No component to wrap!" );

    OSL_ENSURE( m_xWrappedTypeProv.is(),
                "OutputStream::OutputStream: No Type Provider!" );

    // Use proxy factory service to create aggregatable proxy.
    try
    {
        uno::Reference< reflection::XProxyFactory > xProxyFac(
            xSMgr->createInstance(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
                    "com.sun.star.reflection.ProxyFactory" ) ) ),
            uno::UNO_QUERY );
        if ( xProxyFac.is() )
        {
            m_xAggProxy = xProxyFac->createProxy( m_xWrappedStream );
        }
    }
    catch ( uno::Exception const & )
    {
        OSL_ENSURE( false, "OutputStream::OutputStream: Caught exception!" );
    }

    OSL_ENSURE( m_xAggProxy.is(),
            "OutputStream::OutputStream: Wrapped stream cannot be aggregated!" );

    if ( m_xAggProxy.is() )
    {
        osl_incrementInterlockedCount( &m_refCount );
		{
			// Solaris compiler problem:
			// Extra block to enforce destruction of temporary object created
            // in next statement _before_ osl_decrementInterlockedCount is
            // called.  Otherwise 'this' will destroy itself even before ctor
            // is completed (See impl. of XInterface::release())!

        	m_xAggProxy->setDelegator(
				static_cast< cppu::OWeakObject * >( this ) );
		}
        osl_decrementInterlockedCount( &m_refCount );
    }
}
=====================================================================
Found a 36 line (174 tokens) duplication in the following files: 
Starting at line 1768 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 2085 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                                -1 ) ),
            xEnv );
        // Unreachable
    }

	// Is source not a parent of me / not me?
    rtl::OUString aId = m_xIdentifier->getContentIdentifier();
	sal_Int32 nPos = aId.lastIndexOf( '/' );
	if ( nPos != ( aId.getLength() - 1 ) )
	{
		// No trailing slash found. Append.
        aId += rtl::OUString::createFromAscii( "/" );
	}

	if ( rInfo.SourceURL.getLength() <= aId.getLength() )
	{
		if ( aId.compareTo(
				rInfo.SourceURL, rInfo.SourceURL.getLength() ) == 0 )
        {
            uno::Any aProps
                = uno::makeAny(beans::PropertyValue(
                                      rtl::OUString(
                                          RTL_CONSTASCII_USTRINGPARAM("Uri")),
                                      -1,
                                      uno::makeAny( rInfo.SourceURL ),
                                      beans::PropertyState_DIRECT_VALUE));
            ucbhelper::cancelCommandExecution(
                ucb::IOErrorCode_RECURSIVE,
                uno::Sequence< uno::Any >(&aProps, 1),
                xEnv,
                rtl::OUString::createFromAscii(
                    "Target is equal to or is a child of source!" ),
                this );
            // Unreachable
        }
	}
=====================================================================
Found a 36 line (174 tokens) duplication in the following files: 
Starting at line 3447 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 3500 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

							   _HTMLAttr **ppAttr3, const SfxPoolItem *pItem3 )
{
	String aId, aStyle, aClass, aLang, aDir;

	const HTMLOptions *pOptions = GetOptions();
	for( USHORT i = pOptions->Count(); i; )
	{
		const HTMLOption *pOption = (*pOptions)[--i];
		switch( pOption->GetToken() )
		{
		case HTML_O_ID:
			aId = pOption->GetString();
			break;
		case HTML_O_STYLE:
			aStyle = pOption->GetString();
			break;
		case HTML_O_CLASS:
			aClass = pOption->GetString();
			break;
		case HTML_O_LANG:
			aLang = pOption->GetString();
			break;
		case HTML_O_DIR:
			aDir = pOption->GetString();
			break;
		}
	}

	// einen neuen Kontext anlegen
	_HTMLAttrContext *pCntxt = new _HTMLAttrContext( nToken );

	// Styles parsen
	if( HasStyleOptions( aStyle, aId, aClass, &aLang, &aDir ) )
	{
		SfxItemSet aItemSet( pDoc->GetAttrPool(), pCSS1Parser->GetWhichMap() );
		SvxCSS1PropertyInfo aPropInfo;
=====================================================================
Found a 15 line (174 tokens) duplication in the following files: 
Starting at line 2062 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1793 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffTextRectangles mso_sptActionButtonTextRect[] =
{
	{ { 1 MSO_I, 2 MSO_I }, { 3 MSO_I, 4 MSO_I } }
};
static const SvxMSDffVertPair mso_sptActionButtonHomeVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 10800, 0xa MSO_I }, { 0xc MSO_I, 0xe MSO_I }, { 0xc MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0x10 MSO_I },
=====================================================================
Found a 17 line (174 tokens) duplication in the following files: 
Starting at line 639 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 606 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 68, 10800 }, { 88, 4 MSO_I }, { 88, 3 MSO_I },	// ccp
	{ 88, 0 MSO_I },									// p
	{ 88, 2 MSO_I }, { 68, 0 }, { 44, 0 },				// ccp
	{ 44, 0 },											// p
	{ 20, 0 }, { 0, 2 MSO_I }, { 0, 0 MSO_I },			// ccp
	{ 0, 5 MSO_I }, { 20, 6 MSO_I }, { 44, 6 MSO_I },	// ccp
	{ 68, 6 MSO_I },{ 88, 5 MSO_I }, { 88, 0 MSO_I },	// ccp
	{ 88, 2 MSO_I },{ 68, 0 }, { 44, 0 }				// ccp
};
static const sal_uInt16 mso_sptCanSegm[] =
{
	0x4000, 0x2001, 0x0001, 0x2002, 0x0001, 0x2001, 0x6001, 0x8000,
	0x4000, 0x2004, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptCanCalc[] =
{
	{ 0x2001, DFF_Prop_adjustValue, 1, 4 },		// 1/4
=====================================================================
Found a 24 line (174 tokens) duplication in the following files: 
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptRightTriangleVert[] =
{
	{ 0, 0 }, { 21600, 21600 }, { 0, 21600 }, { 0, 0 }
};
static const SvxMSDffTextRectangles mso_sptRightTriangleTextRect[] =
{
	{ { 1900, 12700 }, { 12700, 19700 } }
};
static const SvxMSDffVertPair mso_sptRightTriangleGluePoints[] =
{
	{ 10800, 0 }, { 5400, 10800 }, { 0, 21600 }, { 10800, 21600 }, { 21600, 21600 }, { 16200, 10800 }
};
static const mso_CustomShape msoRightTriangle =
{
	(SvxMSDffVertPair*)mso_sptRightTriangleVert, sizeof( mso_sptRightTriangleVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0, 
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptRightTriangleTextRect, sizeof( mso_sptRightTriangleTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptRightTriangleGluePoints, sizeof( mso_sptRightTriangleGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 37 line (174 tokens) duplication in the following files: 
Starting at line 258 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linksrc.cxx
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linksrc.cxx

				p->xSink->DataChanged( sDataMimeType, aVal );

				if( p->nAdviseModes & ADVISEMODE_ONLYONCE )
				{
					USHORT nFndPos = pImpl->aArr.GetPos( p );
					if( USHRT_MAX != nFndPos )
						pImpl->aArr.DeleteAndDestroy( nFndPos );
				}

			}
		}
	}
	if( pImpl->pTimer )
	{
		delete pImpl->pTimer;
		pImpl->pTimer = NULL;
	}
	pImpl->aDataMimeType.Erase();
}

void SvLinkSource::NotifyDataChanged()
{
	if( pImpl->nTimeout )
		StartTimer( &pImpl->pTimer, this, pImpl->nTimeout ); // Timeout neu
	else
	{
		SvLinkSource_EntryIter_Impl aIter( pImpl->aArr );
		for( SvLinkSource_Entry_ImplPtr p = aIter.Curr(); p; p = aIter.Next() )
			if( p->bIsDataSink )
			{
				Any aVal;
				if( ( p->nAdviseModes & ADVISEMODE_NODATA ) ||
					GetData( aVal, p->aDataMimeType, TRUE ) )
				{
					p->xSink->DataChanged( p->aDataMimeType, aVal );

					if( p->nAdviseModes & ADVISEMODE_ONLYONCE )
=====================================================================
Found a 30 line (174 tokens) duplication in the following files: 
Starting at line 513 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/drwtrans.cxx
Starting at line 809 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx

			xStream->SetBufferSize( 16348 );

			// #108584#
			// for the changed pool defaults from drawing layer pool set those
			// attributes as hard attributes to preserve them for saving
			const SfxItemPool& rItemPool = pModel->GetItemPool();
			const SvxFontHeightItem& rDefaultFontHeight = (const SvxFontHeightItem&)rItemPool.GetDefaultItem(EE_CHAR_FONTHEIGHT);

			// SW should have no MasterPages
			DBG_ASSERT(0L == pModel->GetMasterPageCount(), "SW with MasterPages (!)");

			for(sal_uInt16 a(0); a < pModel->GetPageCount(); a++)
			{
				const SdrPage* pPage = pModel->GetPage(a);
				SdrObjListIter aIter(*pPage, IM_DEEPNOGROUPS);

				while(aIter.IsMore())
				{
					SdrObject* pObj = aIter.Next();
					const SvxFontHeightItem& rItem = (const SvxFontHeightItem&)pObj->GetMergedItem(EE_CHAR_FONTHEIGHT);

					if(rItem.GetHeight() == rDefaultFontHeight.GetHeight())
					{
						pObj->SetMergedItem(rDefaultFontHeight);
					}
				}
			}

			{
				com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> xDocOut( new utl::OOutputStreamWrapper( *xStream ) );
=====================================================================
Found a 28 line (174 tokens) duplication in the following files: 
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/rsc/source/res/rscmgr.cxx
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/rsc/source/res/rscmgr.cxx

ERRTYPE RscMgr::WriteCxxHeader( const RSCINST & rInst, FILE * fOutput,
								RscTypCont * pTC, const RscId & rId )
{
	RscMgrInst *	pClassData;
	ERRTYPE 		aError;
	ObjNode *		pObjNode = NULL;

	pClassData = (RscMgrInst *)(rInst.pData + RscClass::Size());

	if( pClassData->aRefId.IsId() )
	{
		pObjNode = rInst.pClass->GetObjNode( pClassData->aRefId );
		if( !pObjNode && pTC )
		{
			ByteString	aMsg( pHS->getString( rInst.pClass->GetId() ).getStr() );
			aMsg += ' ';
			aMsg += pClassData->aRefId.GetName();
			aError = WRN_MGR_REFNOTFOUND;
			pTC->pEH->Error( aError, rInst.pClass, rId, aMsg.GetBuffer() );
		}
	}

	if( pObjNode )
	{
		RSCINST 	aRefI;

		aRefI = RSCINST( rInst.pClass, pObjNode->GetRscObj() );
		aError = aRefI.pClass->WriteCxxHeader( aRefI, fOutput, pTC,
=====================================================================
Found a 12 line (174 tokens) duplication in the following files: 
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 38 line (174 tokens) duplication in the following files: 
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

    ATLASSERT( hr >= 0 );
    if( !SUCCEEDED( hr ) )
    {
        delete[] hvs;
        delete[] aVal;
        delete[] aPropNames;
        return hr;
    }

	USES_CONVERSION;
    for( unsigned long ind = 0; ind < aNum; ind++ )
    {
		// all information from the 'object' tag is in strings
		if( aVal[ind].vt == VT_BSTR && !strcmp( OLE2T( aPropNames[ind].pstrName ), "src" ) )
		{
            mCurFileUrl = wcsdup( aVal[ind].bstrVal );
		}
		else if( aVal[ind].vt == VT_BSTR 
				&& !strcmp( OLE2T( aPropNames[ind].pstrName ), "readonly" ) )
		{
			if( !strcmp( OLE2T( aVal[ind].bstrVal ), "true" ) )
			{
				mbViewOnly = TRUE;
			}
			else
			{
				// the default value
				mbViewOnly = FALSE;
			}
		}
    }

    delete[] hvs;
    delete[] aVal;
    delete[] aPropNames;

	if( !mpDispFactory )
		return hr;
=====================================================================
Found a 27 line (174 tokens) duplication in the following files: 
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propertysetinfo.cxx
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/property/propertysetinfo.cxx

	mpMap->add( pMap );
}

void PropertySetInfo::remove( const rtl::OUString& aName ) throw()
{
	mpMap->remove( aName );
}

Sequence< ::com::sun::star::beans::Property > SAL_CALL PropertySetInfo::getProperties() throw(::com::sun::star::uno::RuntimeException)
{
	return mpMap->getProperties();
}

Property SAL_CALL PropertySetInfo::getPropertyByName( const ::rtl::OUString& aName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
	return mpMap->getPropertyByName( aName );
}

sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName( const ::rtl::OUString& Name ) throw(::com::sun::star::uno::RuntimeException)
{
	return mpMap->hasPropertyByName( Name );
}

const PropertyMap* PropertySetInfo::getPropertyMap() const throw()
{
	return mpMap->getPropertyMap();
}
=====================================================================
Found a 29 line (174 tokens) duplication in the following files: 
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

	void ** pCppArgs  = (void **)malloc( 3 * sizeof(void *) * nParams );
#else
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
#endif
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 28 line (174 tokens) duplication in the following files: 
Starting at line 342 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
=====================================================================
Found a 29 line (174 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

	void ** pCppArgs  = (void **)malloc( 3 * sizeof(void *) * nParams );
#else
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
#endif
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
=====================================================================
Found a 39 line (174 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 342 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

        *pPT++ = 'I';

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut 
                    && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{

                          // we need to know type of each param so that we know whether to use
                          // gpr or fpr to pass in parameters:
                          // Key: I - int, long, pointer, etc means pass in gpr
                          //      B - byte value passed in gpr
                          //      S - short value passed in gpr
                          //      F - float value pass in fpr
                          //      D - double value pass in fpr
                          //      H - long long int pass in proper pairs of gpr (3,4) (5,6), etc
                          //      X - indicates end of parameter description string

		          case typelib_TypeClass_LONG:
=====================================================================
Found a 13 line (173 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/components/display.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/PropertySetMerger.cxx

	virtual ~PropertySetMergerImpl();

    // XPropertySet
    virtual Reference< XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(RuntimeException);
    virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const Any& aValue ) throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException);
    virtual Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& xListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& aListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException);

    // XPropertyState
    virtual PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) throw(UnknownPropertyException, RuntimeException);
=====================================================================
Found a 49 line (173 tokens) duplication in the following files: 
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

	{
		//=================================================================
		//
		// Folder: Supported properties
		//
		//=================================================================

        static const beans::Property aFolderPropertyInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory properties
            ///////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                -1,
                getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                -1,
                getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard properties
            ///////////////////////////////////////////////////////////
            ///////////////////////////////////////////////////////////
            // New properties
            ///////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Storage" ) ),
=====================================================================
Found a 41 line (173 tokens) duplication in the following files: 
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const beans::Property aRootPropertyInfoTable[] =
		{
			///////////////////////////////////////////////////////////////
            // Mandatory properties
			///////////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
				-1,
				getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
				-1,
				getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			)
			///////////////////////////////////////////////////////////////
			// Optional standard properties
			///////////////////////////////////////////////////////////////
			///////////////////////////////////////////////////////////////
			// New properties
			///////////////////////////////////////////////////////////////
		};
        return uno::Sequence< beans::Property >( aRootPropertyInfoTable, 4 );
=====================================================================
Found a 53 line (173 tokens) duplication in the following files: 
Starting at line 986 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 1057 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

			if (*pBegin == nClosing)
			{
				++rLength;
				return ++pBegin;
			}
			else
			{
				sal_uInt32 c = *pBegin++;
				switch (c)
				{
					case 0x0D: // CR
						if (pBegin != pEnd && *pBegin == 0x0A) // LF
							if (pEnd - pBegin >= 2 && isWhiteSpace(pBegin[1]))
							{
								++rLength;
								rModify = true;
								pBegin += 2;
							}
							else
							{
								rLength += 3;
								rModify = true;
								++pBegin;
							}
						else
							++rLength;
						break;

					case '\\':
						++rLength;
						if (pBegin != pEnd)
							if (startsWithLineBreak(pBegin, pEnd)
								&& (pEnd - pBegin < 3
									|| !isWhiteSpace(pBegin[2])))
							{
								rLength += 3;
								rModify = true;
								pBegin += 2;
							}
							else
								++pBegin;
						break;

					default:
						++rLength;
						if (!isUSASCII(c))
							rModify = true;
						break;
				}
			}
	}
	return pBegin;
}
=====================================================================
Found a 41 line (173 tokens) duplication in the following files: 
Starting at line 2181 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/table/swtable.cxx
Starting at line 2307 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/table/swtable.cxx

		if( !pAttrSet || SFX_ITEM_SET != pAttrSet->
			GetItemState( RES_CHRATR_COLOR, FALSE, &pItem ))
			pItem = 0;

		const Color* pOldNumFmtColor = rBox.GetSaveNumFmtColor();
		const Color* pNewUserColor = pItem ? &((SvxColorItem*)pItem)->GetValue() : 0;

		if( ( pNewUserColor && pOldNumFmtColor &&
				*pNewUserColor == *pOldNumFmtColor ) ||
			( !pNewUserColor && !pOldNumFmtColor ))
		{
			// User Color nicht veraendern aktuellen Werte setzen
			// ggfs. die alte NumFmtColor loeschen
			if( pCol )
				// ggfs. die Farbe setzen
				pTNd->SwCntntNode::SetAttr( SvxColorItem( *pCol, RES_CHRATR_COLOR ));
			else if( pItem )
			{
				pNewUserColor = rBox.GetSaveUserColor();
				if( pNewUserColor )
					pTNd->SwCntntNode::SetAttr( SvxColorItem( *pNewUserColor, RES_CHRATR_COLOR ));
				else
					pTNd->SwCntntNode::ResetAttr( RES_CHRATR_COLOR );
			}
		}
		else
		{
			// User Color merken, ggfs. die NumFormat Color setzen, aber
			// nie die Farbe zurueck setzen
			rBox.SetSaveUserColor( pNewUserColor );

			if( pCol )
				// ggfs. die Farbe setzen
				pTNd->SwCntntNode::SetAttr( SvxColorItem( *pCol, RES_CHRATR_COLOR ));

		}
		rBox.SetSaveNumFmtColor( pCol );


		// vertikale Ausrichtung umsetzen
		if( bChgAlign &&
=====================================================================
Found a 10 line (173 tokens) duplication in the following files: 
Starting at line 2607 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2667 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptActionButtonSoundVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 },	{ 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0x10 MSO_I, 0x14 MSO_I },
	{ 0xe MSO_I, 0x16 MSO_I }, { 0xa MSO_I, 0x16 MSO_I }, { 0x18 MSO_I, 8 MSO_I }, { 0x1a MSO_I, 8 MSO_I },
=====================================================================
Found a 18 line (173 tokens) duplication in the following files: 
Starting at line 846 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx

		TestData aRet, aRet2;
		aRet.Hyper = xLBT->getHyper();
		aRet.UHyper = xLBT->getUHyper();
		aRet.Float = xLBT->getFloat();
		aRet.Double = xLBT->getDouble();
		aRet.Byte = xLBT->getByte();
		aRet.Char = xLBT->getChar();
		aRet.Bool = xLBT->getBool();
		aRet.Short = xLBT->getShort();
		aRet.UShort = xLBT->getUShort();
		aRet.Long = xLBT->getLong();
		aRet.ULong = xLBT->getULong();
		aRet.Enum = xLBT->getEnum();
		aRet.String = xLBT->getString();
		aRet.Interface = xLBT->getInterface();
		aRet.Any = xLBT->getAny();
		aRet.Sequence = xLBT->getSequence();
		aRet2 = xLBT->getStruct();
=====================================================================
Found a 8 line (173 tokens) duplication in the following files: 
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN(UNO_NAME_PAGE_TOP),				WID_PAGE_TOP,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_LAYOUT), 			WID_PAGE_LAYOUT,	&::getCppuType((const sal_Int16*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP),		WID_PAGE_LDBITMAP,	&ITYPE( awt::XBitmap),						    beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME),		WID_PAGE_LDNAME,	&::getCppuType((const OUString*)0),				beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_NUMBER),			WID_PAGE_NUMBER,	&::getCppuType((const sal_Int16*)0),			beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_ORIENTATION),		WID_PAGE_ORIENT,	&::getCppuType((const view::PaperOrientation*)0),0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_WIDTH),			WID_PAGE_WIDTH,		&::getCppuType((const sal_Int32*)0),			0,	0},
=====================================================================
Found a 14 line (173 tokens) duplication in the following files: 
Starting at line 1872 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 1916 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

									,	::getCppuType( ( const uno::Reference< embed::XRelationshipAccess >* )NULL )
									,	::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
				}
				else // if ( m_pData->m_nStorageType == ZIP_STORAGE )
				{
					m_pData->m_pTypeCollection = new ::cppu::OTypeCollection
									(	::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XInputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XOutputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XSeekable >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XTruncate >* )NULL )
									,	::getCppuType( ( const uno::Reference< lang::XComponent >* )NULL )
									,	::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
=====================================================================
Found a 13 line (173 tokens) duplication in the following files: 
Starting at line 1842 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 1892 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

			{
				if ( m_pData->m_nStorageType == PACKAGE_STORAGE )
				{
					m_pData->m_pTypeCollection = new ::cppu::OTypeCollection
									(	::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XInputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XOutputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XSeekable >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XTruncate >* )NULL )
									,	::getCppuType( ( const uno::Reference< lang::XComponent >* )NULL )
									,	::getCppuType( ( const uno::Reference< embed::XEncryptionProtectedSource >* )NULL )
									,	::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
=====================================================================
Found a 46 line (173 tokens) duplication in the following files: 
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sspellimp.cxx

		}
	}

	return nRes;
}


sal_Bool SAL_CALL 
	SpellChecker::isValid( const OUString& rWord, const Locale& rLocale, 
			const PropertyValues& rProperties ) 
		throw(IllegalArgumentException, RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );

 	if (rLocale == Locale()  ||  !rWord.getLength())
		return TRUE;

	if (!hasLocale( rLocale ))
#ifdef LINGU_EXCEPTIONS
		throw( IllegalArgumentException() );
#else
		return TRUE;
#endif

	// Get property values to be used.
	// These are be the default values set in the SN_LINGU_PROPERTIES
	// PropertySet which are overridden by the supplied ones from the
	// last argument.
	// You'll probably like to use a simplier solution than the provided
	// one using the PropertyHelper_Spell.
	PropertyHelper_Spell &rHelper = GetPropHelper();
	rHelper.SetTmpPropVals( rProperties );

	INT16 nFailure = GetSpellFailure( rWord, rLocale );
	if (nFailure != -1)
	{
		INT16 nLang = LocaleToLanguage( rLocale );
		// postprocess result for errors that should be ignored
		if (   (!rHelper.IsSpellUpperCase()  && IsUpper( rWord, nLang ))
			|| (!rHelper.IsSpellWithDigits() && HasDigits( rWord ))
			|| (!rHelper.IsSpellCapitalization()
				&&  nFailure == SpellFailure::CAPTION_ERROR)
		)
			nFailure = -1;
	}
	return nFailure == -1;
=====================================================================
Found a 9 line (173 tokens) duplication in the following files: 
Starting at line 1488 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

     41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0,  0,  0,  0,  0, // 112-127
//    p   q   r   s   t   u   v   w   x   y   z

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
=====================================================================
Found a 12 line (173 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, // a000 - a7ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a800 - afff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // b000 - b7ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // b800 - bfff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // c000 - c7ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // c800 - cfff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // d000 - d7ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // d800 - dfff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // e000 - e7ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // e800 - efff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // f000 - f7ff
    0x00, 0x00, 0x00, 0x22, 0x02, 0x23, 0x24, 0x25, // f800 - ffff
=====================================================================
Found a 6 line (173 tokens) duplication in the following files: 
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 686 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f50 - 2f5f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f60 - 2f6f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f70 - 2f7f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f80 - 2f8f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f90 - 2f9f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2fa0 - 2faf
=====================================================================
Found a 6 line (173 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18b0 - 18bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18c0 - 18cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18d0 - 18df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18e0 - 18ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18f0 - 18ff
=====================================================================
Found a 6 line (173 tokens) duplication in the following files: 
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3040 - 304f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3050 - 305f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3060 - 306f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3070 - 307f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3080 - 308f
     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
=====================================================================
Found a 6 line (173 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

	0x30a0, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x304B, 0x304B, 0x304B, 0x304B, 0x304B,  // 30A0
	0x304B, 0x304B, 0x304B, 0x304B, 0x304B, 0x3055, 0x3055, 0x3055, 0x3055, 0x3055, 0x3055, 0x3055, 0x3055, 0x3055, 0x3055, 0x305F,  // 30B0
	0x305F, 0x305F, 0x305F, 0x305F, 0x305F, 0x305F, 0x305F, 0x305F, 0x305F, 0x305F, 0x306A, 0x306A, 0x306A, 0x306A, 0x306A, 0x306F,  // 30C0
	0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x306F, 0x307E, 0x307E,  // 30D0
	0x307E, 0x307E, 0x307E, 0x3084, 0x3084, 0x3084, 0x3084, 0x3084, 0x3084, 0x3089, 0x3089, 0x3089, 0x3089, 0x3089, 0x308F, 0x308F,  // 30E0
	0x308F, 0x308F, 0x308F, 0x308F, 0x3042, 0x304B, 0x304B, 0x308F, 0x308F, 0x308F, 0x308F, 0x30FB, 0x30FC, 0x30FD, 0x30FE, 0x30FF,  // 30F0
=====================================================================
Found a 6 line (173 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18b0 - 18bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18c0 - 18cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18d0 - 18df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18e0 - 18ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18f0 - 18ff
=====================================================================
Found a 18 line (173 tokens) duplication in the following files: 
Starting at line 477 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx

		TestData aRet, aRet2;
		aRet.Hyper = xLBT->getHyper();
		aRet.UHyper = xLBT->getUHyper();
		aRet.Float = xLBT->getFloat();
		aRet.Double = xLBT->getDouble();
		aRet.Byte = xLBT->getByte();
		aRet.Char = xLBT->getChar();
		aRet.Bool = xLBT->getBool();
		aRet.Short = xLBT->getShort();
		aRet.UShort = xLBT->getUShort();
		aRet.Long = xLBT->getLong();
		aRet.ULong = xLBT->getULong();
		aRet.Enum = xLBT->getEnum();
		aRet.String = xLBT->getString();
		aRet.Interface = xLBT->getInterface();
		aRet.Any = xLBT->getAny();
		aRet.Sequence = xLBT->getSequence();
		aRet2 = xLBT->getStruct();
=====================================================================
Found a 18 line (173 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx

		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("VARCHAR"));
		aRow[2] = new ORowSetValueDecorator(DataType::VARCHAR);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)65535);
=====================================================================
Found a 37 line (173 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/DrawModelWrapper.cxx

SfxObjectShell * lcl_GetParentObjectShell( const uno::Reference< frame::XModel > & xModel )
{
    SfxObjectShell* pResult = NULL;

    try
    {
        uno::Reference< container::XChild > xChildModel( xModel, uno::UNO_QUERY );
        if ( xChildModel.is() )
        {
            uno::Reference< lang::XUnoTunnel > xParentTunnel( xChildModel->getParent(), uno::UNO_QUERY );
            if ( xParentTunnel.is() )
            {
                SvGlobalName aSfxIdent( SFX_GLOBAL_CLASSID );
                pResult = reinterpret_cast< SfxObjectShell * >(
                    xParentTunnel->getSomething( uno::Sequence< sal_Int8 >( aSfxIdent.GetByteSequence() ) ) );
            }
        }
    }
    catch( uno::Exception& )
    {
        // TODO: error handling
    }

    return pResult;
}

// this code is copied from sfx2/source/doc/objembed.cxx.  It is a workaround to
// get the reference device (e.g. printer) fromthe parent document
OutputDevice * lcl_GetParentRefDevice( const uno::Reference< frame::XModel > & xModel )
{
    SfxObjectShell * pParent = lcl_GetParentObjectShell( xModel );
    if ( pParent )
        return pParent->GetDocumentRefDev();
    return NULL;
}

} // anonymous namespace
=====================================================================
Found a 27 line (173 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

			pCppStack += sizeof( void* );
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

	 	if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))  // value
		{
			pCppArgs[nPos] = pUnoArgs[nPos] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr);
=====================================================================
Found a 43 line (172 tokens) duplication in the following files: 
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/pspgraphics.h
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salgdi.h

                                              long* pGlyphIDs,
                                              sal_uInt8* pEncoding,
                                              sal_Int32* pWidths,
                                              int nGlyphs,
                                              FontSubsetInfo& rInfo // out parameter
                                              );

    // GetFontEncodingVector: a method to get the encoding map Unicode
	// to font encoded character; this is only used for type1 fonts and
    // may return NULL in case of unknown encoding vector
    // if ppNonEncoded is set and non encoded characters (that is type1
    // glyphs with only a name) exist it is set to the corresponding
    // map for non encoded glyphs; the encoding vector contains -1
    // as encoding for these cases
    virtual const std::map< sal_Unicode, sal_Int32 >* GetFontEncodingVector( ImplFontData* pFont, const std::map< sal_Unicode, rtl::OString >** ppNonEncoded );

    // GetEmbedFontData: gets the font data for a font marked
    // embeddable by GetDevFontList or NULL in case of error
    // parameters: pFont: describes the font in question
    //             pWidths: the widths of all glyphs from char code 0 to 255
    //                      pWidths MUST support at least 256 members;
    //             rInfo: additional outgoing information
    //             pDataLen: out parameter, contains the byte length of the returned buffer
    virtual const void*	GetEmbedFontData( ImplFontData* pFont,
                                          const sal_Unicode* pUnicodes,
                                          sal_Int32* pWidths,
                                          FontSubsetInfo& rInfo,
                                          long* pDataLen );
    // frees the font data again
    virtual void			FreeEmbedFontData( const void* pData, long nDataLen );
    virtual void            GetGlyphWidths( ImplFontData* pFont,
                                            bool bVertical,
                                            std::vector< sal_Int32 >& rWidths,
                                            std::map< sal_Unicode, sal_uInt32 >& rUnicodeEnc );

    virtual BOOL                    GetGlyphBoundRect( long nIndex, Rectangle& );
    virtual BOOL                    GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );

    virtual SalLayout*              GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
    virtual void					 DrawServerFontLayout( const ServerFontLayout& );

    // Query the platform layer for control support
    virtual BOOL IsNativeControlSupported( ControlType nType, ControlPart nPart );
=====================================================================
Found a 43 line (172 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const beans::Property aDocPropertyInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory properties
            ///////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                -1,
                getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                -1,
                getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard properties
            ///////////////////////////////////////////////////////////
            ///////////////////////////////////////////////////////////
            // New properties
            ///////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DocumentModel" ) ),
=====================================================================
Found a 36 line (172 tokens) duplication in the following files: 
Starting at line 1101 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 1583 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx

					seqHandles2.realloc( nCount );
					for ( i = 0; i < nCount; i++, pData++ )
					{
						sal_Int32 nPropertiesNeeded = 1;	// position is always needed
						sal_Int32 nFlags = pData->nFlags;
						if ( nFlags & MSDFF_HANDLE_FLAGS_MIRRORED_X )
							nPropertiesNeeded++;
						if ( nFlags & MSDFF_HANDLE_FLAGS_MIRRORED_Y )
							nPropertiesNeeded++;
						if ( nFlags & MSDFF_HANDLE_FLAGS_SWITCHED )
							nPropertiesNeeded++;
						if ( nFlags & MSDFF_HANDLE_FLAGS_POLAR )
						{
							nPropertiesNeeded++;
							if ( nFlags & MSDFF_HANDLE_FLAGS_RADIUS_RANGE )
							{
								if ( pData->nRangeXMin != DEFAULT_MINIMUM_SIGNED_COMPARE )
									nPropertiesNeeded++;
								if ( pData->nRangeXMax != DEFAULT_MAXIMUM_SIGNED_COMPARE )
									nPropertiesNeeded++;
							}
						}
						else if ( nFlags & MSDFF_HANDLE_FLAGS_RANGE )
						{
							if ( pData->nRangeXMin != DEFAULT_MINIMUM_SIGNED_COMPARE )
								nPropertiesNeeded++;
							if ( pData->nRangeXMax != DEFAULT_MAXIMUM_SIGNED_COMPARE )
								nPropertiesNeeded++;
							if ( pData->nRangeYMin != DEFAULT_MINIMUM_SIGNED_COMPARE )
								nPropertiesNeeded++;
							if ( pData->nRangeYMax != DEFAULT_MAXIMUM_SIGNED_COMPARE )
								nPropertiesNeeded++;
						}

						n = 0;
						com::sun::star::beans::PropertyValues& rPropValues = seqHandles2[ i ];
=====================================================================
Found a 30 line (172 tokens) duplication in the following files: 
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx
Starting at line 549 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx

		aPoly = Polygon( aRect );
		aPoly.Rotate( aCenter, rGradient.GetAngle() );

		aPolyPoly.Replace( aPolyPoly.GetObject( 1 ), 0 );
		aPolyPoly.Replace( aPoly, 1 );

		PolyPolygon aTempPolyPoly = aPolyPoly;
		aTempPolyPoly.Clip( aClipRect );
		aDrawPolyPolyRecordHdl.Call(&aTempPolyPoly);

		// Farben aendern
		nRed   += nStepRed;
		nGreen += nStepGreen;
		nBlue  += nStepBlue;

		nRed    = MinMax( nRed,   0, 0xFF );
		nGreen  = MinMax( nGreen, 0, 0xFF );
		nBlue   = MinMax( nBlue,  0, 0xFF );
	}

	aCol = Color( (BYTE) nRed, (BYTE) nGreen, (BYTE) nBlue );
	aSetFillInBrushRecordHdl.Call(&aCol);

	aPoly = aPolyPoly.GetObject( 1 );
	if ( !aPoly.GetBoundRect().IsEmpty() )
	{
		aPoly.Clip( aClipRect );
		aDrawPolyRecordHdl.Call(&aPoly);
	}
}
=====================================================================
Found a 25 line (172 tokens) duplication in the following files: 
Starting at line 896 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 977 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

ScXMLChangeDeletionContext::ScXMLChangeDeletionContext(  ScXMLImport& rImport,
											  USHORT nPrfx,
				   	  						  const ::rtl::OUString& rLName,
									  		const uno::Reference<xml::sax::XAttributeList>& xAttrList,
											ScXMLChangeTrackingImportHelper* pTempChangeTrackingImportHelper ) :
	SvXMLImportContext( rImport, nPrfx, rLName ),
	pChangeTrackingImportHelper(pTempChangeTrackingImportHelper)
{
    sal_uInt32 nID(0);
	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
				nID = pChangeTrackingImportHelper->GetIDFromString(sValue);
		}
	}
	pChangeTrackingImportHelper->AddDeleted(nID);
=====================================================================
Found a 12 line (172 tokens) duplication in the following files: 
Starting at line 1690 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1751 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                  "\x1B(B"),
              { 0x2460,0x2461,0x2462,0x2463,0x2464,0x2465,0x2466,0x2467,0x2468,
                0x2469,0x246A,0x246B,0x246C,0x246D,0x246E,0x246F,0x2470,0x2471,
                0x2472,0x2473,0x2160,0x2161,0x2162,0x2163,0x2164,0x2165,0x2166,
                0x2167,0x2168,0x2169,0x3349,0x3314,0x3322,0x334D,0x3318,0x3327,
                0x3303,0x3336,0x3351,0x3357,0x330D,0x3326,0x3323,0x332B,0x334A,
                0x333B,0x339C,0x339D,0x339E,0x338E,0x338F,0x33C4,0x33A1,0x337B,
                0x301D,0x301F,0x2116,0x33CD,0x2121,0x32A4,0x32A5,0x32A6,0x32A7,
                0x32A8,0x3231,0x3232,0x3239,0x337E,0x337D,0x337C,0x2252,0x2261,
                0x222B,0x222E,0x2211,0x221A,0x22A5,0x2220,0x221F,0x22BF,0x2235,
                0x2229,0x222A },
              83,
=====================================================================
Found a 49 line (172 tokens) duplication in the following files: 
Starting at line 1777 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT8 );
			::osl::SocketAddr saLocalSocketAddr;
			
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);

			sal_Bool bOK1 = sSocket.bind( saBindSocketAddr );
			::rtl::OUString suError1 = ::rtl::OUString::createFromAscii("Socket bind fail:") + sSocket.getErrorAsString();
			CPPUNIT_ASSERT_MESSAGE( suError1, sal_True == bOK1 );
			
			sSocket.getLocalAddr( saLocalSocketAddr );
			
			sal_Bool bOK = compareUString( saLocalSocketAddr.getHostname( 0 ), sSocket.getLocalHost() ) ;
	
			CPPUNIT_ASSERT_MESSAGE( "test for getLocalAddr function: first create a new socket, then a socket address, bind them, and check the address.", 
									sal_True == bOK );
		}
	
		
		CPPUNIT_TEST_SUITE( getLocalAddr );
		CPPUNIT_TEST( getLocalAddr_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class getLocalAddr

	
	/** testing the method:
		inline sal_Int32	SAL_CALL getLocalPort() const;
	*/
	
	class getLocalPort : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
		void getLocalPort_001()
		{
			::osl::Socket sSocket(sHandle);
			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT7 );  // aHostIp1 localhost
=====================================================================
Found a 54 line (172 tokens) duplication in the following files: 
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/pipe.c
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/pipe.c

	return (nBytes);
}

sal_Int32 SAL_CALL osl_writePipe( oslPipe pPipe, const void *pBuffer , sal_Int32 n )
{
	/* loop until all desired bytes were send or an error occured */
	sal_Int32 BytesSend= 0;
	sal_Int32 BytesToSend= n;

	OSL_ASSERT(pPipe);
	while (BytesToSend > 0) 
	{
		sal_Int32 RetVal;

		RetVal= osl_sendPipe(pPipe, pBuffer, BytesToSend);

		/* error occured? */
		if(RetVal <= 0)
		{
			break;
		}

		BytesToSend -= RetVal;
		BytesSend += RetVal;
		pBuffer= (sal_Char*)pBuffer + RetVal;
	}

	return BytesSend;   
}

sal_Int32 SAL_CALL osl_readPipe( oslPipe pPipe, void *pBuffer , sal_Int32 n )
{
	/* loop until all desired bytes were read or an error occured */
	sal_Int32 BytesRead= 0;
	sal_Int32 BytesToRead= n;

	OSL_ASSERT( pPipe );
	while (BytesToRead > 0) 
	{
		sal_Int32 RetVal;
		RetVal= osl_receivePipe(pPipe, pBuffer, BytesToRead);

		/* error occured? */
		if(RetVal <= 0)
		{
			break;
		}

		BytesToRead -= RetVal;
		BytesRead += RetVal;
		pBuffer= (sal_Char*)pBuffer + RetVal;
	}
	return BytesRead;
}
=====================================================================
Found a 31 line (172 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/javaunohelper/source/javaunohelper.cxx
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/javaunohelper/source/javaunohelper.cxx

	jobject joSLL_cpp = 0;
	
	oslModule lib = osl_loadModule( aLibName.pData, SAL_LOADMODULE_LAZY | SAL_LOADMODULE_GLOBAL );
	if (lib)
	{
		// ========================= LATEST VERSION =========================
		OUString aGetEnvName( RTL_CONSTASCII_USTRINGPARAM(COMPONENT_GETENV) );
		oslGenericFunction pSym =
            osl_getFunctionSymbol( lib, aGetEnvName.pData );
		if (pSym)
		{
			Environment java_env, loader_env;
            
			const sal_Char * pEnvTypeName = 0;
			(*((component_getImplementationEnvironmentFunc)pSym))(
                &pEnvTypeName, (uno_Environment **)&loader_env );

            if (! loader_env.is())
            {
                OUString aEnvTypeName( OUString::createFromAscii( pEnvTypeName ) );
				uno_getEnvironment( (uno_Environment **)&loader_env, aEnvTypeName.pData, 0 );
            }
            
            // create vm access
            ::rtl::Reference< ::jvmaccess::UnoVirtualMachine > vm_access(
                ::javaunohelper::create_vm_access( pJEnv, loader ) );
            OUString java_env_name = OUSTR(UNO_LB_JAVA);
            uno_getEnvironment(
                (uno_Environment **)&java_env, java_env_name.pData, vm_access.get() );
			
			OUString aGetFactoryName( RTL_CONSTASCII_USTRINGPARAM(COMPONENT_GETFACTORY) );
=====================================================================
Found a 49 line (172 tokens) duplication in the following files: 
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ipbm/ipbm.cxx
Starting at line 476 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ipbm/ipbm.cxx

					nRGB[ 0 ] = nRGB[ 1 ] = nRGB[ 2 ] = 0;
					if ( nWidth == mnWidth )
					{
						nWidth = 0;
						if ( ++nHeight == mnHeight )
							bFinished = TRUE;
						ImplCallback( (USHORT) ( ( 100 * nHeight ) / mnHeight ) );	// processing output in percent
					}
					continue;
				}

				if ( mpPBM->IsEof() || mpPBM->GetError() )
					return FALSE;

				*mpPBM >> nDat;

				if ( nDat == '#' )
				{
					mbRemark = TRUE;
					if ( bPara )
					{
						bPara = FALSE;
						nCount++;
					}
					continue;
				}
				else if ( ( nDat == 0x0d ) || ( nDat == 0x0a ) )
				{
					mbRemark = FALSE;
					if ( bPara )
					{
						bPara = FALSE;
						nCount++;
					}
					continue;
				}

				if ( nDat == 0x20 || nDat == 0x09 )
				{
					if ( bPara )
					{
						bPara = FALSE;
						nCount++;
					}
					continue;
				}
				if ( nDat >= '0' && nDat <= '9' )
				{
					bPara = TRUE;
=====================================================================
Found a 34 line (172 tokens) duplication in the following files: 
Starting at line 1765 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/bibliography/datman.cxx
Starting at line 1810 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/bibliography/datman.cxx

void BibDataManager::RemoveMeAsUidListener()
{
try
{
	Reference< XNameAccess >  xFields = getColumns( m_xForm );
	if (!xFields.is())
		return;


	Sequence< ::rtl::OUString > aFields(xFields->getElementNames());
	const ::rtl::OUString* pFields = aFields.getConstArray();
	sal_Int32 nCount=aFields.getLength();
	String StrUID(C2S(STR_UID));
	::rtl::OUString theFieldName;
	for( sal_Int32 i=0; i<nCount; i++ )
	{
		String aName= pFields[i];

		if(aName.EqualsIgnoreCaseAscii(StrUID))
		{
			theFieldName=pFields[i];
			break;
		}
	}

	if(theFieldName.getLength()>0)
	{
		Reference< XPropertySet >  xPropSet;
		Any aElement;

		aElement = xFields->getByName(theFieldName);
		xPropSet = *(Reference< XPropertySet > *)aElement.getValue();

		xPropSet->removePropertyChangeListener(FM_PROP_VALUE, this);
=====================================================================
Found a 64 line (172 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/workbench/XTDo.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/clipboardwben/testcopy/XTDataObject.cxx

CXTDataObject::~CXTDataObject( )
{
}

//------------------------------------------------------------------------
// IUnknown->QueryInterface
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::QueryInterface( REFIID iid, LPVOID* ppvObject )
{	
	OSL_ASSERT( NULL != ppvObject );

	if ( NULL == ppvObject )
		return E_INVALIDARG;

	HRESULT hr = E_NOINTERFACE;

	*ppvObject = NULL;

	if ( ( __uuidof( IUnknown ) == iid ) || ( __uuidof( IDataObject ) == iid ) )
	{
		*ppvObject = static_cast< IUnknown* >( this );
		( (LPUNKNOWN)*ppvObject )->AddRef( );
		hr = S_OK;
	}

	return hr;
}

//------------------------------------------------------------------------
// IUnknown->AddRef
//------------------------------------------------------------------------

STDMETHODIMP_(ULONG) CXTDataObject::AddRef( )
{
	return static_cast< ULONG >( InterlockedIncrement( &m_nRefCnt ) );
}

//------------------------------------------------------------------------
// IUnknown->Release
//------------------------------------------------------------------------

STDMETHODIMP_(ULONG) CXTDataObject::Release( )
{
	// we need a helper variable because it's
	// not allowed to access a member variable
	// after an object is destroyed
	ULONG nRefCnt = static_cast< ULONG >( InterlockedDecrement( &m_nRefCnt ) );

	if ( 0 == nRefCnt )
	{		
		delete this;
	}

	return nRefCnt;
}

//------------------------------------------------------------------------
// IDataObject->GetData
// warning: 'goto' ahead (to easy error handling without using exceptions)
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::GetData(LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium )
{	
=====================================================================
Found a 31 line (171 tokens) duplication in the following files: 
Starting at line 415 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_aa.h
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_bin.h

                        unsigned(m_scanlines[i].num_spans) * sizeof(int16) * 2; // X, span_len
            }
            return size;
        }


        //---------------------------------------------------------------
        static void write_int16(int8u* dst, int16 val)
        {
            dst[0] = ((const int8u*)&val)[0];
            dst[1] = ((const int8u*)&val)[1];
        }


        //---------------------------------------------------------------
        void serialize(int8u* data) const
        {
            unsigned i;

            write_int16(data, int16u(min_x())); // min_x
            data += sizeof(int16u);
            write_int16(data, int16u(min_y())); // min_y
            data += sizeof(int16u);
            write_int16(data, int16u(max_x())); // max_x
            data += sizeof(int16u);
            write_int16(data, int16u(max_y())); // max_y
            data += sizeof(int16u);

            for(i = 0; i < m_scanlines.size(); ++i)
            {
                const scanline_data& sl_this = m_scanlines[i];
=====================================================================
Found a 28 line (171 tokens) duplication in the following files: 
Starting at line 720 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_outline_aa.h
Starting at line 1077 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_outline_aa.h

                while(--base_type::m_step >= -base_type::m_max_extent);
            }
            else
            {
                do
                {
                    --base_type::m_li;
                    base_type::m_x -= lp.inc;
                    base_type::m_y = (base_type::m_lp->y1 + base_type::m_li.y()) >> line_subpixel_shift;

                    if(lp.inc > 0) m_di.dec_x(base_type::m_y - base_type::m_old_y);
                    else           m_di.inc_x(base_type::m_y - base_type::m_old_y);

                    base_type::m_old_y = base_type::m_y;

                    dist1_start = dist2_start = m_di.dist_start(); 

                    int dy = 0;
                    if(dist1_start < 0) ++npix;
                    do
                    {
                        dist1_start -= m_di.dx_start();
                        dist2_start += m_di.dx_start();
                        if(dist1_start < 0) ++npix;
                        if(dist2_start < 0) ++npix;
                        ++dy;
                    }
                    while(base_type::m_dist[dy] <= base_type::m_width);
=====================================================================
Found a 29 line (171 tokens) duplication in the following files: 
Starting at line 1569 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx
Starting at line 1632 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

sal_Bool SvXMLUnitConverter::convertPosition3D( drawing::Position3D& rPosition,
    const OUString& rValue )
{
    if(!rValue.getLength() || rValue[0] != '(')
        return sal_False;

    sal_Int32 nPos(1L);
    sal_Int32 nFound = rValue.indexOf(sal_Unicode(' '), nPos);

    if(nFound == -1 || nFound <= nPos)
        return sal_False;

    OUString aContentX = rValue.copy(nPos, nFound - nPos);

    nPos = nFound + 1;
    nFound = rValue.indexOf(sal_Unicode(' '), nPos);

    if(nFound == -1 || nFound <= nPos)
        return sal_False;

    OUString aContentY = rValue.copy(nPos, nFound - nPos);

    nPos = nFound + 1;
    nFound = rValue.indexOf(sal_Unicode(')'), nPos);

    if(nFound == -1 || nFound <= nPos)
        return sal_False;

    OUString aContentZ = rValue.copy(nPos, nFound - nPos);
=====================================================================
Found a 15 line (171 tokens) duplication in the following files: 
Starting at line 499 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx
Starting at line 600 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

    BYTE* pDataAdr = aArr1 + 5;
    Set_UInt32( pDataAdr, nDataStt );

    pChpPlc->AppendFkpEntry(Strm().Tell(),
                sizeof( aArr1 ), aArr1 );

    static const sal_uInt8 aComboData1[] =
    {
        0,0,0,0,        // len of struct
        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
=====================================================================
Found a 30 line (171 tokens) duplication in the following files: 
Starting at line 1292 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/itrcrsr.cxx
Starting at line 1337 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/itrcrsr.cxx

		nWidth = pPor->Width();
        if ( pCurr->IsSpaceAdd() || pKanaComp )
		{
			if ( pPor->InSpaceGrp() && nSpaceAdd )
			{
				((SwTxtSizeInfo&)GetInfo()).SetIdx( nCurrStart );
				nWidth += USHORT( pPor->CalcSpacing( nSpaceAdd, GetInfo() ) );
			}

            if( ( pPor->InFixMargGrp() && ! pPor->IsMarginPortion() ) ||
                ( pPor->IsMultiPortion() && ((SwMultiPortion*)pPor)->HasTabulator() )
              )
			{
                if ( pCurr->IsSpaceAdd() )
                {
                    if ( ++nSpaceIdx < pCurr->GetLLSpaceAddCount() )
                        nSpaceAdd = pCurr->GetLLSpaceAdd( nSpaceIdx );
                    else
                        nSpaceAdd = 0;
                }

                if ( pKanaComp )
                {
                    if( nKanaIdx + 1 < pKanaComp->Count() )
                        nKanaComp = (*pKanaComp)[++nKanaIdx];
                    else
                        nKanaComp = 0;
                }
			}
		}
=====================================================================
Found a 44 line (171 tokens) duplication in the following files: 
Starting at line 6005 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx
Starting at line 871 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par.cxx

									DFF_Prop_cropFromRight, 0 );

		UINT32 nLineFlags = GetPropertyValue( DFF_Prop_fNoLineDrawDash );
		pImpRec->eLineStyle = (nLineFlags & 8)
							? (MSO_LineStyle)GetPropertyValue(
												DFF_Prop_lineStyle,
												mso_lineSimple )
							: (MSO_LineStyle)USHRT_MAX;
		pTextImpRec->eLineStyle = pImpRec->eLineStyle;

		if( pImpRec->nShapeId )
		{
			// Import-Record-Liste ergaenzen
			if( pOrgObj )
			{
				pImpRec->pObj = pOrgObj;
				rImportData.aRecords.Insert( pImpRec );
			}

			if( pTextObj && (pOrgObj != pTextObj) )
			{
				// Modify ShapeId (must be unique)
				pImpRec->nShapeId |= 0x8000000;
				pTextImpRec->pObj = pTextObj;
				rImportData.aRecords.Insert( pTextImpRec );
			}

			// Eintrag in Z-Order-Liste um Zeiger auf dieses Objekt ergaenzen
			/*Only store objects which are not deep inside the tree*/
			if( ( rObjData.nCalledByGroup == 0 )
				||
				( (rObjData.nSpFlags & SP_FGROUP)
				 && (rObjData.nCalledByGroup < 2) )
			  )
				StoreShapeOrder( pImpRec->nShapeId,
								( ( (ULONG)pImpRec->aTextId.nTxBxS ) << 16 )
									+ pImpRec->aTextId.nSequence, pObj );
		}
		else
			delete pImpRec;
	}

	return pObj;
}
=====================================================================
Found a 23 line (171 tokens) duplication in the following files: 
Starting at line 1498 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgctrl.cxx
Starting at line 1674 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgctrl.cxx

void FillAttrLB::SetVirtualDevice()
{
	if( aBitmap.GetSizePixel().Width() > 8 ||
		aBitmap.GetSizePixel().Height() > 8 )
	{
		aVD.DrawBitmap( Point( 0, 0 ), Size( 32, 16 ), aBitmap );
	}
	else
	{
		aVD.DrawBitmap( Point( 0, 0 ), aBitmap );
		aVD.DrawBitmap( Point( 8, 0 ), aBitmap );
		aVD.DrawBitmap( Point( 16, 0 ), aBitmap );
		aVD.DrawBitmap( Point( 24, 0 ), aBitmap );
		aVD.DrawBitmap( Point( 0, 8 ), aBitmap );
		aVD.DrawBitmap( Point( 8, 8 ), aBitmap );
		aVD.DrawBitmap( Point( 16, 8 ), aBitmap );
		aVD.DrawBitmap( Point( 24, 8 ), aBitmap );
	}
}

/************************************************************************/

void FillAttrLB::Fill( const XBitmapList* pList )
=====================================================================
Found a 42 line (171 tokens) duplication in the following files: 
Starting at line 1221 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx
Starting at line 4775 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx

			aHelpURL, aLabel, nType, bIsVisible, nStyle, xSubMenu );

        if ( bItem )
        {
            if ( nType == css::ui::ItemType::DEFAULT )
            {
				uno::Any a;
				try
				{
					a = m_xCommandToLabelMap->getByName( aCommandURL );
					bIsUserDefined = FALSE;
				}
				catch ( container::NoSuchElementException& )
				{
					bIsUserDefined = TRUE;
				}

				// If custom label not set retrieve it from the command
				// to info service
				if ( aLabel.equals( OUString() ) )
				{
					uno::Sequence< beans::PropertyValue > aPropSeq;
					if ( a >>= aPropSeq )
					{
						for ( sal_Int32 i = 0; i < aPropSeq.getLength(); i++ )
						{
							if ( aPropSeq[i].Name.equalsAscii( ITEM_DESCRIPTOR_LABEL ) )
							{
								aPropSeq[i].Value >>= aLabel;
								break;
							}
						}
					}
				}

                if ( xSubMenu.is() )
                {
					SvxConfigEntry* pEntry = new SvxConfigEntry(
						aLabel, aCommandURL, TRUE );

					pEntry->SetUserDefined( bIsUserDefined );
                    pEntry->SetHelpURL( aHelpURL );
=====================================================================
Found a 25 line (171 tokens) duplication in the following files: 
Starting at line 5044 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4615 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartDisplayVert[] =
{
	{ 3600, 0 }, { 17800, 0 }, { 21600, 10800 }, { 17800, 21600 },
	{ 3600, 21600 }, { 0, 10800 }
};
static const sal_uInt16 mso_sptFlowChartDisplaySegm[] =
{
	0x4000, 0x0001, 0xa702, 0x0002, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartDisplayTextRect[] = 
{
	{ { 3600, 0 }, { 17800, 21600 } }
};
static const mso_CustomShape msoFlowChartDisplay =
{
	(SvxMSDffVertPair*)mso_sptFlowChartDisplayVert, sizeof( mso_sptFlowChartDisplayVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartDisplaySegm, sizeof( mso_sptFlowChartDisplaySegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartDisplayTextRect, sizeof( mso_sptFlowChartDisplayTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 25 line (171 tokens) duplication in the following files: 
Starting at line 4525 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4115 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartTerminatorVert[] =
{
	{ 3470, 21600 }, { 0, 10800 }, { 3470, 0 }, { 18130, 0 },
	{ 21600, 10800 }, { 18130, 21600 }
};
static const sal_uInt16 mso_sptFlowChartTerminatorSegm[] =
{
	0x4000, 0xa702, 0x0001, 0xa702, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartTerminatorTextRect[] = 
{
	{ { 1060, 3180 }, { 20540, 18420 } }
};
static const mso_CustomShape msoFlowChartTerminator =
{
	(SvxMSDffVertPair*)mso_sptFlowChartTerminatorVert, sizeof( mso_sptFlowChartTerminatorVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartTerminatorSegm, sizeof( mso_sptFlowChartTerminatorSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartTerminatorTextRect, sizeof( mso_sptFlowChartTerminatorTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 28 line (171 tokens) duplication in the following files: 
Starting at line 478 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/imap2.cxx
Starting at line 683 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/imap2.cxx

Point ImageMap::ImpReadNCSACoords( const char** ppStr )
{
	String	aStrX;
	String	aStrY;
	Point	aPt;
	char	cChar = *(*ppStr)++;

	while( NOTEOL( cChar ) && ( ( cChar < '0' ) || ( cChar > '9' ) ) )
		cChar = *(*ppStr)++;

	if ( NOTEOL( cChar ) )
	{
		while( NOTEOL( cChar ) && ( cChar >= '0' ) && ( cChar <= '9' ) )
		{
			aStrX += cChar;
			cChar = *(*ppStr)++;
		}

		if ( NOTEOL( cChar ) )
		{
			while( NOTEOL( cChar ) && ( ( cChar < '0' ) || ( cChar > '9' ) ) )
				cChar = *(*ppStr)++;

			while( NOTEOL( cChar ) && ( cChar >= '0' ) && ( cChar <= '9' ) )
			{
				aStrY += cChar;
				cChar = *(*ppStr)++;
			}
=====================================================================
Found a 37 line (171 tokens) duplication in the following files: 
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/pastedlg.cxx
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/pastedlg.cxx

			aTypeName = aDesc.maTypeName;
		}

		if( !aTypeName.Len() && !aSourceName.Len() )
			aSourceName = String( ResId( STR_UNKNOWN_SOURCE, *SOAPP->GetResMgr() ) );
	}

	pDlg->ObjectLB().SetUpdateMode( TRUE );
	pDlg->SelectObject();

	if( aSourceName.Len() )
	{
		if( aTypeName.Len() )
			aTypeName += '\n';

		aTypeName += aSourceName;
		aTypeName.ConvertLineEnd();
	}

	pDlg->ObjectSource().SetText( aTypeName );

	SetDefault();

	if( pDlg->Execute() )
	{
		bLink = pDlg->PasteLink().IsChecked();

		if( pDlg->AsIconBox().IsChecked() )
			nAspect = ASPECT_ICON;

		nSelFormat  = (ULONG)pDlg->ObjectLB().GetEntryData( pDlg->ObjectLB().GetSelectEntryPos() );
	}

	delete pDlg;

	return nSelFormat;
}
=====================================================================
Found a 39 line (171 tokens) duplication in the following files: 
Starting at line 382 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/registerextensions.cxx
Starting at line 488 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/registerextensions.cxx

extern "C" UINT __stdcall RemoveExtensions(MSIHANDLE handle)
{
    std::_tstring mystr;

    // Finding the product with the help of the propery FINDPRODUCT,
    // that contains a Windows Registry key, that points to the install location.

    TCHAR szValue[8192];
    DWORD nValueSize = sizeof(szValue);
    HKEY  hKey;
    std::_tstring sInstDir;
    
    std::_tstring sProductKey = GetMsiProperty( handle, TEXT("FINDPRODUCT") );
    // MessageBox( NULL, sProductKey.c_str(), "Titel", MB_OK );
    
    if ( ERROR_SUCCESS == RegOpenKey( HKEY_CURRENT_USER,  sProductKey.c_str(), &hKey ) )
    {
        if ( ERROR_SUCCESS == RegQueryValueEx( hKey, TEXT("INSTALLLOCATION"), NULL, NULL, (LPBYTE)szValue, &nValueSize ) )
        {
            sInstDir = szValue;
        }
        RegCloseKey( hKey );
    }
    else if ( ERROR_SUCCESS == RegOpenKey( HKEY_LOCAL_MACHINE,  sProductKey.c_str(), &hKey ) )
    {
        if ( ERROR_SUCCESS == RegQueryValueEx( hKey, TEXT("INSTALLLOCATION"), NULL, NULL, (LPBYTE)szValue, &nValueSize ) )
        {
            sInstDir = szValue;
        }
        RegCloseKey( hKey );
    }
    else
    {
        return ERROR_SUCCESS;
    }

    // Removing complete directory "share\uno_packages\cache"

    std::_tstring sCacheDir = sInstDir + TEXT("share\\uno_packages\\cache");
=====================================================================
Found a 34 line (171 tokens) duplication in the following files: 
Starting at line 637 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/ViewShellManager.cxx
Starting at line 711 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/ViewShellManager.cxx

void ViewShellManager::Implementation::DeactivateShell (const SfxShell& rShell)
{
    ::osl::MutexGuard aGuard (maMutex);

    ActiveShellList::iterator iShell (::std::find_if (
        maActiveViewShells.begin(),
        maActiveViewShells.end(),
        IsShell(&rShell)));
    if (iShell != maActiveViewShells.end())
    {
        UpdateLock aLocker (*this);

        ShellDescriptor aDescriptor(*iShell);
        mrBase.GetDocShell()->Disconnect(dynamic_cast<ViewShell*>(aDescriptor.mpShell));
        maActiveViewShells.erase(iShell);
        TakeShellsFromStack(aDescriptor.mpShell);

        // Deactivate sub shells.
        SubShellList::iterator iList (maActiveSubShells.find(&rShell));
        if (iList != maActiveSubShells.end())
        {
            SubShellSubList& rList (iList->second);
            while ( ! rList.empty())
                DeactivateSubShell(rShell, rList.front().mnId);
        }

        DestroyViewShell(aDescriptor);
    }
}




void ViewShellManager::Implementation::ActivateSubShell (
=====================================================================
Found a 22 line (171 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleTableBase.cxx
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleTableBase.cxx

sal_Int32 SAL_CALL ScAccessibleTableBase::getAccessibleColumnExtentAt( sal_Int32 nRow, sal_Int32 nColumn )
    throw (uno::RuntimeException, lang::IndexOutOfBoundsException)
{
	ScUnoGuard aGuard;
    IsObjectValid();

    if ((nColumn > (maRange.aEnd.Col() - maRange.aStart.Col())) || (nColumn < 0) ||
        (nRow > (maRange.aEnd.Row() - maRange.aStart.Row())) || (nRow < 0))
        throw lang::IndexOutOfBoundsException();

    sal_Int32 nCount(1); // the same cell
	nRow += maRange.aStart.Row();
	nColumn += maRange.aStart.Col();

	if (mpDoc)
	{
		SCROW nEndRow(0);
        SCCOL nEndCol(0);
		if (mpDoc->ExtendMerge(static_cast<SCCOL>(nColumn), static_cast<SCROW>(nRow),
			nEndCol, nEndRow, maRange.aStart.Tab()))
        {
		    if (nEndCol > nColumn)
=====================================================================
Found a 63 line (171 tokens) duplication in the following files: 
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_AcceptorSocket.cxx
Starting at line 3381 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

			AcceptorThread myAcceptorThread( asSocketAssign, aHostIp1 );
			myAcceptorThread.create();
			
			thread_sleep( 1 );
			//when accepting, assign another socket to the socket, the thread will not be closed, so is blocking
			asSocketAssign = asSocket;
			
			t_print("#asSocketAssign port number is %d\n", asSocketAssign.getLocalPort() );
			
			asSocketAssign.shutdown();
			myAcceptorThread.join();
						
			CPPUNIT_ASSERT_MESSAGE( "test for close when is accepting: the socket will quit accepting status.", 
								myAcceptorThread.isOK()	== sal_True );
			
			
#endif /* LINUX */
		}
		
			
		CPPUNIT_TEST_SUITE( operator_assign  );
		CPPUNIT_TEST( assign_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class operator_assign
#endif
	
	/** testing the method:
		inline sal_Bool SAL_CALL listen(sal_Int32 MaxPendingConnections= -1);
		inline oslSocketResult SAL_CALL acceptConnection( StreamSocket& Connection);
		inline oslSocketResult SAL_CALL acceptConnection( StreamSocket&	Connection, SocketAddr & PeerAddr);
	*/

	class listen_accept : public CppUnit::TestFixture
	{
	public:
		TimeValue *pTimeout;
		::osl::AcceptorSocket asAcceptorSocket;
		::osl::ConnectorSocket csConnectorSocket;
		
		
		// initialization
		void setUp( )
		{
			pTimeout  = ( TimeValue* )malloc( sizeof( TimeValue ) );
			pTimeout->Seconds = 3;
			pTimeout->Nanosec = 0;
			asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1);
		//	sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			free( pTimeout );
		//	sHandle = NULL;
			asAcceptorSocket.close( );
			csConnectorSocket.close( );
		}

	
		void listen_accept_001()
		{
			::osl::SocketAddr saLocalSocketAddr( aHostIp1, IP_PORT_MYPORT3 );
=====================================================================
Found a 38 line (171 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx

        }
    }
    if (!bRt)
        return false;

    // init m_sLD_LIBRARY_PATH
    OSL_ASSERT(m_sHome.getLength());
    size = 0;
    char const * const * arLDPaths = getLibraryPaths( & size);
    vector<OUString> ld_paths = getVectorFromCharArray(arLDPaths, size);

    char arSep[]= {SAL_PATHSEPARATOR, 0};
    OUString sPathSep= OUString::createFromAscii(arSep);
    bool bLdPath = true;
    int c = 0;
    for(i_path il = ld_paths.begin(); il != ld_paths.end(); il ++, c++)
    {
        OUString usAbsUrl= m_sHome + *il;
        // convert to system path
        OUString usSysPath;
        if(File::getSystemPathFromFileURL(usAbsUrl, usSysPath) == File::E_None)
        {

            if(c > 0)
                m_sLD_LIBRARY_PATH+= sPathSep;
            m_sLD_LIBRARY_PATH+= usSysPath;
        }
        else
        {
            bLdPath = false;
            break;
        }
    }
    if (bLdPath == false)
        return false;
    
    return true;
}
=====================================================================
Found a 7 line (171 tokens) duplication in the following files: 
Starting at line 1278 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30a0 - 30af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30b0 - 30bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30c0 - 30cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30e0 - 30ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0,// 30f0 - 30ff
=====================================================================
Found a 7 line (171 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 701 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    19, 4, 4, 4, 4, 4,27,27,10,10,10, 0, 0, 0,27,27,// 3030 - 303f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3040 - 304f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3050 - 305f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3060 - 306f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3070 - 307f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3080 - 308f
     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
=====================================================================
Found a 6 line (171 tokens) duplication in the following files: 
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1450 - 145f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1460 - 146f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1470 - 147f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1480 - 148f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1490 - 149f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14a0 - 14af
=====================================================================
Found a 8 line (171 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 8, 8, 0, 0, 0, 0, 0, 0, 0, 5, 0,// 0cd0 - 0cdf
     5, 5, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,// 0ce0 - 0cef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0cf0 - 0cff

     0, 0, 8, 8, 0, 5, 5, 5, 5, 5, 5, 5, 5, 0, 5, 5,// 0d00 - 0d0f
     5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0d10 - 0d1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 5, 5, 5, 5, 5, 5,// 0d20 - 0d2f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 8, 8,// 0d30 - 0d3f
=====================================================================
Found a 7 line (171 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1390 - 139f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13a0 - 13af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13b0 - 13bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13c0 - 13cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13d0 - 13df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 13e0 - 13ef
     5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 13f0 - 13ff
=====================================================================
Found a 4 line (171 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0098 - 009f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 00a0 - 00a7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 00a8 - 00af
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0xf5, 0x0005}, {0x00, 0x0000}, {0x00, 0x0000}, // 00b0 - 00b7
=====================================================================
Found a 24 line (171 tokens) duplication in the following files: 
Starting at line 1237 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx
Starting at line 1310 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx
Starting at line 1408 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx

        css::uno::Sequence< ::rtl::OUString > lNames = m_aData.pFilterCache->getAllContentHandlerNames();
        css::uno::Sequence< ::rtl::OUString > lEncNames ( lNames )                              ;
        sal_Int32                             nCount = lNames.getLength()                       ;
        sal_Int32                             nItem  = 0                                        ;

        XCDGenerator::impl_orderAlphabetical( lNames );

        if( m_aData.nVersionOutput == 6 && m_aData.nVersionInput < 6 )
        {
            ::rtl::OUString sName   ;
            ::rtl::OUString sEncName;
            for( nItem=0; nItem<nCount; ++nItem )
            {
                sName            = lNames[nItem]              ;
                lEncNames[nItem] = impl_encodeSetName( sName );

                m_aData.sNew2OldSCPStandard.appendAscii ( "org.openoffice.Office."  );
                m_aData.sNew2OldSCPStandard.append      ( m_aData.sPackageStandard  );
                m_aData.sNew2OldSCPStandard.append      ( CFG_PATH_SEPERATOR        );
                m_aData.sNew2OldSCPStandard.append      ( sName                     );
                m_aData.sNew2OldSCPStandard.appendAscii ( "\torg.openoffice.Office.");
                m_aData.sNew2OldSCPStandard.append      ( m_aData.sPackageStandard  );
                m_aData.sNew2OldSCPStandard.append      ( CFG_PATH_SEPERATOR        );
                m_aData.sNew2OldSCPStandard.appendAscii ( "ContentHandler"          );
=====================================================================
Found a 31 line (171 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/menubarfactory.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/statusbarfactory.cxx

    if ( aResourceURL.indexOf( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:resource/statusbar/" ))) != 0 )
        throw IllegalArgumentException();
    else
    {
        // Identify frame and determine document based ui configuration manager/module ui configuration manager
        if ( xFrame.is() && !xConfigSource.is() )
        {
            bool bHasSettings( false );
            Reference< XModel > xModel;

            Reference< XController > xController = xFrame->getController();
            if ( xController.is() )
                xModel = xController->getModel();

            if ( xModel.is() )
            {
                Reference< XUIConfigurationManagerSupplier > xUIConfigurationManagerSupplier( xModel, UNO_QUERY );
                if ( xUIConfigurationManagerSupplier.is() )
                {
                    xCfgMgr = xUIConfigurationManagerSupplier->getUIConfigurationManager();
                    bHasSettings = xCfgMgr->hasSettings( aResourceURL );
                }
            }

            if ( !bHasSettings )
            {
                rtl::OUString aModuleIdentifier = m_xModuleManager->identify( Reference< XInterface >( xFrame, UNO_QUERY ));
                if ( aModuleIdentifier.getLength() )
                {
                    Reference< ::com::sun::star::ui::XModuleUIConfigurationManagerSupplier > xModuleCfgSupplier(
                        m_xServiceManager->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( 
=====================================================================
Found a 31 line (171 tokens) duplication in the following files: 
Starting at line 1063 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx
Starting at line 936 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/emfwr.cxx

				if( maVDev.IsLineColor() || maVDev.IsFillColor() )
				{
					Polygon aPoly;

					switch( nType )
					{
						case( META_ARC_ACTION ):
						{
							const MetaArcAction* pA = (const MetaArcAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_ARC );
						}
						break;

						case( META_PIE_ACTION ):
						{
							const MetaPieAction* pA = (const MetaPieAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_PIE );
						}
						break;

						case( META_CHORD_ACTION	):
						{
							const MetaChordAction* pA = (const MetaChordAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_CHORD );
						}
						break;
						
						case( META_POLYGON_ACTION ):
							aPoly = ( (const MetaPolygonAction*) pAction )->GetPolygon();
						break;
					}
=====================================================================
Found a 26 line (171 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx

                | IMPLEMENTS_PROPERTY_ACCESS),
            css::uno::Sequence< rtl::OUString >())
    {}

    virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const & type)
        throw (css::uno::RuntimeException);

    virtual void SAL_CALL acquire() throw () { OWeakObject::acquire(); }

    virtual void SAL_CALL release() throw () { OWeakObject::release(); }

    virtual void SAL_CALL dispose() throw (css::uno::RuntimeException) {
        cppu::PropertySetMixin< css::lang::XComponent >::dispose();
    }

    virtual void SAL_CALL addEventListener(
        css::uno::Reference< css::lang::XEventListener > const &)
        throw (css::uno::RuntimeException)
    {}

    virtual void SAL_CALL removeEventListener(
        css::uno::Reference< css::lang::XEventListener > const &)
        throw (css::uno::RuntimeException)
    {}

private:
=====================================================================
Found a 32 line (171 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HViews.cxx
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YViews.cxx

using namespace connectivity::mysql;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace dbtools;
typedef connectivity::sdbcx::OCollection OCollection_TYPE;

sdbcx::ObjectType OViews::createObject(const ::rtl::OUString& _rName)
{
	::rtl::OUString sCatalog,sSchema,sTable;
	::dbtools::qualifiedNameComponents(m_xMetaData,
										_rName,
										sCatalog, 
										sSchema, 
										sTable,
										::dbtools::eInDataManipulation);
	return new ::connectivity::sdbcx::OView(isCaseSensitive(),
							sTable,
							m_xMetaData,
							0,
							::rtl::OUString(),
							sSchema,
							sCatalog
							);
}
// -------------------------------------------------------------------------
void OViews::impl_refresh(  ) throw(RuntimeException)
{
	static_cast<OMySQLCatalog&>(m_rParent).refreshTables();
=====================================================================
Found a 46 line (171 tokens) duplication in the following files: 
Starting at line 234 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FStatement.cxx
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MStatement.cxx

}
// -------------------------------------------------------------------------
void SAL_CALL OStatement_Base::close(  ) throw(SQLException, RuntimeException)
{
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(OStatement_BASE::rBHelper.bDisposed);

	}
	dispose();
}
// -------------------------------------------------------------------------

void OStatement_Base::reset() throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);


	clearWarnings ();

	if (m_xResultSet.get().is())
		clearMyResultSet();
}
//--------------------------------------------------------------------
// clearMyResultSet
// If a ResultSet was created for this Statement, close it
//--------------------------------------------------------------------

void OStatement_Base::clearMyResultSet () throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);

    try
    {
	    Reference<XCloseable> xCloseable;
	    if ( ::comphelper::query_interface( m_xResultSet.get(), xCloseable ) )
		    xCloseable->close();
    }
    catch( const DisposedException& ) { }

    m_xResultSet = Reference< XResultSet >();
}

void OStatement_Base::createTable( )
=====================================================================
Found a 39 line (171 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NColumns.cxx
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/kab/KColumns.cxx

sdbcx::ObjectType KabColumns::createObject(const ::rtl::OUString& _rName)
{
	Reference< XResultSet > xResult = m_pTable->getConnection()->getMetaData()->getColumns(
		Any(),
		m_pTable->getSchema(),
		m_pTable->getTableName(),
		_rName);

	sdbcx::ObjectType xRet = NULL;
	if (xResult.is())
	{
		Reference< XRow > xRow(xResult,UNO_QUERY);

		while (xResult->next())
		{
			if (xRow->getString(4) == _rName)
			{
				OColumn* pRet = new OColumn(
						_rName,
						xRow->getString(6),
						xRow->getString(13),
						xRow->getInt(11),
						xRow->getInt(7),
						xRow->getInt(9),
						xRow->getInt(5),
						sal_False,
						sal_False,
						sal_False,
						sal_True);
				xRet = pRet;
				break;
			}
		}
	}

	return xRet;
}
// -------------------------------------------------------------------------
void KabColumns::impl_refresh() throw(RuntimeException)
=====================================================================
Found a 34 line (171 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

	OFlatConnection* pConnection = (OFlatConnection*)m_pConnection;
	if (pConnection->isHeaderLine())
	{
		while(bRead && !aHeaderLine.Len())
		{
			bRead = m_pFileStream->ReadByteStringLine(aHeaderLine,pConnection->getTextEncoding());
		}
	}

	// read first row
	QuotedTokenizedString aFirstLine;

	bRead = m_pFileStream->ReadByteStringLine(aFirstLine,pConnection->getTextEncoding());

	if (!pConnection->isHeaderLine() || !aHeaderLine.Len())
	{
		while(bRead && !aFirstLine.Len())
		{
			bRead = m_pFileStream->ReadByteStringLine(aFirstLine,pConnection->getTextEncoding());
		}
		// use first row as headerline because we need the number of columns
		aHeaderLine = aFirstLine;
	}
	// column count
	xub_StrLen nFieldCount = aHeaderLine.GetTokenCount(pConnection->getFieldDelimiter(),pConnection->getStringDelimiter());

	if(!m_aColumns.isValid())
		m_aColumns = new OSQLColumns();
	else
		m_aColumns->clear();

	m_aTypes.clear();
	m_aPrecisions.clear();
	m_aScales.clear();
=====================================================================
Found a 68 line (171 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BFunctions.cxx
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OFunctions.cxx

{
	T3SQLAllocHandle pODBC3SQLAllocHandle;
T3SQLConnect pODBC3SQLConnect;
T3SQLDriverConnect pODBC3SQLDriverConnect;
T3SQLBrowseConnect pODBC3SQLBrowseConnect;
T3SQLDataSources pODBC3SQLDataSources;
T3SQLDrivers pODBC3SQLDrivers; 
T3SQLGetInfo pODBC3SQLGetInfo;
T3SQLGetFunctions pODBC3SQLGetFunctions;
T3SQLGetTypeInfo pODBC3SQLGetTypeInfo;
T3SQLSetConnectAttr pODBC3SQLSetConnectAttr;
T3SQLGetConnectAttr pODBC3SQLGetConnectAttr;
T3SQLSetEnvAttr pODBC3SQLSetEnvAttr;
T3SQLGetEnvAttr pODBC3SQLGetEnvAttr;
T3SQLSetStmtAttr pODBC3SQLSetStmtAttr;
T3SQLGetStmtAttr pODBC3SQLGetStmtAttr;
//T3SQLSetDescField pODBC3SQLSetDescField;
//T3SQLGetDescField pODBC3SQLGetDescField;
//T3SQLGetDescRec pODBC3SQLGetDescRec;
//T3SQLSetDescRec pODBC3SQLSetDescRec;
T3SQLPrepare pODBC3SQLPrepare;
T3SQLBindParameter pODBC3SQLBindParameter;
//T3SQLGetCursorName pODBC3SQLGetCursorName;
T3SQLSetCursorName pODBC3SQLSetCursorName;
T3SQLExecute pODBC3SQLExecute;
T3SQLExecDirect pODBC3SQLExecDirect;
//T3SQLNativeSql pODBC3SQLNativeSql;
T3SQLDescribeParam pODBC3SQLDescribeParam;
T3SQLNumParams pODBC3SQLNumParams;
T3SQLParamData pODBC3SQLParamData;
T3SQLPutData pODBC3SQLPutData;
T3SQLRowCount pODBC3SQLRowCount;
T3SQLNumResultCols pODBC3SQLNumResultCols;
T3SQLDescribeCol pODBC3SQLDescribeCol;
T3SQLColAttribute pODBC3SQLColAttribute;
T3SQLBindCol pODBC3SQLBindCol;
T3SQLFetch pODBC3SQLFetch;
T3SQLFetchScroll pODBC3SQLFetchScroll;
T3SQLGetData pODBC3SQLGetData;
T3SQLSetPos pODBC3SQLSetPos;
T3SQLBulkOperations pODBC3SQLBulkOperations;
T3SQLMoreResults pODBC3SQLMoreResults;
//T3SQLGetDiagField pODBC3SQLGetDiagField;
T3SQLGetDiagRec pODBC3SQLGetDiagRec;
T3SQLColumnPrivileges pODBC3SQLColumnPrivileges;
T3SQLColumns pODBC3SQLColumns;
T3SQLForeignKeys pODBC3SQLForeignKeys;
T3SQLPrimaryKeys pODBC3SQLPrimaryKeys;
T3SQLProcedureColumns pODBC3SQLProcedureColumns;
T3SQLProcedures pODBC3SQLProcedures;
T3SQLSpecialColumns pODBC3SQLSpecialColumns;						
T3SQLStatistics pODBC3SQLStatistics;
T3SQLTablePrivileges pODBC3SQLTablePrivileges;
T3SQLTables pODBC3SQLTables;
T3SQLFreeStmt pODBC3SQLFreeStmt;
T3SQLCloseCursor pODBC3SQLCloseCursor;
T3SQLCancel pODBC3SQLCancel;
T3SQLEndTran pODBC3SQLEndTran;
T3SQLDisconnect pODBC3SQLDisconnect;
T3SQLFreeHandle pODBC3SQLFreeHandle;
T3SQLGetCursorName pODBC3SQLGetCursorName;
T3SQLNativeSql pODBC3SQLNativeSql;

sal_Bool LoadFunctions(oslModule pODBCso);
// -------------------------------------------------------------------------
// Dynamisches Laden der DLL/shared lib und Adressen der Funktionen besorgen:
// Liefert sal_True bei Erfolg.
sal_Bool LoadLibrary_ODBC3(::rtl::OUString &_rPath)
=====================================================================
Found a 29 line (171 tokens) duplication in the following files: 
Starting at line 460 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/cmdtools/configimport.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/cmdtools/setofficelang.cxx

static uno::Reference< uno::XInterface > createService(uno::Reference< uno::XComponentContext > const & xContext, OUString aService)
{

    uno::Reference< lang::XMultiComponentFactory > xFactory = xContext->getServiceManager();
    if (!xFactory.is())
    {
        rtl::OUStringBuffer sMsg;
        sMsg.appendAscii("Missing object ! ");
        sMsg.appendAscii("UNO context has no service manager.");

        throw uno::RuntimeException(sMsg.makeStringAndClear(),NULL);
    }

    uno::Reference< uno::XInterface > xInstance = xFactory->createInstanceWithContext(aService,xContext);
    if (!xInstance.is())
    {
        rtl::OUStringBuffer sMsg;
        sMsg.appendAscii("Missing service ! ");
        sMsg.appendAscii("Service manager can't instantiate service ");
        sMsg.append(aService).appendAscii(". ");

        throw lang::ServiceNotRegisteredException(sMsg.makeStringAndClear(),NULL);
    }
  
    return xInstance;
}

// --------------------------------------------------------------------------
static uno::Reference< lang::XMultiServiceFactory >  createProvider(uno::Reference< uno::XComponentContext > const & xContext, bool bAdmin)
=====================================================================
Found a 10 line (171 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/IndexedPropertyValuesContainer.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unomod.cxx

    virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

	// XElementAccess
    virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);

    // XServiceInfo
    virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 36 line (170 tokens) duplication in the following files: 
Starting at line 689 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_aa.h
Starting at line 472 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_bin.h

            int16 val;
            ((int8u*)&val)[0] = *m_ptr++;
            ((int8u*)&val)[1] = *m_ptr++;
            return val;
        }
       
    public:
        // Iterate scanlines interface
        //--------------------------------------------------------------------
        bool rewind_scanlines()
        {
            m_ptr = m_data;
            if(m_ptr < m_end)
            {
                m_min_x = read_int16() + m_dx; 
                m_min_y = read_int16() + m_dy;
                m_max_x = read_int16() + m_dx;
                m_max_y = read_int16() + m_dy;
                return true;
            }
            return false;
        }

        //--------------------------------------------------------------------
        int min_x() const { return m_min_x; }
        int min_y() const { return m_min_y; }
        int max_x() const { return m_max_x; }
        int max_y() const { return m_max_y; }

        //--------------------------------------------------------------------
        template<class Scanline> bool sweep_scanline(Scanline& sl)
        {
            sl.reset_spans();
            for(;;)
            {
                if(m_ptr >= m_end) return false;
=====================================================================
Found a 28 line (170 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/DlgOASISTContext.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/EventOASISTContext.cxx
Starting at line 1382 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/OOo2Oasis.cxx

		GetTransformer().GetUserDefinedActions( OOO_TAB_STOP_ACTIONS  );
	OSL_ENSURE( pActions, "go no actions" );

	Reference< XAttributeList > xAttrList( rAttrList );
	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName,
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
			if( !pMutableAttrList )
			{
				pMutableAttrList =
					new XMLMutableAttributeList( xAttrList );
				xAttrList = pMutableAttrList;
			}
			const OUString& rAttrValue = xAttrList->getValueByIndex( i );
			switch( (*aIter).second.m_nActionType )
			{
			case XML_ATACTION_RENAME:
=====================================================================
Found a 43 line (170 tokens) duplication in the following files: 
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dndevdis.cxx
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dndevdis.cxx

void SAL_CALL DNDEventDispatcher::dropActionChanged( const DropTargetDragEvent& dtde )
	throw(RuntimeException)
{
	MutexGuard aImplGuard( m_aMutex );

	Point location( dtde.LocationX, dtde.LocationY );
	sal_Int32 nListeners;

	// find the window that is toplevel for this coordinates
	OClearableGuard aSolarGuard( Application::GetSolarMutex() );

    // because those coordinates come from outside, they must be mirrored if RTL layout is active
    if( Application::GetSettings().GetLayoutRTL() )
        m_pTopWindow->ImplMirrorFramePos( location );
	Window * pChildWindow = m_pTopWindow->ImplFindWindow( location );

	if( NULL == pChildWindow )
        pChildWindow = m_pTopWindow;

    while( pChildWindow->ImplGetClientWindow() )
        pChildWindow = pChildWindow->ImplGetClientWindow();

    if( pChildWindow->ImplHasMirroredGraphics() && !pChildWindow->IsRTLEnabled() )
        pChildWindow->ImplReMirror( location );

	aSolarGuard.clear();

	if( pChildWindow != m_pCurrentWindow )
	{
		// fire dragExit on listeners of previous window
		fireDragExitEvent( m_pCurrentWindow );

		// remember new window
		m_pCurrentWindow = pChildWindow;

		// fire dragEnter on listeners of current window
		nListeners = fireDragEnterEvent( pChildWindow, dtde.Context, dtde.DropAction, location,
			dtde.SourceActions, m_aDataFlavorList );
	}
	else
	{
		// fire dropActionChanged on listeners of current window
		nListeners = fireDropActionChangedEvent( pChildWindow, dtde.Context, dtde.DropAction, location,
=====================================================================
Found a 24 line (170 tokens) duplication in the following files: 
Starting at line 3348 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx
Starting at line 3499 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx

	if( pCntntSect )
	{
		const SwPosition* pStt = Start(),
						* pEnd = pStt == GetPoint() ? GetMark() : GetPoint();

		SwDoc* pDoc = GetDoc();
		SwPaM aPam( *pStt, *pEnd );
		SwCntntNode* pCSttNd = pStt->nNode.GetNode().GetCntntNode();
		SwCntntNode* pCEndNd = pEnd->nNode.GetNode().GetCntntNode();

		if( !pCSttNd )
		{
			// damit die Indizies der anderen Redlines nicht mitverschoben
			// werden, diese aufs Ende setzen (ist exclusive).
			const SwRedlineTbl& rTbl = pDoc->GetRedlineTbl();
			for( USHORT n = 0; n < rTbl.Count(); ++n )
			{
				SwRedline* pRedl = rTbl[ n ];
				if( pRedl->GetBound(TRUE) == *pStt )
					pRedl->GetBound(TRUE) = *pEnd;
				if( pRedl->GetBound(FALSE) == *pStt )
					pRedl->GetBound(FALSE) = *pEnd;
			}
		}
=====================================================================
Found a 25 line (170 tokens) duplication in the following files: 
Starting at line 3562 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl1.cxx
Starting at line 4078 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

Point SvImpIconView::AdjustAtGrid( const Rectangle& rCenterRect,
	const Rectangle& rBoundRect ) const
{
	Point aPos( rCenterRect.TopLeft() );
	Size aSize( rCenterRect.GetSize() );

	aPos.X() -= LROFFS_WINBORDER;
	aPos.Y() -= TBOFFS_WINBORDER;

	// align (ref ist mitte des rects)
	short nGridX = (short)((aPos.X()+(aSize.Width()/2)) / nGridDX);
	short nGridY = (short)((aPos.Y()+(aSize.Height()/2)) / nGridDY);
	aPos.X() = nGridX * nGridDX;
	aPos.Y() = nGridY * nGridDY;
	// hor. center
	aPos.X() += (nGridDX - rBoundRect.GetSize().Width() ) / 2;

	aPos.X() += LROFFS_WINBORDER;
	aPos.Y() += TBOFFS_WINBORDER;

	return aPos;
}


void SvImpIconView::SetTextMode( SvIconViewTextMode eMode, SvLBoxEntry* pEntry )
=====================================================================
Found a 22 line (170 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/javavm/javavm.cxx
Starting at line 445 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/javavm/javavm.cxx
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/javavm/javavm.cxx

void getJavaPropsFromSafetySettings(
    stoc_javavm::JVM * pjvm,
    const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
    const css::uno::Reference<css::uno::XComponentContext> &xCtx) throw(css::uno::Exception)
{
    css::uno::Reference<css::uno::XInterface> xConfRegistry =
        xSMgr->createInstanceWithContext(
            rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                              "com.sun.star.configuration.ConfigurationRegistry")),
            xCtx);
	if(!xConfRegistry.is())
        throw css::uno::RuntimeException(
            rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("javavm.cxx: couldn't get ConfigurationRegistry")), 0);

	css::uno::Reference<css::registry::XSimpleRegistry> xConfRegistry_simple(
        xConfRegistry, css::uno::UNO_QUERY);
	if(!xConfRegistry_simple.is())
        throw css::uno::RuntimeException(
            rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("javavm.cxx: couldn't get ConfigurationRegistry")), 0);

	xConfRegistry_simple->open(
        rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.Office.Java")),
=====================================================================
Found a 10 line (170 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN("HeaderText"),					WID_PAGE_HEADERTEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("IsFooterVisible"),				WID_PAGE_FOOTERVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("FooterText"),					WID_PAGE_FOOTERTEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("IsPageNumberVisible"),			WID_PAGE_PAGENUMBERVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("IsDateTimeVisible"),			WID_PAGE_DATETIMEVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("IsDateTimeFixed"),				WID_PAGE_DATETIMEFIXED, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("DateTimeText"),					WID_PAGE_DATETIMETEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("DateTimeFormat"),				WID_PAGE_DATETIMEFORMAT, &::getCppuType((const sal_Int32*)0),			0,	0},
		{0,0,0,0,0,0}
	};
=====================================================================
Found a 39 line (170 tokens) duplication in the following files: 
Starting at line 2867 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/CustomAnimationEffect.cxx
Starting at line 2981 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/CustomAnimationEffect.cxx

	sal_Int32 nTextGrouping = pTextGroup->mnTextGrouping;

	EffectSequence aEffects( pTextGroup->maEffects );
	pTextGroup->reset();

	EffectSequence::iterator aIter( aEffects.begin() );
	const EffectSequence::iterator aEnd( aEffects.end() );
	while( aIter != aEnd )
	{
		CustomAnimationEffectPtr pEffect( (*aIter++) );

		if( pEffect->getTarget().getValueType() == ::getCppuType((const ParagraphTarget*)0) )
		{
			// set correct node type
			if( pEffect->getParaDepth() < nTextGrouping )
			{
				if( fTextGroupingAuto == -1.0 )
				{
					pEffect->setNodeType( EffectNodeType::ON_CLICK );
					pEffect->setBegin( 0.0 );
				}
				else
				{
					pEffect->setNodeType( EffectNodeType::AFTER_PREVIOUS );
					pEffect->setBegin( fTextGroupingAuto );
				}
			}
			else
			{
				pEffect->setNodeType( EffectNodeType::WITH_PREVIOUS );
				pEffect->setBegin( 0.0 );
			}
		}

		pTextGroup->addEffect( pEffect );

	}
	notify_listeners();
}
=====================================================================
Found a 44 line (170 tokens) duplication in the following files: 
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertbig5hkscs.c
Starting at line 334 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/converteuctw.c

              m_pUnicodeToCns116431992PlaneOffsets;
    sal_Unicode nHighSurrogate = 0;
    sal_uInt32 nInfo = 0;
    sal_Size nConverted = 0;
    sal_Char * pDestBufPtr = pDestBuf;
    sal_Char * pDestBufEnd = pDestBuf + nDestBytes;

    if (pContext)
        nHighSurrogate
            = ((ImplUnicodeToTextContext *) pContext)->m_nHighSurrogate;

    for (; nConverted < nSrcChars; ++nConverted)
    {
        sal_Bool bUndefined = sal_True;
        sal_uInt32 nChar = *pSrcBuf++;
        if (nHighSurrogate == 0)
        {
            if (ImplIsHighSurrogate(nChar))
            {
                nHighSurrogate = (sal_Unicode) nChar;
                continue;
            }
        }
        else if (ImplIsLowSurrogate(nChar))
            nChar = ImplCombineSurrogates(nHighSurrogate, nChar);
        else
        {
            bUndefined = sal_False;
            goto bad_input;
        }

        if (ImplIsLowSurrogate(nChar) || ImplIsNoncharacter(nChar))
        {
            bUndefined = sal_False;
            goto bad_input;
        }

        if (nChar < 0x80)
            if (pDestBufPtr != pDestBufEnd)
                *pDestBufPtr++ = (sal_Char) nChar;
            else
                goto no_output;
        else
        {
=====================================================================
Found a 32 line (170 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/sal/test/unloading/samplelib1.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/sal/test/unloading/samplelib2.cxx

		OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME3)) )), UNO_QUERY);
}


// Standard UNO library interface -------------------------------------------------
extern "C" {
	void SAL_CALL component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv){
		*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
	}

	sal_Bool SAL_CALL component_writeInfo(void * pServiceManager, void * pRegistryKey) throw()
	{
		if (pRegistryKey)
		{
			try
			{
				Reference< XRegistryKey > xNewKey(
					reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
						OUString::createFromAscii( "/" IMPLNAME1 "/UNO/SERVICES" ) ) );

				xNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME1)));

				xNewKey= 
					reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
						OUString::createFromAscii( "/" IMPLNAME2 "/UNO/SERVICES" ) );

				xNewKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME2)));
				xNewKey= 
					reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
						OUString::createFromAscii( "/" IMPLNAME3 "/UNO/SERVICES" )   );

				xNewKey->createKey(OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME3)));
=====================================================================
Found a 65 line (170 tokens) duplication in the following files: 
Starting at line 2363 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 1934 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int64_Negative(
    hTestResult hRtlTestResult )
{
    sal_Bool bRes = sal_False;

    sal_Int64 inArr[36];
	sal_Int32 i;

    for (i = 0; i < 36; i++) {
        inArr[i] = -i;
    }


    bRes = c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64( kBinaryNumsStr, kBinaryNumsCount,
                                kRadixBinary, hRtlTestResult, inArr ),
            "negative Int64, kRadixBinary",
            "valueOf( negative Int64, radix 2 )"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64( kOctolNumsStr, kOctolNumsCount,
                                kRadixOctol, hRtlTestResult, inArr ),
            "negative Int64, kRadixOctol",
            "valueOf( negative Int64, radix 8 )"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64( kDecimalNumsStr, kDecimalNumsCount,
                                kRadixDecimal, hRtlTestResult, inArr ),
            "negative Int64, kRadixDecimal",
            "valueOf( negative Int64, radix 10 )"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64( kHexDecimalNumsStr, kHexDecimalNumsCount,
                                kRadixHexdecimal, hRtlTestResult, inArr ),
            "negative Int64, kRadixHexDecimal",
            "valueOf( negative Int64, radix 16 )"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64( kBase36NumsStr, kBase36NumsCount,
                                kRadixBase36, hRtlTestResult, inArr),
            "negative Int64, kRadixBase36",
            "valueOf( negative Int64, radix 36 )"
            );

    return (bRes);
}
//------------------------------------------------------------------------
// testing the method valueOf( sal_Int64 l, sal_Int32 radix )
// where radix = -5
//------------------------------------------------------------------------
sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int64_WrongRadix(
=====================================================================
Found a 10 line (170 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uicategorydescription.cxx
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unoobj.cxx

    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);

    // XElementAccess
    virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);

	// XServiceInfo
    virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 30 line (170 tokens) duplication in the following files: 
Starting at line 1124 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 937 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/emfwr.cxx

				{
					Polygon aPoly;

					switch( nType )
					{
						case( META_ARC_ACTION ):
						{
							const MetaArcAction* pA = (const MetaArcAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_ARC );
						}
						break;

						case( META_PIE_ACTION ):
						{
							const MetaPieAction* pA = (const MetaPieAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_PIE );
						}
						break;

						case( META_CHORD_ACTION	):
						{
							const MetaChordAction* pA = (const MetaChordAction*) pAction;
							aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_CHORD );
						}
						break;
						
						case( META_POLYGON_ACTION ):
							aPoly = ( (const MetaPolygonAction*) pAction )->GetPolygon();
						break;
					}
=====================================================================
Found a 19 line (170 tokens) duplication in the following files: 
Starting at line 1923 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 1965 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

	OLEVariant varCriteria[4];

	// Create SafeArray Bounds and initialize the array
	rgsabound[0].lLbound   = 0;
	rgsabound[0].cElements = sizeof varCriteria / sizeof varCriteria[0];
	psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

	sal_Int32 nPos=0;
	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
		varCriteria[nPos].setString(schemaPattern);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

	if(procedureNamePattern.toChar() != '%')
		varCriteria[nPos].setString(procedureNamePattern);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME
=====================================================================
Found a 19 line (170 tokens) duplication in the following files: 
Starting at line 1826 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 2075 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

	OLEVariant varCriteria[4];

	// Create SafeArray Bounds and initialize the array
	rgsabound[0].lLbound   = 0;
	rgsabound[0].cElements = sizeof varCriteria / sizeof varCriteria[0];
	psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

	sal_Int32 nPos=0;
	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
		varCriteria[nPos].setString(schemaPattern);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

	if(tableNamePattern.toChar() != '%')
		varCriteria[nPos].setString(tableNamePattern);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME
=====================================================================
Found a 18 line (170 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/NamedPropertyValuesContainer.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uicategorydescription.cxx

        virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
            throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

        virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
            throw (::com::sun::star::uno::RuntimeException);

        virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
            throw (::com::sun::star::uno::RuntimeException);

        // XElementAccess
        virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
            throw (::com::sun::star::uno::RuntimeException);

        virtual sal_Bool SAL_CALL hasElements()
            throw (::com::sun::star::uno::RuntimeException);

        // container.XContainerListener
        virtual void SAL_CALL     elementInserted( const ContainerEvent& aEvent ) throw(RuntimeException);
=====================================================================
Found a 54 line (170 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/codemaker/options.cxx
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/codemaker/options.cxx

using namespace rtl;

Options::Options()
{
}	

Options::~Options()
{
	
}

const OString& Options::getProgramName() const
{
	return m_program;
}	

sal_Bool Options::isValid(const OString& option)
{
	return (m_options.count(option) > 0);	
}	

const OString Options::getOption(const OString& option)
	throw( IllegalArgument )
{
	if (m_options.count(option) > 0)
	{
		return m_options[option];
	} else
	{
		throw IllegalArgument("Option is not valid or currently not set.");
	}
}

const OptionMap& Options::getOptions()
{
	return m_options;	
}	

const OString Options::getInputFile(sal_uInt16 index)
	throw( IllegalArgument )
{
	if (index < m_inputFiles.size())
	{
		return m_inputFiles[index];		
	} else
	{
		throw IllegalArgument("index is out of bound.");
	}
}	

const StringVector& Options::getInputFiles()
{
	return m_inputFiles;	
}	
=====================================================================
Found a 36 line (170 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javaoptions.cxx

					m_options["-nD"] = OString("");
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'G':
					if (av[i][2] == 'c')
=====================================================================
Found a 33 line (170 tokens) duplication in the following files: 
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxlng.cxx
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxulng.cxx

				nRes = (UINT32) ( p->nSingle + 0.5 );
			break;
		case SbxDATE:
		case SbxDOUBLE:
		case SbxLONG64:
		case SbxULONG64:
		case SbxSALINT64:
		case SbxSALUINT64:
		case SbxCURRENCY:
		case SbxDECIMAL:
		case SbxBYREF | SbxDECIMAL:
			{
			double dVal;
			if( p->eType ==	SbxCURRENCY )
				dVal = ImpCurrencyToDouble( p->nLong64 );
			else if( p->eType == SbxLONG64 )
				dVal = ImpINT64ToDouble( p->nLong64 );
			else if( p->eType == SbxULONG64 )
				dVal = ImpUINT64ToDouble( p->nULong64 );
			else if( p->eType == SbxSALINT64 )
				dVal = static_cast< double >(p->nInt64);
			else if( p->eType == SbxSALUINT64 )
				dVal = ImpSalUInt64ToDouble( p->uInt64 );
			else if( p->eType == SbxDECIMAL )
			{
				dVal = 0.0;
				if( p->pDecimal )
					p->pDecimal->getDouble( dVal );
			}
			else
				dVal = p->nDouble;

			if( dVal > SbxMAXULNG )
=====================================================================
Found a 31 line (169 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/longcurr.cxx

	nDecPos = aStr.Search( rLocaleDataWrapper.getNumDecimalSep() );

	if ( nDecPos != STRING_NOTFOUND )
	{
		aStr1 = aStr.Copy( 0, nDecPos );
		aStr2 = aStr.Copy( nDecPos+1 );
	}
	else
		aStr1 = aStr;

	// Negativ ?
	if ( bCurrency )
	{
		if ( (aStr.GetChar( 0 ) == '(') && (aStr.GetChar( aStr.Len()-1 ) == ')') )
			bNegative = TRUE;
		if ( !bNegative )
		{
			for ( i=0; i < aStr.Len(); i++ )
			{
				if ( (aStr.GetChar( i ) >= '0') && (aStr.GetChar( i ) <= '9') )
					break;
				else if ( aStr.GetChar( i ) == '-' )
				{
					bNegative = TRUE;
					break;
				}
			}
		}
		if ( !bNegative && bCurrency && aStr.Len() )
		{
			USHORT nFormat = rLocaleDataWrapper.getCurrNegativeFormat();
=====================================================================
Found a 18 line (169 tokens) duplication in the following files: 
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/dom/attributesmap.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/dom/attributesmap.cxx

    Reference< XNode > SAL_CALL CAttributesMap::removeNamedItemNS(const OUString& namespaceURI, const OUString& localName) throw (RuntimeException)
    {
        Reference< XNode > aNode;
        xmlNodePtr pNode = m_pElement->m_aNodePtr;
        if (pNode != NULL)
        {
            OString o1 = OUStringToOString(localName, RTL_TEXTENCODING_UTF8);
            xmlChar* xName = (xmlChar*)o1.getStr();
            OString o2 = OUStringToOString(namespaceURI, RTL_TEXTENCODING_UTF8);
            xmlChar* xNs = (xmlChar*)o1.getStr();
            xmlNsPtr pNs = xmlSearchNs(pNode->doc, pNode, xNs);
            xmlAttrPtr cur = pNode->properties;
            while (cur != NULL && pNs != NULL)
            {
                if( strcmp((char*)xName, (char*)cur->name) == 0 &&
                    cur->ns == pNs)
                {
                    aNode = Reference< XNode >(static_cast< CNode* >(CNode::get((xmlNodePtr)cur)));
=====================================================================
Found a 31 line (169 tokens) duplication in the following files: 
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxsystemdependentwindow.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxtopwindow.cxx

		const SystemEnvData* pSysData = ((SystemWindow *)pWindow)->GetSystemData();
		if( pSysData )
		{
#if (defined WNT)
			if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_WIN32 )
			{
				 aRet <<= (sal_Int32)pSysData->hWnd;
			}
#elif (defined OS2)
			if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_OS2 )
			{
				 aRet <<= (sal_Int32)pSysData->hWnd;
			}
#elif (defined QUARTZ)
			if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_MAC )
			{
				 aRet <<= (sal_IntPtr)pSysData->rWindow;
			}
#elif (defined UNX)
			if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_XWINDOW )
			{
				::com::sun::star::awt::SystemDependentXWindow aSD;
				aSD.DisplayPointer = sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_IntPtr >(pSysData->pDisplay));
				aSD.WindowHandle = pSysData->aWindow;
				aRet <<= aSD;
			}
#endif
		}
	}
	return aRet;
}
=====================================================================
Found a 23 line (169 tokens) duplication in the following files: 
Starting at line 756 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx
Starting at line 909 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx

			aClass = pOption->GetString();
			break;
		case HTML_O_ALT:
			aAlt = pOption->GetString();
			break;
		case HTML_O_ALIGN:
			eVertOri = (SwVertOrient)pOption->GetEnum( aHTMLImgVAlignTable, eVertOri );
			eHoriOri = (SwHoriOrient)pOption->GetEnum( aHTMLImgHAlignTable, eHoriOri );
			break;
		case HTML_O_WIDTH:
			bPrcWidth = (pOption->GetString().Search('%') != STRING_NOTFOUND);
			aSize.Width() = (long)pOption->GetNumber();
			break;
		case HTML_O_HEIGHT:
			bPrcHeight = (pOption->GetString().Search('%') != STRING_NOTFOUND);
			aSize.Height() = (long)pOption->GetNumber();
			break;
		case HTML_O_HSPACE:
			aSpace.Width() = (long)pOption->GetNumber();
			break;
		case HTML_O_VSPACE:
			aSpace.Height() = (long)pOption->GetNumber();
			break;
=====================================================================
Found a 17 line (169 tokens) duplication in the following files: 
Starting at line 970 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 886 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptLeftRightUpArrowVert[] =	// adjustment1: x 0 - 10800, adjustment2: x 0 - 10800
{																// adjustment3: y 0 - 21600
	{ 10800, 0 }, { 3 MSO_I, 2 MSO_I },	{ 4 MSO_I, 2 MSO_I }, { 4 MSO_I, 1 MSO_I },
	{ 5 MSO_I, 1 MSO_I }, { 5 MSO_I, 0 MSO_I },	{ 21600, 10800 }, { 5 MSO_I, 3 MSO_I },
	{ 5 MSO_I, 4 MSO_I }, { 2 MSO_I, 4 MSO_I },	{ 2 MSO_I, 3 MSO_I }, { 0, 10800 },
	{ 2 MSO_I, 0 MSO_I }, { 2 MSO_I, 1 MSO_I },	{ 1 MSO_I, 1 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 0 MSO_I, 2 MSO_I }
};
static const sal_uInt16 mso_sptLeftRightUpArrowSegm[] =
{
	0x4000, 0x0010, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptLeftRightUpArrowCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },				// 0
=====================================================================
Found a 15 line (169 tokens) duplication in the following files: 
Starting at line 1700 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/dispatch.cxx
Starting at line 2909 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/dispatch.cxx

	if ( pImp->pFrame )
	{
        SfxTopViewFrame* pTop= PTR_CAST( SfxTopViewFrame, pImp->pFrame->GetTopViewFrame() );
        if ( pTop && pTop->GetBindings().GetDispatcher() == this )
        {
			SfxTopFrame* pFrm = pTop->GetTopFrame_Impl();
            if ( pFrm->IsMenuBarOn_Impl() )
            {
                com::sun::star::uno::Reference < com::sun::star::beans::XPropertySet > xPropSet( pFrm->GetFrameInterface(), com::sun::star::uno::UNO_QUERY );
                if ( xPropSet.is() )
                {
                    com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > xLayoutManager;
                    com::sun::star::uno::Any aValue = xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" )));
                    aValue >>= xLayoutManager;
                    if ( xLayoutManager.is() )
=====================================================================
Found a 35 line (169 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx
Starting at line 1075 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx

				if ( xObj.is() )
				{
					svt::EmbeddedObjectRef aObjRef( xObj, aObjDesc.mnViewAspect );

					// try to get the replacement image from the clipboard
					Graphic aGraphic;
					ULONG nGrFormat = 0;
					if( aDataHelper.GetGraphic( SOT_FORMATSTR_ID_SVXB, aGraphic ) )
						nGrFormat = SOT_FORMATSTR_ID_SVXB;
					else if( aDataHelper.GetGraphic( FORMAT_GDIMETAFILE, aGraphic ) )
						nGrFormat = SOT_FORMAT_GDIMETAFILE;
					else if( aDataHelper.GetGraphic( FORMAT_BITMAP, aGraphic ) )
						nGrFormat = SOT_FORMAT_BITMAP;

					// insert replacement image ( if there is one ) into the object helper
					if ( nGrFormat )
					{
						datatransfer::DataFlavor aDataFlavor;
						SotExchange::GetFormatDataFlavor( nGrFormat, aDataFlavor );
						aObjRef.SetGraphic( aGraphic, aDataFlavor.MimeType );
					}

					Size aSize;
					if ( aObjDesc.mnViewAspect == embed::Aspects::MSOLE_ICON )
					{
                    	if( aObjDesc.maSize.Width() && aObjDesc.maSize.Height() )
							aSize = aObjDesc.maSize;
						else
						{
							MapMode aMapMode( MAP_100TH_MM );
							aSize = aObjRef.GetSize( &aMapMode );
						}
					}
					else
					{
=====================================================================
Found a 30 line (169 tokens) duplication in the following files: 
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviewsf.cxx
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlnvsh.cxx

	{
        SvtCJKOptions aCJKOptions;
		if( !aCJKOptions.IsChangeCaseMapEnabled() )
		{
            GetViewFrame()->GetBindings().SetVisibleState( SID_TRANSLITERATE_HALFWIDTH, sal_False );
            GetViewFrame()->GetBindings().SetVisibleState( SID_TRANSLITERATE_FULLWIDTH, sal_False );
            GetViewFrame()->GetBindings().SetVisibleState( SID_TRANSLITERATE_HIRAGANA, sal_False );
            GetViewFrame()->GetBindings().SetVisibleState( SID_TRANSLITERATE_KATAGANA, sal_False );
			rSet.DisableItem( SID_TRANSLITERATE_HALFWIDTH );
			rSet.DisableItem( SID_TRANSLITERATE_FULLWIDTH );
			rSet.DisableItem( SID_TRANSLITERATE_HIRAGANA );
			rSet.DisableItem( SID_TRANSLITERATE_KATAGANA );
		}
        else
        {
            GetViewFrame()->GetBindings().SetVisibleState( SID_TRANSLITERATE_HALFWIDTH, sal_True );
            GetViewFrame()->GetBindings().SetVisibleState( SID_TRANSLITERATE_FULLWIDTH, sal_True );
            GetViewFrame()->GetBindings().SetVisibleState( SID_TRANSLITERATE_HIRAGANA, sal_True );
            GetViewFrame()->GetBindings().SetVisibleState( SID_TRANSLITERATE_KATAGANA, sal_True );
        }
	}
}

/*************************************************************************
|*
|* SfxRequests fuer Support-Funktionen
|*
\************************************************************************/

void OutlineViewShell::FuSupport(SfxRequest &rReq)
=====================================================================
Found a 43 line (169 tokens) duplication in the following files: 
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertbig5hkscs.c
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertgb18030.c

              m_pUnicodeToGb18030Ranges;
    sal_Unicode nHighSurrogate = 0;
    sal_uInt32 nInfo = 0;
    sal_Size nConverted = 0;
    sal_Char * pDestBufPtr = pDestBuf;
    sal_Char * pDestBufEnd = pDestBuf + nDestBytes;

    if (pContext)
        nHighSurrogate
            = ((ImplUnicodeToTextContext *) pContext)->m_nHighSurrogate;

    for (; nConverted < nSrcChars; ++nConverted)
    {
        sal_Bool bUndefined = sal_True;
        sal_uInt32 nChar = *pSrcBuf++;
        if (nHighSurrogate == 0)
        {
            if (ImplIsHighSurrogate(nChar))
            {
                nHighSurrogate = (sal_Unicode) nChar;
                continue;
            }
        }
        else if (ImplIsLowSurrogate(nChar))
            nChar = ImplCombineSurrogates(nHighSurrogate, nChar);
        else
        {
            bUndefined = sal_False;
            goto bad_input;
        }

        if (ImplIsLowSurrogate(nChar) || ImplIsNoncharacter(nChar))
        {
            bUndefined = sal_False;
            goto bad_input;
        }

        if (nChar < 0x80)
            if (pDestBufPtr != pDestBufEnd)
                *pDestBufPtr++ = (sal_Char) nChar;
            else
                goto no_output;
        else if (nChar < 0x10000)
=====================================================================
Found a 86 line (169 tokens) duplication in the following files: 
Starting at line 2676 of /local/ooo-build/ooo-build/src/oog680-m3/regexp/orig/regex.c
Starting at line 1515 of /local/ooo-build/ooo-build/src/oog680-m3/regexp/source/reclass.cxx

	    goto unfetch_interval;
	  }

	  /* If the upper bound is zero, don't want to succeed at
	     all; jump from `laststart' to `b + 3', which will be
	     the end of the buffer after we insert the jump.  */
	  if (upper_bound == 0) {
	    GET_BUFFER_SPACE(3);
	    INSERT_JUMP(jump, laststart, b + 3);
	    b += 3;
	  }

	  /* Otherwise, we have a nontrivial interval.  When
	     we're all done, the pattern will look like:
	     set_number_at <jump count> <upper bound>
	     set_number_at <succeed_n count> <lower bound>
	     succeed_n <after jump addr> <succeed_n count>
	     <body of loop>
	     jump_n <succeed_n addr> <jump count>
	     (The upper bound and `jump_n' are omitted if
	     `upper_bound' is 1, though.)  */
	  else {
	    /* If the upper bound is > 1, we need to insert
	       more at the end of the loop.  */
	    unsigned nbytes = 10 + (upper_bound > 1) * 10;

	    GET_BUFFER_SPACE(nbytes);

	    /* Initialize lower bound of the `succeed_n', even
	       though it will be set during matching by its
	       attendant `set_number_at' (inserted next),
	       because `re_compile_fastmap' needs to know.
	       Jump to the `jump_n' we might insert below.  */
	    INSERT_JUMP2(succeed_n, laststart,
			 b + 5 + (upper_bound > 1) * 5,
			 lower_bound);
	    b += 5;

	    /* Code to initialize the lower bound.  Insert
	       before the `succeed_n'.  The `5' is the last two
	       bytes of this `set_number_at', plus 3 bytes of
	       the following `succeed_n'.  */
	    insert_op2(set_number_at, laststart, 5, lower_bound, b);
	    b += 5;

	    if (upper_bound > 1) {
				/* More than one repetition is allowed, so
				   append a backward jump to the `succeed_n'
				   that starts this interval.

				   When we've reached this during matching,
				   we'll have matched the interval once, so
				   jump back only `upper_bound - 1' times.  */
	      STORE_JUMP2(jump_n, b, laststart + 5,
			  upper_bound - 1);
	      b += 5;

				/* The location we want to set is the second
				   parameter of the `jump_n'; that is `b-2' as
				   an absolute address.  `laststart' will be
				   the `set_number_at' we're about to insert;
				   `laststart+3' the number to set, the source
				   for the relative address.  But we are
				   inserting into the middle of the pattern --
				   so everything is getting moved up by 5.
				   Conclusion: (b - 2) - (laststart + 3) + 5,
				   i.e., b - laststart.

				   We insert this at the beginning of the loop
				   so that if we fail during matching, we'll
				   reinitialize the bounds.  */
	      insert_op2(set_number_at, laststart, b - laststart,
			 upper_bound - 1, b);
	      b += 5;
	    }
	  }
	  pending_exact = 0;
	  beg_interval = NULL;
	}
	break;

      unfetch_interval:
	/* If an invalid interval, match the characters as literals.  */
	assert (beg_interval);
	p = beg_interval;
	beg_interval = NULL;
=====================================================================
Found a 25 line (169 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/ocompinstream.cxx
Starting at line 2501 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< uno::Sequence< beans::StringPair > > aResult;
	sal_Int32 nEntriesNum = 0;

	// TODO/LATER: in future the unification of the ID could be checked
	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	for ( sal_Int32 nInd1 = 0; nInd1 < aSeq.getLength(); nInd1++ )
		for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ )
			if ( aSeq[nInd1][nInd2].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Type" ) ) )
			{
				if ( aSeq[nInd1][nInd2].Second.equals( sType ) )
				{
					aResult.realloc( nEntriesNum );
					aResult[nEntriesNum-1] = aSeq[nInd1];
				}
				break;
			}

	return aResult;
}

//-----------------------------------------------
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OWriteStream::getAllRelationships()
=====================================================================
Found a 20 line (169 tokens) duplication in the following files: 
Starting at line 1499 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 1883 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

        if (partresult) strcat(presult, partresult);
	
	rv = lookup(st); // perhaps without prefix

        // search homonym with compound flag
        while ((rv) && !hu_mov_rule && 
            ((pseudoroot && TESTAFF(rv->astr, pseudoroot, rv->alen)) ||
		!((compoundflag && !words && TESTAFF(rv->astr, compoundflag, rv->alen)) ||
	        (compoundbegin && !wordnum &&
                        TESTAFF(rv->astr, compoundbegin, rv->alen)) ||
                (compoundmiddle && wordnum && !words &&
                    TESTAFF(rv->astr, compoundmiddle, rv->alen)) ||
                  (numdefcpd &&
                    ((!words && !wordnum && defcpd_check(&words, wnum, rv, (hentry **) &rwords, 0)) ||
                    (words && defcpd_check(&words, wnum, rv, (hentry **) &rwords, 0))))
                  ))) {
            rv = rv->next_homonym;
        }

        if (rv)	 {
=====================================================================
Found a 6 line (169 tokens) duplication in the following files: 
Starting at line 1083 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1109 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a70 - 0a7f
     0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a80 - 0a8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a90 - 0a9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0aa0 - 0aaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 0ab0 - 0abf
     0,17,17,17,17,17, 0,17,17, 0, 0, 0, 0,17, 0, 0,// 0ac0 - 0acf
=====================================================================
Found a 6 line (169 tokens) duplication in the following files: 
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1037 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0530 - 053f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0540 - 054f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 6 line (169 tokens) duplication in the following files: 
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 895 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 7 line (169 tokens) duplication in the following files: 
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30a0 - 30af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30b0 - 30bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30c0 - 30cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30d0 - 30df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30e0 - 30ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,22, 4, 4, 4, 0,// 30f0 - 30ff
=====================================================================
Found a 6 line (169 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3040 - 304f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3050 - 305f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3060 - 306f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3070 - 307f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3080 - 308f
     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
=====================================================================
Found a 35 line (169 tokens) duplication in the following files: 
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );
	
	// pCallStack: ret adr, [ret *], this, params
    void * pThis;
	if( nFunctionIndex & 0x80000000 )
	{
		nFunctionIndex &= 0x7fffffff;
        pThis = pCallStack[2];
	}
	else
    {
        pThis = pCallStack[1];
    }
    pThis = static_cast< char * >(pThis) - nVtableOffset;
	bridges::cpp_uno::shared::CppInterfaceProxy * pCppI
        = bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(
            pThis);
    
	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
	
	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("illegal vtable index!"),
            (XInterface *)pThis );
	}
	
	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
=====================================================================
Found a 8 line (168 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyflnk_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movefile_mask.h

static char movefile_mask_bits[] = {
   0xff, 0x01, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x3f, 0x00, 0x00,
   0xff, 0x7f, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x01, 0x00,
   0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00,
   0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x01, 0x00,
=====================================================================
Found a 8 line (168 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyfiles_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movefiles_mask.h

static char movefiles_mask_bits[] = {
   0xf0, 0x1f, 0x00, 0x00, 0xf0, 0x7f, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00,
   0xfc, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
   0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0x03, 0x00, 0xff, 0xff, 0x03, 0x00,
   0xff, 0xff, 0x03, 0x00, 0x80, 0x7f, 0x00, 0x00, 0x80, 0xff, 0x00, 0x00,
=====================================================================
Found a 8 line (168 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyfile_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movefile_mask.h

static char movefile_mask_bits[] = {
   0xff, 0x01, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00,
   0xff, 0x0f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x3f, 0x00, 0x00,
   0xff, 0x7f, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x01, 0x00,
   0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00,
   0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x01, 0x00,
=====================================================================
Found a 38 line (168 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpservices.cxx
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgservices.cxx

sal_Bool writeInfo( 
    void * pRegistryKey,
    const rtl::OUString & rImplementationName,
    uno::Sequence< rtl::OUString > const & rServiceNames )
{
	rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) );
	aKeyName += rImplementationName;
	aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" );

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}
=====================================================================
Found a 24 line (168 tokens) duplication in the following files: 
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoftn.cxx
Starting at line 415 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unosect.cxx

void SwXTextSection::attachToRange(const uno::Reference< text::XTextRange > & xTextRange)
    throw( lang::IllegalArgumentException, uno::RuntimeException )
{
    if(!m_bIsDescriptor)
        throw uno::RuntimeException();

    uno::Reference<lang::XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
    SwXTextRange* pRange = 0;
    OTextCursorHelper* pCursor = 0;
    if(xRangeTunnel.is())
    {
        pRange = (SwXTextRange*)xRangeTunnel->getSomething(
                                SwXTextRange::getUnoTunnelId());
        pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
                                OTextCursorHelper::getUnoTunnelId());
    }

    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);
        UnoActionContext aCont(pDoc);
=====================================================================
Found a 16 line (168 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/XPropertyTable.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unomtabl.cxx

    virtual uno::Sequence<  OUString > SAL_CALL getSupportedServiceNames(  ) throw( uno::RuntimeException);

	// XNameContainer
	virtual void SAL_CALL insertByName( const  OUString& aName, const  uno::Any& aElement ) throw( lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, uno::RuntimeException);
	virtual void SAL_CALL removeByName( const  OUString& Name ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);

	// XNameReplace
    virtual void SAL_CALL replaceByName( const  OUString& aName, const  uno::Any& aElement ) throw( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);

	// XNameAccess
    virtual uno::Any SAL_CALL getByName( const  OUString& aName ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);
    virtual uno::Sequence<  OUString > SAL_CALL getElementNames(  ) throw( uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const  OUString& aName ) throw( uno::RuntimeException);

	// XElementAccess
    virtual uno::Type SAL_CALL getElementType(  ) throw( uno::RuntimeException);
=====================================================================
Found a 26 line (168 tokens) duplication in the following files: 
Starting at line 3010 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxat.cxx

			if(pEdtOutl)
			{
				pEdtOutl->SetMaxAutoPaperSize(aSiz);
				if (bWdtGrow) {
					Size aSiz2(pEdtOutl->CalcTextSize());
					nWdt=aSiz2.Width()+1; // lieber etwas Tolleranz
					if (bHgtGrow) nHgt=aSiz2.Height()+1; // lieber etwas Tolleranz
				} else {
					nHgt=pEdtOutl->GetTextHeight()+1; // lieber etwas Tolleranz
				}
			} else {
				Outliner& rOutliner=ImpGetDrawOutliner();
				rOutliner.SetPaperSize(aSiz);
				rOutliner.SetUpdateMode(TRUE);
				// !!! hier sollte ich wohl auch noch mal die Optimierung mit
				// bPortionInfoChecked usw einbauen
				if ( pOutlinerParaObject != NULL )
				{
					rOutliner.SetText(*pOutlinerParaObject);
					rOutliner.SetFixedCellHeight(((const SdrTextFixedCellHeightItem&)GetMergedItem(SDRATTR_TEXT_USEFIXEDCELLHEIGHT)).GetValue());
				}
				if (bWdtGrow) {
					Size aSiz2(rOutliner.CalcTextSize());
					nWdt=aSiz2.Width()+1; // lieber etwas Tolleranz
					if (bHgtGrow) nHgt=aSiz2.Height()+1; // lieber etwas Tolleranz
				} else {
=====================================================================
Found a 26 line (168 tokens) duplication in the following files: 
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 1111 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx

void  SvxBitmapPickTabPage::ActivatePage(const SfxItemSet& rSet)
{
	const SfxPoolItem* pItem;
	bPreset = FALSE;
	BOOL bIsPreset = FALSE;
//	nActNumLvl = ((SwNumBulletTabDialog*)GetTabDialog())->GetActNumLevel();
	const SfxItemSet* pExampleSet = GetTabDialog()->GetExampleSet();
	if(pExampleSet)
	{
		if(SFX_ITEM_SET == pExampleSet->GetItemState(SID_PARAM_NUM_PRESET, FALSE, &pItem))
			bIsPreset = ((const SfxBoolItem*)pItem)->GetValue();
		if(SFX_ITEM_SET == pExampleSet->GetItemState(SID_PARAM_CUR_NUM_LEVEL, FALSE, &pItem))
			nActNumLvl = ((const SfxUInt16Item*)pItem)->GetValue();
	}
	if(SFX_ITEM_SET == rSet.GetItemState(nNumItemId, FALSE, &pItem))
	{
		delete pSaveNum;
		pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule());
	}
	if(*pSaveNum != *pActNum)
	{
		*pActNum = *pSaveNum;
		pExamplesVS->SetNoSelection();
	}
	// ersten Eintrag vorselektieren
	if(aGrfNames.Count() &&
=====================================================================
Found a 24 line (168 tokens) duplication in the following files: 
Starting at line 4598 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4185 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartManualOperationVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 17250, 21600 }, { 4350, 21600 }, { 0, 0 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartManualOperationTextRect[] = 
{
	{ { 4350, 0 }, { 17250, 21600 } }
};
static const SvxMSDffVertPair mso_sptFlowChartManualOperationGluePoints[] =
{
	{ 10800, 0 }, { 2160, 10800 }, { 10800, 21600 }, { 19440, 10800 }
};
static const mso_CustomShape msoFlowChartManualOperation =
{
	(SvxMSDffVertPair*)mso_sptFlowChartManualOperationVert, sizeof( mso_sptFlowChartManualOperationVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartManualOperationTextRect, sizeof( mso_sptFlowChartManualOperationTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartManualOperationGluePoints, sizeof( mso_sptFlowChartManualOperationGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 24 line (168 tokens) duplication in the following files: 
Starting at line 4573 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4161 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartManualInputVert[] =
{
	{ 0, 4300 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 }, { 0, 4300 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartManualInputTextRect[] = 
{
	{ { 0, 4300 }, { 21600, 21600 } }
};
static const SvxMSDffVertPair mso_sptFlowChartManualInputGluePoints[] =
{
	{ 10800, 2150 }, { 0, 10800 }, { 10800, 19890 }, { 21600, 10800 }
};
static const mso_CustomShape msoFlowChartManualInput =
{
	(SvxMSDffVertPair*)mso_sptFlowChartManualInputVert, sizeof( mso_sptFlowChartManualInputVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartManualInputTextRect, sizeof( mso_sptFlowChartManualInputTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartManualInputGluePoints, sizeof( mso_sptFlowChartManualInputGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 18 line (168 tokens) duplication in the following files: 
Starting at line 3327 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2994 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
};

static const SvxMSDffVertPair mso_sptBracePairVert[] =	// adj value 0 -> 5400
{
	{ 4 MSO_I, 0 },	{ 0 MSO_I, 1 MSO_I }, { 0 MSO_I, 6 MSO_I }, { 0 ,10800 },			// left bracket
	{ 0 MSO_I, 7 MSO_I }, { 0 MSO_I, 2 MSO_I },	{ 4 MSO_I, 21600 },
	{ 8 MSO_I, 21600 },	{ 3 MSO_I, 2 MSO_I }, { 3 MSO_I, 7 MSO_I }, { 21600, 10800 },	// right bracket
	{ 3 MSO_I, 6 MSO_I }, { 3 MSO_I, 1 MSO_I }, { 8 MSO_I, 0 }
};
static const sal_uInt16 mso_sptBracePairSegm[] =
{
	0x4000, 0xa701, 0x0001, 0xa801, 0xa701, 0x0001, 0xa801, 0x8000,
	0x4000, 0xa701, 0x0001, 0xa801, 0xa701, 0x0001, 0xa801, 0x8000
};
static const SvxMSDffCalculationData mso_sptBracePairCalc[] =
{
	{ 0x6000, DFF_Prop_geoLeft, DFF_Prop_adjustValue, 0 },
=====================================================================
Found a 23 line (168 tokens) duplication in the following files: 
Starting at line 3902 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 3989 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx

        if (NULL != (pCSub = pNode->GetSubNode(CSUB+1))
            && NULL != (pCSup=pNode->GetSubNode(CSUP+1)))
        {
            pThing2 = new SvXMLElementExport(*this,XML_NAMESPACE_MATH,
                XML_MUNDEROVER, sal_True,sal_True);
        }
        else if (NULL != (pCSub = pNode->GetSubNode(CSUB+1)))
        {
            pThing2 = new SvXMLElementExport(*this,XML_NAMESPACE_MATH,
                XML_MUNDER, sal_True,sal_True);
        }
        else if (NULL != (pCSup = pNode->GetSubNode(CSUP+1)))
        {
            pThing2 = new SvXMLElementExport(*this,XML_NAMESPACE_MATH,
                XML_MOVER, sal_True,sal_True);
        }
        ExportNodes(pNode->GetSubNode(0), nLevel+1);    //Main Term

        if (pCSub)
            ExportNodes(pCSub, nLevel+1);
        if (pCSup)
            ExportNodes(pCSup, nLevel+1);
        delete pThing2;
=====================================================================
Found a 27 line (168 tokens) duplication in the following files: 
Starting at line 2312 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx
Starting at line 3149 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx

								pSet->Put( SvxAdjustItem( eSvxAdjust, EE_PARA_JUST ) );

								pEngine->SetDefaults( pSet );
								pOldPattern = pPattern;
								pOldCondSet = pCondSet;

								ULONG nControl = pEngine->GetControlWord();
								if (eOrient==SVX_ORIENTATION_STACKED)
									nControl |= EE_CNTRL_ONECHARPERLINE;
								else
									nControl &= ~EE_CNTRL_ONECHARPERLINE;
								pEngine->SetControlWord( nControl );

								if ( !bHyphenatorSet && ((const SfxBoolItem&)pSet->Get(EE_PARA_HYPHENATE)).GetValue() )
								{
									//	set hyphenator the first time it is needed
                                    com::sun::star::uno::Reference<com::sun::star::linguistic2::XHyphenator> xXHyphenator( LinguMgr::GetHyphenator() );
									pEngine->SetHyphenator( xXHyphenator );
									bHyphenatorSet = TRUE;
								}

								Color aBackCol = ((const SvxBrushItem&)
									pPattern->GetItem( ATTR_BACKGROUND, pCondSet )).GetColor();
								if ( bUseStyleColor && ( aBackCol.GetTransparency() > 0 || bCellContrast ) )
									aBackCol.SetColor( nConfBackColor );
								pEngine->SetBackgroundColor( aBackCol );
							}
=====================================================================
Found a 22 line (168 tokens) duplication in the following files: 
Starting at line 479 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx
Starting at line 532 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx

	OutputDevice* pRefDevice = pOutput->pRefDevice;
	OutputDevice* pFmtDevice = pOutput->pFmtDevice;
	aTextSize.Width() = pFmtDevice->GetTextWidth( aString );
	aTextSize.Height() = pFmtDevice->GetTextHeight();

	if ( !pRefDevice->GetConnectMetaFile() || pRefDevice->GetOutDevType() == OUTDEV_PRINTER )
	{
		double fMul = pOutput->GetStretch();
		aTextSize.Width() = (long)(aTextSize.Width() / fMul + 0.5);
	}

	aTextSize.Height() = aMetric.GetAscent() + aMetric.GetDescent();
	if ( GetOrient() != SVX_ORIENTATION_STANDARD )
	{
		long nTemp = aTextSize.Height();
		aTextSize.Height() = aTextSize.Width();
		aTextSize.Width() = nTemp;
	}

	nOriginalWidth = aTextSize.Width();
	if ( bPixelToLogic )
		aTextSize = pRefDevice->LogicToPixel( aTextSize );
=====================================================================
Found a 48 line (168 tokens) duplication in the following files: 
Starting at line 2424 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3612 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

			pMatY->PutDouble(log(pMatY->GetDouble(nElem)), nElem);
	}
	if (pMatX)
	{
		pMatX->GetDimensions(nCX, nRX);
		SCSIZE nCountX = nCX * nRX;
		for ( SCSIZE i = 0; i < nCountX; i++ )
			if (!pMatX->IsValue(i))
			{
				SetIllegalArgument();
				return;
			}
		if (nCX == nCY && nRX == nRY)
			nCase = 1;					// einfache Regression
		else if (nCY != 1 && nRY != 1)
		{
			SetIllegalParameter();
			return;
		}
		else if (nCY == 1)
		{
			if (nRX != nRY)
			{
				SetIllegalParameter();
				return;
			}
			else
			{
				nCase = 2;				// zeilenweise
				N = nRY;
				M = nCX;
			}
		}
		else if (nCX != nCY)
		{
			SetIllegalParameter();
			return;
		}
		else
		{
			nCase = 3;					// spaltenweise
			N = nCY;
			M = nRX;
		}
	}
	else
	{
		pMatX = GetNewMat(nCY, nRY);
=====================================================================
Found a 71 line (168 tokens) duplication in the following files: 
Starting at line 2293 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 1864 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int64_Bounderies(
    hTestResult hRtlTestResult )
{
    sal_Bool bRes = sal_False;

    bRes =  c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kBinaryMaxNumsStr,
                               kInt64MaxNumsCount, kRadixBinary,
                               hRtlTestResult, kInt64MaxNums),
            "kRadixBinary",
            "valueOf(salInt64, radix 2) Bounderies"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kOctolMaxNumsStr,
                               kInt64MaxNumsCount, kRadixOctol,
                               hRtlTestResult, kInt64MaxNums),
            "kRadixOctol",
            "valueOf(salInt64, radix 8) Bounderies"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kDecimalMaxNumsStr,
                               kInt64MaxNumsCount, kRadixDecimal,
                               hRtlTestResult, kInt64MaxNums),
            "kRadixDecimal",
            "valueOf(salInt64, radix 10) Bounderies"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kHexDecimalMaxNumsStr,
                               kInt64MaxNumsCount, kRadixHexdecimal,
                               hRtlTestResult, kInt64MaxNums),
            "kRadixHexdecimal",
            "valueOf(salInt64, radix 16) Bounderies"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kBase36MaxNumsStr,
                               kInt64MaxNumsCount, kRadixBase36,
                               hRtlTestResult, kInt64MaxNums),
            "kRadixBase36",
            "valueOf(salInt64, radix 36) Bounderies"
            );

    return ( bRes );
}

//------------------------------------------------------------------------
// testing the method valueOf( sal_Int64 l, sal_Int16 radix=2 )
// for negative value
// testing the method valueOf( sal_Int64 l, sal_Int16 radix=8 )
// for negative value
// testing the method valueOf( sal_Int64 l, sal_Int16 radix=10 )
// for negative value
// testing the method valueOf( sal_Int64 l, sal_Int16 radix=16 )
// for negative value
// testing the method valueOf( sal_Int64 l, sal_Int16 radix=36 )
// for negative value
//------------------------------------------------------------------------
sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int64_Negative(
=====================================================================
Found a 65 line (168 tokens) duplication in the following files: 
Starting at line 2229 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 1800 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int64(
    hTestResult hRtlTestResult )
{
    sal_Bool bRes = sal_False;

    bRes =  c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kBinaryNumsStr,
                               kBinaryNumsCount, kRadixBinary, hRtlTestResult, 0),
            "kRadixBinary",
            "valueOf(sal_Int64, radix 2)_"
            );

    bRes &=  c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kOctolNumsStr,
                               kOctolNumsCount, kRadixOctol, hRtlTestResult, 0),
            "kRadixOctol",
            "valueOf(sal_Int64, radix 8)_"
            );

    bRes &=  c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kDecimalNumsStr,
                               kDecimalNumsCount, kRadixDecimal, hRtlTestResult, 0),
            "kRadixDecimal",
            "valueOf(sal_Int64, radix 10)_"
            );
    bRes &=  c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kHexDecimalNumsStr,
                               kHexDecimalNumsCount, kRadixHexdecimal, hRtlTestResult, 0),
            "kRadixHexdecimal",
            "valueOf(sal_Int64, radix 16)_"
            );

    bRes &=  c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int64((const char**)kBase36NumsStr,
                               kBase36NumsCount, kRadixBase36, hRtlTestResult, 0),
            "kRadixBase36",
            "valueOf(sal_Int64, radix 36)_"
            );

    return (bRes);
}

//------------------------------------------------------------------------
// testing the method valueOf( sal_Int64 l, sal_Int32 radix=2 )
// where l = large constants
// testing the method valueOf( sal_Int64 l, sal_Int32 radix=8 )
// where l = large constants
// testing the method valueOf( sal_Int64 l, sal_Int32 radix=10 )
// where l = large constants
// testing the method valueOf( sal_Int64 l, sal_Int32 radix=16 )
// where l = large constants
// testing the method valueOf( sal_Int64 l, sal_Int32 radix=36 )
// where l = large constants
//------------------------------------------------------------------------
sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int64_Bounderies(
=====================================================================
Found a 63 line (168 tokens) duplication in the following files: 
Starting at line 2117 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 1639 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int32_Negative(
    hTestResult hRtlTestResult )
{
    sal_Bool bRes = sal_False;
    sal_Int32 inArr[kBase36NumsCount];
    sal_Int32 i;

    for (i = 0; i < kBase36NumsCount; i++ )
        inArr[i] = -i;

    bRes =  c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32( kBinaryNumsStr, kBinaryNumsCount,
                                kRadixBinary, hRtlTestResult, inArr ),
            "negative Int32, kRadixBinary",
            "valueOf( negative Int32, radix 2 )"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32( kOctolNumsStr, kOctolNumsCount,
                                kRadixOctol, hRtlTestResult, inArr ),
            "negative Int32, kRadixOctol",
            "valueOf( negative Int32, radix 8 )"
            );


    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32( kDecimalNumsStr, kDecimalNumsCount,
                                kRadixDecimal, hRtlTestResult, inArr ),
            "negative Int32, kRadixDecimal",
            "valueOf( negative Int32, radix 10 )"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32( kHexDecimalNumsStr, kHexDecimalNumsCount,
                                kRadixHexdecimal, hRtlTestResult, inArr ),
            "negative Int32, kRadixHexdecimal",
            "valueOf( negative Int32, radix 16 )"
            );


    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32( kBase36NumsStr, kBase36NumsCount,
                                kRadixBase36, hRtlTestResult, inArr ),
            "negative Int32, kRadixBase36",
            "valueOf( negative Int32, radix 36 )"
            );

    return ( bRes );
}
//------------------------------------------------------------------------
// testing the method valueOf( sal_Int32 l, sal_Int32 radix ) where radix = -5
//------------------------------------------------------------------------
sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int32_WrongRadix(
=====================================================================
Found a 71 line (168 tokens) duplication in the following files: 
Starting at line 2047 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 1569 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int32_Bounderies(
    hTestResult hRtlTestResult )
{
    sal_Bool bRes = sal_False;

    bRes =  c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kBinaryMaxNumsStr,
                               kInt32MaxNumsCount, kRadixBinary, 
                               hRtlTestResult, kInt32MaxNums),
            "kRadixBinary",
            "valueOf(salInt32, radix 2) Bounderies"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kOctolMaxNumsStr,
                               kInt32MaxNumsCount, kRadixOctol, 
                               hRtlTestResult, kInt32MaxNums),
            "kRadixOctol",
            "valueOf(salInt32, radix 8) Bounderies"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kDecimalMaxNumsStr,
                               kInt32MaxNumsCount, kRadixDecimal,
                               hRtlTestResult, kInt32MaxNums),
            "kRadixDecimal",
            "valueOf(salInt32, radix 10) Bounderies"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kHexDecimalMaxNumsStr,
                               kInt32MaxNumsCount, kRadixHexdecimal,
                               hRtlTestResult, kInt32MaxNums),
            "kRadixHexdecimal",
            "valueOf(salInt32, radix 16) Bounderies"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kBase36MaxNumsStr,
                               kInt32MaxNumsCount, kRadixBase36,
                               hRtlTestResult, kInt32MaxNums),
            "kRadixBase36",
            "valueOf(salInt32, radix 36) Bounderies"
            );

    return ( bRes );
}

//------------------------------------------------------------------------
// testing the method valueOf( sal_Int32 i, sal_Int16 radix=2 )
// for negative value
// testing the method valueOf( sal_Int32 i, sal_Int16 radix=8 )
// for negative value
// testing the method valueOf( sal_Int32 i, sal_Int16 radix=10 )
// for negative value
// testing the method valueOf( sal_Int32 i, sal_Int16 radix=16 )
// for negative value
// testing the method valueOf( sal_Int32 i, sal_Int16 radix=36 )
// for negative value
//------------------------------------------------------------------------
sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int32_Negative(
=====================================================================
Found a 68 line (168 tokens) duplication in the following files: 
Starting at line 1980 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 1502 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int32(
    hTestResult hRtlTestResult )
{
    sal_Bool bRes = sal_False;

    bRes = c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kBinaryNumsStr,
                               kBinaryNumsCount, kRadixBinary, hRtlTestResult, 0 ),
            "kRadixBinary",
            "valueOf(sal_Int32, radix 2)"
            );


    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kOctolNumsStr,
                               kOctolNumsCount, kRadixOctol, hRtlTestResult, 0),
            "kRadixOctol",
            "valueOf(sal_Int32, radix 8)"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kDecimalNumsStr,
                               kDecimalNumsCount, kRadixDecimal, hRtlTestResult, 0),
            "kRadixDecimal",
            "valueOf(sal_Int32, radix 10)"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kHexDecimalNumsStr,
                               kHexDecimalNumsCount, kRadixHexdecimal, hRtlTestResult, 0),
            "kRadixHexdecimal",
            "valueOf(sal_Int32, radix 16)"
            );

    bRes &= c_rtl_tres_state
        (
            hRtlTestResult,
            test_valueOf_Int32((const char**)kBase36NumsStr,
                               kBase36NumsCount, kRadixBase36, hRtlTestResult, 0),
            "kRadixBase36",
            "valueOf(sal_Int32, radix 36)"
            );


    return ( bRes );
}

//------------------------------------------------------------------------
// testing the method valueOf( sal_Int32 l, sal_Int32 radix=2 )
// where l = large constants
// testing the method valueOf( sal_Int32 l, sal_Int32 radix=8 )
// where l = large constants
// testing the method valueOf( sal_Int32 l, sal_Int32 radix=10 )
// where l = large constants
// testing the method valueOf( sal_Int32 l, sal_Int32 radix=16 )
// where l = large constants
// testing the method valueOf( sal_Int32 l, sal_Int32 radix=36 )
// where l = large constants
//------------------------------------------------------------------------
sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int32_Bounderies(
=====================================================================
Found a 29 line (168 tokens) duplication in the following files: 
Starting at line 3487 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 3582 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

		uno::Reference< io::XInputStream > xRawInStream = pElement->m_pStream->GetRawInStream();
		if ( !xRawInStream.is() )
			throw io::IOException();

		uno::Reference < io::XOutputStream > xTempOut( 
							m_pImpl->GetServiceFactory()->createInstance ( 
									::rtl::OUString::createFromAscii( "com.sun.star.io.TempFile" ) ),
							uno::UNO_QUERY );
		xTempIn = uno::Reference < io::XInputStream >( xTempOut, uno::UNO_QUERY );
		uno::Reference < io::XSeekable > xSeek( xTempOut, uno::UNO_QUERY );

		if ( !xTempOut.is() || !xTempIn.is() || !xSeek.is() )
			throw io::IOException();

		// Copy temporary file to a new one
		::comphelper::OStorageHelper::CopyInputToOutput( xRawInStream, xTempOut );
		xTempOut->closeOutput();
		xSeek->seek( 0 );

	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( packages::NoEncryptionException& )
=====================================================================
Found a 25 line (168 tokens) duplication in the following files: 
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 601 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx

		OUString aLabel;

		// read attributes for menu item
		for ( int i=0; i< xAttrList->getLength(); i++ )
		{
			OUString aName = xAttrList->getNameByIndex( i );
			OUString aValue = xAttrList->getValueByIndex( i );
			if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_ID )))
				aCommandId = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_LABEL )))
				aLabel = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_HELPID )))
				nHelpId = aValue.toInt32();
		}

		if ( aCommandId.getLength() > 0 )
		{
            USHORT nItemId;
            if ( aCommandId.compareTo( aSlotProtocol, aSlotProtocol.getLength() ) == 0 )
                nItemId = (USHORT) aCommandId.copy( aSlotProtocol.getLength() ).toInt32();
            else
                nItemId = ++(*m_pItemId);

			m_pMenu->InsertItem( nItemId, String() );
			m_pMenu->SetItemCommand( nItemId, aCommandId );
=====================================================================
Found a 28 line (168 tokens) duplication in the following files: 
Starting at line 2686 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 1156 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/uicmdstohtml.cxx

        osl::FileBase::getSystemPathFromFileURL( aOutDirURL, aOutputDirName );
        
        GetCommandOption( aArgs, OUString::createFromAscii( "v" ), aVersion );
        bUseProduct = GetCommandOption( aArgs, OUString::createFromAscii( "p" ), aDummy );
        GetCommandOption( aArgs, OUString::createFromAscii( "s" ), aPlatformName );
        GetCommandOptions( aArgs, OUString::createFromAscii( "i" ), aInDirVector );
		GetCommandOption( aArgs, OUString::createFromAscii( "f" ), aErrOutputFileName );
        GetCommandOption( aArgs, OUString::createFromAscii( "r" ), aUseRes );

        if ( aVersion.getLength() > 0 &&
             aPlatformName.getLength() > 0 &&
             aUseRes.getLength() > 0 &&
             aInDirVector.size() > 0 )
        {
            Convert( bUseProduct, aUseRes, aVersion, aOutputDirName, aPlatformName, aInDirVector, aErrOutputFileName );
        }
        else
        {
            ShowUsage();
            exit( -1 );
        }
    }
    else
    {
        ShowUsage();
        exit( -1 );
    }
}
=====================================================================
Found a 63 line (168 tokens) duplication in the following files: 
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/workbench/XTDo.cxx
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/clipboardwben/testcopy/XTDataObject.cxx

CEnumFormatEtc::~CEnumFormatEtc( )
{
}

//----------------------------------------------------------------------------
// IUnknown->QueryInterface
//----------------------------------------------------------------------------

STDMETHODIMP CEnumFormatEtc::QueryInterface( REFIID iid, LPVOID* ppvObject )
{
	if ( NULL == ppvObject )
		return E_INVALIDARG;

	HRESULT hr = E_NOINTERFACE;

	*ppvObject = NULL;

	if ( ( __uuidof( IUnknown ) == iid ) || ( __uuidof( IEnumFORMATETC ) == iid ) )
	{
		*ppvObject = static_cast< IUnknown* >( this );
		static_cast< LPUNKNOWN >( *ppvObject )->AddRef( );
		hr = S_OK;
	}

	return hr;
}

//----------------------------------------------------------------------------
// IUnknown->AddRef
//----------------------------------------------------------------------------

STDMETHODIMP_(ULONG) CEnumFormatEtc::AddRef( )
{
	// keep the dataobject alive
	m_pUnkDataObj->AddRef( );		
	return InterlockedIncrement( &m_nRefCnt );
}

//----------------------------------------------------------------------------
// IUnknown->Release
//----------------------------------------------------------------------------

STDMETHODIMP_(ULONG) CEnumFormatEtc::Release( )
{
	// release the outer dataobject		
	m_pUnkDataObj->Release( );

	// we need a helper variable because it's
	// not allowed to access a member variable
	// after an object is destroyed
	ULONG nRefCnt = InterlockedDecrement( &m_nRefCnt );
	if ( 0 == nRefCnt )
		delete this;

	return nRefCnt;
}

//----------------------------------------------------------------------------
// IEnumFORMATETC->Next
//----------------------------------------------------------------------------

STDMETHODIMP CEnumFormatEtc::Next( ULONG celt, LPFORMATETC rgelt, ULONG* pceltFetched )
{
=====================================================================
Found a 44 line (168 tokens) duplication in the following files: 
Starting at line 153 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx
Starting at line 234 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FStatement.cxx

}
// -------------------------------------------------------------------------

void SAL_CALL OStatement_Base::close(  ) throw(SQLException, RuntimeException)
{
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(OStatement_BASE::rBHelper.bDisposed);
	}
	dispose();
}
// -------------------------------------------------------------------------

void OStatement_Base::reset() throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);
                

	clearWarnings ();

	if (m_xResultSet.get().is())
		clearMyResultSet();
}
//--------------------------------------------------------------------
// clearMyResultSet
// If a ResultSet was created for this Statement, close it
//--------------------------------------------------------------------

void OStatement_Base::clearMyResultSet () throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);
		
    try
    {
        Reference<XCloseable> xCloseable;
        if ( ::comphelper::query_interface( m_xResultSet.get(), xCloseable ) )
            xCloseable->close();
    }
    catch( const DisposedException& ) { }

	m_xResultSet = Reference< XResultSet>();
}
=====================================================================
Found a 30 line (168 tokens) duplication in the following files: 
Starting at line 352 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/localbe/localfilelayer.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/localbe/localfilelayer.cxx

void SAL_CALL FullCompositeLocalFileLayer::replaceWith(
        const uno::Reference<backend::XLayer>& aNewLayer) 
    throw (backend::MalformedDataException, lang::NullPointerException,
			lang::WrappedTargetException, uno::RuntimeException)
{
    if (!aNewLayer.is())
    {
        rtl::OUString const sMessage(RTL_CONSTASCII_USTRINGPARAM(
            "LocalFileLayer - Cannot replaceWith: Replacement layer is NULL."));

        throw  lang::NullPointerException(sMessage,*this);
    }
    OSL_ENSURE( !uno::Reference<backend::XCompositeLayer>::query(aNewLayer).is(),
                "Warning: correct updates with composite layers are not implemented");

    uno::Reference<io::XActiveDataSource> xAS(mLayerWriter, uno::UNO_QUERY_THROW);

    LocalOutputStream * pStream = new LocalOutputStream(getFileUrl());
    uno::Reference<io::XOutputStream> xStream( pStream );
        
    xAS->setOutputStream(xStream);

    aNewLayer->readData(mLayerWriter) ;

    pStream->finishOutput();

    // clear the output stream
    xStream.clear();
    xAS->setOutputStream(xStream);
}
=====================================================================
Found a 34 line (168 tokens) duplication in the following files: 
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

				default:
					throw IllegalArgument("the option is unknown" + OString(av[i]));
			}
		} else
		{
			if (av[i][0] == '@')
			{
				FILE* cmdFile = fopen(av[i]+1, "r");
		  		if( cmdFile == NULL )
      			{
					fprintf(stderr, "%s", prepareHelp().getStr());
					ret = sal_False;
				} else
				{
					int rargc=0;
					char* rargv[512];
					char  buffer[512];

					while ( fscanf(cmdFile, "%s", buffer) != EOF )
					{
						rargv[rargc]= strdup(buffer);
						rargc++;
					}
					fclose(cmdFile);
					
					ret = initOptions(rargc, rargv, bCmdFile);
					
					for (long j=0; j < rargc; j++) 
					{
						free(rargv[j]);
					}
				}		
			} else
			{
=====================================================================
Found a 20 line (168 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/VCartesianCoordinateSystem.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/VPolarCoordinateSystem.cxx

void VPolarCoordinateSystem::initVAxisInList()
{
    if(!m_xLogicTargetForAxes.is() || !m_xFinalTarget.is() || !m_xCooSysModel.is() )
        return;

    sal_Int32 nDimensionCount = m_xCooSysModel->getDimension();
    bool bSwapXAndY = this->getPropertySwapXAndYAxis();

    tVAxisMap::iterator aIt( m_aAxisMap.begin() );
    tVAxisMap::const_iterator aEnd( m_aAxisMap.end() );
    for( ; aIt != aEnd; ++aIt )
    {
        VAxisBase* pVAxis = aIt->second.get();
        if( pVAxis )
        {
            sal_Int32 nDimensionIndex = aIt->first.first;
            sal_Int32 nAxisIndex = aIt->first.second;
            pVAxis->setExplicitScaleAndIncrement( this->getExplicitScale( nDimensionIndex, nAxisIndex ), this->getExplicitIncrement(nDimensionIndex, nAxisIndex) );
            pVAxis->initPlotter(m_xLogicTargetForAxes,m_xFinalTarget,m_xShapeFactory
                , this->createCIDForAxis( getAxisByDimension( nDimensionIndex, nAxisIndex ), nDimensionIndex, nAxisIndex ) );
=====================================================================
Found a 27 line (168 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

			pCppStack += sizeof( void* );
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

	 	if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))  // value
		{
			pCppArgs[nPos] = pUnoArgs[nPos] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr);
=====================================================================
Found a 42 line (168 tokens) duplication in the following files: 
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 365 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/uno2cpp.cxx

                          break;
                        }
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                                	pUnoArgs[nPos], pParamTypeDescr,
					pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
=====================================================================
Found a 27 line (168 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

			pCppStack += sizeof( void* );
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

	 	if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))  // value
		{
			pCppArgs[nPos] = pUnoArgs[nPos] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr);
=====================================================================
Found a 35 line (168 tokens) duplication in the following files: 
Starting at line 351 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( gpreg[2] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData, (typelib_InterfaceTypeDescription *)pTD );
=====================================================================
Found a 42 line (168 tokens) duplication in the following files: 
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
=====================================================================
Found a 29 line (168 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
=====================================================================
Found a 35 line (168 tokens) duplication in the following files: 
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 351 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx

				aParam.pTypeRef = pAttrTypeRef;
				aParam.bIn		= sal_True;
				aParam.bOut		= sal_False;

				eRet = cpp2uno_call( pCppI, aMemberDescr.get(),
						0, // indicates void return
						1, &aParam,
						gpreg, fpreg, ovrflw, pRegisterReturn );
			}
			break;
		}
		case typelib_TypeClass_INTERFACE_METHOD:
		{
			// is METHOD
			switch ( nFunctionIndex )
			{
				case 1: // acquire()
					pCppI->acquireProxy(); // non virtual call!
					eRet = typelib_TypeClass_VOID;
					break;
				case 2: // release()
					pCppI->releaseProxy(); // non virtual call!
					eRet = typelib_TypeClass_VOID;
					break;
				case 0: // queryInterface() opt
				{
					typelib_TypeDescription * pTD = 0;
					TYPELIB_DANGER_GET( &pTD, reinterpret_cast<Type *>( gpreg[2] )->getTypeLibType() );
					if ( pTD )
					{
						XInterface * pInterface = 0;
						(*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)
							( pCppI->getBridge()->getCppEnv(),
							  (void **)&pInterface,
							  pCppI->getOid().pData,
=====================================================================
Found a 42 line (168 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

                          break;
                        }
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                                	pUnoArgs[nPos], pParamTypeDescr,
					pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
=====================================================================
Found a 27 line (168 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

			pCppStack += sizeof( void* );
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

	 	if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))  // value
		{
			pCppArgs[nPos] = pUnoArgs[nPos] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr);
=====================================================================
Found a 35 line (168 tokens) duplication in the following files: 
Starting at line 351 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( gpreg[2] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData, 
=====================================================================
Found a 42 line (168 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

                          break;
                        }
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
  	                        pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                                	pUnoArgs[nPos], pParamTypeDescr,
					pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
=====================================================================
Found a 27 line (168 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

			pCppStack += sizeof( void* );
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

	 	if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))  // value
		{
			pCppArgs[nPos] = pUnoArgs[nPos] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr);
=====================================================================
Found a 35 line (167 tokens) duplication in the following files: 
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx
Starting at line 444 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx

	{ XML_NAMESPACE_FO, XML_MARGIN_BOTTOM, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_TOP, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_RIGHT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_SHADOW, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS },
	{ XML_NAMESPACE_STYLE, XML_FOOTNOTE_MAX_HEIGHT, XML_ATACTION_INCH2IN,
=====================================================================
Found a 35 line (167 tokens) duplication in the following files: 
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx
Starting at line 721 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx

	{ XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_ATACTION_COPY,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_TOP, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_RIGHT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_SHADOW, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS },
	{ XML_NAMESPACE_FO, XML_KEEP_WITH_NEXT, XML_PTACTION_KEEP_WITH_NEXT,
=====================================================================
Found a 39 line (167 tokens) duplication in the following files: 
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static beans::Property aPropertyInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory properties
		///////////////////////////////////////////////////////////////
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND
		)
		///////////////////////////////////////////////////////////////
		// Optional standard properties
		///////////////////////////////////////////////////////////////

		///////////////////////////////////////////////////////////////
		// New properties
		///////////////////////////////////////////////////////////////
	};
    return uno::Sequence<
            beans::Property >( aPropertyInfoTable, PROPERTY_COUNT );
=====================================================================
Found a 41 line (167 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 505 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

		if ( rRect.nLeft < 0 )
		{
			cAry[0] |= 0x80;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[0] |= 0x40;
					}
					else
						cAry[0] |= 0x30;
				}
				else
					cAry[0] |= 0x20;
			}
			else
				cAry[0] |= 0x10;
		}

		nNum = (UINT32)(INT32)rRect.nTop;
=====================================================================
Found a 39 line (167 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 454 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx

                Reference< XURLTransformer > xURLTransformer = getURLTransformer();
                aTargetURL.Complete = aCommandURL;
                xURLTransformer->parseStrict( aTargetURL );
                xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );

                xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY );
                URLToDispatchMap::iterator aIter = m_aListenerMap.find( aCommandURL );
                if ( aIter != m_aListenerMap.end() )
                {
                    Reference< XDispatch > xOldDispatch( aIter->second );
                    aIter->second = xDispatch;

                    try
                    {
                        if ( xOldDispatch.is() )
                            xOldDispatch->removeStatusListener( xStatusListener, aTargetURL );
                    }
                    catch ( Exception& )
                    {
                    }
                }
                else
                    m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, xDispatch ));
            }
        }
    }

    // Call without locked mutex as we are called back from dispatch implementation
    try
    {
        if ( xDispatch.is() )
            xDispatch->addStatusListener( xStatusListener, aTargetURL );
    }
    catch ( Exception& )
    {
    }
}

void StatusbarController::removeStatusListener( const rtl::OUString& aCommandURL )
=====================================================================
Found a 36 line (167 tokens) duplication in the following files: 
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/store.cxx
Starting at line 723 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/store.cxx

storeError SAL_CALL store_rename (
	storeFileHandle Handle,
	rtl_uString *pSrcPath, rtl_uString *pSrcName,
	rtl_uString *pDstPath, rtl_uString *pDstName
) SAL_THROW_EXTERN_C()
{
	storeError eErrCode = store_E_None;

	OStoreHandle<OStorePageManager> xManager (
		OStoreHandle<OStorePageManager>::query (Handle));
	if (!xManager.is())
		return store_E_InvalidHandle;

	if (!(pSrcPath && pSrcName))
		return store_E_InvalidParameter;

	if (!(pDstPath && pDstName))
		return store_E_InvalidParameter;

	// Setup 'Source' page key.
	OString aSrcPath (
		pSrcPath->buffer, pSrcPath->length, RTL_TEXTENCODING_UTF8);
	OString aSrcName (
		pSrcName->buffer, pSrcName->length, RTL_TEXTENCODING_UTF8);
	OStorePageKey aSrcKey;

	eErrCode = OStorePageNameBlock::namei (
		aSrcPath.pData, aSrcName.pData, aSrcKey);
	if (eErrCode != store_E_None)
		return eErrCode;

	// Rename 'Source' into 'Destination'.
	OString aDstPath (
		pDstPath->buffer, pDstPath->length, RTL_TEXTENCODING_UTF8);
	OString aDstName (
		pDstName->buffer, pDstName->length, RTL_TEXTENCODING_UTF8);
=====================================================================
Found a 9 line (167 tokens) duplication in the following files: 
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

    virtual void SAL_CALL setEnum( TestEnum _enum ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Enum = _enum; }
    virtual void SAL_CALL setString( const ::rtl::OUString& _string ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.String = _string; }
    virtual void SAL_CALL setInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _interface ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Interface = _interface; }
    virtual void SAL_CALL setAny( const ::com::sun::star::uno::Any& _any ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Any = _any; }
    virtual void SAL_CALL setSequence( const ::com::sun::star::uno::Sequence<TestElement >& _sequence ) throw(::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 20 line (167 tokens) duplication in the following files: 
Starting at line 1455 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/sfxbasecontroller.cxx
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindow.cxx

	pWindow->GetBorder( rEvent.LeftInset, rEvent.TopInset, rEvent.RightInset, rEvent.BottomInset );
}

void ImplInitKeyEvent( ::com::sun::star::awt::KeyEvent& rEvent, const KeyEvent& rEvt )
{
	rEvent.Modifiers = 0;
	if ( rEvt.GetKeyCode().IsShift() )
		rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::SHIFT;
	if ( rEvt.GetKeyCode().IsMod1() )
		rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD1;
	if ( rEvt.GetKeyCode().IsMod2() )
		rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD2;

	rEvent.KeyCode = rEvt.GetKeyCode().GetCode();
	rEvent.KeyChar = rEvt.GetCharCode();
	rEvent.KeyFunc = sal::static_int_cast< sal_Int16 >(
        rEvt.GetKeyCode().GetFunction());
}

void ImplInitMouseEvent( awt::MouseEvent& rEvent, const MouseEvent& rEvt )
=====================================================================
Found a 34 line (167 tokens) duplication in the following files: 
Starting at line 1781 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output.cxx
Starting at line 1819 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output.cxx

BOOL ScOutputData::SetChangedClip()
{
	PolyPolygon aPoly;

	Rectangle aDrawingRect;
	aDrawingRect.Left() = nScrX;
	aDrawingRect.Right() = nScrX+nScrW-1;

	BOOL	bHad	= FALSE;
	long	nPosY	= nScrY;
	SCSIZE	nArrY;
	for (nArrY=1; nArrY+1<nArrCount; nArrY++)
	{
		RowInfo* pThisRowInfo = &pRowInfo[nArrY];

		if ( pThisRowInfo->bChanged )
		{
			if (!bHad)
			{
				aDrawingRect.Top() = nPosY;
				bHad = TRUE;
			}
			aDrawingRect.Bottom() = nPosY + pRowInfo[nArrY].nHeight - 1;
		}
		else if (bHad)
		{
			aPoly.Insert( Polygon( pDev->PixelToLogic(aDrawingRect) ) );
			bHad = FALSE;
		}
		nPosY += pRowInfo[nArrY].nHeight;
	}

	if (bHad)
		aPoly.Insert( Polygon( pDev->PixelToLogic(aDrawingRect) ) );
=====================================================================
Found a 14 line (167 tokens) duplication in the following files: 
Starting at line 734 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/pagedlg/scuitphfedit.cxx
Starting at line 755 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/pagedlg/scuitphfedit.cxx

        case ePageFileNameEntry:
        {
            ClearTextAreas();
            ESelection aSel(0,0,0,0);
            String aPageEntry(ScGlobal::GetRscString( STR_PAGE ) );
            aPageEntry += ' ';
            aWndCenter.GetEditEngine()->SetText(aPageEntry);
            aSel.nEndPos = aPageEntry.Len();
            aWndCenter.GetEditEngine()->QuickInsertField(SvxFieldItem(SvxPageField(), EE_FEATURE_FIELD), ESelection(aSel.nEndPara, aSel.nEndPos, aSel.nEndPara, aSel.nEndPos));
            ++aSel.nEndPos;
            String aCommaSpace(RTL_CONSTASCII_STRINGPARAM(", "));
            aWndCenter.GetEditEngine()->QuickInsertText(aCommaSpace,ESelection(aSel.nEndPara, aSel.nEndPos, aSel.nEndPara, aSel.nEndPos));
            aSel.nEndPos = sal::static_int_cast<xub_StrLen>( aSel.nEndPos + aCommaSpace.Len() );
            aWndCenter.GetEditEngine()->QuickInsertField( SvxFieldItem(SvxFileField(), EE_FEATURE_FIELD), ESelection(aSel.nEndPara, aSel.nEndPos, aSel.nEndPara, aSel.nEndPos));
=====================================================================
Found a 38 line (167 tokens) duplication in the following files: 
Starting at line 3316 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3668 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

			pMatX->PutDouble((double)i, i-1);
		nCase = 1;
	}
	SCSIZE nCXN, nRXN;
	SCSIZE nCountXN;
	if (!pMatNewX)
	{
		nCXN = nCX;
		nRXN = nRX;
		nCountXN = nCXN * nRXN;
		pMatNewX = pMatX;
	}
	else
	{
		pMatNewX->GetDimensions(nCXN, nRXN);
		if ((nCase == 2 && nCX != nCXN) || (nCase == 3 && nRX != nRXN))
		{
			SetIllegalArgument();
			return;
		}
		nCountXN = nCXN * nRXN;
		for ( SCSIZE i = 0; i < nCountXN; i++ )
			if (!pMatNewX->IsValue(i))
			{
				SetIllegalArgument();
				return;
			}
	}
	ScMatrixRef pResMat;
	if (nCase == 1)
	{
		double fCount   = 0.0;
		double fSumX    = 0.0;
		double fSumSqrX = 0.0;
		double fSumY    = 0.0;
		double fSumSqrY = 0.0;
		double fSumXY   = 0.0;
		double fValX, fValY;
=====================================================================
Found a 48 line (167 tokens) duplication in the following files: 
Starting at line 2855 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3260 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

			return;
		}
	if (pMatX)
	{
		pMatX->GetDimensions(nCX, nRX);
		SCSIZE nCountX = nCX * nRX;
		for (nElem = 0; nElem < nCountX; nElem++)
			if (!pMatX->IsValue(nElem))
			{
				SetIllegalArgument();
				return;
			}
		if (nCX == nCY && nRX == nRY)
			nCase = 1;					// einfache Regression
		else if (nCY != 1 && nRY != 1)
		{
			SetIllegalParameter();
			return;
		}
		else if (nCY == 1)
		{
			if (nRX != nRY)
			{
				SetIllegalParameter();
				return;
			}
			else
			{
				nCase = 2;				// zeilenweise
				N = nRY;
				M = nCX;
			}
		}
		else if (nCX != nCY)
		{
			SetIllegalParameter();
			return;
		}
		else
		{
			nCase = 3;					// spaltenweise
			N = nCY;
			M = nRX;
		}
	}
	else
	{
		pMatX = GetNewMat(nCY, nRY);
=====================================================================
Found a 51 line (167 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/workben/treecontrol/treetest.cxx

		OUString( RTL_CONSTASCII_USTRINGPARAM("treetest.rdb") ), sal_True, sal_False );

    /* Bootstraps an initial component context with service manager upon a given
       registry. This includes insertion of initial services:
       - (registry) service manager, shared lib loader,
       - simple registry, nested registry,
       - implementation registration
       - registry typedescription provider, typedescription manager (also
         installs it into cppu core)
    */
    Reference< XComponentContext > xComponentContext(
        ::cppu::bootstrap_InitialComponentContext( xSimpleRegistry ) );
    
    /* Gets the service manager instance to be used (or null). This method has
       been added for convenience, because the service manager is a often used
       object.
    */
	Reference< XMultiComponentFactory > xMultiComponentFactoryClient(
		xComponentContext->getServiceManager() );

    /* Creates an instance of a component which supports the services specified
       by the factory.
    */
    Reference< XInterface > xInterface =
        xMultiComponentFactoryClient->createInstanceWithContext( 
            OUString::createFromAscii( "com.sun.star.bridge.UnoUrlResolver" ),
            xComponentContext );

    Reference< XUnoUrlResolver > resolver( xInterface, UNO_QUERY );

    // Resolves the component context from the office, on the uno URL given by argv[1].
    try
    {
        xInterface = Reference< XInterface >( 
            resolver->resolve( sConnectionString ), UNO_QUERY );
    }
    catch ( Exception& e )
    {
		printf("Error: cannot establish a connection using '%s':\n       %s\n",
               OUStringToOString(sConnectionString, RTL_TEXTENCODING_ASCII_US).getStr(),
               OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US).getStr());
		exit(1);        
    }
    
    // gets the server component context as property of the office component factory
    Reference< XPropertySet > xPropSet( xInterface, UNO_QUERY );
    xPropSet->getPropertyValue( OUString::createFromAscii("DefaultContext") ) >>= xComponentContext;

    // gets the service manager from the office
    Reference< XMultiComponentFactory > xMultiComponentFactoryServer(
        xComponentContext->getServiceManager() );
=====================================================================
Found a 6 line (167 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 772 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d60 - 4d6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d70 - 4d7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d80 - 4d8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4d90 - 4d9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 4da0 - 4daf
     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4db0 - 4dbf
=====================================================================
Found a 6 line (167 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/breakiterator/breakiterator_th.cxx
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/breakiterator/breakiterator_th.cxx

	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_COM, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // BV2  8
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // BD   9
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // TONE 10
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // AD1  11
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // AD2  12
	{   ST_NDP, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT, ST_NXT   }, // AD3  13
=====================================================================
Found a 24 line (167 tokens) duplication in the following files: 
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontmenucontroller.cxx
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx
Starting at line 419 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/recentfilesmenucontroller.cxx

void SAL_CALL RecentFilesMenuController::setPopupMenu( const Reference< css::awt::XPopupMenu >& xPopupMenu ) throw ( RuntimeException )
{
    ResetableGuard aLock( m_aLock );

    if ( m_bDisposed )
        throw DisposedException();

    if ( m_xFrame.is() && !m_xPopupMenu.is() )
    {
        // Create popup menu on demand
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );

        m_xPopupMenu = xPopupMenu;
	    m_xPopupMenu->addMenuListener( Reference< css::awt::XMenuListener >( (OWeakObject*)this, UNO_QUERY ));

        Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
                                                        rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
                                                    UNO_QUERY );
        Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );

        com::sun::star::util::URL aTargetURL;
        aTargetURL.Complete = m_aCommandURL;
        xURLTransformer->parseStrict( aTargetURL );
        m_xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );
=====================================================================
Found a 30 line (167 tokens) duplication in the following files: 
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/controlmenucontroller.cxx
Starting at line 644 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/newmenucontroller.cxx

void SAL_CALL NewMenuController::initialize( const Sequence< Any >& aArguments ) throw ( Exception, RuntimeException )
{
    const rtl::OUString aFrameName( RTL_CONSTASCII_USTRINGPARAM( "Frame" ));
    const rtl::OUString aCommandURLName( RTL_CONSTASCII_USTRINGPARAM( "CommandURL" ));

    ResetableGuard aLock( m_aLock );

    sal_Bool bInitalized( m_bInitialized );
    if ( !bInitalized )
    {
        PropertyValue       aPropValue;
        rtl::OUString       aCommandURL;
        Reference< XFrame > xFrame;

        for ( int i = 0; i < aArguments.getLength(); i++ )
        {
            if ( aArguments[i] >>= aPropValue )
            {
                if ( aPropValue.Name.equalsAscii( "Frame" ))
                    aPropValue.Value >>= xFrame;
                else if ( aPropValue.Name.equalsAscii( "CommandURL" ))
                    aPropValue.Value >>= aCommandURL;
            }
        }

        if ( xFrame.is() && aCommandURL.getLength() )
        {
            m_xFrame        = xFrame;
            m_aCommandURL   = aCommandURL;
            m_bInitialized  = sal_True;
=====================================================================
Found a 28 line (167 tokens) duplication in the following files: 
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

			else if ( URL.Complete == m_aInterceptedURL[5] )
			{
				uno::Sequence< beans::PropertyValue > aNewArgs = Arguments;
				sal_Int32 nInd = 0;
	
				while( nInd < aNewArgs.getLength() )
				{
					if ( aNewArgs[nInd].Name.equalsAscii( "SaveTo" ) )
					{
						aNewArgs[nInd].Value <<= sal_True;
						break;
					}
					nInd++;
				}
			
				if ( nInd == aNewArgs.getLength() )
				{
					aNewArgs.realloc( nInd + 1 );
					aNewArgs[nInd].Name = ::rtl::OUString::createFromAscii( "SaveTo" );
					aNewArgs[nInd].Value <<= sal_True;
				}

				uno::Reference< frame::XDispatch > xDispatch = m_xSlaveDispatchProvider->queryDispatch(
					URL, ::rtl::OUString::createFromAscii( "_self" ), 0 );
				if ( xDispatch.is() )
					xDispatch->dispatch( URL, aNewArgs );
			}
		}
=====================================================================
Found a 45 line (167 tokens) duplication in the following files: 
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/implbase.cxx
Starting at line 417 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/implbase.cxx

void WeakAggComponentImplHelperBase::dispose()
    throw (RuntimeException)
{
    ClearableMutexGuard aGuard( rBHelper.rMutex );
    if (!rBHelper.bDisposed && !rBHelper.bInDispose)
    {
        rBHelper.bInDispose = sal_True;
        aGuard.clear();
        try
        {
            // side effect: keeping a reference to this
            lang::EventObject aEvt( static_cast< OWeakObject * >( this ) );
            try
            {
                rBHelper.aLC.disposeAndClear( aEvt );
                disposing();
            }
            catch (...)
            {
                MutexGuard aGuard2( rBHelper.rMutex );
                // bDisposed and bInDispose must be set in this order:
                rBHelper.bDisposed = sal_True;
                rBHelper.bInDispose = sal_False;
                throw;
            }
            MutexGuard aGuard2( rBHelper.rMutex );
            // bDisposed and bInDispose must be set in this order:
            rBHelper.bDisposed = sal_True;
            rBHelper.bInDispose = sal_False;
        }
        catch (RuntimeException &)
        {
            throw;
        }
        catch (Exception & exc)
        {
            throw RuntimeException(
                OUString( RTL_CONSTASCII_USTRINGPARAM(
                              "unexpected UNO exception caught: ") ) +
                exc.Message, Reference< XInterface >() );
        }
    }
}
//__________________________________________________________________________________________________
void WeakAggComponentImplHelperBase::addEventListener(
=====================================================================
Found a 9 line (167 tokens) duplication in the following files: 
Starting at line 297 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

    virtual void SAL_CALL setEnum( TestEnum _enum ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Enum = _enum; }
    virtual void SAL_CALL setString( const ::rtl::OUString& _string ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.String = _string; }
    virtual void SAL_CALL setInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _interface ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Interface = _interface; }
    virtual void SAL_CALL setAny( const ::com::sun::star::uno::Any& _any ) throw(::com::sun::star::uno::RuntimeException)
		{ _aData.Any = _any; }
    virtual void SAL_CALL setSequence( const ::com::sun::star::uno::Sequence<TestElement >& _sequence ) throw(::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 42 line (167 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx

                break;
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
=====================================================================
Found a 23 line (166 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/odsl/ODSLParser.cxx
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/xxml/FileXXmlReader.cxx

  MyHandler handler;

  if (aArguments.getLength()!=1)
  {
	  return 1;
  }
	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
		// construct an URL of the input file name
		rtl::OUString arg=aArguments[0];
		rtl_uString *dir=NULL;
		osl_getProcessWorkingDir(&dir);
		rtl::OUString absFileUrl;
		osl_getAbsoluteFileURL(dir, arg.pData, &absFileUrl.pData);
		rtl_uString_release(dir);

		// get file simple file access service
		uno::Reference<com::sun::star::ucb::XSimpleFileAccess> xFileAccess(
=====================================================================
Found a 45 line (166 tokens) duplication in the following files: 
Starting at line 153 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx

 	setErrorRecorder();

	pMngr = pSecEnv->createKeysManager() ; //i39448
	if( !pMngr ) {
		throw RuntimeException() ;
	}

	//Create Signature context
	pDsigCtx = xmlSecDSigCtxCreate( pMngr ) ;
	if( pDsigCtx == NULL )
	{
		pSecEnv->destroyKeysManager( pMngr ) ; //i39448
		//throw XMLSignatureException() ;
		clearErrorRecorder();
		return aTemplate;
	}

	//Sign the template
	if( xmlSecDSigCtxSign( pDsigCtx , pNode ) == 0 ) 
	{
        if (pDsigCtx->status == xmlSecDSigStatusSucceeded)
            aTemplate->setStatus(com::sun::star::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED);
        else
            aTemplate->setStatus(com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN);
	}
    else
	{
        aTemplate->setStatus(com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN);
	}


	xmlSecDSigCtxDestroy( pDsigCtx ) ;
	pSecEnv->destroyKeysManager( pMngr ) ; //i39448

	//Unregistered the stream/URI binding
	if( xUriBinding.is() )
		xmlUnregisterStreamInputCallbacks() ;

	clearErrorRecorder();
	return aTemplate ;
}

/* XXMLSignature */
Reference< XXMLSignatureTemplate >
SAL_CALL XMLSignature_NssImpl :: validate(
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkdata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movedata_mask.h

static char movedata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xe0, 0x01, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/linkdata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movedata_curs.h

static char movedata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydlnk_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movedlnk_mask.h

static char movedlnk_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0xf8, 0xe3, 0x01, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydlnk_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movedlnk_curs.h

static char movedlnk_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0xf0, 0x81, 0x00, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movedata_mask.h

static char movedata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xe0, 0x01, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movedata_curs.h

static char movedata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00,
=====================================================================
Found a 39 line (166 tokens) duplication in the following files: 
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_contentcaps.cxx
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

            static const beans::Property aFolderPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                ),
                ///////////////////////////////////////////////////////////////
                // Optional standard properties
                ///////////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "MediaType" ) ),
=====================================================================
Found a 27 line (166 tokens) duplication in the following files: 
Starting at line 1215 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1211 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

uno::Sequence< uno::Any > Content::setPropertyValues(
        const uno::Sequence< beans::PropertyValue >& rValues,
        const uno::Reference< ucb::XCommandEnvironment > & xEnv )
    throw( uno::Exception )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );

    uno::Sequence< uno::Any > aRet( rValues.getLength() );
    uno::Sequence< beans::PropertyChangeEvent > aChanges( rValues.getLength() );
	sal_Int32 nChanged = 0;

    beans::PropertyChangeEvent aEvent;
    aEvent.Source         = static_cast< cppu::OWeakObject * >( this );
	aEvent.Further 		  = sal_False;
//	aEvent.PropertyName	  =
	aEvent.PropertyHandle = -1;
//	aEvent.OldValue		  =
//	aEvent.NewValue       =

    const beans::PropertyValue* pValues = rValues.getConstArray();
	sal_Int32 nCount = rValues.getLength();

    uno::Reference< ucb::XPersistentPropertySet > xAdditionalPropSet;
	sal_Bool bTriedToGetAdditonalPropSet = sal_False;

	sal_Bool bExchange = sal_False;
    rtl::OUString aOldTitle;
=====================================================================
Found a 39 line (166 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 1374 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static beans::Property aLinkPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard properties
                ///////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TargetURL" ) ),
=====================================================================
Found a 21 line (166 tokens) duplication in the following files: 
Starting at line 1146 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/pormulti.cxx
Starting at line 1290 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/pormulti.cxx

			if( lcl_HasRotation( *pTmp, pRotate, bTwo ) )
			{
				if( bTwo == bOn )
				{
					if( aEnd[ aEnd.Count()-1 ] < *pTmp->GetEnd() )
						aEnd[ aEnd.Count()-1 ] = *pTmp->GetEnd();
				}
				else
				{
					bOn = bTwo;
					if( aEnd[ aEnd.Count()-1 ] > *pTmp->GetEnd() )
						aEnd.Insert( *pTmp->GetEnd(), aEnd.Count() );
					else if( aEnd.Count() > 1 )
						aEnd.Remove( aEnd.Count()-1, 1 );
					else
						aEnd[ aEnd.Count()-1 ] = *pTmp->GetEnd();
				}
			}
		}
		if( bOn && aEnd.Count() )
			rPos = aEnd[ aEnd.Count()-1 ];
=====================================================================
Found a 22 line (166 tokens) duplication in the following files: 
Starting at line 4306 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/paintfrm.cxx
Starting at line 4345 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/paintfrm.cxx

        {
            SwRect aPaintRect( aRect );
            ::SwAlignRect( aPaintRect, _rFrm.GetShell() );
            // if <SwAlignRect> reveals rectangle with no width, adjust
            // rectangle to the prior top postion with width of one twip.
            if ( (aPaintRect.*_rRectFn->fnGetHeight)() == 0 )
            {
                if ( _bTop )
                {
                    (aPaintRect.*_rRectFn->fnSetTop)( (aRect.*_rRectFn->fnGetTop)() );
                    (aPaintRect.*_rRectFn->fnSetBottom)( (aRect.*_rRectFn->fnGetTop)() );
                    (aPaintRect.*_rRectFn->fnAddBottom)( 1 );
                }
                else
                {
                    (aPaintRect.*_rRectFn->fnSetTop)( (aRect.*_rRectFn->fnGetBottom)() - 1 );
                    (aPaintRect.*_rRectFn->fnSetBottom)( (aRect.*_rRectFn->fnGetBottom)() - 1 );
                    (aPaintRect.*_rRectFn->fnAddBottom)( 1 );
                }
            }
            _rFrm.PaintBorderLine( _rRect, aPaintRect, &_rPage, &pTopBottomBorder->GetColor() );
        }
=====================================================================
Found a 22 line (166 tokens) duplication in the following files: 
Starting at line 4202 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/paintfrm.cxx
Starting at line 4242 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/paintfrm.cxx

        {
            SwRect aPaintRect( aRect );
            ::SwAlignRect( aPaintRect, _rFrm.GetShell() );
            // if <SwAlignRect> reveals rectangle with no width, adjust
            // rectangle to the prior left postion with width of one twip.
            if ( (aPaintRect.*_rRectFn->fnGetWidth)() == 0 )
            {
                if ( _bLeft )
                {
                    (aPaintRect.*_rRectFn->fnSetLeft)( (aRect.*_rRectFn->fnGetLeft)() );
                    (aPaintRect.*_rRectFn->fnSetRight)( (aRect.*_rRectFn->fnGetLeft)() );
                    (aPaintRect.*_rRectFn->fnAddRight)( 1 );
                }
                else
                {
                    (aPaintRect.*_rRectFn->fnSetLeft)( (aRect.*_rRectFn->fnGetRight)() - 1 );
                    (aPaintRect.*_rRectFn->fnSetRight)( (aRect.*_rRectFn->fnGetRight)() - 1 );
                    (aPaintRect.*_rRectFn->fnAddRight)( 1 );
                }
            }
            _rFrm.PaintBorderLine( _rRect, aPaintRect, &_rPage, &pLeftRightBorder->GetColor() );
        }
=====================================================================
Found a 26 line (166 tokens) duplication in the following files: 
Starting at line 4845 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4423 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	0x80000000, 0x80000000,
	NULL, 0
};

static const SvxMSDffVertPair mso_sptFlowChartExtractVert[] =
{
	{ 10800, 0 }, { 21600, 21600 }, { 0, 21600 }, { 10800, 0 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartExtractTextRect[] = 
{
	{ { 5400, 10800 }, { 16200, 21600 } }
};
static const SvxMSDffVertPair mso_sptFlowChartExtractGluePoints[] =
{
	{ 10800, 0 }, { 5400, 10800 }, { 10800, 21600 }, { 16200, 10800 }
};
static const mso_CustomShape msoFlowChartExtract =
{
	(SvxMSDffVertPair*)mso_sptFlowChartExtractVert, sizeof( mso_sptFlowChartExtractVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartExtractTextRect, sizeof( mso_sptFlowChartExtractTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartExtractGluePoints, sizeof( mso_sptFlowChartExtractGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 19 line (166 tokens) duplication in the following files: 
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuoaprms.cxx
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuoaprms.cxx

		if (pInfo)
		{
			bActive         = pInfo->mbActive;          nAnimationSet       = ATTR_SET;
			eEffect         = pInfo->meEffect;          nEffectSet          = ATTR_SET;
			eTextEffect     = pInfo->meTextEffect;      nTextEffectSet      = ATTR_SET;
			eSpeed          = pInfo->meSpeed;           nSpeedSet           = ATTR_SET;
			bFadeOut        = pInfo->mbDimPrevious;     nFadeOutSet         = ATTR_SET;
			aFadeColor      = pInfo->maDimColor;        nFadeColorSet       = ATTR_SET;
			bInvisible      = pInfo->mbDimHide;         nInvisibleSet       = ATTR_SET;
			bSoundOn        = pInfo->mbSoundOn;         nSoundOnSet         = ATTR_SET;
			aSound          = pInfo->maSoundFile;       nSoundFileSet       = ATTR_SET;
			bPlayFull       = pInfo->mbPlayFull;        nPlayFullSet        = ATTR_SET;
			eClickAction    = pInfo->meClickAction;     nClickActionSet     = ATTR_SET;
			aBookmark       = pInfo->maBookmark;        nBookmarkSet        = ATTR_SET;
			eSecondEffect   = pInfo->meSecondEffect;    nSecondEffectSet    = ATTR_SET;
			eSecondSpeed    = pInfo->meSecondSpeed;     nSecondSpeedSet     = ATTR_SET;
			bSecondSoundOn  = pInfo->mbSecondSoundOn;   nSecondSoundOnSet   = ATTR_SET;
			bSecondPlayFull = pInfo->mbSecondPlayFull;  nSecondPlayFullSet  = ATTR_SET;
		}
=====================================================================
Found a 25 line (166 tokens) duplication in the following files: 
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 907 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx

	delete pFilterBox;
	delete pFilterFloat;

	USHORT i;
	ScDocument* pDoc = pViewData->GetDocument();
	SCTAB nTab = pViewData->GetTabNo();
	BOOL bLayoutRTL = pDoc->IsLayoutRTL( nTab );

	long nSizeX  = 0;
	long nSizeY  = 0;
	long nHeight = 0;
	pViewData->GetMergeSizePixel( nCol, nRow, nSizeX, nSizeY );
	Point aPos = pViewData->GetScrPos( nCol, nRow, eWhich );
	if ( bLayoutRTL )
		aPos.X() -= nSizeX;

	Rectangle aCellRect( OutputToScreenPixel(aPos), Size(nSizeX,nSizeY) );

	aPos.X() -= 1;
	aPos.Y() += nSizeY - 1;

	pFilterFloat = new ScFilterFloatingWindow( this, WinBits(WB_BORDER) );		// nicht resizable etc.
	pFilterFloat->SetPopupModeEndHdl( LINK( this, ScGridWindow, PopupModeEndHdl ) );
	pFilterBox = new ScFilterListBox(
		pFilterFloat, this, nCol, nRow, bDataSelect ? SC_FILTERBOX_DATASELECT : SC_FILTERBOX_FILTER );
=====================================================================
Found a 20 line (166 tokens) duplication in the following files: 
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx
Starting at line 1667 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

			SCTAB nTabCount = pDoc->GetTableCount();
			pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
			ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab );
			if (pTable)
			{
				pUndoTab = new ScOutlineTable( *pTable );

				SCCOLROW nOutStartCol;							// Zeilen/Spaltenstatus
				SCCOLROW nOutStartRow;
				SCCOLROW nOutEndCol;
				SCCOLROW nOutEndRow;
				pTable->GetColArray()->GetRange( nOutStartCol, nOutEndCol );
				pTable->GetRowArray()->GetRange( nOutStartRow, nOutEndRow );

				pUndoDoc->InitUndo( pDoc, nTab, nTab, TRUE, TRUE );
				pDoc->CopyToDocument( static_cast<SCCOL>(nOutStartCol), 0, nTab, static_cast<SCCOL>(nOutEndCol), MAXROW, nTab, IDF_NONE, FALSE, pUndoDoc );
				pDoc->CopyToDocument( 0, nOutStartRow, nTab, MAXCOL, nOutEndRow, nTab, IDF_NONE, FALSE, pUndoDoc );
			}
			else
				pUndoDoc->InitUndo( pDoc, nTab, nTab, FALSE, TRUE );
=====================================================================
Found a 28 line (166 tokens) duplication in the following files: 
Starting at line 479 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/shapeuno.cxx
Starting at line 575 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/shapeuno.cxx

    else if ( aNameString.EqualsAscii( SC_UNONAME_VERTPOS ) )
    {
        sal_Int32 nPos = 0;
        if (aValue >>= nPos)
        {
            SdrObject *pObj = GetSdrObject();
		    if (pObj)
		    {
		        ScDrawLayer* pModel = (ScDrawLayer*)pObj->GetModel();
		        SdrPage* pPage = pObj->GetPage();
		        if ( pModel && pPage )
		        {
					SCTAB nTab = 0;
					if ( lcl_GetPageNum( pPage, *pModel, nTab ) )
					{
			            ScDocument* pDoc = pModel->GetDocument();
			            if ( pDoc )
			            {
				            SfxObjectShell* pObjSh = pDoc->GetDocumentShell();
				            if ( pObjSh && pObjSh->ISA(ScDocShell) )
				            {
					            ScDocShell* pDocSh = (ScDocShell*)pObjSh;
                                uno::Reference<drawing::XShape> xShape( mxShapeAgg, uno::UNO_QUERY );
                                if (xShape.is())
                                {
                                    if (ScDrawLayer::GetAnchor(pObj) == SCA_PAGE)
                                    {
                                        awt::Point aPoint = xShape->getPosition();
=====================================================================
Found a 36 line (166 tokens) duplication in the following files: 
Starting at line 639 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fudraw.cxx
Starting at line 629 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/graphctl.cxx

						pView->MoveAllMarked(Size(nX, nY));
					}
				}
				else
				{
					// move handle with index nHandleIndex
					if(pHdl && (nX || nY))
					{
						// now move the Handle (nX, nY)
						Point aStartPoint(pHdl->GetPos());
						Point aEndPoint(pHdl->GetPos() + Point(nX, nY));
						const SdrDragStat& rDragStat = pView->GetDragStat();

						// start dragging
						pView->BegDragObj(aStartPoint, 0, pHdl, 0);

					    if(pView->IsDragObj())
						{
							FASTBOOL bWasNoSnap = rDragStat.IsNoSnap();
							BOOL bWasSnapEnabled = pView->IsSnapEnabled();

							// switch snapping off
							if(!bWasNoSnap)
								((SdrDragStat&)rDragStat).SetNoSnap(TRUE);
							if(bWasSnapEnabled)
								pView->SetSnapEnabled(FALSE);

							pView->MovAction(aEndPoint);
							pView->EndDragObj();

							// restore snap
							if(!bWasNoSnap)
								((SdrDragStat&)rDragStat).SetNoSnap(bWasNoSnap);
							if(bWasSnapEnabled)
								pView->SetSnapEnabled(bWasSnapEnabled);
						}
=====================================================================
Found a 17 line (166 tokens) duplication in the following files: 
Starting at line 1597 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 1015 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/emfwr.cxx

			case META_FLOATTRANSPARENT_ACTION:
			{
				const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pAction;
				
				GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
				Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size		aSrcSize( aTmpMtf.GetPrefSize() );
				const Point		aDestPt( pA->GetPoint() );
				const Size		aDestSize( pA->GetSize() );
				const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long			nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
=====================================================================
Found a 34 line (166 tokens) duplication in the following files: 
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/miscobj.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx

void ODummyEmbeddedObject::PostEvent_Impl( const ::rtl::OUString& aEventName,
											const uno::Reference< uno::XInterface >& /*xSource*/ )
{
	if ( m_pInterfaceContainer )
	{
		::cppu::OInterfaceContainerHelper* pIC = m_pInterfaceContainer->getContainer(
											::getCppuType((const uno::Reference< document::XEventListener >*)0) );
		if( pIC )
		{
			document::EventObject aEvent;
			aEvent.EventName = aEventName;
			aEvent.Source = uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >( this ) );
			// For now all the events are sent as object events
			// aEvent.Source = ( xSource.is() ? xSource
			//					   : uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >( this ) ) );
			::cppu::OInterfaceIteratorHelper aIt( *pIC );
			while( aIt.hasMoreElements() )
        	{
            	try
            	{
                	((document::XEventListener *)aIt.next())->notifyEvent( aEvent );
            	}
            	catch( uno::RuntimeException& )
            	{
                	aIt.remove();
            	}

				// the listener could dispose the object.
				if ( m_bDisposed )
					return;
        	}
		}
	}
}
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/movedata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_mask.h

static char copydata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xf8, 0x3f, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/movedata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_curs.h

static char copydata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/linkdata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/movedata_mask.h

static char movedata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xe0, 0x01, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/linkdata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/movedata_curs.h

static char movedata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/copydata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/movedata_mask.h

static char movedata_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x3c, 0xe0, 0x01, 0x00,
=====================================================================
Found a 8 line (166 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/copydata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/movedata_curs.h

static char movedata_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00,
=====================================================================
Found a 26 line (166 tokens) duplication in the following files: 
Starting at line 390 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 683 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

::com::sun::star::util::Time SAL_CALL java_sql_ResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
	jobject out(0);
    SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
	if( t.pEnv )
	{
		// temporaere Variable initialisieren
		static const char * cSignature = "(I)Ljava/sql/Time;";
		static const char * cMethodName = "getTime";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID, columnIndex);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			// und aufraeumen
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return out ? static_cast <com::sun::star::util::Time> (java_sql_Time( t.pEnv, out )) : ::com::sun::star::util::Time();
}
// -------------------------------------------------------------------------


::com::sun::star::util::DateTime SAL_CALL java_sql_ResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
=====================================================================
Found a 17 line (166 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx

		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("VARCHAR"));
		aRow[2] = new ORowSetValueDecorator(DataType::VARCHAR);
		aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
		aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
=====================================================================
Found a 46 line (166 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx
Starting at line 1076 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

	OString hFileName = createFileNameFromType(outPath, tmpName, ".idl");

	sal_Bool bFileExists = sal_False;
	sal_Bool bFileCheck = sal_False;

	if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
	{
		bFileExists = fileExists( hFileName );
		ret = sal_True;
	}

	if ( bFileExists && pOptions->isValid("-Gc") )
	{
		tmpFileName	 = createFileNameFromType(outPath, m_typeName, ".tml");
		bFileCheck = sal_True;
	}

	if ( !bFileExists || bFileCheck )
	{
		FileStream hFile;

		if ( bFileCheck )
			hFile.open(tmpFileName);
		else
			hFile.open(hFileName);

		if(!hFile.isValid())
		{
			OString message("cannot open ");
			message += hFileName + " for writing";
			throw CannotDumpException(message);
		}

		ret = dumpHFile(hFile);

		hFile.close();
		if (ret && bFileCheck)
		{
			ret = checkFileContent(hFileName, tmpFileName);
		}
	}

	return ret;
}

sal_Bool ModuleType::dumpHFile(FileStream& o)
=====================================================================
Found a 37 line (166 tokens) duplication in the following files: 
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			    pCppStack += sizeof(sal_Int32); // extra long
			default:
			    break;
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 35 line (165 tokens) duplication in the following files: 
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx
Starting at line 721 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx

	{ XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_ATACTION_COPY,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_TOP, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_RIGHT, XML_ATACTION_INCH2IN,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_SHADOW, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS },
	{ XML_NAMESPACE_FO, XML_KEEP_WITH_NEXT, XML_PTACTION_KEEP_WITH_NEXT,
=====================================================================
Found a 26 line (165 tokens) duplication in the following files: 
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/EventOOoTContext.cxx
Starting at line 1430 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/Oasis2OOo.cxx

	sal_Int16 nLeaderText = -1;
	Reference< XAttributeList > xAttrList( rAttrList );
	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName,
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
			if( !pMutableAttrList )
			{
				pMutableAttrList =
					new XMLMutableAttributeList( xAttrList );
				xAttrList = pMutableAttrList;
			}
			const OUString& rAttrValue = xAttrList->getValueByIndex( i );
			switch( (*aIter).second.m_nActionType )
			{
			case XML_ATACTION_REMOVE:
=====================================================================
Found a 27 line (165 tokens) duplication in the following files: 
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartOASISTContext.cxx
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartOOoTContext.cxx

	sal_Int16 nClassName = -1;
	OUString aAddInName;
	Reference< XAttributeList > xAttrList( rAttrList );
	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
			if( !pMutableAttrList )
			{
				pMutableAttrList = 
						new XMLMutableAttributeList( xAttrList );
				xAttrList = pMutableAttrList;
			}
			const OUString& rAttrValue = xAttrList->getValueByIndex( i );
			switch( (*aIter).second.m_nActionType )
			{
			case XML_ATACTION_INCH2IN:
=====================================================================
Found a 50 line (165 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/helpprovider/helpcontentprovider.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/treeview/tvfactory.cxx

	Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}



//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
	(void)ppEnv;

	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}



//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	(void)pServiceManager;

	return pRegistryKey && writeInfo( pRegistryKey,
=====================================================================
Found a 47 line (165 tokens) duplication in the following files: 
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 634 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const ucb::CommandInfo aRootCommandInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                -1,
                getCppuType(
                    static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
            )
            ///////////////////////////////////////////////////////////
            // New commands
            ///////////////////////////////////////////////////////////
        };
        return uno::Sequence<
                ucb::CommandInfo >( aRootCommandInfoTable, 5 );
=====================================================================
Found a 45 line (165 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static const ucb::CommandInfo aFolderCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                    -1,
                    getCppuBooleanType()
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
                    -1,
                    getCppuVoidType()
                ),
=====================================================================
Found a 9 line (165 tokens) duplication in the following files: 
Starting at line 2329 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2463 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffVertPair mso_sptActionButtonMovieVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 },	{ 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0x14 MSO_I, 0x12 MSO_I },
=====================================================================
Found a 11 line (165 tokens) duplication in the following files: 
Starting at line 1882 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 1991 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffVertPair mso_sptActionButtonInformationVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I },

	{ 0x12 MSO_I, 0x14 MSO_I }, { 0x16 MSO_I, 0x18 MSO_I },
=====================================================================
Found a 9 line (165 tokens) duplication in the following files: 
Starting at line 2607 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2743 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptActionButtonMovieVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 },	{ 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0x14 MSO_I, 0x12 MSO_I },
=====================================================================
Found a 20 line (165 tokens) duplication in the following files: 
Starting at line 1252 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1132 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	0x80000000, 0x80000000,
	NULL, 0
};

static const SvxMSDffVertPair mso_sptStripedRightArrowVert[] =	// adjustment1 : x 3375 - 21600
{																// adjustment2 : y 0 - 10800
	{ 3375,	0 MSO_I }, { 1 MSO_I, 0 MSO_I }, { 1 MSO_I, 0 }, { 21600, 10800 },
	{ 1 MSO_I, 21600 },	{ 1 MSO_I, 2 MSO_I }, { 3375, 2 MSO_I }, { 0, 0 MSO_I },
	{ 675, 0 MSO_I }, { 675, 2 MSO_I }, { 0, 2 MSO_I }, { 1350, 0 MSO_I },
	{ 2700, 0 MSO_I }, { 2700, 2 MSO_I }, { 1350, 2 MSO_I }
};
static const sal_uInt16 mso_sptStripedRightArrowSegm[] =
{
	0x4000, 0x0006, 0x6001,	0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptStripedRightArrowCalc[] =
{
	{ 0x2000, DFF_Prop_adjust2Value, 0, 0 },
=====================================================================
Found a 33 line (165 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/bmpmaker/bmp.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/bmpmaker/bmpsum.cxx

BOOL BmpSum::GetCommandOptions( const ::std::vector< String >& rArgs, const String& rSwitch, ::std::vector< String >& rParams )
{
	BOOL bRet = FALSE;

	for( int i = 0, nCount = rArgs.size(); ( i < nCount ); i++ )
	{
		String	aTestStr( '-' );

		for( int n = 0; ( n < 2 ) && !bRet; n++ )
		{
			aTestStr += rSwitch;

			if( aTestStr.CompareIgnoreCaseToAscii( rArgs[ i ] ) == COMPARE_EQUAL )
			{
				if( i < ( nCount - 1 ) )
					rParams.push_back( rArgs[ i + 1 ] );
				else
					rParams.push_back( String() );
			
			    break;
			}

			if( 0 == n )
				aTestStr = '/';
		}
	}

	return( rParams.size() > 0 );
}

// -----------------------------------------------------------------------

void BmpSum::Message( const String& rText, BYTE nExitCode )
=====================================================================
Found a 47 line (165 tokens) duplication in the following files: 
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuconrec.cxx
Starting at line 1037 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconrec.cxx

					DBG_ERROR("Object is NO connector object");
				}

				break;
			}
			case SID_DRAW_CAPTION:
			case SID_DRAW_CAPTION_VERTICAL:
			{
				if(pObj->ISA(SdrCaptionObj))
				{
					sal_Bool bIsVertical(SID_DRAW_CAPTION_VERTICAL == nID);

					((SdrTextObj*)pObj)->SetVerticalWriting(bIsVertical);

					if(bIsVertical)
					{
						SfxItemSet aSet(pObj->GetMergedItemSet());
						aSet.Put(SdrTextVertAdjustItem(SDRTEXTVERTADJUST_CENTER));
						aSet.Put(SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_RIGHT));
						pObj->SetMergedItemSet(aSet);
					}

                    // For task #105815# the default text is not inserted anymore.
                    //	String aText(SdResId(STR_POOLSHEET_TEXT));
                    //	((SdrCaptionObj*)pObj)->SetText(aText);

					((SdrCaptionObj*)pObj)->SetLogicRect(aRect);
					((SdrCaptionObj*)pObj)->SetTailPos(
						aRect.TopLeft() - Point(aRect.GetWidth() / 2, aRect.GetHeight() / 2));
				}
				else
				{
					DBG_ERROR("Object is NO caption object");
				}

				break;
			}

			default:
			{
				pObj->SetLogicRect(aRect);

				break;
			}
		}

		SfxItemSet aAttr(mpDoc->GetPool());
=====================================================================
Found a 17 line (165 tokens) duplication in the following files: 
Starting at line 831 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column2.cxx
Starting at line 996 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column2.cxx

				double nRealOrient = nRotate * F_PI18000;	// nRotate sind 1/100 Grad
				double nCosAbs = fabs( cos( nRealOrient ) );
				double nSinAbs = fabs( sin( nRealOrient ) );
				long nHeight = (long)( aSize.Height() * nCosAbs + aSize.Width() * nSinAbs );
				long nWidth;
				if ( eRotMode == SVX_ROTATE_MODE_STANDARD )
					nWidth  = (long)( aSize.Width() * nCosAbs + aSize.Height() * nSinAbs );
				else if ( rOptions.bTotalSize )
				{
					nWidth = (long) ( pDocument->GetColWidth( nCol,nTab ) * nPPT );
					bAddMargin = FALSE;
					if ( pPattern->GetRotateDir( pCondSet ) == SC_ROTDIR_RIGHT )
						nWidth += (long)( pDocument->GetRowHeight( nRow,nTab ) *
											nPPT * nCosAbs / nSinAbs );
				}
				else
					nWidth  = (long)( aSize.Height() / nSinAbs );	//! begrenzen?
=====================================================================
Found a 29 line (165 tokens) duplication in the following files: 
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/file.cxx
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/SysShExec.cxx

        {  ERROR_NO_MORE_FILES,          osl_File_E_NOENT    },  /* 18 */
        {  ERROR_LOCK_VIOLATION,         osl_File_E_ACCES    },  /* 33 */
        {  ERROR_BAD_NETPATH,            osl_File_E_NOENT    },  /* 53 */
        {  ERROR_NETWORK_ACCESS_DENIED,  osl_File_E_ACCES    },  /* 65 */
        {  ERROR_BAD_NET_NAME,           osl_File_E_NOENT    },  /* 67 */
        {  ERROR_FILE_EXISTS,            osl_File_E_EXIST    },  /* 80 */
        {  ERROR_CANNOT_MAKE,            osl_File_E_ACCES    },  /* 82 */
        {  ERROR_FAIL_I24,               osl_File_E_ACCES    },  /* 83 */
        {  ERROR_INVALID_PARAMETER,      osl_File_E_INVAL    },  /* 87 */
        {  ERROR_NO_PROC_SLOTS,          osl_File_E_AGAIN    },  /* 89 */
        {  ERROR_DRIVE_LOCKED,           osl_File_E_ACCES    },  /* 108 */
        {  ERROR_BROKEN_PIPE,            osl_File_E_PIPE     },  /* 109 */
        {  ERROR_DISK_FULL,              osl_File_E_NOSPC    },  /* 112 */
        {  ERROR_INVALID_TARGET_HANDLE,  osl_File_E_BADF     },  /* 114 */
        {  ERROR_INVALID_HANDLE,         osl_File_E_INVAL    },  /* 124 */
        {  ERROR_WAIT_NO_CHILDREN,       osl_File_E_CHILD    },  /* 128 */
        {  ERROR_CHILD_NOT_COMPLETE,     osl_File_E_CHILD    },  /* 129 */
        {  ERROR_DIRECT_ACCESS_HANDLE,   osl_File_E_BADF     },  /* 130 */
        {  ERROR_NEGATIVE_SEEK,          osl_File_E_INVAL    },  /* 131 */
        {  ERROR_SEEK_ON_DEVICE,         osl_File_E_ACCES    },  /* 132 */
        {  ERROR_DIR_NOT_EMPTY,          osl_File_E_NOTEMPTY },  /* 145 */
        {  ERROR_NOT_LOCKED,             osl_File_E_ACCES    },  /* 158 */
        {  ERROR_BAD_PATHNAME,           osl_File_E_NOENT    },  /* 161 */
        {  ERROR_MAX_THRDS_REACHED,      osl_File_E_AGAIN    },  /* 164 */
        {  ERROR_LOCK_FAILED,            osl_File_E_ACCES    },  /* 167 */
        {  ERROR_ALREADY_EXISTS,         osl_File_E_EXIST    },  /* 183 */
        {  ERROR_FILENAME_EXCED_RANGE,   osl_File_E_NOENT    },  /* 206 */
        {  ERROR_NESTING_NOT_ALLOWED,    osl_File_E_AGAIN    },  /* 215 */
        {  ERROR_NOT_ENOUGH_QUOTA,       osl_File_E_NOMEM    }    /* 1816 */
=====================================================================
Found a 43 line (165 tokens) duplication in the following files: 
Starting at line 557 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sspellimp.cxx

			const Reference< XMultiServiceFactory > & rSMgr )
		throw(Exception)
{
	Reference< XInterface > xService = (cppu::OWeakObject*) new SpellChecker;
	return xService;
}
    
	
sal_Bool SAL_CALL 
	SpellChecker::addLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxLstnr ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;   
	if (!bDisposing && rxLstnr.is())
	{
		bRes = GetPropHelper().addLinguServiceEventListener( rxLstnr );
	}
	return bRes;
}


sal_Bool SAL_CALL 
	SpellChecker::removeLinguServiceEventListener( 
			const Reference< XLinguServiceEventListener >& rxLstnr ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );
	
	BOOL bRes = FALSE;   
	if (!bDisposing && rxLstnr.is())
	{
		DBG_ASSERT( xPropHelper.is(), "xPropHelper non existent" );
		bRes = GetPropHelper().removeLinguServiceEventListener( rxLstnr );
	}
	return bRes;
}


OUString SAL_CALL 
	SpellChecker::getServiceDisplayName( const Locale& rLocale ) 
=====================================================================
Found a 27 line (165 tokens) duplication in the following files: 
Starting at line 745 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
Starting at line 525 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/thesaurus/libnth/nthesimp.cxx

sal_uInt16 SAL_CALL Thesaurus::capitalType(const OUString& aTerm, CharClass * pCC)
{
        sal_Int32 tlen = aTerm.getLength();
        if ((pCC) && (tlen)) {
              String aStr(aTerm);
              sal_Int32 nc = 0;
              for (sal_Int32 tindex = 0; tindex < tlen;  tindex++) {
	           if (pCC->getCharacterType(aStr,tindex) & 
                       ::com::sun::star::i18n::KCharacterType::UPPER) nc++;
	      }

              if (nc == 0) return (sal_uInt16) CAPTYPE_NOCAP;

              if (nc == tlen) return (sal_uInt16) CAPTYPE_ALLCAP;

              if ((nc == 1) && (pCC->getCharacterType(aStr,0) & 
                      ::com::sun::star::i18n::KCharacterType::UPPER)) 
                   return (sal_uInt16) CAPTYPE_INITCAP;

              return (sal_uInt16) CAPTYPE_MIXED;
	}
        return (sal_uInt16) CAPTYPE_UNKNOWN;
}



OUString SAL_CALL Thesaurus::makeLowerCase(const OUString& aTerm, CharClass * pCC)
=====================================================================
Found a 10 line (165 tokens) duplication in the following files: 
Starting at line 1278 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  1,  0,  1,  0,  0,  	0,  0,  0,  0,  0,	  	// <, >
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,  // 100 - 149
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
=====================================================================
Found a 7 line (165 tokens) duplication in the following files: 
Starting at line 1079 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1133 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0be0 - 0bef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bf0 - 0bff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c00 - 0c0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c10 - 0c1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c20 - 0c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,// 0c30 - 0c3f
=====================================================================
Found a 8 line (165 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1078 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13,13,13,13,17,17,17,17,17,17,17,17,17,17,// 07a0 - 07af
    17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07f0 - 07ff

     0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0900 - 090f
=====================================================================
Found a 6 line (165 tokens) duplication in the following files: 
Starting at line 662 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 844 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// faa0 - faaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fab0 - fabf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fac0 - facf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fad0 - fadf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fae0 - faef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// faf0 - faff
=====================================================================
Found a 6 line (165 tokens) duplication in the following files: 
Starting at line 564 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 600 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2540 - 254f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2550 - 255f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2560 - 256f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2570 - 257f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2580 - 258f
    27,27,27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2590 - 259f
=====================================================================
Found a 6 line (165 tokens) duplication in the following files: 
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1450 - 145f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1460 - 146f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1470 - 147f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1480 - 148f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1490 - 149f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14a0 - 14af
=====================================================================
Found a 8 line (165 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27, 6,27,27,27,27,27,27, 0, 0,27,// 0fc0 - 0fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fd0 - 0fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fe0 - 0fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ff0 - 0fff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1000 - 100f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1010 - 101f
     5, 5, 0, 5, 5, 5, 5, 5, 0, 5, 5, 0, 8, 6, 6, 6,// 1020 - 102f
=====================================================================
Found a 6 line (165 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5,// 11a0 - 11af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 11b0 - 11bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 11c0 - 11cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 11d0 - 11df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 11e0 - 11ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0,// 11f0 - 11ff
=====================================================================
Found a 5 line (165 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0510 - 0517
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0518 - 051f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0520 - 0527
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0528 - 052f
    {0x00, 0x0000}, {0x6a, 0x0561}, {0x6a, 0x0562}, {0x6a, 0x0563}, {0x6a, 0x0564}, {0x6a, 0x0565}, {0x6a, 0x0566}, {0x6a, 0x0567}, // 0530 - 0537
=====================================================================
Found a 6 line (165 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1244 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 33 line (165 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/actmeta.cxx
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/actmeta.cxx

void CGMMetaOutAct::DrawPolyLine( Polygon& rPolygon )
{
	sal_uInt32			nColor;

	if ( mpCGM->pElement->nAspectSourceFlags & ASF_LINETYPE )
		nColor = mpCGM->pElement->pLineBundle->GetColor();
	else
		nColor = mpCGM->pElement->aLineBundle.GetColor();

	mpCGM->mpVirDev->SetLineColor( BMCOL( nColor ) );

	FillInteriorStyle eFillStyle;
	if ( mpCGM->pElement->nAspectSourceFlags & ASF_FILLINTERIORSTYLE )
	{
		nColor = mpCGM->pElement->pFillBundle->GetColor();
		eFillStyle = mpCGM->pElement->pFillBundle->eFillInteriorStyle;
	}
	else
	{
		nColor = mpCGM->pElement->aFillBundle.GetColor();
		eFillStyle = mpCGM->pElement->aFillBundle.eFillInteriorStyle;
	}

	mpCGM->mpVirDev->SetFillColor( BMCOL( nColor ) );
	switch ( eFillStyle )
	{
		case FIS_EMPTY :
			mpCGM->mpVirDev->SetDrawMode( DRAWMODE_NOFILL );
			break;
		default:
			mpCGM->mpVirDev->SetDrawMode( DRAWMODE_DEFAULT );
	}
	mpCGM->mpVirDev->DrawPolyLine( rPolygon );
=====================================================================
Found a 30 line (165 tokens) duplication in the following files: 
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/controlmenucontroller.cxx
Starting at line 913 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarsmenucontroller.cxx

void SAL_CALL ToolbarsMenuController::initialize( const Sequence< Any >& aArguments ) throw ( Exception, RuntimeException )
{
    const rtl::OUString aFrameName( RTL_CONSTASCII_USTRINGPARAM( "Frame" ));
    const rtl::OUString aCommandURLName( RTL_CONSTASCII_USTRINGPARAM( "CommandURL" ));

    ResetableGuard aLock( m_aLock );
    
    sal_Bool bInitalized( m_bInitialized );
    if ( !bInitalized )
    {
        PropertyValue       aPropValue;
        rtl::OUString       aCommandURL;
        Reference< XFrame > xFrame;
        
        for ( int i = 0; i < aArguments.getLength(); i++ )
        {
            if ( aArguments[i] >>= aPropValue )
            {
                if ( aPropValue.Name.equalsAscii( "Frame" ))
                    aPropValue.Value >>= xFrame;
                else if ( aPropValue.Name.equalsAscii( "CommandURL" ))
                    aPropValue.Value >>= aCommandURL;
            }
        }

        if ( xFrame.is() && aCommandURL.getLength() )
        {
            m_xFrame        = xFrame;
            m_aCommandURL   = aCommandURL;
            m_bInitialized  = true;
=====================================================================
Found a 19 line (165 tokens) duplication in the following files: 
Starting at line 1146 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 934 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uiconfigurationmanager.cxx

void SAL_CALL UIConfigurationManager::replaceSettings( const ::rtl::OUString& ResourceURL, const Reference< ::com::sun::star::container::XIndexAccess >& aNewData ) 
throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
    sal_Int16 nElementType = RetrieveTypeFromResourceURL( ResourceURL );
    
    if (( nElementType == ::com::sun::star::ui::UIElementType::UNKNOWN ) || 
        ( nElementType >= ::com::sun::star::ui::UIElementType::COUNT   ))
        throw IllegalArgumentException();
    else if ( m_bReadOnly )
        throw IllegalAccessException();
    else
    {
        ResetableGuard aGuard( m_aLock );
        
        if ( m_bDisposed )
            throw DisposedException();

        UIElementData* pDataSettings = impl_findUIElementData( ResourceURL, nElementType );
        if ( pDataSettings && !pDataSettings->bDefault )
=====================================================================
Found a 15 line (165 tokens) duplication in the following files: 
Starting at line 1598 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

				{
					const MetaFloatTransparentAction*	pA = (const MetaFloatTransparentAction*) pAction;
					GDIMetaFile							aTmpMtf( pA->GetGDIMetaFile() );
					Point								aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
					const Size							aSrcSize( aTmpMtf.GetPrefSize() );
					const Point							aDestPt( pA->GetPoint() );
					const Size							aDestSize( pA->GetSize() );
					const double						fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
					const double						fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
					long								nMoveX, nMoveY;

					if( fScaleX != 1.0 || fScaleY != 1.0 )
					{
						aTmpMtf.Scale( fScaleX, fScaleY );
						aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
=====================================================================
Found a 45 line (165 tokens) duplication in the following files: 
Starting at line 632 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx

void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
	switch(nHandle)
	{
		case PROPERTY_ID_QUERYTIMEOUT:
		case PROPERTY_ID_MAXFIELDSIZE:
		case PROPERTY_ID_MAXROWS:
		case PROPERTY_ID_CURSORNAME:
		case PROPERTY_ID_RESULTSETCONCURRENCY:
		case PROPERTY_ID_RESULTSETTYPE:
		case PROPERTY_ID_FETCHDIRECTION:
		case PROPERTY_ID_FETCHSIZE:
		case PROPERTY_ID_ESCAPEPROCESSING:
		case PROPERTY_ID_USEBOOKMARKS:
		default:
			;
	}
}
// -------------------------------------------------------------------------
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement");
// -----------------------------------------------------------------------------
void SAL_CALL OStatement_Base::acquire() throw()
{
	OStatement_BASE::acquire();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement_Base::release() throw()
{
	OStatement_BASE::release();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement::acquire() throw()
{
	OStatement_BASE2::acquire();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement::release() throw()
{
	OStatement_BASE2::release();
}
// -----------------------------------------------------------------------------
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo(  ) throw(RuntimeException)
{
	return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
=====================================================================
Found a 44 line (165 tokens) duplication in the following files: 
Starting at line 1076 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx
Starting at line 1205 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

	OString hFileName = createFileNameFromType(outPath, m_typeName, ".idl");

	sal_Bool bFileExists = sal_False;
	sal_Bool bFileCheck = sal_False;

	if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
	{
		bFileExists = fileExists( hFileName );
		ret = sal_True;
	}

	if ( bFileExists && pOptions->isValid("-Gc") )
	{
		tmpFileName	 = createFileNameFromType(outPath, m_typeName, ".tml");
		bFileCheck = sal_True;
	}

	if ( !bFileExists || bFileCheck )
	{
		FileStream hFile;

		if ( bFileCheck )
			hFile.open(tmpFileName);
		else
			hFile.open(hFileName);

		if(!hFile.isValid())
		{
			OString message("cannot open ");
			message += hFileName + " for writing";
			throw CannotDumpException(message);
		}

		ret = dumpHFile(hFile);

		hFile.close();
		if (ret && bFileCheck)
		{
			ret = checkFileContent(hFileName, tmpFileName);
		}
	}

	return ret;
}
=====================================================================
Found a 28 line (165 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbamaker.cxx
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunomaker.cxx

		if (options.isValid("-T"))
		{
			OString tOption(options.getOption("-T"));

			OString typeName, tmpName;
			sal_Bool ret = sal_False;
            sal_Int32 nIndex = 0;
            do
			{
				typeName = tOption.getToken(0, ';', nIndex);

                sal_Int32 nPos = typeName.lastIndexOf( '.' );
                tmpName = typeName.copy( nPos != -1 ? nPos+1 : 0 );
				if (tmpName == "*")
				{
					// produce this type and his scope, but the scope is not recursively  generated.
					if (typeName.equals("*"))
					{
						tmpName = "/";
					} else
					{
						tmpName = typeName.copy(0, typeName.lastIndexOf('.')).replace('.', '/');
						if (tmpName.getLength() == 0) 
							tmpName = "/";
						else
							tmpName.replace('.', '/');
					}
					ret = produceAllTypes(tmpName, typeMgr, typeDependencies, &options, sal_False);
=====================================================================
Found a 31 line (165 tokens) duplication in the following files: 
Starting at line 385 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/VLegendSymbolFactory.cxx
Starting at line 468 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/VLegendSymbolFactory.cxx

        tStockLineType eType )
{
    Reference< drawing::XShape > xResult;

    if( ! (xSymbolContainer.is() &&
           xShapeFactory.is()))
        return xResult;

    xResult.set( xShapeFactory->createInstance(
                     C2U( "com.sun.star.drawing.GroupShape" )), uno::UNO_QUERY );
    xSymbolContainer->add( xResult );
    Reference< drawing::XShapes > xResultGroup( xResult, uno::UNO_QUERY );
    if( ! xResultGroup.is())
        return xResult;

    // aspect ratio of symbols is always 3:2
    awt::Size aBoundSize( 3000, 2000 );

    try
    {
        // create bound
        Reference< drawing::XShape > xBound( ShapeFactory(xShapeFactory).createInvisibleRectangle(
            xResultGroup, aBoundSize  ));

        Reference< drawing::XShape > xLine(
            xShapeFactory->createInstance(
                C2U( "com.sun.star.drawing.LineShape" )), uno::UNO_QUERY );
        if( xLine.is())
        {
            xResultGroup->add( xLine );
            xLine->setSize(  awt::Size( 0, 2000 ));
=====================================================================
Found a 17 line (165 tokens) duplication in the following files: 
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx

    Reference< beans::XPropertySet > xPropSet(0);

    Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
    Sequence< Reference< chart2::XChartType > > aTypes(
            ::chart::DiagramHelper::getChartTypesFromDiagram( xDiagram ) );
    for( sal_Int32 nN = 0; nN < aTypes.getLength(); nN++ )
    {
        Reference< chart2::XChartType > xType( aTypes[nN] );
        if( xType->getChartType().equals(CHART2_SERVICE_NAME_CHARTTYPE_CANDLESTICK) )
        {
            Reference< chart2::XDataSeriesContainer > xSeriesContainer(xType,uno::UNO_QUERY);
            if( xSeriesContainer.is() )
            {
                Sequence< Reference< chart2::XDataSeries > > aSeriesSeq( xSeriesContainer->getDataSeries() );
                if(aSeriesSeq.getLength())
                {
                    xPropSet = Reference< beans::XPropertySet >(aSeriesSeq[0],uno::UNO_QUERY);
=====================================================================
Found a 27 line (165 tokens) duplication in the following files: 
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									&pThis->pBridge->aUno2Cpp );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
=====================================================================
Found a 25 line (165 tokens) duplication in the following files: 
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 468 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

        buffer = ::rtl_allocateMemory( ((2+ nSlots) * sizeof (void *)) + (nSlots *20) );
        
        ::std::pair< t_classdata_map::iterator, bool > insertion(
            m_map.insert( t_classdata_map::value_type( unoName, buffer ) ) );
        OSL_ENSURE( insertion.second, "### inserting new vtable buffer failed?!" );
        
        void ** slots = (void **)buffer;
        *slots++ = 0;
        *slots++ = 0; // rtti
        char * code = (char *)(slots + nSlots);
        
        sal_uInt32 vtable_pos = 0;
        sal_Int32 nAllMembers = pTD->nAllMembers;
        typelib_TypeDescriptionReference ** ppAllMembers = pTD->ppAllMembers;
        for ( sal_Int32 nPos = 0; nPos < nAllMembers; ++nPos )
        {
            typelib_TypeDescription * pTD = 0;
            TYPELIB_DANGER_GET( &pTD, ppAllMembers[ nPos ] );
            OSL_ASSERT( pTD );
            if (typelib_TypeClass_INTERFACE_ATTRIBUTE == pTD->eTypeClass)
            {
                bool simple_ret = cppu_isSimpleType(
                    ((typelib_InterfaceAttributeTypeDescription *)pTD)->pAttributeTypeRef->eTypeClass );
                // get method
                *slots++ = code;
=====================================================================
Found a 35 line (165 tokens) duplication in the following files: 
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlgedfunc.cxx
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/graphctl.cxx

					}
				}
				else
				{
					// move handle with index nHandleIndex
					if(pHdl && (nX || nY))
					{
						// now move the Handle (nX, nY)
						Point aStartPoint(pHdl->GetPos());
						Point aEndPoint(pHdl->GetPos() + Point(nX, nY));
						const SdrDragStat& rDragStat = pView->GetDragStat();

						// start dragging
						pView->BegDragObj(aStartPoint, 0, pHdl, 0);

					    if(pView->IsDragObj())
						{
							FASTBOOL bWasNoSnap = rDragStat.IsNoSnap();
							BOOL bWasSnapEnabled = pView->IsSnapEnabled();

							// switch snapping off
							if(!bWasNoSnap)
								((SdrDragStat&)rDragStat).SetNoSnap(TRUE);
							if(bWasSnapEnabled)
								pView->SetSnapEnabled(FALSE);

							pView->MovAction(aEndPoint);
							pView->EndDragObj();

							// restore snap
							if(!bWasNoSnap)
								((SdrDragStat&)rDragStat).SetNoSnap(bWasNoSnap);
							if(bWasSnapEnabled)
								pView->SetSnapEnabled(bWasSnapEnabled);
						}
=====================================================================
Found a 25 line (164 tokens) duplication in the following files: 
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

        span_pattern_resample_rgba(alloc_type& alloc,
                                   const rendering_buffer& src, 
                                   interpolator_type& inter,
                                   const image_filter_lut& filter) :
            base_type(alloc, src, color_type(0,0,0,0), inter, filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg[4];
=====================================================================
Found a 25 line (164 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

        span_pattern_resample_rgba_affine(alloc_type& alloc,
                                          const rendering_buffer& src, 
                                          interpolator_type& inter,
                                          const image_filter_lut& filter_) :
            base_type(alloc, src, color_type(0,0,0,0), inter, filter_),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg[4];
=====================================================================
Found a 31 line (164 tokens) duplication in the following files: 
Starting at line 1538 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 1625 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

Reference< xml::input::XElement > ComboBoxElement::startChildElement(
	sal_Int32 nUid, OUString const & rLocalName,
	Reference< xml::input::XAttributes > const & xAttributes )
	throw (xml::sax::SAXException, RuntimeException)
{
	// event
    if (_pImport->isEventElement( nUid, rLocalName ))
	{
		return new EventElement( nUid, rLocalName, xAttributes, this, _pImport );
	}
	else if (_pImport->XMLNS_DIALOGS_UID != nUid)
	{
		throw xml::sax::SAXException(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
			Reference< XInterface >(), Any() );
	}
	// menupopup
	else if (rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("menupopup") ))
	{
		_popup = new MenuPopupElement( rLocalName, xAttributes, this, _pImport );
		return _popup;
	}
	else
	{
		throw xml::sax::SAXException(
			OUString( RTL_CONSTASCII_USTRINGPARAM("expected event or menupopup element!") ),
			Reference< XInterface >(), Any() );
	}
}
//__________________________________________________________________________________________________
void ComboBoxElement::endElement()
=====================================================================
Found a 26 line (164 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/EventOASISTContext.cxx
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/EventOOoTContext.cxx

	sal_Int16 nMacroName = -1;
	Reference< XAttributeList > xAttrList( rAttrList );
	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
			if( !pMutableAttrList )
			{
				pMutableAttrList = 
						new XMLMutableAttributeList( xAttrList );
				xAttrList = pMutableAttrList;
			}
			const OUString& rAttrValue = xAttrList->getValueByIndex( i );
			switch( (*aIter).second.m_nActionType )
			{
			case XML_ATACTION_HREF:
=====================================================================
Found a 8 line (164 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydlnk_mask.h

static char copydlnk_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0xf8, 0xff, 0x3f, 0x00,
=====================================================================
Found a 6 line (164 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,
 0x00,0x00,0x00,0xf8,0x00,0x00,0x00,0xfc,0x01,0x00,0x00,0xfc,0x09,0x00,0x00,
=====================================================================
Found a 6 line (164 tokens) duplication in the following files: 
Starting at line 42 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_mask.h

 0x3f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 45 line (164 tokens) duplication in the following files: 
Starting at line 433 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 747 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

      	aRet <<= getPropertyValues( Properties, Environment );
    }
    else if ( aCommand.Name.equalsAsciiL(
                  RTL_CONSTASCII_STRINGPARAM( "setPropertyValues" ) ) )
    {
      	//////////////////////////////////////////////////////////////////
      	// setPropertyValues
      	//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::PropertyValue > aProperties;
      	if ( !( aCommand.Argument >>= aProperties ) )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

      	if ( !aProperties.getLength() )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "No properties!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet <<= setPropertyValues( aProperties, Environment );
    }
    else if ( aCommand.Name.equalsAsciiL(
                  RTL_CONSTASCII_STRINGPARAM( "getPropertySetInfo" ) ) )
    {
        //////////////////////////////////////////////////////////////////
        // getPropertySetInfo
        //////////////////////////////////////////////////////////////////

        // Note: Implemented by base class.
        aRet <<= getPropertySetInfo( Environment,
=====================================================================
Found a 51 line (164 tokens) duplication in the following files: 
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

      m_bCountFinal( sal_False ), m_bThrowException( sal_False ) {}
	~DataSupplier_Impl();
};

//=========================================================================
DataSupplier_Impl::~DataSupplier_Impl()
{
	ResultList::const_iterator it  = m_aResults.begin();
	ResultList::const_iterator end = m_aResults.end();

	while ( it != end )
	{
		delete (*it);
		it++;
	}
}

}

//=========================================================================
//=========================================================================
//
// DataSupplier Implementation.
//
//=========================================================================
//=========================================================================

DataSupplier::DataSupplier(
            const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
            const rtl::Reference< Content >& rContent,
            sal_Int32 nOpenMode )
: m_pImpl( new DataSupplier_Impl( rxSMgr, rContent, nOpenMode ) )
{
}

//=========================================================================
// virtual
DataSupplier::~DataSupplier()
{
	delete m_pImpl;
}

//=========================================================================
// virtual
rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        rtl::OUString aId = m_pImpl->m_aResults[ nIndex ]->aId;
=====================================================================
Found a 45 line (164 tokens) duplication in the following files: 
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 747 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

      	aRet <<= getPropertyValues( Properties, Environment );
    }
    else if ( aCommand.Name.equalsAsciiL(
                  RTL_CONSTASCII_STRINGPARAM( "setPropertyValues" ) ) )
    {
      	//////////////////////////////////////////////////////////////////
      	// setPropertyValues
      	//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::PropertyValue > aProperties;
      	if ( !( aCommand.Argument >>= aProperties ) )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

      	if ( !aProperties.getLength() )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "No properties!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet <<= setPropertyValues( aProperties, Environment );
    }
    else if ( aCommand.Name.equalsAsciiL(
                  RTL_CONSTASCII_STRINGPARAM( "getPropertySetInfo" ) ) )
    {
        //////////////////////////////////////////////////////////////////
        // getPropertySetInfo
        //////////////////////////////////////////////////////////////////

        // Note: Implemented by base class.
        aRet <<= getPropertySetInfo( Environment,
=====================================================================
Found a 43 line (164 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
=====================================================================
Found a 30 line (164 tokens) duplication in the following files: 
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/viewopt.cxx
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/viewopt.cxx

    bFormView       = rVOpt.bFormView   ;
    // <--
	nZoom   		= rVOpt.nZoom   	;
	aSnapSize   	= rVOpt.aSnapSize   ;
	nDivisionX  	= rVOpt.nDivisionX  ;
	nDivisionY  	= rVOpt.nDivisionY  ;
	nPagePrevRow	= rVOpt.nPagePrevRow;
	nPagePrevCol	= rVOpt.nPagePrevCol;
    bIsPagePreview  = rVOpt.bIsPagePreview;
	eZoom      		= rVOpt.eZoom       ;
	nTblDest    	= rVOpt.nTblDest    ;
	nUIOptions		= rVOpt.nUIOptions  ;
	nCoreOptions	= rVOpt.nCoreOptions;
	nCore2Options	= rVOpt.nCore2Options;
	aRetoucheColor	= rVOpt.GetRetoucheColor();
	sSymbolFont 	= rVOpt.sSymbolFont;
	nShdwCrsrFillMode = rVOpt.nShdwCrsrFillMode;
	bStarOneSetting = rVOpt.bStarOneSetting;
	bBookview		= rVOpt.bBookview;

#ifndef PRODUCT
	bTest1          = rVOpt.bTest1      ;
	bTest2          = rVOpt.bTest2      ;
	bTest3          = rVOpt.bTest3      ;
	bTest4          = rVOpt.bTest4      ;
	bTest5          = rVOpt.bTest5      ;
	bTest6          = rVOpt.bTest6      ;
	bTest7          = rVOpt.bTest7      ;
	bTest8          = rVOpt.bTest8      ;
	bTest10         = rVOpt.bTest10     ;
=====================================================================
Found a 22 line (164 tokens) duplication in the following files: 
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/writerwordglue.cxx
Starting at line 503 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/dmapper/ConversionHelper.cxx

sal_Int32 SnapPageDimension( sal_Int32 nVal )
{
    static const long aSizes[] =
    {
        lA0Width, lA0Height, lA1Width, lA2Width, lA3Width, lA4Width,
        lA5Width, lB4Width, lB4Height, lB5Width, lB6Width, lC4Width,
        lC4Height, lC5Width, lC6Width, lC65Width, lC65Height, lDLWidth,
        lDLHeight, lJISB4Width, lJISB4Height, lJISB5Width, lJISB6Width,
        lLetterWidth, lLetterHeight, lLegalHeight, lTabloidWidth,
        lTabloidHeight, lDiaWidth, lDiaHeight, lScreenWidth,
        lScreenHeight, lAWidth, lAHeight, lBHeight, lCHeight, lDHeight,
        lEHeight, lExeWidth, lExeHeight, lLegal2Width, lLegal2Height,
        lCom675Width, lCom675Height, lCom9Width, lCom9Height,
        lCom10Width, lCom10Height, lCom11Width, lCom11Height,
        lCom12Width, lMonarchHeight, lKai16Width, lKai16Height,
        lKai32Width, lKai32BigWidth, lKai32BigHeight
    };

    const long nWriggleRoom = 5;
    const long *pEnd = aSizes + sizeof(aSizes) / sizeof(aSizes[0]);
    const long *pEntry =
        std::find_if(aSizes, pEnd, closeenough(nVal, nWriggleRoom));
=====================================================================
Found a 28 line (164 tokens) duplication in the following files: 
Starting at line 3123 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/feshview.cxx
Starting at line 3175 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/feshview.cxx

    bool bRet = false;

    // check, if a draw view exists
    ASSERT( Imp()->GetDrawView(), "wrong usage of SwFEShell::GetShapeBackgrd - no draw view!");
    if( Imp()->GetDrawView() )
    {
        // determine list of selected objects
        const SdrMarkList* pMrkList = &Imp()->GetDrawView()->GetMarkedObjectList();
        // check, if exactly one object is selected.
        ASSERT( pMrkList->GetMarkCount() == 1, "wrong usage of SwFEShell::GetShapeBackgrd - no selected object!");
        if ( pMrkList->GetMarkCount() == 1)
        {
            // get selected object
            const SdrObject *pSdrObj = pMrkList->GetMark( 0 )->GetMarkedSdrObj();
            // check, if selected object is a shape (drawing object)
            ASSERT( !pSdrObj->ISA(SwVirtFlyDrawObj), "wrong usage of SwFEShell::GetShapeBackgrd - selected object is not a drawing object!");
            if ( !pSdrObj->ISA(SwVirtFlyDrawObj) )
            {
                // determine page frame of the frame the shape is anchored.
                const SwFrm* pAnchorFrm =
                        static_cast<SwDrawContact*>(GetUserCall(pSdrObj))->GetAnchorFrm( pSdrObj );
                ASSERT( pAnchorFrm, "inconsistent modell - no anchor at shape!");
                if ( pAnchorFrm )
                {
                    const SwPageFrm* pPageFrm = pAnchorFrm->FindPageFrm();
                    ASSERT( pPageFrm, "inconsistent modell - no page!");
                    if ( pPageFrm )
                    {
=====================================================================
Found a 21 line (164 tokens) duplication in the following files: 
Starting at line 1898 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 5642 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

        0x63, 0x74, 0x00, 0x13, 0x00, 0x00, 0x00, 0x46,
        0x6E, 0x42, 0x75, 0x74, 0x74, 0x6F, 0x6E, 0x2E,
        0x31, 0x00, 0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00
    };

    {
        SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
        xStor->Write(aCompObj,sizeof(aCompObj));
        DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
    }

    {
        SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
        xStor3->Write(aObjInfo,sizeof(aObjInfo));
        DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
    }

    static sal_uInt8 __READONLY_DATA aOCXNAME[] =
    {
=====================================================================
Found a 31 line (164 tokens) duplication in the following files: 
Starting at line 604 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/postuninstall.cxx

extern "C" UINT __stdcall ExecutePostUninstallScript( MSIHANDLE handle )
{
	TCHAR	szValue[8192];
	DWORD	nValueSize = sizeof(szValue);
	HKEY	hKey;
	std::_tstring	sInstDir;
	
	std::_tstring	sProductKey = GetMsiProperty( handle, TEXT("FINDPRODUCT") );

	// MessageBox( NULL, sProductKey.c_str(), "Titel", MB_OK );
	
	if ( ERROR_SUCCESS == RegOpenKey( HKEY_CURRENT_USER,  sProductKey.c_str(), &hKey ) )
	{
		if ( ERROR_SUCCESS == RegQueryValueEx( hKey, TEXT("INSTALLLOCATION"), NULL, NULL, (LPBYTE)szValue, &nValueSize ) )
		{
			sInstDir = szValue;
		}
		RegCloseKey( hKey );
	}
	else if ( ERROR_SUCCESS == RegOpenKey( HKEY_LOCAL_MACHINE,  sProductKey.c_str(), &hKey ) )
	{
		if ( ERROR_SUCCESS == RegQueryValueEx( hKey, TEXT("INSTALLLOCATION"), NULL, NULL, (LPBYTE)szValue, &nValueSize ) )
		{
			sInstDir = szValue;
		}
		RegCloseKey( hKey );
	}
	else
		return ERROR_SUCCESS;

	std::_tstring	sInfFile = sInstDir + TEXT("program\\postuninstall.inf");
=====================================================================
Found a 28 line (164 tokens) duplication in the following files: 
Starting at line 1537 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1796 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
			{
				nActionNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
			else if (IsXMLToken(aLocalName, XML_ACCEPTANCE_STATE))
			{
				if (IsXMLToken(sValue, XML_ACCEPTED))
					nActionState = SC_CAS_ACCEPTED;
				else if (IsXMLToken(sValue, XML_REJECTED))
					nActionState = SC_CAS_REJECTED;
			}
			else if (IsXMLToken(aLocalName, XML_REJECTING_CHANGE_ID))
			{
				nRejectingNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
			else if (IsXMLToken(aLocalName, XML_TYPE))
			{
				if (IsXMLToken(sValue, XML_ROW))
=====================================================================
Found a 29 line (164 tokens) duplication in the following files: 
Starting at line 1654 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx
Starting at line 1781 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx

                CellType eType = pCell->GetCellType();
                BOOL bOk = sal::static_int_cast<BOOL>( (eType == CELLTYPE_FORMULA ?
                    ((ScFormulaCell*)pCell)->GetCode()->GetCodeLen() > 0
                    && ((ScFormulaCell*)pCell)->aPos != aPos    // noIter
                    : TRUE ) );
                if ( bOk && pCell->HasStringData() )
                {
                    String aStr;
                    switch ( eType )
                    {
                        case CELLTYPE_STRING:
                            ((ScStringCell*)pCell)->GetString( aStr );
                        break;
                        case CELLTYPE_FORMULA:
                            ((ScFormulaCell*)pCell)->GetString( aStr );
                        break;
                        case CELLTYPE_EDIT:
                            ((ScEditCell*)pCell)->GetString( aStr );
                        break;
                        case CELLTYPE_NONE:
                        case CELLTYPE_VALUE:
                        case CELLTYPE_NOTE:
                        case CELLTYPE_SYMBOLS:
                        case CELLTYPE_DESTROYED:
                            ;   // nothing, prevent compiler warning
                        break;
                    }
                    if ( ScGlobal::pTransliteration->isEqual( aStr, aName ) )
                    {
=====================================================================
Found a 37 line (164 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/helper/strhelper.cxx
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/helper/strhelper.cxx

    char* pLeap = NULL;
    
    while( *pRun && nActualToken <= nToken )
    {
        while( *pRun && isSpace( *pRun ) )
            pRun++;
        pLeap = pBuffer;
        while( *pRun && ! isSpace( *pRun ) )
        {
            if( *pRun == '\\' )
            {
                // escapement
                pRun++;
                *pLeap = *pRun;
                pLeap++;
                if( *pRun )
                    pRun++;
            }
            else if( *pRun == '`' )
                CopyUntil( pLeap, pRun, '`' );
            else if( *pRun == '\'' )
                CopyUntil( pLeap, pRun, '\'' );
            else if( *pRun == '"' )
                CopyUntil( pLeap, pRun, '"' );
            else
            {
                *pLeap = *pRun;
                pLeap++;
                pRun++;
            }
        }
        if( nActualToken != nToken )
            pBuffer[0] = 0;
        nActualToken++;
    }

    *pLeap = 0;
=====================================================================
Found a 29 line (164 tokens) duplication in the following files: 
Starting at line 1662 of /local/ooo-build/ooo-build/src/oog680-m3/idl/source/objects/slot.cxx
Starting at line 1714 of /local/ooo-build/ooo-build/src/oog680-m3/idl/source/objects/slot.cxx

        rOutStm << "#define " << GetSlotId().GetBuffer() << '\t' << ByteString::CreateFromInt32( nSId ).GetBuffer() << endl;
	}

	SvMetaTypeEnum * pEnum = PTR_CAST( SvMetaTypeEnum, GetType() );
	if( GetPseudoSlots() && pEnum )
	{
		for( ULONG n = 0; n < pEnum->Count(); n++ )
		{
			ByteString aValName = pEnum->GetObject( n )->GetName();
			ByteString aSId( GetSlotId() );
			if( GetPseudoPrefix().Len() )
				aSId = GetPseudoPrefix();
			aSId += '_';
			aSId += aValName.Copy( pEnum->GetPrefix().Len() );

			ULONG nSId2;
			BOOL bIdOk = FALSE;
			if( rBase.FindId( aSId, &nSId2 ) )
			{
                aSId = ByteString::CreateFromInt32( nSId2 );
				bIdOk = TRUE;
			}

			// wenn Id nicht gefunden, immer schreiben
			if( !bIdOk || !pTable->IsKeyValid( nSId2 ) )
			{
				pTable->Insert( nSId2, this );

                rOutStm << "#define " << aSId.GetBuffer() << '\t'
=====================================================================
Found a 22 line (164 tokens) duplication in the following files: 
Starting at line 306 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 756 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

  double bet = b[0];
  u[0] = r[0]/bet;
  int i, j;
  for (i = 0, j = 1; j < n; i++, j++)
  {
    gam[i] = c[i]/bet;
    bet = b[j]-a[i]*gam[i];
    if ( bet == 0 )
    {
      delete[] gam;
      return 0;
    }
    u[j] = (r[j]-a[i]*u[i])/bet;
  }
  for (i = n-1, j = n-2; j >= 0; i--, j--)
    u[j] -= gam[j]*u[i];

  delete[] gam;
  return 1;
}
//---------------------------------------------------------------------------
int mgcLinearSystemD::SolveConstTri (int n, double a, double b, double c,
=====================================================================
Found a 35 line (164 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesconfiguration.cxx
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesconfiguration.cxx

}


// #110897#
sal_Bool ImagesConfiguration::StoreImages( 
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
	SvStream& rOutStream, const ImageListsDescriptor& aItems )
{
	Reference< XDocumentHandler > xWriter( GetSaxWriter( xServiceFactory ) );

	Reference< XOutputStream > xOutputStream( 
								(::cppu::OWeakObject *)new utl::OOutputStreamWrapper( rOutStream ), 
								UNO_QUERY );

	Reference< ::com::sun::star::io::XActiveDataSource> xDataSource( xWriter , UNO_QUERY );
	xDataSource->setOutputStream( xOutputStream );

	try
	{
		OWriteImagesDocumentHandler aWriteImagesDocumentHandler( aItems, xWriter );
		aWriteImagesDocumentHandler.WriteImagesDocument();
		return sal_True;
	}
	catch ( RuntimeException& )
	{
		return sal_False;
	}
	catch ( SAXException& )
	{
		return sal_False;
	}
	catch ( ::com::sun::star::io::IOException& )
	{
		return sal_False;
	}
=====================================================================
Found a 34 line (164 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsconfiguration.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsconfiguration.cxx

}

// #110897#
sal_Bool EventsConfiguration::StoreEventsConfig( 
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
	SvStream& rOutStream, const EventsConfig& aItems )
{
	Reference< XDocumentHandler > xWriter( GetSaxWriter( xServiceFactory ) );

	Reference< XOutputStream > xOutputStream( 
								(::cppu::OWeakObject *)new utl::OOutputStreamWrapper( rOutStream ), 
								UNO_QUERY );

	Reference< ::com::sun::star::io::XActiveDataSource> xDataSource( xWriter , UNO_QUERY );
	xDataSource->setOutputStream( xOutputStream );

	try
	{
		OWriteEventsDocumentHandler aWriteEventsDocumentHandler( aItems, xWriter );
		aWriteEventsDocumentHandler.WriteEventsDocument();
		return sal_True;
	}
	catch ( RuntimeException& )
	{
		return sal_False;
	}
	catch ( SAXException& )
	{
		return sal_False;
	}
	catch ( ::com::sun::star::io::IOException& )
	{
		return sal_False;
	}
=====================================================================
Found a 30 line (164 tokens) duplication in the following files: 
Starting at line 1165 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/docholder.cxx
Starting at line 1056 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/docholder.cxx

					m_xDocument->getArgs();
				for(sal_Int32 j = 0; j < aSeq.getLength(); ++j)
				{
					if(aSeq[j].Name ==
					   rtl::OUString(
						   RTL_CONSTASCII_USTRINGPARAM("FilterName")))
					{
						aSeq[j].Value >>= aFilterName;
						break;
					}
				}
			}

			if(aFilterName.getLength())
			{
				uno::Reference<container::XNameAccess> xNameAccess(
					m_xFactory->createInstance(
						rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
							"com.sun.star.document.FilterFactory"))),
					uno::UNO_QUERY);
				try {
					if(xNameAccess.is() &&
					   (xNameAccess->getByName(aFilterName) >>= aSeq))
					{
						for(sal_Int32 j = 0; j < aSeq.getLength(); ++j)
							if(aSeq[j].Name ==
							   rtl::OUString(
								   RTL_CONSTASCII_USTRINGPARAM("UIName")))
							{
								aSeq[j].Value >>= m_aFilterName;
=====================================================================
Found a 8 line (164 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/copydata_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydlnk_mask.h

static char copydlnk_mask_bits[] = {
   0x07, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00,
   0x3f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00,
   0xff, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
   0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xe7, 0x03, 0x00, 0x00,
   0xe0, 0x03, 0x00, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x00,
   0xfc, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x01, 0x00, 0xf8, 0xff, 0x3f, 0x00,
=====================================================================
Found a 17 line (164 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/bcc30/public.h
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/cygwin/public.h

const int in_quit ANSI((void));
void Read_state ANSI(());
void Write_state ANSI(());
int Check_state ANSI((CELLPTR, STRINGPTR *, int));
void Dump ANSI(());
void Dump_recipe ANSI((STRINGPTR));
int Parse_macro ANSI((char *, int));
int Macro_op ANSI((char *));
int Parse_rule_def ANSI((int *));
int Rule_op ANSI((char *));
void Add_recipe_to_list ANSI((char *, int, int));
void Bind_rules_to_targets ANSI((int));
int Set_group_attributes ANSI((char *));
DFALINKPTR Match_dfa ANSI((char *));
void Check_circle_dfa ANSI(());
void Add_nfa ANSI((char *));
char *Exec_function ANSI((char *));
=====================================================================
Found a 21 line (164 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/InputStream.cxx
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Reader.cxx

void SAL_CALL java_io_Reader::skipBytes( sal_Int32 nBytesToSkip ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
	jint out(0);
    SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
	if( t.pEnv )
	{
		static const char * cSignature = "(I)I";
		static const char * cMethodName = "skip";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID )
		{
			out = t.pEnv->CallIntMethod( object, mID,nBytesToSkip);
			ThrowSQLException(t.pEnv,*this);
		}
	} //t.pEnv
}

sal_Int32 SAL_CALL java_io_Reader::available(  ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 24 line (164 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUsers.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YUsers.cxx

using namespace connectivity::mysql;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
//	using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
typedef connectivity::sdbcx::OCollection OCollection_TYPE;

OUsers::OUsers( ::cppu::OWeakObject& _rParent,
				::osl::Mutex& _rMutex,
				const TStringVector &_rVector,
				const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection,
				connectivity::sdbcx::IRefreshableUsers* _pParent) 
	: sdbcx::OCollection(_rParent,sal_True,_rMutex,_rVector)
	,m_xConnection(_xConnection)
	,m_pParent(_pParent)
{
}
// -----------------------------------------------------------------------------

sdbcx::ObjectType OUsers::createObject(const ::rtl::OUString& _rName)
{
	return new OMySQLUser(m_xConnection,_rName);
=====================================================================
Found a 46 line (164 tokens) duplication in the following files: 
Starting at line 855 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
=====================================================================
Found a 21 line (164 tokens) duplication in the following files: 
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx

	::osl::MutexGuard aGuard( m_aMutex );

	Reference< XTablesSupplier > xTables = m_pConnection->createCatalog();
	if(!xTables.is())
		throw SQLException();

	Reference< XNameAccess> xNames = xTables->getTables();
	if(!xNames.is())
		throw SQLException();

	ODatabaseMetaDataResultSet::ORows aRows;
	ODatabaseMetaDataResultSet::ORow aRow(19);
	aRow[10] = new ORowSetValueDecorator((sal_Int32)10);
	Sequence< ::rtl::OUString> aTabNames(xNames->getElementNames());
	const ::rtl::OUString* pTabBegin	= aTabNames.getConstArray();
	const ::rtl::OUString* pTabEnd		= pTabBegin + aTabNames.getLength();
	for(;pTabBegin != pTabEnd;++pTabBegin)
	{
		if(match(tableNamePattern,*pTabBegin,'\0'))
		{
			Reference< XColumnsSupplier> xTable;
=====================================================================
Found a 33 line (164 tokens) duplication in the following files: 
Starting at line 1226 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FValue.cxx
Starting at line 1290 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FValue.cxx

				nRet = sal_Int64(*(double*)m_aValue.m_pValue);
				break;
			case DataType::DATE:
				nRet = dbtools::DBTypeConversion::toDays(*(::com::sun::star::util::Date*)m_aValue.m_pValue);
				break;
			case DataType::TIME:
			case DataType::TIMESTAMP:
			case DataType::BINARY:
			case DataType::VARBINARY:
			case DataType::LONGVARBINARY:
				OSL_ASSERT(!"getInt32() for this type is not allowed!");
				break;
			case DataType::BIT:
			case DataType::BOOLEAN:
				nRet = m_aValue.m_bBool;
				break;
			case DataType::TINYINT:
				if ( m_bSigned )
					nRet = m_aValue.m_nInt8;
				else
					nRet = m_aValue.m_nInt16;
				break;
			case DataType::SMALLINT:
				if ( m_bSigned )
					nRet = m_aValue.m_nInt16;
				else
					nRet = m_aValue.m_nInt32;
				break;
			case DataType::INTEGER:
				if ( m_bSigned )
					nRet = m_aValue.m_nInt32;
				else
					nRet = *(sal_Int64*)m_aValue.m_pValue;
=====================================================================
Found a 27 line (164 tokens) duplication in the following files: 
Starting at line 661 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 678 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

	{
		Reference< XNameAccess > xAccess(xIface, UNO_QUERY);
		Reference< XHierarchicalNameAccess > xDeepAccess(xIface, UNO_QUERY);
		Reference< XExactName > xExactName(xIface, UNO_QUERY);
			
		if (xAccess.is() || xDeepAccess.is())
		{
			OUString aName;
			OUString aInput = OUString::createFromAscii(buf);
			
			if (xExactName.is())
			{
				::rtl::OUString sTemp = xExactName->getExactName(aInput);
				if (sTemp.getLength())
					aInput = sTemp;
			}
				
			if (xAccess.is() && xAccess->hasByName(aInput))
			{
				aName = aInput;
			}
			else if (xDeepAccess.is() && xDeepAccess->hasByHierarchicalName(aInput))
			{
				aName = aInput;
			}
			else if ('0' <= buf[0] && buf[0] <= '9' && xAccess.is())
			{
=====================================================================
Found a 35 line (164 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idloptions.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

					m_options["-b"] = OString(s);
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'F':
=====================================================================
Found a 45 line (164 tokens) duplication in the following files: 
Starting at line 2563 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

	OString hFileName = createFileNameFromType(outPath, m_typeName, ".idl");

	sal_Bool bFileExists = sal_False;
	sal_Bool bFileCheck = sal_False;

	if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
	{
		bFileExists = fileExists( hFileName );
		ret = sal_True;
	}

	if ( bFileExists && pOptions->isValid("-Gc") )
	{
		tmpFileName	 = createFileNameFromType(outPath, m_typeName, ".tml");
		bFileCheck = sal_True;
	}

	if ( !bFileExists || bFileCheck )
	{
		FileStream hFile;

		if ( bFileCheck )
			hFile.open(tmpFileName);
		else
			hFile.open(hFileName);

		if(!hFile.isValid())
		{
			OString message("cannot open ");
			message += hFileName + " for writing";
			throw CannotDumpException(message);
		}

		ret = dumpHFile(hFile);

		hFile.close();
		if (ret && bFileCheck)
		{
			ret = checkFileContent(hFileName, tmpFileName);
		}
	}

	return ret;
}
sal_Bool IdlType::dumpDependedTypes(IdlOptions* pOptions)
=====================================================================
Found a 36 line (164 tokens) duplication in the following files: 
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

sal_Bool IdlType::dumpDependedTypes(IdlOptions* pOptions)
	throw( CannotDumpException )
{
	sal_Bool ret = sal_True;

	TypeUsingSet usingSet(m_dependencies.getDependencies(m_typeName));

	TypeUsingSet::const_iterator iter = usingSet.begin();
	OString typeName;
	sal_uInt32 index = 0;
	while (iter != usingSet.end())
	{
		typeName = (*iter).m_type;
		if ((index = typeName.lastIndexOf(']')) > 0)
			typeName = typeName.copy(index + 1);

		if (getBaseType(typeName).getLength() == 0)
		{
			if (!produceType(typeName,
						   	 m_typeMgr,
							 m_dependencies,
							 pOptions))
			{
				fprintf(stderr, "%s ERROR: %s\n",
						pOptions->getProgramName().getStr(),
						OString("cannot dump Type '" + typeName + "'").getStr());
				exit(99);
			}
		}
		++iter;
	}

	return ret;
}

OString IdlType::dumpHeaderDefine(FileStream& o, sal_Char* prefix )
=====================================================================
Found a 35 line (164 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

					m_options["-b"] = OString(s);
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'F':
=====================================================================
Found a 19 line (164 tokens) duplication in the following files: 
Starting at line 1643 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
Starting at line 1679 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx

    Reference< chart2::XDiagram >    xDiagram( m_spChart2ModelContact->getChart2Diagram() );
    Reference< beans::XPropertySet > xDiaProp( xDiagram, uno::UNO_QUERY );

    if( xDiagram.is() && xDiaProp.is())
    {
        ::std::vector< Reference< chart2::XDataSeries > > aSeriesVector(
            ::chart::DiagramHelper::getDataSeriesFromDiagram( xDiagram ) );

        uno::Sequence< uno::Sequence< sal_Int32 > > aResult( aSeriesVector.size() );

        ::std::vector< Reference< chart2::XDataSeries > >::const_iterator aIt =
                aSeriesVector.begin();
        sal_Int32 i = 0;
        for( ; aIt != aSeriesVector.end(); ++aIt, ++i )
        {
            Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY );
            if( xProp.is())
            {
                uno::Any aVal(
=====================================================================
Found a 42 line (164 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32	nFunctionIndex,
	sal_Int32	nVtableOffset,
	void **	pCallStack,
	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );
=====================================================================
Found a 10 line (164 tokens) duplication in the following files: 
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,  0,awd,awd,awd, // ... 63
	   0,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd  // ... 127
	};

	const INT16 A_nWhitespaceStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{fof,err,err,err,err,err,err,err,err,wht,fig,wht,wht,fig,err,err,
=====================================================================
Found a 26 line (163 tokens) duplication in the following files: 
Starting at line 385 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx

			rtl::OUString arg=aArguments[0];

			uno::Reference<com::sun::star::ucb::XSimpleFileAccess> xFileAccess(
			xFactory->createInstanceWithContext(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SimpleFileAccess")),
				xContext), uno::UNO_QUERY_THROW );

			rtl_uString *dir=NULL;
			osl_getProcessWorkingDir(&dir);
			rtl::OUString absFileUrl;
			osl_getAbsoluteFileURL(dir, arg.pData, &absFileUrl.pData);
			rtl_uString_release(dir);

			uno::Reference <lang::XSingleServiceFactory> xStorageFactory(
				xServiceFactory->createInstance (rtl::OUString::createFromAscii("com.sun.star.embed.StorageFactory")), uno::UNO_QUERY_THROW);

#if 0
			rtl::OUString outFileUrl;
			{
			rtl_uString *dir1=NULL;
			osl_getProcessWorkingDir(&dir1);
			osl_getAbsoluteFileURL(dir1, aArguments[1].pData, &outFileUrl.pData);
			rtl_uString_release(dir1);
			}

			uno::Sequence< uno::Any > aArgs( 2 );
=====================================================================
Found a 22 line (163 tokens) duplication in the following files: 
Starting at line 2133 of /local/ooo-build/ooo-build/src/oog680-m3/uui/source/iahndl.cxx
Starting at line 2254 of /local/ooo-build/ooo-build/src/oog680-m3/uui/source/iahndl.cxx

    star::document::AmbigousFilterRequest const & rRequest,
    star::uno::Sequence<
        star::uno::Reference<
            star::task::XInteractionContinuation > > const & rContinuations)
    SAL_THROW((star::uno::RuntimeException))
{
    star::uno::Reference< star::task::XInteractionAbort > xAbort;
    star::uno::Reference< 
	star::document::XInteractionFilterSelect > xFilterTransport;

    sal_Int32 nCount = rContinuations.getLength();
    for( sal_Int32 nStep=0; nStep<nCount; ++nStep )
    {
        if( ! xAbort.is() )
            xAbort = star::uno::Reference< star::task::XInteractionAbort >( 
		rContinuations[nStep], star::uno::UNO_QUERY );

        if( ! xFilterTransport.is() )
            xFilterTransport = star::uno::Reference< 
		star::document::XInteractionFilterSelect >( 
		    rContinuations[nStep], star::uno::UNO_QUERY );
    }
=====================================================================
Found a 44 line (163 tokens) duplication in the following files: 
Starting at line 1169 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/client/content.cxx
Starting at line 1223 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/client/content.cxx

	Any aCursorAny = createCursorAny( rPropertyHandles, eMode );

    aCursorAny >>= aDynSet;

	if( aDynSet.is() )
	{
		Reference< XDynamicResultSet > aDynResult;
		Reference< XMultiServiceFactory > aServiceManager = m_xImpl->getServiceManager();

		if( aServiceManager.is() )
		{
			Reference< XSortedDynamicResultSetFactory > aSortFactory( aServiceManager->createInstance(
								rtl::OUString::createFromAscii( "com.sun.star.ucb.SortedDynamicResultSetFactory" )),
								UNO_QUERY );

			aDynResult = aSortFactory->createSortedDynamicResultSet( aDynSet,
															  rSortInfo,
															  rAnyCompareFactory );
		}

		OSL_ENSURE( aDynResult.is(), "Content::createSortedCursor - no sorted cursor!\n" );

		if( aDynResult.is() )
			aResult = aDynResult->getStaticResultSet();
		else
			aResult = aDynSet->getStaticResultSet();
	}

    OSL_ENSURE( aResult.is(), "Content::createSortedCursor - no cursor!" );

	if ( !aResult.is() )
	{
		// Former, the open command directly returned a XResultSet.
		aCursorAny >>= aResult;

        OSL_ENSURE( !aResult.is(),
					"Content::createCursor - open-Command must "
					"return a Reference< XDynnamicResultSet >!" );
	}

	return aResult;
}
//=========================================================================
Reference< XInputStream > Content::openStream()
=====================================================================
Found a 39 line (163 tokens) duplication in the following files: 
Starting at line 1139 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 1347 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

            RTL_TEXTENCODING_ASCII_US);
		if (bDowncaseAttribute)
			aAttribute.ToLowerAscii();

		sal_uInt32 nSection = 0;
		if (p != pEnd && *p == '*')
		{
			++p;
			if (p != pEnd && isDigit(*p)
				&& !scanUnsigned(p, pEnd, false, nSection))
				break;
		}

		bool bPresent;
		Parameter ** pPos = aList.find(aAttribute, nSection, bPresent);
		if (bPresent)
			break;

		bool bExtended = false;
		if (p != pEnd && *p == '*')
		{
			++p;
			bExtended = true;
		}

		p = skipLinearWhiteSpaceComment(p, pEnd);

		if (p == pEnd || *p != '=')
			break;

		p = skipLinearWhiteSpaceComment(p + 1, pEnd);

		ByteString aCharset;
		ByteString aLanguage;
 		ByteString aValue;
		if (bExtended)
		{
			if (nSection == 0)
			{
=====================================================================
Found a 33 line (163 tokens) duplication in the following files: 
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/source/file.cxx
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/source/filehelper.cxx

    char const * pTmp = getenv( "TEMP" );
    if (pTmp == NULL) pTmp = getenv("temp");
    if (pTmp == NULL) pTmp = getenv("TMP");
    if (pTmp == NULL) pTmp = getenv("tmp");

    if( pTmp && strlen(pTmp) >= 2 )
    {
        sTempDir = std::string( pTmp );
    }
    else
    {
#ifdef UNX
        int nLen;
        pTmp = P_tmpdir;
        nLen = strlen(pTmp);
        if (pTmp[ nLen - 1] == '/')
        {
            char cBuf[256];
            char* pBuf = cBuf;
            strncpy( pBuf, pTmp, nLen - 1 );
            pBuf[nLen - 1] = '\0';
            sTempDir = std::string( pBuf );
        }
        else
        {
            sTempDir = std::string( pTmp );
        }
#else
        fprintf(stderr, "error: No temp dir found.\n");
#endif
    }
    return sTempDir;
}
=====================================================================
Found a 48 line (163 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/ScriptInfo.cxx
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/porlay.cxx

using namespace ::com::sun::star;
using namespace ::com::sun::star::i18n::ScriptType;

//#ifdef BIDI
#include <unicode/ubidi.h>

/*************************************************************************
 *                 lcl_IsLigature
 *
 * Checks if cCh + cNectCh builds a ligature (used for Kashidas)
 *************************************************************************/

sal_Bool lcl_IsLigature( xub_Unicode cCh, xub_Unicode cNextCh )
{
            // Lam + Alef
    return ( 0x644 == cCh && 0x627 == cNextCh ) ||
            // Beh + Reh
           ( 0x628 == cCh && 0x631 == cNextCh );
}

/*************************************************************************
 *                 lcl_ConnectToPrev
 *
 * Checks if cCh is connectable to cPrevCh (used for Kashidas)
 *************************************************************************/

sal_Bool lcl_ConnectToPrev( xub_Unicode cCh, xub_Unicode cPrevCh )
{
    // Alef, Dal, Thal, Reh, Zain, and Waw do not connect to the left
    // Uh, there seem to be some more characters that are not connectable
    // to the left. So we look for the characters that are actually connectable
    // to the left. Here is the complete list of WH:
    sal_Bool bRet = 0x628 == cPrevCh ||
                    ( 0x62A <= cPrevCh && cPrevCh <= 0x62E ) ||
                    ( 0x633 <= cPrevCh && cPrevCh <= 0x643 ) ||
                    ( 0x645 <= cPrevCh && cPrevCh <= 0x647 ) ||
                    0x64A == cPrevCh ||
                    ( 0x678 <= cPrevCh && cPrevCh <= 0x687 ) ||
                    ( 0x69A <= cPrevCh && cPrevCh <= 0x6B4 ) ||
                    ( 0x6B9 <= cPrevCh && cPrevCh <= 0x6C0 ) ||
                    ( 0x6C3 <= cPrevCh && cPrevCh <= 0x6D3 );

    // check for ligatures cPrevChar + cChar
    if ( bRet )
        bRet = ! lcl_IsLigature( cPrevCh, cCh );

    return bRet;
}
=====================================================================
Found a 30 line (163 tokens) duplication in the following files: 
Starting at line 5759 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx
Starting at line 616 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par.cxx

					SvxMSDffShapeInfo& rInfo = *GetShapeInfos()->GetObject(nFound);
					pTextImpRec->bReplaceByFly   = rInfo.bReplaceByFly;
					pTextImpRec->bLastBoxInChain = rInfo.bLastBoxInChain;
				}
			}

			if( !pObj )
                ApplyAttributes( rSt, aSet, rObjData.eShapeType, rObjData.nSpFlags );

            bool bFitText = false;
            if (GetPropertyValue(DFF_Prop_FitTextToShape) & 2)
            {
                aSet.Put( SdrTextAutoGrowHeightItem( TRUE ) );
                aSet.Put( SdrTextMinFrameHeightItem(
                    aNewRect.Bottom() - aNewRect.Top() ) );
                aSet.Put( SdrTextMinFrameWidthItem(
                    aNewRect.Right() - aNewRect.Left() ) );
                bFitText = true;
            }
            else
            {
                aSet.Put( SdrTextAutoGrowHeightItem( FALSE ) );
                aSet.Put( SdrTextAutoGrowWidthItem( FALSE ) );
            }

			switch ( (MSO_WrapMode)
                GetPropertyValue( DFF_Prop_WrapText, mso_wrapSquare ) )
			{
				case mso_wrapNone :
    				aSet.Put( SdrTextAutoGrowWidthItem( TRUE ) );
=====================================================================
Found a 25 line (163 tokens) duplication in the following files: 
Starting at line 4923 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4498 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartDelayVert[] =
{
	{ 10800, 0 }, {	21600, 10800 }, { 10800, 21600 }, {	0, 21600 },
	{ 0, 0 }
};
static const sal_uInt16 mso_sptFlowChartDelaySegm[] =
{
	0x4000, 0xa702, 0x0002, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartDelayTextRect[] = 
{
	{ { 0, 3100 }, { 18500, 18500 } }
};
static const mso_CustomShape msoFlowChartDelay =
{
	(SvxMSDffVertPair*)mso_sptFlowChartDelayVert, sizeof( mso_sptFlowChartDelayVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartDelaySegm, sizeof( mso_sptFlowChartDelaySegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartDelayTextRect, sizeof( mso_sptFlowChartDelayTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 9 line (163 tokens) duplication in the following files: 
Starting at line 2350 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2426 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptActionButtonBeginningVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 8 MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0xc MSO_I },
=====================================================================
Found a 26 line (163 tokens) duplication in the following files: 
Starting at line 1533 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin4.cxx
Starting at line 1721 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin4.cxx

    BOOL bRepeat = TRUE;

	SCCOL nTestX2 = nX2;
	SCROW nTestY2 = nY2;
	if (bTestMerge)
		pDoc->ExtendMerge( nX1,nY1, nTestX2,nTestY2, nTab );

	SCCOL nPosX = pViewData->GetPosX( eHWhich );
	SCROW nPosY = pViewData->GetPosY( eVWhich );
	if (nTestX2 < nPosX || nTestY2 < nPosY)
		return;											// unsichtbar
	SCCOL nRealX1 = nX1;
	if (nX1 < nPosX)
		nX1 = nPosX;
	if (nY1 < nPosY)
		nY1 = nPosY;

	SCCOL nXRight = nPosX + pViewData->VisibleCellsX(eHWhich);
	if (nXRight > MAXCOL) nXRight = MAXCOL;
	SCROW nYBottom = nPosY + pViewData->VisibleCellsY(eVWhich);
	if (nYBottom > MAXROW) nYBottom = MAXROW;

	if (nX1 > nXRight || nY1 > nYBottom)
		return;											// unsichtbar
	if (nX2 > nXRight) nX2 = nXRight;
	if (nY2 > nYBottom) nY2 = nYBottom;
=====================================================================
Found a 13 line (163 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx
Starting at line 472 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx

            if (!conds.utf8.all[cond]) {
                if (conds.utf8.neg[cond]) {
                    u8_u16((w_char *) &wc, 1, (char *) cp);
                    if (conds.utf8.wchars[cond] && 
                        flag_bsearch((unsigned short *)conds.utf8.wchars[cond],
                            wc, (short) conds.utf8.wlen[cond])) return 0;
                } else {
                    if (!conds.utf8.wchars[cond]) return 0;
                    u8_u16((w_char *) &wc, 1, (char *) cp);
                    if (!flag_bsearch((unsigned short *)conds.utf8.wchars[cond],
                         wc, (short)conds.utf8.wlen[cond])) return 0;
                }
            }
=====================================================================
Found a 6 line (163 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1427 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 6 line (163 tokens) duplication in the following files: 
Starting at line 1079 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1160 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 6 line (163 tokens) duplication in the following files: 
Starting at line 815 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 822 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d750 - d75f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d760 - d76f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d770 - d77f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d780 - d78f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d790 - d79f
     5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7a0 - d7af
=====================================================================
Found a 6 line (163 tokens) duplication in the following files: 
Starting at line 564 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27, 0, 0, 0, 0, 0,27,27,27,27,27,27,27,// 2610 - 261f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2620 - 262f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2630 - 263f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2640 - 264f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2650 - 265f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,24,// 2660 - 266f
=====================================================================
Found a 6 line (163 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18b0 - 18bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18c0 - 18cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18d0 - 18df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18e0 - 18ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18f0 - 18ff
=====================================================================
Found a 6 line (163 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1361 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10, 0, 0, 0, 0, 0,// 2440 - 244f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2450 - 245f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 2460 - 246f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 2470 - 247f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 2480 - 248f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
=====================================================================
Found a 29 line (163 tokens) duplication in the following files: 
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/popupmenucontrollerbase.cxx
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/controlmenucontroller.cxx

void SAL_CALL ControlMenuController::initialize( const Sequence< Any >& aArguments ) throw ( Exception, RuntimeException )
{
    const rtl::OUString aFrameName( RTL_CONSTASCII_USTRINGPARAM( "Frame" ));
    const rtl::OUString aCommandURLName( RTL_CONSTASCII_USTRINGPARAM( "CommandURL" ));

    ResetableGuard aLock( m_aLock );
    
    sal_Bool bInitalized( m_bInitialized );
    if ( !bInitalized )
    {
        PropertyValue       aPropValue;
        rtl::OUString       aCommandURL;
        Reference< XFrame > xFrame;
        
        for ( int i = 0; i < aArguments.getLength(); i++ )
        {
            if ( aArguments[i] >>= aPropValue )
            {
                if ( aPropValue.Name.equalsAscii( "Frame" ))
                    aPropValue.Value >>= xFrame;
                else if ( aPropValue.Name.equalsAscii( "CommandURL" ))
                    aPropValue.Value >>= aCommandURL;
            }
        }

        if ( xFrame.is() && aCommandURL.getLength() )
        {
            m_xFrame        = xFrame;
            m_aCommandURL   = aCommandURL;
=====================================================================
Found a 40 line (163 tokens) duplication in the following files: 
Starting at line 373 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/statusbardocumenthandler.cxx
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/statusbardocumenthandler.cxx

                      break;  
		}
	}
}

void SAL_CALL OReadStatusBarDocumentHandler::endElement(const OUString& aName)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	StatusBarHashMap::const_iterator pStatusBarEntry = m_aStatusBarMap.find( aName ) ;
	if ( pStatusBarEntry != m_aStatusBarMap.end() )
	{
		switch ( pStatusBarEntry->second )
		{
			case SB_ELEMENT_STATUSBAR:
			{
				if ( !m_bStatusBarStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'statusbar' found, but no start element 'statusbar'" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}
				
				m_bStatusBarStartFound = sal_False;
			}
			break;

			case SB_ELEMENT_STATUSBARITEM:
			{
				if ( !m_bStatusBarItemStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'statusbar:statusbaritem' found, but no start element 'statusbar:statusbaritem'" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bStatusBarItemStartFound = sal_False;
			}
			break;
=====================================================================
Found a 40 line (163 tokens) duplication in the following files: 
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsdocumenthandler.cxx
Starting at line 361 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsdocumenthandler.cxx

                      break;  
		}
	}
}

void SAL_CALL OReadEventsDocumentHandler::endElement(const OUString& aName)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	EventsHashMap::const_iterator pEventEntry = m_aEventsMap.find( aName );
	if ( pEventEntry != m_aEventsMap.end() )
	{
		switch ( pEventEntry->second )
		{
			case EV_ELEMENT_EVENTS:
			{
				if ( !m_bEventsStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'event:events' found, but no start element" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bEventsStartFound = sal_False;
			}
			break;

			case EV_ELEMENT_EVENT:
			{
				if ( !m_bEventStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "End element 'event:event' found, but no start element" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				m_bEventStartFound = sal_False;
			}
			break;
=====================================================================
Found a 37 line (163 tokens) duplication in the following files: 
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/office/iodlg.cxx
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc1/folderrestriction.cxx

static void convertStringListToUrls (
	const String& _rColonSeparatedList, ::std::vector< String >& _rTokens, bool _bFinalSlash )
{
	const sal_Unicode s_cSeparator =
#if defined(WNT)
		';'
#else
		':'
#endif
            ;
	xub_StrLen nTokens = _rColonSeparatedList.GetTokenCount( s_cSeparator );
	_rTokens.resize( 0 ); _rTokens.reserve( nTokens );
	for ( xub_StrLen i=0; i<nTokens; ++i )
	{
		// the current token in the list
		String sCurrentToken = _rColonSeparatedList.GetToken( i, s_cSeparator );
		if ( !sCurrentToken.Len() )
			continue;

		INetURLObject aCurrentURL;

		String sURL;
		if ( ::utl::LocalFileHelper::ConvertPhysicalNameToURL( sCurrentToken, sURL ) )
			aCurrentURL = INetURLObject( sURL );
		else
		{
			// smart URL parsing, assuming FILE protocol
			aCurrentURL = INetURLObject( sCurrentToken, INET_PROT_FILE );
		}

		if ( _bFinalSlash )
			aCurrentURL.setFinalSlash( );
		else
			aCurrentURL.removeFinalSlash( );
		_rTokens.push_back( aCurrentURL.GetMainURL( INetURLObject::NO_DECODE ) );
	}
}
=====================================================================
Found a 38 line (163 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/FPentry.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/FPentry.cxx

			Reference< XSingleServiceFactory > xFactory;

			if (0 == rtl_str_compare(pImplName, FILE_PICKER_IMPL_NAME))
			{
				Sequence< OUString > aSNS( 1 );
				aSNS.getArray( )[0] = 
					OUString::createFromAscii(FILE_PICKER_SERVICE_NAME);
						
				xFactory = createSingleFactory(
					reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
					OUString::createFromAscii( pImplName ),
					createFileInstance,
					aSNS );
			}
			else if (0 == rtl_str_compare(pImplName, FOLDER_PICKER_IMPL_NAME))
			{
				Sequence< OUString > aSNS( 1 );
				aSNS.getArray( )[0] = 
					OUString::createFromAscii(FOLDER_PICKER_SERVICE_NAME);
						
				xFactory = createSingleFactory(
					reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
					OUString::createFromAscii( pImplName ),
					createFolderInstance,
					aSNS );
			}

			if ( xFactory.is() )
			{
				xFactory->acquire();
				pRet = xFactory.get();
			}			
	}

	return pRet;
}

} // extern "C"
=====================================================================
Found a 24 line (163 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/xforms/submission/submission_post.cxx
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/xforms/submission/submission_put.cxx

CSubmission::SubmissionResult CSubmissionPut::submit(const CSS::uno::Reference< CSS::task::XInteractionHandler >& aInteractionHandler)
{    
    // PUT always uses application/xml
    auto_ptr< CSerialization > apSerialization(new CSerializationAppXML());
    apSerialization->setSource(m_aFragment);
    apSerialization->serialize();

    // create a commandEnvironment and use the default interaction handler
    CCommandEnvironmentHelper *pHelper = new CCommandEnvironmentHelper;
    if( aInteractionHandler.is() )
        pHelper->m_aInteractionHandler = aInteractionHandler;
    else
        pHelper->m_aInteractionHandler = CSS::uno::Reference< XInteractionHandler >(m_aFactory->createInstance(
            OUString::createFromAscii("com.sun.star.task.InteractionHandler")), UNO_QUERY);
    OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create IntreractionHandler");

    CProgressHandlerHelper *pProgressHelper = new CProgressHandlerHelper;
    pHelper->m_aProgressHandler = CSS::uno::Reference< XProgressHandler >(pProgressHelper);

    // UCB has ownership of environment...
    CSS::uno::Reference< XCommandEnvironment > aEnvironment(pHelper);

    try {
        ucbhelper::Content aContent(m_aURLObj.GetMainURL(INetURLObject::NO_DECODE), aEnvironment);
=====================================================================
Found a 31 line (163 tokens) duplication in the following files: 
Starting at line 468 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/DatabaseForm.cxx
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/DatabaseForm.cxx

::rtl::OUString ODatabaseForm::GetDataTextEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt)
{

	// Liste von successful Controls fuellen
	HtmlSuccessfulObjList aSuccObjList;
	FillSuccessfulList( aSuccObjList, SubmitButton, MouseEvt );
	// Liste zu ::rtl::OUString zusammensetzen
	::rtl::OUString aResult;
	::rtl::OUString aName;
	::rtl::OUString aValue;

	for	(	HtmlSuccessfulObjListIterator pSuccObj = aSuccObjList.begin();
			pSuccObj < aSuccObjList.end();
			++pSuccObj
		)
	{
		aName = pSuccObj->aName;
		aValue = pSuccObj->aValue;
		if (pSuccObj->nRepresentation == SUCCESSFUL_REPRESENT_FILE && aValue.getLength())
		{
			// Bei File-URLs wird der Dateiname und keine URL uebertragen,
			// weil Netscape dies so macht.
			INetURLObject aURL;
			aURL.SetSmartProtocol(INET_PROT_FILE);
			aURL.SetSmartURL(aValue);
			if( INET_PROT_FILE == aURL.GetProtocol() )
				aValue = INetURLObject::decode(aURL.PathToFileName(), '%', INetURLObject::DECODE_UNAMBIGUOUS);
		}
		Encode( aName );
		Encode( aValue );
		aResult += pSuccObj->aName;
=====================================================================
Found a 29 line (163 tokens) duplication in the following files: 
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propertysethelper.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/property/propertysethelper.cxx

		PropertyMapEntry** pEntries = new PropertyMapEntry*[nCount+1];
		const OUString* pNames = aPropertyNames.getConstArray();

		sal_Bool bUnknown = sal_False;
		sal_Int32 n;
		for( n = 0; !bUnknown && ( n < nCount ); n++, pNames++ )
		{
			pEntries[n] = mp->find( *pNames );
			bUnknown = NULL == pEntries[n];
		}

		if( !bUnknown )
			_setPropertyValues( (const PropertyMapEntry**)pEntries, aValues.getConstArray() );

		delete [] pEntries;

		if( bUnknown )
			throw UnknownPropertyException();
	}
}

Sequence< Any > SAL_CALL PropertySetHelper::getPropertyValues( const Sequence< ::rtl::OUString >& aPropertyNames ) throw(RuntimeException)
{
	const sal_Int32 nCount = aPropertyNames.getLength();

	Sequence< Any > aValues;
	if( nCount )
	{
		PropertyMapEntry** pEntries = new PropertyMapEntry*[nCount+1];
=====================================================================
Found a 30 line (163 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/eventattachermgr/eventattachermgr.cxx
Starting at line 528 of /local/ooo-build/ooo-build/src/oog680-m3/eventattacher/source/eventattacher.cxx

void FilterAllListenerImpl::convertToEventReturn( Any & rRet, const Type & rRetType )
	throw( CannotConvertException )
{
	// no return value? Set to the specified values
	if( rRet.getValueType().getTypeClass() == TypeClass_VOID )
	{
		switch( rRetType.getTypeClass()  )
		{
			case TypeClass_INTERFACE:
				{
				rRet <<= Reference< XInterface >();
				}
				break;

			case TypeClass_BOOLEAN:			
				rRet <<= sal_True;		
				break;
			
			case TypeClass_STRING:			
				rRet <<= OUString();	
				break;

			case TypeClass_FLOAT:			rRet <<= float(0);	break;
			case TypeClass_DOUBLE:			rRet <<= double(0.0);	break;
			case TypeClass_BYTE:			rRet <<= sal_uInt8( 0 );	break;
			case TypeClass_SHORT:			rRet <<= sal_Int16( 0 );	break;
			case TypeClass_LONG:			rRet <<= sal_Int32( 0 );	break;
			case TypeClass_UNSIGNED_SHORT:	rRet <<= sal_uInt16( 0 );	break;
			case TypeClass_UNSIGNED_LONG:	rRet <<= sal_uInt32( 0 );	break;
                     default:
=====================================================================
Found a 44 line (163 tokens) duplication in the following files: 
Starting at line 2563 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 1205 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

	OString hFileName = createFileNameFromType(outPath, m_typeName, ".idl");

	sal_Bool bFileExists = sal_False;
	sal_Bool bFileCheck = sal_False;

	if ( pOptions->isValid("-G") || pOptions->isValid("-Gc") )
	{
		bFileExists = fileExists( hFileName );
		ret = sal_True;
	}

	if ( bFileExists && pOptions->isValid("-Gc") )
	{
		tmpFileName	 = createFileNameFromType(outPath, m_typeName, ".tml");
		bFileCheck = sal_True;
	}

	if ( !bFileExists || bFileCheck )
	{
		FileStream hFile;

		if ( bFileCheck )
			hFile.open(tmpFileName);
		else
			hFile.open(hFileName);

		if(!hFile.isValid())
		{
			OString message("cannot open ");
			message += hFileName + " for writing";
			throw CannotDumpException(message);
		}

		ret = dumpHFile(hFile);

		hFile.close();
		if (ret && bFileCheck)
		{
			ret = checkFileContent(hFileName, tmpFileName);
		}
	}

	return ret;
}
=====================================================================
Found a 27 line (163 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

			pUnoReturn = (cppu_relatesToInterface( pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr )) // value
=====================================================================
Found a 24 line (162 tokens) duplication in the following files: 
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 454 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h

        span_pattern_filter_rgb(alloc_type& alloc,
                                const rendering_buffer& src, 
                                interpolator_type& intr,
                                const image_filter_lut& filter) :
            base_type(alloc, src, color_type(0,0,0,0), intr, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 30 line (162 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartOASISTContext.cxx
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/DlgOASISTContext.cxx

	OSL_ENSURE( pActions, "go no actions" );
	
	Reference< XAttributeList > xAttrList( rAttrList );
	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;

	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );

		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );

		if( !(aIter == pActions->end() ) )
		{
			if( !pMutableAttrList )
			{
				pMutableAttrList = 
						new XMLMutableAttributeList( xAttrList );
				xAttrList = pMutableAttrList;
			}
			const OUString& rAttrValue = xAttrList->getValueByIndex( i );
			switch( (*aIter).second.m_nActionType )
			{
			case XML_ATACTION_DLG_BORDER:
=====================================================================
Found a 22 line (162 tokens) duplication in the following files: 
Starting at line 941 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/xmlnumfe.cxx
Starting at line 2121 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/xmlnumfi.cxx

		case NF_KEY_NN:		eDateDOW = XML_DEA_SHORT;		break;
		case NF_KEY_NNN:
		case NF_KEY_NNNN:	eDateDOW = XML_DEA_LONG;		break;
		case NF_KEY_D:		eDateDay = XML_DEA_SHORT;		break;
		case NF_KEY_DD:		eDateDay = XML_DEA_LONG;		break;
		case NF_KEY_M:		eDateMonth = XML_DEA_SHORT;		break;
		case NF_KEY_MM:		eDateMonth = XML_DEA_LONG;		break;
		case NF_KEY_MMM:	eDateMonth = XML_DEA_TEXTSHORT;	break;
		case NF_KEY_MMMM:	eDateMonth = XML_DEA_TEXTLONG;	break;
		case NF_KEY_YY:		eDateYear = XML_DEA_SHORT;		break;
		case NF_KEY_YYYY:	eDateYear = XML_DEA_LONG;		break;
		case NF_KEY_H:		eDateHours = XML_DEA_SHORT;		break;
		case NF_KEY_HH:		eDateHours = XML_DEA_LONG;		break;
		case NF_KEY_MI:		eDateMins = XML_DEA_SHORT;		break;
		case NF_KEY_MMI:	eDateMins = XML_DEA_LONG;		break;
		case NF_KEY_S:		eDateSecs = XML_DEA_SHORT;		break;
		case NF_KEY_SS:		eDateSecs = XML_DEA_LONG;		break;
		case NF_KEY_AP:
		case NF_KEY_AMPM:	break;			// AM/PM may or may not be in date/time formats -> ignore by itself
		default:
			bDateNoDefault = sal_True;		// any other element -> no default format
	}
=====================================================================
Found a 14 line (162 tokens) duplication in the following files: 
Starting at line 3127 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx
Starting at line 3170 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx

        Color pColorAry1[6];
        Color pColorAry2[6];
        pColorAry1[0] = Color( 0xC0, 0xC0, 0xC0 );
        pColorAry1[1] = Color( 0xFF, 0xFF, 0x00 );
        pColorAry1[2] = Color( 0xFF, 0xFF, 0xFF );
        pColorAry1[3] = Color( 0x80, 0x80, 0x80 );
        pColorAry1[4] = Color( 0x00, 0x00, 0x00 );
        pColorAry1[5] = Color( 0x00, 0xFF, 0x00 );
        pColorAry2[0] = rStyleSettings.GetFaceColor();
        pColorAry2[1] = rStyleSettings.GetWindowColor();
        pColorAry2[2] = rStyleSettings.GetLightColor();
        pColorAry2[3] = rStyleSettings.GetShadowColor();
        pColorAry2[4] = rStyleSettings.GetDarkShadowColor();
        pColorAry2[5] = rStyleSettings.GetWindowTextColor();
=====================================================================
Found a 41 line (162 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

	{
		//=================================================================
		//
        // Stream: Supported properties
		//
		//=================================================================

        static const beans::Property aStreamPropertyInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory properties
            ///////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                -1,
                getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                -1,
                getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
            )
=====================================================================
Found a 23 line (162 tokens) duplication in the following files: 
Starting at line 1096 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/pormulti.cxx
Starting at line 1263 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/pormulti.cxx

		i = 0;
		while( i < nCount )
		{
			const SwTxtAttr *pTmp = (*pHints)[i++];
			if( *pTmp->GetAnyEnd() <= rPos )
				continue;
			if( rPos < *pTmp->GetStart() )
			{
				if( !bOn || aEnd[ aEnd.Count()-1 ] < *pTmp->GetStart() )
					break;
				rPos = *pTmp->GetStart();
				while( aEnd.Count() && aEnd[ aEnd.Count()-1 ] <= rPos )
				{
					bOn = !bOn;
					aEnd.Remove( aEnd.Count()-1, 1 );
				}
				if( !aEnd.Count() )
				{
					aEnd.Insert( rPos, 0 );
					bOn = sal_True;
				}
			}
			if( RES_TXTATR_CJK_RUBY == pTmp->Which() )
=====================================================================
Found a 18 line (162 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/XPropertyTable.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoctabl.cxx

    static uno::Sequence< OUString >  getSupportedServiceNames_Static(void) throw();

	// XNameContainer
	virtual void SAL_CALL insertByName( const  OUString& aName, const  uno::Any& aElement ) throw( lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, uno::RuntimeException);
	virtual void SAL_CALL removeByName( const  OUString& Name ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);

	// XNameReplace
    virtual void SAL_CALL replaceByName( const  OUString& aName, const  uno::Any& aElement ) throw( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);

	// XNameAccess
    virtual uno::Any SAL_CALL getByName( const  OUString& aName ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);

    virtual uno::Sequence<  OUString > SAL_CALL getElementNames(  ) throw( uno::RuntimeException);

    virtual sal_Bool SAL_CALL hasByName( const  OUString& aName ) throw( uno::RuntimeException);

	// XElementAccess
    virtual uno::Type SAL_CALL getElementType(  ) throw( uno::RuntimeException);
=====================================================================
Found a 19 line (162 tokens) duplication in the following files: 
Starting at line 1898 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2418 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

            0x6F, 0x67, 0x67, 0x6C, 0x65, 0x42, 0x75, 0x74,
            0x74, 0x6F, 0x6E, 0x2E, 0x31, 0x00, 0xF4, 0x39,
            0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00
        };

    {
    SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
    xStor->Write(aCompObj,sizeof(aCompObj));
    DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
    }

    {
    SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
    xStor3->Write(aObjInfo,sizeof(aObjInfo));
    DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
    }

    static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
=====================================================================
Found a 19 line (162 tokens) duplication in the following files: 
Starting at line 1680 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2800 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x42, 0x6F, 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39,
		0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
		0x43, 0x00, 0x6F, 0x00, 0x6D, 0x00, 0x62, 0x00,
=====================================================================
Found a 19 line (162 tokens) duplication in the following files: 
Starting at line 1679 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 1898 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x70, 0x74, 0x69, 0x6F, 0x6E, 0x42, 0x75, 0x74,
		0x74, 0x6F, 0x6E, 0x2E, 0x31, 0x00, 0xF4, 0x39,
		0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
=====================================================================
Found a 19 line (162 tokens) duplication in the following files: 
Starting at line 1578 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2800 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x42, 0x6F, 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39,
		0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
		0x43, 0x00, 0x6F, 0x00, 0x6D, 0x00, 0x62, 0x00,
=====================================================================
Found a 19 line (162 tokens) duplication in the following files: 
Starting at line 1577 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 1898 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x70, 0x74, 0x69, 0x6F, 0x6E, 0x42, 0x75, 0x74,
		0x74, 0x6F, 0x6E, 0x2E, 0x31, 0x00, 0xF4, 0x39,
		0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
=====================================================================
Found a 9 line (162 tokens) duplication in the following files: 
Starting at line 2077 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2151 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffVertPair mso_sptActionButtonBeginningVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },
	
	{ 0xa MSO_I, 10800 }, { 0xe MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0xc MSO_I },
=====================================================================
Found a 24 line (162 tokens) duplication in the following files: 
Starting at line 4794 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4374 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartCollateVert[] =
{
	{ 0, 0 }, { 21600, 21600 }, { 0, 21600 }, { 21600, 0 }, { 0, 0 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartCollateTextRect[] = 
{
	{ { 5400, 5400 }, { 16200, 16200 } }
};
static const SvxMSDffVertPair mso_sptFlowChartCollateGluePoints[] =
{
	{ 10800, 0 }, { 10800, 10800 }, { 10800, 21600 }
};
static const mso_CustomShape msoFlowChartCollate =
{
	(SvxMSDffVertPair*)mso_sptFlowChartCollateVert, sizeof( mso_sptFlowChartCollateVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartCollateTextRect, sizeof( mso_sptFlowChartCollateTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartCollateGluePoints, sizeof( mso_sptFlowChartCollateGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 15 line (162 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl2.cxx
Starting at line 3129 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

		Rectangle rRect( pView->CalcBmpRect( pEntry,0,pViewData ) );
		short nY = (short)( ((rRect.Top()+rRect.Bottom())/2) / nDeltaHeight );
		short nX = (short)( ((rRect.Left()+rRect.Right())/2) / nDeltaWidth );

		// Rundungsfehler abfangen
		if( nY >= nRows )
			nY = sal::static_int_cast< short >(nRows - 1);
		if( nX >= nCols )
			nX = sal::static_int_cast< short >(nCols - 1);

		USHORT nIns = GetSortListPos( &pColumns[nX], rRect.Top(), TRUE );
		pColumns[ nX ].Insert( pEntry, nIns );

		nIns = GetSortListPos( &pRows[nY], rRect.Left(), FALSE );
		pRows[ nY ].Insert( pEntry, nIns );
=====================================================================
Found a 15 line (162 tokens) duplication in the following files: 
Starting at line 1035 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/unomodel.cxx
Starting at line 1247 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/view.cxx

    Size    aPrtPaperSize ( pPrinter->GetPaperSize() );

	// set minimum top and bottom border
    if (aPrtPageOffset.Y() < 2000)
        OutputRect.Top() += 2000 - aPrtPageOffset.Y();
    if ((aPrtPaperSize.Height() - (aPrtPageOffset.Y() + OutputRect.Bottom())) < 2000)
        OutputRect.Bottom() -= 2000 - (aPrtPaperSize.Height() -
                                       (aPrtPageOffset.Y() + OutputRect.Bottom()));

	// set minimum left and right border
    if (aPrtPageOffset.X() < 2500)
        OutputRect.Left() += 2500 - aPrtPageOffset.X();
    if ((aPrtPaperSize.Width() - (aPrtPageOffset.X() + OutputRect.Right())) < 1500)
        OutputRect.Right() -= 1500 - (aPrtPaperSize.Width() -
                                      (aPrtPageOffset.X() + OutputRect.Right()));
=====================================================================
Found a 18 line (162 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/filtdlg.cxx
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/pfiltdlg.cxx

	:	ModalDialog	( pParent, ScResId( RID_SCDLG_PIVOTFILTER ) ),
		//
        aFlCriteria     ( this, ScResId( FL_CRITERIA ) ),
		aLbField1		( this, ScResId( LB_FIELD1 ) ),
		aLbCond1		( this, ScResId( LB_COND1 ) ),
		aEdVal1			( this, ScResId( ED_VAL1 ) ),
		aLbConnect1		( this, ScResId( LB_OP1 ) ),
		aLbField2		( this, ScResId( LB_FIELD2 ) ),
		aLbCond2		( this, ScResId( LB_COND2 ) ),
		aEdVal2			( this, ScResId( ED_VAL2 ) ),
		aLbConnect2		( this, ScResId( LB_OP2 ) ),
		aLbField3		( this, ScResId( LB_FIELD3 ) ),
		aLbCond3		( this, ScResId( LB_COND3 ) ),
		aEdVal3			( this, ScResId( ED_VAL3 ) ),
		aFtConnect		( this, ScResId( FT_OP ) ),
		aFtField		( this, ScResId( FT_FIELD ) ),
		aFtCond			( this, ScResId( FT_COND ) ),
		aFtVal			( this, ScResId( FT_VAL ) ),
=====================================================================
Found a 29 line (162 tokens) duplication in the following files: 
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dociter.cxx
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dociter.cxx

	nEndTab( rRange.aEnd.Tab() ),
	nNumFmtType( NUMBERFORMAT_UNDEFINED ),
	bNumValid( FALSE ),
	bSubTotal(bSTotal),
	bNextValid( FALSE ),
	bCalcAsShown( pDocument->GetDocOptions().IsCalcAsShown() ),
	bTextAsZero( bTextZero )
{
	PutInOrder( nStartCol, nEndCol);
	PutInOrder( nStartRow, nEndRow);
	PutInOrder( nStartTab, nEndTab );

	if (!ValidCol(nStartCol)) nStartCol = MAXCOL;
	if (!ValidCol(nEndCol)) nEndCol = MAXCOL;
	if (!ValidRow(nStartRow)) nStartRow = MAXROW;
	if (!ValidRow(nEndRow)) nEndRow = MAXROW;
	if (!ValidTab(nStartTab)) nStartTab = MAXTAB;
	if (!ValidTab(nEndTab)) nEndTab = MAXTAB;

	nCol = nStartCol;
	nRow = nStartRow;
	nTab = nStartTab;

	nColRow = 0;					// wird bei GetFirst initialisiert

	nNumFormat = 0;					// werden bei GetNumberFormat initialisiert
	pAttrArray = 0;
	nAttrEndRow = 0;
}
=====================================================================
Found a 26 line (162 tokens) duplication in the following files: 
Starting at line 732 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 644 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

				releaseProfile(pProfile);
#ifdef TRACE_OSL_PROFILE
                OSL_TRACE("Out osl_writeProfileString [not added]\n");
#endif
				return (sal_False);
			}

			pSec = &pProfile->m_Sections[pProfile->m_NoSections - 1];
			NoEntry = pSec->m_NoEntries;
		}

		Line[0] = '\0';
		strcpy(&Line[0], pszEntry);
		Line[0 + strlen(pszEntry)] = '=';
		strcpy(&Line[1 + strlen(pszEntry)], pszString);

		if (NoEntry >= pSec->m_NoEntries)
		{
			if (pSec->m_NoEntries > 0)
				i = pSec->m_Entries[pSec->m_NoEntries - 1].m_Line + 1;
			else
				i = pSec->m_Line + 1;

			if (((pStr = insertLine(pProfile, Line, i)) == NULL) ||
				(! addEntry(pProfile, pSec, i, pStr, strlen(pszEntry))))
			{
=====================================================================
Found a 19 line (162 tokens) duplication in the following files: 
Starting at line 2464 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 2602 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

void SAL_CALL OWriteStream::removeRelationshipByID(  const ::rtl::OUString& sID  )
		throw ( container::NoSuchElementException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	for ( sal_Int32 nInd1 = 0; nInd1 < aSeq.getLength(); nInd1++ )
		for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ )
			if ( aSeq[nInd1][nInd2].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Id" ) ) )
			{
				if ( aSeq[nInd1][nInd2].Second.equals( sID ) )
=====================================================================
Found a 38 line (162 tokens) duplication in the following files: 
Starting at line 721 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/threadtest/threadtest.cxx
Starting at line 722 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/threadtest.cxx

		pThreads[nI].pCondition = NULL;
	}

	delete[] pThreads;
	pThreads = NULL;

	nEndTime = osl_getGlobalTimer();

	// Calc used time and return it. [ms]
	return( nEndTime-nStartTime );
}

//_________________________________________________________________________________________________________________
void TestApplication::Main()
{
	sal_Int32 nTestCount	= 0;	/// count of calling "measureTime()"
	sal_Int32 nThreadCount	= 0;	/// count of used threads by "measure..."
	sal_Int32 nLoops		= 0;	/// loop count for every thread
	sal_Int32 nOwner		= 0;	/// number of owner thread

	// Parse command line.
	// Attention: All parameter are required and must exist!
	// syntax: "threadtest.exe <testcount> <threadcount> <loops> <owner>"
	OStartupInfo	aInfo		;
	OUString		sArgument	;
	sal_Int32		nArgument	;
	sal_Int32		nCount		= aInfo.getCommandArgCount();

	LOG_ASSERT2( nCount!=4 ,"TestApplication::Main()" , "Wrong argument line detected!")

	for( nArgument=0; nArgument<nCount; ++nArgument )
	{
		aInfo.getCommandArg( nArgument, sArgument );
		if( nArgument== 0 )	nTestCount	=sArgument.toInt32();
		if( nArgument== 1 )	nThreadCount=sArgument.toInt32();
		if( nArgument== 2 )	nLoops		=sArgument.toInt32();
		if( nArgument== 3 )	nOwner		=sArgument.toInt32();
	}
=====================================================================
Found a 26 line (162 tokens) duplication in the following files: 
Starting at line 629 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/marktest.cxx
Starting at line 626 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/marktest.cxx

		sal_Int32 nInBetweenMark = rMarkable->createMark( );
		rMarkable->jumpToMark( nMark );
		rMarkable->jumpToMark( nInBetweenMark );

		rInput->readBytes( seqRead , 10 );
		ERROR_ASSERT( 20 == seqRead.getArray()[0] , "Inbetween mark failed!\n" );

		rMarkable->deleteMark( nMark );

		// Check if releasing the first bytes works correct.
		rMarkable->jumpToMark( nInBetweenMark);
		rInput->readBytes( seqRead , 10 );
		ERROR_ASSERT( 20 == seqRead.getArray()[0] , "Inbetween mark failed!\n" );

		rMarkable->deleteMark( nInBetweenMark );
	}

	rMarkable->jumpToFurthest();
	ERROR_ASSERT( 256-10-50 == rInput->available() , "marking error" );


	ERROR_ASSERT( 100 == rInput->readSomeBytes( seqRead , 100	) , "wrong results using readSomeBytes" );
	ERROR_ASSERT( 96 == rInput->readSomeBytes( seqRead , 1000) , "wrong results using readSomeBytes" );
	rOutput->closeOutput();
	rInput->closeInput();
}
=====================================================================
Found a 37 line (162 tokens) duplication in the following files: 
Starting at line 396 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

			aStyle += NMSP_RTL::OUString::valueOf( ( 255 - (double) rFillColor.GetTransparency() ) / 255.0 );
		}
	}

	return aStyle.GetString();
}

// -----------------------------------------------------------------------------

void SVGAttributeWriter::SetFontAttr( const Font& rFont )
{
	if( !mpElemFont || ( rFont != maCurFont ) )
	{
		delete mpElemPaint, mpElemPaint = NULL;
		delete mpElemFont;
		mrExport.AddAttribute( XML_NAMESPACE_NONE, aXMLAttrStyle, GetFontStyle( maCurFont = rFont ) );
		mpElemFont = new SvXMLElementExport( mrExport, XML_NAMESPACE_NONE, aXMLElemG, TRUE, TRUE );
	}
}

// -----------------------------------------------------------------------------

void SVGAttributeWriter::SetPaintAttr( const Color& rLineColor, const Color& rFillColor )
{
	if( !mpElemPaint || ( rLineColor != maCurLineColor ) || ( rFillColor != maCurFillColor ) )
	{
		delete mpElemPaint;
		mrExport.AddAttribute( XML_NAMESPACE_NONE, aXMLAttrStyle, GetPaintStyle( maCurLineColor = rLineColor, maCurFillColor = rFillColor ) );
		mpElemPaint = new SvXMLElementExport( mrExport, XML_NAMESPACE_NONE, aXMLElemG, TRUE, TRUE );
	}
}

// -------------------
// - SVGActionWriter -
// -------------------

SVGActionWriter::SVGActionWriter( SvXMLExport& rExport, SVGFontExport& rFontExport ) :
=====================================================================
Found a 29 line (162 tokens) duplication in the following files: 
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OTools.cxx
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OTools.cxx

					_pData = (void*)((::rtl::OString*)_pData)->getStr();
				}	break;
				case SQL_BIT:
				case SQL_TINYINT:
					*((sal_Int8*)_pData) = *(sal_Int8*)_pValue;
					*pLen = sizeof(sal_Int8);
					break;

				case SQL_SMALLINT:
					*((sal_Int16*)_pData) = *(sal_Int16*)_pValue;
					*pLen = sizeof(sal_Int16);
					break;
				case SQL_INTEGER:
					*((sal_Int32*)_pData) = *(sal_Int32*)_pValue;
					*pLen = sizeof(sal_Int32);
					break;
				case SQL_FLOAT:
					*((float*)_pData) = *(float*)_pValue;
					*pLen = sizeof(float);
					break;
				case SQL_REAL:
				case SQL_DOUBLE:
					*((double*)_pData) = *(double*)_pValue;
					*pLen = sizeof(double);
					break;
				case SQL_BINARY:
				case SQL_VARBINARY:
                                                //      if (_pValue == ::getCppuType((const ::com::sun::star::uno::Sequence< sal_Int8 > *)0))
					{
=====================================================================
Found a 9 line (162 tokens) duplication in the following files: 
Starting at line 688 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/dbtools2.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx

		static const ::rtl::OUString sSELECT	= ::rtl::OUString::createFromAscii("SELECT");
		static const ::rtl::OUString sINSERT	= ::rtl::OUString::createFromAscii("INSERT");
		static const ::rtl::OUString sUPDATE	= ::rtl::OUString::createFromAscii("UPDATE");
		static const ::rtl::OUString sDELETE	= ::rtl::OUString::createFromAscii("DELETE");
		static const ::rtl::OUString sREAD		= ::rtl::OUString::createFromAscii("READ");
		static const ::rtl::OUString sCREATE	= ::rtl::OUString::createFromAscii("CREATE");
		static const ::rtl::OUString sALTER		= ::rtl::OUString::createFromAscii("ALTER");
		static const ::rtl::OUString sREFERENCE = ::rtl::OUString::createFromAscii("REFERENCE");
		static const ::rtl::OUString sDROP		= ::rtl::OUString::createFromAscii("DROP");
=====================================================================
Found a 44 line (162 tokens) duplication in the following files: 
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx

		}
	}
	catch(std::exception& e)
	{
		e.what();	// silence warnings
	}
}

// -----------------------------------------------------------------------------
Sequence<Any> createSequence(const OUString &sUser, const OUString &sPasswd)
{
	Sequence< Any > aCPArgs;
		
	if (sUser.getLength() > 0)
	{
		aCPArgs.realloc(1);
		aCPArgs[0] <<= configmgr::createPropertyValue(ASCII("user"), sUser);
	}
	if (sPasswd.getLength() > 0)
	{
		aCPArgs.realloc(2);
		aCPArgs[1] <<= configmgr::createPropertyValue(ASCII("password"), sPasswd);
	}
	return aCPArgs;
}

//=============================================================================
#include <string.h>
#if (defined UNX) || (defined OS2)
#else
#include <conio.h>
#endif

OString input(const char* pDefaultText, char cEcho)
{
	// PRE: a Default Text would be shown, cEcho is a Value which will show if a key is pressed.
	const int MAX_INPUT_LEN = 500;
	char aBuffer[MAX_INPUT_LEN];

	strcpy(aBuffer, pDefaultText);
	int nLen = strlen(aBuffer);

#ifdef WNT
	char ch = '\0';
=====================================================================
Found a 30 line (162 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppumaker.cxx
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppumaker.cxx

    produce(typeName, typeMgr, generated, pOptions);

    RegistryKeyList typeKeys = typeMgr.getTypeKeys(typeName);
	RegistryKeyList::const_iterator iter = typeKeys.begin();
    RegistryKey key, subKey;
    RegistryKeyArray subKeys;

	while (iter != typeKeys.end())
	{
        key = (*iter).first;
        if (!(*iter).second  && !key.openSubKeys(OUString(), subKeys))
        {
            for (sal_uInt32 i = 0; i < subKeys.getLength(); i++)
            {
                subKey = subKeys.getElement(i);
                if (bFullScope)
                {
                    produceAllTypes(subKey, (*iter).second, typeMgr,
                                    generated, pOptions, true);
                } else
                {
                    produce(subKey, (*iter).second,
                            typeMgr, generated, pOptions);
                }
            }
        }      
        
        ++iter;
	}
}
=====================================================================
Found a 33 line (162 tokens) duplication in the following files: 
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

        : "m"(nStackLongs), "m"(pStackLongs), "m"(pAdjustedThisPtr),
          "m"(nVtableIndex), "m"(eax), "m"(edx), "m"(stackptr)
        : "eax", "edx" );
	switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
	}
}

//================================================================================================== 
static void cpp_call(
=====================================================================
Found a 36 line (162 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 29 line (162 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx

    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );
        
        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );

        if (rtti)
        {
            pair< t_rtti_map::iterator, bool > insertion(
                m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
            OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" );
        }
        else
        {
            // try to lookup the symbol in the generated rtti map
            t_rtti_map::const_iterator iiFind( m_generatedRttis.find( unoName ) );
=====================================================================
Found a 36 line (162 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

			    pCppStack += sizeof(sal_Int32); // extra long
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, 
                                        pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 30 line (161 tokens) duplication in the following files: 
Starting at line 5886 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/doctok/resources.cxx
Starting at line 6283 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/doctok/resources.cxx

    void WW8BKF::resolve(Properties & rHandler)
    {
        try 
        {
            {
                WW8Value::Pointer_t pVal = createValue(get_ibkl());
                rHandler.attribute(NS_rtf::LN_IBKL, *pVal);
            }
            {
                WW8Value::Pointer_t pVal = createValue(get_itcFirst());
                rHandler.attribute(NS_rtf::LN_ITCFIRST, *pVal);
            }
            {
                WW8Value::Pointer_t pVal = createValue(get_fPub());
                rHandler.attribute(NS_rtf::LN_FPUB, *pVal);
            }
            {
                WW8Value::Pointer_t pVal = createValue(get_itcLim());
                rHandler.attribute(NS_rtf::LN_ITCLIM, *pVal);
            }
            {
                WW8Value::Pointer_t pVal = createValue(get_fCol());
                rHandler.attribute(NS_rtf::LN_FCOL, *pVal);
            }
      } catch (Exception & e) {
         clog << e.getText() << endl;
      }
    }

    void 
=====================================================================
Found a 19 line (161 tokens) duplication in the following files: 
Starting at line 4456 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6292 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        0x00,0x44,0x6C,0x6C,0x54,0x54,0x44,0x44,0x44,0x44,0x00,0x00,

        7, // 0x4E 'N'
        0x00,0x44,0x64,0x64,0x54,0x54,0x4C,0x4C,0x44,0x44,0x00,0x00,

        7, // 0x4F 'O'
        0x00,0x38,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x38,0x00,0x00,

        7, // 0x50 'P'
        0x00,0x78,0x44,0x44,0x44,0x44,0x78,0x40,0x40,0x40,0x00,0x00,

        7, // 0x51 'Q'
        0x00,0x38,0x44,0x44,0x44,0x44,0x44,0x54,0x48,0x34,0x00,0x00,

        7, // 0x52 'R'
        0x00,0x78,0x44,0x44,0x44,0x44,0x78,0x48,0x44,0x44,0x00,0x00,

        7, // 0x53 'S'
        0x00,0x38,0x44,0x40,0x40,0x38,0x04,0x04,0x44,0x38,0x00,0x00,
=====================================================================
Found a 26 line (161 tokens) duplication in the following files: 
Starting at line 671 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 694 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

            unsigned step_back = diameter << 2;
            color_type* span = base_type::allocator().span();

            int maxx = base_type::source_image().width() + start - 2;
            int maxy = base_type::source_image().height() + start - 2;

            int maxx2 = base_type::source_image().width() - start - 1;
            int maxy2 = base_type::source_image().height() - start - 1;

            int x_count; 
            int weight_y;

            do
            {
                base_type::interpolator().coordinates(&x, &y);

                x -= base_type::filter_dx_int();
                y -= base_type::filter_dy_int();

                int x_hr = x; 
                int y_hr = y; 

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 45 line (161 tokens) duplication in the following files: 
Starting at line 634 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 1051 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

            value_type* p = (value_type*)m_rbuf->span_ptr(x, y, len);
            if(covers)
            {
                do 
                {
                    blender_type::copy_or_blend_opaque_pix(p, *colors++, *covers++);
                    p += 4;
                }
                while(--len);
            }
            else
            {
                if(cover == 255)
                {
                    do 
                    {
                        p[order_type::R] = colors->r;
                        p[order_type::G] = colors->g;
                        p[order_type::B] = colors->b;
                        p[order_type::A] = base_mask;
                        p += 4;
                        ++colors;
                    }
                    while(--len);
                }
                else
                {
                    do 
                    {
                        blender_type::copy_or_blend_opaque_pix(p, *colors++, cover);
                        p += 4;
                    }
                    while(--len);
                }
            }
        }


        //--------------------------------------------------------------------
        void blend_opaque_color_vspan(int x, int y,
                                      unsigned len, 
                                      const color_type* colors,
                                      const int8u* covers,
                                      int8u cover)
        {
=====================================================================
Found a 20 line (161 tokens) duplication in the following files: 
Starting at line 387 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 424 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

        void blend_vline(int x, int y,
                         unsigned len, 
                         const color_type& c,
                         int8u cover)
        {
            if (c.a)
            {
                value_type* p = (value_type*)m_rbuf->row(y) + (x << 2);
                calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8;
                if(alpha == base_mask)
                {
                    pixel_type v;
                    ((value_type*)&v)[order_type::R] = c.r;
                    ((value_type*)&v)[order_type::G] = c.g;
                    ((value_type*)&v)[order_type::B] = c.b;
                    ((value_type*)&v)[order_type::A] = c.a;
                    do
                    {
                        *(pixel_type*)p = v;
                        p = (value_type*)m_rbuf->next_row(p);
=====================================================================
Found a 42 line (161 tokens) duplication in the following files: 
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static const ucb::CommandInfo aCommandInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory commands
		///////////////////////////////////////////////////////////////
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::Property > * >( 0 ) )
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
		)
		///////////////////////////////////////////////////////////////
		// Optional standard commands
		///////////////////////////////////////////////////////////////

#ifdef IMPLEMENT_COMMAND_DELETE
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
			-1,
			getCppuBooleanType()
		)
#endif
#ifdef IMPLEMENT_COMMAND_INSERT
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
			-1,
=====================================================================
Found a 33 line (161 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const beans::Property aRootPropertyInfoTable[] =
		{
			///////////////////////////////////////////////////////////////
            // Mandatory properties
			///////////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
				-1,
				getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
				-1,
				getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			)
=====================================================================
Found a 42 line (161 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static const ucb::CommandInfo aCommandInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory commands
		///////////////////////////////////////////////////////////////
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::Property > * >( 0 ) )
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
		)
		///////////////////////////////////////////////////////////////
		// Optional standard commands
		///////////////////////////////////////////////////////////////

#ifdef IMPLEMENT_COMMAND_DELETE
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
			-1,
			getCppuBooleanType()
		)
#endif
#ifdef IMPLEMENT_COMMAND_INSERT
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
			-1,
=====================================================================
Found a 33 line (161 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const beans::Property aRootPropertyInfoTable[] =
		{
			///////////////////////////////////////////////////////////////
            // Mandatory properties
			///////////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
				-1,
				getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
				-1,
				getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
				-1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
			)
=====================================================================
Found a 42 line (161 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static const ucb::CommandInfo aCommandInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory commands
		///////////////////////////////////////////////////////////////
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::Property > * >( 0 ) )
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
		)
		///////////////////////////////////////////////////////////////
		// Optional standard commands
		///////////////////////////////////////////////////////////////

#ifdef IMPLEMENT_COMMAND_DELETE
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
			-1,
			getCppuBooleanType()
		)
#endif
#ifdef IMPLEMENT_COMMAND_INSERT
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
			-1,
=====================================================================
Found a 35 line (161 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static beans::Property aFolderPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                )
=====================================================================
Found a 25 line (161 tokens) duplication in the following files: 
Starting at line 1215 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

uno::Sequence< uno::Any > Content::setPropertyValues(
        const uno::Sequence< beans::PropertyValue >& rValues,
        const uno::Reference< ucb::XCommandEnvironment > & xEnv )
    throw( uno::Exception )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );

    uno::Sequence< uno::Any > aRet( rValues.getLength() );
    uno::Sequence< beans::PropertyChangeEvent > aChanges( rValues.getLength() );
	sal_Int32 nChanged = 0;

    beans::PropertyChangeEvent aEvent;
    aEvent.Source         = static_cast< cppu::OWeakObject * >( this );
	aEvent.Further 		  = sal_False;
//	aEvent.PropertyName	  =
	aEvent.PropertyHandle = -1;
//	aEvent.OldValue		  =
//	aEvent.NewValue       =

    const beans::PropertyValue* pValues = rValues.getConstArray();
	sal_Int32 nCount = rValues.getLength();

    uno::Reference< ucb::XPersistentPropertySet > xAdditionalPropSet;
	sal_Bool bTriedToGetAdditonalPropSet = sal_False;
	sal_Bool bExchange = sal_False;
=====================================================================
Found a 43 line (161 tokens) duplication in the following files: 
Starting at line 1424 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static const ucb::CommandInfo aLinkCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                    -1,
                    getCppuBooleanType()
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
                    -1,
=====================================================================
Found a 30 line (161 tokens) duplication in the following files: 
Starting at line 2628 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx
Starting at line 2724 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx

                    INetURLObject aURL;
                    aURL.SetSmartProtocol( INET_PROT_FILE );
                    aURL.SetSmartURL( sFile );
                    sFile = aURL.GetMainURL( INetURLObject::NO_DECODE );

                    switch( rSh.GetObjCntTypeOfSelection() )
                    {
                    case OBJCNT_FLY:
                    case OBJCNT_GRF:
                    case OBJCNT_OLE:
                        {
                            SfxItemSet aSet( rSh.GetAttrPool(), RES_URL, RES_URL );
                            rSh.GetFlyFrmAttr( aSet );
                            SwFmtURL aURL( (SwFmtURL&)aSet.Get( RES_URL ) );
                            aURL.SetURL( sFile, FALSE );
                            if( !aURL.GetName().Len() )
                                aURL.SetName( sFile );
                            aSet.Put( aURL );
                            rSh.SetFlyFrmAttr( aSet );
                        }
                        break;

                    default:
                        {
                            rSh.InsertURL( SwFmtINetFmt( sFile, aEmptyStr ),
                                            sDesc.Len() ? sDesc : sFile );
                        }
                    }
                    nRet = TRUE;
                }
=====================================================================
Found a 25 line (161 tokens) duplication in the following files: 
Starting at line 3141 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/num.cxx

				bSameDist       &= aNumFmtArr[i]->GetCharTextDistance() == aNumFmtArr[nLvl]->GetCharTextDistance();
				bSameIndent     &= aNumFmtArr[i]->GetFirstLineOffset() == aNumFmtArr[nLvl]->GetFirstLineOffset();
				bSameAdjust 	&= aNumFmtArr[i]->GetNumAdjust() == aNumFmtArr[nLvl]->GetNumAdjust();

			}
		}
//			else
//				aNumFmtArr[i] = 0;
		nMask <<= 1;

	}
	if(bSameDistBorderNum)
//	if(bSameDistBorder)
	{
		long nDistBorderNum;
		if(bRelative)
		{
			nDistBorderNum = (long)aNumFmtArr[nLvl]->GetAbsLSpace()+ aNumFmtArr[nLvl]->GetFirstLineOffset();
			if(nLvl)
				nDistBorderNum -= (long)aNumFmtArr[nLvl - 1]->GetAbsLSpace()+ aNumFmtArr[nLvl - 1]->GetFirstLineOffset();
		}
		else
		{
			nDistBorderNum = (long)aNumFmtArr[nLvl]->GetAbsLSpace()+ aNumFmtArr[nLvl]->GetFirstLineOffset();
		}
=====================================================================
Found a 27 line (161 tokens) duplication in the following files: 
Starting at line 4819 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4398 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartSortVert[] =
{
	{ 0, 10800 }, { 10800, 0 }, { 21600, 10800 }, { 10800, 21600 },

	{ 0, 10800 }, { 21600, 10800 }
};
static const sal_uInt16 mso_sptFlowChartSortSegm[] =
{
	0x4000, 0x0003, 0x6000, 0x8000,
	0x4000, 0x0001, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartSortTextRect[] = 
{
	{ { 5400, 5400 }, { 16200, 16200 } }
};
static const mso_CustomShape msoFlowChartSort =
{
	(SvxMSDffVertPair*)mso_sptFlowChartSortVert, sizeof( mso_sptFlowChartSortVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartSortSegm, sizeof( mso_sptFlowChartSortSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartSortTextRect, sizeof( mso_sptFlowChartSortTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 37 line (161 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/restrictedpaths.cxx
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc1/folderrestriction.cxx

static void convertStringListToUrls (
	const String& _rColonSeparatedList, ::std::vector< String >& _rTokens, bool _bFinalSlash )
{
	const sal_Unicode s_cSeparator =
#if defined(WNT)
		';'
#else
		':'
#endif
            ;
	xub_StrLen nTokens = _rColonSeparatedList.GetTokenCount( s_cSeparator );
	_rTokens.resize( 0 ); _rTokens.reserve( nTokens );
	for ( xub_StrLen i=0; i<nTokens; ++i )
	{
		// the current token in the list
		String sCurrentToken = _rColonSeparatedList.GetToken( i, s_cSeparator );
		if ( !sCurrentToken.Len() )
			continue;

		INetURLObject aCurrentURL;

		String sURL;
		if ( ::utl::LocalFileHelper::ConvertPhysicalNameToURL( sCurrentToken, sURL ) )
			aCurrentURL = INetURLObject( sURL );
		else
		{
			// smart URL parsing, assuming FILE protocol
			aCurrentURL = INetURLObject( sCurrentToken, INET_PROT_FILE );
		}

		if ( _bFinalSlash )
			aCurrentURL.setFinalSlash( );
		else
			aCurrentURL.removeFinalSlash( );
		_rTokens.push_back( aCurrentURL.GetMainURL( INetURLObject::NO_DECODE ) );
	}
}
=====================================================================
Found a 28 line (161 tokens) duplication in the following files: 
Starting at line 1340 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/tabbar.cxx
Starting at line 1334 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/tabctrl.cxx

                Rectangle aItemRect = ImplGetTabRect( GetPagePos( nItemId ) );
                Point aPt = OutputToScreenPixel( aItemRect.TopLeft() );
                aItemRect.Left()   = aPt.X();
                aItemRect.Top()    = aPt.Y();
                aPt = OutputToScreenPixel( aItemRect.BottomRight() );
                aItemRect.Right()  = aPt.X();
                aItemRect.Bottom() = aPt.Y();
                Help::ShowBalloon( this, aItemRect.Center(), aItemRect, aStr );
                return;
            }
        }
        else if ( rHEvt.GetMode() & HELPMODE_EXTENDED )
        {
            ULONG nHelpId = GetHelpId( nItemId );
            if ( nHelpId )
            {
                // Wenn eine Hilfe existiert, dann ausloesen
                Help* pHelp = Application::GetHelp();
                if ( pHelp )
                    pHelp->Start( nHelpId, this );
                return;
            }
        }

        // Bei Quick- oder Ballloon-Help zeigen wir den Text an,
        // wenn dieser abgeschnitten ist
        if ( rHEvt.GetMode() & (HELPMODE_QUICK | HELPMODE_BALLOON) )
        {
=====================================================================
Found a 23 line (161 tokens) duplication in the following files: 
Starting at line 618 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl1.cxx
Starting at line 1180 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

void SvImpIconView::AdjustVirtSize( const Rectangle& rRect )
{
	long nHeightOffs = 0;
	long nWidthOffs = 0;

	if( aVirtOutputSize.Width() < (rRect.Right()+LROFFS_WINBORDER) )
		nWidthOffs = (rRect.Right()+LROFFS_WINBORDER) - aVirtOutputSize.Width();

	if( aVirtOutputSize.Height() < (rRect.Bottom()+TBOFFS_WINBORDER) )
		nHeightOffs = (rRect.Bottom()+TBOFFS_WINBORDER) - aVirtOutputSize.Height();

	if( nWidthOffs || nHeightOffs )
	{
		Range aRange;
		aVirtOutputSize.Width() += nWidthOffs;
		aRange.Max() = aVirtOutputSize.Width();
		aHorSBar.SetRange( aRange );

		aVirtOutputSize.Height() += nHeightOffs;
		aRange.Max() = aVirtOutputSize.Height();
		aVerSBar.SetRange( aRange );

		pImpCursor->Clear();
=====================================================================
Found a 20 line (161 tokens) duplication in the following files: 
Starting at line 381 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/rangenam.cxx
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/rangenam.cxx

void ScRangeData::UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY )
{
	BOOL bChanged = FALSE;

	ScToken* t;
	pCode->Reset();

	for( t = pCode->GetNextReference(); t; t = pCode->GetNextReference() )
	{
		if( t->GetType() != svIndex )
		{
			SingleDoubleRefModifier aMod( *t );
			ComplRefData& rRef = aMod.Ref();
			if (!rRef.Ref1.IsColRel() && !rRef.Ref1.IsRowRel() &&
					(!rRef.Ref1.IsFlag3D() || !rRef.Ref1.IsTabRel()) &&
				( t->GetType() == svSingleRef ||
				(!rRef.Ref2.IsColRel() && !rRef.Ref2.IsRowRel() &&
					(!rRef.Ref2.IsFlag3D() || !rRef.Ref2.IsTabRel()))))
			{
				if ( ScRefUpdate::UpdateGrow( rArea,nGrowX,nGrowY, rRef ) != UR_NOTHING )
=====================================================================
Found a 7 line (161 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/file_url.cxx
Starting at line 568 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* !"#$%&'()*+,-./*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 23 line (161 tokens) duplication in the following files: 
Starting at line 983 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/datatest.cxx
Starting at line 1042 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/datatest.cxx

			float f = 42.23;
			any <<= f;
			rProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("float")) , any );
			
			double d = 233.321412;
			any <<= d;
			rProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("double")) , any );
			
			sal_Bool b = sal_True;
			any.setValue( &b , getCppuBooleanType() );
			rProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("bool")) , any );
			
			sal_Int8 by = 120;
			any <<= by;
			rProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("byte")) , any );
			
			sal_Unicode c = 'h';
			any.setValue( &c , getCppuCharType() );
			rProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("char")) , any );
			
			OUString str( RTL_CONSTASCII_USTRINGPARAM( "hi du !" ) );
			any <<= str;
			rProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("string")) , any );
=====================================================================
Found a 7 line (161 tokens) duplication in the following files: 
Starting at line 434 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/datatest.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/components/display.cxx

    virtual Reference< XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (RuntimeException);
    virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const Any& aValue ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException);
    virtual Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& xListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException);
=====================================================================
Found a 6 line (161 tokens) duplication in the following files: 
Starting at line 1505 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1513 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13,13,13,13,13,13,13,13,13,13,13,13,10,10,// fd30 - fd3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fd40 - fd4f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd50 - fd5f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd60 - fd6f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd70 - fd7f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd80 - fd8f
=====================================================================
Found a 7 line (161 tokens) duplication in the following files: 
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1182 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17, 0, 0,// 0ec0 - 0ecf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ed0 - 0edf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ee0 - 0eef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ef0 - 0eff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f00 - 0f0f
     0, 0, 0, 0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0,// 0f10 - 0f1f
=====================================================================
Found a 7 line (161 tokens) duplication in the following files: 
Starting at line 1030 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1079 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07f0 - 07ff

     0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0900 - 090f
=====================================================================
Found a 6 line (161 tokens) duplication in the following files: 
Starting at line 863 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 871 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,20,21,// fd30 - fd3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fd40 - fd4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd50 - fd5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd60 - fd6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd70 - fd7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd80 - fd8f
=====================================================================
Found a 26 line (161 tokens) duplication in the following files: 
Starting at line 844 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,    0xE082,         0,         0,
    // F080
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F090
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
=====================================================================
Found a 6 line (161 tokens) duplication in the following files: 
Starting at line 400 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 871 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,20,21,// fd30 - fd3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fd40 - fd4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd50 - fd5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd60 - fd6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd70 - fd7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd80 - fd8f
=====================================================================
Found a 7 line (161 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07f0 - 07ff

     0, 6, 6, 8, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0900 - 090f
=====================================================================
Found a 31 line (161 tokens) duplication in the following files: 
Starting at line 810 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dopngl.cxx
Starting at line 892 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dopngl.cxx

	Base3DMaterialValue eVal, Base3DLightNumber eNum)
{
	// OpenGL Specifics
	Color aSource;
	if(GetOutputDevice()->GetDrawMode() & DRAWMODE_GRAYFILL)
	{
		// Graustufen
		UINT8 nLuminance = rNew.GetLuminance();
		aSource.SetRed(nLuminance);
		aSource.SetGreen(nLuminance);
		aSource.SetBlue(nLuminance);
		aSource.SetTransparency(rNew.GetTransparency());
	}
	else if(GetOutputDevice()->GetDrawMode() & DRAWMODE_WHITEFILL)
	{
		// Keine Ausgabe, hier Weiss als Farbe setzen
		aSource = Color(COL_WHITE);
	}
	else
	{
		// Normale Farbausgabe
		aSource = rNew;
	}

	// Array fuellen
	float fArray[4] = {
		((float)aSource.GetRed()) / (float)255.0,
		((float)aSource.GetGreen()) / (float)255.0,
		((float)aSource.GetBlue()) / (float)255.0,
		((float)aSource.GetTransparency()) / (float)255.0
	};
=====================================================================
Found a 36 line (161 tokens) duplication in the following files: 
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/office/iodlg.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/restrictedpaths.cxx

        void lcl_convertStringListToUrls( const String& _rColonSeparatedList, ::std::vector< String >& _rTokens, bool _bFinalSlash )
        {
            const sal_Unicode s_cSeparator =
    #if defined(WNT)
                ';'
    #else
                ':'
    #endif
                ;
            xub_StrLen nTokens = _rColonSeparatedList.GetTokenCount( s_cSeparator );
            _rTokens.resize( 0 ); _rTokens.reserve( nTokens );
            for ( xub_StrLen i=0; i<nTokens; ++i )
            {
                // the current token in the list
                String sCurrentToken = _rColonSeparatedList.GetToken( i, s_cSeparator );
                if ( !sCurrentToken.Len() )
                    continue;

                INetURLObject aCurrentURL;

                String sURL;
                if ( ::utl::LocalFileHelper::ConvertPhysicalNameToURL( sCurrentToken, sURL ) )
                    aCurrentURL = INetURLObject( sURL );
                else
                {
                    // smart URL parsing, assuming FILE protocol
                    aCurrentURL = INetURLObject( sCurrentToken, INET_PROT_FILE );
                }

                if ( _bFinalSlash )
                    aCurrentURL.setFinalSlash( );
                else
                    aCurrentURL.removeFinalSlash( );
                _rTokens.push_back( aCurrentURL.GetMainURL( INetURLObject::NO_DECODE ) );
            }
        }
=====================================================================
Found a 7 line (161 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07f0 - 07ff

     0, 6, 6, 8, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0900 - 090f
=====================================================================
Found a 37 line (161 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgregistry.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/local_io/cfglocal.cxx

using namespace rtl;

// #define USE_LAYOUT_NODE

//=============================================================================
//= a dirty littly class for printing ascii characters
//=============================================================================
class OAsciiOutput
{
protected:
	sal_Char*	m_pCharacters;

public:
	OAsciiOutput(const ::rtl::OUString& _rUnicodeChars);
	~OAsciiOutput() { delete m_pCharacters; }

	const sal_Char* getCharacters() const { return m_pCharacters; }
};

//-----------------------------------------------------------------------------
OAsciiOutput::OAsciiOutput(const ::rtl::OUString& _rUnicodeChars)
{
	sal_Int32 nLen = _rUnicodeChars.getLength();
	m_pCharacters = new sal_Char[nLen + 1];
	sal_Char* pFillPtr = m_pCharacters;
	const sal_Unicode* pSourcePtr = _rUnicodeChars.getStr();
#ifdef DBG_UTIL
	sal_Bool bAsserted = sal_False;
#endif
	for (sal_Int32 i=0; i<nLen; ++i, ++pFillPtr, ++pSourcePtr)
	{
		OSL_ENSURE(bAsserted || !(bAsserted = (*pSourcePtr >= 0x80)),
			"OAsciiOutput::OAsciiOutput : non-ascii character found !");
		*pFillPtr = *reinterpret_cast<const sal_Char*>(pSourcePtr);
	}
	*pFillPtr = 0;
}
=====================================================================
Found a 24 line (161 tokens) duplication in the following files: 
Starting at line 975 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/VSeriesPlotter.cxx
Starting at line 1009 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/VSeriesPlotter.cxx

        return fMaxY;
    }

    double fMinimum, fMaximum;
    ::rtl::math::setInf(&fMinimum, false);
    ::rtl::math::setInf(&fMaximum, true);
    for(size_t nZ =0; nZ<m_aZSlots.size();nZ++ )
    {
        ::std::vector< VDataSeriesGroup >& rXSlots = m_aZSlots[nZ];
        for(size_t nN =0; nN<rXSlots.size();nN++ )
        {
            double fLocalMinimum, fLocalMaximum;
            rXSlots[nN].calculateYMinAndMaxForCategoryRange(
                                static_cast<sal_Int32>(fMinimumX-1.0) //first category (index 0) matches with real number 1.0
                                , static_cast<sal_Int32>(fMaximumX-1.0) //first category (index 0) matches with real number 1.0
                                , isSeperateStackingForDifferentSigns( 1 )
                                , fLocalMinimum, fLocalMaximum, nAxisIndex );
            if(fMaximum<fLocalMaximum)
                fMaximum=fLocalMaximum;
            if(fMinimum>fLocalMinimum)
                fMinimum=fLocalMinimum;
        }
    }
    if(::rtl::math::isInf(fMaximum))
=====================================================================
Found a 28 line (161 tokens) duplication in the following files: 
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx
Starting at line 488 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

        reinterpret_cast< unsigned char * >(p) - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

} //end of namespace

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0; //null
    slots[-1] = 0; //destructor
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vTableOffset)
=====================================================================
Found a 28 line (161 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx

			pUnoReturn = (cppu_relatesToInterface( pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
        gpreg++; 
        ng++;

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr )) // value
=====================================================================
Found a 18 line (160 tokens) duplication in the following files: 
Starting at line 2935 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/xexptran.cxx
Starting at line 3004 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/xexptran.cxx

						sal_Int32 nX1 = FRound((double)((nXX * 2) + aPPrev1.X) / 3.0);
						sal_Int32 nY1 = FRound((double)((nYY * 2) + aPPrev1.Y) / 3.0);
						sal_Int32 nX2 = FRound((double)((nXX * 2) + nX) / 3.0);
						sal_Int32 nY2 = FRound((double)((nYY * 2) + nY) / 3.0);

						// correct polygon flag for previous point
						Imp_CorrectPolygonFlag(nInnerIndex, pNotSoInnerSequence, pNotSoInnerFlags, nX1, nY1);
						
						// add new points and set flags
						Imp_AddExportPoints(nX1, nY1, pNotSoInnerSequence, pNotSoInnerFlags, nInnerIndex++, drawing::PolygonFlags_CONTROL);
						Imp_AddExportPoints(nX2, nY2, pNotSoInnerSequence, pNotSoInnerFlags, nInnerIndex++, drawing::PolygonFlags_CONTROL);
						Imp_AddExportPoints(nX, nY, pNotSoInnerSequence, pNotSoInnerFlags, nInnerIndex++, drawing::PolygonFlags_SMOOTH);
					}
					break;
				}

				// #100617# not yet supported: elliptical arc
				case 'A' :
=====================================================================
Found a 6 line (160 tokens) duplication in the following files: 
Starting at line 42 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_mask.h

 0x00,0xfc,0x01,0x00,0x00,0xf8,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 42 line (160 tokens) duplication in the following files: 
Starting at line 633 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 683 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

        {
            static const ucb::CommandInfo aRootFolderCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
                ),
=====================================================================
Found a 34 line (160 tokens) duplication in the following files: 
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

        {
            static beans::Property aFolderPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
=====================================================================
Found a 34 line (160 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

        {
            static beans::Property aLinkPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
=====================================================================
Found a 24 line (160 tokens) duplication in the following files: 
Starting at line 788 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/fly.cxx
Starting at line 3370 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/tabfrm.cxx

	if( bAttrSetChg )
	{
		SfxItemIter aNIter( *((SwAttrSetChg*)pNew)->GetChgSet() );
		SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() );
		SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld );
		SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew );
		while( TRUE )
		{
			_UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(),
						 (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags,
						 &aOldSet, &aNewSet );
			if( aNIter.IsAtEnd() )
				break;
			aNIter.NextItem();
			aOIter.NextItem();
		}
		if ( aOldSet.Count() || aNewSet.Count() )
			SwLayoutFrm::Modify( &aOldSet, &aNewSet );
	}
	else
		_UpdateAttr( pOld, pNew, nInvFlags );

	if ( nInvFlags != 0 )
	{
=====================================================================
Found a 20 line (160 tokens) duplication in the following files: 
Starting at line 2799 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4966 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x6D, 0x73, 0x2E, 0x43, 0x68, 0x65, 0x63, 0x6B,
		0x42, 0x6F, 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39,
		0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00
	};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
		0x43, 0x00, 0x68, 0x00, 0x65, 0x00, 0x63, 0x00,
=====================================================================
Found a 23 line (160 tokens) duplication in the following files: 
Starting at line 1618 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 3287 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx

void SvxNumPositionTabPage::Reset( const SfxItemSet& rSet )
{
	const SfxPoolItem* pItem;
	//im Draw gibt es das Item als WhichId, im Writer nur als SlotId
	SfxItemState eState = rSet.GetItemState(SID_ATTR_NUMBERING_RULE, FALSE, &pItem);
	if(eState != SFX_ITEM_SET)
	{
		nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE);
		eState = rSet.GetItemState(nNumItemId, FALSE, &pItem);
	}
	DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!")
	delete pSaveNum;
	pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule());

	// Ebenen einfuegen
	if(!aLevelLB.GetEntryCount())
	{
		for(USHORT i = 1; i <= pSaveNum->GetLevelCount(); i++)
			aLevelLB.InsertEntry(UniString::CreateFromInt32(i));
		if(pSaveNum->GetLevelCount() > 1)
		{
			String sEntry( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "1 - ") ) );
			sEntry.Append( UniString::CreateFromInt32( pSaveNum->GetLevelCount() ) );
=====================================================================
Found a 12 line (160 tokens) duplication in the following files: 
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/cfg.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/selector.cxx

		, nMode( nConfigMode ), bShowSF( TRUE ),
    m_hdImage(ResId(IMG_HARDDISK,*rResId.GetResMgr())),
    m_hdImage_hc(ResId(IMG_HARDDISK_HC,*rResId.GetResMgr())),
    m_libImage(ResId(IMG_LIB,*rResId.GetResMgr())),
    m_libImage_hc(ResId(IMG_LIB_HC,*rResId.GetResMgr())),
    m_macImage(ResId(IMG_MACRO,*rResId.GetResMgr())),
    m_macImage_hc(ResId(IMG_MACRO_HC,*rResId.GetResMgr())),
    m_docImage(ResId(IMG_DOC,*rResId.GetResMgr())),
    m_docImage_hc(ResId(IMG_DOC_HC,*rResId.GetResMgr())),
    m_sMyMacros(String(ResId(STR_MYMACROS,*rResId.GetResMgr()))),
    m_sProdMacros(String(ResId(STR_PRODMACROS,*rResId.GetResMgr())))
{
=====================================================================
Found a 37 line (160 tokens) duplication in the following files: 
Starting at line 647 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlview.cxx
Starting at line 775 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlview.cxx

			if (pParagraph)
				nPos++;
		}
		// Seite und Notizseite loeschen

		USHORT nAbsPos = (USHORT)nPos * 2 + 1;
		SdrPage* pPage = mpDoc->GetPage(nAbsPos);
		if( isRecordingUndo() )
			AddUndo(mpDoc->GetSdrUndoFactory().CreateUndoDeletePage(*pPage));
		mpDoc->RemovePage(nAbsPos);

		nAbsPos = (USHORT)nPos * 2 + 1;
		pPage = mpDoc->GetPage(nAbsPos);
		if( isRecordingUndo() )
			AddUndo(mpDoc->GetSdrUndoFactory().CreateUndoDeletePage(*pPage));
		mpDoc->RemovePage(nAbsPos);

		// ggfs. Fortschrittsanzeige
		if (mnPagesToProcess)
		{
			mnPagesProcessed++;
			if (mpProgress)
				mpProgress->SetState(mnPagesProcessed);

			if (mnPagesProcessed == mnPagesToProcess)
			{
				if(mpProgress)
				{
					delete mpProgress;
					mpProgress = NULL;
				}
				mnPagesToProcess = 0;
				mnPagesProcessed = 0;
			}
		}
		pOutliner->UpdateFields();
	}
=====================================================================
Found a 9 line (160 tokens) duplication in the following files: 
Starting at line 511 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 613 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_CELLFILT),	SC_WID_UNO_CELLFILT,&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_MANPAGE),	SC_WID_UNO_MANPAGE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_NEWPAGE),	SC_WID_UNO_NEWPAGE,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_CELLVIS),	SC_WID_UNO_CELLVIS,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_OHEIGHT),	SC_WID_UNO_OHEIGHT,	&getBooleanCppuType(),					0, 0 },
=====================================================================
Found a 35 line (160 tokens) duplication in the following files: 
Starting at line 3222 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3562 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

void ScInterpreter::ScGrowth()
{
	BYTE nParamCount = GetByte();
	if ( !MustHaveParamCount( nParamCount, 1, 4 ) )
		return;
	BOOL bConstant;
	if (nParamCount == 4)
		bConstant = GetBool();
	else
		bConstant = TRUE;
	ScMatrixRef pMatX;
	ScMatrixRef pMatY;
	ScMatrixRef pMatNewX;
	if (nParamCount >= 3)
		pMatNewX = GetMatrix();
	else
		pMatNewX = NULL;
	if (nParamCount >= 2)
		pMatX = GetMatrix();
	else
		pMatX = NULL;
	pMatY = GetMatrix();
	if (!pMatY)
	{
		SetIllegalParameter();
		return;
	}
	BYTE nCase;							// 1 = normal, 2,3 = mehrfach
	SCSIZE nCX, nCY;
	SCSIZE nRX, nRY;
    SCSIZE M = 0, N = 0;
	pMatY->GetDimensions(nCY, nRY);
	SCSIZE nCountY = nCY * nRY;
    SCSIZE nElem;
	for (nElem = 0; nElem < nCountY; nElem++)
=====================================================================
Found a 23 line (160 tokens) duplication in the following files: 
Starting at line 1318 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx
Starting at line 1409 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx

	ScCellIterator aCellIter( pDoc, 0,0, nTab, MAXCOL,MAXROW, nTab );
	ScBaseCell* pCell = aCellIter.GetFirst();
	while (pCell)
	{
		if (pCell->GetCellType() == CELLTYPE_FORMULA)
		{
			ScFormulaCell* pFCell = (ScFormulaCell*)pCell;
			BOOL bRunning = pFCell->IsRunning();

			if (pFCell->GetDirty())
				pFCell->Interpret();				// nach SetRunning geht's nicht mehr!
			pFCell->SetRunning(TRUE);

			ScDetectiveRefIter aIter( (ScFormulaCell*) pCell );
            ScRange aRef;
			while ( aIter.GetNextRef( aRef) )
			{
				if (aRef.aStart.Tab() <= nTab && aRef.aEnd.Tab() >= nTab)
				{
					if (Intersect( nCol1,nRow1,nCol2,nRow2,
							aRef.aStart.Col(),aRef.aStart.Row(),
							aRef.aEnd.Col(),aRef.aEnd.Row() ))
					{
=====================================================================
Found a 16 line (160 tokens) duplication in the following files: 
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpread.cpp
Starting at line 481 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpread.cpp

    hwpf.Read1b(&reserved2, 8);
    hwpf.Read1b(&style.anchor_type, 1);
    hwpf.Read1b(&style.txtflow, 1);
    hwpf.Read2b(&style.xpos, 1);
    hwpf.Read2b(&style.ypos, 1);
    hwpf.Read2b(&option, 1);
    hwpf.Read2b(&ctrl_ch, 1);
    hwpf.Read2b(style.margin, 12);
    hwpf.AddFBoxStyle(&style);
    hwpf.Read2b(&box_xs, 1);
    hwpf.Read2b(&box_ys, 1);
    hwpf.Read2b(&cap_xs, 1);
    hwpf.Read2b(&cap_ys, 1);
    hwpf.Read2b(&style.cap_len, 1);
    hwpf.Read2b(&xs, 1);
    hwpf.Read2b(&ys, 1);
=====================================================================
Found a 43 line (160 tokens) duplication in the following files: 
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
	return nValue;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTablesInSelect(  ) throw(SQLException, RuntimeException)
{
	sal_Int32 nValue = 0; // 0 means no limit
=====================================================================
Found a 45 line (160 tokens) duplication in the following files: 
Starting at line 581 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithAddColumn(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithDropColumn(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength(  ) throw(SQLException, RuntimeException)
{
=====================================================================
Found a 18 line (160 tokens) duplication in the following files: 
Starting at line 1658 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 1742 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 2120 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

	OLEVariant varCriteria[4];

	// Create SafeArray Bounds and initialize the array
	rgsabound[0].lLbound   = 0;
	rgsabound[0].cElements = sizeof varCriteria / sizeof varCriteria[0];
	psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

	sal_Int32 nPos=0;
	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schema.getLength() && schema.toChar() != '%')
		varCriteria[nPos].setString(schema);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

	varCriteria[nPos].setString(table);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME
=====================================================================
Found a 27 line (160 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbamaker.cxx
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunomaker.cxx

	if (!produceType(typeName, typeMgr,	typeDependencies, pOptions))
	{
		fprintf(stderr, "%s ERROR: %s\n", 
				pOptions->getProgramName().getStr(), 
				OString("cannot dump Type '" + typeName + "'").getStr());
		exit(99);
	}

	RegistryKey	typeKey = typeMgr.getTypeKey(typeName);
	RegistryKeyNames subKeys;
	
	if (typeKey.getKeyNames(OUString(), subKeys))
		return sal_False;
	
	OString tmpName;
	for (sal_uInt32 i=0; i < subKeys.getLength(); i++)
	{
		tmpName = OUStringToOString(subKeys.getElement(i), RTL_TEXTENCODING_UTF8);

		if (pOptions->isValid("-B"))
			tmpName = tmpName.copy(tmpName.indexOf('/', 1) + 1);
		else
			tmpName = tmpName.copy(1);

		if (bFullScope)
		{
			if (!produceAllTypes(tmpName, typeMgr, typeDependencies, pOptions, sal_True))
=====================================================================
Found a 28 line (160 tokens) duplication in the following files: 
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

    OSL_ASSERT(p - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /*functionCount*/, sal_Int32 vtableOffset)
=====================================================================
Found a 37 line (160 tokens) duplication in the following files: 
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			    pCppStack += sizeof(sal_Int32); // extra long
			default:
			    break;
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 28 line (160 tokens) duplication in the following files: 
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

        reinterpret_cast< unsigned char * >(p) - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

} //end of namespace

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
     slots[-2] = 0; //null
     slots[-1] = 0; //destructor
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /* functionCount */, sal_Int32 vTableOffset)
=====================================================================
Found a 37 line (160 tokens) duplication in the following files: 
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			    pCppStack += sizeof(sal_Int32); // extra long
			default:
			    break;
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 28 line (160 tokens) duplication in the following files: 
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

        reinterpret_cast< unsigned char * >(p) - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

} //end of namespace

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
     slots[-2] = 0; //null
     slots[-1] = 0; //destructor
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /* functionCount */, sal_Int32 vTableOffset)
=====================================================================
Found a 37 line (160 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 413 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic" );
		
		if( nStackLongs & 1 )
			// stack has to be 8 byte aligned
			nStackLongs++;
		callVirtualMethod(
			pAdjustedThisPtr,
			aVtableSlot.index,
			pCppReturn,
			pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart,
			 nStackLongs);
		// NO exception occured...
		*ppUnoExc = 0;

		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 20 line (159 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokTestService.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx

const sal_Char ScannerTestService::IMPLEMENTATION_NAME[40] = "debugservices.ooxml.ScannerTestService";




ScannerTestService::ScannerTestService(const uno::Reference< uno::XComponentContext > &xContext_) :
xContext( xContext_ )
{
}

sal_Int32 SAL_CALL ScannerTestService::run( const uno::Sequence< rtl::OUString >& aArguments ) throw (uno::RuntimeException)
{
	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
			rtl::OUString arg=aArguments[0];
=====================================================================
Found a 61 line (159 tokens) duplication in the following files: 
Starting at line 769 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
Starting at line 927 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx

	chainPara.RequestedUsage = certUsage ;

	BOOL bChain = FALSE;
	if( pCertContext != NULL )
    {
        HCERTSTORE hAdditionalStore = NULL;
        HCERTSTORE hCollectionStore = NULL;
        if (m_hCertStore && m_hKeyStore)
        {
            //Merge m_hCertStore and m_hKeyStore into one store.
            hCollectionStore = CertOpenStore(
				CERT_STORE_PROV_COLLECTION ,
				0 ,
				NULL ,
				0 ,
				NULL
                ) ;
            if (hCollectionStore != NULL)
            {
                CertAddStoreToCollection (
 					hCollectionStore ,
 					m_hCertStore ,
 					CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG ,
 					0) ;
                CertAddStoreToCollection (
 					hCollectionStore ,
 					m_hCertStore ,
 					CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG ,
 					0) ;
                hAdditionalStore = hCollectionStore;
            }

        }

        //if the merge of both stores failed then we add only m_hCertStore
        if (hAdditionalStore == NULL && m_hCertStore)
            hAdditionalStore = m_hCertStore;
        else if (hAdditionalStore == NULL && m_hKeyStore)
            hAdditionalStore = m_hKeyStore;
        else
            hAdditionalStore = NULL;

        //CertGetCertificateChain searches by default in MY, CA, ROOT and TRUST
        bChain = CertGetCertificateChain(
            NULL ,
            pCertContext ,
            NULL , //use current system time
            hAdditionalStore,
            &chainPara ,
            CERT_CHAIN_REVOCATION_CHECK_CHAIN | CERT_CHAIN_TIMESTAMP_TIME ,
            NULL ,
        	&pChainContext);

    	if (!bChain)
			pChainContext = NULL;

        //Close the additional store
       CertCloseStore(hCollectionStore, CERT_CLOSE_STORE_CHECK_FLAG);
    }

	if(bChain && pChainContext != NULL )
=====================================================================
Found a 24 line (159 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/devaudiosound.cxx
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/osssound.cxx

BOOL OSSSound::startRIFF( OSSData* pData )
{
	int nPos = findChunk( pData, "fmt " );
	if( nPos == -1 )
		return FALSE;
	
	int nFormat		= readLEShort( pData->m_pSound->m_pBuffer + nPos + 8 );
	int nChannels	= readLEShort( pData->m_pSound->m_pBuffer + nPos + 10 );
	int nSampleRate	= readLEInt( pData->m_pSound->m_pBuffer + nPos + 12 );
	int nByteRate	= readLEInt( pData->m_pSound->m_pBuffer + nPos + 16 );
	int nAlign		= readLEShort( pData->m_pSound->m_pBuffer + nPos + 20 );
	SalDbgAssert( "format is tag = %x, channels = %d, samplesPerSec = %d, avgBytesPerSec = %d, blockAlign = %d\n", nFormat, nChannels, nSampleRate, nByteRate, nAlign );
	if( nChannels != 1 && nChannels != 2 )
	{
		SalDbgAssert( "%d Channels are not supported\n" );
		return FALSE;
	}
	
	int nBitsPerSample = 0;
	switch( nFormat )
	{
		default:
			SalDbgAssert( "unknown format\n" );
			return FALSE;
=====================================================================
Found a 25 line (159 tokens) duplication in the following files: 
Starting at line 7168 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 7210 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

        m_aTransparentObjects.back().m_pSoftMaskStream = static_cast<SvMemoryStream*>(endRedirect());

        OStringBuffer aObjName( 16 );
        aObjName.append( "Tr" );
        aObjName.append( m_aTransparentObjects.back().m_nObject );
        OString aTrName( aObjName.makeStringAndClear() );
        aObjName.append( "EGS" );
        aObjName.append( m_aTransparentObjects.back().m_nExtGStateObject );
        OString aExtName( aObjName.makeStringAndClear() );

        OStringBuffer aLine( 80 );
        // insert XObject
        aLine.append( "q /" );
        aLine.append( aExtName );
        aLine.append( " gs /" );
        aLine.append( aTrName );
        aLine.append( " Do Q\n" );
        writeBuffer( aLine.getStr(), aLine.getLength() );
        
        pushResource( ResXObject, aTrName, m_aTransparentObjects.back().m_nObject );
        pushResource( ResExtGState, aExtName, m_aTransparentObjects.back().m_nExtGStateObject );
    }
}

void PDFWriterImpl::drawRectangle( const Rectangle& rRect )
=====================================================================
Found a 17 line (159 tokens) duplication in the following files: 
Starting at line 2817 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx
Starting at line 3684 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx

    Rectangle   aMouseRect;

    aImageSize.Width()  = CalcZoom( aImageSize.Width() );
    aImageSize.Height() = CalcZoom( aImageSize.Height() );
    aBrd1Size.Width()   = CalcZoom( aBrd1Size.Width() );
    aBrd1Size.Height()  = CalcZoom( aBrd1Size.Height() );
    aBrd2Size.Width()   = CalcZoom( aBrd2Size.Width() );
    aBrd2Size.Height()  = CalcZoom( aBrd2Size.Height() );

    if ( !aBrd1Size.Width() )
        aBrd1Size.Width() = 1;
    if ( !aBrd1Size.Height() )
        aBrd1Size.Height() = 1;
    if ( !aBrd2Size.Width() )
        aBrd2Size.Width() = 1;
    if ( !aBrd2Size.Height() )
        aBrd2Size.Height() = 1;
=====================================================================
Found a 42 line (159 tokens) duplication in the following files: 
Starting at line 1655 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1642 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                    uno::Reference< io::XInputStream > xIn = getInputStream( xEnv );
                    if ( !xIn.is() )
                    {
                        // No interaction if we are not persistent!
                        uno::Any aProps
                            = uno::makeAny(
                                     beans::PropertyValue(
                                         rtl::OUString(
                                             RTL_CONSTASCII_USTRINGPARAM("Uri")),
                                         -1,
                                         uno::makeAny(m_xIdentifier->
                                                          getContentIdentifier()),
                                         beans::PropertyState_DIRECT_VALUE));
                        ucbhelper::cancelCommandExecution(
                            ucb::IOErrorCode_CANT_READ,
                            uno::Sequence< uno::Any >(&aProps, 1),
                            m_eState == PERSISTENT
                                ? xEnv
                                : uno::Reference<
                                      ucb::XCommandEnvironment >(),
                            rtl::OUString::createFromAscii(
                                "Got no data stream!" ),
                            this );
                        // Unreachable
                    }

                    // Done.
                    xDataSink->setInputStream( xIn );
                }
                else
                {
                    ucbhelper::cancelCommandExecution(
                        uno::makeAny(
                            ucb::UnsupportedDataSinkException(
                                    rtl::OUString(),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    rArg.Sink ) ),
                        xEnv );
                    // Unreachable
                }
            }
        }
=====================================================================
Found a 34 line (159 tokens) duplication in the following files: 
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

            static const beans::Property aFolderPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                ),
=====================================================================
Found a 39 line (159 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 546 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

		if ( rRect.nTop < 0 )
		{
			cAry[0] |= 0x08;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[0] |= 0x04;
					}
					else
						cAry[0] |= 0x03;
				}
				else
					cAry[0] |= 0x02;
			}
			else
				cAry[0] |= 0x01;
		}
=====================================================================
Found a 51 line (159 tokens) duplication in the following files: 
Starting at line 1701 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlform.cxx
Starting at line 2163 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlform.cxx

			nTabIndex = pOption->GetSNumber();
			break;

		case HTML_O_SDONFOCUS:
			eScriptType = STARBASIC;
		case HTML_O_ONFOCUS:
			nEvent = HTML_ET_ONGETFOCUS;
			bSetEvent = sal_True;
			break;

		case HTML_O_SDONBLUR:
			eScriptType = STARBASIC;
		case HTML_O_ONBLUR:
			nEvent = HTML_ET_ONLOSEFOCUS;
			bSetEvent = sal_True;
			break;

		case HTML_O_SDONCLICK:
			eScriptType = STARBASIC;
		case HTML_O_ONCLICK:
			nEvent = HTML_ET_ONCLICK;
			bSetEvent = sal_True;
			break;

		case HTML_O_SDONCHANGE:
			eScriptType = STARBASIC;
		case HTML_O_ONCHANGE:
			nEvent = HTML_ET_ONCHANGE;
			bSetEvent = sal_True;
			break;

		case HTML_O_SDONSELECT:
			eScriptType = STARBASIC;
		case HTML_O_ONSELECT:
			nEvent = HTML_ET_ONSELECT;
			bSetEvent = sal_True;
			break;

		default:
			lcl_html_getEvents( pOption->GetTokenString(),
								pOption->GetString(),
								aUnoMacroTbl, aUnoMacroParamTbl );
			break;
		}

		if( bSetEvent )
		{
			String sEvent( pOption->GetString() );
			if( sEvent.Len() )
			{
				sEvent.ConvertLineEnd();
=====================================================================
Found a 21 line (159 tokens) duplication in the following files: 
Starting at line 784 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/fly.cxx
Starting at line 2143 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/wsfrm.cxx

void SwCntntFrm::Modify( SfxPoolItem * pOld, SfxPoolItem * pNew )
{
	BYTE nInvFlags = 0;

	if( pNew && RES_ATTRSET_CHG == pNew->Which() )
	{
		SfxItemIter aNIter( *((SwAttrSetChg*)pNew)->GetChgSet() );
		SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() );
		SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld );
		SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew );
		while( TRUE )
		{
			_UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(),
						 (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags,
						 &aOldSet, &aNewSet );
			if( aNIter.IsAtEnd() )
				break;
			aNIter.NextItem();
			aOIter.NextItem();
		}
		if ( aOldSet.Count() || aNewSet.Count() )
=====================================================================
Found a 22 line (159 tokens) duplication in the following files: 
Starting at line 2872 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmshimp.cxx
Starting at line 3074 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmshimp.cxx

void FmXFormShell::clearFilter()
{
	OSL_ENSURE(!FmXFormShell_BASE::rBHelper.bDisposed,"FmXFormShell: Object already disposed!");
	FmXFormView* pXView = m_pShell->GetFormView()->GetImpl();

	// if the active controller is our external one we have to use the trigger controller
	Reference< XControlContainer> xContainer;
	if (getActiveController() == m_xExternalViewController)
	{
		DBG_ASSERT(m_xExtViewTriggerController.is(), "FmXFormShell::startFiltering : inconsistent : active external controller, but noone triggered this !");
		xContainer = m_xExtViewTriggerController->getContainer();
	}
	else
		xContainer = getActiveController()->getContainer();

	FmWinRecList::iterator i = pXView->findWindow(xContainer);
	if (i != pXView->getWindowList().end())
	{
		const ::std::vector< Reference< XFormController> > & rControllerList = (*i)->GetList();
		for (::std::vector< Reference< XFormController> > ::const_iterator j = rControllerList.begin();
			 j != rControllerList.end(); ++j)
		{
=====================================================================
Found a 22 line (159 tokens) duplication in the following files: 
Starting at line 3640 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3266 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptStarVert[] =
{
	{ 10797, 0 }, { 8278, 8256 }, { 0, 8256 }, { 6722, 13405 },
	{ 4198, 21600 }, { 10797, 16580 }, { 17401, 21600 }, { 14878, 13405 },
	{ 21600, 8256 }, { 13321, 8256 }, { 10797, 0 }
};
static const SvxMSDffTextRectangles mso_sptStarTextRect[] =
{
	{ { 6722, 8256 }, { 14878, 15460 } }
};
static const mso_CustomShape msoStar =
{
	(SvxMSDffVertPair*)mso_sptStarVert, sizeof( mso_sptStarVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0, 
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptStarTextRect, sizeof( mso_sptStarTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 20 line (159 tokens) duplication in the following files: 
Starting at line 786 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShape2d.cxx
Starting at line 5277 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

		switch( eSpType )
		{
			case mso_sptCan :						nColorData = 0x20200000; break;
			case mso_sptCube :						nColorData = 0x302d0000; break;
			case mso_sptActionButtonBlank :			nColorData = 0x502ad400; break;
			case mso_sptActionButtonHome :			nColorData = 0x702ad4ad; break;
			case mso_sptActionButtonHelp :			nColorData = 0x602ad4a0; break;
			case mso_sptActionButtonInformation :	nColorData = 0x702ad4a5; break;
			case mso_sptActionButtonBackPrevious :	nColorData = 0x602ad4a0; break;
			case mso_sptActionButtonForwardNext :	nColorData = 0x602ad4a0; break;
			case mso_sptActionButtonBeginning :		nColorData = 0x602ad4a0; break;
			case mso_sptActionButtonEnd :			nColorData = 0x602ad4a0; break;
			case mso_sptActionButtonReturn :		nColorData = 0x602ad4a0; break;
			case mso_sptActionButtonDocument :		nColorData = 0x702ad4da; break;
			case mso_sptActionButtonSound :			nColorData = 0x602ad4a0; break;
			case mso_sptActionButtonMovie :			nColorData = 0x602ad4a0; break;
			case mso_sptBevel :						nColorData = 0x502ad400; break;
			case mso_sptFoldedCorner :				nColorData = 0x20d00000; break;
			case mso_sptSmileyFace :				nColorData = 0x20d00000; break;
			case mso_sptCurvedLeftArrow :
=====================================================================
Found a 30 line (159 tokens) duplication in the following files: 
Starting at line 821 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fupoor.cxx
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/graphctl.cxx

						Rectangle aMarkRect(pView->GetMarkedObjRect());
						aMarkRect.Move(nX, nY);

						if(!aMarkRect.IsInside(rWorkArea))
						{
							if(aMarkRect.Left() < rWorkArea.Left())
							{
								nX += rWorkArea.Left() - aMarkRect.Left();
							}

							if(aMarkRect.Right() > rWorkArea.Right())
							{
								nX -= aMarkRect.Right() - rWorkArea.Right();
							}

							if(aMarkRect.Top() < rWorkArea.Top())
							{
								nY += rWorkArea.Top() - aMarkRect.Top();
							}

							if(aMarkRect.Bottom() > rWorkArea.Bottom())
							{
								nY -= aMarkRect.Bottom() - rWorkArea.Bottom();
							}
						}
					}

					// no handle selected
					if(0 != nX || 0 != nY)
					{
=====================================================================
Found a 15 line (159 tokens) duplication in the following files: 
Starting at line 415 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuconpol.cxx
Starting at line 485 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconbez.cxx

				case SID_DRAW_FREELINE_NOFILL:
				{
					basegfx::B2DPolygon aInnerPoly;

					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left(), rRectangle.Bottom()));
					
					aInnerPoly.appendBezierSegment(
						basegfx::B2DPoint(rRectangle.Left(), rRectangle.Top()),
						basegfx::B2DPoint(rRectangle.Center().X(), rRectangle.Top()),
						basegfx::B2DPoint(rRectangle.Center().X(), rRectangle.Center().Y()));

					aInnerPoly.appendBezierSegment(
						basegfx::B2DPoint(rRectangle.Center().X(), rRectangle.Bottom()),
						basegfx::B2DPoint(rRectangle.Right(), rRectangle.Bottom()),
						basegfx::B2DPoint(rRectangle.Right(), rRectangle.Top()));
=====================================================================
Found a 30 line (159 tokens) duplication in the following files: 
Starting at line 766 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx
Starting at line 879 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx

    ConventionXL_R1C1() : ScCompiler::Convention( ScAddress::CONV_XL_R1C1 ) { }
    void MakeRefStr( rtl::OUStringBuffer&   rBuf,
                     const ScCompiler&      rComp,
                     const ComplRefData& rRef,
                     BOOL bSingleRef ) const
    {
        ComplRefData aRef( rRef );

        MakeDocStr( rBuf, rComp, aRef, bSingleRef );

        // Play fast and loose with invalid refs.  There is not much point in producing
        // Foo!A1:#REF! versus #REF! at this point
        aRef.Ref1.CalcAbsIfRel( rComp.aPos );
        if( aRef.Ref1.IsColDeleted() || aRef.Ref1.IsRowDeleted() )
        {
            rBuf.append(ScGlobal::GetRscString(STR_NO_REF_TABLE));
            return;
        }

        if( !bSingleRef )
        {
            aRef.Ref2.CalcAbsIfRel( rComp.aPos );
            if( aRef.Ref2.IsColDeleted() || aRef.Ref2.IsRowDeleted() )
            {
                rBuf.append(ScGlobal::GetRscString(STR_NO_REF_TABLE));
                return;
            }

            if( aRef.Ref1.nCol == 0 && aRef.Ref2.nCol >= MAXCOL )
            {
=====================================================================
Found a 36 line (159 tokens) duplication in the following files: 
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/sal/typesconfig/typesconfig.c
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/solar/solar.c

  pThis->nStackAlignment	= GetStackAlignment();

  if ( sizeof(short) != 2 )
	abort();
  pThis->nAlignment[0] = GetAlignment( t_short );
  if ( sizeof(int) != 4 )
	abort();
  pThis->nAlignment[1] = GetAlignment( t_int );

  if	  ( sizeof(long) == 8 )
	pThis->nAlignment[2] = GetAlignment( t_long );
  else if ( sizeof(double) == 8 )
	pThis->nAlignment[2] = GetAlignment( t_double );
  else
	abort();
}

/*************************************************************************
|*
|*	Description_Print()
|*
|*	Beschreibung		Schreibt die Parameter der Architektur als Header
|*
|*	Ersterstellung		EG 26.06.96
|*	Letzte Aenderung
|*
*************************************************************************/
void Description_Print( struct Description* pThis, char* name )
{
  int i;
  FILE* f = fopen( name, "w" );
  if( ! f ) {
	  fprintf( stderr, "Unable to open file %s: %s\n", name, strerror( errno ) );
	  exit( 99 );
  }
  fprintf( f, "#define __%s\n",
=====================================================================
Found a 7 line (159 tokens) duplication in the following files: 
Starting at line 526 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* UnoParamValue */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, /* !"#$%&'()*+,-./*/
=====================================================================
Found a 40 line (159 tokens) duplication in the following files: 
Starting at line 9507 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 15242 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 16038 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 16812 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

        CPPUNIT_TEST_SUITE( append_008_Float_Negative );
        CPPUNIT_TEST( append_001 ); 
        CPPUNIT_TEST( append_002 );
        CPPUNIT_TEST( append_003 );
        CPPUNIT_TEST( append_004 );
        CPPUNIT_TEST( append_005 );
        CPPUNIT_TEST( append_006 ); 
        CPPUNIT_TEST( append_007 );
        CPPUNIT_TEST( append_008 );
        CPPUNIT_TEST( append_009 );
        CPPUNIT_TEST( append_010 );
        CPPUNIT_TEST( append_011 ); 
        CPPUNIT_TEST( append_012 );
        CPPUNIT_TEST( append_013 );
        CPPUNIT_TEST( append_014 );
        CPPUNIT_TEST( append_015 );
        CPPUNIT_TEST( append_016 ); 
        CPPUNIT_TEST( append_017 );
        CPPUNIT_TEST( append_018 );
        CPPUNIT_TEST( append_019 );
        CPPUNIT_TEST( append_020 );
        CPPUNIT_TEST( append_021 ); 
        CPPUNIT_TEST( append_022 );
        CPPUNIT_TEST( append_023 );
        CPPUNIT_TEST( append_024 );
        CPPUNIT_TEST( append_025 );
#ifdef WITH_CORE
        CPPUNIT_TEST( append_026 ); 
        CPPUNIT_TEST( append_027 );
        CPPUNIT_TEST( append_028 );
        CPPUNIT_TEST( append_029 );
        CPPUNIT_TEST( append_030 );
#endif        
        CPPUNIT_TEST_SUITE_END();
    };
//------------------------------------------------------------------------
// testing the method append( double d )
//------------------------------------------------------------------------

    class checkdouble : public CppUnit::TestFixture
=====================================================================
Found a 59 line (159 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/cpp.h
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/cpp.h

	unsigned int identifier;			/* used from macro processor to identify where a macro becomes valid again. */
}   Token;

typedef struct tokenrow
{
	Token *tp;                          /* current one to scan */
	Token *bp;                          /* base (allocated value) */
	Token *lp;                          /* last+1 token used */
	int max;                            /* number allocated */
}   Tokenrow;

typedef struct source
{
	char *filename;                     /* name of file of the source */
	int line;                           /* current line number */
	int lineinc;                        /* adjustment for \\n lines */
	uchar *inb;                         /* input buffer */
	uchar *inp;                         /* input pointer */
	uchar *inl;                         /* end of input */
	int fd;                             /* input source */
	int ifdepth;                        /* conditional nesting in include */
	int pathdepth;
	int wrap;
	struct source *next;                /* stack for #include */
}   Source;

typedef struct nlist
{
	struct nlist *next;
	uchar *name;
	int len;
	Tokenrow *vp;                       /* value as macro */
	Tokenrow *ap;                       /* list of argument names, if any */
	char val;                           /* value as preprocessor name */
	char flag;                          /* is defined, is pp name */
	uchar *loc;							/* location of definition */
}   Nlist;

typedef struct includelist
{
	char deleted;
	char always;
	char *file;
}   Includelist;

typedef struct wraplist
{
	char *file;
}   Wraplist;

#define	new(t)	(t *)domalloc(sizeof(t))
#define	quicklook(a,b)	(namebit[(a)&077] & (1<<((b)&037)))
#define	quickset(a,b)	namebit[(a)&077] |= (1<<((b)&037))
extern unsigned long namebit[077 + 1];

enum errtype
{
	INFO, WARNING, ERROR, FATAL
};
=====================================================================
Found a 6 line (159 tokens) duplication in the following files: 
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,// 24e0 - 24ef
=====================================================================
Found a 4 line (159 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x0231}, {0x15, 0x0230}, {0x6a, 0x0233}, {0x15, 0x0232}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0230 - 0237
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0238 - 023f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0240 - 0247
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0248 - 024f
=====================================================================
Found a 30 line (159 tokens) duplication in the following files: 
Starting at line 788 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx
Starting at line 841 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx

void SAL_CALL ToolBarManager::elementReplaced( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException)
{
    ResetableGuard aGuard( m_aLock );

	/* SAFE AREA ----------------------------------------------------------------------------------------------- */
    if ( m_bDisposed )
        return;

    Reference< XNameAccess > xNameAccess;
    sal_Int16                nImageType = sal_Int16();
    sal_Int16                nCurrentImageType = getImageTypeFromBools(
                                                    SvtMiscOptions().AreCurrentSymbolsLarge(),
                                                    m_bIsHiContrast );

    if (( Event.aInfo >>= nImageType ) &&
        ( nImageType == nCurrentImageType ) &&
        ( Event.Element >>= xNameAccess ))
    {
        sal_Int16 nImageInfo( 1 );
        Reference< XInterface > xIfacDocImgMgr( m_xDocImageManager, UNO_QUERY );
        if ( xIfacDocImgMgr == Event.Source )
            nImageInfo = 0;

        Sequence< rtl::OUString > aSeq = xNameAccess->getElementNames();
        for ( sal_Int32 i = 0; i < aSeq.getLength(); i++ )
        {
            // Check if we have commands which have an image. We stored for every command
            // from which image manager it got its image. Use only images from this
            // notification if stored nImageInfo >= current nImageInfo!
            CommandToInfoMap::iterator pIter = m_aCommandMap.find( aSeq[i] );
=====================================================================
Found a 34 line (159 tokens) duplication in the following files: 
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/popupmenucontrollerbase.cxx
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontmenucontroller.cxx

    Reference< XMultiServiceFactory >   xServiceManager;

    ResetableGuard aLock( m_aLock );
    xPopupMenu      = m_xPopupMenu;
    xDispatch       = m_xDispatch;
    xServiceManager = m_xServiceManager;
    aLock.unlock();

    if ( xPopupMenu.is() && xDispatch.is() )
    {
        VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( xPopupMenu );
        if ( pPopupMenu )
        {
            css::util::URL               aTargetURL;
	        Sequence<PropertyValue>	     aArgs;
            Reference< XURLTransformer > xURLTransformer( xServiceManager->createInstance( 
                                                            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                        UNO_QUERY );

            {
                vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
                
                // Command URL used to dispatch the selected font family name
                PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();
                aTargetURL.Complete = pVCLPopupMenu->GetItemCommand( rEvent.MenuId );
            }
            
            xURLTransformer->parseStrict( aTargetURL );
            xDispatch->dispatch( aTargetURL, aArgs );
        }
    }
}

void SAL_CALL FontMenuController::activate( const css::awt::MenuEvent& ) throw (RuntimeException)
=====================================================================
Found a 9 line (159 tokens) duplication in the following files: 
Starting at line 861 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx
Starting at line 873 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

				const long	nYLinePos = aBaseLinePos.Y() + ( nLineHeight << 1 );

				aPoly[ 0 ].X() = aBaseLinePos.X(); aPoly[ 0 ].Y() = nYLinePos - ( nLineHeight >> 1 );
				aPoly[ 1 ].X() = aBaseLinePos.X() + aNormSize.Width() - 1; aPoly[ 1 ].Y() = aPoly[ 0 ].Y();
				aPoly[ 2 ].X() = aPoly[ 1 ].X(); aPoly[ 2 ].Y() = aPoly[ 0 ].Y() + nLineHeight - 1;
				aPoly[ 3 ].X() = aPoly[ 0 ].X(); aPoly[ 3 ].Y() = aPoly[ 2 ].Y();
						
				ImplWritePolyPolygon( aPoly, sal_False );
			}
=====================================================================
Found a 9 line (159 tokens) duplication in the following files: 
Starting at line 942 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 954 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx

				const long	nYLinePos = aBaseLinePos.Y() + ( nLineHeight << 1 );

				aPoly[ 0 ].X() = aBaseLinePos.X(); aPoly[ 0 ].Y() = nYLinePos - ( nLineHeight >> 1 );
				aPoly[ 1 ].X() = aBaseLinePos.X() + aNormSize.Width() - 1; aPoly[ 1 ].Y() = aPoly[ 0 ].Y();
				aPoly[ 2 ].X() = aPoly[ 1 ].X(); aPoly[ 2 ].Y() = aPoly[ 0 ].Y() + nLineHeight - 1;
				aPoly[ 3 ].X() = aPoly[ 0 ].X(); aPoly[ 3 ].Y() = aPoly[ 2 ].Y();
						
				ImplWritePolygon( aPoly, FALSE );
			}
=====================================================================
Found a 32 line (159 tokens) duplication in the following files: 
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx
Starting at line 623 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx

		aTree.integrate(aChange, aNode, true);

		lock.clearForBroadcast();
		aSender.notifyListeners(aChange);
	}
	catch (configuration::InvalidName& ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot remove Set Element: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw NoSuchElementException( sMessage += e.message(), xContext );
	}
	catch (configuration::WrappedUnoException& ex)
	{
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot remove Set Element: ") );
		throw WrappedTargetException( sMessage += ex.extractMessage(), xContext, ex.getAnyUnoException() );
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.unhandled();
	}

}
//-----------------------------------------------------------------------------------

// XPropertyWithState
//-----------------------------------------------------------------------------------

void implSetToDefaultAsProperty(NodeSetAccess& rNode) 
=====================================================================
Found a 35 line (159 tokens) duplication in the following files: 
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javaoptions.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

					m_options["-b"] = OString(s);
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'F':
=====================================================================
Found a 40 line (159 tokens) duplication in the following files: 
Starting at line 880 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

sal_uInt32 IdlType::checkInheritedMemberCount(const TypeReader* pReader)
{
	sal_Bool bSelfCheck = sal_True;
	if (!pReader)
	{
		bSelfCheck = sal_False;
		pReader = &m_reader;
	}

	sal_uInt32 count = 0;
	OString superType(pReader->getSuperTypeName());
	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));
		if ( aSuperReader.isValid() )
		{
			count = checkInheritedMemberCount(&aSuperReader);
		}
	}

	if (bSelfCheck)
	{
		count += pReader->getMethodCount();
		sal_uInt32 fieldCount = pReader->getFieldCount();
		RTFieldAccess access = RT_ACCESS_INVALID;
		for (sal_uInt16 i=0; i < fieldCount; i++)
		{
			access = pReader->getFieldAccess(i);

			if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
			{
				count++;
			}
		}
	}

	return count;
}

sal_uInt32 IdlType::getInheritedMemberCount()
=====================================================================
Found a 35 line (159 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunooptions.cxx
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javaoptions.cxx

					m_options["-nD"] = OString("");
					break;
				case 'T':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-T', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					if (m_options.count("-T") > 0)
					{
						OString tmp(m_options["-T"]);
						tmp = tmp + ";" + s;
						m_options["-T"] = tmp;
					} else
					{
						m_options["-T"] = OString(s);
					}
					break;
				case 'G':
=====================================================================
Found a 21 line (159 tokens) duplication in the following files: 
Starting at line 801 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/DiagramHelper.cxx
Starting at line 849 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/DiagramHelper.cxx

    try
    {
        Reference< XCoordinateSystemContainer > xCooSysCnt(
            xDiagram, uno::UNO_QUERY_THROW );
        Sequence< Reference< XCoordinateSystem > > aCooSysSeq(
            xCooSysCnt->getCoordinateSystems());
        for( sal_Int32 i=0; i<aCooSysSeq.getLength(); ++i )
        {
            Reference< XCoordinateSystem > xCooSys( aCooSysSeq[i] );
            OSL_ASSERT( xCooSys.is());
            for( sal_Int32 nN = xCooSys->getDimension(); nN--; )
            {
                const sal_Int32 nMaximumScaleIndex = xCooSys->getMaximumAxisIndexByDimension(nN);
                for(sal_Int32 nI=0; nI<=nMaximumScaleIndex; ++nI)
                {
                    Reference< XAxis > xAxis = xCooSys->getAxisByDimension( nN,nI );
                    OSL_ASSERT( xAxis.is());
                    if( xAxis.is())
                    {
                        ScaleData aScaleData = xAxis->getScaleData();
                        if( aScaleData.AxisType == AxisType::CATEGORY )
=====================================================================
Found a 26 line (159 tokens) duplication in the following files: 
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

	void ** pCppArgs  = (void **)malloc( 3 * sizeof(void *) * nParams );
#else
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
#endif
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
=====================================================================
Found a 24 line (158 tokens) duplication in the following files: 
Starting at line 513 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                                  weight_array[y_hr] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }

                        x_lr++;

                        weight = (weight_array[x_hr] * 
                                  weight_array[y_hr] + 
=====================================================================
Found a 7 line (158 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotdel_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotdel_mask.h

   0xff, 0xff, 0x07, 0x00, 0x78, 0x40, 0x00, 0x00, 0x3c, 0x80, 0x00, 0x00,
   0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 7 line (158 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h

static char assw_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x0e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x10,0x1f,
=====================================================================
Found a 46 line (158 tokens) duplication in the following files: 
Starting at line 1113 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1088 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                            pProvider->queryDocumentModel( rContentId ) ) );
                else
                    xRow->appendVoid( rProp );
            }
			else
			{
				// Not a Core Property! Maybe it's an Additional Core Property?!

				if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
				{
					xAdditionalPropSet
                        = uno::Reference< beans::XPropertySet >(
							pProvider->getAdditionalPropertySet( rContentId,
																 sal_False ),
                            uno::UNO_QUERY );
					bTriedToGetAdditonalPropSet = sal_True;
				}

				if ( xAdditionalPropSet.is() )
				{
					if ( !xRow->appendPropertySetValue(
												xAdditionalPropSet,
												rProp ) )
					{
						// Append empty entry.
						xRow->appendVoid( rProp );
					}
				}
				else
				{
					// Append empty entry.
					xRow->appendVoid( rProp );
				}
			}
		}
	}
	else
	{
		// Append all Core Properties.
		xRow->appendString (
            beans::Property( rtl::OUString::createFromAscii( "ContentType" ),
					  -1,
                      getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                      beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY ),
            rData.getContentType() );
=====================================================================
Found a 20 line (158 tokens) duplication in the following files: 
Starting at line 586 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/glosbib.cxx
Starting at line 1075 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/glossary.cxx

void SwGlTreeListBox::RequestHelp( const HelpEvent& rHEvt )
{
	Point aPos( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
	SvLBoxEntry* pEntry = GetEntry( aPos );
	// Hilfe gibt es nur fuer die Gruppennamen
	if(pEntry)
	{
		SvLBoxTab* pTab;
		SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab );
		if(pItem)
		{
			aPos = GetEntryPosition( pEntry );
		 	Size aSize(pItem->GetSize( this, pEntry ));
			aPos.X() = GetTabPos( pEntry, pTab );

			if((aPos.X() + aSize.Width()) > GetSizePixel().Width())
				aSize.Width() = GetSizePixel().Width() - aPos.X();
			aPos = OutputToScreenPixel(aPos);
		 	Rectangle aItemRect( aPos, aSize );
			String sMsg;
=====================================================================
Found a 19 line (158 tokens) duplication in the following files: 
Starting at line 795 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx
Starting at line 928 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx

        uno::Sequence < sal_Int8 > aClass( SvGlobalName( SO3_IFRAME_CLASSID ).GetByteSequence() );
        uno::Reference < embed::XEmbedObjectCreator > xFactory( ::comphelper::getProcessServiceFactory()->createInstance(
                ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.embed.EmbeddedObjectCreator")) ), uno::UNO_QUERY );
        uno::Reference < embed::XEmbeddedObject > xObj =
            uno::Reference < embed::XEmbeddedObject >( xFactory->createInstanceInitNew(
            aClass, ::rtl::OUString(), xStorage, aName,
            uno::Sequence < beans::PropertyValue >() ), uno::UNO_QUERY );

		// set size to the object
		lcl_setObjectVisualArea( xObj,
								embed::Aspects::MSOLE_CONTENT,
								Size( nWidth, nHeight ),
								MAP_100TH_MM );

        if ( svt::EmbeddedObjectRef::TryRunningState( xObj ) )
        {
            uno::Reference < beans::XPropertySet > xSet( xObj->getComponent(), uno::UNO_QUERY );
            if ( xSet.is() )
            {
=====================================================================
Found a 25 line (158 tokens) duplication in the following files: 
Starting at line 3193 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4927 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

uno::Sequence< OUString > SwXCellRange::getColumnDescriptions(void)
										throw( uno::RuntimeException )
{
	vos::OGuard aGuard(Application::GetSolarMutex());
	sal_Int16 nColCount = getColumnCount();
	if(!nColCount)
	{
		uno::RuntimeException aRuntime;
		aRuntime.Message = C2U("Table too complex");
		throw aRuntime;
	}
	uno::Sequence< OUString > aRet(bFirstRowAsLabel ? nColCount - 1 : nColCount);
	SwFrmFmt* pFmt = GetFrmFmt();
	if(pFmt)
	{
		OUString* pArray = aRet.getArray();
		if(bFirstRowAsLabel)
		{
			sal_uInt16 nStart = bFirstColumnAsLabel ? 1 : 0;
			for(sal_uInt16 i = nStart; i < nColCount; i++)
			{
				uno::Reference< table::XCell >  xCell = getCellByPosition(i, 0);
				if(!xCell.is())
				{
					throw uno::RuntimeException();
=====================================================================
Found a 31 line (158 tokens) duplication in the following files: 
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/findattr.cxx
Starting at line 554 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/findattr.cxx

			return Found();

        pSet = CharFmt::GetItemSet( rAttr.GetAttr() );
        if ( pSet )
        {
			pIter = new SfxWhichIter( *pSet );
			nWhch = pIter->FirstWhich();
			while( nWhch &&
				SFX_ITEM_SET != pSet->GetItemState( nWhch, TRUE, &pTmpItem ) )
				nWhch = pIter->NextWhich();
			if( !nWhch )
				pTmpItem = NULL;
        }
	}
	else
		pTmpItem = &rAttr.GetAttr();
	while( pTmpItem )
	{
		SfxItemState eState = aCmpSet.GetItemState( nWhch, FALSE, &pItem );
		if( SFX_ITEM_DONTCARE == eState || SFX_ITEM_SET == eState )
		{
			register USHORT n;
			_SwSrchChrAttr* pCmp;

			// loesche erstmal alle, die bis zu der Start Position schon wieder
			// ungueltig sind:

			_SwSrchChrAttr* pArrPtr;
			if( nFound )
				for( pArrPtr = pFndArr, n = 0; n < nArrLen; ++n, ++pArrPtr )
					if( pArrPtr->nWhich && pArrPtr->nStt >= aTmp.nEnd )
=====================================================================
Found a 12 line (158 tokens) duplication in the following files: 
Starting at line 826 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx
Starting at line 863 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx

FrPair GetMapFactor(FieldUnit eS, FieldUnit eD)
{
	if (eS==eD) return FrPair(1,1,1,1);
	FrPair aS(GetInchOrMM(eS));
	FrPair aD(GetInchOrMM(eD));
	FASTBOOL bSInch=IsInch(eS);
	FASTBOOL bDInch=IsInch(eD);
	FrPair aRet(aD.X()/aS.X(),aD.Y()/aS.Y());
	if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); }
	if (!bSInch && bDInch) { aRet.X()*=Fraction(5,127); aRet.Y()*=Fraction(5,127); }
	return aRet;
};
=====================================================================
Found a 19 line (158 tokens) duplication in the following files: 
Starting at line 2170 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 3015 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x73, 0x2E, 0x4C, 0x69, 0x73, 0x74, 0x42, 0x6F,
		0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39, 0xB2, 0x71,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
=====================================================================
Found a 18 line (158 tokens) duplication in the following files: 
Starting at line 5427 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 5505 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

	{ 0x6000, { 0x40c, 0x40e, 3600 } },			//410
	{ 0x2001, { 0x40d, 1, 2 } },				//411 1/2 width
	{ 0x6000, { 0x407, 0x411, 0 } },			//412 top center glue xpos
	{ 0x8000, { 21600, 0, 0x412 } },			//413 bottom center glue xpos
	{ 0x2001, { 0x405, 1, 2 } },				//414 left glue x pos
	{ 0x8000, { 21600, 0, 0x414 } },			//415 right glue x pos
	{ 0x2001, { 0x400, 2, 1 } },				//416 y1 (textbox)
	{ 0x8000, { 21600, 0, 0x416 } },			//417 y2 (textbox)

	{ 0x8000, { 21600, 0, 0x407 } },			//418 p2

	{ 0x8000, { 21600, 0, 0x40f } },			//419 c
	{ 0x6000, { 0x401, 0x408, 0 } },			//41a

	{ 0x8000, { 21600, 0, 0x410 } },			//41b c
	{ 0xa000, { 0x401, 0, 0x408 } },			//41c

	{ 0x8000, { 21600, 0, 0x40c } }, 			//41d p3
=====================================================================
Found a 11 line (158 tokens) duplication in the following files: 
Starting at line 2401 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2127 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonForwardNextVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 },	{ 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 10800 }, { 0xa MSO_I, 0x10 MSO_I }
=====================================================================
Found a 37 line (158 tokens) duplication in the following files: 
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx

					m_pImpl->m_xUrlTransformer->parseStrict( aTargetURL );
                xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );
            
                xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY );
                URLToDispatchMap::iterator aIter = m_aListenerMap.find( aCommandURL );
                if ( aIter != m_aListenerMap.end() )
                {
                    Reference< XDispatch > xOldDispatch( aIter->second );
                    aIter->second = xDispatch;

                    try
                    {
                        if ( xOldDispatch.is() )
                            xOldDispatch->removeStatusListener( xStatusListener, aTargetURL );
                    }
                    catch ( Exception& )
                    {
                    }    
                }
                else
                    m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, xDispatch ));
            }
        }
    }
    
    // Call without locked mutex as we are called back from dispatch implementation
    try
    {
        if ( xDispatch.is() )
            xDispatch->addStatusListener( xStatusListener, aTargetURL );
    }
    catch ( Exception& )
    {
    }
}

void ToolboxController::removeStatusListener( const rtl::OUString& aCommandURL )
=====================================================================
Found a 37 line (158 tokens) duplication in the following files: 
Starting at line 2173 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/workwin.cxx
Starting at line 2360 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/workwin.cxx

	SfxChildWin_Impl *pCW=NULL;
	SfxWorkWindow *pWork = pParent;

	// Den obersten parent nehmen; ChildWindows werden immer am WorkWindow
	// der Task bzw. des Frames oder am AppWorkWindow angemeldet
	while ( pWork && pWork->pParent )
		pWork = pWork->pParent;

	if ( pWork )
	{
		// Dem Parent schon bekannt ?
		USHORT nCount = pWork->pChildWins->Count();
		for (USHORT n=0; n<nCount; n++)
			if ((*pWork->pChildWins)[n]->nSaveId == nId)
			{
				pCW = (*pWork->pChildWins)[n];
				break;
			}
	}

	if ( !pCW )
	{
		// Kein Parent oder dem Parent noch unbekannt, dann bei mir suchen
		USHORT nCount = pChildWins->Count();
		for (USHORT n=0; n<nCount; n++)
			if ((*pChildWins)[n]->nSaveId == nId)
			{
				pCW = (*pChildWins)[n];
				break;
			}
	}

	if ( !pCW )
	{
		// Ist neu, also initialisieren; je nach Flag beim Parent oder bei
		// mir eintragen
		pCW = new SfxChildWin_Impl( nId );
=====================================================================
Found a 36 line (158 tokens) duplication in the following files: 
Starting at line 557 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
Starting at line 637 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx

	std::queue< std::_tstring >	aKeyNames;

	// std::_tstring	mystr;
	// mystr = "Patchfile: " + sPatchFile;
	// MessageBox( NULL, mystr.c_str(), "Titel", MB_OK );

	aSectionNames = getProfileSections( sPatchFile );
	while ( !aSectionNames.empty() )
	{	
		std::_tstring	sSectionName = aSectionNames.front();
		if ( std::_tstring(TEXT("_root")) == sSectionName ) { sSectionName = TEXT(""); }
		// mystr = "Section: " + sSectionName;
		// MessageBox( NULL, mystr.c_str(), "Titel", MB_OK );

		aKeyNames = getProfileKeys( sPatchFile, sSectionName );
		while( !aKeyNames.empty() )
		{
			std::_tstring	sKeyName = aKeyNames.front();
			std::_tstring	sValue = getProfileString( sPatchFile, sSectionName, sKeyName );

			if ( sValue.length() )
			{
				std::_tstring	sFileName1 = sKeyName;
				std::_tstring	sExtension = sValue;
				std::_tstring	sFileName2;

				sFileName1 = strip( sFileName1, '\"' );
				sExtension = strip( sExtension, '\"' );

				sFileName1 = sInstDir + sSectionName + sFileName1;
				sFileName2 = sFileName1 + sExtension;

				// mystr = "Convert: " + sFileName1 + " to " + sFileName2;
				// MessageBox( NULL, mystr.c_str(), "Titel", MB_OK );

				SwapFiles( sFileName2, sFileName1 );
=====================================================================
Found a 79 line (158 tokens) duplication in the following files: 
Starting at line 1743 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx
Starting at line 1904 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx

		NULL,						//  161 Pmt2
		NULL,						//  162 Pv2
		NULL,						//  163 Fv2
		NULL,						//  164 Term2
		NULL,						//  165 ---                  <-------- neu! - Anzahl ? -
		NULL,						//  166 D360 (US-Version, ersatzweise wie ander D360-Funktion)
		NULL,						//  167
		NULL,						//  168
		NULL,						//  169
		NULL,						//  170
		NULL,						//  171
		NULL,						//  172
		NULL,						//  173
		NULL,						//  174
		NULL,						//  175
		NULL,						//  176
		NULL,						//  177
		NULL,						//  178
		NULL,						//  179
		NULL,						//  180
		NULL,						//  181
		NULL,						//  182
		NULL,						//  183
		NULL,						//  184
		NULL,						//  185
		NULL,						//  186
		NULL,						//  187
		NULL,						//  188
		NULL,						//  189
		NULL,						//  190
		NULL,						//  191
		NULL,						//  192
		NULL,						//  193
		NULL,						//  194
		NULL,						//  195
		NULL,						//  196
		NULL,						//  197
		NULL,						//  198
		NULL,						//  199
		NULL,						//  200
		NULL,						//  201
		NULL,						//  202
		NULL,						//  203
		NULL,						//  204
		NULL,						//  205
		NULL,						//  206 ?
		NULL,						//  207
		NULL,						//  208
		NULL,						//  209
		NULL,						//  210
		NULL,						//  211
		NULL,						//  212
		NULL,						//  213
		NULL,						//  214
		NULL,						//  215
		NULL,						//  216
		NULL,						//  217
		NULL,						//  218
		NULL,						//  219
		NULL,						//  220
		NULL,						//  221
		NULL,						//  222
		NULL,						//  223
		NULL,						//  224
		NULL,						//  225
		NULL,						//  226
		NULL,						//  227
		NULL,						//  228
		NULL,						//  229
		NULL,						//  230
		NULL,						//  231
		NULL,						//  232
		NULL,						//  233
		NULL,						//  234
		NULL,						//  235
		NULL,						//  236
		NULL,						//  237
		NULL,						//  238
		NULL,						//  239
=====================================================================
Found a 20 line (158 tokens) duplication in the following files: 
Starting at line 969 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr4.cxx
Starting at line 991 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr4.cxx

				const SingleRefData& rRef = rCRef.Ref2;
				if ( rRef.IsColRel() )
					nCol = aPos.Col() + rRef.nRelCol;
				else
					nCol = rRef.nCol;
				if ( rRef.IsRowRel() )
					nRow = aPos.Row() + rRef.nRelRow;
				else
					nRow = rRef.nRow;
				if ( rRef.IsTabRel() )
					nTab = aPos.Tab() + rRef.nRelTab;
				else
					nTab = rRef.nTab;
				if( !ValidCol( nCol) || rRef.IsColDeleted() )
					SetError( errNoRef ), nCol = 0;
				if( !ValidRow( nRow) || rRef.IsRowDeleted() )
					SetError( errNoRef ), nRow = 0;
				if( !ValidTab( (SCTAB)nTab, nMaxTab) || rRef.IsTabDeleted() )
					SetError( errNoRef ), nTab = 0;
				rRange.aEnd.Set( (SCCOL)nCol, (SCROW)nRow, (SCTAB)nTab );
=====================================================================
Found a 27 line (158 tokens) duplication in the following files: 
Starting at line 502 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx

    ComplRefData aRef( rRef );
    // In case absolute/relative positions weren't separately available:
    // transform relative to absolute!
//  AdjustReference( aRef.Ref1 );
//  if( !bSingleRef )
//      AdjustReference( aRef.Ref2 );
    aRef.Ref1.CalcAbsIfRel( rComp.aPos );
    if( !bSingleRef )
        aRef.Ref2.CalcAbsIfRel( rComp.aPos );
    if( aRef.Ref1.IsFlag3D() )
    {
        if (aRef.Ref1.IsTabDeleted())
        {
            if (!aRef.Ref1.IsTabRel())
                rBuffer.append(sal_Unicode('$'));
            rBuffer.append(ScGlobal::GetRscString(STR_NO_REF_TABLE));
            rBuffer.append(sal_Unicode('.'));
        }
        else
        {
            String aDoc;
            String aRefStr( MakeTabStr( rComp, aRef.Ref1.nTab, aDoc ) );
            rBuffer.append(aDoc);
            if (!aRef.Ref1.IsTabRel()) rBuffer.append(sal_Unicode('$'));
            rBuffer.append(aRefStr);
        }
    }
=====================================================================
Found a 26 line (158 tokens) duplication in the following files: 
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 294 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

OStorage_Impl::OStorage_Impl(	uno::Reference< io::XStream > xStream,
								sal_Int32 nMode,
								uno::Sequence< beans::PropertyValue > xProperties,
								uno::Reference< lang::XMultiServiceFactory > xFactory,
								sal_Int16 nStorageType )
: m_rMutexRef( new SotMutexHolder )
, m_pAntiImpl( NULL )
, m_nStorageMode( nMode & ~embed::ElementModes::SEEKABLE )
, m_bIsModified( ( nMode & ( embed::ElementModes::WRITE | embed::ElementModes::TRUNCATE ) ) == ( embed::ElementModes::WRITE | embed::ElementModes::TRUNCATE ) )
, m_bBroadcastModified( sal_False )
, m_bCommited( sal_False )
, m_bIsRoot( sal_True )
, m_bListCreated( sal_False )
, m_xFactory( xFactory )
, m_xProperties( xProperties )
, m_bHasCommonPassword( sal_False )
, m_pParent( NULL )
, m_bControlMediaType( sal_False )
, m_bMTFallbackUsed( sal_False )
, m_pSwitchStream( NULL )
, m_nStorageType( nStorageType )
, m_pRelStorElement( NULL )
, m_nRelInfoStatus( RELINFO_NO_INIT )
{
	// all the checks done below by assertion statements must be done by factory
	OSL_ENSURE( xStream.is(), "No stream is provided!\n" );
=====================================================================
Found a 27 line (158 tokens) duplication in the following files: 
Starting at line 2775 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 2843 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

    int curr = para->cshape.index;
    unsigned char firstspace = 0;

    if( !bParaStart )
    {
        padd(ascii("text:style-name"), sXML_CDATA,
            ascii(getPStyleName(para->GetParaShape()->index, buf)));
        rstartEl(ascii("text:p"), rList);
        pList->clear();
    }
    if( d->bFirstPara && d->bInBody )
    {
/* for HWP's Bookmark */
        strcpy(buf,"[������ ó=]");
        padd(ascii("text:name"), sXML_CDATA, OUString(buf, strlen(buf), RTL_TEXTENCODING_EUC_KR));
        rstartEl(ascii("text:bookmark"), rList);
        pList->clear();
        rendEl(ascii("text:bookmark"));
        d->bFirstPara = sal_False;
    }
    if( d->bInHeader )
    {
        makeShowPageNum();
        d->bInHeader = sal_False;
    }
    padd(ascii("text:style-name"), sXML_CDATA,
        ascii(getTStyleName(curr, buf)));
=====================================================================
Found a 24 line (158 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/statusbarconfiguration.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/statusbarconfiguration.cxx

using namespace ::com::sun::star::container;


namespace framework
{

SV_IMPL_PTRARR( StatusBarDescriptor, StatusBarItemDescriptorPtr);

static Reference< XParser > GetSaxParser(
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XParser >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XDocumentHandler >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

sal_Bool StatusBarConfiguration::LoadStatusBar( 
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&,
=====================================================================
Found a 20 line (158 tokens) duplication in the following files: 
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltfilter/XSLTFilter.cxx
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltfilter/XSLTFilter.cxx

        throw(RuntimeException);

    // XDocumentHandler
    virtual void SAL_CALL startDocument()
        throw (SAXException,RuntimeException);
    virtual void SAL_CALL endDocument()
        throw (SAXException, RuntimeException);
    virtual void SAL_CALL startElement(const OUString& str, const Reference<XAttributeList>& attriblist)
        throw (SAXException,RuntimeException);
    virtual void SAL_CALL endElement(const OUString& str)
        throw (SAXException, RuntimeException);
    virtual void SAL_CALL characters(const OUString& str)
        throw (SAXException, RuntimeException);
    virtual void SAL_CALL ignorableWhitespace(const OUString& str)
        throw (SAXException, RuntimeException);
    virtual void SAL_CALL processingInstruction(const OUString& str, const OUString& str2)
        throw (com::sun::star::xml::sax::SAXException,RuntimeException);
    virtual void SAL_CALL setDocumentLocator(const Reference<XLocator>& doclocator)
        throw (SAXException,RuntimeException);
};
=====================================================================
Found a 45 line (158 tokens) duplication in the following files: 
Starting at line 556 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/propshlp.cxx
Starting at line 613 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/propshlp.cxx

			if( pLC )
			{
				// Ueber alle Listener iterieren und Events senden
				OInterfaceIteratorHelper aIt( *pLC);
				while( aIt.hasMoreElements() )
				{
					XInterface * pL = aIt.next();
                    try
                    {
                        try
                        {
                            if( bVetoable ) // fire change Events?
                            {
                                ((XVetoableChangeListener *)pL)->vetoableChange(
                                    pEvts[i] );
                            }
                            else
                            {
                                ((XPropertyChangeListener *)pL)->propertyChange(
                                    pEvts[i] );
                            }
                        }
                        catch (DisposedException & exc)
                        {
                            OSL_ENSURE( exc.Context.is(),
                                        "DisposedException without Context!" );
                            if (exc.Context == pL)
                                aIt.remove();
                            else
                                throw;
                        }
                    }
                    catch (RuntimeException & exc)
                    {
                        OSL_TRACE(
                            OUStringToOString(
                                OUString( RTL_CONSTASCII_USTRINGPARAM(
                                              "caught RuntimeException while "
                                              "firing listeners: ") ) +
                                exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
                        if (! bIgnoreRuntimeExceptionsWhileFiring)
                            throw;
                    }
				}
			}
=====================================================================
Found a 15 line (158 tokens) duplication in the following files: 
Starting at line 2176 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx
Starting at line 2210 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx

            OSQLParseNode* pRight = pSearchCondition->getChild(2)->removeAt((sal_uInt32)0);
            OSQLParseNode* pNode    = MakeORNode(pLeft,pRight);

            OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
            pNewRule->append(pNode);
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));

            OSQLParseNode::eraseBraces(pLeft);
            OSQLParseNode::eraseBraces(pRight);

            pNode = MakeANDNode(pSearchCondition->getChild(0)->removeAt((sal_uInt32)0),pNewRule);
            replaceAndReset(pSearchCondition,pNode);
        }
        else if(*pSearchCondition->getChild(0)->getChild(2) == *pSearchCondition->getChild(2)->getChild(2))
=====================================================================
Found a 30 line (158 tokens) duplication in the following files: 
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 941 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

	Property* pProperties = aProps.getArray();
	sal_Int32 nPos = 0;
	DECL_PROP0(CURSORNAME,	::rtl::OUString);
	DECL_BOOL_PROP0(ESCAPEPROCESSING);
	DECL_PROP0(FETCHDIRECTION,sal_Int32);
	DECL_PROP0(FETCHSIZE,	sal_Int32);
	DECL_PROP0(MAXFIELDSIZE,sal_Int32);
	DECL_PROP0(MAXROWS,		sal_Int32);
	DECL_PROP0(QUERYTIMEOUT,sal_Int32);
	DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
	DECL_PROP0(RESULTSETTYPE,sal_Int32);
	DECL_BOOL_PROP0(USEBOOKMARKS);

	return new ::cppu::OPropertyArrayHelper(aProps);
}

// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
{
	return *const_cast<OStatement_Base*>(this)->getArrayHelper();
}
// -------------------------------------------------------------------------
sal_Bool OStatement_Base::convertFastPropertyValue(
							Any & rConvertedValue,
							Any & rOldValue,
							sal_Int32 nHandle,
							const Any& rValue )
								throw (::com::sun::star::lang::IllegalArgumentException)
{
	sal_Bool bConverted = sal_False;
=====================================================================
Found a 18 line (158 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/test/java_uno/nativethreadpool/testnativethreadpoolserver.cxx

                        "uno:socket,host=127.0.0.1,port=3831;urp;test")),
                css::uno::UNO_QUERY_THROW);
    } catch (css::connection::NoConnectException & e) {
        throw css::lang::WrappedTargetRuntimeException(
            rtl::OUString::createFromAscii(
                "com.sun.star.uno.UnoUrlResolver.resolve"),
            static_cast< cppu::OWeakObject * >(this), css::uno::makeAny(e));
    } catch (css::connection::ConnectionSetupException & e) {
        throw css::lang::WrappedTargetRuntimeException(
            rtl::OUString::createFromAscii(
                "com.sun.star.uno.UnoUrlResolver.resolve"),
            static_cast< cppu::OWeakObject * >(this), css::uno::makeAny(e));
    } catch (css::lang::IllegalArgumentException & e) {
        throw css::lang::WrappedTargetRuntimeException(
            rtl::OUString::createFromAscii(
                "com.sun.star.uno.UnoUrlResolver.resolve"),
            static_cast< cppu::OWeakObject * >(this), css::uno::makeAny(e));
    }
=====================================================================
Found a 28 line (158 tokens) duplication in the following files: 
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

    OSL_ASSERT(p - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vtableOffset)
=====================================================================
Found a 38 line (158 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

        *pPT++ = 'I';

	// stack space
	// OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{

                          // we need to know type of each param so that we know whether to use
                          // gpr or fpr to pass in parameters:
                          // Key: I - int, long, pointer, etc means pass in gpr
                          //      B - byte value passed in gpr
                          //      S - short value passed in gpr
                          //      F - float value pass in fpr
                          //      D - double value pass in fpr
                          //      H - long long int pass in proper pairs of gpr (3,4) (5,6), etc
                          //      X - indicates end of parameter description string

		          case typelib_TypeClass_LONG:
=====================================================================
Found a 28 line (158 tokens) duplication in the following files: 
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 488 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

        reinterpret_cast< unsigned char * >(p) - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

} //end of namespace

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0; //null
    slots[-1] = 0; //destructor
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vTableOffset)
=====================================================================
Found a 38 line (158 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

        *pPT++ = 'I';

	// stack space
	// OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
									pThis->getBridge()->getUno2Cpp() );
			
			switch (pParamTypeDescr->eTypeClass)
			{

                          // we need to know type of each param so that we know whether to use
                          // gpr or fpr to pass in parameters:
                          // Key: I - int, long, pointer, etc means pass in gpr
                          //      B - byte value passed in gpr
                          //      S - short value passed in gpr
                          //      F - float value pass in fpr
                          //      D - double value pass in fpr
                          //      H - long long int pass in proper pairs of gpr (3,4) (5,6), etc
                          //      X - indicates end of parameter description string

		          case typelib_TypeClass_LONG:
=====================================================================
Found a 28 line (158 tokens) duplication in the following files: 
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 488 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

        reinterpret_cast< unsigned char * >(p) - code <= codeSnippetSize);
    return code + codeSnippetSize;
}

} //end of namespace

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0; //null
    slots[-1] = 0; //destructor
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vTableOffset)
=====================================================================
Found a 39 line (158 tokens) duplication in the following files: 
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 192 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx

		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];

			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData(
                    pCppArgs[nIndex], pParamTypeDescr,
                    reinterpret_cast< uno_ReleaseFunc >(cpp_release) );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );

			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to eax
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
=====================================================================
Found a 26 line (158 tokens) duplication in the following files: 
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxlng.cxx
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxulng.cxx

			aTmp.nLong = *p->pLong; goto ref;
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxSALINT64:
			aTmp.nInt64 = *p->pnInt64; goto ref;
		case SbxBYREF | SbxSALUINT64:
			aTmp.uInt64 = *p->puInt64; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
		ref:
			aTmp.eType = SbxDataType( p->eType & 0x0FFF );
			p = &aTmp; goto start;

		default:
			SbxBase::SetError( SbxERR_CONVERSION ); nRes = 0;
	}
	return nRes;
}

void ImpPutULong( SbxValues* p, UINT32 n )
=====================================================================
Found a 26 line (158 tokens) duplication in the following files: 
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxuint.cxx

			aTmp.nULong = *p->pULong; goto ref;
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
		case SbxBYREF | SbxSALINT64:
			aTmp.nInt64 = *p->pnInt64; goto ref;
		case SbxBYREF | SbxSALUINT64:
			aTmp.uInt64 = *p->puInt64; goto ref;
		ref:
			aTmp.eType = SbxDataType( p->eType & 0x0FFF );
			p = &aTmp; goto start;

		default:
			SbxBase::SetError( SbxERR_CONVERSION ); nRes = 0;
	}
	return nRes;
}

void ImpPutUShort( SbxValues* p, UINT16 n )
=====================================================================
Found a 26 line (157 tokens) duplication in the following files: 
Starting at line 495 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlexp.cxx
Starting at line 534 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlexp.cxx

	mpUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, SvXMLUnitConverter::GetMapUnit(eDfltUnit), getServiceFactory() ) ),
	mpNumExport(0L),
	mpProgressBarHelper( NULL ),
	mpEventExport( NULL ),
	mpImageMapExport( NULL ),
	mpXMLErrors( NULL ),
	mbExtended( sal_False ),
	meClass( XML_TOKEN_INVALID ),
	mnExportFlags( 0 ),
	mnErrorFlags( ERROR_NO ),
	msWS( GetXMLToken(XML_WS) ),
	mbSaveLinkedSections(sal_True)
{
	DBG_ASSERT( mxServiceFactory.is(), "got no service manager" );
	_InitCtor();

	if (mxNumberFormatsSupplier.is())
		mpNumExport = new SvXMLNumFmtExport(*this, mxNumberFormatsSupplier);
}

// #110680#
SvXMLExport::SvXMLExport(
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
	const OUString &rFileName,
	const uno::Reference< xml::sax::XDocumentHandler > & rHandler,
	const Reference< XModel >& rModel,
=====================================================================
Found a 22 line (157 tokens) duplication in the following files: 
Starting at line 7036 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 7210 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

        m_aTransparentObjects.back().m_pSoftMaskStream = static_cast<SvMemoryStream*>(endRedirect());

        OStringBuffer aObjName( 16 );
        aObjName.append( "Tr" );
        aObjName.append( m_aTransparentObjects.back().m_nObject );
        OString aTrName( aObjName.makeStringAndClear() );
        aObjName.append( "EGS" );
        aObjName.append( m_aTransparentObjects.back().m_nExtGStateObject );
        OString aExtName( aObjName.makeStringAndClear() );

        OStringBuffer aLine( 80 );
        // insert XObject
        aLine.append( "q /" );
        aLine.append( aExtName );
        aLine.append( " gs /" );
        aLine.append( aTrName );
        aLine.append( " Do Q\n" );
        writeBuffer( aLine.getStr(), aLine.getLength() );
        
        pushResource( ResXObject, aTrName, m_aTransparentObjects.back().m_nObject );
        pushResource( ResExtGState, aExtName, m_aTransparentObjects.back().m_nExtGStateObject );
    }
=====================================================================
Found a 37 line (157 tokens) duplication in the following files: 
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx

ResultSetDataSupplier::queryContent( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< ucb::XContent > xContent
								= m_pImpl->m_aResults[ nIndex ]->xContent;
		if ( xContent.is() )
		{
			// Already cached.
			return xContent;
		}
	}

    uno::Reference< ucb::XContentIdentifier > xId
        = queryContentIdentifier( nIndex );
	if ( xId.is() )
	{
		try
		{
            uno::Reference< ucb::XContent > xContent
				= m_pImpl->m_xContent->getProvider()->queryContent( xId );
			m_pImpl->m_aResults[ nIndex ]->xContent = xContent;
			return xContent;

		}
        catch ( ucb::IllegalIdentifierException const & )
		{
		}
	}
    return uno::Reference< ucb::XContent >();
}

//=========================================================================
// virtual
sal_Bool ResultSetDataSupplier::getResult( sal_uInt32 nIndex )
=====================================================================
Found a 49 line (157 tokens) duplication in the following files: 
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/filinpstr.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/inputstream.cxx

    if (nrc != sal::static_int_cast<sal_uInt64>( nBytesToRead) )
        aData.realloc(sal_Int32(nrc));
	return ( sal_Int32 ) nrc;
}

sal_Int32 SAL_CALL
XInputStream_impl::readSomeBytes(
	uno::Sequence< sal_Int8 >& aData,
	sal_Int32 nMaxBytesToRead )
	throw( io::NotConnectedException,
		   io::BufferSizeExceededException,
		   io::IOException,
		   uno::RuntimeException)
{
	return readBytes( aData,nMaxBytesToRead );
}


void SAL_CALL
XInputStream_impl::skipBytes(
	sal_Int32 nBytesToSkip )
	throw( io::NotConnectedException,
		   io::BufferSizeExceededException,
		   io::IOException,
		   uno::RuntimeException)
{
	m_aFile.setPos( osl_Pos_Current, sal_uInt64( nBytesToSkip ) );
}


sal_Int32 SAL_CALL
XInputStream_impl::available(
	void )
	throw( io::NotConnectedException,
		   io::IOException,
		   uno::RuntimeException)
{
	return 0;
}


void SAL_CALL
XInputStream_impl::closeInput(
	void )
	throw( io::NotConnectedException,
		   io::IOException,
		   uno::RuntimeException )
{
	if( m_bIsOpen )
=====================================================================
Found a 27 line (157 tokens) duplication in the following files: 
Starting at line 2307 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/utlui/content.cxx
Starting at line 2347 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/utlui/content.cxx

sal_Bool  SwContentTree::NotifyCopying( SvLBoxEntry*  pTarget,
		SvLBoxEntry*  pEntry, SvLBoxEntry*& , ULONG& )
{
	if(!bDocChgdInDragging)
	{
		sal_uInt16 nTargetPos = 0;
		sal_uInt16 nSourcePos = (( SwOutlineContent* )pEntry->GetUserData())->GetPos();
		if(!lcl_IsContent(pTarget))
			nTargetPos = USHRT_MAX;
		else
			nTargetPos = (( SwOutlineContent* )pTarget->GetUserData())->GetPos();

		if(	MAXLEVEL > nOutlineLevel && // werden nicht alle Ebenen angezeigt
						nTargetPos != USHRT_MAX)
		{
			SvLBoxEntry* pNext = Next(pTarget);
			if(pNext)
				nTargetPos = (( SwOutlineContent* )pNext->GetUserData())->GetPos() - 1;
			else
				nTargetPos = GetWrtShell()->GetOutlineCnt() - 1;

		}


		DBG_ASSERT( pEntry &&
			lcl_IsContent(pEntry),"Source == 0 oder Source hat keinen Content" )
		GetParentWindow()->MoveOutline( nSourcePos,	nTargetPos, sal_False);
=====================================================================
Found a 31 line (157 tokens) duplication in the following files: 
Starting at line 2703 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 2867 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        case ww::eWW8:
            pFkpSizeTab = WW8FkpSizeTabVer8;
            break;
        default:
            // Programm-Fehler!
            ASSERT( !this, "Es wurde vergessen, nVersion zu kodieren!" );
            return false;
    }

    if (!pPLCF->Get( nPLCFStart, nPLCFEnd, pPage ))
    {
        pFkp = 0;
        return false;                           // PLCF fertig abgearbeitet
    }
    (*pPLCF)++;
    long nPo = SVBT16ToShort( (BYTE *)pPage );
    nPo <<= 9;                                  // shift als LONG

    long nAktFkpFilePos = pFkp ? pFkp->GetFilePos() : -1;
    if (nAktFkpFilePos == nPo)
        pFkp->Reset(GetStartFc()); // #79464# //
    else
    {
        myiter aIter =
            std::find_if(maFkpCache.begin(), maFkpCache.end(), SamePos(nPo));
        if (aIter != maFkpCache.end())
        {
            pFkp = *aIter;
            pFkp->Reset(GetStartFc());
        }
        else if ((pFkp = new WW8Fkp(GetFIBVersion(), pFKPStrm, pDataStrm, nPo,
=====================================================================
Found a 23 line (157 tokens) duplication in the following files: 
Starting at line 849 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/layact.cxx
Starting at line 996 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/layact.cxx

		if ( !pPage && !IsInterrupt() &&
			 (pRoot->IsSuperfluous() || pRoot->IsAssertFlyPages()) )
		{
			if ( pRoot->IsAssertFlyPages() )
				pRoot->AssertFlyPages();
			if ( pRoot->IsSuperfluous() )
			{
				BOOL bOld = IsAgain();
				pRoot->RemoveSuperfluous();
				bAgain = bOld;
			}
			if ( IsAgain() )
			{
				if( bNoLoop )
					pLayoutAccess->GetLayouter()->EndLoopControl();
				return;
			}
			pPage = (SwPageFrm*)pRoot->Lower();
			while ( pPage && !pPage->IsInvalid() && !pPage->IsInvalidFly() )
				pPage = (SwPageFrm*)pPage->GetNext();
			while ( pPage && pPage->GetNext() &&
					pPage->GetPhyPageNum() < nFirstPageNum )
				pPage = (SwPageFrm*)pPage->GetNext();
=====================================================================
Found a 9 line (157 tokens) duplication in the following files: 
Starting at line 2241 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2329 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffVertPair mso_sptActionButtonDocumentVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0x10 MSO_I, 0x14 MSO_I },
=====================================================================
Found a 37 line (157 tokens) duplication in the following files: 
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/readonlyimage.cxx
Starting at line 454 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/dialogs/macrosecurity.cxx

    SetImage( Image(XMLSEC_RES( bHighContrast ? RID_XMLSECTP_LOCK_HC : RID_XMLSECTP_LOCK )));
}

/*-- 26.02.2004 13:31:04---------------------------------------------------

  -----------------------------------------------------------------------*/
ReadOnlyImage::~ReadOnlyImage()
{
}
/*-- 26.02.2004 13:31:04---------------------------------------------------

  -----------------------------------------------------------------------*/
void ReadOnlyImage::RequestHelp( const HelpEvent& rHEvt )
{
    if( Help::IsBalloonHelpEnabled() || Help::IsQuickHelpEnabled() )
    {
        Rectangle   aLogicPix( LogicToPixel( Rectangle( Point(), GetOutputSize() ) ) );
        Rectangle   aScreenRect( OutputToScreenPixel( aLogicPix.TopLeft() ),
                                     OutputToScreenPixel( aLogicPix.BottomRight() ) );

        String aStr(ReadOnlyImage::GetHelpTip());
        if ( Help::IsBalloonHelpEnabled() )
            Help::ShowBalloon( this, rHEvt.GetMousePosPixel(), aScreenRect, 
            aStr );
        else if ( Help::IsQuickHelpEnabled() )
            Help::ShowQuickHelp( this, aScreenRect, aStr );
    }
    else
        Window::RequestHelp( rHEvt );
}

/*-- 26.02.2004 14:20:21---------------------------------------------------

  -----------------------------------------------------------------------*/
const String& ReadOnlyImage::GetHelpTip()
{
     static String  aStr(XMLSEC_RES( RID_XMLSECTP_READONLY_CONFIG_TIP));
=====================================================================
Found a 28 line (157 tokens) duplication in the following files: 
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 643 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx

void  SvxBulletPickTabPage::Reset( const SfxItemSet& rSet )
{
	const SfxPoolItem* pItem;
	//im Draw gibt es das Item als WhichId, im Writer nur als SlotId
	SfxItemState eState = rSet.GetItemState(SID_ATTR_NUMBERING_RULE, FALSE, &pItem);
	if(eState != SFX_ITEM_SET)
	{
		nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE);
		eState = rSet.GetItemState(nNumItemId, FALSE, &pItem);
	}
	DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!")
	delete pSaveNum;
	pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule());

//	nActNumLvl = ((SwNumBulletTabDialog*)GetTabDialog())->GetActNumLevel();

	if(SFX_ITEM_SET == rSet.GetItemState(SID_PARAM_CHILD_LEVELS, FALSE, &pItem))
		bHasChild = ((const SfxBoolItem*)pItem)->GetValue();
	if(!pActNum)
		pActNum = new  SvxNumRule(*pSaveNum);
	else if(*pSaveNum != *pActNum)
		*pActNum = *pSaveNum;
}
/*-----------------08.02.97 11.58-------------------

--------------------------------------------------*/

IMPL_LINK(SvxBulletPickTabPage, NumSelectHdl_Impl, ValueSet*, EMPTYARG)
=====================================================================
Found a 9 line (157 tokens) duplication in the following files: 
Starting at line 2518 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2607 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptActionButtonDocumentVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0xc MSO_I }, { 0x10 MSO_I, 0x12 MSO_I }, { 0x10 MSO_I, 0x14 MSO_I },
=====================================================================
Found a 19 line (157 tokens) duplication in the following files: 
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShape3d.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape3d.cxx

				p3DObj->NbcSetLayer( pObj->GetLayer() );
				p3DObj->SetMergedItemSet( aSet );
				basegfx::B3DHomMatrix aFrontTransform( p3DObj->GetTransform() );
				aFrontTransform.translate( 0.0, 0.0, fDepth );
				p3DObj->NbcSetTransform( aFrontTransform );
				if ( ( eFillStyle == XFILL_BITMAP ) && !aFillBmp.IsEmpty() )
					p3DObj->SetMergedItem( XFillBitmapItem( String(), aFillBmp ) );
			}
			else if ( eFillStyle == XFILL_NONE )
			{
				XLineColorItem& rLineColor = (XLineColorItem&)p3DObj->GetMergedItem( XATTR_LINECOLOR );
				p3DObj->SetMergedItem( XFillColorItem( String(), rLineColor.GetColorValue() ) );
				p3DObj->SetMergedItem( Svx3DDoubleSidedItem( sal_True ) );
				p3DObj->SetMergedItem( Svx3DCloseFrontItem( sal_False ) );
				p3DObj->SetMergedItem( Svx3DCloseBackItem( sal_False ) );
			}
			pScene->Insert3DObj( p3DObj );
			bSceneHasObjects = sal_True;
		}
=====================================================================
Found a 9 line (157 tokens) duplication in the following files: 
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

	static const SfxItemPropertyMap aGraphicPagePropertyMap_Impl[] =
	{
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BACKGROUND),		WID_PAGE_BACK,		&ITYPE( beans::XPropertySet),					beans::PropertyAttribute::MAYBEVOID,0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BOTTOM),			WID_PAGE_BOTTOM,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_LEFT),				WID_PAGE_LEFT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_RIGHT),			WID_PAGE_RIGHT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_TOP),				WID_PAGE_TOP,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP),		WID_PAGE_LDBITMAP,	&ITYPE(awt::XBitmap),						    beans::PropertyAttribute::READONLY,	0},
=====================================================================
Found a 18 line (157 tokens) duplication in the following files: 
Starting at line 1859 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1944 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

SvXMLImportContext *ScXMLMovementContext::CreateChildContext( USHORT nPrefix,
									 const ::rtl::OUString& rLocalName,
									 const ::com::sun::star::uno::Reference<
									  	::com::sun::star::xml::sax::XAttributeList>& xAttrList )
{
	SvXMLImportContext *pContext(0);

	if ((nPrefix == XML_NAMESPACE_OFFICE) && (IsXMLToken(rLocalName, XML_CHANGE_INFO)))
	{
		pContext = new ScXMLChangeInfoContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
	}
	else if (nPrefix == XML_NAMESPACE_TABLE)
	{
		if (IsXMLToken(rLocalName, XML_DEPENDENCIES))
			pContext = new ScXMLDependingsContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
		else if (IsXMLToken(rLocalName, XML_DELETIONS))
			pContext = new ScXMLDeletionsContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
		else if (IsXMLToken(rLocalName, XML_SOURCE_RANGE_ADDRESS))
=====================================================================
Found a 6 line (157 tokens) duplication in the following files: 
Starting at line 620 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,// 24e0 - 24ef
=====================================================================
Found a 7 line (157 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24f0 - 24ff

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2500 - 250f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2510 - 251f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2520 - 252f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2530 - 253f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2540 - 254f
=====================================================================
Found a 6 line (157 tokens) duplication in the following files: 
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,// 24e0 - 24ef
=====================================================================
Found a 6 line (157 tokens) duplication in the following files: 
Starting at line 564 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    11,11,11,11,11,11,11,11,11,11,11,11,27,27,27,27,// 2490 - 249f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 24a0 - 24af
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 24b0 - 24bf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 24c0 - 24cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 24d0 - 24df
    27,27,27,27,27,27,27,27,27,27,11, 0, 0, 0, 0, 0,// 24e0 - 24ef
=====================================================================
Found a 6 line (157 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,// 24e0 - 24ef
=====================================================================
Found a 6 line (157 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,20,21, 0, 0, 0,// 1690 - 169f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16a0 - 16af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16b0 - 16bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16c0 - 16cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16d0 - 16df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,23,23,23,10,10,// 16e0 - 16ef
=====================================================================
Found a 6 line (157 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,// 24e0 - 24ef
=====================================================================
Found a 24 line (157 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/menubarfactory.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/toolboxfactory.cxx

                            "com.sun.star.ui.ModuleUIConfigurationManagerSupplier" ))), 
                        UNO_QUERY );
                    xCfgMgr = xModuleCfgSupplier->getUIConfigurationManager( aModuleIdentifier );
                    bHasSettings = xCfgMgr->hasSettings( aResourceURL );
                }
            }
        }
    }

    PropertyValue aPropValue;
    Sequence< Any > aPropSeq( 5 );
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Frame" ));
    aPropValue.Value <<= xFrame;
    aPropSeq[0] <<= aPropValue;
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ConfigurationSource" ));
    aPropValue.Value <<= xCfgMgr;
    aPropSeq[1] <<= aPropValue;
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ResourceURL" ));
    aPropValue.Value <<= aResourceURL;
    aPropSeq[2] <<= aPropValue;
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Persistent" ));
    aPropValue.Value <<= bPersistent;
    aPropSeq[3] <<= aPropValue;
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PopupMode" ));
=====================================================================
Found a 26 line (157 tokens) duplication in the following files: 
Starting at line 738 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx
Starting at line 788 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx

void SAL_CALL ToolBarManager::elementRemoved( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException)
{
    ResetableGuard aGuard( m_aLock );

	/* SAFE AREA ----------------------------------------------------------------------------------------------- */
    if ( m_bDisposed )
        return;

    Reference< XNameAccess > xNameAccess;
    sal_Int16                nImageType = sal_Int16();
    sal_Int16                nCurrentImageType = getImageTypeFromBools(
                                                    SvtMiscOptions().AreCurrentSymbolsLarge(),
                                                    m_bIsHiContrast );

    if (( Event.aInfo >>= nImageType ) &&
        ( nImageType == nCurrentImageType ) &&
        ( Event.Element >>= xNameAccess ))
    {
        sal_Int16 nImageInfo( 1 );
        Reference< XInterface > xIfacDocImgMgr( m_xDocImageManager, UNO_QUERY );
        if ( xIfacDocImgMgr == Event.Source )
            nImageInfo = 0;

        Sequence< rtl::OUString > aSeq = xNameAccess->getElementNames();
        for ( sal_Int32 i = 0; i < aSeq.getLength(); i++ )
        {
=====================================================================
Found a 6 line (157 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,// 24e0 - 24ef
=====================================================================
Found a 14 line (157 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlControlProperty.cxx

			case XML_TOK_VALUE_TYPE:
				{
					// needs to be translated into a ::com::sun::star::uno::Type
					DECLARE_STL_USTRINGACCESS_MAP( ::com::sun::star::uno::Type, MapString2Type );
					static MapString2Type s_aTypeNameMap;
					if (!s_aTypeNameMap.size())
					{
						s_aTypeNameMap[GetXMLToken( XML_BOOLEAN)]	= ::getBooleanCppuType();
						s_aTypeNameMap[GetXMLToken( XML_FLOAT)]		= ::getCppuType( static_cast< double* >(NULL) );
                        s_aTypeNameMap[GetXMLToken( XML_DOUBLE)]	= ::getCppuType( static_cast< double* >(NULL) );
						s_aTypeNameMap[GetXMLToken( XML_STRING)]	= ::getCppuType( static_cast< ::rtl::OUString* >(NULL) );
						s_aTypeNameMap[GetXMLToken( XML_INT)]		= ::getCppuType( static_cast< sal_Int32* >(NULL) );
						s_aTypeNameMap[GetXMLToken( XML_SHORT)]		= ::getCppuType( static_cast< sal_Int16* >(NULL) );
						s_aTypeNameMap[GetXMLToken( XML_DATE)]		= ::getCppuType( static_cast< com::sun::star::util::Date* >(NULL) );
=====================================================================
Found a 23 line (157 tokens) duplication in the following files: 
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

	m_aScales.clear();
	// reserve some space
	m_aColumns->reserve(nFieldCount);
	m_aTypes.reserve(nFieldCount);
	m_aPrecisions.reserve(nFieldCount);
	m_aScales.reserve(nFieldCount);

	sal_Bool bCase = getConnection()->getMetaData()->storesMixedCaseQuotedIdentifiers();
	CharClass aCharClass(pConnection->getDriver()->getFactory(),_aLocale);
	// read description
	sal_Unicode cDecimalDelimiter  = pConnection->getDecimalDelimiter();
	sal_Unicode cThousandDelimiter = pConnection->getThousandDelimiter();
	String aColumnName;
	::rtl::OUString aTypeName;
	::comphelper::UStringMixEqual aCase(bCase);
	xub_StrLen nStartPosHeaderLine = 0; // use for eficient way to get the tokens
	xub_StrLen nStartPosFirstLine = 0; // use for eficient way to get the tokens
	xub_StrLen nStartPosFirstLine2 = 0;
	for (xub_StrLen i = 0; i < nFieldCount; i++)
	{
		if (pConnection->isHeaderLine())
		{
			aHeaderLine.GetTokenSpecial(aColumnName,nStartPosHeaderLine,pConnection->getFieldDelimiter(),pConnection->getStringDelimiter());
=====================================================================
Found a 25 line (157 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LFolderList.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

	xub_StrLen nFieldCount = aHeaderLine.GetTokenCount(pConnection->getFieldDelimiter(),pConnection->getStringDelimiter());

	if(!m_aColumns.isValid())
		m_aColumns = new OSQLColumns();
	else
		m_aColumns->clear();

	m_aTypes.clear();
	m_aPrecisions.clear();
	m_aScales.clear();
	// reserve some space
	m_aColumns->reserve(nFieldCount);
	m_aTypes.reserve(nFieldCount);
	m_aPrecisions.reserve(nFieldCount);
	m_aScales.reserve(nFieldCount);

	sal_Bool bCase = getConnection()->getMetaData()->storesMixedCaseQuotedIdentifiers();
	CharClass aCharClass(pConnection->getDriver()->getFactory(),_aLocale);
	// read description
	sal_Unicode cDecimalDelimiter  = pConnection->getDecimalDelimiter();
	sal_Unicode cThousandDelimiter = pConnection->getThousandDelimiter();
	String aColumnName;
	::rtl::OUString aTypeName;
	::comphelper::UStringMixEqual aCase(bCase);
	xub_StrLen nStartPosHeaderLine = 0; // use for eficient way to get the tokens
=====================================================================
Found a 31 line (157 tokens) duplication in the following files: 
Starting at line 2611 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 2655 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx

void StructureType::dumpNormalGetCppuType(FileStream & out) {
    dumpGetCppuTypePreamble(out);
    out << indent()
        << ("//TODO: On certain platforms with weak memory models, the"
            " following code can result in some threads observing that the_type"
            " points to garbage\n")
        << indent()
        << "static ::typelib_TypeDescriptionReference * the_type = 0;\n"
        << indent() << "if (the_type == 0) {\n";
    inc();
    if (isPolymorphic()) {
        out << indent() << "::rtl::OStringBuffer the_buffer(\""
            << m_typeName.replace('/', '.') << "<\");\n";
        sal_uInt16 n = m_reader.getReferenceCount();
        for (sal_uInt16 i = 0; i < n; ++i) {
            out << indent()
                << ("the_buffer.append(::rtl::OUStringToOString("
                    "::cppu::getTypeFavourChar(static_cast< ");
            dumpTypeParameterName(
                out,
                rtl::OUStringToOString(
                    m_reader.getReferenceTypeName(i), RTL_TEXTENCODING_UTF8));
            out << " * >(0)).getTypeName(), RTL_TEXTENCODING_UTF8));\n";
            if (i != n - 1) {
                out << indent() << "the_buffer.append(',');\n";
            }
        }
        out << indent() << "the_buffer.append('>');\n";
    }
    out << indent()
        << "::typelib_TypeDescriptionReference * the_members[] = {\n";
=====================================================================
Found a 31 line (157 tokens) duplication in the following files: 
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/codemaker/typemanager.cxx
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/unodevtools/typemanager.cxx

RTTypeClass UnoTypeManager::getTypeClass(RegistryKey& rTypeKey) const
{
    OString name = getTypeName(rTypeKey);
    
	if ( m_pImpl->m_t2TypeClass.count(name) > 0 ) {
		return m_pImpl->m_t2TypeClass[name];
	} else {
		if ( rTypeKey.isValid() ) {
			RegValueType 	valueType;
			sal_uInt32		valueSize;

			if ( !rTypeKey.getValueInfo(OUString(), &valueType, &valueSize) ) {
				sal_uInt8*	pBuffer = (sal_uInt8*)rtl_allocateMemory(valueSize);	
				if ( !rTypeKey.getValue(OUString(), pBuffer) ) {
					typereg::Reader reader(
                        pBuffer, valueSize, false, TYPEREG_VERSION_1);

					RTTypeClass ret = reader.getTypeClass();
					
					rtl_freeMemory(pBuffer);
					
					m_pImpl->m_t2TypeClass[name] = ret;				
					return ret;
				}		
				rtl_freeMemory(pBuffer);
			}
		}
	}	

	return RT_TYPE_INVALID;	
}	
=====================================================================
Found a 35 line (157 tokens) duplication in the following files: 
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			    break;
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 41 line (157 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/ary/cpp/c_macro.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/cpp/defdescr.cxx

    if ( aDefinition.begin() == aDefinition.end() OR eDefineType != type_macro )
        return;

    for ( str_vector::const_iterator it = aDefinition.begin();
          it != aDefinition.end();
          ++it )
    {
        if ( HandleOperatorsBeforeTextItem( o_rText,
                                            bSwitch_Stringify,
                                            bSwitch_Concatenate,
                                            *it ) )
        {
            continue;
        }

        for ( str_vector::const_iterator param_it = aParams.begin();
              param_it != aParams.end() AND nActiveParamNr == -1;
              ++param_it )
        {
         	if ( strcmp(*it, *param_it) == 0 )
                nActiveParamNr = param_it - aParams.begin();
        }
        if ( nActiveParamNr == -1 )
        {
            o_rText << (*it);
        }
        else
        {
            o_rText << i_rGivenArguments[nActiveParamNr];
            nActiveParamNr = -1;
        }

        Do_bStringify_end(o_rText, bSwitch_Stringify);
        o_rText << " ";
    }
    o_rText.seekp(-1, csv::cur);
}



}   // end namespace cpp
=====================================================================
Found a 23 line (156 tokens) duplication in the following files: 
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h

        span_pattern_filter_rgb_bilinear(alloc_type& alloc,
                                         const rendering_buffer& src, 
                                         interpolator_type& intr) :
            base_type(alloc, src, color_type(0,0,0,0), intr, 0),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 30 line (156 tokens) duplication in the following files: 
Starting at line 394 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 487 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            int fg[4];

            unsigned   diameter     = base_type::filter().diameter();
            int        start        = base_type::filter().start();
            const int16* weight_array = base_type::filter().weight_array();

            color_type* span = base_type::allocator().span();

            int x_count; 
            int weight_y;

            do
            {
                base_type::interpolator().coordinates(&x, &y);

                x -= base_type::filter_dx_int();
                y -= base_type::filter_dy_int();

                int x_hr = x; 
                int y_hr = y; 

                int x_fract = x_hr & image_subpixel_mask;
                unsigned y_count = diameter;

                int y_lr  = m_wrap_mode_y((y >> image_subpixel_shift) + start);
                int x_int = (x >> image_subpixel_shift) + start;
                int x_lr;

                y_hr = image_subpixel_mask - (y_hr & image_subpixel_mask);
                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 24 line (156 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_gouraud_gray.h
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_gouraud_rgba.h

        span_gouraud_rgba(alloc_type& alloc, 
                          const color_type& c1, 
                          const color_type& c2, 
                          const color_type& c3,
                          double x1, double y1, 
                          double x2, double y2,
                          double x3, double y3, 
                          double d = 0) : 
            base_type(alloc, c1, c2, c3, x1, y1, x2, y2, x3, y3, d)
        {}

        //--------------------------------------------------------------------
        void prepare(unsigned max_span_len)
        {
            base_type::prepare(max_span_len);

            coord_type coord[3];
            arrange_vertices(coord);

            m_y2 = int(coord[1].y);

            m_swap = calc_point_location(coord[0].x, coord[0].y, 
                                         coord[2].x, coord[2].y,
                                         coord[1].x, coord[1].y) < 0.0;
=====================================================================
Found a 23 line (156 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readFixedTextModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readBorderProps( this, aStyle ))
        aStyle._set |= 0x4;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }

    // collect elements
    readDefaults();
=====================================================================
Found a 8 line (156 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydlnk_curs.h

static char copydlnk_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x00,
=====================================================================
Found a 6 line (156 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h

 0x1f,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 24 line (156 tokens) duplication in the following files: 
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salprn.h
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salprn.h

    virtual ~WinSalInfoPrinter();

	virtual SalGraphics*			GetGraphics();
	virtual void					ReleaseGraphics( SalGraphics* pGraphics );
	virtual BOOL					Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
	virtual BOOL					SetPrinterData( ImplJobSetup* pSetupData );
	virtual BOOL					SetData( ULONG nFlags, ImplJobSetup* pSetupData );
	virtual void					GetPageInfo( const ImplJobSetup* pSetupData,
                                                 long& rOutWidth, long& rOutHeight,
                                                 long& rPageOffX, long& rPageOffY,
                                                 long& rPageWidth, long& rPageHeight );
	virtual ULONG					GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
	virtual ULONG					GetPaperBinCount( const ImplJobSetup* pSetupData );
	virtual String					GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
    virtual void					InitPaperFormats( const ImplJobSetup* pSetupData );
    virtual int					GetLandscapeAngle( const ImplJobSetup* pSetupData );
    virtual DuplexMode          GetDuplexMode( const ImplJobSetup* pSetupData );
};

// -----------------
// - WinSalPrinter -
// -----------------

class WinSalPrinter : public SalPrinter
=====================================================================
Found a 50 line (156 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/pspgraphics.h
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salgdi.h

    virtual void			BeginSetClipRegion( ULONG nCount );
    // all rectangles were added and the clip region should be set now
    virtual void			EndSetClipRegion();

    // set the line color to transparent (= don't draw lines)
    virtual void			SetLineColor();
    // set the line color to a specific color
    virtual void			SetLineColor( SalColor nSalColor );
    // set the fill color to transparent (= don't fill)
    virtual void			SetFillColor();
    // set the fill color to a specific color, shapes will be
    // filled accordingly
    virtual void          	SetFillColor( SalColor nSalColor );
    // enable/disable XOR drawing
    virtual void			SetXORMode( BOOL bSet );
    // set line color for raster operations
    virtual void			SetROPLineColor( SalROPColor nROPColor );
    // set fill color for raster operations
    virtual void			SetROPFillColor( SalROPColor nROPColor );
    // set the text color to a specific color
    virtual void			SetTextColor( SalColor nSalColor );
    // set the font
    virtual USHORT         SetFont( ImplFontSelectData*, int nFallbackLevel );
    // get the current font's etrics
    virtual void			GetFontMetric( ImplFontMetricData* );
    // get kernign pairs of the current font
    // return only PairCount if (pKernPairs == NULL)
    virtual ULONG			GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
    // get the repertoire of the current font
    virtual ImplFontCharMap* GetImplFontCharMap() const;
    // graphics must fill supplied font list
    virtual void			GetDevFontList( ImplDevFontList* );
    // graphics should call ImplAddDevFontSubstitute on supplied
    // OutputDevice for all its device specific preferred font substitutions
    virtual void			GetDevFontSubstList( OutputDevice* );
    virtual bool			AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
    // CreateFontSubset: a method to get a subset of glyhps of a font
    // inside a new valid font file
    // returns TRUE if creation of subset was successfull
    // parameters: rToFile: contains a osl file URL to write the subset to
    //             pFont: describes from which font to create a subset
    //             pGlyphIDs: the glyph ids to be extracted
    //             pEncoding: the character code corresponding to each glyph
    //             pWidths: the advance widths of the correspoding glyphs (in PS font units)
    //             nGlyphs: the number of glyphs
    //             rInfo: additional outgoing information
    // implementation note: encoding 0 with glyph id 0 should be added implicitly
    // as "undefined character"
    virtual BOOL			CreateFontSubset( const rtl::OUString& rToFile,
                                              ImplFontData* pFont,
=====================================================================
Found a 31 line (156 tokens) duplication in the following files: 
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svptext.cxx
Starting at line 1287 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salgdi3.cxx

    rMgr.getFontList( aList );
    for( it = aList.begin(); it != aList.end(); ++it )
    {
        if( !rMgr.getFontFastInfo( *it, aInfo ) )
            continue;

        // the GlyphCache must not bother with builtin fonts because
        // it cannot access or use them anyway
        if( aInfo.m_eType == psp::fonttype::Builtin )
            continue;

        // normalize face number to the GlyphCache
        int nFaceNum = rMgr.getFontFaceNumber( aInfo.m_nID );
        if( nFaceNum < 0 )
            nFaceNum = 0;

        // for fonts where extra kerning info can be provided on demand
        // an ExtraKernInfo object is supplied
        const ExtraKernInfo* pExtraKernInfo = NULL;
        if( aInfo.m_eType == psp::fonttype::Type1 )
            pExtraKernInfo = new PspKernInfo( *it );

        // inform GlyphCache about this font provided by the PsPrint subsystem
        ImplDevFontAttributes aDFA = PspGraphics::Info2DevFontAttributes( aInfo );
        aDFA.mnQuality += 4096;
        const rtl::OString& rFileName = rMgr.getFontFileSysPath( aInfo.m_nID );
        rGC.AddFontFile( rFileName, nFaceNum, aInfo.m_nID, aDFA, pExtraKernInfo );
   }

    // announce glyphcache fonts
    rGC.AnnounceFonts( pList );
=====================================================================
Found a 21 line (156 tokens) duplication in the following files: 
Starting at line 258 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salgdi.h
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/pspgraphics.h

    virtual BOOL			unionClipRegion( long nX, long nY, long nWidth, long nHeight );
    virtual void			EndSetClipRegion();

    virtual void			SetLineColor();
    virtual void			SetLineColor( SalColor nSalColor );
    virtual void			SetFillColor();
    virtual void          	SetFillColor( SalColor nSalColor );
    virtual void			SetXORMode( BOOL bSet );
    virtual void			SetROPLineColor( SalROPColor nROPColor );
    virtual void			SetROPFillColor( SalROPColor nROPColor );

    virtual void			SetTextColor( SalColor nSalColor );
    virtual USHORT          SetFont( ImplFontSelectData*, int nFallbackLevel );
    virtual void			GetFontMetric( ImplFontMetricData* );
    virtual ULONG			GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
    virtual ImplFontCharMap* GetImplFontCharMap() const;
    virtual void			GetDevFontList( ImplDevFontList* );
    virtual void			GetDevFontSubstList( OutputDevice* );
    virtual bool			AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
    virtual BOOL			CreateFontSubset( const rtl::OUString& rToFile,
                                              ImplFontData* pFont,
=====================================================================
Found a 26 line (156 tokens) duplication in the following files: 
Starting at line 322 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_docmgr.cxx
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_docmgr.cxx

                RTL_CONSTASCII_STRINGPARAM( "OnSaveAsDone" ) ) )
    {
        if ( isOfficeDocument( Event.Source ) )
        {
            osl::MutexGuard aGuard( m_aMtx );

            uno::Reference< frame::XModel >
                 xModel( Event.Source, uno::UNO_QUERY );
            OSL_ENSURE( xModel.is(), "Got no frame::XModel!" );

            DocumentList::iterator it = m_aDocs.begin();
            while ( it != m_aDocs.end() )
            {
                if ( (*it).second.xModel == xModel )
                {
                    // Storage gets exchanged while saving.
                    uno::Reference< document::XStorageBasedDocument >
                        xDoc( Event.Source, uno::UNO_QUERY );
                    OSL_ENSURE( xDoc.is(),
                                "Got no document::XStorageBasedDocument!" );

                    uno::Reference< embed::XStorage > xStorage
                        = xDoc->getDocumentStorage();
                    OSL_ENSURE( xDoc.is(), "Got no document storage!" );

                    (*it).second.xStorage = xStorage;
=====================================================================
Found a 28 line (156 tokens) duplication in the following files: 
Starting at line 1206 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx
Starting at line 1521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx

    if( aPosArr.Count() )
    {
        SwTableLines& rLns = pTable->GetTabLines();
        USHORT nLastPos = 0;
        for( n = 0; n < aPosArr.Count(); ++n )
        {
            SwTableBoxFmt *pNewFmt = pDoc->MakeTableBoxFmt();
            pNewFmt->SetAttr( SwFmtFrmSize( ATT_VAR_SIZE,
                                                aPosArr[ n ] - nLastPos ));
            for( USHORT nLines = 0; nLines < rLns.Count(); ++nLines )
                //JP 24.06.98: hier muss ein Add erfolgen, da das BoxFormat
                //              von der rufenden Methode noch gebraucht wird!
                pNewFmt->Add( rLns[ nLines ]->GetTabBoxes()[ n ] );

            nLastPos = aPosArr[ n ];
        }

        // damit die Tabelle die richtige Groesse bekommt, im BoxFormat die
        // Groesse nach "oben" transportieren.
        ASSERT( !pBoxFmt->GetDepends(), "wer ist in dem Format noch angemeldet" );
        pBoxFmt->SetAttr( SwFmtFrmSize( ATT_VAR_SIZE, nLastPos ));
    }
    else
        pBoxFmt->SetAttr( SwFmtFrmSize( ATT_VAR_SIZE, USHRT_MAX / nMaxBoxes ));

    // das wars doch wohl ??
    return pTblNd;
}
=====================================================================
Found a 19 line (156 tokens) duplication in the following files: 
Starting at line 2170 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4966 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x6D, 0x73, 0x2E, 0x43, 0x68, 0x65, 0x63, 0x6B,
		0x42, 0x6F, 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39,
		0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00
	};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
=====================================================================
Found a 23 line (156 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/copied/staticbaseurl.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/copied/staticbaseurl.cxx

    String const & rTheAbsURIRef,
    INetURLObject::EncodeMechanism eEncodeMechanism,
    INetURLObject::DecodeMechanism eDecodeMechanism, rtl_TextEncoding eCharset,
    INetURLObject::FSysStyle eStyle)
{
    INetURLObject const & rINetURLObject = BaseURIRef::get();
    com::sun::star::uno::Any aAny;
    if ( rINetURLObject.GetProtocol() != INET_PROT_NOT_VALID )
        aAny = GetCasePreservedURL(rINetURLObject);
    rtl::OUString aBaseURL;
    sal_Bool success = (aAny >>= aBaseURL);
    if (success) {
        INetURLObject aAbsURIRef(rTheAbsURIRef,eEncodeMechanism,eCharset);
        com::sun::star::uno::Any aAny2(GetCasePreservedURL(aAbsURIRef));
        rtl::OUString aAbsURL;
        success = (aAny2 >>= aAbsURL);
        if (success) {
            return INetURLObject::GetRelURL(
                aBaseURL, aAbsURL, INetURLObject::WAS_ENCODED, eDecodeMechanism,
                RTL_TEXTENCODING_UTF8, eStyle);
        } else {
            return INetURLObject::GetRelURL(
                aBaseURL, rTheAbsURIRef, eEncodeMechanism, eDecodeMechanism,
=====================================================================
Found a 9 line (156 tokens) duplication in the following files: 
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN("HeaderText"),					WID_PAGE_HEADERTEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("IsFooterVisible"),				WID_PAGE_FOOTERVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("FooterText"),					WID_PAGE_FOOTERTEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("IsPageNumberVisible"),			WID_PAGE_PAGENUMBERVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("IsDateTimeVisible"),			WID_PAGE_DATETIMEVISIBLE, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("IsDateTimeFixed"),				WID_PAGE_DATETIMEFIXED, &::getBooleanCppuType(),					0, 0},
		{ MAP_CHAR_LEN("DateTimeText"),					WID_PAGE_DATETIMETEXT, &::getCppuType((const OUString*)0),				0,	0},
		{ MAP_CHAR_LEN("DateTimeFormat"),				WID_PAGE_DATETIMEFORMAT, &::getCppuType((const sal_Int32*)0),			0,	0},
		{0,0,0,0,0,0}
=====================================================================
Found a 24 line (156 tokens) duplication in the following files: 
Starting at line 2736 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/dapiuno.cxx
Starting at line 2789 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/dapiuno.cxx

    if (!bFound)
    {
        uno::Reference<container::XNamed> xNamed(aElement, uno::UNO_QUERY);
        if (xNamed.is())
        {
            ScFieldGroup aGroup;
            aGroup.sName = xNamed->getName();
            uno::Reference<container::XIndexAccess> xIndex(xNamed, uno::UNO_QUERY);
            if (xIndex.is())
            {
                sal_Int32 nCount(xIndex->getCount());
                for (sal_Int32 i = 0; i < nCount; ++i)
                {
                    uno::Reference<container::XNamed> xItem(xIndex->getByIndex(i), uno::UNO_QUERY);
                    if (xItem.is())
                        aGroup.aMembers.push_back(xNamed->getName());
                    else
                        throw lang::IllegalArgumentException();
                }
            }
            else
                throw lang::IllegalArgumentException();

            aGroups.push_back(aGroup);
=====================================================================
Found a 24 line (156 tokens) duplication in the following files: 
Starting at line 2573 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabres.cxx
Starting at line 2645 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabres.cxx

    		const ScMemberSortOrder& rGlobalOrder = pThisLevel->GetGlobalOrder();

            ScDPGroupCompare aCompare( pResultData, rInitState, nDimSource );

			ScDPMembers* pMembers = pThisLevel->GetMembersObject();
			long nMembCount = pMembers->getCount();
			for ( long i=0; i<nMembCount; i++ )
			{
        	    long nSorted = rGlobalOrder.empty() ? i : rGlobalOrder[i];

				ScDPMember* pMember = pMembers->getByIndex(nSorted);
                if ( aCompare.IsIncluded( *pMember ) )
                {
    				ScDPResultMember* pNew = new ScDPResultMember( pResultData, pThisDim,
    												pThisLevel, pMember, FALSE );
                    maMemberArray.push_back( pNew );

                    ScDPItemData aMemberData;
                    pMember->FillItemData( aMemberData );

                    // honour order of maMemberArray and only insert if it does not
                    // already exist
                    if ( maMemberHash.end() == maMemberHash.find( aMemberData ) )
                        maMemberHash.insert( std::pair< const ScDPItemData, ScDPResultMember *>( aMemberData, pNew ) );
=====================================================================
Found a 40 line (156 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_AcceptorSocket.cxx
Starting at line 621 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

};

// -----------------------------------------------------------------------------
// just used to test socket::close() when accepting
class AcceptorThread : public Thread
{
	::osl::AcceptorSocket asAcceptorSocket;
	::rtl::OUString aHostIP;
	sal_Bool bOK;
protected:	
	void SAL_CALL run( )
	{
		::osl::SocketAddr saLocalSocketAddr( aHostIP, IP_PORT_MYPORT9 );
		::osl::StreamSocket ssStreamConnection;
		
		asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //integer not sal_Bool : sal_True);
		sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
		if  ( sal_True != bOK1 )
		{
			t_print("# AcceptorSocket bind address failed.\n" ) ;
			return;
		}
		sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
		if  ( sal_True != bOK2 )
		{ 
			t_print("# AcceptorSocket listen address failed.\n" ) ;
			return;
		}

		asAcceptorSocket.enableNonBlockingMode( sal_False );
		
		oslSocketResult eResult = asAcceptorSocket.acceptConnection( ssStreamConnection );
		if (eResult != osl_Socket_Ok )
		{
			bOK = sal_True;
			t_print("AcceptorThread: acceptConnection failed! \n");			
		}	
	}
public:
	AcceptorThread(::osl::AcceptorSocket & asSocket, ::rtl::OUString & aBindIP )
=====================================================================
Found a 24 line (156 tokens) duplication in the following files: 
Starting at line 1907 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 1979 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

		if (! addLine(pProfile, Line))
			return (sal_False);
	}

	for (i = 0; i < pProfile->m_NoLines; i++)
	{
		pStr = (sal_Char *)stripBlanks(pProfile->m_Lines[i], NULL);

		if ((*pStr == '\0') || (*pStr == ';'))
			continue;

		if ((*pStr != '[') || ((pChar = strrchr(pStr, ']')) == NULL) ||
			((pChar - pStr) <= 2))
		{
			/* insert entry */

			if (pProfile->m_NoSections < 1)
				continue;

			if ((pChar = strchr(pStr, '=')) == NULL)
				pChar = pStr + strlen(pStr);

			if (! addEntry(pProfile, &pProfile->m_Sections[pProfile->m_NoSections - 1],
						   i, pStr, pChar - pStr))
=====================================================================
Found a 39 line (156 tokens) duplication in the following files: 
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/nlsupport.c
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/ulfconv/ulfconv.cxx

static int
_pair_compare (const char *key, const _pair *pair)
{
    int result = rtl_str_compareIgnoreAsciiCase( key, pair->key );
    return result;
}

/*****************************************************************************
 * binary search on encoding tables
 *****************************************************************************/

static const _pair*
_pair_search (const char *key, const _pair *base, unsigned int member )
{
    unsigned int lower = 0;
    unsigned int upper = member;
    unsigned int current;
    int comparison;

    /* check for validity of input */
    if ( (key == NULL) || (base == NULL) || (member == 0) )
        return NULL;

    /* binary search */
    while ( lower < upper )
    {
        current = (lower + upper) / 2;
        comparison = _pair_compare( key, base + current );
        if (comparison < 0)
            upper = current;
        else
        if (comparison > 0)
            lower = current + 1;
        else
            return base + current;
    }

    return NULL;
}
=====================================================================
Found a 33 line (156 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/spelldsp.cxx
Starting at line 658 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/spelldsp.cxx

		return xRes;
	
	// search for entry with that language
    SeqLangSvcEntry_Spell *pEntry = aSvcList.Get( nLanguage );
	
	if (!pEntry)
	{
#ifdef LINGU_EXCEPTIONS
		throw IllegalArgumentException();
#endif
	}
	else
	{
		OUString aChkWord( rWord );
        Locale aLocale( CreateLocale( nLanguage ) );

        // replace typographical apostroph by ascii apostroph
        String aSingleQuote( GetLocaleDataWrapper( nLanguage ).getQuotationMarkEnd() );
        DBG_ASSERT( 1 == aSingleQuote.Len(), "unexpectend length of quotation mark" );
        if (aSingleQuote.Len())
            aChkWord = aChkWord.replace( aSingleQuote.GetChar(0), '\'' );

        RemoveHyphens( aChkWord );
		if (IsIgnoreControlChars( rProperties, GetPropSet() ))
			RemoveControlChars( aChkWord );

		INT32 nLen = pEntry->aSvcRefs.getLength();
		DBG_ASSERT( nLen == pEntry->aSvcImplNames.getLength(), 
				"lng : sequence length mismatch");
		DBG_ASSERT( pEntry->aFlags.nLastTriedSvcIndex < nLen, 
				"lng : index out of range");

		INT32 i = 0;
=====================================================================
Found a 22 line (156 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
Starting at line 661 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx

      pCC  = aDicts[k].apCC;
  
      // first handle smart quotes both single and double
      OUStringBuffer rBuf(aWord);
      sal_Int32 nc = rBuf.getLength();
      sal_Unicode ch;
      for (sal_Int32 ix=0; ix < nc; ix++) {
	  ch = rBuf.charAt(ix);
          if ((ch == 0x201C) || (ch == 0x201D)) rBuf.setCharAt(ix,(sal_Unicode)0x0022);
          if ((ch == 0x2018) || (ch == 0x2019)) rBuf.setCharAt(ix,(sal_Unicode)0x0027);
      }
      OUString nWord(rBuf.makeStringAndClear());

      // now convert word to all lowercase for pattern recognition
      OUString nTerm(makeLowerCase(nWord, pCC));

      // now convert word to needed encoding
      OString encWord(OU2ENC(nTerm,aEnc));

      wordlen = encWord.getLength();
      lcword = new char[wordlen+1];
      hyphens = new char[wordlen+5];
=====================================================================
Found a 6 line (156 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x70,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,
=====================================================================
Found a 6 line (156 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h

 0x1f,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 6 line (156 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x70,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,
=====================================================================
Found a 6 line (156 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h

 0x1f,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 33 line (156 tokens) duplication in the following files: 
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/generictoolbarcontroller.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/generictoolboxcontroller.cxx

void SAL_CALL GenericToolboxController::execute( sal_Int16 /*KeyModifier*/ ) 
throw ( RuntimeException )
{
    Reference< XDispatch >       xDispatch;
    Reference< XURLTransformer > xURLTransformer;
    OUString                     aCommandURL;
    
    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        
        if ( m_bDisposed )
            throw DisposedException();

        if ( m_bInitialized && 
             m_xFrame.is() &&
             m_xServiceManager.is() &&
             m_aCommandURL.getLength() )
        {
            xURLTransformer = Reference< XURLTransformer >( m_xServiceManager->createInstance( 
                                                                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                            UNO_QUERY );
            
            aCommandURL = m_aCommandURL;
            URLToDispatchMap::iterator pIter = m_aListenerMap.find( m_aCommandURL );
            if ( pIter != m_aListenerMap.end() )
                xDispatch = pIter->second;
        }
    }

    if ( xDispatch.is() && xURLTransformer.is() )
    {
        com::sun::star::util::URL aTargetURL;
        Sequence<PropertyValue>   aArgs;
=====================================================================
Found a 18 line (156 tokens) duplication in the following files: 
Starting at line 1140 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/bibliography/datman.cxx
Starting at line 1412 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/bibliography/datman.cxx

				Reference< XDatabaseMetaData >	xMetaData = xConnection->getMetaData();
				aQuoteChar = xMetaData->getIdentifierQuoteString();

				Reference< XMultiServiceFactory > xFactory(xConnection, UNO_QUERY);
                if ( xFactory.is() )
				    m_xParser.set( xFactory->createInstance( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.sdb.SingleSelectQueryComposer" ) ) ), UNO_QUERY );

				::rtl::OUString aString(C2U("SELECT * FROM "));

                ::rtl::OUString sCatalog, sSchema, sName;
                ::dbtools::qualifiedNameComponents( xMetaData, aActiveDataTable, sCatalog, sSchema, sName, ::dbtools::eInDataManipulation );
                aString += ::dbtools::composeTableNameForSelect( xConnection, sCatalog, sSchema, sName );

                m_xParser->setElementaryQuery(aString);

				BibConfig* pConfig = BibModul::GetConfig();
				pConfig->setQueryField(getQueryField());
				startQueryWith(pConfig->getQueryText());
=====================================================================
Found a 8 line (156 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/copydata_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copydlnk_curs.h

static char copydlnk_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
   0x0e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00,
   0x7e, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00,
   0xfe, 0x03, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00,
   0x66, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x53, 0x00, 0x00,
   0x28, 0xa3, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x00,
=====================================================================
Found a 21 line (156 tokens) duplication in the following files: 
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HViews.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YViews.cxx

	Reference<XConnection> xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection();

	::rtl::OUString aSql	= ::rtl::OUString::createFromAscii("CREATE VIEW ");
	::rtl::OUString aQuote	= xConnection->getMetaData()->getIdentifierQuoteString(  );
	::rtl::OUString sSchema,sCommand;

	aSql += ::dbtools::composeTableName( m_xMetaData, descriptor, ::dbtools::eInTableDefinitions, false, false, true );

	aSql += ::rtl::OUString::createFromAscii(" AS ");
	descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_COMMAND)) >>= sCommand;
	aSql += sCommand;

    Reference< XStatement > xStmt = xConnection->createStatement(  );
	if ( xStmt.is() )
	{
		xStmt->execute(aSql);
		::comphelper::disposeComponent(xStmt);
	}

	// insert the new view also in the tables collection
	OTables* pTables = static_cast<OTables*>(static_cast<OMySQLCatalog&>(m_rParent).getPrivateTables());
=====================================================================
Found a 33 line (156 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HCatalog.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YCatalog.cxx

void OMySQLCatalog::refreshViews()
{
	Sequence< ::rtl::OUString > aTypes(1);
	aTypes[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VIEW"));

	sal_Bool bSupportsViews = sal_False;
	try
	{
		Reference<XResultSet> xRes = m_xMetaData->getTableTypes();
		Reference<XRow> xRow(xRes,UNO_QUERY);
		while ( xRow.is() && xRes->next() )
		{
			if ( (bSupportsViews = xRow->getString(1).equalsIgnoreAsciiCase(aTypes[0])) )
			{
				break;
			}
		}
	}
	catch(const SQLException&)
	{
	}

	TStringVector aVector;
	if ( bSupportsViews )
		refreshObjects(aTypes,aVector);

	if ( m_pViews )
		m_pViews->reFill(aVector);
	else
		m_pViews = new OViews(m_xMetaData,*this,m_aMutex,aVector);
}
// -------------------------------------------------------------------------
void OMySQLCatalog::refreshGroups()
=====================================================================
Found a 16 line (156 tokens) duplication in the following files: 
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaData.cxx
Starting at line 1167 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

				aRow[6] = ::connectivity::ODatabaseMetaDataResultSet::getSelectValue();
				aRows.push_back(aRow);
				aRow[6] = ::connectivity::ODatabaseMetaDataResultSet::getInsertValue();
				aRows.push_back(aRow);
				aRow[6] = ::connectivity::ODatabaseMetaDataResultSet::getDeleteValue();
				aRows.push_back(aRow);
				aRow[6] = ::connectivity::ODatabaseMetaDataResultSet::getUpdateValue();
				aRows.push_back(aRow);
				aRow[6] = ::connectivity::ODatabaseMetaDataResultSet::getCreateValue();
				aRows.push_back(aRow);
				aRow[6] = ::connectivity::ODatabaseMetaDataResultSet::getReadValue();
				aRows.push_back(aRow);
				aRow[6] = ::connectivity::ODatabaseMetaDataResultSet::getAlterValue();
				aRows.push_back(aRow);
				aRow[6] = ::connectivity::ODatabaseMetaDataResultSet::getDropValue();
				aRows.push_back(aRow);
=====================================================================
Found a 33 line (156 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/cli_ure/source/climaker/climaker_app.cxx
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/pkgchk/unopkg/unopkg_misc.cxx

bool isOption( OptionInfo const * option_info, sal_uInt32 * pIndex )
{
    OSL_ASSERT( option_info != 0 );
    if (osl_getCommandArgCount() <= *pIndex)
        return false;
    
    OUString arg;
    osl_getCommandArg( *pIndex, &arg.pData );
    sal_Int32 len = arg.getLength();
    
    if (len < 2 || arg[ 0 ] != '-')
        return false;
    
    if (len == 2 && arg[ 1 ] == option_info->m_short_option)
    {
        ++(*pIndex);
#if OSL_DEBUG_LEVEL > 1
        OSL_TRACE(
            __FILE__": identified option \'%c\'", option_info->m_short_option );
#endif
        return true;
    }
    if (arg[ 1 ] == '-' && rtl_ustr_ascii_compare(
            arg.pData->buffer + 2, option_info->m_name ) == 0)
    {
        ++(*pIndex);
#if OSL_DEBUG_LEVEL > 1
        OSL_TRACE( __FILE__": identified option \'%s\'", option_info->m_name );
#endif
        return true;
    }
    return false;
}
=====================================================================
Found a 22 line (156 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
=====================================================================
Found a 28 line (156 tokens) duplication in the following files: 
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

        : "m"(nStackLongs), "m"(pStackLongs), "m"(pAdjustedThisPtr),
          "m"(nVtableIndex), "m"(eax), "m"(edx), "m"(stackptr)
        : "eax", "edx" );
	switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
=====================================================================
Found a 36 line (156 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx

				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
                         pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 22 line (156 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
=====================================================================
Found a 36 line (156 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

			    pCppStack += sizeof(sal_Int32); // extra long
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, 
                                        pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 28 line (156 tokens) duplication in the following files: 
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

        : "m"(nStackLongs), "m"(pStackLongs), "m"(pThis), "m"(nVtableIndex),
          "m"(eax), "m"(edx), "m"(stackptr)
        : "eax", "edx" );
	switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
=====================================================================
Found a 36 line (156 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

			    pCppStack += sizeof(sal_Int32); // extra long
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, 
                                        pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 28 line (156 tokens) duplication in the following files: 
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

        : "m"(nStackLongs), "m"(pStackLongs), "m"(pThis), "m"(nVtableIndex),
          "m"(eax), "m"(edx), "m"(stackptr)
        : "eax", "edx" );
	switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
=====================================================================
Found a 35 line (156 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			    break;
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 22 line (156 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
=====================================================================
Found a 30 line (156 tokens) duplication in the following files: 
Starting at line 1974 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/basmgr/basmgr.cxx
Starting at line 2119 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/basmgr/basmgr.cxx

	DialogContainer_Impl( StarBASIC* pLib )
		:mpLib( pLib ) {}

    // Methods XElementAccess
    virtual Type SAL_CALL getElementType()
		throw(RuntimeException);
    virtual sal_Bool SAL_CALL hasElements()
		throw(RuntimeException);

    // Methods XNameAccess
    virtual Any SAL_CALL getByName( const OUString& aName )
		throw(NoSuchElementException, WrappedTargetException, RuntimeException);
    virtual Sequence< OUString > SAL_CALL getElementNames()
		throw(RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const OUString& aName )
		throw(RuntimeException);

    // Methods XNameReplace
    virtual void SAL_CALL replaceByName( const OUString& aName, const Any& aElement )
		throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException);

    // Methods XNameContainer
    virtual void SAL_CALL insertByName( const OUString& aName, const Any& aElement )
		throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL removeByName( const OUString& Name )
		throw(NoSuchElementException, WrappedTargetException, RuntimeException);
};

// Methods XElementAccess
Type DialogContainer_Impl::getElementType()
=====================================================================
Found a 19 line (155 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlSection.cxx
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlTable.cxx

    DBG_CTOR( rpt_OXMLTable,NULL);
    OSL_ENSURE(_xAttrList.is(),"Attribute list is NULL!");
	const SvXMLNamespaceMap& rMap = rImport.GetNamespaceMap();
	const SvXMLTokenMap& rTokenMap = rImport.GetSectionElemTokenMap();

	const sal_Int16 nLength = (m_xSection.is() && _xAttrList.is()) ? _xAttrList->getLength() : 0;
    static const ::rtl::OUString s_sTRUE = ::xmloff::token::GetXMLToken(XML_TRUE);
    try
	{
	    for(sal_Int16 i = 0; i < nLength; ++i)
	    {
		    rtl::OUString sLocalName;
		    const rtl::OUString sAttrName = _xAttrList->getNameByIndex( i );
		    const sal_uInt16 nPrefix = rMap.GetKeyByAttrName( sAttrName,&sLocalName );
		    rtl::OUString sValue = _xAttrList->getValueByIndex( i );

		    switch( rTokenMap.Get( nPrefix, sLocalName ) )
		    {
                case XML_TOK_VISIBLE:
=====================================================================
Found a 22 line (155 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h

            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            color_type* span = base_type::allocator().span();

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
            int radius_x = (diameter * base_type::m_rx) >> 1;
            int radius_y = (diameter * base_type::m_ry) >> 1;
            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            const int16* weight_array = base_type::filter().weight_array();

            do
            {
                base_type::interpolator().coordinates(&x, &y);

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 16 line (155 tokens) duplication in the following files: 
Starting at line 690 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/cpptypemaker.cxx
Starting at line 610 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/javatypemaker.cxx

void printServiceMembers(std::ostream & o,
    ProgramOptions const & options, TypeManager const & manager,
    typereg::Reader const & reader, OString const & type,
    OString const & delegate)
{
    for ( sal_uInt16 i = 0; i < reader.getReferenceCount(); ++i ) {
        OString referenceType(
            codemaker::convertString(
                reader.getReferenceTypeName(i)).replace('/', '.'));
        
        if ( reader.getReferenceSort(i) == RT_REF_SUPPORTS ) {
            o << "\n// supported interface " << referenceType.getStr() << "\n";
            generateDocumentation(o, options, manager, referenceType, delegate);
        } else if ( reader.getReferenceSort(i) == RT_REF_EXPORTS ) {
            o << "\n// exported service " << referenceType.getStr() << "\n";
            generateDocumentation(o, options, manager, referenceType, delegate);
=====================================================================
Found a 6 line (155 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x70,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,
=====================================================================
Found a 35 line (155 tokens) duplication in the following files: 
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svptext.cxx
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salgdi3.cxx

}

// ===========================================================================

// PspKernInfo allows on-demand-querying of psprint provided kerning info (#i29881#)
class PspKernInfo : public ExtraKernInfo
{
public:
    PspKernInfo( int nFontId ) : ExtraKernInfo(nFontId) {}
protected:
    virtual void Initialize() const;
};

//--------------------------------------------------------------------------

void PspKernInfo::Initialize() const
{
    mbInitialized = true;

    // get the kerning pairs from psprint
    const psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
    typedef std::list< psp::KernPair > PspKernPairs;
    const PspKernPairs& rKernPairs = rMgr.getKernPairs( mnFontId );
    if( rKernPairs.empty() )
        return;

    // feed psprint's kerning list into a lookup-friendly container
    maUnicodeKernPairs.resize( rKernPairs.size() );
    PspKernPairs::const_iterator it = rKernPairs.begin();
    for(; it != rKernPairs.end(); ++it )
    {
        ImplKernPairData aKernPair = { it->first, it->second, it->kern_x };
        maUnicodeKernPairs.insert( aKernPair );
    }
}
=====================================================================
Found a 22 line (155 tokens) duplication in the following files: 
Starting at line 7036 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 7168 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

        m_aTransparentObjects.back().m_nExtGStateObject = createObject();

        OStringBuffer aObjName( 16 );
        aObjName.append( "Tr" );
        aObjName.append( m_aTransparentObjects.back().m_nObject );
        OString aTrName( aObjName.makeStringAndClear() );
        aObjName.append( "EGS" );
        aObjName.append( m_aTransparentObjects.back().m_nExtGStateObject );
        OString aExtName( aObjName.makeStringAndClear() );

        OStringBuffer aLine( 80 );
        // insert XObject
        aLine.append( "q /" );
        aLine.append( aExtName );
        aLine.append( " gs /" );
        aLine.append( aTrName );
        aLine.append( " Do Q\n" );
        writeBuffer( aLine.getStr(), aLine.getLength() );
        
        pushResource( ResXObject, aTrName, m_aTransparentObjects.back().m_nObject );
        pushResource( ResExtGState, aExtName, m_aTransparentObjects.back().m_nExtGStateObject );
    }
=====================================================================
Found a 29 line (155 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static beans::Property aPropertyInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory properties
		///////////////////////////////////////////////////////////////
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND
		)
=====================================================================
Found a 32 line (155 tokens) duplication in the following files: 
Starting at line 1122 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx
Starting at line 1279 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx

        rView.SfxViewShell::Print( rProgress, bIsAPI ); // ggf Basic-Macro ausfuehren
        if( rOpt.IsPrintSingleJobs() && bRet )
        {
            //rOpt.bJobStartet = FALSE;
            bRet = FALSE;
        }

        bMergeLock = TRUE;
        if(rOpt.IsPrintProspect())
        {
            if( pPrt->IsJobActive() || pPrt->StartJob( rOpt.GetJobName() ))
            {
                pSh->PrintProspect( rOpt, rProgress,  rOpt.IsPrintProspect_RTL() );
                bRet = TRUE;
            }
        }
        else if( pSh->Prt( rOpt, &rProgress ) )
            bRet = TRUE;
        bMergeLock = FALSE;

        if( !pPrt->IsJobActive() )
        {
            bUserBreak = TRUE;
            bRet = FALSE;
            break;
        }
        if( !rOpt.IsPrintSingleJobs() )
        {
            String& rJNm = (String&)rOpt.GetJobName();
            rJNm.Erase();
        }
    }
=====================================================================
Found a 24 line (155 tokens) duplication in the following files: 
Starting at line 760 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/fntcap.cxx
Starting at line 800 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/fntcap.cxx

                    if( bCaseMapLengthDiffers )
                    {
                        // Build an own 'changed' string for the given part of the
                        // source string and use it. That new string may differ in length
                        // from the source string.
                        const XubString aSnippet( rOldText, nOldPos, nTmp - nOldPos);
                        aNewText = CalcCaseMap( aSnippet );
                        aCapInf.nIdx = nOldPos;
                        aCapInf.nLen = nTmp - nOldPos;
                        rDo.GetInf().SetIdx( 0 );
                        rDo.GetInf().SetLen( aNewText.Len() );
                        rDo.GetInf().SetText( aNewText );
                    }
                    else
                    {
                        rDo.GetInf().SetIdx( nOldPos );
                        rDo.GetInf().SetLen( nTmp - nOldPos );
                    }

					rDo.GetInf().SetOut( *pOutSize );
					aPartSize = pBigFont->GetTextSize( rDo.GetInf() );
					nKana += rDo.GetInf().GetKanaDiff();
					rDo.GetInf().SetOut( *pOldOut );
					if( !bWordWise && rDo.GetInf().GetSpace() )
=====================================================================
Found a 35 line (155 tokens) duplication in the following files: 
Starting at line 3724 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3498 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx

	SfxMapUnit eMapUnit = pModel->GetItemPool().GetMetric(0);
	if(eMapUnit != SFX_MAPUNIT_100TH_MM)
	{
		switch(eMapUnit)
		{
			case SFX_MAPUNIT_TWIP :
			{
				// position
				aTranslate.setX(ImplMMToTwips(aTranslate.getX()));
				aTranslate.setY(ImplMMToTwips(aTranslate.getY()));

				// size
				aScale.setX(ImplMMToTwips(aScale.getX()));
				aScale.setY(ImplMMToTwips(aScale.getY()));

				break;
			}
			default:
			{
				DBG_ERROR("TRSetBaseGeometry: Missing unit translation to PoolMetric!");
			}
		}
	}

	// if anchor is used, make position relative to it
	if( pModel->IsWriter() )
	{
		if(GetAnchorPos().X() || GetAnchorPos().Y())
		{
			aTranslate += basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
		}
	}

	// build BaseRect
	Point aPoint(FRound(aTranslate.getX()), FRound(aTranslate.getY()));
=====================================================================
Found a 29 line (155 tokens) duplication in the following files: 
Starting at line 626 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx
Starting at line 729 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx

		if ( !pOld || !( *(const XLineEndCenterItem*)pOld == aItem ) )
		{
			rAttrs.Put( aItem );
			bModified = TRUE;
		}
	}

	//Breite Linienanfang
	if( aMtrStartWidth.GetText() != aMtrStartWidth.GetSavedValue() )
	{
		XLineStartWidthItem aItem( GetCoreValue( aMtrStartWidth, ePoolUnit ) );
		pOld = GetOldItem( rAttrs, XATTR_LINESTARTWIDTH );
		if ( !pOld || !( *(const XLineStartWidthItem*)pOld == aItem ) )
		{
			rAttrs.Put( aItem );
			bModified = TRUE;
		}
	}
	//Breite Linienende
	if( aMtrEndWidth.GetText() != aMtrEndWidth.GetSavedValue() )
	{
		XLineEndWidthItem aItem( GetCoreValue( aMtrEndWidth, ePoolUnit ) );
		pOld = GetOldItem( rAttrs, XATTR_LINEENDWIDTH );
		if ( !pOld || !( *(const XLineEndWidthItem*)pOld == aItem ) )
		{
			rAttrs.Put( aItem );
			bModified = TRUE;
		}
	}
=====================================================================
Found a 30 line (155 tokens) duplication in the following files: 
Starting at line 1713 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx
Starting at line 2126 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx

        if (m_bColumn)
        {
            for (SCCOL nCol = p->aStart.Col(); nCol <= p->aEnd.Col(); ++nCol)
            {
			    String aString = ScGlobal::GetRscString(STR_COLUMN);
			    aString += ' ';
                ScAddress aPos( nCol, 0, 0 );
                String aColStr;
                aPos.Format( aColStr, SCA_VALID_COL, NULL );
                aString += aColStr;
                pArr[nCount] = aString;
                ++nCount;
            }
        }
        else
        {
            for (sal_Int32 nRow = p->aStart.Row(); nRow <= p->aEnd.Row(); ++nRow)
            {
			    String aString = ScGlobal::GetRscString(STR_ROW);
			    aString += ' ';
			    aString += String::CreateFromInt32( nRow+1 );
                pArr[nCount] = aString;
                ++nCount;
            }
        }
    }
    return aSeq;
}

::rtl::OUString SAL_CALL ScChart2EmptyDataSequence::getSourceRangeRepresentation()
=====================================================================
Found a 29 line (155 tokens) duplication in the following files: 
Starting at line 546 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fupoor.cxx
Starting at line 1225 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fupoor.cxx

}

/*************************************************************************
|*
|* #97016#
|*
\************************************************************************/

SdrObject* FuPoor::CreateDefaultObject(const sal_uInt16, const Rectangle& )
{
	// empty base implementation
	return 0L;
}

void FuPoor::ImpForceQuadratic(Rectangle& rRect)
{
	if(rRect.GetWidth() > rRect.GetHeight())
	{
		rRect = Rectangle(
			Point(rRect.Left() + ((rRect.GetWidth() - rRect.GetHeight()) / 2), rRect.Top()), 
			Size(rRect.GetHeight(), rRect.GetHeight()));
	}
	else
	{
		rRect = Rectangle(
			Point(rRect.Left(), rRect.Top() + ((rRect.GetHeight() - rRect.GetWidth()) / 2)), 
			Size(rRect.GetWidth(), rRect.GetWidth()));
	}
}
=====================================================================
Found a 25 line (155 tokens) duplication in the following files: 
Starting at line 1265 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1300 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

ScMatrixRef ScInterpreter::MatSub(ScMatrix* pMat1, ScMatrix* pMat2)
{
	SCSIZE nC1, nC2, nMinC;
	SCSIZE nR1, nR2, nMinR;
	SCSIZE i, j;
	pMat1->GetDimensions(nC1, nR1);
	pMat2->GetDimensions(nC2, nR2);
	if (nC1 < nC2)
		nMinC = nC1;
	else
		nMinC = nC2;
	if (nR1 < nR2)
		nMinR = nR1;
	else
		nMinR = nR2;
	ScMatrixRef xResMat = GetNewMat(nMinC, nMinR);
	if (xResMat)
	{
        ScMatrix* pResMat = xResMat;
		for (i = 0; i < nMinC; i++)
		{
			for (j = 0; j < nMinR; j++)
			{
				if (pMat1->IsValueOrEmpty(i,j) && pMat2->IsValueOrEmpty(i,j))
					pResMat->PutDouble( ::rtl::math::approxSub( pMat1->GetDouble(i,j),
=====================================================================
Found a 30 line (155 tokens) duplication in the following files: 
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/cell2.cxx
Starting at line 1391 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/cell2.cxx

                        bRecompile = TRUE;  // RangeName
            }
        }
        if ( bRecompile )
        {
            String aFormula;
            GetFormula( aFormula, ScAddress::CONV_OOO);
            if ( GetMatrixFlag() != MM_NONE && aFormula.Len() )
            {
                if ( aFormula.GetChar( aFormula.Len()-1 ) == '}' )
                    aFormula.Erase( aFormula.Len()-1 , 1 );
                if ( aFormula.GetChar(0) == '{' )
                    aFormula.Erase( 0, 1 );
            }
            EndListeningTo( pDocument );
            pDocument->RemoveFromFormulaTree( this );
            pCode->Clear();
            aErgString = aFormula;
			nErgConv = ScAddress::CONV_OOO;
        }
    }
    else if ( !pCode->GetLen() && aErgString.Len() )
    {
        Compile( aErgString );
        aErgString.Erase();
        SetDirty();
    }
}

void ScFormulaCell::CompileColRowNameFormula()
=====================================================================
Found a 8 line (155 tokens) duplication in the following files: 
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

     41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0,  0,  0,  0,  0, // 112-127
//    p   q   r   s   t   u   v   w   x   y   z

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
=====================================================================
Found a 27 line (155 tokens) duplication in the following files: 
Starting at line 1048 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx
Starting at line 1042 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/menu/virtmenu.cxx

			int	nItemCount		 = pMenu->GetItemCount();

			if ( nItemCount > 0 )
			{
				// remove all old window list entries from menu
				sal_uInt16 nPos = pMenu->GetItemPos( START_ITEMID_WINDOWLIST );
            	for ( sal_uInt16 n = nPos; n < pMenu->GetItemCount(); )
                	pMenu->RemoveItem( n );

				if ( pMenu->GetItemType( pMenu->GetItemCount()-1 ) == MENUITEM_SEPARATOR )
                	pMenu->RemoveItem( pMenu->GetItemCount()-1 );
			}

			if ( aNewWindowListVector.size() > 0 )
			{
				// append new window list entries to menu
				pMenu->InsertSeparator();
				nItemId = START_ITEMID_WINDOWLIST;
				for ( sal_uInt32 i = 0; i < aNewWindowListVector.size(); i++ )
				{
					pMenu->InsertItem( nItemId, aNewWindowListVector.at( i ), MIB_RADIOCHECK );
					if ( nItemId == nActiveItemId )
						pMenu->CheckItem( nItemId );
					++nItemId;
				}
			}
        }
=====================================================================
Found a 30 line (155 tokens) duplication in the following files: 
Starting at line 602 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 900 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

void SAL_CALL ModuleImageManager::reset()
throw (::com::sun::star::uno::RuntimeException)
{
    ResetableGuard aLock( m_aLock );

    /* SAFE AREA ----------------------------------------------------------------------------------------------- */
    if ( m_bDisposed )
        throw DisposedException();

    std::vector< OUString > aUserImageNames;

    for ( sal_Int32 i = 0; i < ImageType_COUNT; i++ )
    {
        aUserImageNames.clear();
        ImageList* pImageList = implts_getUserImageList( ImageType(i));
        pImageList->GetImageNames( aUserImageNames );

        Sequence< rtl::OUString > aRemoveList( aUserImageNames.size() );
        for ( sal_uInt32 j = 0; j < aUserImageNames.size(); j++ )
            aRemoveList[j] = aUserImageNames[j];

        // Remove images
        removeImages( sal_Int16( i ), aRemoveList );
        m_bUserImageListModified[i] = true;
    }

    m_bModified = sal_True;
}

Sequence< ::rtl::OUString > SAL_CALL ModuleImageManager::getAllImageNames( ::sal_Int16 nImageType )
=====================================================================
Found a 22 line (155 tokens) duplication in the following files: 
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 601 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx

		OUString aLabel;

		// read attributes for menu item
		for ( int i=0; i< xAttrList->getLength(); i++ )
		{
			OUString aName = xAttrList->getNameByIndex( i );
			OUString aValue = xAttrList->getValueByIndex( i );
			if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_ID )))
				aCommandId = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_LABEL )))
				aLabel = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_HELPID )))
				nHelpId = aValue.toInt32();
		}

		if ( aCommandId.getLength() > 0 )
		{
            USHORT nItemId;
            if ( aCommandId.compareTo( aSlotProtocol, aSlotProtocol.getLength() ) == 0 )
                nItemId = (USHORT) aCommandId.copy( aSlotProtocol.getLength() ).toInt32();
            else
                nItemId = ++(*m_pItemId);
=====================================================================
Found a 27 line (155 tokens) duplication in the following files: 
Starting at line 1149 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 1042 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/menu/virtmenu.cxx

			int	nItemCount		 = pMenu->GetItemCount();

			if ( nItemCount > 0 )
			{
				// remove all old window list entries from menu
				sal_uInt16 nPos = pMenu->GetItemPos( START_ITEMID_WINDOWLIST );
            	for ( sal_uInt16 n = nPos; n < pMenu->GetItemCount(); )
                	pMenu->RemoveItem( n );

				if ( pMenu->GetItemType( pMenu->GetItemCount()-1 ) == MENUITEM_SEPARATOR )
                	pMenu->RemoveItem( pMenu->GetItemCount()-1 );
			}

			if ( aNewWindowListVector.size() > 0 )
			{
				// append new window list entries to menu
				pMenu->InsertSeparator();
				nItemId = START_ITEMID_WINDOWLIST;
				for ( sal_uInt32 i = 0; i < aNewWindowListVector.size(); i++ )
				{
					pMenu->InsertItem( nItemId, aNewWindowListVector.at( i ), MIB_RADIOCHECK );
					if ( nItemId == nActiveItemId )
						pMenu->CheckItem( nItemId );
					++nItemId;
				}
			}
        }
=====================================================================
Found a 37 line (155 tokens) duplication in the following files: 
Starting at line 505 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

                                              break;          
						}
					}
				}

				// Check required attribute "command"
				if ( pItem->aCommandURL.Len() == 0 )
				{
					delete pItem;
					delete m_pImages;
					delete m_pExternalImages;
					m_pImages = NULL;
					m_pExternalImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Required attribute 'image:command' must have a value!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				// Check required attribute "href"
				if ( pItem->aURL.Len() == 0 )
				{
					delete pItem;
					delete m_pImages;
					delete m_pExternalImages;
					m_pImages = NULL;
					m_pExternalImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Required attribute 'xlink:href' must have a value!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				if ( m_pExternalImages )
					m_pExternalImages->Insert( pItem, m_pExternalImages->Count() );
			}
			break;
=====================================================================
Found a 5 line (155 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fab0 - fabf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fac0 - facf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fad0 - fadf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fae0 - faef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// faf0 - faff
=====================================================================
Found a 26 line (155 tokens) duplication in the following files: 
Starting at line 471 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/dbadmin.cxx
Starting at line 498 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/dbadmin.cxx

		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
		{0,0},
        {0,0},
        {0,0},
        {0,0},
        {0,0}
=====================================================================
Found a 25 line (155 tokens) duplication in the following files: 
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/query.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/querydescriptor.cxx

void OQueryDescriptor::registerProperties()
{
	// the properties which OCommandBase supplies (it has no own registration, as it's not derived from
	// a OPropertyStateContainer)
	registerProperty(PROPERTY_NAME, PROPERTY_ID_NAME, PropertyAttribute::BOUND|PropertyAttribute::CONSTRAINED,
					&m_sElementName, ::getCppuType(&m_sElementName));

	registerProperty(PROPERTY_COMMAND, PROPERTY_ID_COMMAND, PropertyAttribute::BOUND,
					&m_sCommand, ::getCppuType(&m_sCommand));

	registerProperty(PROPERTY_USE_ESCAPE_PROCESSING, PROPERTY_ID_USE_ESCAPE_PROCESSING, PropertyAttribute::BOUND,
					&m_bEscapeProcessing, ::getBooleanCppuType());

	registerProperty(PROPERTY_UPDATE_TABLENAME, PROPERTY_ID_UPDATE_TABLENAME, PropertyAttribute::BOUND,
					&m_sUpdateTableName, ::getCppuType(&m_sUpdateTableName));

	registerProperty(PROPERTY_UPDATE_SCHEMANAME, PROPERTY_ID_UPDATE_SCHEMANAME, PropertyAttribute::BOUND,
					&m_sUpdateSchemaName, ::getCppuType(&m_sUpdateSchemaName));

	registerProperty(PROPERTY_UPDATE_CATALOGNAME, PROPERTY_ID_UPDATE_CATALOGNAME, PropertyAttribute::BOUND,
					&m_sUpdateCatalogName, ::getCppuType(&m_sUpdateCatalogName));

	registerProperty(PROPERTY_LAYOUTINFORMATION, PROPERTY_ID_LAYOUTINFORMATION, PropertyAttribute::BOUND,
					&m_aLayoutInformation, ::getCppuType(&m_aLayoutInformation));
}
=====================================================================
Found a 22 line (155 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDriver.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDriver.cxx

				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".*"))
				,Sequence< ::rtl::OUString >())
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ShowDeleted"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Display inactive records."))
				,sal_False
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("0"))
				,aBoolean)
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("EnableSQL92Check"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Use SQL92 naming constraints."))
				,sal_False
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("0"))
				,aBoolean)
				);
		return Sequence< DriverPropertyInfo >(&(aDriverInfo[0]),aDriverInfo.size());
	}
	::dbtools::throwGenericSQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid URL!")) ,*this);
	return Sequence< DriverPropertyInfo >();
}
=====================================================================
Found a 29 line (155 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/streaming/oslfile2streamwrap.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/misc/oslstream.cxx

	if (nRead < (sal_uInt64)nBytesToRead)
		aData.realloc( sal::static_int_cast<sal_Int32>( nRead ));

	return sal::static_int_cast<sal_Int32>( nRead );
}

//------------------------------------------------------------------------------
sal_Int32 SAL_CALL OSLInputStreamWrapper::readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	if (!m_pFile)
		throw stario::NotConnectedException(::rtl::OUString(), static_cast<staruno::XWeak*>(this));

	if (nMaxBytesToRead < 0)
		throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));

	/*
	  if (m_pFile->IsEof())
	  {
	  aData.realloc(0);
	  return 0;
	  }
	  else
	*/
	return readBytes(aData, nMaxBytesToRead);
}

//------------------------------------------------------------------------------
void SAL_CALL OSLInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
=====================================================================
Found a 34 line (155 tokens) duplication in the following files: 
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

OString CunoType::dumpHeaderDefine(FileStream& o, sal_Char* prefix, sal_Bool bExtended)
{
	if (m_typeName.equals("/"))
	{
		bExtended = sal_False;
		m_typeName = "global";
	}

	sal_uInt32 length = 3 + m_typeName.getLength() + strlen(prefix);

	if (bExtended)
		length += m_name.getLength() + 1;

	OStringBuffer tmpBuf(length);

	tmpBuf.append('_');
	tmpBuf.append(m_typeName);
	tmpBuf.append('_');
	if (bExtended)
	{
		tmpBuf.append(m_name);
		tmpBuf.append('_');
	}
	tmpBuf.append(prefix);
	tmpBuf.append('_');

	OString tmp(tmpBuf.makeStringAndClear().replace('/', '_').toAsciiUpperCase());

	o << "#ifndef " << tmp << "\n#define " << tmp << "\n";

	return tmp;
}

void CunoType::dumpDefaultHIncludes(FileStream& o)
=====================================================================
Found a 36 line (154 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_boolean_algebra.h
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_boolean_algebra.h

    {
        enum
        {
            cover_shift = CoverShift,
            cover_size  = 1 << cover_shift,
            cover_mask  = cover_size - 1,
            cover_full  = cover_mask
        };
        

        void operator () (const typename Scanline1::const_iterator& span1, 
                          const typename Scanline2::const_iterator& span2, 
                          int x, unsigned len, 
                          Scanline& sl) const
        {
            unsigned cover;
            const typename Scanline1::cover_type* covers1;
            const typename Scanline2::cover_type* covers2;

            // Calculate the operation code and choose the 
            // proper combination algorithm.
            // 0 = Both spans are of AA type
            // 1 = span1 is solid, span2 is AA
            // 2 = span1 is AA, span2 is solid
            // 3 = Both spans are of solid type
            //-----------------
            switch((span1->len < 0) | ((span2->len < 0) << 1))
            {
            case 0:      // Both are AA spans
                covers1 = span1->covers;
                covers2 = span2->covers;
                if(span1->x < x) covers1 += x - span1->x;
                if(span2->x < x) covers2 += x - span2->x;
                do
                {
                    cover = *covers1++ * (cover_mask - *covers2++);
=====================================================================
Found a 8 line (154 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawarc_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawellipse_mask.h

static char drawellipse_mask_bits[] = {
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0x3f, 0x7e, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x3f, 0x7e, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0xff, 0x00,
   0x00, 0x80, 0xe7, 0x01, 0x00, 0x80, 0xc3, 0x01, 0x00, 0x80, 0xc3, 0x01,
=====================================================================
Found a 6 line (154 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x0e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x10,0x1f,
=====================================================================
Found a 6 line (154 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x70,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,
=====================================================================
Found a 32 line (154 tokens) duplication in the following files: 
Starting at line 9730 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 9765 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

                    eVal == PDFWriter::LineThrough )
                {
                    // only for ILSE and BLSE
                    if( eType == PDFWriter::Paragraph	||
                        eType == PDFWriter::Heading		||
                        eType == PDFWriter::H1			||
                        eType == PDFWriter::H2			||
                        eType == PDFWriter::H3			||
                        eType == PDFWriter::H4			||
                        eType == PDFWriter::H5			||
                        eType == PDFWriter::H6			||
                        eType == PDFWriter::List		||
                        eType == PDFWriter::ListItem	||
                        eType == PDFWriter::LILabel		||
                        eType == PDFWriter::LIBody		||
                        eType == PDFWriter::Table		||
                        eType == PDFWriter::TableRow	||
                        eType == PDFWriter::TableHeader	||
                        eType == PDFWriter::TableData	||
                        eType == PDFWriter::Span		||
                        eType == PDFWriter::Quote		||
                        eType == PDFWriter::Note		||
                        eType == PDFWriter::Reference	||
                        eType == PDFWriter::BibEntry	||
                        eType == PDFWriter::Code		||
                        eType == PDFWriter::Link )
                    {
                        bInsert = true;
                    }
                }
                break;
            case PDFWriter::ListNumbering:
=====================================================================
Found a 28 line (154 tokens) duplication in the following files: 
Starting at line 1309 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx
Starting at line 493 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

    return rtl::OUString();
}

//=========================================================================
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
            const uno::Reference< lang::XMultiServiceFactory >& rSMgr,
            const uno::Sequence< beans::Property >& rProperties,
            const ContentProperties& rData,
            const rtl::Reference< 
                ::ucbhelper::ContentProviderImplHelper >& rProvider,
            const rtl::OUString& rContentId )
{
	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
        = new ::ucbhelper::PropertyValueSet( rSMgr );

	sal_Int32 nCount = rProperties.getLength();
	if ( nCount )
	{
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
		sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
		for ( sal_Int32 n = 0; n < nCount; ++n )
		{
            const beans::Property& rProp = pProps[ n ];
=====================================================================
Found a 42 line (154 tokens) duplication in the following files: 
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const ucb::CommandInfo aStreamCommandInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                -1,
                getCppuVoidType()
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast< uno::Sequence< beans::Property > * >( 0 ) )
            ),
            ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                -1,
                getCppuType(
                    static_cast<
                        uno::Sequence< beans::PropertyValue > * >( 0 ) )
            ),
            ///////////////////////////////////////////////////////////
            // Optional standard commands
            ///////////////////////////////////////////////////////////
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                -1,
                getCppuBooleanType()
            ),
            ucb::CommandInfo(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
=====================================================================
Found a 33 line (154 tokens) duplication in the following files: 
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

        static const beans::Property aDocPropertyInfoTable[] =
        {
            ///////////////////////////////////////////////////////////
            // Mandatory properties
            ///////////////////////////////////////////////////////////
            beans::Property(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                -1,
                getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                -1,
                getCppuBooleanType(),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY
            ),
            beans::Property(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
=====================================================================
Found a 42 line (154 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

            static const ucb::CommandInfo aStreamCommandInfoTable1[] =
            {
                ///////////////////////////////////////////////////////////
                // Mandatory commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                    -1,
                    getCppuBooleanType()
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
=====================================================================
Found a 33 line (154 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_contentcaps.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

            static const beans::Property aRootFolderPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
=====================================================================
Found a 42 line (154 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

            static const ucb::CommandInfo aStreamCommandInfoTable1[] =
            {
                ///////////////////////////////////////////////////////////
                // Mandatory commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                    -1,
                    getCppuBooleanType()
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
=====================================================================
Found a 28 line (154 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static beans::Property aPropertyInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory properties
		///////////////////////////////////////////////////////////////
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
			-1,
			getCppuBooleanType(),
            beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY
		),
        beans::Property(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
			-1,
            getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
            beans::PropertyAttribute::BOUND
=====================================================================
Found a 42 line (154 tokens) duplication in the following files: 
Starting at line 1424 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx

            static const ucb::CommandInfo aStreamCommandInfoTable1[] =
            {
                ///////////////////////////////////////////////////////////
                // Mandatory commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
                    -1,
                    getCppuBooleanType()
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
=====================================================================
Found a 33 line (154 tokens) duplication in the following files: 
Starting at line 1374 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static beans::Property aLinkPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
=====================================================================
Found a 57 line (154 tokens) duplication in the following files: 
Starting at line 243 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpresultsetbase.cxx
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx

	if( sal::static_int_cast<sal_uInt32>( m_nRow ) ==  m_aItems.size() - 1 )
		return true;
	else
		return false;
}


void SAL_CALL
ResultSetBase::beforeFirst(
	void  )
	throw( sdbc::SQLException,
		   uno::RuntimeException)
{
	m_nRow = -1;
}


void SAL_CALL
ResultSetBase::afterLast(
	void  )
	throw( sdbc::SQLException,
		   uno::RuntimeException )
{
	m_nRow = m_aItems.size();
}


sal_Bool SAL_CALL
ResultSetBase::first(
	void  )
	throw( sdbc::SQLException,
		   uno::RuntimeException)
{
	m_nRow = -1;
	return next();
}


sal_Bool SAL_CALL
ResultSetBase::last(
	void  )
	throw( sdbc::SQLException,
		   uno::RuntimeException )
{
	m_nRow = m_aItems.size() - 1;
	return true;
}


sal_Int32 SAL_CALL
ResultSetBase::getRow(
	void )
	throw( sdbc::SQLException,
		   uno::RuntimeException)
{
	// Test, whether behind last row
	if( -1 == m_nRow || sal::static_int_cast<sal_uInt32>( m_nRow ) >= m_aItems.size() )
=====================================================================
Found a 33 line (154 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static beans::Property aLinkPropertyInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required properties
                ///////////////////////////////////////////////////////////
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
                    -1,
                    getCppuBooleanType(),
                    beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY
                ),
                beans::Property(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
                    -1,
                    getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                    beans::PropertyAttribute::BOUND
=====================================================================
Found a 17 line (154 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/convert.cxx
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/instable.cxx

    aFL             		(this, SW_RES(FL_TABLE)),
	aHeaderCB				(this, SW_RES(CB_HEADER)),
	aRepeatHeaderCB			(this, SW_RES(CB_REPEAT_HEADER)),
	aRepeatHeaderFT			(this, SW_RES(FT_REPEAT_HEADER)),
	aRepeatHeaderBeforeFT	(this),
	aRepeatHeaderNF			(this, SW_RES(NF_REPEAT_HEADER)),
	aRepeatHeaderAfterFT	(this),
	aRepeatHeaderCombo		(this, SW_RES(WIN_REPEAT_HEADER), aRepeatHeaderNF, aRepeatHeaderBeforeFT, aRepeatHeaderAfterFT),
	aDontSplitCB			(this, SW_RES(CB_DONT_SPLIT)),
	aBorderCB				(this, SW_RES(CB_BORDER)),
    aOptionsFL      		(this, SW_RES(FL_OPTIONS)),
	aOkBtn					(this, SW_RES(BT_OK)),
	aCancelBtn				(this, SW_RES(BT_CANCEL)),
	aHelpBtn				(this, SW_RES(BT_HELP)),
	aAutoFmtBtn				(this, SW_RES(BT_AUTOFORMAT)),
	pTAutoFmt( 0 ),
	pShell(&rView.GetWrtShell()),
=====================================================================
Found a 21 line (154 tokens) duplication in the following files: 
Starting at line 1145 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/pormulti.cxx
Starting at line 1218 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/pormulti.cxx

			p2Lines = NULL;
			if( lcl_Has2Lines( *pTmp, p2Lines, bTwo ) )
			{
				if( bTwo == bOn )
				{
					if( aEnd[ aEnd.Count()-1 ] < *pTmp->GetEnd() )
						aEnd[ aEnd.Count()-1 ] = *pTmp->GetEnd();
				}
				else
				{
					bOn = bTwo;
					if( aEnd[ aEnd.Count()-1 ] > *pTmp->GetEnd() )
						aEnd.Insert( *pTmp->GetEnd(), aEnd.Count() );
					else if( aEnd.Count() > 1 )
						aEnd.Remove( aEnd.Count()-1, 1 );
					else
						aEnd[ aEnd.Count()-1 ] = *pTmp->GetEnd();
				}
			}
		}
		if( !bOn && aEnd.Count() )
=====================================================================
Found a 28 line (154 tokens) duplication in the following files: 
Starting at line 2941 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 2092 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

			aNewSet.Put(SdrTextAutoGrowHeightItem(bAutoGrowWidth));

			// #103516# Exchange horz and vert adjusts
			switch(eVert)
			{
				case SDRTEXTVERTADJUST_TOP: aNewSet.Put(SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_RIGHT)); break;
				case SDRTEXTVERTADJUST_CENTER: aNewSet.Put(SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_CENTER)); break;
				case SDRTEXTVERTADJUST_BOTTOM: aNewSet.Put(SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_LEFT)); break;
				case SDRTEXTVERTADJUST_BLOCK: aNewSet.Put(SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_BLOCK)); break;
			}
			switch(eHorz)
			{
				case SDRTEXTHORZADJUST_LEFT: aNewSet.Put(SdrTextVertAdjustItem(SDRTEXTVERTADJUST_BOTTOM)); break;
				case SDRTEXTHORZADJUST_CENTER: aNewSet.Put(SdrTextVertAdjustItem(SDRTEXTVERTADJUST_CENTER)); break;
				case SDRTEXTHORZADJUST_RIGHT: aNewSet.Put(SdrTextVertAdjustItem(SDRTEXTVERTADJUST_TOP)); break;
				case SDRTEXTHORZADJUST_BLOCK: aNewSet.Put(SdrTextVertAdjustItem(SDRTEXTVERTADJUST_BLOCK)); break;
			}

			SetObjectItemSet(aNewSet);

			// set ParaObject orientation accordingly
			pOutlinerParaObject->SetVertical(bVertical);

			// restore object size
			SetSnapRect(aObjectRect);
		}
	}
}
=====================================================================
Found a 20 line (154 tokens) duplication in the following files: 
Starting at line 5643 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 5877 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

        0x6C, 0x6C, 0x42, 0x61, 0x72, 0x2E, 0x31, 0x00,
        0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    };

    {
        SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
        xStor->Write(aCompObj,sizeof(aCompObj));
        DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
    }

    {
        SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
        xStor3->Write(aObjInfo,sizeof(aObjInfo));
        DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
    }

    static sal_uInt8 __READONLY_DATA aOCXNAME[] =
    {
        0x53, 0x00, 0x63, 0x00, 0x72, 0x00, 0x6F, 0x00,
=====================================================================
Found a 31 line (154 tokens) duplication in the following files: 
Starting at line 3990 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4175 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		*pS >> nBorderColor;
	}

    if (pBlockFlags[2] & 0x10)
	{
        ReadAlign(pS, pS->Tell() - nStart, 2);
        sal_uInt16 nNoIdea;
        *pS >> nNoIdea;
        DBG_ASSERT(nNoIdea == 0xFFFF, "Expected 0xFFFF, (related to font ?)");
	}

    if (pBlockFlags[2] & 0x20)
	{
        ReadAlign(pS, pS->Tell() - nStart, 2);
        *pS >> nPicture;
        DBG_ASSERT(nPicture == 0xFFFF, "Unexpected nIcon");
	}

    if (pBlockFlags[2] & 0x80)
        *pS >> nPictureAlignment;

    if (pBlockFlags[3] & 0x01)
        bPictureTiling = true;

    if (pBlockFlags[3] & 0x02)
        *pS >> nPictureSizeMode;

    if (pBlockFlags[3] & 0x04)
    {
        ReadAlign(pS, pS->Tell() - nStart, 4);
        *pS >> nChildrenB;
=====================================================================
Found a 19 line (154 tokens) duplication in the following files: 
Starting at line 3016 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4395 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x4C, 0x61, 0x62, 0x65, 0x6C, 0x2E, 0x31, 0x00,
		0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
		0x4C, 0x00, 0x61, 0x00, 0x62, 0x00, 0x65, 0x00,
=====================================================================
Found a 19 line (154 tokens) duplication in the following files: 
Starting at line 2171 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2419 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

            0x74, 0x6F, 0x6E, 0x2E, 0x31, 0x00, 0xF4, 0x39,
            0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00
        };

    {
    SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
    xStor->Write(aCompObj,sizeof(aCompObj));
    DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
    }

    {
    SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
    xStor3->Write(aObjInfo,sizeof(aObjInfo));
    DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
    }

    static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
        0x54, 0x00, 0x6F, 0x00, 0x67, 0x00, 0x67, 0x00,
=====================================================================
Found a 22 line (154 tokens) duplication in the following files: 
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 1181 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx

void  SvxBitmapPickTabPage::Reset( const SfxItemSet& rSet )
{
	const SfxPoolItem* pItem;
	//im Draw gibt es das Item als WhichId, im Writer nur als SlotId
	SfxItemState eState = rSet.GetItemState(SID_ATTR_NUMBERING_RULE, FALSE, &pItem);
	if(eState != SFX_ITEM_SET)
	{
		nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE);
		eState = rSet.GetItemState(nNumItemId, FALSE, &pItem);
	}
	DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!")
	delete pSaveNum;
	pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule());

//	nActNumLvl = ((SwNumBulletTabDialog*)GetTabDialog())->GetActNumLevel();

	if(SFX_ITEM_SET == rSet.GetItemState(SID_PARAM_CHILD_LEVELS, FALSE, &pItem))
		bHasChild = ((const SfxBoolItem*)pItem)->GetValue();
	if(!pActNum)
		pActNum = new  SvxNumRule(*pSaveNum);
	else if(*pSaveNum != *pActNum)
		*pActNum = *pSaveNum;
=====================================================================
Found a 22 line (154 tokens) duplication in the following files: 
Starting at line 824 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 498 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx

		bRet = check( equals( aData, aRet ) && equals( aData, aRet2 ) && equals( aData, aGVret ), "getValues test" ) && bRet;

		// set last retrieved values
		xLBT->setBool( aRet.Bool );
		xLBT->setChar( aRet.Char );
		xLBT->setByte( aRet.Byte );
		xLBT->setShort( aRet.Short );
		xLBT->setUShort( aRet.UShort );
        xLBT->setLong( aRet.Long );
		xLBT->setULong( aRet.ULong );
		xLBT->setHyper( aRet.Hyper );
		xLBT->setUHyper( aRet.UHyper );
		xLBT->setFloat( aRet.Float );
		xLBT->setDouble( aRet.Double );
		xLBT->setEnum( aRet.Enum );
		xLBT->setString( aRet.String );
		xLBT->setInterface( aRet.Interface );
		xLBT->setAny( aRet.Any );
		xLBT->setSequence( aRet.Sequence );
		xLBT->setStruct( aRet2 );
		}
		{
=====================================================================
Found a 11 line (154 tokens) duplication in the following files: 
Starting at line 1258 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unomodel.cxx
Starting at line 651 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unomod.cxx

	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.TitleTextShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.OutlinerShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.SubtitleShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.GraphicObjectShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.ChartShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.PageShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.OLE2Shape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.TableShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.OrgChartShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.NotesShape"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.HandoutShape"));
=====================================================================
Found a 36 line (154 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/sddetect.cxx

                            aTypeName = SfxFilter::GetTypeFromStorage( xStorage, pFilter ? pFilter->IsOwnTemplateFormat() : FALSE, &sFilterName );
						}
						catch( lang::WrappedTargetException& aWrap )
						{
							packages::zip::ZipIOException aZipException;
							if ( ( aWrap.TargetException >>= aZipException ) && aTypeName.Len() )
							{
								if ( xInteraction.is() )
								{
									// the package is broken one
       								aDocumentTitle = aMedium.GetURLObject().getName(
																INetURLObject::LAST_SEGMENT,
																true,
																INetURLObject::DECODE_WITH_CHARSET );

									if ( !bRepairPackage )
									{
										// ask the user whether he wants to try to repair
            							RequestPackageReparation* pRequest = new RequestPackageReparation( aDocumentTitle );
            							uno::Reference< task::XInteractionRequest > xRequest ( pRequest );

            							xInteraction->handle( xRequest );

            							bRepairAllowed = pRequest->isApproved();
									}

									if ( !bRepairAllowed )
									{
										// repair either not allowed or not successful
        								NotifyBrokenPackage* pNotifyRequest = new NotifyBrokenPackage( aDocumentTitle );
           								uno::Reference< task::XInteractionRequest > xRequest ( pNotifyRequest );
       									xInteraction->handle( xRequest );
									}
								}

								if ( !bRepairAllowed )
=====================================================================
Found a 41 line (154 tokens) duplication in the following files: 
Starting at line 4034 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 4201 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

		String rString;
        double fVal = 0.0;
		BOOL bIsString = TRUE;
		switch ( GetStackType() )
		{
			case svDoubleRef :
			case svSingleRef :
			{
				ScAddress aAdr;
				if ( !PopDoubleRefOrSingleRef( aAdr ) )
				{
					PushInt(0);
					return ;
				}
				ScBaseCell* pCell = GetCell( aAdr );
				switch ( GetCellType( pCell ) )
				{
					case CELLTYPE_VALUE :
						fVal = GetCellValue( aAdr, pCell );
						bIsString = FALSE;
						break;
					case CELLTYPE_FORMULA :
						if( ((ScFormulaCell*)pCell)->IsValue() )
						{
							fVal = GetCellValue( aAdr, pCell );
							bIsString = FALSE;
						}
						else
							GetCellString(rString, pCell);
						break;
					case CELLTYPE_STRING :
					case CELLTYPE_EDIT :
						GetCellString(rString, pCell);
						break;
					default:
						fVal = 0.0;
						bIsString = FALSE;
				}
			}
			break;
			case svString:
=====================================================================
Found a 11 line (154 tokens) duplication in the following files: 
Starting at line 1780 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1838 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                  "\xAD\xF3\xAD\xF4\xAD\xF8\xAD\xF9"),
              { 0x2460,0x2461,0x2462,0x2463,0x2464,0x2465,0x2466,0x2467,0x2468,
                0x2469,0x246A,0x246B,0x246C,0x246D,0x246E,0x246F,0x2470,0x2471,
                0x2472,0x2473,0x2160,0x2161,0x2162,0x2163,0x2164,0x2165,0x2166,
                0x2167,0x2168,0x2169,0x3349,0x3314,0x3322,0x334D,0x3318,0x3327,
                0x3303,0x3336,0x3351,0x3357,0x330D,0x3326,0x3323,0x332B,0x334A,
                0x333B,0x339C,0x339D,0x339E,0x338E,0x338F,0x33C4,0x33A1,0x337B,
                0x301D,0x301F,0x2116,0x33CD,0x2121,0x32A4,0x32A5,0x32A6,0x32A7,
                0x32A8,0x3231,0x3232,0x3239,0x337E,0x337D,0x337C,0x222E,0x2211,
                0x221F,0x22BF },
              74,
=====================================================================
Found a 31 line (154 tokens) duplication in the following files: 
Starting at line 1087 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 1117 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

	if (! (pProfile->m_Flags & osl_Profile_SYSTEM))
	{
		if (MaxLen != 0)
		{
 			for (i = 0; i < pProfile->m_NoSections; i++)
			{
				pSec = &pProfile->m_Sections[i];

				if ((n + pSec->m_Len + 1) < MaxLen)
				{
					strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset],
					        pSec->m_Len);
					n += pSec->m_Len;
					pszBuffer[n++] = '\0';
				}
				else
					break;
			}

			pszBuffer[n++] = '\0';
		}
		else
		{
 			for (i = 0; i < pProfile->m_NoSections; i++)
				n += pProfile->m_Sections[i].m_Len + 1;

			n += 1;
		}
	}
	else
	{
=====================================================================
Found a 40 line (154 tokens) duplication in the following files: 
Starting at line 759 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/eval.c
Starting at line 727 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_eval.c

                        if (j >= sizeof(cvcon))
                            error(WARNING,
                               "Undefined escape in character constant");
                    }
            }
            else
                if (*p == '\'')
                    error(ERROR, "Empty character constant");
                else
                    n = *p++;
            if (*p != '\'')
                error(WARNING, "Multibyte character constant undefined");
            else
                if (n > 127)
                    error(WARNING, "Character constant taken as not signed");
            v.val = n;
            break;

        case STRING:
            error(ERROR, "String in #if/#elsif");
            break;
    }
    return v;
}

int
    digit(int i)
{
    if ('0' <= i && i <= '9')
        i -= '0';
    else
        if ('a' <= i && i <= 'f')
            i -= 'a' - 10;
        else
            if ('A' <= i && i <= 'F')
                i -= 'A' - 10;
            else
                i = -1;
    return i;
}
=====================================================================
Found a 6 line (154 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x0e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x10,0x1f,
=====================================================================
Found a 6 line (154 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h

 0x00,0xf8,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 6 line (154 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x0e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x10,0x1f,
=====================================================================
Found a 6 line (154 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h

 0x00,0xf8,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 16 line (154 tokens) duplication in the following files: 
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpread.cpp
Starting at line 391 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpread.cpp

    hwpf.Read2b(style.margin, 12);                /* ���� : [0-2][] out/in/��,[][0-3] ��/�8�/'/�Ʒ� ���� */
    hwpf.Read2b(&box_xs, 1);                      /* �ڽ�ũ�� ���� */
    hwpf.Read2b(&box_ys, 1);                      /* ���� */
    hwpf.Read2b(&cap_xs, 1);                      /* ĸ�� ũ�� ���� */
    hwpf.Read2b(&cap_ys, 1);                      /* ���� */
    hwpf.Read2b(&style.cap_len, 1);               /* ���� */
    hwpf.Read2b(&xs, 1);                          /* ��ü ũ��(�ڽ� ũ�� + ĸ�� + ����) ���� */
    hwpf.Read2b(&ys, 1);                          /* ���� */
    hwpf.Read2b(&cap_margin, 1);                  /* ĸ�� ���� */
    hwpf.Read1b(&xpos_type, 1);
    hwpf.Read1b(&ypos_type, 1);
    hwpf.Read1b(&smart_linesp, 1);                /* �ٰ��� ��ȣ : 0 �̺�ȣ, 1 ��ȣ */
    hwpf.Read1b(&reserved1, 1);
    hwpf.Read2b(&pgx, 1);                         /* ��f ���� �ڽ� ���� */
    hwpf.Read2b(&pgy, 1);                         /* ���� */
    hwpf.Read2b(&pgno, 1);                        /* ������ ���� : 0���� ���� */
=====================================================================
Found a 36 line (154 tokens) duplication in the following files: 
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 559 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

void ModuleImageManager::implts_initialize()
{
    // Initialize the top-level structures with the storage data
    if ( m_xUserConfigStorage.is() )
    {
        long nModes = m_bReadOnly ? ElementModes::READ : ElementModes::READWRITE;

        try
        {
            m_xUserImageStorage = m_xUserConfigStorage->openStorageElement( OUString::createFromAscii( IMAGE_FOLDER ),
                                                                            nModes );
            if ( m_xUserImageStorage.is() )
            {
                m_xUserBitmapsStorage = m_xUserImageStorage->openStorageElement( OUString::createFromAscii( BITMAPS_FOLDER ),
                                                                                 nModes );
            }
        }
        catch ( com::sun::star::container::NoSuchElementException& )
        {
        }
        catch ( ::com::sun::star::embed::InvalidStorageException& )
        {
        }
        catch ( ::com::sun::star::lang::IllegalArgumentException& )
        {
        }
        catch ( ::com::sun::star::io::IOException& )
        {
        }
        catch ( ::com::sun::star::embed::StorageWrappedTargetException& )
        {
        }
    }
}

sal_Bool ModuleImageManager::implts_loadUserImages(
=====================================================================
Found a 23 line (154 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/FilterHelper.cxx
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFilePicker.cxx

	OUString aRealName = rFilterName;
	
	for( i = aRealName.getLength() - 1; i > 0; i-- )
	{
		if( pStr[i] == ')' )
			nBracketEnd = i;
		else if( pStr[i] == '(' )
		{
			nBracketLen = nBracketEnd - i;
			if( nBracketEnd <= 0 )
                continue;
			if( isFilterString( rFilterName.copy( i + 1, nBracketLen - 1 ), "*." ) )
                aRealName = aRealName.replaceAt( i, nBracketLen + 1, rtl::OUString() );
            else if (bAllowNoStar)
            {
			    if( isFilterString( rFilterName.copy( i + 1, nBracketLen - 1 ), ".") )
                    aRealName = aRealName.replaceAt( i, nBracketLen + 1, rtl::OUString() );
            }
		}
	}

	return aRealName;
}
=====================================================================
Found a 24 line (154 tokens) duplication in the following files: 
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/FreeReference/FreeReference.test.cxx
Starting at line 339 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/FreeReference/FreeReference.test.cxx

	cppu::FreeReference<uno::XInterface> env_obj;
	{
		cppu::EnvGuard envGuard(s_env);

		pObject = reinterpret_cast<uno::XInterface *>(
			createObject(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV))),
						 s_callee_in));
		
		env_obj = cppu::FreeReference<uno::XInterface>(pObject, SAL_NO_ACQUIRE);
	}


	uno::Mapping mapping(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV) ":unsafe")),
						 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV))));
	uno::Reference<uno::XInterface> tmp;
	uno::XInterface * pMappedObject = reinterpret_cast<uno::XInterface *>(mapping.mapInterface(pObject, ::getCppuType(&tmp)));


	cppu::FreeReference<uno::XInterface> flat_obj(pMappedObject, SAL_NO_ACQUIRE);

	{
		cppu::EnvGuard envGuard(s_env);

		if (env_obj != flat_obj)
=====================================================================
Found a 22 line (154 tokens) duplication in the following files: 
Starting at line 455 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 498 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx

		bRet = check( equals( aData, aRet ) && equals( aData, aRet2 ) && equals( aData, aGVret ), "getValues test" ) && bRet;

		// set last retrieved values
		xLBT->setBool( aRet.Bool );
		xLBT->setChar( aRet.Char );
		xLBT->setByte( aRet.Byte );
		xLBT->setShort( aRet.Short );
		xLBT->setUShort( aRet.UShort );
        xLBT->setLong( aRet.Long );
		xLBT->setULong( aRet.ULong );
		xLBT->setHyper( aRet.Hyper );
		xLBT->setUHyper( aRet.UHyper );
		xLBT->setFloat( aRet.Float );
		xLBT->setDouble( aRet.Double );
		xLBT->setEnum( aRet.Enum );
		xLBT->setString( aRet.String );
		xLBT->setInterface( aRet.Interface );
		xLBT->setAny( aRet.Any );
		xLBT->setSequence( aRet.Sequence );
		xLBT->setStruct( aRet2 );
		}
		{
=====================================================================
Found a 26 line (154 tokens) duplication in the following files: 
Starting at line 437 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HDriver.cxx
Starting at line 403 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YDriver.cxx

		aSNS[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbc.Driver");
		aSNS[1] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.Driver");
		return aSNS;
	}
	//------------------------------------------------------------------
	::rtl::OUString SAL_CALL ODriverDelegator::getImplementationName(  ) throw(RuntimeException)
	{
		return getImplementationName_Static();
	}

	//------------------------------------------------------------------
	sal_Bool SAL_CALL ODriverDelegator::supportsService( const ::rtl::OUString& _rServiceName ) throw(RuntimeException)
	{
		Sequence< ::rtl::OUString > aSupported(getSupportedServiceNames());
		const ::rtl::OUString* pSupported = aSupported.getConstArray();
		const ::rtl::OUString* pEnd = pSupported + aSupported.getLength();
		for (;pSupported != pEnd && !pSupported->equals(_rServiceName); ++pSupported)
			;

		return pSupported != pEnd;
	}
	//------------------------------------------------------------------
	Sequence< ::rtl::OUString > SAL_CALL ODriverDelegator::getSupportedServiceNames(  ) throw(RuntimeException)
	{
		return getSupportedServiceNames_Static();
	}
=====================================================================
Found a 34 line (154 tokens) duplication in the following files: 
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DNoException.cxx
Starting at line 720 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/dindexnode.cxx

}
//==================================================================
// ONDXNode
//==================================================================

//------------------------------------------------------------------
void ONDXNode::Read(SvStream &rStream, ODbaseIndex& rIndex)
{
	rStream >> aKey.nRecord; // schluessel

	if (rIndex.getHeader().db_keytype)
	{
		double aDbl;
		rStream >> aDbl;
		aKey = ONDXKey(aDbl,aKey.nRecord);
	}
	else
	{
		ByteString aBuf;
		USHORT nLen = rIndex.getHeader().db_keylen;
		char* pStr = aBuf.AllocBuffer(nLen+1);

		rStream.Read(pStr,nLen);
		pStr[nLen] = 0;
		aBuf.ReleaseBufferAccess();
		aBuf.EraseTrailingChars();

		//	aKey = ONDXKey((aBuf,rIndex.GetDBFConnection()->GetCharacterSet()) ,aKey.nRecord);
		aKey = ONDXKey(::rtl::OUString(aBuf.GetBuffer(),aBuf.Len(),rIndex.m_pTable->getConnection()->getTextEncoding()) ,aKey.nRecord);
	}
	rStream >> aChild;
}

union NodeData
=====================================================================
Found a 16 line (154 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx

		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnValue::NULLABLE));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("VARCHAR"));
=====================================================================
Found a 26 line (154 tokens) duplication in the following files: 
Starting at line 421 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 425 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

		if (!_bLocal)
		{
			rtl::OUString sServer;
			sServer =			enterValue("server  : ", s_pServer,false);
			cout << endl;

			sUser =				enterValue("user    : ", s_pUser, false);
			cout << endl;
			
			OUString sPasswd =	enterValue("password: ", s_pPassword, true);
			cout << endl;

			aCPArgs = createSequence(sUser, sPasswd);

			aCPArgs.realloc(aCPArgs.getLength() + 1);
			aCPArgs[aCPArgs.getLength() - 1] <<= configmgr::createPropertyValue(ASCII("server"), sServer);

			OUString sTimeout = ASCII("10000");
			aCPArgs.realloc(aCPArgs.getLength() + 1);
			aCPArgs[aCPArgs.getLength() - 1] <<= configmgr::createPropertyValue(ASCII("timeout"), sTimeout);

		}
		else
		{
			rtl::OUString sSharePath, sUserPath;
			sSharePath = _sSharePath;//		enterValue("share path: ", s_pSourcePath, false);
=====================================================================
Found a 32 line (154 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_spritecanvashelper.cxx
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/spritecanvashelper.cxx

        mpRedrawManager = &rManager;
    }
    
    void SpriteCanvasHelper::disposing()
    {
        mpRedrawManager = NULL;

        // forward to base
        CanvasHelper::disposing();
    }

    uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation( 
        const uno::Reference< rendering::XAnimation >&  )
    {
        return uno::Reference< rendering::XAnimatedSprite >();
    }

    uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps( 
        const uno::Sequence< uno::Reference< rendering::XBitmap > >& , 
        sal_Int8                                                      )
    {
        return uno::Reference< rendering::XAnimatedSprite >();
    }

    uno::Reference< rendering::XCustomSprite > SpriteCanvasHelper::createCustomSprite( const geometry::RealSize2D& spriteSize )
    {
        if( !mpRedrawManager )
            return uno::Reference< rendering::XCustomSprite >(); // we're disposed

        return uno::Reference< rendering::XCustomSprite >(
            new CanvasCustomSprite( spriteSize, 
                                    mpDevice,
=====================================================================
Found a 23 line (153 tokens) duplication in the following files: 
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 492 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

        void blend_solid_vspan(int x, int y,
                               unsigned len, 
                               const color_type& c,
                               const int8u* covers)
        {
            if (c.a)
            {
                value_type* p = (value_type*)m_rbuf->row(y) + (x << 2);
                do 
                {
                    calc_type alpha = (calc_type(c.a) * (calc_type(*covers) + 1)) >> 8;
                    if(alpha == base_mask)
                    {
                        p[order_type::R] = c.r;
                        p[order_type::G] = c.g;
                        p[order_type::B] = c.b;
                        p[order_type::A] = base_mask;
                    }
                    else
                    {
                        blender_type::blend_pix(p, c.r, c.g, c.b, alpha, *covers);
                    }
                    p = (value_type*)m_rbuf->next_row(p);
=====================================================================
Found a 6 line (153 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x0e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x10,0x1f,
=====================================================================
Found a 41 line (153 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static const ucb::CommandInfo aFolderCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // Optional standard commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
                )
=====================================================================
Found a 48 line (153 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/prov.cxx
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpservices.cxx

    uno::Reference< registry::XRegistryKey > xKey;
	try
	{
        xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
    catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
        catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//=========================================================================
extern "C" sal_Bool SAL_CALL component_writeInfo(
	void * /*pServiceManager*/, void * pRegistryKey )
{
	return pRegistryKey &&
		
		//////////////////////////////////////////////////////////////////////
		// FTP Content Provider.
		//////////////////////////////////////////////////////////////////////

		writeInfo( pRegistryKey,
=====================================================================
Found a 43 line (153 tokens) duplication in the following files: 
Starting at line 1264 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx
Starting at line 1170 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

	return Reference< XInterface >( (XBridgeTest *)new Test_Impl() );
}

}

extern "C"
{
//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo( void *, void * pRegistryKey )
{
	if (pRegistryKey)
	{
		try
		{
			Reference< XRegistryKey > xNewKey(
				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
					OUString( RTL_CONSTASCII_USTRINGPARAM("/" IMPLNAME "/UNO/SERVICES") ) ) );
			xNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM(SERVICENAME) ) );
			
			return sal_True;
		}
		catch (InvalidRegistryException &)
		{
			OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
		}
	}
	return sal_False;
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * )
{
	void * pRet = 0;
	
	if (pServiceManager && rtl_str_compare( pImplName, IMPLNAME ) == 0)
	{
		Reference< XSingleServiceFactory > xFactory( createSingleFactory(
=====================================================================
Found a 24 line (153 tokens) duplication in the following files: 
Starting at line 710 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fmtui/tmpdlg.cxx
Starting at line 852 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/num.cxx

			SwDocShell* pDocShell = rWrtSh.GetView().GetDocShell();
			::FillCharStyleListBox(rCharFmtLB,	pDocShell);
			//add CHINA001 begin
			List aList; 
			for(USHORT j = 0; j < rCharFmtLB.GetEntryCount(); j++) 
			{
				
				 aList.Insert( new XubString(rCharFmtLB.GetEntry(j)), LIST_APPEND );
			}
			aSet.Put( SfxStringListItem( SID_CHAR_FMT_LIST_BOX,&aList ) ) ;
			
			//add CHINA001 end
			FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, pDocShell));
			//CHINA001 ((SvxNumOptionsTabPage&)rPage).SetMetric(eMetric);
			aSet.Put ( SfxAllEnumItem(SID_METRIC_ITEM,eMetric));//add CHINA001	
			rPage.PageCreated(aSet);//add CHINA001
			for( USHORT i = (USHORT)aList.Count(); i; --i )
					delete (XubString*)aList.Remove(i);
			aList.Clear();
		}
		break;
	case RID_SVXPAGE_NUM_POSITION:
		{
			SwDocShell* pDocShell = rWrtSh.GetView().GetDocShell();
=====================================================================
Found a 17 line (153 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmgreetingspage.cxx
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmgreetingspage.cxx

    SfxModalDialog(pParent, SW_RES(DLG_MM_MAILBODY)),
#pragma warning (disable : 4355)
    m_aGreetingLineCB(this, SW_RES(    CB_GREETINGLINE ) ),
    m_aPersonalizedCB(this, SW_RES(      CB_PERSONALIZED ) ),
    m_aFemaleFT(this, SW_RES(            FT_FEMALE   ) ),
    m_aFemaleLB(this, SW_RES(            LB_FEMALE   ) ),   
    m_aFemalePB(this, SW_RES(            PB_FEMALE   ) ),   
    m_aMaleFT(this, SW_RES(              FT_MALE     ) ),   
    m_aMaleLB(this, SW_RES(              LB_MALE     ) ),
    m_aMalePB(this, SW_RES(              PB_MALE     ) ),
    m_aFemaleFI(this, SW_RES(            FI_FEMALE      ) ),
    m_aFemaleColumnFT(this, SW_RES(      FT_FEMALECOLUMN ) ),
    m_aFemaleColumnLB(this, SW_RES(      LB_FEMALECOLUMN ) ),
    m_aFemaleFieldFT(this, SW_RES(       FT_FEMALEFIELD  ) ),
    m_aFemaleFieldCB(this, SW_RES(       CB_FEMALEFIELD  ) ),
    m_aNeutralFT(this, SW_RES(           FT_NEUTRAL      ) ),
    m_aNeutralCB(this, SW_RES(         CB_NEUTRAL      ) ),
=====================================================================
Found a 53 line (153 tokens) duplication in the following files: 
Starting at line 3113 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3279 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

                if (IsEightPlus(GetFIBVersion()))
                {
                    nBeginLimitFC =
                        WW8PLCFx_PCD::TransformPieceAddress(nLimitFC,
                        bIsUnicode);
                }

                nLimitFC = nBeginLimitFC +
                    (nCpEnd - nCpStart) * (bIsUnicode ? 2 : 1);

                if (nOldEndPos <= nLimitFC)
                {
                    p->nEndPos = nCpEnd -
                        (nLimitFC-nOldEndPos) / (bIsUnicode ? 2 : 1);
                }
                else
                {
                    if (ePLCF == CHP)
                        p->nEndPos = nCpEnd;
                    else
                    {
                        /*
                        If the FKP FC that was found was greater than the FC
                        of the end of the piece, scan piece by piece toward
                        the end of the document until a piece is found that
                        contains a  paragraph end mark.
                        */

                        /*
                        It's possible to check if a piece contains a paragraph
                        mark by using the FC of the beginning of the piece to
                        search in the FKPs for the smallest FC in the FKP rgfc
                        that is greater than the FC of the beginning of the
                        piece. If the FC found is less than or equal to the
                        limit FC of the piece, then the character that ends
                        the paragraph is the character immediately before the
                        FKP fc
                        */

                        (*pPieceIter)++;

                        for (;pPieceIter->GetIdx() < pPieceIter->GetIMax();
                            (*pPieceIter)++)
                        {
                            if( !pPieceIter->Get( nCpStart, nCpEnd, pData ) )
                            {
                                ASSERT( !this, "piece iter broken!" );
                                break;
                            }
                            bIsUnicode = false;
                            INT32 nFcStart=SVBT32ToUInt32(((WW8_PCD*)pData)->fc);

                            if (IsEightPlus(GetFIBVersion()))
=====================================================================
Found a 20 line (153 tokens) duplication in the following files: 
Starting at line 3082 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4819 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

			return;
		}
		const uno::Sequence< double >* pRowArray = rData.getConstArray();
		for(sal_uInt16 nRow = nRowStart; nRow < nRowCount; nRow++)
		{
			const uno::Sequence< double >& rColSeq = pRowArray[nRow - nRowStart];
			sal_uInt16 nColStart = bFirstColumnAsLabel ? 1 : 0;
			if(rColSeq.getLength() < nColCount - nColStart)
			{
				throw uno::RuntimeException();
			}
			const double * pColArray = rColSeq.getConstArray();
			for(sal_uInt16 nCol = nColStart; nCol < nColCount; nCol++)
			{
				uno::Reference< table::XCell >  xCell = getCellByPosition(nCol, nRow);
				if(!xCell.is())
				{
					throw uno::RuntimeException();
				}
				xCell->setValue(pColArray[nCol - nColStart]);
=====================================================================
Found a 39 line (153 tokens) duplication in the following files: 
Starting at line 3370 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 973 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

		ImpSetContourPolygon( rOutliner, aAnkRect, bLineWidth );

	// Text in den Outliner stecken - ggf. den aus dem EditOutliner
	OutlinerParaObject* pPara=pOutlinerParaObject;
	if (pEdtOutl && !bNoEditText)
		pPara=pEdtOutl->CreateParaObject();

	if (pPara)
	{
		BOOL bHitTest = FALSE;
		if( pModel )
			bHitTest = &pModel->GetHitTestOutliner() == &rOutliner;

		const SdrTextObj* pTestObj = rOutliner.GetTextObj();
		if( !pTestObj || !bHitTest || pTestObj != this ||
		    pTestObj->GetOutlinerParaObject() != pOutlinerParaObject )
		{
			if( bHitTest ) // #i33696# take back fix #i27510#
				rOutliner.SetTextObj( this );

			rOutliner.SetUpdateMode(TRUE);
			rOutliner.SetText(*pPara);
		}
	}
	else
	{
		rOutliner.SetTextObj( NULL );
	}

	if (pEdtOutl && !bNoEditText && pPara)
		delete pPara;

	rOutliner.SetUpdateMode(TRUE);
	rOutliner.SetControlWord(nStat0);

	if (!bPortionInfoChecked)
	{
		// Optimierung: ggf. BigTextObject erzeugen
		((SdrTextObj*)this)->bPortionInfoChecked=TRUE;
=====================================================================
Found a 12 line (153 tokens) duplication in the following files: 
Starting at line 802 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedtv2.cxx
Starting at line 891 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedtv2.cxx

						double fStepWidth = ((double)nHeight - (double)nFullLength) / (double)(aEntryList.Count() - 1);
						double fStepStart = (double)aEntryList.GetObject(0)->mnPos;
						fStepStart += fStepWidth + (double)((aEntryList.GetObject(0)->mnLength + aEntryList.GetObject(1)->mnLength) / 2);

						// move entries 1..n-1
						for(a=1;a<aEntryList.Count()-1;a++)
						{
							ImpDistributeEntry* pCurr = aEntryList.GetObject(a);
							ImpDistributeEntry* pNext = aEntryList.GetObject(a+1);
							INT32 nDelta = (INT32)(fStepStart + 0.5) - pCurr->mnPos;
							AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*pCurr->mpObj));
							pCurr->mpObj->Move(Size(0, nDelta));
=====================================================================
Found a 62 line (153 tokens) duplication in the following files: 
Starting at line 3686 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docfile.cxx
Starting at line 806 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/persist/transbnd.cxx

		m_bDonePending = TRUE;
}

/*========================================================================
 *
 * SvKeyValueIterator implementation.
 *
 *======================================================================*/
SV_DECL_PTRARR_DEL(SvKeyValueList_Impl, SvKeyValue*, 0, 4)
SV_IMPL_PTRARR(SvKeyValueList_Impl, SvKeyValue*);

/*
 * SvKeyValueIterator.
 */
SvKeyValueIterator::SvKeyValueIterator (void)
	: m_pList (new SvKeyValueList_Impl),
	  m_nPos  (0)
{
}

/*
 * ~SvKeyValueIterator.
 */
SvKeyValueIterator::~SvKeyValueIterator (void)
{
	delete m_pList;
}

/*
 * GetFirst.
 */
BOOL SvKeyValueIterator::GetFirst (SvKeyValue &rKeyVal)
{
	m_nPos = m_pList->Count();
	return GetNext (rKeyVal);
}

/*
 * GetNext.
 */
BOOL SvKeyValueIterator::GetNext (SvKeyValue &rKeyVal)
{
	if (m_nPos > 0)
	{
		rKeyVal = *m_pList->GetObject(--m_nPos);
		return TRUE;
	}
	else
	{
		// Nothing to do.
		return FALSE;
	}
}

/*
 * Append.
 */
void SvKeyValueIterator::Append (const SvKeyValue &rKeyVal)
{
	SvKeyValue *pKeyVal = new SvKeyValue (rKeyVal);
	m_pList->C40_INSERT(SvKeyValue, pKeyVal, m_pList->Count());
}
=====================================================================
Found a 25 line (153 tokens) duplication in the following files: 
Starting at line 606 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/registerextensions.cxx

    TCHAR szValue[8192];
    DWORD nValueSize = sizeof(szValue);
    HKEY  hKey;
    std::_tstring sInstDir;
    
    std::_tstring sProductKey = GetMsiProperty( handle, TEXT("FINDPRODUCT") );
    // MessageBox( NULL, sProductKey.c_str(), "Titel", MB_OK );
    
    if ( ERROR_SUCCESS == RegOpenKey( HKEY_CURRENT_USER,  sProductKey.c_str(), &hKey ) )
    {
        if ( ERROR_SUCCESS == RegQueryValueEx( hKey, TEXT("INSTALLLOCATION"), NULL, NULL, (LPBYTE)szValue, &nValueSize ) )
        {
            sInstDir = szValue;
        }
        RegCloseKey( hKey );
    }
    else if ( ERROR_SUCCESS == RegOpenKey( HKEY_LOCAL_MACHINE,  sProductKey.c_str(), &hKey ) )
    {
        if ( ERROR_SUCCESS == RegQueryValueEx( hKey, TEXT("INSTALLLOCATION"), NULL, NULL, (LPBYTE)szValue, &nValueSize ) )
        {
            sInstDir = szValue;
        }
        RegCloseKey( hKey );
    }
    else
=====================================================================
Found a 31 line (153 tokens) duplication in the following files: 
Starting at line 3583 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 584 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/viewfun3.cxx

			ULONG nFormatId = 0;
				//	als erstes SvDraw-Model, dann Grafik
				//	(Grafik darf nur bei einzelner Grafik drinstehen)

			if (aDataHelper.HasFormat( SOT_FORMATSTR_ID_DRAWING ))
				nFormatId = SOT_FORMATSTR_ID_DRAWING;
			else if (aDataHelper.HasFormat( SOT_FORMATSTR_ID_SVXB ))
				nFormatId = SOT_FORMATSTR_ID_SVXB;
			else if (aDataHelper.HasFormat( SOT_FORMATSTR_ID_EMBED_SOURCE ))
			{
				//	If it's a Writer object, insert RTF instead of OLE
				BOOL bDoRtf = FALSE;
				SotStorageStreamRef xStm;
				TransferableObjectDescriptor aObjDesc;
				if( aDataHelper.GetTransferableObjectDescriptor( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR, aObjDesc ) &&
					aDataHelper.GetSotStorageStream( SOT_FORMATSTR_ID_EMBED_SOURCE, xStm ) )
				{
					SotStorageRef xStore( new SotStorage( *xStm ) );
					bDoRtf = ( ( aObjDesc.maClassName == SvGlobalName( SO3_SW_CLASSID ) ||
								 aObjDesc.maClassName == SvGlobalName( SO3_SWWEB_CLASSID ) )
							   && aDataHelper.HasFormat( SOT_FORMAT_RTF ) );
				}
				if ( bDoRtf )
					nFormatId = FORMAT_RTF;
				else
					nFormatId = SOT_FORMATSTR_ID_EMBED_SOURCE;
			}
			else if (aDataHelper.HasFormat( SOT_FORMATSTR_ID_LINK_SOURCE ))
				nFormatId = SOT_FORMATSTR_ID_LINK_SOURCE;
			// the following format can not affect scenario from #89579#
			else if (aDataHelper.HasFormat( SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE ))
=====================================================================
Found a 12 line (153 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/formatsh.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/futempl.cxx

                com::sun::star::uno::Reference< com::sun::star::style::XStyleFamiliesSupplier > xModel(mpDoc->GetDocSh()->GetModel(), com::sun::star::uno::UNO_QUERY);
                try
                {
                    com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xStyles;
                    com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xCont = xModel->getStyleFamilies();
                    xCont->getByName(pFamilyItem->GetValue()) >>= xStyles;
                    com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xInfo;
                    xStyles->getByName( pNameItem->GetValue() ) >>= xInfo;
                    ::rtl::OUString aUIName;
                    xInfo->getPropertyValue( ::rtl::OUString::createFromAscii("DisplayName") ) >>= aUIName;
                    if ( aUIName.getLength() )
                        rReq.AppendItem( SfxStringItem( nSId, aUIName ) );
=====================================================================
Found a 22 line (153 tokens) duplication in the following files: 
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbawindow.cxx
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbawindows.cxx
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbaworkbooks.cxx

		return makeAny( m_books[ it->second ] );
		
	}

	virtual uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw (uno::RuntimeException) 
	{ 
		uno::Sequence< ::rtl::OUString > names( namesToIndices.size() );
		::rtl::OUString* pString = names.getArray();
		NameIndexHash::const_iterator it = namesToIndices.begin();
		NameIndexHash::const_iterator it_end = namesToIndices.end();
		for ( ; it != it_end; ++it, ++pString )
			*pString = it->first;	
		return names;	
	}

	virtual ::sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw (uno::RuntimeException) 
	{ 
		NameIndexHash::const_iterator it = namesToIndices.find( aName );
		return (it != namesToIndices.end());
	}

};
=====================================================================
Found a 60 line (153 tokens) duplication in the following files: 
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_ConnectorSocket.cxx
Starting at line 3178 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

namespace osl_ConnectorSocket
{

	/** testing the method:
		ConnectorSocket(oslAddrFamily Family = osl_Socket_FamilyInet, 
						oslProtocol	Protocol = osl_Socket_ProtocolIp,
						oslSocketType	Type = osl_Socket_TypeStream);
	*/

	class ctors : public CppUnit::TestFixture
	{
	public:
		void ctors_001()
		{
			/// Socket constructor.
			::osl::ConnectorSocket csSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
	
			CPPUNIT_ASSERT_MESSAGE( "test for ctors_001 constructor function: check if the connector socket was created successfully.", 
									osl_Socket_TypeStream ==  csSocket.getType( ) );
		}
	
		CPPUNIT_TEST_SUITE( ctors );
		CPPUNIT_TEST( ctors_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class ctors
	
	/** testing the method:
		oslSocketResult SAL_CALL connect(const SocketAddr& TargetHost, const TimeValue* pTimeout = 0);
	*/

	class connect : public CppUnit::TestFixture
	{
	public:
		TimeValue *pTimeout;
		::osl::AcceptorSocket asAcceptorSocket;
		::osl::ConnectorSocket csConnectorSocket;
		
		
		// initialization
		void setUp( )
		{
			pTimeout  = ( TimeValue* )malloc( sizeof( TimeValue ) );
			pTimeout->Seconds = 3;
			pTimeout->Nanosec = 0;
		//	sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			free( pTimeout );
		//	sHandle = NULL;
			asAcceptorSocket.close( );
			csConnectorSocket.close( );
		}

	
		void connect_001()
		{
			::osl::SocketAddr saLocalSocketAddr( aHostIp1, IP_PORT_MYPORT2 );
=====================================================================
Found a 24 line (153 tokens) duplication in the following files: 
Starting at line 1022 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngsvcmgr.cxx
Starting at line 1067 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngsvcmgr.cxx

    String  aNode( String::CreateFromAscii( "ServiceManager/HyphenatorList" ) );
    Sequence< OUString > aNames( /*aCfg.*/GetNodeNames( aNode ) );
    OUString *pNames = aNames.getArray();
    INT32 nLen = aNames.getLength();

	// append path prefix need for 'GetProperties' call below
	String aPrefix( aNode );
	aPrefix.Append( (sal_Unicode) '/' );
	for (int i = 0;  i < nLen;  ++i)
	{
		OUString aTmp( aPrefix );
		aTmp += pNames[i];
		pNames[i] = aTmp;
	}

    Sequence< Any > aValues( /*aCfg.*/GetProperties( aNames ) );
    if (nLen  &&  nLen == aValues.getLength())
    {
        const Any *pValues = aValues.getConstArray();
        for (INT32 i = 0;  i < nLen;  ++i)
        {
            Sequence< OUString > aSvcImplNames;
            if (pValues[i] >>= aSvcImplNames)
            {
=====================================================================
Found a 20 line (153 tokens) duplication in the following files: 
Starting at line 725 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1245 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xd0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x01, 0xf2, 0xd2 },
{ 0x01, 0xf3, 0xd3 },
{ 0x01, 0xf4, 0xd4 },
{ 0x01, 0xf5, 0xd5 },
{ 0x01, 0xf6, 0xd6 },
{ 0x00, 0xd7, 0xd7 },
{ 0x01, 0xf8, 0xd8 },
{ 0x01, 0xf9, 0xd9 },
{ 0x01, 0xfa, 0xda },
{ 0x01, 0xfb, 0xdb },
{ 0x01, 0xfc, 0xdc },
{ 0x01, 0xfd, 0xdd },
{ 0x01, 0xfe, 0xde },
{ 0x00, 0xdf, 0xdf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xe3 },
=====================================================================
Found a 24 line (153 tokens) duplication in the following files: 
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/pipetest.cxx
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/pumptest.cxx

	~OPumpTest();
	
public: // implementation names
    static Sequence< OUString > 	getSupportedServiceNames_Static(void) throw();
	static OUString 				getImplementationName_Static() throw();	

public:	
    virtual void SAL_CALL testInvariant(const OUString& TestName, const Reference < XInterface >& TestObject) 
		throw  ( IllegalArgumentException, RuntimeException) ;

    virtual sal_Int32 SAL_CALL test(	const OUString& TestName, 
										const Reference < XInterface >& TestObject, 
										sal_Int32 hTestHandle)
		throw  (	IllegalArgumentException, 
					RuntimeException);

    virtual sal_Bool SAL_CALL testPassed(void) 								throw  (	RuntimeException) ;
    virtual Sequence< OUString > SAL_CALL getErrors(void) 				throw  (RuntimeException) ;
    virtual Sequence< Any > SAL_CALL getErrorExceptions(void) 		throw  (RuntimeException);
	virtual Sequence< OUString > SAL_CALL getWarnings(void) 				throw  (RuntimeException);	
    
private:
	void testSimple( const Reference < XInterface > & );
	void testWrongUsage( const Reference < XInterface > & );
=====================================================================
Found a 6 line (153 tokens) duplication in the following files: 
Starting at line 1255 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1850 - 185f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 6 line (153 tokens) duplication in the following files: 
Starting at line 1182 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1244 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 7 line (153 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1182 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17, 0, 0,// 0ec0 - 0ecf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ed0 - 0edf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ee0 - 0eef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ef0 - 0eff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f00 - 0f0f
     0, 0, 0, 0, 0, 0, 0, 0,17,17, 0, 0, 0, 0, 0, 0,// 0f10 - 0f1f
=====================================================================
Found a 6 line (153 tokens) duplication in the following files: 
Starting at line 793 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1037 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0530 - 053f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0540 - 054f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 7 line (153 tokens) duplication in the following files: 
Starting at line 624 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 31b0 - 31bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31c0 - 31cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31d0 - 31df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31e0 - 31ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31f0 - 31ff

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3200 - 320f
=====================================================================
Found a 6 line (153 tokens) duplication in the following files: 
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 701 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    19, 4, 4, 4, 4, 4,27,27,10,10,10, 0, 0, 0,27,27,// 3030 - 303f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3040 - 304f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3050 - 305f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3060 - 306f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3070 - 307f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3080 - 308f
=====================================================================
Found a 6 line (153 tokens) duplication in the following files: 
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,20,21, 0, 0, 0,// 1690 - 169f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16a0 - 16af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16b0 - 16bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16c0 - 16cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16d0 - 16df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,23,23,23,10,10,// 16e0 - 16ef
=====================================================================
Found a 5 line (153 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 351 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2140 - 2147
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2148 - 214f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2150 - 2157
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2158 - 215f
    {0x68, 0x2170}, {0x68, 0x2171}, {0x68, 0x2172}, {0x68, 0x2173}, {0x68, 0x2174}, {0x68, 0x2175}, {0x68, 0x2176}, {0x68, 0x2177}, // 2160 - 2167
=====================================================================
Found a 29 line (153 tokens) duplication in the following files: 
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/buttontoolbarcontroller.cxx
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx

    const rtl::OUString aParentWindow( RTL_CONSTASCII_USTRINGPARAM( "ParentWindow" ));

    bool bInitialized( true );

    { 
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        
        if ( m_bDisposed )
            throw DisposedException();

        bInitialized = m_bInitialized;
    }

    if ( !bInitialized )
    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        m_bInitialized = sal_True;
        
        PropertyValue aPropValue;
        for ( int i = 0; i < aArguments.getLength(); i++ )
        {
            if ( aArguments[i] >>= aPropValue )
            {
                if ( aPropValue.Name.equalsAscii( "Frame" ))
					m_xFrame.set(aPropValue.Value,UNO_QUERY);
                else if ( aPropValue.Name.equalsAscii( "CommandURL" ))
                    aPropValue.Value >>= m_aCommandURL;
                else if ( aPropValue.Name.equalsAscii( "ServiceManager" ))
					m_xServiceManager.set(aPropValue.Value,UNO_QUERY);
=====================================================================
Found a 15 line (153 tokens) duplication in the following files: 
Starting at line 1599 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 2338 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx

				const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
				
				GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
				Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
				const Size		aSrcSize( aTmpMtf.GetPrefSize() );
				const Point		aDestPt( pA->GetPoint() );
				const Size		aDestSize( pA->GetSize() );
				const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
				const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
				long			nMoveX, nMoveY;

				if( fScaleX != 1.0 || fScaleY != 1.0 )
				{
					aTmpMtf.Scale( fScaleX, fScaleY );
					aSrcPt.X() = FRound( aSrcPt.X() * fScaleX ), aSrcPt.Y() = FRound( aSrcPt.Y() * fScaleY );
=====================================================================
Found a 27 line (153 tokens) duplication in the following files: 
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testimplhelper.cxx
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testimplhelper.cxx
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testimplhelper.cxx

		{ OSL_TRACE( "> TestWeakAggComponentImpl disposing called... <\n" ); }
	
	// A
	virtual OUString SAL_CALL a() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("a") ); }
	// BA
	virtual OUString SAL_CALL ba() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("ba") ); }
	// CA
	virtual OUString SAL_CALL ca() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("ca") ); }
	// DBA
	virtual OUString SAL_CALL dba() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("dba") ); }
	// E
	virtual OUString SAL_CALL e() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("e") ); }
	// FE
	virtual OUString SAL_CALL fe() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("fe") ); }
	// G
	virtual OUString SAL_CALL g() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("g") ); }
};

//==================================================================================================
struct TestImplInh : public ImplInheritanceHelper2< TestWeakImpl, H, I >
=====================================================================
Found a 43 line (153 tokens) duplication in the following files: 
Starting at line 858 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 438 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 fromType, sal_Int32 toType ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
=====================================================================
Found a 30 line (153 tokens) duplication in the following files: 
Starting at line 569 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx
Starting at line 935 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

    OSL_UNUSED( nRetCode );
}
// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper* OStatement_Base::createArrayHelper( ) const
{
	Sequence< Property > aProps(10);
	Property* pProperties = aProps.getArray();
	sal_Int32 nPos = 0;
	DECL_PROP0(CURSORNAME,	::rtl::OUString);
	DECL_BOOL_PROP0(ESCAPEPROCESSING);
	DECL_PROP0(FETCHDIRECTION,sal_Int32);
	DECL_PROP0(FETCHSIZE,	sal_Int32);
	DECL_PROP0(MAXFIELDSIZE,sal_Int32);
	DECL_PROP0(MAXROWS,		sal_Int32);
	DECL_PROP0(QUERYTIMEOUT,sal_Int32);
	DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
	DECL_PROP0(RESULTSETTYPE,sal_Int32);
	DECL_BOOL_PROP0(USEBOOKMARKS);

	return new ::cppu::OPropertyArrayHelper(aProps);
}

// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
{
	return *const_cast<OStatement_Base*>(this)->getArrayHelper();
}
// -------------------------------------------------------------------------
sal_Bool OStatement_Base::convertFastPropertyValue(
							Any & rConvertedValue,
=====================================================================
Found a 3 line (153 tokens) duplication in the following files: 
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/genericpropertyset.cxx
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/UnoDocumentSettings.cxx

		virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
		virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
		virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 7 line (153 tokens) duplication in the following files: 
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx

    virtual ~WrappedLineStyleProperty();

    virtual void setPropertyValue( const Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    virtual void setPropertyToDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
                        throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 34 line (153 tokens) duplication in the following files: 
Starting at line 398 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (cppu_relatesToInterface( pParamTypeDescr ))
			{
				uno_copyAndConvertData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pUnoArgs[nPos], pParamTypeDescr, &pThis->pBridge->aUno2Cpp );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
=====================================================================
Found a 32 line (153 tokens) duplication in the following files: 
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 299 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx

				pCallStack, pReturnValue );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
		{
		case 1: // acquire()
			pCppI->acquireProxy(); // non virtual call!
			break;
		case 2: // release()
			pCppI->releaseProxy(); // non virtual call!
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[1] ),
                        &pInterface, pTD, cpp_acquire );
=====================================================================
Found a 28 line (153 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside2.cxx
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/srcview.cxx

	pPrinter->SetFillColor( Color(COL_TRANSPARENT) );

	Font aFont( aOldFont );
	aFont.SetWeight( WEIGHT_BOLD );
	aFont.SetAlign( ALIGN_BOTTOM );
	pPrinter->SetFont( aFont );

	long nFontHeight = pPrinter->GetTextHeight();

	// 1.Border => Strich, 2+3 Border = Freiraum.
	long nYTop = TMARGPRN-3*nBorder-nFontHeight;

	long nXLeft = nLeftMargin-nBorder;
	long nXRight = aSz.Width()-RMARGPRN+nBorder;

	pPrinter->DrawRect( Rectangle(
		Point( nXLeft, nYTop ),
		Size( nXRight-nXLeft, aSz.Height() - nYTop - BMARGPRN + nBorder ) ) );


	long nY = TMARGPRN-2*nBorder;
	Point aPos( nLeftMargin, nY );
	pPrinter->DrawText( aPos, rTitle );
	if ( nPages != 1 )
	{
		aFont.SetWeight( WEIGHT_NORMAL );
		pPrinter->SetFont( aFont );
		String aPageStr( C2S(" [") );
=====================================================================
Found a 22 line (152 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 535 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        weight = (weight_array[x_hr] * 
                                  weight_array[y_hr + image_subpixel_size] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }

                        x_lr--;
=====================================================================
Found a 23 line (152 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_bounding_rect.h
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_bounding_rect.h

        vs.rewind(path_id);
        unsigned cmd;
        while(!is_stop(cmd = vs.vertex(&x, &y)))
        {
            if(is_vertex(cmd))
            {
                if(first)
                {
                    *x1 = CoordT(x);
                    *y1 = CoordT(y);
                    *x2 = CoordT(x);
                    *y2 = CoordT(y);
                    first = false;
                }
                else
                {
                    if(CoordT(x) < *x1) *x1 = CoordT(x);
                    if(CoordT(y) < *y1) *y1 = CoordT(y);
                    if(CoordT(x) > *x2) *x2 = CoordT(x);
                    if(CoordT(y) > *y2) *y2 = CoordT(y);
                }
            }
        }
=====================================================================
Found a 6 line (152 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/timemove_mask.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/timesize_mask.h

 0xff,0xff,0x03,0x80,0xff,0xff,0x03,0x80,0xff,0xff,0x03,0x80,0xff,0xff,0x03,
 0x80,0xff,0xff,0x03,0x80,0xff,0xff,0x03,0x80,0xff,0xff,0x03,0x80,0xff,0xff,
 0x03,0x00,0x80,0x03,0x00,0x00,0xc0,0x07,0x00,0x00,0xe0,0x0f,0x00,0x00,0xc0,
 0x07,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 7 line (152 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movefile_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/moveflnk_curs.h

   0xba, 0x1e, 0x00, 0x00, 0xbe, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00,
   0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x03, 0x00,
   0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
   0x00, 0xc2, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00,
   0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 8 line (152 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawconnect_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawpolygon_curs.h

static char drawpolygon_curs_bits[] = {
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x83, 0x00,
=====================================================================
Found a 8 line (152 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawarc_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawellipse_curs.h

static char drawellipse_curs_bits[] = {
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x42, 0x00,
   0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x81, 0x00,
=====================================================================
Found a 7 line (152 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyfile_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/copyflnk_curs.h

   0xba, 0x1e, 0x00, 0x00, 0xbe, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00,
   0x00, 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x03, 0x00,
   0x00, 0x7e, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
   0x00, 0xc2, 0xe0, 0x3f, 0x00, 0xc0, 0xe0, 0x3f, 0x00, 0x80, 0xe1, 0x3d,
   0x00, 0x80, 0xe1, 0x3d, 0x00, 0x00, 0x63, 0x30, 0x00, 0x00, 0xe3, 0x3d,
   0x00, 0x00, 0xe0, 0x3d, 0x00, 0x00, 0xe0, 0x3f, 0x00, 0x00, 0xe0, 0x3f,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 6 line (152 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h

static char assw_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 25 line (152 tokens) duplication in the following files: 
Starting at line 497 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/wmadaptor.cxx
Starting at line 749 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/wmadaptor.cxx

            )
        {
            Atom* pAtoms = (Atom*)pProperty;
            char** pAtomNames = (char**)alloca( sizeof(char*)*nItems );
            if( XGetAtomNames( m_pDisplay, pAtoms, nItems, pAtomNames ) )
            {
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr, "supported protocols:\n" );
#endif
                for( unsigned int i = 0; i < nItems; i++ )
                {
                    int nProtocol = -1;
                    WMAdaptorProtocol aSearch;
                    aSearch.pProtocol = pAtomNames[i];
                    WMAdaptorProtocol* pMatch = (WMAdaptorProtocol*)
                        bsearch( &aSearch,
                                 aProtocolTab,
                                 sizeof( aProtocolTab )/sizeof( aProtocolTab[0] ),
                                 sizeof( struct WMAdaptorProtocol ),
                                 compareProtocol );
                    if( pMatch )
                    {
                        nProtocol = pMatch->nProtocol;
                        m_aWMAtoms[ nProtocol ] = pAtoms[ i ];
                        if( pMatch->nProtocol == WIN_LAYER )
=====================================================================
Found a 34 line (152 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dndlcon.cxx
Starting at line 413 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dndlcon.cxx

sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent( const Reference< XDropTargetDragContext >& context,
	sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions )
{
	sal_uInt32 nRet = 0;
	
	// fire DropTargetDropEvent on all XDropTargetListeners
	OInterfaceContainerHelper *pContainer = rBHelper.getContainer( getCppuType( ( Reference < XDropTargetListener > * ) 0) );
        
	if( pContainer && m_bActive )
	{
		OInterfaceIteratorHelper aIterator( *pContainer );

        // remember context to use in own context methods
        m_xDropTargetDragContext = context;

		// do not construct the event before you are sure at least one listener is registered
        DropTargetDragEvent aEvent( static_cast < XDropTarget * > (this), 0, 
            static_cast < XDropTargetDragContext * > (this),
            dropAction, locationX, locationY, sourceActions );

		while (aIterator.hasMoreElements())
		{
			// FIXME: this can be simplified as soon as the Iterator has a remove method
			Reference< XInterface > xElement( aIterator.next() );

			try
			{
				// this may result in a runtime exception
				Reference < XDropTargetListener > xListener( xElement, UNO_QUERY );

				if( xListener.is() )
				{
                    if( m_xDropTargetDragContext.is() )
                        xListener->dropActionChanged( aEvent );
=====================================================================
Found a 33 line (152 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/provider/cancelcommandexecution.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/provider/cancelcommandexecution.cxx

    aArgs[ 1 ] <<= rArg2;

    rtl::Reference< ucbhelper::SimpleIOErrorRequest > xRequest
        = new ucbhelper::SimpleIOErrorRequest(
                                    eError, aArgs, rMessage, xContext );
    if ( xEnv.is() )
    {
        uno::Reference<
            task::XInteractionHandler > xIH = xEnv->getInteractionHandler();
        if ( xIH.is() )
        {
            xIH->handle( xRequest.get() );

            rtl::Reference< ucbhelper::InteractionContinuation > xSelection
				= xRequest->getSelection();

            if ( xSelection.is() )
                throw ucb::CommandFailedException( rtl::OUString(),
                                                   xContext,
                                                   xRequest->getRequest() );
        }
    }

    cppu::throwException( xRequest->getRequest() );

    OSL_ENSURE( sal_False, "Return from cppu::throwException call!!!" );
    throw uno::RuntimeException();
}
#endif // SUPD, 641

//=========================================================================
void cancelCommandExecution( const ucb::IOErrorCode eError,
                             const uno::Sequence< uno::Any > & rArgs,
=====================================================================
Found a 31 line (152 tokens) duplication in the following files: 
Starting at line 906 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1310 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
    const uno::Reference< lang::XMultiServiceFactory >& rSMgr,
    const uno::Sequence< beans::Property >& rProperties,
    const ContentProperties& rData,
    const rtl::Reference< ::ucbhelper::ContentProviderImplHelper >& rProvider,
    const rtl::OUString& rContentId )
{
  	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
    	= new ::ucbhelper::PropertyValueSet( rSMgr );

    sal_Int32 nCount = rProperties.getLength();
    if ( nCount )
    {
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
      	sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
      	for ( sal_Int32 n = 0; n < nCount; ++n )
        {
            const beans::Property& rProp = pProps[ n ];
=====================================================================
Found a 17 line (152 tokens) duplication in the following files: 
Starting at line 854 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmoutputpage.cxx
Starting at line 1243 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmoutputpage.cxx

        SfxObjectShellRef xTempDocShell( new SwDocShell( SFX_CREATE_MODE_STANDARD ) );
        xTempDocShell->DoInitNew( 0 );
        SfxViewFrame* pTempFrame = SfxViewFrame::CreateViewFrame( *xTempDocShell, 0, TRUE );
//        pTempFrame->GetFrame()->Appear();
        SwView* pTempView = static_cast<SwView*>( pTempFrame->GetViewShell() );
        pTargetView->GetWrtShell().StartAction();
        SwgReaderOption aOpt;
        aOpt.SetTxtFmts( sal_True );
        aOpt.SetFrmFmts( sal_True );
        aOpt.SetPageDescs( sal_True );
        aOpt.SetNumRules( sal_True );
        aOpt.SetMerge( sal_False );
        pTempView->GetDocShell()->LoadStylesFromFile(
                sTargetTempURL, aOpt, sal_True );
        pTargetView->GetWrtShell().PastePages(pTempView->GetWrtShell(),
                (USHORT)rInfo.nStartPageInTarget, (USHORT)rInfo.nEndPageInTarget );
        pTargetView->GetWrtShell().EndAction();
=====================================================================
Found a 21 line (152 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/app/applab.cxx
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/app/applab.cxx

						sal_uInt16 nCol, sal_uInt16 nRow, sal_Bool bLast, sal_Bool bPage)
{
	SfxItemSet aSet(rSh.GetAttrPool(), RES_ANCHOR, RES_ANCHOR,
						RES_VERT_ORIENT, RES_VERT_ORIENT, RES_HORI_ORIENT, RES_HORI_ORIENT, 0 );
	sal_uInt16 nPhyPageNum, nVirtPageNum;
	rSh.GetPageNum( nPhyPageNum, nVirtPageNum );

	aSet.Put(SwFmtAnchor(bPage ? FLY_IN_CNTNT : FLY_PAGE, nPhyPageNum));
	if (!bPage)
	{
		aSet.Put(SwFmtHoriOrient(rItem.lLeft + nCol * rItem.lHDist,
													HORI_NONE, REL_PG_FRAME ));
		aSet.Put(SwFmtVertOrient(rItem.lUpper + nRow * rItem.lVDist,
													VERT_NONE, REL_PG_FRAME ));
	}
	const SwFrmFmt *pFmt = rSh.NewFlyFrm(aSet, sal_True,  &rFmt );	// Fly einfuegen
	ASSERT( pFmt, "Fly not inserted" );

	rSh.UnSelectFrm();	//Rahmen wurde automatisch selektiert

	rSh.SetTxtFmtColl( rSh.GetTxtCollFromPool( RES_POOLCOLL_STANDARD ) );
=====================================================================
Found a 35 line (152 tokens) duplication in the following files: 
Starting at line 4293 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 4501 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

                    p->nEndPos = p->nStartPos = WW8_CP_MAX;
                else
                    GetNewSprms( *p );
            }
            else
                GetNewSprms( *p );      // bei allen PLCFen initialisiert sein
        }
        else if( p->pPLCFx )
            GetNewNoSprms( *p );
    }
}

WW8PLCFMan::~WW8PLCFMan()
{
    for( USHORT i=0; i<nPLCF; i++)
        delete aD[i].pIdStk;
}

// 0. welche Attr.-Klasse,
// 1. ob ein Attr.-Start ist,
// 2. CP, wo ist naechste Attr.-Aenderung
USHORT WW8PLCFMan::WhereIdx(bool* pbStart, long* pPos) const
{
    ASSERT(nPLCF,"What the hell");
    long nNext = LONG_MAX;  // SuchReihenfolge:
    USHORT nNextIdx = nPLCF;// first ending found ( CHP, PAP, ( SEP ) ),
    bool bStart = true;     // dann Anfaenge finden ( ( SEP ), PAP, CHP )
    USHORT i;
    register const WW8PLCFxDesc* pD;
    for (i=0; i < nPLCF; i++)
    {
        pD = &aD[i];
        if (pD != pPcdA)
        {
            if( (pD->nEndPos < nNext) && (pD->nStartPos == WW8_CP_MAX) )
=====================================================================
Found a 22 line (152 tokens) duplication in the following files: 
Starting at line 2781 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4046 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

			String sBRName = lcl_GetCellName(aNewDesc.nRight, aNewDesc.nBottom);
            const SwTableBox* pTLBox = pTable->GetTblBox( sTLName );
			if(pTLBox)
			{
				// hier muessen die Actions aufgehoben
				UnoActionRemoveContext aRemoveContext(pFmt->GetDoc());
				const SwStartNode* pSttNd = pTLBox->GetSttNd();
				SwPosition aPos(*pSttNd);
				// Cursor in die obere linke Zelle des Ranges setzen
				SwUnoCrsr* pUnoCrsr = pFmt->GetDoc()->CreateUnoCrsr(aPos, sal_True);
				pUnoCrsr->Move( fnMoveForward, fnGoNode );
				pUnoCrsr->SetRemainInSection( sal_False );
                const SwTableBox* pBRBox = pTable->GetTblBox( sBRName );
				if(pBRBox)
				{
					pUnoCrsr->SetMark();
					pUnoCrsr->GetPoint()->nNode = *pBRBox->GetSttNd();
					pUnoCrsr->Move( fnMoveForward, fnGoNode );
					SwUnoTableCrsr* pCrsr = *pUnoCrsr;
					pCrsr->MakeBoxSels();
					// pUnoCrsr wird uebergeben und nicht geloescht
					SwXCellRange* pCellRange = new SwXCellRange(pUnoCrsr, *pFmt, aNewDesc);
=====================================================================
Found a 50 line (152 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx

				sal_Int32 nNewBorder(100L - FRound(fNewBorder));

				// clip
				if(nNewBorder < 0L)
				{
					nNewBorder = 0L;
				}

				if(nNewBorder > 100L)
				{
					nNewBorder = 100L;
				}

				// set
				if(nNewBorder != rG.aGradient.GetBorder())
				{
					rG.aGradient.SetBorder((sal_uInt16)nNewBorder);
				}

				// angle is not definitely necessary for these modes, but it makes
				// controlling more fun for the user
				aFullVec.normalize();
				double fNewFullAngle(atan2(aFullVec.getY(), aFullVec.getX()));
				fNewFullAngle /= F_PI180;
				fNewFullAngle *= -10.0;
				fNewFullAngle += 900.0;

				// clip
				while(fNewFullAngle < 0.0)
				{
					fNewFullAngle += 3600.0;
				}

				while(fNewFullAngle >= 3600.0)
				{
					fNewFullAngle -= 3600.0;
				}

				// to int and set
				const sal_Int32 nNewAngle(FRound(fNewFullAngle));

				if(nNewAngle != rGOld.aGradient.GetAngle())
				{
					rG.aGradient.SetAngle(nNewAngle);
				}
			}

			break;
		}
		case XGRAD_ELLIPTICAL :
=====================================================================
Found a 28 line (152 tokens) duplication in the following files: 
Starting at line 1855 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2127 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

    aValue.WriteCharArray( *rContents );

	WriteAlign(rContents,4);

    nFixedAreaLen = static_cast<sal_uInt16>(rContents->Tell()-nOldPos-4);

	bRet = aFontData.Export(rContents,rPropSet);

    rContents->Seek(nOldPos);
	*rContents << nStandardId;
	*rContents << nFixedAreaLen;

	*rContents << pBlockFlags[0];
	*rContents << pBlockFlags[1];
	*rContents << pBlockFlags[2];
	*rContents << pBlockFlags[3];
	*rContents << pBlockFlags[4];
	*rContents << pBlockFlags[5];
	*rContents << pBlockFlags[6];
	*rContents << pBlockFlags[7];

	DBG_ASSERT((rContents.Is() &&
		(SVSTREAM_OK == rContents->GetError())),"damn");
	return bRet;
}


sal_Bool OCX_TextBox::Export(SvStorageRef &rObj,
=====================================================================
Found a 9 line (152 tokens) duplication in the following files: 
Starting at line 2403 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2518 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1882 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffVertPair mso_sptActionButtonHelpVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I,4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I },
=====================================================================
Found a 12 line (152 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/futempl.cxx
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/app/docst.cxx

                    com::sun::star::uno::Reference< com::sun::star::style::XStyleFamiliesSupplier > xModel(GetModel(), com::sun::star::uno::UNO_QUERY);
                    try
                    {
                        com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xStyles;
                        com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xCont = xModel->getStyleFamilies();
                        xCont->getByName(pFamilyItem->GetValue()) >>= xStyles;
                        com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xInfo;
                        xStyles->getByName( pNameItem->GetValue() ) >>= xInfo;
                        ::rtl::OUString aUIName;
                        xInfo->getPropertyValue( ::rtl::OUString::createFromAscii("DisplayName") ) >>= aUIName;
                        if ( aUIName.getLength() )
                            rReq.AppendItem( SfxStringItem( SID_STYLE_APPLY, aUIName ) );
=====================================================================
Found a 33 line (152 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/testHelperFunctions/testHelperFunctions.cxx
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/unload.cxx

static void rtl_notifyUnloadingListeners();

static sal_Bool isEqualTimeValue ( const TimeValue* time1,  const TimeValue* time2)
{
	if( time1->Seconds == time2->Seconds && 
		time1->Nanosec == time2->Nanosec)
		return sal_True;
	else
		return sal_False;
}

static sal_Bool isGreaterTimeValue(  const TimeValue* time1,  const TimeValue* time2)
{
	sal_Bool retval= sal_False;
	if ( time1->Seconds > time2->Seconds)
		retval= sal_True;
	else if ( time1->Seconds == time2->Seconds)
	{
		if( time1->Nanosec > time2->Nanosec)
			retval= sal_True;
	}
	return retval;
}

static sal_Bool isGreaterEqualTimeValue( const TimeValue* time1, const TimeValue* time2)
{
	if( isEqualTimeValue( time1, time2) )
		return sal_True;
	else if( isGreaterTimeValue( time1, time2))
		return sal_True;
	else
		return sal_False;
}
=====================================================================
Found a 32 line (152 tokens) duplication in the following files: 
Starting at line 5751 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 9507 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

        CPPUNIT_TEST_SUITE( append_006_Int32_defaultParam );
        CPPUNIT_TEST( append_001 ); 
        CPPUNIT_TEST( append_002 );
        CPPUNIT_TEST( append_003 );
        CPPUNIT_TEST( append_004 );
        CPPUNIT_TEST( append_005 );
        CPPUNIT_TEST( append_006 ); 
        CPPUNIT_TEST( append_007 );
        CPPUNIT_TEST( append_008 );
        CPPUNIT_TEST( append_009 );
        CPPUNIT_TEST( append_010 );
        CPPUNIT_TEST( append_011 ); 
        CPPUNIT_TEST( append_012 );
        CPPUNIT_TEST( append_013 );
        CPPUNIT_TEST( append_014 );
        CPPUNIT_TEST( append_015 );
        CPPUNIT_TEST( append_016 ); 
        CPPUNIT_TEST( append_017 );
        CPPUNIT_TEST( append_018 );
        CPPUNIT_TEST( append_019 );
        CPPUNIT_TEST( append_020 );
        CPPUNIT_TEST( append_021 ); 
        CPPUNIT_TEST( append_022 );
        CPPUNIT_TEST( append_023 );
        CPPUNIT_TEST( append_024 );
        CPPUNIT_TEST( append_025 );
#ifdef WITH_CORE
        CPPUNIT_TEST( append_026 ); 
        CPPUNIT_TEST( append_027 );
        CPPUNIT_TEST( append_028 );
        CPPUNIT_TEST( append_029 );
        CPPUNIT_TEST( append_030 );
=====================================================================
Found a 14 line (152 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/ModelImpl.cxx
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/datasource.cxx

using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::embed;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::task;
using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::reflection;
=====================================================================
Found a 27 line (152 tokens) duplication in the following files: 
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testimplhelper.cxx
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testimplhelper.cxx

		{ OSL_TRACE( "> TestWeakAggImpl dtor called... <\n" ); }
	
	// A
	virtual OUString SAL_CALL a() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("a") ); }
	// BA
	virtual OUString SAL_CALL ba() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("ba") ); }
	// CA
	virtual OUString SAL_CALL ca() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("ca") ); }
	// DBA
	virtual OUString SAL_CALL dba() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("dba") ); }
	// E
	virtual OUString SAL_CALL e() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("e") ); }
	// FE
	virtual OUString SAL_CALL fe() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("fe") ); }
	// G
	virtual OUString SAL_CALL g() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("g") ); }
};

//==================================================================================================
struct TestWeakImpl : public WeakImplHelper4< CA, DBA, FE, G >
=====================================================================
Found a 22 line (152 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/InputStream.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Reader.cxx

sal_Int32 SAL_CALL java_io_Reader::available(  ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
	jboolean out(sal_False);
    SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
	if( t.pEnv )
	{
		static const char * cSignature = "()Z";
		static const char * cMethodName = "available";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID )
		{
			out = t.pEnv->CallBooleanMethod( object, mID);
			ThrowSQLException(t.pEnv,*this);
		}
	} //t.pEnv
	return out;
}

void SAL_CALL java_io_Reader::closeInput(  ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 32 line (152 tokens) duplication in the following files: 
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

		pCppI = (cppu_cppInterfaceProxy *)(XInterface *)*(pCallStack +1);
    }
    
	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->pTypeDescr;
	
	OSL_ENSURE( nVtableCall < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	if (nVtableCall >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException(
            OUString::createFromAscii("illegal vtable index!"),
            (XInterface *)pCppI );
	}
	
	// determine called method
	OSL_ENSURE( nVtableCall < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nVtableCall];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
    
	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nVtableCall)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
=====================================================================
Found a 25 line (152 tokens) duplication in the following files: 
Starting at line 646 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vtableOffset)
{
=====================================================================
Found a 23 line (152 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

        ng++;

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr )) 
                // value
		{
=====================================================================
Found a 25 line (151 tokens) duplication in the following files: 
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h
Starting at line 328 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                                          image_subpixel_shift);
            do
            {
                int x_hr;
                int y_hr;

                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                unsigned x1 = m_wrap_mode_x(x_lr);
                unsigned x2 = ++m_wrap_mode_x;
                x1 <<= 2;
                x2 <<= 2;

                unsigned y1 = m_wrap_mode_y(y_lr);
                unsigned y2 = ++m_wrap_mode_y;
                const value_type* ptr1 = (value_type*)base_type::source_image().row(y1);
                const value_type* ptr2 = (value_type*)base_type::source_image().row(y2);

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 37 line (151 tokens) duplication in the following files: 
Starting at line 713 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx
Starting at line 758 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

                                        sal_Int64 nMin, sal_Int64 nMax )
{
    sal_Bool bNeg = sal_False;
    rValue = 0;

    sal_Int32 nPos = 0L;
    sal_Int32 nLen = rString.getLength();

    // skip white space
    while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) )
        nPos++;

    if( nPos < nLen && sal_Unicode('-') == rString[nPos] )
    {
        bNeg = sal_True;
        nPos++;
    }

    // get number
    while( nPos < nLen &&
           sal_Unicode('0') <= rString[nPos] &&
           sal_Unicode('9') >= rString[nPos] )
    {
        // TODO: check overflow!
        rValue *= 10;
        rValue += (rString[nPos] - sal_Unicode('0'));
        nPos++;
    }

    if( bNeg )
        rValue *= -1;

    return ( nPos == nLen && rValue >= nMin && rValue <= nMax );
}

/** convert double number to string (using ::rtl::math) */
void SvXMLUnitConverter::convertDouble(::rtl::OUStringBuffer& rBuffer,
=====================================================================
Found a 17 line (151 tokens) duplication in the following files: 
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx
Starting at line 460 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

	if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight )
	{
		aPosAry.mnSrcX		 = ImplLogicXToDevicePixel( rSrcPt.X() );
		aPosAry.mnSrcY		 = ImplLogicYToDevicePixel( rSrcPt.Y() );
		aPosAry.mnDestX 	 = ImplLogicXToDevicePixel( rDestPt.X() );
		aPosAry.mnDestY 	 = ImplLogicYToDevicePixel( rDestPt.Y() );

		Rectangle	aSrcOutRect( Point( mnOutOffX, mnOutOffY ),
								 Size( mnOutWidth, mnOutHeight ) );
		Rectangle	aSrcRect( Point( aPosAry.mnSrcX, aPosAry.mnSrcY ),
							  Size( aPosAry.mnSrcWidth, aPosAry.mnSrcHeight ) );
		long		nOldRight = aSrcRect.Right();
		long		nOldBottom = aSrcRect.Bottom();

		if ( !aSrcRect.Intersection( aSrcOutRect ).IsEmpty() )
		{
			if ( (aPosAry.mnSrcX+aPosAry.mnSrcWidth-1) > aSrcOutRect.Right() )
=====================================================================
Found a 40 line (151 tokens) duplication in the following files: 
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 306 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

  return m_pImpl->m_aResults.size();
}

//=========================================================================
// virtual
sal_uInt32 DataSupplier::currentCount()
{
	return m_pImpl->m_aResults.size();
}

//=========================================================================
// virtual
sal_Bool DataSupplier::isCountFinal()
{
	return m_pImpl->m_bCountFinal;
}

//=========================================================================
// virtual
uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
                                                    sal_uInt32 nIndex  )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< sdbc::XRow > xRow = m_pImpl->m_aResults[ nIndex ]->xRow;
		if ( xRow.is() )
		{
			// Already cached.
			return xRow;
		}
	}

	if ( getResult( nIndex ) )
	{
        uno::Reference< sdbc::XRow > xRow
            = Content::getPropertyValues(
                m_pImpl->m_xSMgr,
                getResultSet()->getProperties(),
=====================================================================
Found a 33 line (151 tokens) duplication in the following files: 
Starting at line 1014 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/rtffld.cxx
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/rtffld.cxx

			bFldRslt = TRUE;
			break;

		case RTF_U:
			{
				if( nTokenValue )
					sFieldStr += (sal_Unicode)nTokenValue;
				else
					sFieldStr += aToken;
			}
			break;

		case RTF_LINE:			cCh = '\n';	goto INSINGLECHAR;
		case RTF_TAB:			cCh = '\t';	goto INSINGLECHAR;
		case RTF_SUBENTRYINDEX:	cCh = ':';	goto INSINGLECHAR;
		case RTF_EMDASH:		cCh = 151;	goto INSINGLECHAR;
		case RTF_ENDASH:		cCh = 150;	goto INSINGLECHAR;
		case RTF_BULLET:		cCh = 149;	goto INSINGLECHAR;
		case RTF_LQUOTE:		cCh = 145;	goto INSINGLECHAR;
		case RTF_RQUOTE:		cCh = 146;	goto INSINGLECHAR;
		case RTF_LDBLQUOTE:		cCh = 147;	goto INSINGLECHAR;
		case RTF_RDBLQUOTE:		cCh = 148;	goto INSINGLECHAR;
INSINGLECHAR:
			sFieldStr += ByteString::ConvertToUnicode( cCh,
                           					RTL_TEXTENCODING_MS_1252 );
			break;

		// kein Break, aToken wird als Text gesetzt
		case RTF_TEXTTOKEN:
			sFieldStr += aToken;
			break;

		case RTF_PICT:		// Pic-Daten einlesen!
=====================================================================
Found a 24 line (151 tokens) duplication in the following files: 
Starting at line 3112 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4846 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

uno::Sequence< OUString > SwXCellRange::getRowDescriptions(void)
											throw( uno::RuntimeException )
{
	vos::OGuard aGuard(Application::GetSolarMutex());
	sal_Int16 nRowCount = getRowCount();
	if(!nRowCount)
	{
		uno::RuntimeException aRuntime;
		aRuntime.Message = C2U("Table too complex");
		throw aRuntime;
	}
	uno::Sequence< OUString > aRet(bFirstColumnAsLabel ? nRowCount - 1 : nRowCount);
	SwFrmFmt* pFmt = GetFrmFmt();
	if(pFmt)
	{
		OUString* pArray = aRet.getArray();
		if(bFirstColumnAsLabel)
		{
			sal_uInt16 nStart = bFirstRowAsLabel ? 1 : 0;
			for(sal_uInt16 i = nStart; i < nRowCount; i++)
			{
				uno::Reference< table::XCell >  xCell = getCellByPosition(0, i);
				if(!xCell.is())
				{
=====================================================================
Found a 9 line (151 tokens) duplication in the following files: 
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/unoimap.cxx
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/unoimap.cxx
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/unoimap.cxx

			static PropertyMapEntry aRectangleObj_Impl[] =
			{
				{ MAP_LEN( "URL" ),			HANDLE_URL,			&::getCppuType((const OUString*)0),	0, 0 },
				{ MAP_LEN( "Title" ),		HANDLE_TITLE,		&::getCppuType((const OUString*)0),		0, 0 },
				{ MAP_LEN( "Description" ),	HANDLE_DESCRIPTION, &::getCppuType((const OUString*)0),	0, 0 },
				{ MAP_LEN( "Target" ),		HANDLE_TARGET,		&::getCppuType((const OUString*)0),	0, 0 },
				{ MAP_LEN( "Name" ),		HANDLE_NAME,		&::getCppuType((const OUString*)0),	0, 0 },
				{ MAP_LEN( "IsActive" ),	HANDLE_ISACTIVE,	&::getBooleanCppuType(),			0, 0 },
				{ MAP_LEN( "Boundary" ),	HANDLE_BOUNDARY,	&::getCppuType((const awt::Rectangle*)0),	0, 0 },
=====================================================================
Found a 35 line (151 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/toolpanel/ScrollPanel.cxx
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/toolpanel/SubToolPanel.cxx

Size SubToolPanel::GetRequiredSize (void)
{
    // First determine the width of the children.  This is the maximum of
    // the current window width and the individual minimum widths of the
    // children. 
    int nChildrenWidth (GetSizePixel().Width());
    unsigned int nCount = mpControlContainer->GetControlCount();
    unsigned int nIndex;
    for (nIndex=0; nIndex<nCount; nIndex++)
    {
        TreeNode* pChild = mpControlContainer->GetControl (nIndex);
        int nMinimumWidth (pChild->GetMinimumWidth());
        if (nMinimumWidth > nChildrenWidth)
            nChildrenWidth = nMinimumWidth;
    }

    // Determine the accumulated width of all children when scaled to the
    // minimum width.
    nChildrenWidth -= 2*mnHorizontalBorder;
    Size aTotalSize (nChildrenWidth, 
        2*mnVerticalBorder + (nCount-1) * mnVerticalGap);
    for (nIndex=0; nIndex<nCount; nIndex++)
    {
        TreeNode* pChild = mpControlContainer->GetControl (nIndex);
        sal_Int32 nHeight = pChild->GetPreferredHeight(nChildrenWidth);
        aTotalSize.Height() += nHeight;
    }

    return aTotalSize;
}




sal_Int32 SubToolPanel::LayoutChildren (void)
=====================================================================
Found a 31 line (151 tokens) duplication in the following files: 
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/cpp/remoteclient/remoteclient.cxx
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/examples/officeclient.cxx

			}
			
		}
		catch( ConnectionSetupException &e )
		{
			OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
			printf( "%s\n", o.pData->buffer );
			printf( "couldn't access local resource ( possible security resons )\n" );
		}
		catch( NoConnectException &e )
		{
			OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
			printf( "%s\n", o.pData->buffer );
			printf( "no server listening on the resource\n" );
		}
		catch( IllegalArgumentException &e )
		{
			OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
			printf( "%s\n", o.pData->buffer );
			printf( "uno url invalid\n" );
		}
		catch( RuntimeException & e )
		{
			OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
			printf( "%s\n", o.pData->buffer );
			printf( "a remote call was aborted\n" );
		}
	}
	else
	{
		printf( "usage: (uno officeclient-component --) uno-url\n" 
=====================================================================
Found a 6 line (151 tokens) duplication in the following files: 
Starting at line 1260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,// 24e0 - 24ef
=====================================================================
Found a 5 line (151 tokens) duplication in the following files: 
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30a0 - 30af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30b0 - 30bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30c0 - 30cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30d0 - 30df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30e0 - 30ef
=====================================================================
Found a 5 line (151 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1279 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f70 - 1f7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f80 - 1f8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f90 - 1f9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1fa0 - 1faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,// 1fb0 - 1fbf
=====================================================================
Found a 26 line (151 tokens) duplication in the following files: 
Starting at line 474 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/uicommanddescription.cxx
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/uicommanddescription.cxx

                    aCmdToInfo.bPopup = sal_True;
                    a = xNameAccess->getByName( m_aPropUILabel );
                    a >>= aCmdToInfo.aLabel;
                    a = xNameAccess->getByName( m_aPropUIContextLabel );
                    a >>= aCmdToInfo.aContextLabel;
                    a = xNameAccess->getByName( m_aPropProperties );
                    a >>= aCmdToInfo.nProperties;

                    m_aCmdInfoCache.insert( CommandToInfoCache::value_type( aNameSeq[i], aCmdToInfo ));

                    if ( aCmdToInfo.nProperties & COMMAND_PROPERTY_IMAGE )
                        aImageCommandVector.push_back( aNameSeq[i] );
                    if ( aCmdToInfo.nProperties & COMMAND_PROPERTY_ROTATE )
                        aImageRotateVector.push_back( aNameSeq[i] );
                    if ( aCmdToInfo.nProperties & COMMAND_PROPERTY_MIRROR )
                        aImageMirrorVector.push_back( aNameSeq[i] );
                }
            }
            catch ( com::sun::star::lang::WrappedTargetException& )
            {
            }
            catch ( com::sun::star::container::NoSuchElementException& )
            {
            }
        }
    }
=====================================================================
Found a 6 line (151 tokens) duplication in the following files: 
Starting at line 942 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 873 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

				const long	nYLinePos = aBaseLinePos.Y() + ( nLineHeight << 1 );

				aPoly[ 0 ].X() = aBaseLinePos.X(); aPoly[ 0 ].Y() = nYLinePos - ( nLineHeight >> 1 );
				aPoly[ 1 ].X() = aBaseLinePos.X() + aNormSize.Width() - 1; aPoly[ 1 ].Y() = aPoly[ 0 ].Y();
				aPoly[ 2 ].X() = aPoly[ 1 ].X(); aPoly[ 2 ].Y() = aPoly[ 0 ].Y() + nLineHeight - 1;
				aPoly[ 3 ].X() = aPoly[ 0 ].X(); aPoly[ 3 ].Y() = aPoly[ 2 ].Y();
=====================================================================
Found a 27 line (151 tokens) duplication in the following files: 
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

			aStyle += NMSP_RTL::OUString::valueOf( ( 255 - (double) rLineColor.GetTransparency() ) / 255.0 );
		}
	}

	// fill color
	aStyle += B2UCONST( ";" );
	aStyle += B2UCONST( "fill:" );
	
	if( rFillColor.GetTransparency() == 255 )
		aStyle += B2UCONST( "none" );
	else
	{
		// fill color value in rgb
		aStyle += B2UCONST( "rgb(" );
		aStyle += NMSP_RTL::OUString::valueOf( (sal_Int32) rFillColor.GetRed() );
		aStyle += B2UCONST( "," );
		aStyle += NMSP_RTL::OUString::valueOf( (sal_Int32) rFillColor.GetGreen() );
		aStyle += B2UCONST( "," );
		aStyle += NMSP_RTL::OUString::valueOf( (sal_Int32) rFillColor.GetBlue() );
		aStyle += B2UCONST( ")" );

		// fill color opacity in percent if neccessary
		if( rFillColor.GetTransparency() )
		{
			aStyle += B2UCONST( ";" );
			aStyle += B2UCONST( "fill-opacity:" );
			aStyle += NMSP_RTL::OUString::valueOf( ( 255 - (double) rFillColor.GetTransparency() ) / 255.0 );
=====================================================================
Found a 10 line (151 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/aqua/HtmlFmtFlt.cxx
Starting at line 375 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/dtobj/FmtFilter.cxx

std::string GetHtmlFormatHeader(size_t startHtml, size_t endHtml, size_t startFragment, size_t endFragment)
{
    std::ostringstream htmlHeader;
    htmlHeader << "Version:1.0" << '\r' << '\n';
    htmlHeader << "StartHTML:" << std::setw(10) << std::setfill('0') << std::dec << startHtml << '\r' << '\n';
	htmlHeader << "EndHTML:" << std::setw(10) << std::setfill('0') << std::dec << endHtml << '\r' << '\n';
	htmlHeader << "StartFragment:" << std::setw(10) << std::setfill('0') << std::dec << startFragment << '\r' << '\n';
	htmlHeader << "EndFragment:" << std::setw(10) << std::setfill('0') << std::dec << endFragment << '\r' << '\n';
    return htmlHeader.str();
}
=====================================================================
Found a 26 line (151 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/qssl/runargv.c
Starting at line 672 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/runargv.c

      Do_profile_output( "e", M_RECIPE, _procs[i].pr_target );

   _proc_cnt--;
   dir = DmStrDup(Get_current_dir());
   Set_dir( _procs[i].pr_dir );

   if( _procs[i].pr_recipe != NIL(RCP) && !_abort_flg ) {
      RCPPTR rp = _procs[i].pr_recipe;


      Current_target = _procs[i].pr_target;
      Handle_result( status, _procs[i].pr_ignore, FALSE, _procs[i].pr_target );
      Current_target = NIL(CELL);

      if ( _procs[i].pr_target->ce_attr & A_ERROR ) {
	 Unlink_temp_files( _procs[i].pr_target );
	 _procs[i].pr_last = TRUE;
	 goto ABORT_REMAINDER_OF_RECIPE;
      }

      _procs[i].pr_recipe = rp->prp_next;

      _use_i = i;
      /* Run next recipe line. The rp->prp_attr propagates a possible
       * wfc condition. */
      runargv( _procs[i].pr_target, rp->prp_group,
=====================================================================
Found a 25 line (151 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.cxx
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/workben/iniParser/main.cxx

	void Dump()
	{
		IniSectionMap::iterator iBegin = mAllSection.begin();
		IniSectionMap::iterator iEnd = mAllSection.end();
		for(;iBegin != iEnd;iBegin++)
		{
			ini_Section *aSection = &(*iBegin).second;
			OString sec_name_tmp = OUStringToOString(aSection->sName, RTL_TEXTENCODING_ASCII_US);
			for(NameValueList::iterator itor=aSection->lList.begin();
				itor != aSection->lList.end();
				itor++)
			{
					struct ini_NameValue * aValue = &(*itor);
					OString name_tmp = OUStringToOString(aValue->sName, RTL_TEXTENCODING_ASCII_US);
					OString value_tmp = OUStringToOString(aValue->sValue, RTL_TEXTENCODING_UTF8);
					OSL_TRACE(
						" section=%s name=%s value=%s\n",
										sec_name_tmp.getStr(),
										name_tmp.getStr(),
										value_tmp.getStr() );

			}
		}

	}
=====================================================================
Found a 29 line (151 tokens) duplication in the following files: 
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/streaming/oslfile2streamwrap.cxx
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/misc/oslstream.cxx

OSLInputStreamWrapper::OSLInputStreamWrapper( File& _rFile )
				 :m_pFile(&_rFile)
				 ,m_bFileOwner(sal_False)
{
}

//------------------------------------------------------------------
OSLInputStreamWrapper::OSLInputStreamWrapper( File* pStream, sal_Bool bOwner )
				 :m_pFile( pStream )
				 ,m_bFileOwner( bOwner )
{
}

//------------------------------------------------------------------
OSLInputStreamWrapper::~OSLInputStreamWrapper()
{
	if( m_bFileOwner )
		delete m_pFile;
}

//------------------------------------------------------------------------------
sal_Int32 SAL_CALL OSLInputStreamWrapper::readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
				throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
	if (!m_pFile)
		throw stario::NotConnectedException(::rtl::OUString(), static_cast<staruno::XWeak*>(this));

	if (nBytesToRead < 0)
		throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));
=====================================================================
Found a 30 line (151 tokens) duplication in the following files: 
Starting at line 2233 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 2427 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx

	if (superType.getLength() > 0)
	{
		o << "  ret = bonobobridge::cpp_convert_u2b((";
		dumpCorbaType(o, superType, sal_False, sal_False);
		o << "&) _u, (const ";
		dumpUnoType(o, superType, sal_False, sal_False);
		o << "&) _b, bridge);\n";
	}
	
	for (i=0; i < fieldCount; i++)
	{
		fieldName = m_reader.getFieldName(i);
		fieldType = m_reader.getFieldType(i);
		
		cIndex = fieldName.indexOf("_reserved_identifier_");

		if (cIndex == 0)
			corbaFieldName = fieldName.copy(OString("_reserved_identifier_").getLength());
		else
			corbaFieldName = fieldName;

		if (isArray(fieldType))
			o << "  // fix me: no conversion of array types!\n";
		else
			o << "  if (ret)\n"
			  << "    ret = bonobobridge::cpp_convert_u2b(" 
			  << "_b." << corbaFieldName.getStr() 
			  << ", _u." << fieldName.getStr()
			  << ", bridge);\n";
	}		
=====================================================================
Found a 25 line (151 tokens) duplication in the following files: 
Starting at line 716 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 790 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx

sal_Bool CorbaType::isArray(const OString& type)
{
	sal_Bool ret = sal_False;

	OString sType(checkSpecialCorbaType(type));

	sal_Int32 index = sType.lastIndexOf(']');
	sal_Int32 seqNum = (index > 0 ? ((index+1) / 2) : 0);
	
	OString relType = (index > 0 ? (sType).copy(index+1) : type);

	if (index > 0)
	{
		OString fakeTest;

		sal_Int32 j = type.lastIndexOf('/');
		if (j >= 0)
			fakeTest = type.copy(0, j+1)+"_faked_array_"+type.copy(j+1);
		else
			fakeTest = "_faked_array_"+sType;

		TypeReader fakeTestReader = m_typeMgr.getTypeReader(fakeTest);
		
		if (fakeTestReader.isValid())
			ret = sal_True;
=====================================================================
Found a 25 line (151 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

						  : pCppReturn); // direct way
		}
	}
	// pop this
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr )) // value
=====================================================================
Found a 29 line (151 tokens) duplication in the following files: 
Starting at line 446 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx

                    (void **)&pInterface, pCppI->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( gpreg[0] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *(void **)pRegisterReturn = gpreg[0];
                    eRet = typelib_TypeClass_ANY;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	default:
	{
		throw RuntimeException(
=====================================================================
Found a 21 line (151 tokens) duplication in the following files: 
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
=====================================================================
Found a 36 line (150 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_boolean_algebra.h
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_boolean_algebra.h
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_boolean_algebra.h

    {
        enum
        {
            cover_shift = CoverShift,
            cover_size  = 1 << cover_shift,
            cover_mask  = cover_size - 1,
            cover_full  = cover_mask
        };
        

        void operator () (const typename Scanline1::const_iterator& span1, 
                          const typename Scanline2::const_iterator& span2, 
                          int x, unsigned len, 
                          Scanline& sl) const
        {
            unsigned cover;
            const typename Scanline1::cover_type* covers1;
            const typename Scanline2::cover_type* covers2;

            // Calculate the operation code and choose the 
            // proper combination algorithm.
            // 0 = Both spans are of AA type
            // 1 = span1 is solid, span2 is AA
            // 2 = span1 is AA, span2 is solid
            // 3 = Both spans are of solid type
            //-----------------
            switch((span1->len < 0) | ((span2->len < 0) << 1))
            {
            case 0:      // Both are AA spans
                covers1 = span1->covers;
                covers2 = span2->covers;
                if(span1->x < x) covers1 += x - span1->x;
                if(span2->x < x) covers2 += x - span2->x;
                do
                {
                    cover = XorFormula::calculate(*covers1++, *covers2++);
=====================================================================
Found a 6 line (150 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_mask.h

 0x3f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 17 line (150 tokens) duplication in the following files: 
Starting at line 1092 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx
Starting at line 1127 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

							aCol1 = pReadAcc->GetPixel( nY, nTemp );

							nTemp = pLutFrac[ nX ];

							lXR1 = aCol1.GetRed() - ( lXR0 = aCol0.GetRed() );
							lXG1 = aCol1.GetGreen() - ( lXG0 = aCol0.GetGreen() );
							lXB1 = aCol1.GetBlue() - ( lXB0 = aCol0.GetBlue() );

							aCol0.SetRed( (BYTE) ( ( lXR1 * nTemp + ( lXR0 << 10 ) ) >> 10 ) );
							aCol0.SetGreen( (BYTE) ( ( lXG1 * nTemp + ( lXG0 << 10 ) ) >> 10 ) );
							aCol0.SetBlue( (BYTE) ( ( lXB1 * nTemp + ( lXB0 << 10 ) ) >> 10 ) );

							pWriteAcc->SetPixel( nY, nX, aCol0 );
						}
					}
				}
			}
=====================================================================
Found a 25 line (150 tokens) duplication in the following files: 
Starting at line 566 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx
Starting at line 3210 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx

                rMMConfig.GetCurrentDBData(), xResultSet, rMMConfig.GetSelection());

    try{
        //set to start position
        if(pImpl->pMergeData->aSelection.getLength())
        {
            sal_Int32 nPos = 0;
            pImpl->pMergeData->aSelection.getConstArray()[ pImpl->pMergeData->nSelectionIndex++ ] >>= nPos;
            pImpl->pMergeData->bEndOfDB = !pImpl->pMergeData->xResultSet->absolute( nPos );
            pImpl->pMergeData->CheckEndOfDB();
            if(pImpl->pMergeData->nSelectionIndex >= pImpl->pMergeData->aSelection.getLength())
                pImpl->pMergeData->bEndOfDB = TRUE;
        }
        else
        {
            pImpl->pMergeData->bEndOfDB = !pImpl->pMergeData->xResultSet->first();
            pImpl->pMergeData->CheckEndOfDB();
        }
    }
    catch(Exception&)
    {
        pImpl->pMergeData->bEndOfDB = TRUE;
        pImpl->pMergeData->CheckEndOfDB();
        DBG_ERROR("exception in MergeNew()")
    }
=====================================================================
Found a 40 line (150 tokens) duplication in the following files: 
Starting at line 3626 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3797 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        p->nStartPos = WW8_CP_MAX;            // PLCF fertig abgearbeitet
        return;
    }

    p->nEndPos = nP;

    pPLCF->SetIdx(n);

    p->nCp2OrIdx = pPLCF->GetIdx();
}

WW8PLCFx& WW8PLCFx_FLD::operator ++( int )
{
    (*pPLCF)++;
    return *this;
}

bool WW8PLCFx_FLD::GetPara(long nIdx, WW8FieldDesc& rF)
{
    ASSERT( pPLCF, "Aufruf ohne Feld PLCFspecial" );
    if( !pPLCF )
        return false;

    long n = pPLCF->GetIdx();
    pPLCF->SetIdx(nIdx);

    bool bOk = WW8GetFieldPara(*pPLCF, rF);

    pPLCF->SetIdx(n);
    return bOk;
}

//-----------------------------------------
//      class WW8PLCF_Book
//-----------------------------------------

/*  to be optimized like this:    */
void WW8ReadSTTBF(bool bVer8, SvStream& rStrm, UINT32 nStart, INT32 nLen,
    USHORT nExtraLen, rtl_TextEncoding eCS, std::vector<String> &rArray,
    std::vector<ww::bytes>* pExtraArray, ::std::vector<String>* pValueArray)
=====================================================================
Found a 28 line (150 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docfmt.cxx
Starting at line 890 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docfmt.cxx

			const String& rStr = pTxtNd->GetTxt();

			// JP 22.08.96: Sonderfall: steht der Crsr in einem URL-Attribut
			//				dann wird dessen Bereich genommen
			const SwTxtAttr* pURLAttr;
			if( pTxtNd->HasHints() &&
				0 != ( pURLAttr = pTxtNd->GetTxtAttr( rSt, RES_TXTATR_INETFMT ))
				&& pURLAttr->GetINetFmt().GetValue().Len() )
			{
				nMkPos = *pURLAttr->GetStart();
				nPtPos = *pURLAttr->GetEnd();
			}
			else
			{
				Boundary aBndry;
				if( pBreakIt->xBreak.is() )
					aBndry = pBreakIt->xBreak->getWordBoundary(
								pTxtNd->GetTxt(), nPtPos,
								pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos ) ),
								WordType::ANY_WORD /*ANYWORD_IGNOREWHITESPACES*/,
								TRUE );

				if( aBndry.startPos < nPtPos && nPtPos < aBndry.endPos )
				{
					nMkPos = (xub_StrLen)aBndry.startPos;
					nPtPos = (xub_StrLen)aBndry.endPos;
				}
				else
=====================================================================
Found a 39 line (150 tokens) duplication in the following files: 
Starting at line 3883 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3102 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

				rPolyPolygon.transform(aTwipsToMM);

				break;
			}
			default:
			{
				DBG_ERROR("TRGetBaseGeometry: Missing unit translation to 100th mm!");
			}
		}
	}

	// build return value matrix
	rMatrix.identity();

    if(!basegfx::fTools::equal(aScale.getX(), 1.0) || !basegfx::fTools::equal(aScale.getY(), 1.0))
    {
    	rMatrix.scale(aScale.getX(), aScale.getY());
    }

    if(!basegfx::fTools::equalZero(fShearX))
    {
    	rMatrix.shearX(tan(fShearX));
    }

    if(!basegfx::fTools::equalZero(fRotate))
    {
        // #i78696#
        // fRotate is from the old GeoStat and thus mathematically wrong orientated. For 
        // the linear combination of matrices it needed to be fixed in the API, so it needs to
        // be mirrored here
        rMatrix.rotate(-fRotate);
    }

    if(!aTranslate.equalZero())
    {
        rMatrix.translate(aTranslate.getX(), aTranslate.getY());
    }

	return sal_True;
=====================================================================
Found a 14 line (150 tokens) duplication in the following files: 
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdglev.cxx
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdglev.cxx

	ULONG nMarkAnz=GetMarkedObjectCount();
	for (ULONG nm=0; nm<nMarkAnz; nm++) {
		SdrMark* pM=GetSdrMarkByIndex(nm);
		SdrObject* pObj=pM->GetMarkedSdrObj();
		const SdrUShortCont* pPts=pM->GetMarkedGluePoints();
		ULONG nPtAnz=pPts==NULL ? 0 : pPts->GetCount();
		if (nPtAnz!=0) {
			SdrGluePointList* pGPL=pObj->ForceGluePointList();
			if (pGPL!=NULL) {
				AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*pObj));
				for (ULONG nPtNum=0; nPtNum<nPtAnz; nPtNum++) {
					USHORT nPtId=pPts->GetObject(nPtNum);
					USHORT nGlueIdx=pGPL->FindGluePoint(nPtId);
					if (nGlueIdx!=SDRGLUEPOINT_NOTFOUND) {
=====================================================================
Found a 18 line (150 tokens) duplication in the following files: 
Starting at line 1578 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2171 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 5450 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x49, 0x6D, 0x61, 0x67, 0x65, 0x2E, 0x31, 0x00,
		0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor( rObj->OpenSotStream( C2S("\1CompObj")));
	xStor->Write(aCompObj,sizeof(aCompObj));
	DBG_ASSERT((xStor.Is() && (SVSTREAM_OK == xStor->GetError())),"damn");
	}

	{
	SvStorageStreamRef xStor3( rObj->OpenSotStream( C2S("\3ObjInfo")));
	xStor3->Write(aObjInfo,sizeof(aObjInfo));
	DBG_ASSERT((xStor3.Is() && (SVSTREAM_OK == xStor3->GetError())),"damn");
	}

	static sal_uInt8 __READONLY_DATA aOCXNAME[] = {
=====================================================================
Found a 11 line (150 tokens) duplication in the following files: 
Starting at line 2491 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2215 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonEndVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 },	{ 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 },	{ 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },
	
	{ 0x16 MSO_I, 10800 }, { 0x12 MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0xc MSO_I },
=====================================================================
Found a 11 line (150 tokens) duplication in the following files: 
Starting at line 2424 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2149 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonBeginningVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },
	
	{ 0xa MSO_I, 10800 }, { 0xe MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0xc MSO_I },
=====================================================================
Found a 11 line (150 tokens) duplication in the following files: 
Starting at line 2348 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2075 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonBackPreviousVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I,4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },
	
	{ 0xa MSO_I, 10800 }, { 0xe MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I }
=====================================================================
Found a 40 line (150 tokens) duplication in the following files: 
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/logindlg.cxx
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/uui/source/logindlg.cxx

	aRequestInfo.SetText(aRequest);

	FreeResource();

	aPathED.SetMaxTextLen( _MAX_PATH );
	aNameED.SetMaxTextLen( _MAX_PATH );

	aOKBtn.SetClickHdl( LINK( this, LoginDialog, OKHdl_Impl ) );
	aPathBtn.SetClickHdl( LINK( this, LoginDialog, PathHdl_Impl ) );

	HideControls_Impl( nFlags );
};

// -----------------------------------------------------------------------

void LoginDialog::SetName( const String& rNewName )
{
	aNameED.SetText( rNewName );
	aNameInfo.SetText( rNewName );
}

// -----------------------------------------------------------------------

void LoginDialog::ClearPassword()
{
	aPasswordED.SetText( String() );

	if ( 0 == aNameED.GetText().Len() )
		aNameED.GrabFocus();
	else
		aPasswordED.GrabFocus();
};

// -----------------------------------------------------------------------

void LoginDialog::ClearAccount()
{
	aAccountED.SetText( String() );
	aAccountED.GrabFocus();
};
=====================================================================
Found a 33 line (150 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/bmpmaker/bmp.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/bmpmaker/bmpsum.cxx

BOOL BmpSum::GetCommandOption( const ::std::vector< String >& rArgs, const String& rSwitch, String& rParam )
{
	BOOL bRet = FALSE;

	for( int i = 0, nCount = rArgs.size(); ( i < nCount ) && !bRet; i++ )
	{
		String	aTestStr( '-' );

		for( int n = 0; ( n < 2 ) && !bRet; n++ )
		{
			aTestStr += rSwitch;

			if( aTestStr.CompareIgnoreCaseToAscii( rArgs[ i ] ) == COMPARE_EQUAL )
			{
				bRet = TRUE;

				if( i < ( nCount - 1 ) )
					rParam = rArgs[ i + 1 ];
				else
					rParam = String();
			}

			if( 0 == n )
				aTestStr = '/';
		}
	}

	return bRet;
}

// -----------------------------------------------------------------------

BOOL BmpSum::GetCommandOptions( const ::std::vector< String >& rArgs, const String& rSwitch, ::std::vector< String >& rParams )
=====================================================================
Found a 27 line (150 tokens) duplication in the following files: 
Starting at line 1647 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx
Starting at line 1715 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/outplace.cxx

			SotStorageStreamRef xOleObjStm =
				pImpl->xWorkingStg->OpenSotStream( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "Ole-Object" ) ),
													STREAM_STD_READ );
			if( xOleObjStm->GetError() )
				return FALSE;

			SvCacheStream aStm;
			aStm << *xOleObjStm;
			aStm.Seek( 0 );
			SotStorageRef xOleObjStor = new SotStorage( aStm );
			if( xOleObjStor->GetError() )
				return FALSE;

			// delete all storage entries
			SvStorageInfoList aList;
			pStor->FillInfoList( &aList );
			for( UINT32 i = 0; i < aList.Count(); i++ )
			{
				// workaround a bug in our storage implementation
				String aTmpName( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "Temp-Delete" ) ) );
				aTmpName += String::CreateFromInt32( nUniqueId++ );
				pStor->Rename( aList[i].GetName(), aTmpName );
				pStor->Remove( aTmpName );

				//pStor->Remove( aList[i].GetName() );
			}
			xOleObjStor->CopyTo( pStor );
=====================================================================
Found a 28 line (150 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx

	OutputDebugStringFormat( TEXT("*** Retrieving Key Names for [%s] ***"), aSectionName.c_str() );

	if ( fp )
	{
		std::_tstring line;
		std::_tstring section;
		
		while ( readLine( fp, line ) )
		{
			line = trim( line );
			
			if ( line.length() && line[0] == '[' )
			{
				line.erase( 0, 1 );
				std::_tstring::size_type end = line.find( ']', 0 );
				
				if ( std::_tstring::npos != end )
					section = trim( line.substr( 0, end ) );
			}
			else
			{

				std::_tstring::size_type iEqualSign = line.find( '=', 0 ); 

				if ( iEqualSign != std::_tstring::npos )
				{
					std::_tstring	keyname = line.substr( 0, iEqualSign );
					keyname = trim( keyname );
=====================================================================
Found a 21 line (150 tokens) duplication in the following files: 
Starting at line 596 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/datauno.cxx
Starting at line 690 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/datauno.cxx

		SCCOL nCount = static_cast<SCCOL>(nColCount);
		aParam.nSubTotals[nPos] = nCount;
		if (nCount != 0)
		{
			aParam.pSubTotals[nPos] = new SCCOL[nCount];
			aParam.pFunctions[nPos] = new ScSubTotalFunc[nCount];

			const sheet::SubTotalColumn* pAry = aSubTotalColumns.getConstArray();
			for (SCCOL i=0; i<nCount; i++)
			{
				aParam.pSubTotals[nPos][i] = static_cast<SCCOL>(pAry[i].Column);
				aParam.pFunctions[nPos][i] =
							ScDataUnoConversion::GeneralToSubTotal( pAry[i].Function );
			}
		}
		else
		{
			aParam.pSubTotals[nPos] = NULL;
			aParam.pFunctions[nPos] = NULL;
		}
	}
=====================================================================
Found a 17 line (150 tokens) duplication in the following files: 
Starting at line 1595 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1859 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

SvXMLImportContext *ScXMLDeletionContext::CreateChildContext( USHORT nPrefix,
									 const ::rtl::OUString& rLocalName,
									 const ::com::sun::star::uno::Reference<
									  	::com::sun::star::xml::sax::XAttributeList>& xAttrList )
{
	SvXMLImportContext *pContext(0);

	if ((nPrefix == XML_NAMESPACE_OFFICE) && (IsXMLToken(rLocalName, XML_CHANGE_INFO)))
	{
		pContext = new ScXMLChangeInfoContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
	}
	else if (nPrefix == XML_NAMESPACE_TABLE)
	{
		if (IsXMLToken(rLocalName, XML_DEPENDENCIES))
			pContext = new ScXMLDependingsContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
		else if (IsXMLToken(rLocalName, XML_DELETIONS))
			pContext = new ScXMLDeletionsContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
=====================================================================
Found a 25 line (150 tokens) duplication in the following files: 
Starting at line 1265 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1335 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1370 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1406 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

ScMatrixRef ScInterpreter::MatPow(ScMatrix* pMat1, ScMatrix* pMat2)
{
	SCSIZE nC1, nC2, nMinC;
	SCSIZE nR1, nR2, nMinR;
	SCSIZE i, j;
	pMat1->GetDimensions(nC1, nR1);
	pMat2->GetDimensions(nC2, nR2);
	if (nC1 < nC2)
		nMinC = nC1;
	else
		nMinC = nC2;
	if (nR1 < nR2)
		nMinR = nR1;
	else
		nMinR = nR2;
	ScMatrixRef xResMat = GetNewMat(nMinC, nMinR);
	if (xResMat)
	{
        ScMatrix* pResMat = xResMat;
		for (i = 0; i < nMinC; i++)
		{
			for (j = 0; j < nMinR; j++)
			{
				if (pMat1->IsValueOrEmpty(i,j) && pMat2->IsValueOrEmpty(i,j))
					pResMat->PutDouble(pow(pMat1->GetDouble(i,j),
=====================================================================
Found a 69 line (150 tokens) duplication in the following files: 
Starting at line 700 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_SocketAddr.cxx

using namespace rtl;

#define IP_PORT_ZERO   0
#define IP_PORT_FTP    21
#define IP_PORT_TELNET 23
#define IP_PORT_HTTP1  80
#define IP_PORT_HTTP2  8080

#define IP_PORT_MYPORT  8881 	//8888
#define IP_PORT_MYPORT2  8883	//8890
#define IP_PORT_MYPORT3  8884	//8891
#define IP_PORT_INVAL  99999
#define IP_PORT_MYPORT4  8885	//8892
#define IP_PORT_NETBIOS_DGM  138


namespace osl_SocketAddr
{

	/** testing the methods:
		inline SocketAddr();
		inline SocketAddr(const SocketAddr& Addr);
		inline SocketAddr(const oslSocketAddr , __osl_socket_NoCopy nocopy );
		inline SocketAddr(oslSocketAddr Addr);
		inline SocketAddr( const ::rtl::OUString& strAddrOrHostName, sal_Int32 nPort );		
	*/

	class ctors : public CppUnit::TestFixture
	{
	public:
	
		void ctors_none()
		{
			/// SocketAddr constructor.
			::osl::SocketAddr saSocketAddr;
	
            // oslSocketResult aResult;
            // rtl::OUString suHost = saSocketAddr.getLocalHostname( &aResult);

            // rtl::OUString suHost2 = getThisHostname();

			CPPUNIT_ASSERT_MESSAGE("test for none parameter constructor function: check if the socket address was created successfully", 
									sal_True == saSocketAddr.is( ) );
		}
	
		void ctors_none_000()
		{
			/// SocketAddr constructor.
			::osl::SocketAddr saSocketAddr;
	
            oslSocketResult aResult;
            rtl::OUString suHost = saSocketAddr.getLocalHostname( &aResult);
            rtl::OUString suHost2 = getThisHostname();

            sal_Bool bOk = compareUString(suHost, suHost2);
            
            rtl::OUString suError = rtl::OUString::createFromAscii("Host names should be the same. From SocketAddr.getLocalHostname() it is'");
            suError += suHost;
            suError += rtl::OUString::createFromAscii("', from getThisHostname() it is '");
            suError += suHost2;
            suError += rtl::OUString::createFromAscii("'.");
            
			CPPUNIT_ASSERT_MESSAGE(suError, sal_True == bOk);
		}

		void ctors_copy()
		{
			/// SocketAddr copy constructor.
			::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 );
=====================================================================
Found a 31 line (150 tokens) duplication in the following files: 
Starting at line 895 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 771 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

        OSL_TRACE("Out osl_removeProfileEntry [pProfile==0]\n");
#endif


		return (sal_False);
    }


	if (! (pProfile->m_Flags & osl_Profile_SYSTEM))
	{
		if (((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) != NULL) &&
			(NoEntry < pSec->m_NoEntries))
		{
			removeLine(pProfile, pSec->m_Entries[NoEntry].m_Line);
			removeEntry(pSec, NoEntry);
			if (pSec->m_NoEntries == 0)
			{
				removeLine(pProfile, pSec->m_Line);

				/* remove any empty separation line */
				if ((pSec->m_Line > 0) && (pProfile->m_Lines[pSec->m_Line - 1][0] == '\0'))
		            removeLine(pProfile, pSec->m_Line - 1);

				removeSection(pProfile, pSec);
			}

			pProfile->m_Flags |= FLG_MODIFIED;
		}
	}
	else
	{
=====================================================================
Found a 12 line (150 tokens) duplication in the following files: 
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1
    } ;

static yyconst int yy_meta[26] =
=====================================================================
Found a 35 line (150 tokens) duplication in the following files: 
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 334 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

void SAL_CALL OReadMenuDocumentHandler::characters(const rtl::OUString&)
throw(	SAXException, RuntimeException )
{
}


void SAL_CALL OReadMenuDocumentHandler::endElement( const OUString& aName )
	throw( SAXException, RuntimeException )
{
	if ( m_bMenuBarMode )
	{
		--m_nElementDepth;
		m_xReader->endElement( aName );
		if ( 0 == m_nElementDepth )
		{
			m_xReader->endDocument();
			m_xReader = Reference< XDocumentHandler >();
			m_bMenuBarMode = sal_False;
			if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUBAR )))
			{
				OUString aErrorMessage = getErrorLineString();
				aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "closing element menubar expected!" ));
				throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
			}
		}
	}
}


// -----------------------------------------------------------------------------


// #110897#
OReadMenuBarHandler::OReadMenuBarHandler( 
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
=====================================================================
Found a 58 line (150 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/FPentry.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/FPentry.cxx

			new SalGtkFolderPicker( rServiceManager ) ) );
}

//------------------------------------------------
// the three uno functions that will be exported
//------------------------------------------------

extern "C" 
{

//------------------------------------------------
// component_getImplementationEnvironment
//------------------------------------------------

void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//------------------------------------------------
//
//------------------------------------------------

sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistryKey )
{
	sal_Bool bRetVal = sal_True;

	if ( pRegistryKey )
	{
		try
		{
			Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );				
			pXNewKey->createKey( OUString::createFromAscii( FILE_PICKER_REGKEY_NAME ) );
			pXNewKey->createKey( OUString::createFromAscii( FOLDER_PICKER_REGKEY_NAME ) );
		}
		catch( InvalidRegistryException& )
		{			
			OSL_ENSURE( sal_False, "InvalidRegistryException caught" );			
			bRetVal = sal_False;
		}
	}

	return bRetVal;
}

//------------------------------------------------
//
//------------------------------------------------

void* SAL_CALL component_getFactory( 
	const sal_Char* pImplName, uno_Interface* pSrvManager, uno_Interface* /*pRegistryKey*/ )
{
	void* pRet = 0;

	if( pSrvManager )
	{
			if (
=====================================================================
Found a 19 line (150 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xolefactory.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObjectFactory::createInstanceInitFromEntry" );

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Reference< container::XNameAccess > xNameAccess( xStorage, uno::UNO_QUERY );
	if ( !xNameAccess.is() )
		throw uno::RuntimeException(); //TODO

	// detect entry existence
	if ( !xNameAccess->hasByName( sEntName ) )
		throw container::NoSuchElementException();
=====================================================================
Found a 23 line (150 tokens) duplication in the following files: 
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testimplhelper.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testimplhelper.cxx

		{ OSL_TRACE( "> TestWeakImpl dtor called... <\n" ); }
	
	// A
	virtual OUString SAL_CALL a() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("a") ); }
	// BA
	virtual OUString SAL_CALL ba() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("ba") ); }
	// CA
	virtual OUString SAL_CALL ca() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("ca") ); }
	// DBA
	virtual OUString SAL_CALL dba() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("dba") ); }
	// E
	virtual OUString SAL_CALL e() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("e") ); }
	// FE
	virtual OUString SAL_CALL fe() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("fe") ); }
	// G
	virtual OUString SAL_CALL g() throw(RuntimeException)
		{ return OUString( RTL_CONSTASCII_USTRINGPARAM("g") ); }
=====================================================================
Found a 29 line (150 tokens) duplication in the following files: 
Starting at line 574 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_cuno.c
Starting at line 602 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_cuno.c

cuno_ErrorCode SAL_CALL XLanguageBindingTest_setRuntimeException( test_XLanguageBindingTest * pIFace, uno_Any * pExc, sal_Int32 value)
{
	InstanceData * pImpl = GET_THIS( pIFace );
	com_sun_star_uno_RuntimeException aExc;
	typelib_TypeDescription * pTD = 0;
	rtl_uString * pTypeName = 0;
	uno_Any excp;

	rtl_uString_newFromAscii( &pTypeName, "com.sun.star.uno.RuntimeException");
	typelib_typedescription_getByName(&pTD, pTypeName);

	aExc._Base.Message = 0;
	rtl_uString_newFromAscii(&aExc._Base.Message, "dum dum dum ich tanz im kreis herum...");
	aExc._Base.Context = 0;
	if (CUNO_EXCEPTION_OCCURED( CUNO_CALL(pIFace)->getInterface( (test_XLBTestBase *)pIFace, &excp, &aExc._Base.Context) ))
	{
		/* ... */
		uno_any_destruct( &excp, 0 );
	}

	uno_any_construct(pExc, &aExc, pTD, c_acquire);
	uno_destructData(&aExc, pTD, c_release);
	typelib_typedescription_release(pTD);
	rtl_uString_release(pTypeName);

	return CUNO_ERROR_EXCEPTION;	
}	
/* XLanguageBindingTest::raiseException */
cuno_ErrorCode SAL_CALL XLanguageBindingTest_raiseException( test_XLanguageBindingTest * pIFace, uno_Any * pExc, test_TestDataElements* pRet, sal_Bool* aBool, sal_Unicode* aChar, sal_Int8* aByte, sal_Int16* aShort, sal_uInt16* aUShort, sal_Int32* aLong, sal_uInt32* aULong, sal_Int64* aHyper, sal_uInt64* aUHyper, float* aFloat, double* aDouble, test_TestEnum* aEnum, rtl_uString ** aString, com_sun_star_uno_XInterface ** aInterface, uno_Any* aAny, /*sequence< test.TestElement >*/ uno_Sequence ** aSequence, test_TestDataElements* AStruct)
=====================================================================
Found a 15 line (150 tokens) duplication in the following files: 
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 509 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

Any SAL_CALL OFlatTable::queryInterface( const Type & rType ) throw(RuntimeException)
{
	if( rType == ::getCppuType((const Reference<XKeysSupplier>*)0)		||
		rType == ::getCppuType((const Reference<XIndexesSupplier>*)0)	||
		rType == ::getCppuType((const Reference<XRename>*)0)			||
		rType == ::getCppuType((const Reference<XAlterTable>*)0)		||
		rType == ::getCppuType((const Reference<XDataDescriptorFactory>*)0))
		return Any();

	Any aRet = OTable_TYPEDEF::queryInterface(rType);
	return aRet.hasValue() ? aRet : ::cppu::queryInterface(rType,static_cast< ::com::sun::star::lang::XUnoTunnel*> (this));
}

//--------------------------------------------------------------------------
Sequence< sal_Int8 > OFlatTable::getUnoTunnelImplementationId()
=====================================================================
Found a 38 line (150 tokens) duplication in the following files: 
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 2221 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

	sal_Bool bSelfCheck = sal_True;
	if (!pReader)
	{
		bSelfCheck = sal_False;
		pReader = &m_reader;
	}

	sal_uInt32 count = 0;
	OString superType(pReader->getSuperTypeName());
	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));
		if (aSuperReader.isValid())
		{
			count = checkInheritedMemberCount(&aSuperReader);
		}
	}

	if (bSelfCheck)
	{
		count += pReader->getMethodCount();
		sal_uInt32 fieldCount = pReader->getFieldCount();
		RTFieldAccess access = RT_ACCESS_INVALID;
		for (sal_uInt16 i=0; i < fieldCount; i++)
		{
			access = pReader->getFieldAccess(i);

			if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
			{
				count++;
			}
		}
	}

	return count;
}

sal_uInt32 InterfaceType::getInheritedMemberCount()
=====================================================================
Found a 25 line (150 tokens) duplication in the following files: 
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx

    nVerticalSegmentCount = nPointCount-1;

    //--------------------------------------
    drawing::PolyPolygonShape3D aPP;

	aPP.SequenceX.realloc(1);
	aPP.SequenceY.realloc(1);
	aPP.SequenceZ.realloc(1);

	drawing::DoubleSequence* pOuterSequenceX = aPP.SequenceX.getArray();
	drawing::DoubleSequence* pOuterSequenceY = aPP.SequenceY.getArray();
	drawing::DoubleSequence* pOuterSequenceZ = aPP.SequenceZ.getArray();

    pOuterSequenceX->realloc(nPointCount);
    pOuterSequenceY->realloc(nPointCount);
	pOuterSequenceZ->realloc(nPointCount);

    double* pInnerSequenceX = pOuterSequenceX->getArray();
	double* pInnerSequenceY = pOuterSequenceY->getArray();
	double* pInnerSequenceZ = pOuterSequenceZ->getArray();

    for(sal_Int32 nN = nPointCount; nN--;)
	    *pInnerSequenceZ++ = 0.0;

    if(bTopless)
=====================================================================
Found a 40 line (150 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/LineChartTypeTemplate.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ScatterChartTypeTemplate.cxx

    rOutMap[ PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER ] =
        uno::makeAny( sal_Int32( 3 ) );
}

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

::cppu::IPropertyArrayHelper & lcl_getInfoHelper()
{
    static ::cppu::OPropertyArrayHelper aArrayHelper(
        lcl_GetPropertySequence(),
        /* bSorted = */ sal_True );

    return aArrayHelper;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 28 line (150 tokens) duplication in the following files: 
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataPoint.cxx
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataSeries.cxx

void SAL_CALL DataSeries::setFastPropertyValue_NoBroadcast(
    sal_Int32 nHandle, const uno::Any& rValue )
    throw (uno::Exception)
{
    if(    nHandle == DataPointProperties::PROP_DATAPOINT_ERROR_BAR_Y
        || nHandle == DataPointProperties::PROP_DATAPOINT_ERROR_BAR_X )
    {
        uno::Any aOldValue;
        Reference< util::XModifyBroadcaster > xBroadcaster;
        this->getFastPropertyValue( aOldValue, nHandle );
        if( aOldValue.hasValue() &&
            (aOldValue >>= xBroadcaster) &&
            xBroadcaster.is())
        {
            ModifyListenerHelper::removeListener( xBroadcaster, m_xModifyEventForwarder );
        }

        OSL_ASSERT( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
        if( rValue.hasValue() &&
            (rValue >>= xBroadcaster) &&
            xBroadcaster.is())
        {
            ModifyListenerHelper::addListener( xBroadcaster, m_xModifyEventForwarder );
        }
    }

    ::property::OPropertySet::setFastPropertyValue_NoBroadcast( nHandle, rValue );
}
=====================================================================
Found a 32 line (150 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvasfont.cxx
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvasfont.cxx

        tools::LocalGuard aGuard;

        // TODO(F1)
        return uno::Sequence< beans::PropertyValue >();
    }

#define IMPLEMENTATION_NAME "VCLCanvas::CanvasFont"
#define SERVICE_NAME "com.sun.star.rendering.CanvasFont"

    ::rtl::OUString SAL_CALL CanvasFont::getImplementationName() throw( uno::RuntimeException )
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL CanvasFont::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL CanvasFont::getSupportedServiceNames()  throw( uno::RuntimeException )
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );

        return aRet;
    }

    ::Font CanvasFont::getVCLFont() const
    {
        return *maFont;
    }
}
=====================================================================
Found a 32 line (150 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx

  		(char *)alloca( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
  	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
                   ? alloca( pReturnTypeDescr->nSize )
                   : pUnoReturn); // direct way
			pCppStack += sizeof(void *);
		}
	}
	// push this
    void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
        + aVtableSlot.offset;
	*(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );
=====================================================================
Found a 28 line (150 tokens) duplication in the following files: 
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdate.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdbl.cxx

				nRes = pVal->GetDouble();
			else
			{
				SbxBase::SetError( SbxERR_NO_OBJECT ); nRes = 0;
			}
			break;
		}

		case SbxBYREF | SbxCHAR:
			nRes = *p->pChar; break;
		case SbxBYREF | SbxBYTE:
			nRes = *p->pByte; break;
		case SbxBYREF | SbxINTEGER:
		case SbxBYREF | SbxBOOL:
			nRes = *p->pInteger; break;
		case SbxBYREF | SbxLONG:
			nRes = *p->pLong; break;
		case SbxBYREF | SbxULONG:
			nRes = *p->pULong; break;
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			nRes = *p->pUShort; break;
		case SbxBYREF | SbxSINGLE:
			nRes = *p->pSingle; break;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			nRes = *p->pDouble; break;
		case SbxBYREF | SbxCURRENCY:
=====================================================================
Found a 20 line (149 tokens) duplication in the following files: 
Starting at line 559 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 582 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        weight = (weight_array[x_hr] * 
                                  weight_array[y_hr] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }
=====================================================================
Found a 25 line (149 tokens) duplication in the following files: 
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_gray.h
Starting at line 399 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            const value_type *fg_ptr;

            color_type* span = base_type::allocator().span();
            const int16* weight_array = base_type::filter().weight_array() + 
                                        ((base_type::filter().diameter()/2 - 1) << 
                                          image_subpixel_shift);

            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            do
            {
                int x_hr;
                int y_hr;
                
                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;
=====================================================================
Found a 20 line (149 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/decrypter.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/verifier.cxx

using namespace ::rtl ;
using namespace ::cppu ;
using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::io ;
using namespace ::com::sun::star::ucb ;
using namespace ::com::sun::star::beans ;
using namespace ::com::sun::star::document ;
using namespace ::com::sun::star::lang ;
using namespace ::com::sun::star::registry ;
using namespace ::com::sun::star::xml::wrapper ;
using namespace ::com::sun::star::xml::crypto ;


int SAL_CALL main( int argc, char **argv )
{
	CERTCertDBHandle*	certHandle = NULL ;
	PK11SlotInfo*		slot = NULL ;
	xmlDocPtr			doc = NULL ;
	xmlNodePtr			tplNode ;
	xmlNodePtr			tarNode ;
=====================================================================
Found a 36 line (149 tokens) duplication in the following files: 
Starting at line 387 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 325 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

            ::ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString(),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        sal_Bool bOpenFolder =
            ( ( aOpenCommand.Mode == ucb::OpenMode::ALL ) ||
              ( aOpenCommand.Mode == ucb::OpenMode::FOLDERS ) ||
              ( aOpenCommand.Mode == ucb::OpenMode::DOCUMENTS ) );

        if ( bOpenFolder /*&& isFolder( Environment )*/ )
		{
            // open as folder - return result set

            uno::Reference< ucb::XDynamicResultSet > xSet
                            = new DynamicResultSet( m_xSMgr,
													this,
													aOpenCommand,
													Environment );
    		aRet <<= xSet;
  		}

        if ( aOpenCommand.Sink.is() )
        {
            // Open document - supply document data stream.

            // Check open mode
            if ( ( aOpenCommand.Mode
                    == ucb::OpenMode::DOCUMENT_SHARE_DENY_NONE ) ||
                 ( aOpenCommand.Mode
                    == ucb::OpenMode::DOCUMENT_SHARE_DENY_WRITE ) )
            {
=====================================================================
Found a 36 line (149 tokens) duplication in the following files: 
Starting at line 1149 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 2845 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

        aGuard.clear();
        if ( exchange( xNewId ) )
        {
            // Process instanciated children...
            
            ContentRefList aChildren;
            queryChildren( aChildren );
	    
            ContentRefList::const_iterator it  = aChildren.begin();
            ContentRefList::const_iterator end = aChildren.end();

            while ( it != end )
            {
                ContentRef xChild = (*it);

                // Create new content identifier for the child...
                uno::Reference< ucb::XContentIdentifier >
                    xOldChildId = xChild->getIdentifier();
                rtl::OUString aOldChildURL
                    = xOldChildId->getContentIdentifier();
                rtl::OUString aNewChildURL
                    = aOldChildURL.replaceAt(
                        0,
                        aOldURL.getLength(),
                        xNewId->getContentIdentifier() );
                uno::Reference< ucb::XContentIdentifier >
                    xNewChildId
                    = new ::ucbhelper::ContentIdentifier( m_xSMgr, aNewChildURL );
                
                if ( !xChild->exchangeIdentity( xNewChildId ) )
                    return sal_False;
                
                ++it;
            }
            return sal_True;
        }
=====================================================================
Found a 48 line (149 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/filinsreq.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpintreq.cxx

	m_aSeq[0] = Reference<XInteractionContinuation>(p1);
	m_aSeq[1] = Reference<XInteractionContinuation>(p2);
}

	
void SAL_CALL
XInteractionRequestImpl::acquire( void )
	throw()
{
	OWeakObject::acquire();
}



void SAL_CALL
XInteractionRequestImpl::release( void )
	throw()
{
	OWeakObject::release();
}



Any SAL_CALL
XInteractionRequestImpl::queryInterface( const Type& rType )
	throw( RuntimeException )
{
	Any aRet = cppu::queryInterface( 
        rType,
        SAL_STATIC_CAST( lang::XTypeProvider*, this ),
        SAL_STATIC_CAST( XInteractionRequest*,this) );
	return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}


//////////////////////////////////////////////////////////////////////////////
//  XTypeProvider
/////////////////////////////////////////////////////////////////////////////

XTYPEPROVIDER_IMPL_2( XInteractionRequestImpl, 
					  XTypeProvider,
					  XInteractionRequest )


Any SAL_CALL XInteractionRequestImpl::getRequest(  )
    throw (RuntimeException)
{
    Any aAny;
=====================================================================
Found a 33 line (149 tokens) duplication in the following files: 
Starting at line 1837 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/wrtrtf.cxx
Starting at line 1337 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

short SwWW8Writer::TrueFrameDirection(const SwFrmFmt &rFlyFmt) const
{
    const SwFrmFmt *pFlyFmt = &rFlyFmt;
    const SvxFrameDirectionItem* pItem = 0;
    while (pFlyFmt)
    {
        pItem = &pFlyFmt->GetFrmDir();
        if (FRMDIR_ENVIRONMENT == pItem->GetValue())
        {
            pItem = 0;
            const SwFmtAnchor* pAnchor = &pFlyFmt->GetAnchor();
            if (FLY_PAGE != pAnchor->GetAnchorId() &&
                pAnchor->GetCntntAnchor())
            {
                pFlyFmt =
                    pAnchor->GetCntntAnchor()->nNode.GetNode().GetFlyFmt();
            }
            else
                pFlyFmt = 0;
        }
        else
            pFlyFmt = 0;
    }

    short nRet;
    if (pItem)
        nRet = pItem->GetValue();
    else
        nRet = GetCurrentPageDirection();

    ASSERT(nRet != FRMDIR_ENVIRONMENT, "leaving with environment direction");
    return nRet;
}
=====================================================================
Found a 14 line (149 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/tox/tox.cxx
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/tox/tox.cxx

    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, AUTH_FIELD_URL, USHRT_MAX},//AUTH_TYPE_WWW,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_TYPE_CUSTOM1,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_TYPE_CUSTOM2,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_TYPE_CUSTOM3,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_TYPE_CUSTOM4,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_TYPE_CUSTOM5,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_FIELD_YEAR,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_FIELD_URL,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_FIELD_CUSTOM1,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_FIELD_CUSTOM2,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_FIELD_CUSTOM3,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_FIELD_CUSTOM4,
    {AUTH_FIELD_AUTHOR, AUTH_FIELD_TITLE, AUTH_FIELD_YEAR, USHRT_MAX, USHRT_MAX},     //AUTH_FIELD_CUSTOM5,
    {USHRT_MAX, USHRT_MAX, USHRT_MAX, USHRT_MAX, USHRT_MAX}
=====================================================================
Found a 22 line (149 tokens) duplication in the following files: 
Starting at line 5567 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 5798 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_ScrollBar::Import(com::sun::star::uno::Reference<
    com::sun::star::beans::XPropertySet> &rPropSet)
{
    if( (nWidth < 1) || (nHeight < 1) )
        return sal_False;

    uno::Any aTmp( &sName, getCppuType((OUString *)0) );
    rPropSet->setPropertyValue( WW8_ASCII2STR( "Name" ), aTmp );

    aTmp <<= ImportColor( mnForeColor );
    rPropSet->setPropertyValue( WW8_ASCII2STR("SymbolColor"), aTmp);

    aTmp <<= ImportColor( mnBackColor );
    rPropSet->setPropertyValue( WW8_ASCII2STR("BackgroundColor"), aTmp);

    aTmp = bool2any( mbEnabled && !mbLocked );
    rPropSet->setPropertyValue( WW8_ASCII2STR("Enabled"), aTmp);

    aTmp <<= mnValue;
    if ( bSetInDialog )
    {
        rPropSet->setPropertyValue( WW8_ASCII2STR("ScrollValue"), aTmp );
=====================================================================
Found a 30 line (149 tokens) duplication in the following files: 
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/docrecovery.cxx
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/docrecovery.cxx

void RecoveryCore::saveAllTempEntries(const ::rtl::OUString& sPath)
{
    if (!sPath.getLength())
        return;

    if (!m_xRealCore.is())
        return;

    // prepare all needed parameters for the following dispatch() request.
    css::util::URL aCopyURL = impl_getParsedURL(RECOVERY_CMD_DO_ENTRY_BACKUP);
    css::uno::Sequence< css::beans::PropertyValue > lCopyArgs(3);
    lCopyArgs[0].Name    = PROP_DISPATCHASYNCHRON;
    lCopyArgs[0].Value <<= sal_False;
    lCopyArgs[1].Name    = PROP_SAVEPATH;
    lCopyArgs[1].Value <<= sPath;
    lCopyArgs[2].Name    = PROP_ENTRYID;
    // lCopyArgs[2].Value will be changed during next loop ...

    // work on a copied list only ...
    // Reason: We will get notifications from the core for every
    // changed or removed element. And that will change our m_lURLs list.
    // That's not a good idea, if we use a stl iterator inbetween .-)
    TURLList lURLs = m_lURLs;
    TURLList::const_iterator pIt;
    for (  pIt  = lURLs.begin();
           pIt != lURLs.end()  ;
         ++pIt                 )
    {
        const TURLInfo& rInfo = *pIt;
        if (!rInfo.TempURL.getLength())
=====================================================================
Found a 21 line (149 tokens) duplication in the following files: 
Starting at line 1415 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/ctredlin.cxx
Starting at line 1442 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/ctredlin.cxx

		:	Control(pParent,rResId ),
			aTCAccept(this,WB_TABSTOP |WB_DIALOGCONTROL)
{
	pTPFilter=new SvxTPFilter(&aTCAccept);
	pTPView=new SvxTPView(&aTCAccept);
	aMinSize=pTPView->GetMinSizePixel();

	aTCAccept.InsertPage( TP_VIEW,	 pTPView->GetMyName());
	aTCAccept.InsertPage( TP_FILTER, pTPFilter->GetMyName());
	aTCAccept.SetTabPage( TP_VIEW,	 pTPView);
	aTCAccept.SetTabPage( TP_FILTER, pTPFilter);
	aTCAccept.SetHelpId(HID_REDLINING_TABCONTROL);

	aTCAccept.SetTabPageSizePixel(aMinSize);
	Size aSize=aTCAccept.GetSizePixel();

	gDiffSize.Height()=aSize.Height()-aMinSize.Height();
	gDiffSize.Width()=aSize.Width()-aMinSize.Width();


	pTPFilter->SetRedlinTable(GetViewTable());
=====================================================================
Found a 23 line (149 tokens) duplication in the following files: 
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
Starting at line 439 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx

				aEquation.nOperation |= 16;
				if ( pOptionalArg )
					FillEquationParameter( pOptionalArg->fillNode( rEquations, NULL, nFlags ), 0, aEquation );
				else
					aEquation.nPara[ 0 ] = 1;

				EnhancedCustomShapeParameter aSource( mpArg->fillNode( rEquations, NULL, nFlags | EXPRESSION_FLAG_SUMANGLE_MODE ) );
				if ( aSource.Type == EnhancedCustomShapeParameterType::NORMAL )
				{	// sumangle needed :-(
					EnhancedCustomShapeEquation	aTmpEquation;
					aTmpEquation.nOperation |= 0xe;	// sumangle
					FillEquationParameter( aSource, 1, aTmpEquation );
					aSource.Type = EnhancedCustomShapeParameterType::EQUATION;
					aSource.Value <<= (sal_Int32)rEquations.size();
					rEquations.push_back( aTmpEquation );
				}
				FillEquationParameter( aSource, 1, aEquation );
				aRet.Type = EnhancedCustomShapeParameterType::EQUATION;
				aRet.Value <<= (sal_Int32)rEquations.size();
				rEquations.push_back( aEquation );
			}
			break;
			case UNARY_FUNC_ATAN:
=====================================================================
Found a 29 line (149 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/bmpmaker/bmp.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/bmpmaker/g2g.cxx

BOOL G2GApp::GetCommandOption( const ::std::vector< String >& rArgs, const String& rSwitch, String& rParam )
{
	BOOL bRet = FALSE;

	for( int i = 0, nCount = rArgs.size(); ( i < nCount ) && !bRet; i++ )
	{
		String	aTestStr( '-' );

		for( int n = 0; ( n < 2 ) && !bRet; n++ )
		{
			aTestStr += rSwitch;

			if( aTestStr.CompareIgnoreCaseToAscii( rArgs[ i ] ) == COMPARE_EQUAL )
			{
				bRet = TRUE;

				if( i < ( nCount - 1 ) )
					rParam = rArgs[ i + 1 ];
				else
					rParam = String();
			}

			if( 0 == n )
				aTestStr = '/';
		}
	}

	return bRet;
}
=====================================================================
Found a 32 line (149 tokens) duplication in the following files: 
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/objembed.cxx
Starting at line 1191 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/embobj.cxx

		Point aDelta = aOrg - aVisArea_.TopLeft();

		// Origin entsprechend zum sichtbaren Bereich verschieben
		// Origin mit Scale setzen
		aMapMode.SetOrigin( aDelta );

		// Deviceeinstellungen sichern
		pDev->Push();

		Region aRegion;
		if( pDev->IsClipRegion() && pDev->GetOutDevType() != OUTDEV_PRINTER )
		{
			aRegion = pDev->GetClipRegion();
			aRegion = pDev->LogicToPixel( aRegion );
		}
		pDev->SetRelativeMapMode( aMapMode );

		GDIMetaFile * pMtf = pDev->GetConnectMetaFile();
		if( pMtf )
			if( pMtf->IsRecord() && pDev->GetOutDevType() != OUTDEV_PRINTER )
				pMtf->Stop();
			else
				pMtf = NULL;
// #ifndef UNX
		if( pDev->IsClipRegion() && pDev->GetOutDevType() != OUTDEV_PRINTER )
// #endif
		{
			aRegion = pDev->PixelToLogic( aRegion );
			pDev->SetClipRegion( aRegion );
		}
		if( pMtf )
			pMtf->Record( pDev );
=====================================================================
Found a 36 line (149 tokens) duplication in the following files: 
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/drawdoc4.cxx
Starting at line 1247 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/drawdoc4.cxx

			pPage->SetName(rNewName);

			for (ULONG nObj = 0; nObj < pPage->GetObjCount(); nObj++)
			{
				SdrObject* pObj = pPage->GetObj(nObj);

				if (pObj->GetObjInventor() == SdrInventor)
				{
					switch(pObj->GetObjIdentifier())
					{
						case OBJ_TEXT:
						case OBJ_OUTLINETEXT:
						case OBJ_TITLETEXT:
						{
							OutlinerParaObject* pOPO = ((SdrTextObj*)pObj)->GetOutlinerParaObject();

							if (pOPO)
							{
								StyleReplaceData* pReplData = (StyleReplaceData*) aReplList.First();

								while( pReplData )
								{
									pOPO->ChangeStyleSheets( pReplData->aName, pReplData->nFamily, pReplData->aNewName, pReplData->nNewFamily );
									pReplData = (StyleReplaceData*) aReplList.Next();
								}
							}
						}
						break;

						default:
						break;
					}
				}
			}
		}
	}
=====================================================================
Found a 29 line (149 tokens) duplication in the following files: 
Starting at line 391 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undocell.cxx
Starting at line 487 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undocell.cxx

void __EXPORT ScUndoPutCell::Undo()
{
	BeginUndo();

	ScDocument* pDoc = pDocShell->GetDocument();
	ScBaseCell* pNewCell;
	if ( pOldCell )
	{
		// Formelzelle mit CompileTokenArray() !
		if ( pOldCell->GetCellType() == CELLTYPE_FORMULA )
			pNewCell = ((ScFormulaCell*)pOldCell)->Clone( pDoc, aPos );
		else
			pNewCell = pOldCell->Clone(pDoc);
	}
	else
		pNewCell = NULL;

	pDoc->PutCell( aPos.Col(), aPos.Row(), aPos.Tab(), pNewCell );

	pDocShell->PostPaintCell( aPos.Col(), aPos.Row(), aPos.Tab() );

	ScChangeTrack* pChangeTrack = pDoc->GetChangeTrack();
	if ( pChangeTrack )
		pChangeTrack->Undo( nEndChangeAction, nEndChangeAction );

	EndUndo();
}

void __EXPORT ScUndoPutCell::Redo()
=====================================================================
Found a 18 line (149 tokens) duplication in the following files: 
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLCalculationSettingsContext.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLCalculationSettingsContext.cxx

ScXMLIterationContext::ScXMLIterationContext( ScXMLImport& rImport,
									  USHORT nPrfx,
									  const ::rtl::OUString& rLName,
									  const ::com::sun::star::uno::Reference<
									  ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
									  ScXMLCalculationSettingsContext* pCalcSet) :
	SvXMLImportContext( rImport, nPrfx, rLName )
{
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		sal_uInt16 nPrefix = GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName );
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
=====================================================================
Found a 43 line (149 tokens) duplication in the following files: 
Starting at line 4487 of /local/ooo-build/ooo-build/src/oog680-m3/regexp/orig/regex.c
Starting at line 2433 of /local/ooo-build/ooo-build/src/oog680-m3/regexp/source/reclass.cxx

	  extract_number_and_incr(mcnt, p1);
	  if (is_a_jump_n)
	    p1 += 2;
	  break;

	default:
	  /* do nothing */ ;
	}
	p1 += mcnt;

	/* If the next operation is a jump backwards in the pattern
	   to an on_failure_jump right before the start_memory
	   corresponding to this stop_memory, exit from the loop
	   by forcing a failure after pushing on the stack the
	   on_failure_jump's jump in the pattern, and d.  */
	if (mcnt < 0 && (re_opcode_t) *p1 == on_failure_jump
	    && (re_opcode_t) p1[3] == start_memory && p1[4] == *p) {
	  /* If this group ever matched anything, then restore
	     what its registers were before trying this last
	     failed match, e.g., with `(a*)*b' against `ab' for
	     regstart[1], and, e.g., with `((a*)*(b*)*)*'
	     against `aba' for regend[3].

	     Also restore the registers for inner groups for,
	     e.g., `((a*)(b*))*' against `aba' (register 3 would
	     otherwise get trashed).  */

	  if (EVER_MATCHED_SOMETHING (reg_info[*p])) {
	    unsigned r;

	    EVER_MATCHED_SOMETHING (reg_info[*p]) = 0;

	    /* Restore this and inner groups' (if any) registers.  */
	    for (r = *p; r < (unsigned) *p + (unsigned) *(p + 1);
		 r++) {
	      regstart[r] = old_regstart[r];

				/* xx why this test?  */
	      if (old_regend[r] >= regstart[r])
		regend[r] = old_regend[r];
	    }
	  }
	  p1++;
=====================================================================
Found a 11 line (149 tokens) duplication in the following files: 
Starting at line 1843 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 1859 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

				else if ( m_pData->m_nStorageType == OFOPXML_STORAGE )
				{
					m_pData->m_pTypeCollection = new ::cppu::OTypeCollection
									(	::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XInputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XOutputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XSeekable >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XTruncate >* )NULL )
									,	::getCppuType( ( const uno::Reference< lang::XComponent >* )NULL )
									,	::getCppuType( ( const uno::Reference< embed::XRelationshipAccess >* )NULL )
=====================================================================
Found a 18 line (149 tokens) duplication in the following files: 
Starting at line 2150 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 2232 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

		   )) {
                      char * m = NULL;
                      if (compoundflag) m = affix_check_morph((word+i),strlen(word+i), compoundflag);
                      if ((!m || *m == '\0') && compoundend)
                            m = affix_check_morph((word+i),strlen(word+i), compoundend);
                      strcat(*result, presult);
                      line_uniq(m);
                      if (strchr(m, '\n')) {
                            strcat(*result, "(");
                            strcat(*result, line_join(m, '|'));
                            strcat(*result, ")");
                      } else {
                            strcat(*result, m);
                      }
                      free(m);
                      strcat(*result, "\n");
                      ok = 1;
	    }
=====================================================================
Found a 32 line (149 tokens) duplication in the following files: 
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/macro.c
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_macro.c

	expand(Tokenrow * trp, Nlist * np, MacroValidatorList *	pValidators)
{
//	Token * pOldNextTp;
	Tokenrow ntr;
	int ntokc, narg, i;
	Tokenrow *atr[NARG + 1];

	if (Mflag == 2)
	{
		if (np->ap)
			error(INFO, "Macro expansion of %t with %s(%r)", trp->tp, np->name, np->ap);
		else
			error(INFO, "Macro expansion of %t with %s", trp->tp, np->name);
	}

	copytokenrow(&ntr, np->vp);         /* copy macro value */
	if (np->ap == NULL)                 /* parameterless */
		ntokc = 1;
	else
	{
		ntokc = gatherargs(trp, atr, &narg);
		if (narg < 0)
		{                               /* not actually a call (no '(') */
			trp->tp++;
			return;
		}
		if (narg != rowlen(np->ap))
		{
			error(ERROR, "Disagreement in number of macro arguments");
			trp->tp += ntokc;
			return;
		}
=====================================================================
Found a 6 line (149 tokens) duplication in the following files: 
Starting at line 1372 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1378 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2540 - 254f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2550 - 255f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2560 - 256f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2570 - 257f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2580 - 258f
    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2590 - 259f
=====================================================================
Found a 5 line (149 tokens) duplication in the following files: 
Starting at line 1279 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2330 - 233f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2340 - 234f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2350 - 235f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2360 - 236f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,10,10,// 2370 - 237f
=====================================================================
Found a 6 line (149 tokens) duplication in the following files: 
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,// fa20 - fa2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa30 - fa3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa40 - fa4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa50 - fa5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa60 - fa6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa70 - fa7f
=====================================================================
Found a 6 line (149 tokens) duplication in the following files: 
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 600 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2540 - 254f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2550 - 255f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2560 - 256f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2570 - 257f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2580 - 258f
    27,27,27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2590 - 259f
=====================================================================
Found a 6 line (149 tokens) duplication in the following files: 
Starting at line 475 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 481 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e40 - 1e4f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e50 - 1e5f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e60 - 1e6f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e70 - 1e7f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e80 - 1e8f
     1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 1e90 - 1e9f
=====================================================================
Found a 6 line (149 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1260 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1850 - 185f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 22 line (149 tokens) duplication in the following files: 
Starting at line 337 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 787 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

  double bet = b;
  u[0] = r[0]/bet;
  int i, j;
  for (i = 0, j = 1; j < n; i++, j++)
  {
    gam[i] = c/bet;
    bet = b-a*gam[i];
    if ( bet == 0 )
    {
      delete[] gam;
      return 0;
    }
    u[j] = (r[j]-a*u[i])/bet;
  }
  for (i = n-1, j = n-2; j >= 0; i--, j--)
    u[j] -= gam[j]*u[i];

  delete[] gam;
  return 1;
}
//---------------------------------------------------------------------------
int mgcLinearSystemD::SolveSymmetric (int n, double** A, double* b)
=====================================================================
Found a 11 line (149 tokens) duplication in the following files: 
Starting at line 838 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 994 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

       14,   11,    7,    3,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993
    } ;

static yy_state_type yy_last_accepting_state;
=====================================================================
Found a 5 line (149 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4db0 - 4dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4dc0 - 4dcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4dd0 - 4ddf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4de0 - 4def
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4df0 - 4dff
=====================================================================
Found a 25 line (149 tokens) duplication in the following files: 
Starting at line 3608 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 3947 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

					 padd(ascii("draw:z-index"), sXML_CDATA,
                    ascii(Int2Str(hbox->zorder, "%d", buf)));
                switch (hbox->style.anchor_type)
                {
                    case CHAR_ANCHOR:
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("as-char"));
                        break;
                    case PARA_ANCHOR:
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("paragraph"));
                        break;
                    case PAGE_ANCHOR:
                    case PAPER_ANCHOR:
                    {
                        // os unused
                        // HWPInfo *hwpinfo = hwpfile.GetHWPInfo();
                        padd(ascii("text:anchor-type"), sXML_CDATA, ascii("page"));
                        padd(ascii("text:anchor-page-number"), sXML_CDATA,
                            ascii(Int2Str(hbox->pgno +1, "%d", buf)));
                        break;
                    }
                }
                if (hbox->style.anchor_type != CHAR_ANCHOR)
                {
                    padd(ascii("svg:x"), sXML_CDATA,
                        Double2Str(WTMM( hbox->pgx + hbox->style.margin[0][0] )) + ascii("mm"));
=====================================================================
Found a 24 line (149 tokens) duplication in the following files: 
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/itemcontainer.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/rootitemcontainer.cxx

void SAL_CALL RootItemContainer::insertByIndex( sal_Int32 Index, const Any& aItem ) 
throw ( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException )
{
    Sequence< PropertyValue > aSeq;
    if ( aItem >>= aSeq )
    {
        ShareGuard aLock( m_aShareMutex );
        if ( sal_Int32( m_aItemVector.size()) == Index )
            m_aItemVector.push_back( aSeq );
        else if ( sal_Int32( m_aItemVector.size()) >Index )
	    {
		    std::vector< Sequence< PropertyValue > >::iterator aIter = m_aItemVector.begin();
            aIter += Index;
		    m_aItemVector.insert( aIter, aSeq );
        }
        else
		    throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this );
    }
    else
        throw IllegalArgumentException( OUString( RTL_CONSTASCII_USTRINGPARAM( WRONG_TYPE_EXCEPTION )),
				                        (OWeakObject *)this, 2 );
}

void SAL_CALL RootItemContainer::removeByIndex( sal_Int32 Index )
=====================================================================
Found a 19 line (149 tokens) duplication in the following files: 
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxconfiguration.cxx
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxconfiguration.cxx

static Reference< XParser > GetSaxParser(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XParser >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XDocumentHandler >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

// #110897#
sal_Bool ToolBoxConfiguration::LoadToolBox( 
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
=====================================================================
Found a 41 line (149 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesdocumenthandler.cxx
Starting at line 339 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesdocumenthandler.cxx

                                              break;          
						}
					}
				} // for

				if ( m_pImages->aURL.Len() == 0 )
				{
					delete m_pImages;
					m_pImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Required attribute xlink:href must have a value!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}
			}
			break;

			case IMG_ELEMENT_ENTRY:
			{
				// Check that image:entry is embeded into image:images!
				if ( !m_bImagesStartFound )
				{
					delete m_pImages;
					m_pImages = NULL;

					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'image:entry' must be embeded into element 'image:images'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				if ( !m_pImages->pImageItemList )
					m_pImages->pImageItemList = new ImageItemListDescriptor;

				m_bImageStartFound = sal_True;

				// Create new image item descriptor
				ImageItemDescriptor* pItem = new ImageItemDescriptor;
				pItem->nIndex = -1;

				// Read attributes for this image definition
				for ( sal_Int16 n = 0; n < xAttribs->getLength(); n++ )
=====================================================================
Found a 5 line (149 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4db0 - 4dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4dc0 - 4dcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4dd0 - 4ddf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4de0 - 4def
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4df0 - 4dff
=====================================================================
Found a 31 line (149 tokens) duplication in the following files: 
Starting at line 773 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx
Starting at line 833 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx

			printf( "Performance reading : %g s\n" , fEnd - fStart );
			
		}
		catch( SAXParseException& e ) {
			UsrAny any;
			any.set( &e , SAXParseException_getReflection() );
			while(TRUE) {
				SAXParseException *pEx;
				if( any.getReflection() == SAXParseException_getReflection() ) {
					pEx = ( SAXParseException * ) any.get();
					printf( "%s\n" , UStringToString( pEx->Message , CHARSET_SYSTEM ).GetStr()  );	
					any = pEx->WrappedException;
				}
				else {
					break;	
				}
			}
		}
		catch( SAXException& e ) {
			printf( "%s\n" , UStringToString( e.Message , CHARSET_SYSTEM ).GetStr()  );	
				
		}
		catch( Exception& e ) {
			printf( "normal exception ! %s\n", e.getName() );
		}
		catch(...) {
			printf( "any exception !!!!\n" );	
		}
	}	

}
=====================================================================
Found a 28 line (149 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1182 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", !(a >>= b) && b == 2);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", !(a >>= b) && b == 2);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", (a >>= b) && b == 1);
=====================================================================
Found a 28 line (149 tokens) duplication in the following files: 
Starting at line 1182 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/implrenderer.cxx
Starting at line 1266 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/implrenderer.cxx

            if( rState.clip.count() == 0 )
            {
                if( rState.clipRect.IsEmpty() )
                {
                    rState.xClipPoly.clear();
                }
                else
                {
                    rState.xClipPoly = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
                        rParms.mrCanvas->getUNOCanvas()->getDevice(),
                        ::basegfx::B2DPolyPolygon(
                            ::basegfx::tools::createPolygonFromRect( 
                                // #121100# VCL rectangular clips
                                // always include one more pixel to
                                // the right and the bottom
                                ::basegfx::B2DRectangle( rState.clipRect.Left(),
                                                         rState.clipRect.Top(),
                                                         rState.clipRect.Right()+1,
                                                         rState.clipRect.Bottom()+1 ) ) ) );
                }
            }
            else
            {
                rState.xClipPoly = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
                    rParms.mrCanvas->getUNOCanvas()->getDevice(),
                    rState.clip );
            }
        }
=====================================================================
Found a 32 line (149 tokens) duplication in the following files: 
Starting at line 1177 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 1774 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx

	return ownInsertsAreVisible(setType);
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /*catalog*/, const ::rtl::OUString& /*schemaPattern*/, const ::rtl::OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException)
{
	return NULL;
}
// -------------------------------------------------------------------------
Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection(  ) throw(SQLException, RuntimeException)
{
	return (Reference< XConnection >)m_pConnection;//new OConnection(m_aConnectionHandle);
}
=====================================================================
Found a 23 line (149 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx

bool m_bInteractive = false;

#define COUT if(m_bInteractive) cout

ostream& operator << (ostream& out, rtl::OUString const& aStr)
{
	sal_Unicode const* const pStr = aStr.getStr();
	sal_Unicode const* const pEnd = pStr + aStr.getLength();
	for (sal_Unicode const* p = pStr; p < pEnd; ++p)
		if (0 < *p && *p < 127) // ASCII
			out << char(*p);
		else
			out << "[\\u" << hex << *p << "]";
	return out;
}

void showSequence(const Sequence<OUString> &aSeq)
{
	OUString aArray;
	const OUString *pStr = aSeq.getConstArray();
	for (int i=0;i<aSeq.getLength();i++)
	{
		OUString aStr = pStr[i];
=====================================================================
Found a 24 line (149 tokens) duplication in the following files: 
Starting at line 659 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 492 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx

} //end of namespace

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0; //null
    slots[-1] = 0; //destructor
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vTableOffset)
=====================================================================
Found a 24 line (148 tokens) duplication in the following files: 
Starting at line 496 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                                  weight_array[y_hr] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }

                        x_lr++;

                        weight = (weight_array[x_hr] * 
                                  weight_array[y_hr] + 
=====================================================================
Found a 13 line (148 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx

using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::lang ;
using ::com::sun::star::lang::XMultiServiceFactory ;
using ::com::sun::star::lang::XSingleServiceFactory ;
using ::rtl::OUString ;

using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
using ::com::sun::star::xml::wrapper::XXMLDocumentWrapper ;
using ::com::sun::star::xml::crypto::XSecurityEnvironment ;
using ::com::sun::star::xml::crypto::XXMLEncryption ;
using ::com::sun::star::xml::crypto::XXMLEncryptionTemplate ;
using ::com::sun::star::xml::crypto::XXMLSecurityContext ;
using ::com::sun::star::xml::crypto::XSecurityEnvironment ;
=====================================================================
Found a 5 line (148 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_mask.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 5 line (148 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,
=====================================================================
Found a 6 line (148 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_mask.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h

 0x1f,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (148 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,
=====================================================================
Found a 29 line (148 tokens) duplication in the following files: 
Starting at line 1811 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/edit.cxx
Starting at line 394 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/lstbox.cxx

	Font aFont = mpImplLB->GetMainWindow()->GetDrawPixelFont( pDev );
	OutDevType eOutDevType = pDev->GetOutDevType();

	pDev->Push();
	pDev->SetMapMode();
	pDev->SetFont( aFont );
	pDev->SetTextFillColor();

	// Border/Background
	pDev->SetLineColor();
	pDev->SetFillColor();
	BOOL bBorder = !(nFlags & WINDOW_DRAW_NOBORDER ) && (GetStyle() & WB_BORDER);
	BOOL bBackground = !(nFlags & WINDOW_DRAW_NOBACKGROUND) && IsControlBackground();
	if ( bBorder || bBackground )
	{
		Rectangle aRect( aPos, aSize );
		if ( bBorder )
		{
            ImplDrawFrame( pDev, aRect );
		}
		if ( bBackground )
		{
			pDev->SetFillColor( GetControlBackground() );
			pDev->DrawRect( aRect );
		}
	}

	// Inhalt
	if ( ( nFlags & WINDOW_DRAW_MONO ) || ( eOutDevType == OUTDEV_PRINTER ) )
=====================================================================
Found a 17 line (148 tokens) duplication in the following files: 
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salgdi.h
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salgdi.h

                                        const SalBitmap& rMaskBitmap );
    virtual void			drawMask( const SalTwoRect* pPosAry,
                                      const SalBitmap& rSalBitmap,
                                      SalColor nMaskColor );
    virtual SalBitmap*		getBitmap( long nX, long nY, long nWidth, long nHeight );
    virtual SalColor		getPixel( long nX, long nY );
    virtual void			invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
    virtual void			invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );

    virtual BOOL			drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );

    virtual bool 			drawAlphaBitmap( const SalTwoRect&,
                                             const SalBitmap& rSourceBitmap,
                                             const SalBitmap& rAlphaBitmap );

    virtual bool		    drawAlphaRect( long nX, long nY, long nWidth, 
                                           long nHeight, sal_uInt8 nTransparency );
=====================================================================
Found a 21 line (148 tokens) duplication in the following files: 
Starting at line 4503 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 4603 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

bool INetURLObject::removeExtension(sal_Int32 nIndex, bool bIgnoreFinalSlash)
{
	SubString aSegment(getSegment(nIndex, bIgnoreFinalSlash));
	if (!aSegment.isPresent())
		return false;

	sal_Unicode const * pPathBegin
		= m_aAbsURIRef.getStr() + m_aPath.getBegin();
	sal_Unicode const * pPathEnd = pPathBegin + m_aPath.getLength();
	sal_Unicode const * pSegBegin
		= m_aAbsURIRef.getStr() + aSegment.getBegin();
	sal_Unicode const * pSegEnd = pSegBegin + aSegment.getLength();

    if (pSegBegin < pSegEnd && *pSegBegin == '/')
        ++pSegBegin;
	sal_Unicode const * pExtension = 0;
	sal_Unicode const * p = pSegBegin;
	for (; p != pSegEnd && *p != ';'; ++p)
		if (*p == '.' && p != pSegBegin)
			pExtension = p;
	if (!pExtension)
=====================================================================
Found a 30 line (148 tokens) duplication in the following files: 
Starting at line 3902 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 4019 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

	eParaAdjust = SVX_ADJUST_END;

	String aId, aStyle, aClass, aLang, aDir;

	const HTMLOptions *pOptions = GetOptions();
	for( USHORT i = pOptions->Count(); i; )
	{
		const HTMLOption *pOption = (*pOptions)[--i];
		switch( pOption->GetToken() )
		{
			case HTML_O_ID:
				aId = pOption->GetString();
				break;
			case HTML_O_ALIGN:
				eParaAdjust = (SvxAdjust)pOption->GetEnum( aHTMLPAlignTable, eParaAdjust );
				break;
			case HTML_O_STYLE:
				aStyle = pOption->GetString();
				break;
			case HTML_O_CLASS:
				aClass = pOption->GetString();
				break;
			case HTML_O_LANG:
				aLang = pOption->GetString();
				break;
			case HTML_O_DIR:
				aDir = pOption->GetString();
				break;
		}
	}
=====================================================================
Found a 24 line (148 tokens) duplication in the following files: 
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx
Starting at line 799 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
};
=====================================================================
Found a 32 line (148 tokens) duplication in the following files: 
Starting at line 434 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap4.cxx
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap4.cxx
Starting at line 657 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap4.cxx

				case OWN_ATTR_FRAME_MARGIN_HEIGHT:
                    // allow exceptions to pass through
                    xSet->setPropertyValue( aPropertyName, aValue );
                    bOwn = sal_True;
					break;
                default:
                    throw IllegalArgumentException();
            }
		}
	}

	if( !bOwn )
		SvxOle2Shape::setPropertyValue( aPropertyName, aValue );

	if( mpModel )
	{
        SfxObjectShell* pPersist = mpModel->GetPersist();
		if( pPersist && !pPersist->IsEnableSetModified() )
		{
			SdrOle2Obj* pOle = static_cast< SdrOle2Obj* >( mpObj.get() );
            if( pOle && !pOle->IsEmpty() )
			{
                uno::Reference < util::XModifiable > xMod( ((SdrOle2Obj*)mpObj.get())->GetObjRef(), uno::UNO_QUERY );
                if( xMod.is() )
                    // TODO/MBA: what's this?!
                    xMod->setModified( sal_False );
			}
		}
	}
}

Any SAL_CALL SvxFrameShape::getPropertyValue( const OUString& PropertyName ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
=====================================================================
Found a 7 line (148 tokens) duplication in the following files: 
Starting at line 264 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP),		WID_PAGE_LDBITMAP,	&ITYPE(awt::XBitmap),							beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME),	    WID_PAGE_LDNAME,	&::getCppuType((const OUString*)0),			    beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_NUMBER),			WID_PAGE_NUMBER,	&::getCppuType((const sal_Int16*)0),			beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_ORIENTATION),		WID_PAGE_ORIENT,	&::getCppuType((const view::PaperOrientation*)0),0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_WIDTH),			WID_PAGE_WIDTH,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN("BackgroundFullSize"),			WID_PAGE_BACKFULL,	&::getBooleanCppuType(),						0, 0},
=====================================================================
Found a 11 line (148 tokens) duplication in the following files: 
Starting at line 1200 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unoobj.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unomod.cxx

    virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

	// XElementAccess
    virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);

    // XServiceInfo
    virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
};
=====================================================================
Found a 26 line (148 tokens) duplication in the following files: 
Starting at line 606 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fudraw.cxx
Starting at line 821 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fupoor.cxx

								Rectangle aMarkRect(mpView->GetMarkedObjRect());
								aMarkRect.Move(nX, nY);

								if(!aMarkRect.IsInside(rWorkArea))
								{
									if(aMarkRect.Left() < rWorkArea.Left())
									{
										nX += rWorkArea.Left() - aMarkRect.Left();
									}

									if(aMarkRect.Right() > rWorkArea.Right())
									{
										nX -= aMarkRect.Right() - rWorkArea.Right();
									}

									if(aMarkRect.Top() < rWorkArea.Top())
									{
										nY += rWorkArea.Top() - aMarkRect.Top();
									}

									if(aMarkRect.Bottom() > rWorkArea.Bottom())
									{
										nY -= aMarkRect.Bottom() - rWorkArea.Bottom();
									}
								}
							}
=====================================================================
Found a 22 line (148 tokens) duplication in the following files: 
Starting at line 394 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuconpol.cxx
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconbez.cxx

				case SID_DRAW_BEZIER_NOFILL:
				{
					basegfx::B2DPolygon aInnerPoly;

					aInnerPoly.append(basegfx::B2DPoint(rRectangle.Left(), rRectangle.Bottom()));

					const basegfx::B2DPoint aCenterBottom(rRectangle.Center().X(), rRectangle.Bottom());
					aInnerPoly.appendBezierSegment(
						aCenterBottom,
						aCenterBottom,
						basegfx::B2DPoint(rRectangle.Center().X(), rRectangle.Center().Y()));

					const basegfx::B2DPoint aCenterTop(rRectangle.Center().X(), rRectangle.Top());
					aInnerPoly.appendBezierSegment(
						aCenterTop,
						aCenterTop,
						basegfx::B2DPoint(rRectangle.Right(), rRectangle.Top()));

					aPoly.append(aInnerPoly);
					break;
				}
				case SID_DRAW_FREELINE:
=====================================================================
Found a 24 line (148 tokens) duplication in the following files: 
Starting at line 2816 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx
Starting at line 3008 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx

							const ScTabOpParam& rParam, BOOL bRecord, BOOL bApi )
{
	ScDocShellModificator aModificator( rDocShell );

	BOOL bSuccess = FALSE;
	ScDocument* pDoc = rDocShell.GetDocument();
	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	SCTAB nStartTab = rRange.aStart.Tab();
	SCCOL nEndCol = rRange.aEnd.Col();
	SCROW nEndRow = rRange.aEnd.Row();
	SCTAB nEndTab = rRange.aEnd.Tab();

	if (bRecord && !pDoc->IsUndoEnabled())
		bRecord = FALSE;

	ScMarkData aMark;
	if (pTabMark)
		aMark = *pTabMark;
	else
	{
		for (SCTAB nTab=nStartTab; nTab<=nEndTab; nTab++)
			aMark.SelectTable( nTab, TRUE );
	}
=====================================================================
Found a 21 line (148 tokens) duplication in the following files: 
Starting at line 3721 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3810 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

	if (fCount < 3.0)
		SetNoValue();
	else
	{
		double fMeanX = fSumX / fCount;
		double fMeanY = fSumY / fCount;
		for (SCSIZE i = 0; i < nC1; i++)
        {
            for (SCSIZE j = 0; j < nR1; j++)
            {
                if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
                {
                    double fValX = pMat1->GetDouble(i,j);
                    double fValY = pMat2->GetDouble(i,j);
                    fSumDeltaXDeltaY += (fValX - fMeanX) * (fValY - fMeanY);
                    fSumSqrDeltaX    += (fValX - fMeanX) * (fValX - fMeanX);
                    fSumSqrDeltaY    += (fValY - fMeanY) * (fValY - fMeanY);
                }
            }
        }
		if (fSumSqrDeltaX == 0.0)
=====================================================================
Found a 20 line (148 tokens) duplication in the following files: 
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx
Starting at line 423 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/saxdemo.cxx

void writeParagraphHelper(
	const  Reference< XExtendedDocumentHandler > &r ,
	const OUString & s)
{
	int nMax = s.getLength();
	int nStart = 0;

	Sequence<sal_uInt16> seq( s.getLength() );
	memcpy( seq.getArray() , s.getStr() , s.getLength() * sizeof( sal_uInt16 ) );

	for( int n = 1 ; n < nMax ; n++ ){
		if( 32 == seq.getArray()[n] ) {
			r->allowLineBreak();
			r->characters( s.copy( nStart , n - nStart ) );
			nStart = n;
		}
	}
	r->allowLineBreak();
	r->characters( s.copy( nStart , n - nStart ) );
}
=====================================================================
Found a 28 line (148 tokens) duplication in the following files: 
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testsax.cxx
Starting at line 633 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testsax.cxx

      	"<html:a href='http://frob.com'>here.</html:a></html:p></html:body>\n"
  	"</html:html>\n";

	Sequence<sal_Int8> seqBytes( strlen( TestString ) );
	memcpy( seqBytes.getArray() , TestString , strlen( TestString ) );

	
	Reference< XInputStream > rInStream;
	OUString sInput;

	rInStream = createStreamFromSequence( seqBytes , m_rFactory );
	sInput = OUString( RTL_CONSTASCII_USTRINGPARAM("internal") );
	
	if( rParser.is() ) {
		InputSource source;

		source.aInputStream = rInStream;
		source.sSystemId 	= sInput;
		
		TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , sal_False );
		Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler , UNO_QUERY );
		Reference< XEntityResolver >  rEntityResolver( (XEntityResolver *) pDocHandler , UNO_QUERY );
	
		rParser->setDocumentHandler( rDocHandler );
		rParser->setEntityResolver( rEntityResolver );
		try
		{
			rParser->parseStream( source );
=====================================================================
Found a 10 line (148 tokens) duplication in the following files: 
Starting at line 953 of /local/ooo-build/ooo-build/src/oog680-m3/sax/source/expatwrap/saxwriter.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/svx/workben/msview/xmlconfig.cxx

public:
	// XDocumentHandler
	virtual void SAL_CALL startDocument(void) throw( SAXException, RuntimeException );
	virtual void SAL_CALL endDocument(void) throw( SAXException, RuntimeException );
	virtual void SAL_CALL startElement(const OUString& aName, const Reference< XAttributeList > & xAttribs) throw( SAXException, RuntimeException );
	virtual void SAL_CALL endElement(const OUString& aName) throw( SAXException, RuntimeException );
	virtual void SAL_CALL characters(const OUString& aChars) throw( SAXException, RuntimeException );
	virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces) throw( SAXException, RuntimeException );
	virtual void SAL_CALL processingInstruction(const OUString& aTarget, const OUString& aData) throw( SAXException, RuntimeException );
	virtual void SAL_CALL setDocumentLocator(const Reference< XLocator > & xLocator) throw( SAXException, RuntimeException );
=====================================================================
Found a 10 line (148 tokens) duplication in the following files: 
Starting at line 1844 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 1876 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

				{
					m_pData->m_pTypeCollection = new ::cppu::OTypeCollection
									(	::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XInputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XOutputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XSeekable >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XTruncate >* )NULL )
									,	::getCppuType( ( const uno::Reference< lang::XComponent >* )NULL )
									,	::getCppuType( ( const uno::Reference< embed::XExtendedStorageStream >* )NULL )
=====================================================================
Found a 79 line (148 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
/* RES_GRFATR_ROTATION */			0,
/* RES_GRFATR_LUMINANCE */			0,
/* RES_GRFATR_CONTRAST */			0,
/* RES_GRFATR_CHANNELR */			0,
/* RES_GRFATR_CHANNELG */			0,
/* RES_GRFATR_CHANNELB */			0,
/* RES_GRFATR_GAMMA */				0,
/* RES_GRFATR_INVERT */				0,
/* RES_GRFATR_TRANSPARENCY */		0,
/* RES_GRFATR_DRWAMODE */			0,
/* RES_GRFATR_DUMMY1 */				0,
/* RES_GRFATR_DUMMY2 */				0,
/* RES_GRFATR_DUMMY3 */				0,
/* RES_GRFATR_DUMMY4 */				0,
/* RES_GRFATR_DUMMY5 */				0,

/* RES_BOXATR_FORMAT */				0,
/* RES_BOXATR_FORMULA */			0,
/* RES_BOXATR_VALUE */				0
};
=====================================================================
Found a 5 line (148 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,
=====================================================================
Found a 6 line (148 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_mask.h

 0x3f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (148 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,
=====================================================================
Found a 6 line (148 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_mask.h

 0x3f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 79 line (148 tokens) duplication in the following files: 
Starting at line 408 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
/* RES_GRFATR_ROTATION */			0,
/* RES_GRFATR_LUMINANCE */			0,
/* RES_GRFATR_CONTRAST */			0,
/* RES_GRFATR_CHANNELR */			0,
/* RES_GRFATR_CHANNELG */			0,
/* RES_GRFATR_CHANNELB */			0,
/* RES_GRFATR_GAMMA */				0,
/* RES_GRFATR_INVERT */				0,
/* RES_GRFATR_TRANSPARENCY */		0,
/* RES_GRFATR_DRWAMODE */			0,
/* RES_GRFATR_DUMMY1 */				0,
/* RES_GRFATR_DUMMY2 */				0,
/* RES_GRFATR_DUMMY3 */				0,
/* RES_GRFATR_DUMMY4 */				0,
/* RES_GRFATR_DUMMY5 */				0,

/* RES_BOXATR_FORMAT */				0,
/* RES_BOXATR_FORMULA */			0,
/* RES_BOXATR_VALUE */				0
};
=====================================================================
Found a 16 line (148 tokens) duplication in the following files: 
Starting at line 638 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx
Starting at line 666 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx

				double fOrientation, fStartAngle, fEndAngle, vector[ 4 ];
				FloatPoint aCenter, aRadius;

				if ( mbFigure )
					mpOutAct->CloseRegion();

				sal_Bool bDirection = ImplGetEllipse( aCenter, aRadius, fOrientation );
				ImplGetVector( &vector[ 0 ] );

				fStartAngle = acos( vector[ 0 ] / sqrt( vector[ 0 ] * vector[ 0 ] + vector[ 1 ] * vector[ 1 ] ) ) * 57.29577951308;
				fEndAngle = acos( vector[ 2 ] / sqrt( vector[ 2 ] * vector[ 2 ] + vector[ 3 ] * vector[ 3 ] ) ) * 57.29577951308;

				if ( vector[ 1 ] > 0 )
					fStartAngle = 360 - fStartAngle;
				if ( vector[ 3 ] > 0 )
					fEndAngle = 360 - fEndAngle;
=====================================================================
Found a 22 line (148 tokens) duplication in the following files: 
Starting at line 705 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx

		case (B3D_TXT_MODE_MOD|B3D_TXT_KIND_LUM) :
		{
			fS = fS - floor(fS);
			fT = fT - floor(fT);
			long nX2, nY2;

			if(fS > 0.5) {
				nX2 = (nX + 1) % GetBitmapSize().Width();
				fS = 1.0 - fS;
			} else
				nX2 = nX ? nX - 1 : GetBitmapSize().Width() - 1;

			if(fT > 0.5) {
				nY2 = (nY + 1) % GetBitmapSize().Height();
				fT = 1.0 - fT;
			} else
				nY2 = nY ? nY - 1 : GetBitmapSize().Height() - 1;

			fS += 0.5;
			fT += 0.5;
			double fRight = 1.0 - fS;
			double fBottom = 1.0 - fT;
=====================================================================
Found a 25 line (148 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/constitemcontainer.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/rootitemcontainer.cxx

void RootItemContainer::copyItemContainer( const std::vector< Sequence< PropertyValue > >& rSourceVector )
{
    for ( sal_uInt32 i = 0; i < rSourceVector.size(); i++ )
    {
        sal_Int32 nContainerIndex = -1;
        Sequence< PropertyValue > aPropSeq( rSourceVector[i] );
        Reference< XIndexAccess > xIndexAccess;
        for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
        {
            if ( aPropSeq[j].Name.equalsAscii( "ItemDescriptorContainer" ))
            {
                aPropSeq[j].Value >>= xIndexAccess;
                nContainerIndex = j;
                break;
            }
        }
        
        if ( xIndexAccess.is() && nContainerIndex >= 0 )
            aPropSeq[nContainerIndex].Value <<= deepCopyContainer( xIndexAccess );
        
        m_aItemVector.push_back( aPropSeq );
    }
}

Reference< XIndexAccess > RootItemContainer::deepCopyContainer( const Reference< XIndexAccess >& rSubContainer )
=====================================================================
Found a 20 line (148 tokens) duplication in the following files: 
Starting at line 1646 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFilePicker.cxx
Starting at line 610 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/win32/filepicker/FilePicker.cxx

void SAL_CALL CFilePicker::initialize(const uno::Sequence<uno::Any>& aArguments) 
	throw( uno::Exception, uno::RuntimeException)
{
	// parameter checking	    
	uno::Any aAny;
	if ( 0 == aArguments.getLength( ) )
		throw lang::IllegalArgumentException(
			rtl::OUString::createFromAscii( "no arguments" ),
			static_cast<XFilePicker*>(this), 1);
   
    aAny = aArguments[0];

    if ( (aAny.getValueType() != ::getCppuType((sal_Int16*)0)) &&
         (aAny.getValueType() != ::getCppuType((sal_Int8*)0)) )
		 throw lang::IllegalArgumentException(
            rtl::OUString::createFromAscii("invalid argument type"),
            static_cast<XFilePicker*>(this), 1);

	sal_Int16 templateId = -1;
	aAny >>= templateId;
=====================================================================
Found a 79 line (148 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
/* RES_GRFATR_ROTATION */			0,
/* RES_GRFATR_LUMINANCE */			0,
/* RES_GRFATR_CONTRAST */			0,
/* RES_GRFATR_CHANNELR */			0,
/* RES_GRFATR_CHANNELG */			0,
/* RES_GRFATR_CHANNELB */			0,
/* RES_GRFATR_GAMMA */				0,
/* RES_GRFATR_INVERT */				0,
/* RES_GRFATR_TRANSPARENCY */		0,
/* RES_GRFATR_DRWAMODE */			0,
/* RES_GRFATR_DUMMY1 */				0,
/* RES_GRFATR_DUMMY2 */				0,
/* RES_GRFATR_DUMMY3 */				0,
/* RES_GRFATR_DUMMY4 */				0,
/* RES_GRFATR_DUMMY5 */				0,

/* RES_BOXATR_FORMAT */				0,
/* RES_BOXATR_FORMULA */			0,
/* RES_BOXATR_VALUE */				0
};
=====================================================================
Found a 28 line (148 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/crashrep/source/unx/main.cxx
Starting at line 570 of /local/ooo-build/ooo-build/src/oog680-m3/crashrep/source/win32/soreport.cpp

	return string( pBuffer );
}

//***************************************************************************

static string xml_encode( const string &rString )
{
	string temp = rString;
    string::size_type pos = 0;

	// First replace all occurences of '&' because it may occur in further
	// encoded chardters too

    for( pos = 0; (pos = temp.find( '&', pos )) != string::npos; pos += 4 )
        temp.replace( pos, 1, "&amp;" );

	for( pos = 0; (pos = temp.find( '<', pos )) != string::npos; pos += 4 )
        temp.replace( pos, 1, "&lt;" );

    for( pos = 0; (pos = temp.find( '>', pos )) != string::npos; pos += 4 )
        temp.replace( pos, 1, "&gt;" );

	return temp;
}

//***************************************************************************

static size_t fcopy( FILE *fpin, FILE *fpout )
=====================================================================
Found a 23 line (148 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1736 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

            (a >>= b) && b.getLength() == 1 && b[0] == 1);
    }
    {
        Enum1 b = Enum1_M2;
        CPPUNIT_ASSERT_MESSAGE("Enum1", !(a >>= b) && b == Enum1_M2);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testEnum() {
=====================================================================
Found a 28 line (148 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 778 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< sal_Int32 >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", (a >>= b) && b == 1);
=====================================================================
Found a 37 line (148 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/Dservices.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NServices.cxx

	OSL_ENSURE(xNewKey.is(), "EVOAB::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(::com::sun::star::uno::Exception)
=====================================================================
Found a 19 line (148 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDriver.cxx
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDriver.cxx

Sequence< DriverPropertyInfo > SAL_CALL OFileDriver::getPropertyInfo( const ::rtl::OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
	if ( acceptsURL(url) )
	{
		::std::vector< DriverPropertyInfo > aDriverInfo;

		Sequence< ::rtl::OUString > aBoolean(2);
		aBoolean[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("0"));
		aBoolean[1] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("1"));

		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharSet"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharSet of the database."))
				,sal_False
				,::rtl::OUString()
				,Sequence< ::rtl::OUString >())
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Extension"))
=====================================================================
Found a 37 line (148 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NServices.cxx

	OSL_ENSURE(xNewKey.is(), "EVOAB::component_writeInfo : could not create a registry key !");

	for (sal_Int32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname,
				const Sequence< OUString > & Services,
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try
		{
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);
		}
		catch(::com::sun::star::uno::Exception)
=====================================================================
Found a 21 line (148 tokens) duplication in the following files: 
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/nodeimplobj.cxx
Starting at line 339 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/nodeimplobj.cxx

void DeferredGroupNodeImpl::failedCommit(data::Accessor const& _aAccessor, SubtreeChange& rChanges)
{
	OSL_ENSURE(!rChanges.isSetNodeChange(),"ERROR: Change type SET does not match group");

	for(SubtreeChange::MutatingChildIterator it = rChanges.begin_changes(), stop = rChanges.end_changes();
		it != stop;
		++it)
	{
		Name aValueName = makeNodeName(it->getNodeName(), Name::NoValidate());

        MemberChanges::iterator itStoredChange = m_aChanges.find(aValueName);

        if (itStoredChange != m_aChanges.end())
        {
            OSL_ENSURE( it->ISA(ValueChange) , "Unexpected type of element change");
			if (!it->ISA(ValueChange)) continue;

            ValueChange & rValueChange = static_cast<ValueChange&>(*it);

            MemberChange aStoredChange = itStoredChange->second;
            OSL_ENSURE( aStoredChange.is(), "Cannot recover from failed change: found empty change object for Member value change");
=====================================================================
Found a 24 line (148 tokens) duplication in the following files: 
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx
Starting at line 600 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx

		ElementRef aElement = aTree.getElement(aNode,aChildName);
		if (!aElement.isValid())
		{
	    	OSL_ENSURE(!configuration::hasChildOrElement(aTree,aNode,aChildName),"ERROR: Configuration: Existing Set element not found by implementation");

		    OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot remove Set Element. Element '") );
			sMessage += sName;
			sMessage += OUString( RTL_CONSTASCII_USTRINGPARAM("' not found in Set ")  );
			sMessage += aTree.getAbsolutePath(aNode).toString();

			Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
			throw NoSuchElementException( sMessage, xContext );
		}

		NodeChange aChange = lock.getNodeUpdater().validateRemoveElement(aElement);

		aChange.test(); // make sure old values are set up correctly
		OSL_ENSURE(aChange.isChange(), "ERROR: Removing a node validated as empty change");

		Broadcaster aSender(rNode.getNotifier().makeBroadcaster(aChange,true));

		//aSender.queryConstraints(); - N/A: no external constraints on set children possible

		aTree.integrate(aChange, aNode, true);
=====================================================================
Found a 14 line (148 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/IndexedPropertyValuesContainer.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/NamedPropertyValuesContainer.cxx

		throw(::com::sun::star::uno::RuntimeException);

	// XElementAccess
	virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  )
		throw(::com::sun::star::uno::RuntimeException);
	virtual sal_Bool SAL_CALL hasElements(  )
		throw(::com::sun::star::uno::RuntimeException);

	//XServiceInfo
	virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);

private:
=====================================================================
Found a 31 line (148 tokens) duplication in the following files: 
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idloptions.cxx
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

	for (; i < ac; i++)
	{
		if (av[i][0] == '-')
		{
			switch (av[i][1])
			{
				case 'O':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'X':
=====================================================================
Found a 36 line (148 tokens) duplication in the following files: 
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 2010 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx

	sal_Bool bSelfCheck = sal_True;
	if (!pReader)
	{
		bSelfCheck = sal_False;
		pReader = &m_reader;
	}

	sal_uInt32 count = 0;
	OString superType(pReader->getSuperTypeName());
	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));
		if (aSuperReader.isValid())
		{
			count = checkInheritedMemberCount(&aSuperReader);		
		}
	}

	if (bSelfCheck)
	{
		count += pReader->getMethodCount();
		sal_uInt32 fieldCount = pReader->getFieldCount();
		RTFieldAccess access = RT_ACCESS_INVALID;
		for (sal_uInt16 i=0; i < fieldCount; i++)
		{
			access = pReader->getFieldAccess(i);
			
			if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
				count++;
		}	
	}

	return count;
}	

sal_uInt32 InterfaceType::getInheritedMemberCount()
=====================================================================
Found a 31 line (148 tokens) duplication in the following files: 
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx

	for( ; i < ac; i++)
	{
		if (av[i][0] == '-')
		{
			switch (av[i][1])
			{
				case 'O':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'B':
=====================================================================
Found a 29 line (148 tokens) duplication in the following files: 
Starting at line 375 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_textlayout.cxx
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/textlayout.cxx

        tools::LocalGuard aGuard;

        setupLayoutMode( rOutDev, mnTextDirection );

        if( maLogicalAdvancements.getLength() )
        {
            // TODO(P2): cache that
            ::boost::scoped_array< sal_Int32 > aOffsets(new sal_Int32[maLogicalAdvancements.getLength()]);
            setupTextOffsets( aOffsets.get(), maLogicalAdvancements, viewState, renderState );
            
            // TODO(F3): ensure correct length and termination for DX
            // array (last entry _must_ contain the overall width)
            
            rOutDev.DrawTextArray( rOutpos,
                                   maText.Text,
                                   aOffsets.get(),
                                   ::canvas::tools::numeric_cast<USHORT>(maText.StartPosition),
                                   ::canvas::tools::numeric_cast<USHORT>(maText.Length) );
        }
        else
        {
            rOutDev.DrawText( rOutpos,
                              maText.Text,
                              ::canvas::tools::numeric_cast<USHORT>(maText.StartPosition),
                              ::canvas::tools::numeric_cast<USHORT>(maText.Length) );
        }

        return true;
    }
=====================================================================
Found a 27 line (148 tokens) duplication in the following files: 
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 25 line (148 tokens) duplication in the following files: 
Starting at line 494 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

}


void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /* functionCount */, sal_Int32 vtableOffset)
=====================================================================
Found a 28 line (148 tokens) duplication in the following files: 
Starting at line 468 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx

                    (void **)&pInterface, pCppI->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( gpreg[0] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *(void **)pRegisterReturn = gpreg[0];
                    eRet = typelib_TypeClass_ANY;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	default:
	{
=====================================================================
Found a 27 line (148 tokens) duplication in the following files: 
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			pCppReturn, pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 19 line (148 tokens) duplication in the following files: 
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxobj.cxx
Starting at line 582 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxobj.cxx

		SetModified( TRUE );
#ifdef DBG_UTIL
	static const char* pCls[] =
	{ "DontCare","Array","Value","Variable","Method","Property","Object" };
	XubString aVarName( pVar->GetName() );
	if ( !aVarName.Len() && pVar->ISA(SbxObject) )
		aVarName = PTR_CAST(SbxObject,pVar)->GetClassName();
	ByteString aNameStr1( (const UniString&)aVarName, RTL_TEXTENCODING_ASCII_US );
	ByteString aNameStr2( (const UniString&)SbxVariable::GetName(), RTL_TEXTENCODING_ASCII_US );
	DbgOutf( "SBX: Insert %s %s in %s",
		( pVar->GetClass() >= SbxCLASS_DONTCARE &&
		  pVar->GetClass() <= SbxCLASS_OBJECT )
			? pCls[ pVar->GetClass()-1 ] : "Unknown class", aNameStr1.GetBuffer(), aNameStr1.GetBuffer() );
#endif
	}
}

// AB 23.3.1997, Spezial-Methode, gleichnamige Controls zulassen
void SbxObject::VCPtrInsert( SbxVariable* pVar )
=====================================================================
Found a 24 line (147 tokens) duplication in the following files: 
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg[4];

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
=====================================================================
Found a 24 line (147 tokens) duplication in the following files: 
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

            base_type(alloc, src, color_type(0,0,0,0), inter, filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg[3];

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
=====================================================================
Found a 26 line (147 tokens) duplication in the following files: 
Starting at line 557 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_gray.h
Starting at line 671 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

            unsigned step_back = diameter * 3;
            color_type* span = base_type::allocator().span();

            int maxx = base_type::source_image().width() + start - 2;
            int maxy = base_type::source_image().height() + start - 2;

            int maxx2 = base_type::source_image().width() - start - 1;
            int maxy2 = base_type::source_image().height() - start - 1;

            int x_count; 
            int weight_y;

            do
            {
                base_type::interpolator().coordinates(&x, &y);

                x -= base_type::filter_dx_int();
                y -= base_type::filter_dy_int();

                int x_hr = x;
                int y_hr = y;
            
                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                fg[0] = fg[1] = fg[2] = image_filter_size / 2;
=====================================================================
Found a 5 line (147 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_mask.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,
=====================================================================
Found a 29 line (147 tokens) duplication in the following files: 
Starting at line 1059 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/region.cxx
Starting at line 1254 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/region.cxx

BOOL Region::XOr( const Rectangle& rRect )
{
	DBG_CHKTHIS( Region, ImplDbgTestRegion );

	// is rectangle empty? -> nothing to do
	if ( rRect.IsEmpty() )
		return TRUE;

	ImplPolyPolyRegionToBandRegion();

	// no instance data? -> create!
	if ( (mpImplRegion == &aImplEmptyRegion) || (mpImplRegion == &aImplNullRegion) )
		mpImplRegion = new ImplRegion();

	// no own instance data? -> make own copy!
	if ( mpImplRegion->mnRefCount > 1 )
		ImplCopyData();

	// get justified rectangle
	long nLeft		= Min( rRect.Left(), rRect.Right() );
	long nTop		= Min( rRect.Top(), rRect.Bottom() );
	long nRight 	= Max( rRect.Left(), rRect.Right() );
	long nBottom	= Max( rRect.Top(), rRect.Bottom() );

	// insert bands if the boundaries are not allready in the list
	mpImplRegion->InsertBands( nTop, nBottom );

	// process xor
	mpImplRegion->XOr( nLeft, nTop, nRight, nBottom );
=====================================================================
Found a 18 line (147 tokens) duplication in the following files: 
Starting at line 1094 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

								nTemp = pLutFrac[ nY ];

								lXR1 = aCol1.GetRed() - ( lXR0 = aCol0.GetRed() );
								lXG1 = aCol1.GetGreen() - ( lXG0 = aCol0.GetGreen() );
								lXB1 = aCol1.GetBlue() - ( lXB0 = aCol0.GetBlue() );

								aCol0.SetRed( (BYTE) ( ( lXR1 * nTemp + ( lXR0 << 10 ) ) >> 10 ) );
								aCol0.SetGreen( (BYTE) ( ( lXG1 * nTemp + ( lXG0 << 10 ) ) >> 10 ) );
								aCol0.SetBlue( (BYTE) ( ( lXB1 * nTemp + ( lXB0 << 10 ) ) >> 10 ) );

								pWriteAcc->SetPixel( nY, nX, aCol0 );
							}
						}
					}
				}
				else
				{
					for( nX = 0L; nX < nNewWidth; nX++ )
=====================================================================
Found a 24 line (147 tokens) duplication in the following files: 
Starting at line 1222 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/ucblockbytes.cxx
Starting at line 1315 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/ucblockbytes.cxx

    if ( bAborted || bException )
    {
        if( xHandler.Is() )
            xHandler->Handle( UcbLockBytesHandler::CANCEL, xLockBytes );

        Reference < XActiveDataSink > xActiveSink( xSink, UNO_QUERY );
        if ( xActiveSink.is() )
            xActiveSink->setInputStream( Reference < XInputStream >() );

        Reference < XActiveDataStreamer > xStreamer( xSink, UNO_QUERY );
        if ( xStreamer.is() )
            xStreamer->setStream( Reference < XStream >() );
    }

    Reference < XActiveDataControl > xControl( xSink, UNO_QUERY );
    if ( xControl.is() )
        xControl->terminate();


    if ( xProps.is() )
        xProps->removePropertiesChangeListener( Sequence< ::rtl::OUString >(), xListener );

    return ( bAborted || bException );
}
=====================================================================
Found a 19 line (147 tokens) duplication in the following files: 
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/pagechg.cxx
Starting at line 2145 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/wsfrm.cxx

	BYTE nInvFlags = 0;

	if( pNew && RES_ATTRSET_CHG == pNew->Which() )
	{
		SfxItemIter aNIter( *((SwAttrSetChg*)pNew)->GetChgSet() );
		SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() );
		SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld );
		SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew );
		while( TRUE )
		{
			_UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(),
						 (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags,
						 &aOldSet, &aNewSet );
			if( aNIter.IsAtEnd() )
				break;
			aNIter.NextItem();
			aOIter.NextItem();
		}
		if ( aOldSet.Count() || aNewSet.Count() )
=====================================================================
Found a 28 line (147 tokens) duplication in the following files: 
Starting at line 791 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doctxm.cxx
Starting at line 1505 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndsect.cxx

                nNum = rNm.Copy( nNmLen ).ToInt32();
				if( nNum-- && nNum < pSectionFmtTbl->Count() )
					pSetFlags[ nNum / 8 ] |= (0x01 << ( nNum & 0x07 ));
			}
			if( pChkStr && pChkStr->Equals( rNm ) )
				pChkStr = 0;
		}

	if( !pChkStr )
	{
		// alle Nummern entsprechend geflag, also bestimme die richtige Nummer
		nNum = pSectionFmtTbl->Count();
		for( n = 0; n < nFlagSize; ++n )
			if( 0xff != ( nTmp = pSetFlags[ n ] ))
			{
				// also die Nummer bestimmen
				nNum = n * 8;
				while( nTmp & 1 )
					++nNum, nTmp >>= 1;
				break;
			}

	}
	delete [] pSetFlags;
	if( pChkStr )
		return *pChkStr;
	return aName += String::CreateFromInt32( ++nNum );
}
=====================================================================
Found a 29 line (147 tokens) duplication in the following files: 
Starting at line 1998 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx
Starting at line 2691 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx

sal_Bool XLineEndItem::PutValue( const ::com::sun::star::uno::Any& rVal, BYTE nMemberId )
{
//    sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
    nMemberId &= ~CONVERT_TWIPS;
	if( nMemberId == MID_NAME )
	{
		return sal_False;
	}
	else
	{
		maPolyPolygon.clear();

		if( rVal.hasValue() && rVal.getValue() )
		{
			if( rVal.getValueType() != ::getCppuType((const com::sun::star::drawing::PolyPolygonBezierCoords*)0) )
				return sal_False;

			com::sun::star::drawing::PolyPolygonBezierCoords* pCoords = (com::sun::star::drawing::PolyPolygonBezierCoords*)rVal.getValue();
			if( pCoords->Coordinates.getLength() > 0 )
			{
				maPolyPolygon = SvxConvertPolyPolygonBezierToB2DPolyPolygon( pCoords );
				// #i72807# close line start/end polygons hard
				// maPolyPolygon.setClosed(true);
			}
		}
	}

	return sal_True;
}
=====================================================================
Found a 12 line (147 tokens) duplication in the following files: 
Starting at line 4828 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx
Starting at line 5528 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx

						if ( !rGlobalChildRect.IsEmpty() && !rClientRect.IsEmpty() && rGlobalChildRect.GetWidth() && rGlobalChildRect.GetHeight() )
						{
							double fl = l;
							double fo = o;
							double fWidth = r - l;
							double fHeight= u - o;
							double fXScale = (double)rClientRect.GetWidth() / (double)rGlobalChildRect.GetWidth();
							double fYScale = (double)rClientRect.GetHeight() / (double)rGlobalChildRect.GetHeight();
							fl = ( ( l - rGlobalChildRect.Left() ) * fXScale ) + rClientRect.Left();
							fo = ( ( o - rGlobalChildRect.Top()  ) * fYScale ) + rClientRect.Top();
							fWidth *= fXScale;
							fHeight *= fYScale;
=====================================================================
Found a 33 line (147 tokens) duplication in the following files: 
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/docrecovery.cxx
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/docrecovery.cxx

void RecoveryCore::forgetBrokenRecoveryEntries()
{
    if (!m_xRealCore.is())
        return;

    css::util::URL aRemoveURL = impl_getParsedURL(RECOVERY_CMD_DO_ENTRY_CLEANUP);
    css::uno::Sequence< css::beans::PropertyValue > lRemoveArgs(2);
    lRemoveArgs[0].Name    = PROP_DISPATCHASYNCHRON;
    lRemoveArgs[0].Value <<= sal_False;
    lRemoveArgs[1].Name    = PROP_ENTRYID;
    // lRemoveArgs[1].Value will be changed during next loop ...

    // work on a copied list only ...
    // Reason: We will get notifications from the core for every
    // changed or removed element. And that will change our m_lURLs list.
    // That's not a good idea, if we use a stl iterator inbetween .-)
    TURLList lURLs = m_lURLs;
    TURLList::const_iterator pIt;
    for (  pIt  = lURLs.begin();
           pIt != lURLs.end()  ;
         ++pIt                 )
    {
        const TURLInfo& rInfo = *pIt;
        if (!RecoveryCore::isBrokenTempEntry(rInfo))
            continue;

        lRemoveArgs[1].Value <<= rInfo.ID;
        m_xRealCore->dispatch(aRemoveURL, lRemoveArgs);
    }
}

//===============================================
void RecoveryCore::setProgressHandler(const css::uno::Reference< css::task::XStatusIndicator >& xProgress)
=====================================================================
Found a 21 line (147 tokens) duplication in the following files: 
Starting at line 4551 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4140 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartPreparationVert[] =
{
	{ 4350, 0 }, { 17250, 0 }, { 21600, 10800 }, { 17250, 21600 },
	{ 4350, 21600 }, { 0, 10800 }, { 4350, 0 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartPreparationTextRect[] = 
{
	{ { 4350, 0 }, { 17250, 21600 } }
};
static const mso_CustomShape msoFlowChartPreparation =
{
	(SvxMSDffVertPair*)mso_sptFlowChartPreparationVert, sizeof( mso_sptFlowChartPreparationVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartPreparationTextRect, sizeof( mso_sptFlowChartPreparationTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 11 line (147 tokens) duplication in the following files: 
Starting at line 2150 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1880 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptActionButtonHelpVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I,4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I },
=====================================================================
Found a 32 line (147 tokens) duplication in the following files: 
Starting at line 1054 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/defaultregistry/defaultregistry.cxx
Starting at line 1098 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/defaultregistry/defaultregistry.cxx

OUString SAL_CALL NestedKeyImpl::getLinkTarget( const OUString& rLinkName ) 
	throw(InvalidRegistryException, RuntimeException)
{
	Guard< Mutex > aGuard( m_pRegistry->m_mutex );
	if ( !m_localKey.is() && !m_defaultKey.is() )
	{
		throw InvalidRegistryException();
	}

	OUString 	linkName;
	OUString 	resolvedName;
	sal_Int32 	lastIndex = rLinkName.lastIndexOf('/');
	
	if ( lastIndex > 0 )
	{
		linkName = rLinkName.copy(0, lastIndex);

		resolvedName = computeName(linkName);

		if ( resolvedName.getLength() == 0 )
		{
			throw InvalidRegistryException();
		}
		
		resolvedName = resolvedName + rLinkName.copy(lastIndex);
	} else
	{
		if ( lastIndex == 0 )
			resolvedName = m_name + rLinkName;
		else
			resolvedName = m_name + OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + rLinkName;
	}
=====================================================================
Found a 79 line (147 tokens) duplication in the following files: 
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
/* RES_GRFATR_ROTATION */			0,
/* RES_GRFATR_LUMINANCE */			0,
/* RES_GRFATR_CONTRAST */			0,
/* RES_GRFATR_CHANNELR */			0,
/* RES_GRFATR_CHANNELG */			0,
/* RES_GRFATR_CHANNELB */			0,
/* RES_GRFATR_GAMMA */				0,
/* RES_GRFATR_INVERT */				0,
/* RES_GRFATR_TRANSPARENCY */		0,
/* RES_GRFATR_DRWAMODE */			0,
/* RES_GRFATR_DUMMY1 */				0,
/* RES_GRFATR_DUMMY2 */				0,
/* RES_GRFATR_DUMMY3 */				0,
/* RES_GRFATR_DUMMY4 */				0,
/* RES_GRFATR_DUMMY5 */				0,

/* RES_BOXATR_FORMAT */				0,
/* RES_BOXATR_FORMULA */			0,
/* RES_BOXATR_VALUE */				0
};
=====================================================================
Found a 21 line (147 tokens) duplication in the following files: 
Starting at line 617 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx
Starting at line 646 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx

            pKeyBuffer[0] = 1;

            sal_uInt32     nArgLen = 16;
            sal_uInt8     *pArgBuffer = new sal_uInt8[ nArgLen ];
            memset(pArgBuffer, 0, nArgLen);
            pArgBuffer[0] = 1;

            t_print(T_VERBOSE, "Key: %s\n", createHex(pKeyBuffer, nKeyLen).getStr());
            t_print(T_VERBOSE, "Arg: %s\n", createHex(pArgBuffer, nArgLen).getStr());

            rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, pArgBuffer, nArgLen);
            CPPUNIT_ASSERT_MESSAGE("wrong init", aError == rtl_Cipher_E_None);

            t_print(T_VERBOSE, "Key: %s\n", createHex(pKeyBuffer, nKeyLen).getStr());
            t_print(T_VERBOSE, "Arg: %s\n", createHex(pArgBuffer, nArgLen).getStr());

            delete [] pArgBuffer;
            delete [] pKeyBuffer;

            rtl_cipher_destroy(aCipher);
        }
=====================================================================
Found a 40 line (147 tokens) duplication in the following files: 
Starting at line 596 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx
Starting at line 662 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx

    *result = '\0';

    // if this suffix is being cross checked with a prefix
    // but it does not support cross products skip it

    if ((optflags & aeXPRODUCT) != 0 &&  (opts & aeXPRODUCT) == 0)
        return NULL;

    // upon entry suffix is 0 length or already matches the end of the word.
    // So if the remaining root word has positive length
    // and if there are enough chars in root word and added back strip chars
    // to meet the number of characters conditions, then test it

    tmpl = len - appndl;

    if ((tmpl > 0)  &&  (tmpl + stripl >= numconds)) {

	    // generate new root word by removing suffix and adding
	    // back any characters that would have been stripped or
	    // or null terminating the shorter string

	    strcpy (tmpword, word);
	    cp = (unsigned char *)(tmpword + tmpl);
	    if (stripl) {
		strcpy ((char *)cp, strip);
		tmpl += stripl;
		cp = (unsigned char *)(tmpword + tmpl);
	    } else *cp = '\0';

            // now make sure all of the conditions on characters
            // are met.  Please see the appendix at the end of
            // this file for more info on exactly what is being
            // tested

            // if all conditions are met then recall suffix_check

	    if (test_condition((char *) cp, (char *) tmpword)) {
                if (ppfx) {
                    // handle conditional suffix
                    if ((contclass) && TESTAFF(contclass, ep->getFlag(), contclasslen)) {
=====================================================================
Found a 23 line (147 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/marktest.cxx
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/pipetest.cxx

	~OPipeTest();

public: // implementation names
    static Sequence< OUString > 	getSupportedServiceNames_Static(void) throw();
	static OUString 				getImplementationName_Static() throw();

public:
    virtual void SAL_CALL testInvariant(const OUString& TestName, const Reference < XInterface >& TestObject)
		throw  ( IllegalArgumentException, RuntimeException) ;

    virtual sal_Int32 SAL_CALL test(	const OUString& TestName,
										const Reference < XInterface >& TestObject,
										sal_Int32 hTestHandle)
		throw  (	IllegalArgumentException,
					RuntimeException);

    virtual sal_Bool SAL_CALL testPassed(void) 								throw  (	RuntimeException) ;
    virtual Sequence< OUString > SAL_CALL getErrors(void) 				throw  (RuntimeException) ;
    virtual Sequence< Any > SAL_CALL getErrorExceptions(void) 		throw  (RuntimeException);
	virtual Sequence< OUString > SAL_CALL getWarnings(void) 				throw  (RuntimeException);

private:
	void testSimple( const Reference < XInterface > & );
=====================================================================
Found a 6 line (147 tokens) duplication in the following files: 
Starting at line 772 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 864 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbd0 - fbdf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbe0 - fbef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbf0 - fbff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd00 - fd0f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd10 - fd1f
=====================================================================
Found a 6 line (147 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,// 07a0 - 07af
     6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07f0 - 07ff
=====================================================================
Found a 32 line (147 tokens) duplication in the following files: 
Starting at line 736 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 661 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

										   const NMSP_RTL::OUString* pStyle, sal_uInt32 nWriteFlags )
{
	if( rPolyPoly.Count() )
	{
		SvXMLElementExport	aElemG( mrExport, XML_NAMESPACE_NONE, aXMLElemG, TRUE, TRUE );
		FastString			aClipId;
		FastString			aClipStyle;

		aClipId += B2UCONST( "clip" );
		aClipId += NMSP_RTL::OUString::valueOf( ImplGetNextClipId() );

		{
			SvXMLElementExport aElemDefs( mrExport, XML_NAMESPACE_NONE, aXMLElemDefs, TRUE, TRUE );

			mrExport.AddAttribute( XML_NAMESPACE_NONE, aXMLAttrId, aClipId.GetString() );

			{
				SvXMLElementExport aElemClipPath( mrExport, XML_NAMESPACE_NONE, aXMLElemClipPath, TRUE, TRUE );
				ImplWritePolyPolygon( rPolyPoly, sal_False );
			}
		}

		// create new context with clippath set
		aClipStyle += B2UCONST( "clip-path:URL(#" );
		aClipStyle += aClipId.GetString();
		aClipStyle += B2UCONST( ")" );

		mrExport.AddAttribute( XML_NAMESPACE_NONE, aXMLAttrStyle, aClipStyle.GetString() );

		{
			GDIMetaFile			aTmpMtf;
			SvXMLElementExport	aElemG2( mrExport, XML_NAMESPACE_NONE, aXMLElemG, TRUE, TRUE );
=====================================================================
Found a 23 line (147 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 393 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) UNOEmbeddedObjectCreator::createInstanceLink" );

	uno::Reference< uno::XInterface > xResult;

	uno::Sequence< beans::PropertyValue > aTempMedDescr( aMediaDescr );

	// check if there is URL, URL must exist
	::rtl::OUString aURL;
	for ( sal_Int32 nInd = 0; nInd < aTempMedDescr.getLength(); nInd++ )
		if ( aTempMedDescr[nInd].Name.equalsAscii( "URL" ) )
			aTempMedDescr[nInd].Value >>= aURL;

	if ( !aURL.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No URL for the link is provided!\n" ),
										uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
										3 );

	::rtl::OUString aFilterName = m_aConfigHelper.UpdateMediaDescriptorWithFilterName( aTempMedDescr, sal_False );

	if ( aFilterName.getLength() )
	{
		// the object can be loaded by one of the office application
		uno::Reference< embed::XLinkCreator > xOOoLinkCreator(
=====================================================================
Found a 22 line (147 tokens) duplication in the following files: 
Starting at line 1709 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 1749 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

	sal_Int32 nPos=0;
	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schema.getLength() && schema.toChar() != '%')
		varCriteria[nPos].setString(schema);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

	varCriteria[nPos].setString(table);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME


	OLEVariant  vtEmpty;
	vtEmpty.setNoArg();

	// Initialize and fill the SafeArray
	OLEVariant vsa;
	vsa.setArray(psa,VT_VARIANT);

	ADORecordset *pRecordset = NULL;
	OpenSchema(adSchemaPrimaryKeys,vsa,vtEmpty,&pRecordset);
=====================================================================
Found a 9 line (147 tokens) duplication in the following files: 
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FResultSet.cxx

void OResultSet::construct()
{
	registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FETCHSIZE),			PROPERTY_ID_FETCHSIZE,			0,&m_nFetchSize,		::getCppuType(reinterpret_cast<sal_Int32*>(NULL)));
    registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_RESULTSETTYPE),        PROPERTY_ID_RESULTSETTYPE,      PropertyAttribute::READONLY,&m_nResultSetType,       ::getCppuType(reinterpret_cast<sal_Int32*>(NULL)));
	registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FETCHDIRECTION),		PROPERTY_ID_FETCHDIRECTION,		0,&m_nFetchDirection,	::getCppuType(reinterpret_cast<sal_Int32*>(NULL)));
    registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_RESULTSETCONCURRENCY), PROPERTY_ID_RESULTSETCONCURRENCY,PropertyAttribute::READONLY,&m_nResultSetConcurrency,                ::getCppuType(reinterpret_cast<sal_Int32*>(NULL)));
}
// -------------------------------------------------------------------------
void OResultSet::disposing(void)
=====================================================================
Found a 30 line (147 tokens) duplication in the following files: 
Starting at line 460 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 880 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

sal_uInt32 CunoType::checkInheritedMemberCount(const TypeReader* pReader)
{
	sal_Bool bSelfCheck = sal_True;
	if (!pReader)
	{
		bSelfCheck = sal_False;
		pReader = &m_reader;
	}

	sal_uInt32 count = 0;
	OString superType(pReader->getSuperTypeName());
	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));
		if ( aSuperReader.isValid() )
		{
			count = checkInheritedMemberCount(&aSuperReader);
		}
	}

	if (bSelfCheck)
	{
		count += pReader->getMethodCount();
		sal_uInt32 fieldCount = pReader->getFieldCount();
		RTFieldAccess access = RT_ACCESS_INVALID;
		for (sal_uInt16 i=0; i < fieldCount; i++)
		{
			access = pReader->getFieldAccess(i);

			if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
=====================================================================
Found a 25 line (147 tokens) duplication in the following files: 
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx

    nVerticalSegmentCount = nPointCount-1;

    //--------------------------------------
    drawing::PolyPolygonShape3D aPP;

	aPP.SequenceX.realloc(1);
	aPP.SequenceY.realloc(1);
	aPP.SequenceZ.realloc(1);

	drawing::DoubleSequence* pOuterSequenceX = aPP.SequenceX.getArray();
	drawing::DoubleSequence* pOuterSequenceY = aPP.SequenceY.getArray();
	drawing::DoubleSequence* pOuterSequenceZ = aPP.SequenceZ.getArray();

    pOuterSequenceX->realloc(nPointCount);
    pOuterSequenceY->realloc(nPointCount);
	pOuterSequenceZ->realloc(nPointCount);

    double* pInnerSequenceX = pOuterSequenceX->getArray();
	double* pInnerSequenceY = pOuterSequenceY->getArray();
	double* pInnerSequenceZ = pOuterSequenceZ->getArray();

    for(sal_Int32 nN = nPointCount; nN--;)
	    *pInnerSequenceZ++ = 0.0;

    if(nPointCount == 4)
=====================================================================
Found a 32 line (147 tokens) duplication in the following files: 
Starting at line 636 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/workben/canvasdemo.cxx
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/outdevgrind.cxx

        printf( "outdevgrind - Profile OutputDevice\n" );
		return;
	}

	//-------------------------------------------------
	// create the global service-manager
	//-------------------------------------------------
    uno::Reference< lang::XMultiServiceFactory > xFactory;
    try
    {
        uno::Reference< uno::XComponentContext > xCtx = ::cppu::defaultBootstrap_InitialComponentContext();
        xFactory = uno::Reference< lang::XMultiServiceFactory >(  xCtx->getServiceManager(), 
                                                                  uno::UNO_QUERY );
        if( xFactory.is() )
            ::comphelper::setProcessServiceFactory( xFactory );
    }
    catch( uno::Exception& )
    {
    }

    if( !xFactory.is() )
    {
        fprintf( stderr, 
                 "Could not bootstrap UNO, installation must be in disorder. Exiting.\n" );
        exit( 1 );
    }

    // Create UCB.
    uno::Sequence< uno::Any > aArgs( 2 );
	aArgs[ 0 ] <<= rtl::OUString::createFromAscii( UCB_CONFIGURATION_KEY1_LOCAL );
	aArgs[ 1 ] <<= rtl::OUString::createFromAscii( UCB_CONFIGURATION_KEY2_OFFICE );
    ::ucbhelper::ContentBroker::initialize( xFactory, aArgs );
=====================================================================
Found a 30 line (147 tokens) duplication in the following files: 
Starting at line 329 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[1] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *(void **)pRegisterReturn = pCallStack[1];
                    eRet = typelib_TypeClass_ANY;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	default:
	{
		throw RuntimeException(
=====================================================================
Found a 44 line (147 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx

		VtableSlot aVtableSlot(
				getVtableSlot(
					reinterpret_cast<
					typelib_InterfaceAttributeTypeDescription const * >(
						pMemberDescr)));
		
		if (pReturn)
		{
			// dependent dispatch
			cpp_call(
				pThis, aVtableSlot,
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
				0, 0, // no params
				pReturn, pArgs, ppException );
		}
		else
		{
			// is SET
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;

			typelib_TypeDescriptionReference * pReturnTypeRef = 0;
			OUString aVoidName( RTL_CONSTASCII_USTRINGPARAM("void") );
			typelib_typedescriptionreference_new(
				&pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
			
			// dependent dispatch
			aVtableSlot.index += 1; // get, then set method
			cpp_call(
				pThis, aVtableSlot, // get, then set method
				pReturnTypeRef,
				1, &aParam,
				pReturn, pArgs, ppException );
			
			typelib_typedescriptionreference_release( pReturnTypeRef );
		}
		
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
=====================================================================
Found a 25 line (147 tokens) duplication in the following files: 
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxuint.cxx

		case SbxERROR:
		case SbxUSHORT:
			p->nUShort = n; break;
		case SbxLONG:
			p->nLong = n; break;
		case SbxULONG:
			p->nULong = n; break;
		case SbxSINGLE:
			p->nSingle = n; break;
		case SbxDATE:
		case SbxDOUBLE:
			p->nDouble = n; break;
		case SbxSALINT64:
			p->nInt64 = n; break;
		case SbxSALUINT64:
			p->uInt64 = n; break;
		case SbxULONG64:
			p->nULong64 = ImpDoubleToUINT64( (double)n ); break;
		case SbxLONG64:
			p->nLong64 = ImpDoubleToINT64( (double)n ); break;
		case SbxCURRENCY:
			p->nLong64 = ImpDoubleToCurrency( (double)n ); break;
		case SbxDECIMAL:
		case SbxBYREF | SbxDECIMAL:
			ImpCreateDecimal( p )->setUInt( n );
=====================================================================
Found a 30 line (147 tokens) duplication in the following files: 
Starting at line 1975 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/basmgr/basmgr.cxx
Starting at line 2277 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/basmgr/basmgr.cxx

		:mpMgr( pMgr ) {}

    // Methods XElementAccess
    virtual Type SAL_CALL getElementType()
		throw(RuntimeException);
    virtual sal_Bool SAL_CALL hasElements()
		throw(RuntimeException);

    // Methods XNameAccess
    virtual Any SAL_CALL getByName( const OUString& aName )
		throw(NoSuchElementException, WrappedTargetException, RuntimeException);
    virtual Sequence< OUString > SAL_CALL getElementNames()
		throw(RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const OUString& aName )
		throw(RuntimeException);

    // Methods XNameReplace
    virtual void SAL_CALL replaceByName( const OUString& aName, const Any& aElement )
		throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException);

    // Methods XNameContainer
    virtual void SAL_CALL insertByName( const OUString& aName, const Any& aElement )
		throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException);
    virtual void SAL_CALL removeByName( const OUString& Name )
		throw(NoSuchElementException, WrappedTargetException, RuntimeException);
};


// Methods XElementAccess
Type LibraryContainer_Impl::getElementType()
=====================================================================
Found a 16 line (147 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolygonclipper.cxx
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolygonclipper.cxx

								if(bParallelToXAxis)
								{
									const double fNewX(aCurrent.getX() - (((aCurrent.getY() - fValueOnOtherAxis) * (aNext.getX() - aCurrent.getX()) / (aNext.getY() - aCurrent.getY()))));
									aNewPolygon.append(B2DPoint(fNewX, fValueOnOtherAxis));
								}
								else
								{
									const double fNewY(aCurrent.getY() - (((aCurrent.getX() - fValueOnOtherAxis) * (aNext.getY() - aCurrent.getY()) / (aNext.getX() - aCurrent.getX()))));
									aNewPolygon.append(B2DPoint(fValueOnOtherAxis, fNewY));
								}

								// pepare next step
								bCurrentInside = bNextInside;
							}

							if(bNextInside && nNextIndex)
=====================================================================
Found a 21 line (147 tokens) duplication in the following files: 
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside2.cxx
Starting at line 714 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside3.cxx

	DBG_CHKTHIS( DialogWindow, 0 );
	BOOL bDone = FALSE;

    Reference< lang::XMultiServiceFactory > xMSF( ::comphelper::getProcessServiceFactory() );
    Reference < XFilePicker > xFP;
    if( xMSF.is() )
    {
		Sequence <Any> aServiceType(1);
		aServiceType[0] <<= TemplateDescription::FILESAVE_AUTOEXTENSION_PASSWORD;
        xFP = Reference< XFilePicker >( xMSF->createInstanceWithArguments(
					::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ), aServiceType ), UNO_QUERY );
    }

	Reference< XFilePickerControlAccess > xFPControl(xFP, UNO_QUERY);
	xFPControl->enableControl(ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, sal_False);
    Any aValue;
    aValue <<= (sal_Bool) sal_True;
	xFPControl->setValue(ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, 0, aValue);

	if ( aCurPath.Len() )
		xFP->setDisplayDirectory ( aCurPath );
=====================================================================
Found a 25 line (146 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/window/salmenu.cxx
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/window/salmenu.cxx

        pWItem->mAccelText = rKeyName;
        pWItem->mInfo.fMask = MIIM_TYPE | MIIM_DATA;
        pWItem->mInfo.fType = MFT_STRING;
#ifdef OWNERDRAW
        if( pWItem->mpMenu && !((Menu*)pWItem->mpMenu)->IsMenuBar() )
            pWItem->mInfo.fType |= MFT_OWNERDRAW;
#endif
        // combine text and accelerator text
        XubString aStr( pWItem->mText );
        if( pWItem->mAccelText.Len() )
        {
            aStr.AppendAscii("\t");
            aStr.Append( pWItem->mAccelText );
        }
        pWItem->mInfo.dwTypeData = (LPWSTR) aStr.GetBuffer();
        pWItem->mInfo.cch = aStr.Len();

        if(!::SetMenuItemInfoW( mhMenu, nPos, TRUE, &pWItem->mInfo ))
            myerr = GetLastError();
        else
            ImplDrawMenuBar( this );
    }
}

void WinSalMenu::GetSystemMenuData( SystemMenuData* pData )
=====================================================================
Found a 5 line (146 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,
=====================================================================
Found a 5 line (146 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_mask.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 6 line (146 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_mask.h

 0xe0,0x0f,0x00,0x00,0xe0,0x0f,0x00,0x00,0xe0,0x0f,0x00,0x00,0xc0,0x07,0x00,
 0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 27 line (146 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/salgdilayout.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/salgdilayout.cxx

void SalGraphics::mirror( long& x, long& nWidth, const OutputDevice *pOutDev, bool bBack ) const
{
	long w;
    if( pOutDev && pOutDev->GetOutDevType() == OUTDEV_VIRDEV )
        w = pOutDev->GetOutputWidthPixel();
    else
        w = GetGraphicsWidth();

	if( w )
    {
        if( pOutDev && !pOutDev->IsRTLEnabled() )
        {
            OutputDevice *pOutDevRef = (OutputDevice*) pOutDev;
#ifdef USE_NEW_RTL_IMPLEMENTATION
            if( pOutDev->meOutDevType == OUTDEV_WINDOW )
                pOutDevRef = (OutputDevice*) ((Window *) pOutDev)->mpDummy4; // top of non-mirroring hierarchy
#endif

            // mirror this window back
            long devX = w-pOutDevRef->GetOutputWidthPixel()-pOutDevRef->GetOutOffXPixel();   // re-mirrored mnOutOffX
            if( bBack )
                x = x - devX + pOutDevRef->GetOutOffXPixel();
            else
                x = devX + (x - pOutDevRef->GetOutOffXPixel());
        }
        else
		    x = w-nWidth-x;
=====================================================================
Found a 26 line (146 tokens) duplication in the following files: 
Starting at line 9733 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 9897 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

                if( eType == PDFWriter::Paragraph	||
                    eType == PDFWriter::Heading		||
                    eType == PDFWriter::H1			||
                    eType == PDFWriter::H2			||
                    eType == PDFWriter::H3			||
                    eType == PDFWriter::H4			||
                    eType == PDFWriter::H5			||
                    eType == PDFWriter::H6			||
                    eType == PDFWriter::List		||
                    eType == PDFWriter::ListItem	||
                    eType == PDFWriter::LILabel		||
                    eType == PDFWriter::LIBody		||
                    eType == PDFWriter::Table		||
                    eType == PDFWriter::TableRow	||
                    eType == PDFWriter::TableHeader	||
                    eType == PDFWriter::TableData	||
                    eType == PDFWriter::Span		||
                    eType == PDFWriter::Quote		||
                    eType == PDFWriter::Note		||
                    eType == PDFWriter::Reference	||
                    eType == PDFWriter::BibEntry	||
                    eType == PDFWriter::Code		||
                    eType == PDFWriter::Link )
                {
                        bInsert = true;
                }
=====================================================================
Found a 22 line (146 tokens) duplication in the following files: 
Starting at line 424 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gfxlink.cxx
Starting at line 458 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gfxlink.cxx

	if( IsSwapped() )
	{
		try
		{
			::ucbhelper::Content aCnt( maURL.GetMainURL( INetURLObject::NO_DECODE ), 
								 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );

			aCnt.executeCommand( ::rtl::OUString::createFromAscii( "delete" ), 
								 ::com::sun::star::uno::makeAny( sal_Bool( sal_True ) ) );
		}
		catch( const ::com::sun::star::ucb::ContentCreationException& )
		{
		}
		catch( const ::com::sun::star::uno::RuntimeException& )
		{
		}
		catch( const ::com::sun::star::ucb::CommandAbortedException& )
		{
		}
        catch( const ::com::sun::star::uno::Exception& )
		{
		}
=====================================================================
Found a 39 line (146 tokens) duplication in the following files: 
Starting at line 2246 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 944 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

            if ( eType == FOLDER )
			{
				// Process instanciated children...

                ContentRefList aChildren;
				queryChildren( aChildren );

                ContentRefList::const_iterator it  = aChildren.begin();
                ContentRefList::const_iterator end = aChildren.end();

				while ( it != end )
				{
                    ContentRef xChild = (*it);

					// Create new content identifier for the child...
                    uno::Reference< ucb::XContentIdentifier > xOldChildId
													= xChild->getIdentifier();
                    rtl::OUString aOldChildURL
                        = xOldChildId->getContentIdentifier();
                    rtl::OUString aNewChildURL
						= aOldChildURL.replaceAt(
										0,
										aOldURL.getLength(),
										xNewId->getContentIdentifier() );
                    uno::Reference< ucb::XContentIdentifier > xNewChildId
						= new ::ucbhelper::ContentIdentifier( 
                            m_xSMgr, aNewChildURL );

					if ( !xChild->exchangeIdentity( xNewChildId ) )
						return sal_False;

					++it;
				}
			}
			return sal_True;
		}
	}

    OSL_ENSURE( sal_False,
=====================================================================
Found a 33 line (146 tokens) duplication in the following files: 
Starting at line 1782 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1949 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

	if ( rInfo.SourceURL.getLength() <= aId.getLength() )
	{
		if ( aId.compareTo(
				rInfo.SourceURL, rInfo.SourceURL.getLength() ) == 0 )
        {
            uno::Any aProps
                = uno::makeAny(beans::PropertyValue(
                                      rtl::OUString(
                                          RTL_CONSTASCII_USTRINGPARAM("Uri")),
                                      -1,
                                      uno::makeAny(rInfo.SourceURL),
                                      beans::PropertyState_DIRECT_VALUE));
            ucbhelper::cancelCommandExecution(
                ucb::IOErrorCode_RECURSIVE,
                uno::Sequence< uno::Any >(&aProps, 1),
                xEnv,
                rtl::OUString::createFromAscii(
                    "Target is equal to or is a child of source!" ),
                this );
            // Unreachable
        }
	}

    //////////////////////////////////////////////////////////////////////
    // 0) Obtain content object for source.
    //////////////////////////////////////////////////////////////////////

    uno::Reference< ucb::XContentIdentifier > xId
        = new ::ucbhelper::ContentIdentifier( m_xSMgr, rInfo.SourceURL );

    // Note: The static cast is okay here, because its sure that
    //       m_xProvider is always the PackageContentProvider.
    rtl::Reference< Content > xSource;
=====================================================================
Found a 9 line (146 tokens) duplication in the following files: 
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  1,  0,  1,  0,  0,  	0,  0,  0,  0,  0,	  	// <, >
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,  // 100 - 149
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
=====================================================================
Found a 25 line (146 tokens) duplication in the following files: 
Starting at line 613 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/itrcrsr.cxx
Starting at line 951 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/itrcrsr.cxx

                     ( !bEmptyFld && pPor->InFldGrp() ) ) )
			{
				if ( pPor->InSpaceGrp() && nSpaceAdd )
					nX += pPor->PrtWidth() +
						  pPor->CalcSpacing( nSpaceAdd, aInf );
				else
				{
                    if( pPor->InFixMargGrp() && ! pPor->IsMarginPortion() )
					{
                        if ( pCurr->IsSpaceAdd() )
                        {
                            if ( ++nSpaceIdx < pCurr->GetLLSpaceAddCount() )
                                nSpaceAdd = pCurr->GetLLSpaceAdd( nSpaceIdx );
                            else
                                nSpaceAdd = 0;
                        }

                        if( pKanaComp && ( nKanaIdx + 1 ) < pKanaComp->Count() )
                            ++nKanaIdx;
					}
					if ( !pPor->IsFlyPortion() || ( pPor->GetPortion() &&
							!pPor->GetPortion()->IsMarginPortion() ) )
						nX += pPor->PrtWidth();
				}
                if( pPor->IsMultiPortion() &&
=====================================================================
Found a 24 line (146 tokens) duplication in the following files: 
Starting at line 2183 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx
Starting at line 2581 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx

						if( !bForceNew && pItem->GetLineStartValue() == pLineEndItem->GetLineEndValue() )
						{
							aUniqueName = pItem->GetName();
							bFoundExisting = sal_True;
							break;
						}

						if( pItem->GetName().CompareTo( aUser, aUser.Len() ) == 0 )
						{
							sal_Int32 nThisIndex = pItem->GetName().Copy( aUser.Len() ).ToInt32();
							if( nThisIndex >= nUserIndex )
								nUserIndex = nThisIndex + 1;
						}
					}
				}

				nCount = pPool1->GetItemCount( XATTR_LINEEND );
				for( nSurrogate2 = 0; nSurrogate2 < nCount; nSurrogate2++ )
				{
					const XLineEndItem* pItem = (const XLineEndItem*)pPool1->GetItem( XATTR_LINEEND, nSurrogate2 );

					if( pItem && pItem->GetName().Len() )
					{
						if( !bForceNew && pItem->GetLineEndValue() == pLineEndItem->GetLineEndValue() )
=====================================================================
Found a 13 line (146 tokens) duplication in the following files: 
Starting at line 839 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx
Starting at line 851 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx

FrPair GetMapFactor(FieldUnit eS, MapUnit eD)
{
	FrPair aS(GetInchOrMM(eS));
	FrPair aD(GetInchOrMM(eD));
	FASTBOOL bSInch=IsInch(eS);
	FASTBOOL bDInch=IsInch(eD);
	FrPair aRet(aD.X()/aS.X(),aD.Y()/aS.Y());
	if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); }
	if (!bSInch && bDInch) { aRet.X()*=Fraction(5,127); aRet.Y()*=Fraction(5,127); }
	return aRet;
};

FrPair GetMapFactor(FieldUnit eS, FieldUnit eD)
=====================================================================
Found a 26 line (146 tokens) duplication in the following files: 
Starting at line 718 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/items/numfmtsh.cxx
Starting at line 854 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/items/numfmtsh.cxx

	NfIndexTableOffset eOffsetEnd=NF_CURRENCY_END;;
	long nIndex;

	for(nIndex=eOffsetStart;nIndex<=eOffsetEnd;nIndex++)
	{
		nNFEntry=pFormatter->GetFormatIndex((NfIndexTableOffset)nIndex,eCurLanguage);

		pNumEntry	= pFormatter->GetEntry(nNFEntry);

		if(pNumEntry==NULL) continue;

		nMyCat=pNumEntry->GetType() & ~NUMBERFORMAT_DEFINED;
		aStrComment=pNumEntry->GetComment();
		CategoryToPos_Impl(nMyCat,nMyType);
		aNewFormNInfo=	pNumEntry->GetFormatstring();

		const StringPtr pStr = new String(aNewFormNInfo);

		if ( nNFEntry == nCurFormatKey )
		{
			nSelPos = ( !IsRemoved_Impl( nNFEntry ) ) ? aCurEntryList.Count() : SELPOS_NONE;
		}

		rList.Insert( pStr,rList.Count());
		aCurEntryList.Insert( nNFEntry, aCurEntryList.Count() );
	}
=====================================================================
Found a 26 line (146 tokens) duplication in the following files: 
Starting at line 525 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpcolor.cxx
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tplneend.cxx

            if ( aName == pLineEndList->GetLineEnd( i )->GetName() )
				bDifferent = FALSE;

		// Wenn ja, wird wiederholt ein neuer Name angefordert
		if ( !bDifferent )
		{
			WarningBox aWarningBox( DLGWIN, WinBits( WB_OK ),
				String( ResId( RID_SVXSTR_WARN_NAME_DUPLICATE, rMgr ) ) );
			aWarningBox.SetHelpId( HID_WARN_NAME_DUPLICATE );
			aWarningBox.Execute();

			//CHINA001 SvxNameDialog* pDlg = new SvxNameDialog( DLGWIN, aName, aDesc );
			SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
			DBG_ASSERT(pFact, "Dialogdiet fail!");//CHINA001
			AbstractSvxNameDialog* pDlg = pFact->CreateSvxNameDialog( DLGWIN, aName, aDesc, RID_SVXDLG_NAME );
			DBG_ASSERT(pDlg, "Dialogdiet fail!");//CHINA001
			BOOL bLoop = TRUE;

			while( !bDifferent && bLoop && pDlg->Execute() == RET_OK )
			{
				pDlg->GetName( aName );
				bDifferent = TRUE;

				for( long i = 0; i < nCount && bDifferent; i++ )
				{
                    if( aName == pLineEndList->GetLineEnd( i )->GetName() )
=====================================================================
Found a 20 line (146 tokens) duplication in the following files: 
Starting at line 4504 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4095 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	0x4000, 0x0002, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartMultidocumentTextRect[] = 
{
	{ { 0, 3600 }, { 21600 - 3000, 14409 + 3600 } }
};
static const SvxMSDffVertPair mso_sptFlowChartMultidocumentGluePoints[] =
{
	{ 10800, 0 }, { 0, 10800 }, { 10800, 19890 }, { 21600, 10800 }
};
static const mso_CustomShape msoFlowChartMultidocument =
{
	(SvxMSDffVertPair*)mso_sptFlowChartMultidocumentVert, sizeof( mso_sptFlowChartMultidocumentVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartMultidocumentSegm, sizeof( mso_sptFlowChartMultidocumentSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartMultidocumentTextRect, sizeof( mso_sptFlowChartMultidocumentTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartMultidocumentGluePoints, sizeof( mso_sptFlowChartMultidocumentGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 17 line (146 tokens) duplication in the following files: 
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShape2d.cxx
Starting at line 3089 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/escherex.cxx

										const beans::PropertyValue& rPropVal = rPropSeq[ j ];

										const rtl::OUString	sPosition			( RTL_CONSTASCII_USTRINGPARAM( "Position" ) );
										const rtl::OUString	sMirroredX			( RTL_CONSTASCII_USTRINGPARAM( "MirroredX" ) );
										const rtl::OUString	sMirroredY			( RTL_CONSTASCII_USTRINGPARAM( "MirroredY" ) );
										const rtl::OUString	sSwitched			( RTL_CONSTASCII_USTRINGPARAM( "Switched" ) );
										const rtl::OUString	sPolar				( RTL_CONSTASCII_USTRINGPARAM( "Polar" ) );
	//									const rtl::OUString	sMap				( RTL_CONSTASCII_USTRINGPARAM( "Map" ) );
										const rtl::OUString	sRadiusRangeMinimum	( RTL_CONSTASCII_USTRINGPARAM( "RadiusRangeMinimum" ) );
										const rtl::OUString	sRadiusRangeMaximum	( RTL_CONSTASCII_USTRINGPARAM( "RadiusRangeMaximum" ) );
										const rtl::OUString	sRangeXMinimum		( RTL_CONSTASCII_USTRINGPARAM( "RangeXMinimum" ) );
										const rtl::OUString	sRangeXMaximum		( RTL_CONSTASCII_USTRINGPARAM( "RangeXMaximum" ) );
										const rtl::OUString	sRangeYMinimum		( RTL_CONSTASCII_USTRINGPARAM( "RangeYMinimum" ) );
										const rtl::OUString	sRangeYMaximum		( RTL_CONSTASCII_USTRINGPARAM( "RangeYMaximum" ) );

										if ( rPropVal.Name.equals( sPosition ) )
										{
=====================================================================
Found a 21 line (146 tokens) duplication in the following files: 
Starting at line 549 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx
Starting at line 1541 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx

				sStreamPath );

	if ( ::utl::UCBContentHelper::IsFolder( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
		throw io::IOException();

	if ( ( nOpenMode & embed::ElementModes::NOCREATE )
	  && !::utl::UCBContentHelper::IsDocument( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
		throw io::IOException(); // TODO:

	uno::Reference< ucb::XCommandEnvironment > xDummyEnv; // TODO: provide InteractionHandler if any
	uno::Reference< io::XStream > xResult;
	try
	{
		if ( nOpenMode & embed::ElementModes::WRITE )
		{
			if ( isLocalFile_Impl( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
			{
				uno::Reference< ucb::XSimpleFileAccess > xSimpleFileAccess(
					m_pImpl->m_xFactory->createInstance( 
						::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.SimpleFileAccess" ) ) ),
					uno::UNO_QUERY_THROW );
=====================================================================
Found a 29 line (146 tokens) duplication in the following files: 
Starting at line 1685 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/ruler.cxx
Starting at line 1877 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/ruler.cxx

        aRect.Bottom()  = nHitBottom;

        for ( i = mpData->nTabs; i; i-- )
        {
            nStyle = mpData->pTabs[i-1].nStyle;
            if ( !(nStyle & RULER_STYLE_INVISIBLE) )
            {
                nStyle &= RULER_TAB_STYLE;

                // Default-Tabs werden nur angezeigt
                if ( nStyle != RULER_TAB_DEFAULT )
                {
                    n1 = mpData->pTabs[i-1].nPos;

                    if ( nStyle == RULER_TAB_LEFT )
                    {
                        aRect.Left()    = n1;
                        aRect.Right()   = n1+RULER_TAB_WIDTH-1;
                    }
                    else if ( nStyle == RULER_TAB_RIGHT )
                    {
                        aRect.Right()   = n1;
                        aRect.Left()    = n1-RULER_TAB_WIDTH-1;
                    }
                    else
                    {
                        aRect.Left()    = n1-RULER_TAB_CWIDTH2+1;
                        aRect.Right()   = n1-RULER_TAB_CWIDTH2+RULER_TAB_CWIDTH;
                    }
=====================================================================
Found a 16 line (146 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 1097 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx

			  &::getBooleanCppuType(),
			  beans::PropertyAttribute::MAYBEVOID, 0},
		{ "BaseURI", sizeof("BaseURI")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamRelPath", sizeof("StreamRelPath")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamName", sizeof("StreamName")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ NULL, 0, 0, NULL, 0, 0 }
	};
	uno::Reference< beans::XPropertySet > xInfoSet(
				comphelper::GenericPropertySet_CreateInstance(
							new comphelper::PropertySetInfo( aInfoMap ) ) );
=====================================================================
Found a 21 line (146 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/childwin.cxx
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/childwin.cxx

		SfxChildWinFactArr_Impl &rFactories = pApp->GetChildWinFactories_Impl();
		for ( sal_uInt16 nFactory = 0; nFactory < rFactories.Count(); ++nFactory )
		{
			pFact = rFactories[nFactory];
			if ( pFact->nId == GetType() )
			{
				DBG_ASSERT( pFact->pArr, "Kein Kontext angemeldet!" );
				if ( !pFact->pArr )
					break;

				SfxChildWinContextFactory *pConFact=0;
				for ( sal_uInt16 n=0; n<pFact->pArr->Count(); ++n )
				{
					pConFact = (*pFact->pArr)[n];
					rBindings.ENTERREGISTRATIONS();
					if ( pConFact->nContextId == nContextId )
					{
						SfxChildWinInfo aInfo = pFact->aInfo;
						pCon = pConFact->pCtor( GetWindow(), &rBindings, &aInfo );
						pCon->nContextId = pConFact->nContextId;
						pImp->pContextModule = NULL;
=====================================================================
Found a 31 line (146 tokens) duplication in the following files: 
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/dbdocfun.cxx
Starting at line 1621 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

		bRecord = FALSE;

	ScQueryParam aQueryParam;
	pDBData->GetQueryParam( aQueryParam );
	BOOL bQuery = aQueryParam.GetEntry(0).bDoQuery;

	ScSortParam aSortParam;
	pDBData->GetSortParam( aSortParam );
	BOOL bSort = aSortParam.bDoSort[0];

	ScSubTotalParam aSubTotalParam;
	pDBData->GetSubTotalParam( aSubTotalParam );
	BOOL bSubTotal = aSubTotalParam.bGroupActive[0] && !aSubTotalParam.bRemoveOnly;

	if ( bQuery || bSort || bSubTotal )
	{
		BOOL bQuerySize = FALSE;
		ScRange aOldQuery;
		ScRange aNewQuery;
		if (bQuery && !aQueryParam.bInplace)
		{
			ScDBData* pDest = pDoc->GetDBAtCursor( aQueryParam.nDestCol, aQueryParam.nDestRow,
													aQueryParam.nDestTab, TRUE );
			if (pDest && pDest->IsDoSize())
			{
				pDest->GetArea( aOldQuery );
				bQuerySize = TRUE;
			}
		}

		SCTAB nDummy;
=====================================================================
Found a 49 line (146 tokens) duplication in the following files: 
Starting at line 3267 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3619 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

			if (!pMatX->IsValue(i))
			{
				SetIllegalArgument();
				return;
			}
		if (nCX == nCY && nRX == nRY)
			nCase = 1;					// einfache Regression
		else if (nCY != 1 && nRY != 1)
		{
			SetIllegalParameter();
			return;
		}
		else if (nCY == 1)
		{
			if (nRX != nRY)
			{
				SetIllegalParameter();
				return;
			}
			else
			{
				nCase = 2;				// zeilenweise
				N = nRY;
				M = nCX;
			}
		}
		else if (nCX != nCY)
		{
			SetIllegalParameter();
			return;
		}
		else
		{
			nCase = 3;					// spaltenweise
			N = nCY;
			M = nRX;
		}
	}
	else
	{
		pMatX = GetNewMat(nCY, nRY);
		nCX = nCY;
		nRX = nRY;
		if (!pMatX)
		{
			PushError();
			return;
		}
		for (SCSIZE i = 1; i <= nCountY; i++)
=====================================================================
Found a 24 line (146 tokens) duplication in the following files: 
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/sockethelper.cxx

::rtl::ByteSequence UStringIPToByteSequence( ::rtl::OUString aUStr )
{

	rtl::OString aString = ::rtl::OUStringToOString( aUStr,	RTL_TEXTENCODING_ASCII_US );
	const sal_Char *pChar =	aString.getStr(	) ;
	sal_Char tmpBuffer[4];
	sal_Int32 nCharCounter = 0;
	::rtl::ByteSequence bsByteSequence( IP_VER );
	sal_Int32 nByteSeqCounter = 0;

	for ( int i = 0; i < aString.getLength(	) + 1 ;	i++ )
	{
		if ( ( *pChar != '.' ) && ( i !=aString.getLength( ) ) )
			tmpBuffer[nCharCounter++] = *pChar;
		else 
		{
			tmpBuffer[nCharCounter]	= '\0';
			nCharCounter = 0;
			bsByteSequence[nByteSeqCounter++] = atoi( tmpBuffer );
		}
		pChar++;
	}
	return bsByteSequence;
}
=====================================================================
Found a 10 line (146 tokens) duplication in the following files: 
Starting at line 1844 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 1920 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

				{
					m_pData->m_pTypeCollection = new ::cppu::OTypeCollection
									(	::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XInputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XOutputStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XStream >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XSeekable >* )NULL )
									,	::getCppuType( ( const uno::Reference< io::XTruncate >* )NULL )
									,	::getCppuType( ( const uno::Reference< lang::XComponent >* )NULL )
									,	::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
=====================================================================
Found a 78 line (146 tokens) duplication in the following files: 
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
/* RES_GRFATR_ROTATION */			0,
/* RES_GRFATR_LUMINANCE */			0,
/* RES_GRFATR_CONTRAST */			0,
/* RES_GRFATR_CHANNELR */			0,
/* RES_GRFATR_CHANNELG */			0,
/* RES_GRFATR_CHANNELB */			0,
/* RES_GRFATR_GAMMA */				0,
/* RES_GRFATR_INVERT */				0,
/* RES_GRFATR_TRANSPARENCY */		0,
/* RES_GRFATR_DRWAMODE */			0,
/* RES_GRFATR_DUMMY1 */				0,
/* RES_GRFATR_DUMMY2 */				0,
/* RES_GRFATR_DUMMY3 */				0,
/* RES_GRFATR_DUMMY4 */				0,
/* RES_GRFATR_DUMMY5 */				0,

/* RES_BOXATR_FORMAT */				0,
/* RES_BOXATR_FORMULA */			0,
/* RES_BOXATR_VALUE */				0
=====================================================================
Found a 6 line (146 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_mask.h

 0x00,0xfc,0x01,0x00,0x00,0xf8,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 78 line (146 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
/* RES_GRFATR_ROTATION */			0,
/* RES_GRFATR_LUMINANCE */			0,
/* RES_GRFATR_CONTRAST */			0,
/* RES_GRFATR_CHANNELR */			0,
/* RES_GRFATR_CHANNELG */			0,
/* RES_GRFATR_CHANNELB */			0,
/* RES_GRFATR_GAMMA */				0,
/* RES_GRFATR_INVERT */				0,
/* RES_GRFATR_TRANSPARENCY */		0,
/* RES_GRFATR_DRWAMODE */			0,
/* RES_GRFATR_DUMMY1 */				0,
/* RES_GRFATR_DUMMY2 */				0,
/* RES_GRFATR_DUMMY3 */				0,
/* RES_GRFATR_DUMMY4 */				0,
/* RES_GRFATR_DUMMY5 */				0,

/* RES_BOXATR_FORMAT */				0,
/* RES_BOXATR_FORMULA */			0,
/* RES_BOXATR_VALUE */				0
=====================================================================
Found a 8 line (146 tokens) duplication in the following files: 
Starting at line 580 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 838 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

       27,   22,   21,  993,    3,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993,  993,  993,
      993,  993,  993,  993,  993,  993,  993,  993
=====================================================================
Found a 9 line (146 tokens) duplication in the following files: 
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/descriptor.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/renderer.cxx

	uno::Sequence< uno::Type >	aTypes( 7 );
	uno::Type* 					pTypes = aTypes.getArray();

	*pTypes++ = ::getCppuType((const uno::Reference< uno::XAggregation>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< lang::XTypeProvider>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState>*)0);
	*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet>*)0);
=====================================================================
Found a 22 line (146 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx
Starting at line 705 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3dtex.cxx

		case (B3D_TXT_MODE_REP|B3D_TXT_KIND_LUM) :
		{
			fS = fS - floor(fS);
			fT = fT - floor(fT);
			long nX2, nY2;

			if(fS > 0.5) {
				nX2 = (nX + 1) % GetBitmapSize().Width();
				fS = 1.0 - fS;
			} else
				nX2 = nX ? nX - 1 : GetBitmapSize().Width() - 1;

			if(fT > 0.5) {
				nY2 = (nY + 1) % GetBitmapSize().Height();
				fT = 1.0 - fT;
			} else
				nY2 = nY ? nY - 1 : GetBitmapSize().Height() - 1;

			fS += 0.5;
			fT += 0.5;
			double fRight = 1.0 - fS;
			double fBottom = 1.0 - fT;
=====================================================================
Found a 28 line (146 tokens) duplication in the following files: 
Starting at line 1433 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx
Starting at line 1535 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx

void Base3DDefault::DrawLinePhong(sal_Int32 nYPos, B3dMaterial& rMat)
{
	// Ausserhalb des Clipping-Bereichs?
	if(IsScissorRegionActive()
		&& (nYPos < aDefaultScissorRectangle.Top()
		|| nYPos > aDefaultScissorRectangle.Bottom()))
		return;

	// Von links bis rechts zeichnen
	sal_Int32 nXLineStart = aIntXPosLeft.GetLongValue();
	sal_Int32 nXLineDelta = aIntXPosRight.GetLongValue() - nXLineStart;

	if(nXLineDelta > 0)
	{
		// Ausserhalb des Clipping-Bereichs?
		if(IsScissorRegionActive()
			&& ( nXLineStart+nXLineDelta < aDefaultScissorRectangle.Left()
			|| nXLineStart > aDefaultScissorRectangle.Right()))
			return;

		basegfx::B3DVector aVectorLeft;
		aIntVectorLeft.GetVector3DValue(aVectorLeft);
		basegfx::B3DVector aVectorRight;
		aIntVectorRight.GetVector3DValue(aVectorRight);
		aIntVectorLine.Load(aVectorLeft, aVectorRight, nXLineDelta);
		aIntDepthLine.Load(aIntDepthLeft.GetDoubleValue(), aIntDepthRight.GetDoubleValue(), nXLineDelta);

		if(GetTransformationSet())
=====================================================================
Found a 20 line (146 tokens) duplication in the following files: 
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

	if (sString.indexOf(s2equal) == 2)
		nLength = 1;
	else if (sString.indexOf(s1equal) == 3)
		nLength = 2;
	else
		nLength = 3;

	sal_Int32 nBinaer ((aBase64DecodeTable [sString [0]] << 18) +
			(aBase64DecodeTable [sString [1]] << 12) +
			(aBase64DecodeTable [sString [2]] <<  6) +
			(aBase64DecodeTable [sString [3]]));

	sal_uInt8 OneByte = static_cast< sal_uInt8 >((nBinaer & 0xFF0000) >> 16);
	pBuffer[nStart + 0] = (sal_uInt8)OneByte;

	if (nLength == 1)
		return;

	OneByte = static_cast< sal_uInt8 >((nBinaer & 0xFF00) >> 8);
	pBuffer[nStart + 1] = OneByte;
=====================================================================
Found a 35 line (146 tokens) duplication in the following files: 
Starting at line 503 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testpropshlp.cxx
Starting at line 621 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testpropshlp.cxx

					OSL_ENSURE( evt.PropertyName == OUString( RTL_CONSTASCII_USTRINGPARAM("INT16") ), "PropertySetHelper: wrong name" );

					sal_Int16 nInt16, nOldInt16;
					pExceptedListenerValues[nCurrent] 	>>= nInt16;
					evt.OldValue 						>>= nOldInt16;
					OSL_ENSURE( nInt16 == nOldInt16 , "PropertySetHelper: wrong old value" );
								

					pExceptedListenerValues[nCurrent+1]	>>= nInt16;
					evt.NewValue 						>>= nOldInt16;
					OSL_ENSURE( nInt16 == nOldInt16 , "PropertySetHelper: wrong new value" );
					}
				break;

				case PROPERTY_INT32:
					{
					OSL_ENSURE( evt.PropertyName == OUString( RTL_CONSTASCII_USTRINGPARAM("INT32") ), "PropertySetHelper: wrong name" );

					
					sal_Int32 nInt32,nOldInt32; 
					pExceptedListenerValues[nCurrent] >>= nInt32;
					evt.OldValue >>= nOldInt32;
					OSL_ENSURE( nInt32 == nOldInt32 , "PropertySetHelper: wrong old value" );
					
					pExceptedListenerValues[nCurrent+1] >>= nInt32;
					evt.NewValue >>= nOldInt32;
					OSL_ENSURE( nInt32 == nOldInt32 ,	"PropertySetHelper: wrong new value" );
					}
				break;

				default:
					OSL_ENSURE( sal_False, "XPropeSetHelper: invalid property handle" );
			}
			nCurrent += 2;
		}
=====================================================================
Found a 16 line (146 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
Starting at line 1133 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx

		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("VARCHAR"));
		aRow[2] = new ORowSetValueDecorator(DataType::VARCHAR);
		aRow[3] = new ORowSetValueDecorator((sal_Int32)65535);
=====================================================================
Found a 19 line (146 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BFunctions.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OFunctions.cxx

		return sal_False;
#endif

	return bLoaded = LoadFunctions(pODBCso);
}
// -------------------------------------------------------------------------

sal_Bool LoadFunctions(oslModule pODBCso)
{

	if( ( pODBC3SQLAllocHandle	=	(T3SQLAllocHandle)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLAllocHandle").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLConnect		=	(T3SQLConnect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLConnect").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLDriverConnect =	(T3SQLDriverConnect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDriverConnect").pData )) == NULL )
		return sal_False;
	if( ( pODBC3SQLBrowseConnect =   (T3SQLBrowseConnect)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLBrowseConnect").pData )) == NULL )
		return sal_False;
	if(( pODBC3SQLDataSources	=   (T3SQLDataSources)osl_getFunctionSymbol(pODBCso, ::rtl::OUString::createFromAscii("SQLDataSources").pData )) == NULL )
=====================================================================
Found a 10 line (146 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/IndexedPropertyValuesContainer.cxx
Starting at line 1200 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unoobj.cxx

    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);

    // XElementAccess
    virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);

	// XServiceInfo
    virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 24 line (146 tokens) duplication in the following files: 
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

}

void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vtableOffset)
=====================================================================
Found a 22 line (146 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr )) // value
		{
=====================================================================
Found a 26 line (146 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 659 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

}



void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 functionCount, sal_Int32 vtableOffset)
=====================================================================
Found a 37 line (146 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolypolygon.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b3dpolypolygon.cxx

				maPolygons.insert(aIndex, rPolyPolygon.getB3DPolygon(a));
				aIndex++;
			}
		}
	}

	void remove(sal_uInt32 nIndex, sal_uInt32 nCount)
	{
		if(nCount)
		{
			// remove polygon data
			PolygonVector::iterator aStart(maPolygons.begin());
			aStart += nIndex;
			const PolygonVector::iterator aEnd(aStart + nCount);

			maPolygons.erase(aStart, aEnd);
		}
	}

	sal_uInt32 count() const
	{
		return maPolygons.size();
	}

	void setClosed(bool bNew)
	{
		for(sal_uInt32 a(0L); a < maPolygons.size(); a++)
		{
			maPolygons[a].setClosed(bNew);
		}
	}

	void flip()
	{
        std::for_each( maPolygons.begin(),
                       maPolygons.end(),
                       std::mem_fun_ref( &::basegfx::B3DPolygon::flip ));
=====================================================================
Found a 22 line (146 tokens) duplication in the following files: 
Starting at line 1471 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlgedobj.cxx
Starting at line 1933 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlgedobj.cxx

{
	Rectangle aROuter = aOutRect;
	aROuter.Left()	 -= nTol;
	aROuter.Right()  += nTol;
	aROuter.Top()	 -= nTol;
	aROuter.Bottom() += nTol;

	Rectangle aRInner = aOutRect;
	if( (aRInner.GetSize().Height() > (long)nTol*2) &&
		(aRInner.GetSize().Width()	> (long)nTol*2)    )
	{
		aRInner.Left()	 += nTol;
		aRInner.Right()  -= nTol;
		aRInner.Top()	 += nTol;
		aRInner.Bottom() -= nTol;
	}

	if( aROuter.IsInside( rPnt ) && !aRInner.IsInside( rPnt ) )
		return (SdrObject*)this;
	else
		return 0;
}
=====================================================================
Found a 21 line (145 tokens) duplication in the following files: 
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                                  weight_array[y_hr] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }

                        x_lr++;
=====================================================================
Found a 21 line (145 tokens) duplication in the following files: 
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/encrypter.cxx
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/verifier.cxx

using namespace ::rtl ;
using namespace ::cppu ;
using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::io ;
using namespace ::com::sun::star::ucb ;
using namespace ::com::sun::star::beans ;
using namespace ::com::sun::star::document ;
using namespace ::com::sun::star::lang ;
using namespace ::com::sun::star::registry ;
using namespace ::com::sun::star::xml::wrapper ;
using namespace ::com::sun::star::xml::crypto ;


int SAL_CALL main( int argc, char **argv )
{
	const char* 		n_pCertStore ;
	HCERTSTORE			n_hStoreHandle ;

	xmlDocPtr			doc = NULL ;
	xmlNodePtr			tplNode ;
	xmlNodePtr			tarNode ;
=====================================================================
Found a 26 line (145 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx

	Reference< XUnoTunnel > xSecTunnel( xSecEnv , UNO_QUERY ) ;
	if( !xSecTunnel.is() ) {
		 throw RuntimeException() ;
	}

	SecurityEnvironment_MSCryptImpl* pSecEnv = ( SecurityEnvironment_MSCryptImpl* )xSecTunnel->getSomething( SecurityEnvironment_MSCryptImpl::getUnoTunnelId() ) ;
	if( pSecEnv == NULL )
		throw RuntimeException() ;

	//Get the encryption template
	Reference< XXMLElementWrapper > xTemplate = aTemplate->getTemplate() ;
	if( !xTemplate.is() ) {
		throw RuntimeException() ;
	}

	Reference< XUnoTunnel > xTplTunnel( xTemplate , UNO_QUERY ) ;
	if( !xTplTunnel.is() ) {
		throw RuntimeException() ;
	}

	XMLElementWrapper_XmlSecImpl* pTemplate = ( XMLElementWrapper_XmlSecImpl* )xTplTunnel->getSomething( XMLElementWrapper_XmlSecImpl::getUnoTunnelImplementationId() ) ;
	if( pTemplate == NULL ) {
		throw RuntimeException() ;
	}

	pEncryptedData = pTemplate->getNativeElement() ;
=====================================================================
Found a 21 line (145 tokens) duplication in the following files: 
Starting at line 1097 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impgraph.cxx
Starting at line 1281 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impgraph.cxx

						try
						{
							::ucbhelper::Content aCnt( aTmpURL.GetMainURL( INetURLObject::NO_DECODE ),
												 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );

							aCnt.executeCommand( ::rtl::OUString::createFromAscii( "delete" ),
												 ::com::sun::star::uno::makeAny( sal_Bool( sal_True ) ) );
						}
						catch( const ::com::sun::star::ucb::ContentCreationException& )
						{
						}
						catch( const ::com::sun::star::uno::RuntimeException& )
						{
						}
						catch( const ::com::sun::star::ucb::CommandAbortedException& )
						{
						}
        		        catch( const ::com::sun::star::uno::Exception& )
		                {
		                }
					}
=====================================================================
Found a 32 line (145 tokens) duplication in the following files: 
Starting at line 587 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontentcaps.cxx
Starting at line 632 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontentcaps.cxx

        static com::sun::star::ucb::CommandInfo aFolderCommandInfoTable[] =
		{
			///////////////////////////////////////////////////////////////
			// Required commands
			///////////////////////////////////////////////////////////////

            com::sun::star::ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
				-1,
				getCppuVoidType()
			),
            com::sun::star::ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
				-1,
				getCppuVoidType()
			),
            com::sun::star::ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
				-1,
                getCppuType( static_cast<
                                uno::Sequence< beans::Property > * >( 0 ) )
			),
            com::sun::star::ucb::CommandInfo(
                rtl::OUString(
                    RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
				-1,
                getCppuType( static_cast<
                                uno::Sequence< beans::PropertyValue > * >( 0 ) )
			),
=====================================================================
Found a 42 line (145 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/cfgmerge.cxx
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/xrmmerge.cxx

				sInputFileName.GetBuffer());
        }
        else {
			// this is a valid file which can be opened, so
			// create path to project root
			DirEntry aEntry( String( sInputFileName, RTL_TEXTENCODING_ASCII_US ));
			aEntry.ToAbs();
			ByteString sFullEntry( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US );
			aEntry += DirEntry( String( "..", RTL_TEXTENCODING_ASCII_US ));
			aEntry += DirEntry( sPrjRoot );
			ByteString sPrjEntry( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US );

			// create file name, beginnig with project root
			// (e.g.: source\ui\src\menue.src)
			sActFileName = sFullEntry.Copy( sPrjEntry.Len() + 1 );

			if( !bQuiet ) 
                fprintf( stdout, "\nProcessing File %s ...\n", sInputFileName.GetBuffer());

			sActFileName.SearchAndReplaceAll( "/", "\\" );

			return pFile;
		}
	}
	// this means the file could not be opened
	return NULL;
}

/*****************************************************************************/
int WorkOnTokenSet( int nTyp, char *pTokenText )
/*****************************************************************************/
{
//	printf("Typ = %d , text = '%s'\n",nTyp , pTokenText );
    pParser->Execute( nTyp, pTokenText );

	return 1;
}

/*****************************************************************************/
int SetError()
/*****************************************************************************/
{
=====================================================================
Found a 22 line (145 tokens) duplication in the following files: 
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/cfgmerge.cxx
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/xrmmerge.cxx

extern FILE *GetXrmFile()
/*****************************************************************************/
{
    FILE *pFile = 0;
    // look for valid filename
	if ( sInputFileName.Len()) {
        if( Export::fileHasUTF8ByteOrderMarker( sInputFileName ) ){
            DirEntry aTempFile = Export::GetTempFile();
            DirEntry aSourceFile( String( sInputFileName , RTL_TEXTENCODING_ASCII_US ) );
            aSourceFile.CopyTo( aTempFile , FSYS_ACTION_COPYFILE );
            String sTempFile = aTempFile.GetFull();
            Export::RemoveUTF8ByteOrderMarkerFromFile( ByteString( sTempFile , RTL_TEXTENCODING_ASCII_US ) );
            pFile = fopen( ByteString( sTempFile , RTL_TEXTENCODING_ASCII_US ).GetBuffer(), "r" );
            sUsedTempFile = sTempFile;
        }else{
		    // able to open file?
		    pFile = fopen( sInputFileName.GetBuffer(), "r" );
            sUsedTempFile = String::CreateFromAscii("");
        }
		if ( !pFile ){
			fprintf( stderr, "Error: Could not open file %s\n",
				sInputFileName.GetBuffer());
=====================================================================
Found a 16 line (145 tokens) duplication in the following files: 
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

			 true,  true, false, false, false, false, false, false, //89:;<=>?
			false,  true,  true,  true,  true,  true,  true,  true, //@ABCDEFG
			 true,  true,  true,  true,  true,  true,  true,  true, //HIJKLMNO
			 true,  true,  true,  true,  true,  true,  true,  true, //PQRSTUVW
			 true,  true,  true, false, false, false,  true,  true, //XYZ[\]^_
			 true,  true,  true,  true,  true,  true,  true,  true, //`abcdefg
			 true,  true,  true,  true,  true,  true,  true,  true, //hijklmno
			 true,  true,  true,  true,  true,  true,  true,  true, //pqrstuvw
			 true,  true,  true,  true,  true,  true,  true, false  //xyz{|}~
		  };
	return isUSASCII(nChar) && aMap[nChar];
}

//============================================================================
// static
bool INetMIME::isEncodedWordTokenChar(sal_uInt32 nChar)
=====================================================================
Found a 37 line (145 tokens) duplication in the following files: 
Starting at line 802 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/prj.cxx
Starting at line 1414 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/prj.cxx

						if ( aWhatOS == "all" )
							nOSType = ( OS_WIN16 | OS_WIN32 | OS_OS2 | OS_UNX | OS_MAC );
						else if ( aWhatOS == "w" )
							nOSType = ( OS_WIN16 | OS_WIN32 );
						else if ( aWhatOS == "p" )
							nOSType = OS_OS2;
						else if ( aWhatOS == "u" )
							nOSType = OS_UNX;
						else if ( aWhatOS == "d" )
							nOSType = OS_WIN16;
						else if ( aWhatOS == "n" )
							nOSType = OS_WIN32;
						else if ( aWhatOS == "m" )
							nOSType = OS_MAC;
						else
							nOSType = OS_NONE;
					}
					break;
			case 5:
					if ( !bPrjDep )
					{
						aLogFileName = yytext;
					}
					break;
			default:
					if ( !bPrjDep )
					{
						ByteString aItem = yytext;
						if ( aItem == "NULL" )
						{
							// Liste zu Ende
							i = -1;
						}
						else
						{
							// ggfs. Dependency liste anlegen und ergaenzen
							if ( !pDepList2 )
=====================================================================
Found a 20 line (145 tokens) duplication in the following files: 
Starting at line 1219 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/pormulti.cxx
Starting at line 1290 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/pormulti.cxx

			if( lcl_HasRotation( *pTmp, pRotate, bTwo ) )
			{
				if( bTwo == bOn )
				{
					if( aEnd[ aEnd.Count()-1 ] < *pTmp->GetEnd() )
						aEnd[ aEnd.Count()-1 ] = *pTmp->GetEnd();
				}
				else
				{
					bOn = bTwo;
					if( aEnd[ aEnd.Count()-1 ] > *pTmp->GetEnd() )
						aEnd.Insert( *pTmp->GetEnd(), aEnd.Count() );
					else if( aEnd.Count() > 1 )
						aEnd.Remove( aEnd.Count()-1, 1 );
					else
						aEnd[ aEnd.Count()-1 ] = *pTmp->GetEnd();
				}
			}
		}
		if( bOn && aEnd.Count() )
=====================================================================
Found a 25 line (145 tokens) duplication in the following files: 
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap4.cxx
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap4.cxx

			pPersist->GetEmbeddedObjectContainer().InsertEmbeddedLink( aMediaDescr , aPersistName );

    if( xObj.is() )
    {
        Rectangle aRect = pOle2Obj->GetLogicRect();
        if ( aRect.GetWidth() == 100 && aRect.GetHeight() == 100 )
        {
            // default size
			try
			{
            	awt::Size aSz = xObj->getVisualAreaSize( pOle2Obj->GetAspect() );
            	aRect.SetSize( Size( aSz.Width, aSz.Height ) );
			}
			catch( embed::NoVisualAreaSizeException& )
			{}
			pOle2Obj->SetLogicRect( aRect );
        }
        else
        {
            awt::Size aSz;
            Size aSize = pOle2Obj->GetLogicRect().GetSize();
            aSz.Width = aSize.Width();
            aSz.Height = aSize.Height();
            xObj->setVisualAreaSize(  pOle2Obj->GetAspect(), aSz );
        }
=====================================================================
Found a 30 line (145 tokens) duplication in the following files: 
Starting at line 2358 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/workwin.cxx
Starting at line 2442 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/workwin.cxx

void SfxWorkWindow::SetChildWindow_Impl(USHORT nId, BOOL bOn, BOOL bSetFocus)
{
	SfxChildWin_Impl *pCW=NULL;
	SfxWorkWindow *pWork = pParent;

	// Den obersten parent nehmen; ChildWindows werden immer am WorkWindow
	// der Task bzw. des Frames oder am AppWorkWindow angemeldet
	while ( pWork && pWork->pParent )
		pWork = pWork->pParent;

	if ( pWork )
	{
		// Dem Parent schon bekannt ?
		USHORT nCount = pWork->pChildWins->Count();
		for (USHORT n=0; n<nCount; n++)
			if ((*pWork->pChildWins)[n]->nSaveId == nId)
			{
				pCW = (*pWork->pChildWins)[n];
				break;
			}
	}

	if ( !pCW )
	{
		// Kein Parent oder dem Parent noch unbekannt, dann bei mir suchen
		USHORT nCount = pChildWins->Count();
		for (USHORT n=0; n<nCount; n++)
			if ((*pChildWins)[n]->nSaveId == nId)
			{
				pCW = (*pChildWins)[n];
=====================================================================
Found a 37 line (145 tokens) duplication in the following files: 
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconrec.cxx
Starting at line 509 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconrec.cxx

	if( nSlotId == SID_TOOL_CONNECTOR               ||
		nSlotId == SID_CONNECTOR_ARROW_START        ||
		nSlotId == SID_CONNECTOR_ARROW_END          ||
		nSlotId == SID_CONNECTOR_ARROWS             ||
		nSlotId == SID_CONNECTOR_CIRCLE_START       ||
		nSlotId == SID_CONNECTOR_CIRCLE_END         ||
		nSlotId == SID_CONNECTOR_CIRCLES            ||
		nSlotId == SID_CONNECTOR_LINE               ||
		nSlotId == SID_CONNECTOR_LINE_ARROW_START   ||
		nSlotId == SID_CONNECTOR_LINE_ARROW_END     ||
		nSlotId == SID_CONNECTOR_LINE_ARROWS        ||
		nSlotId == SID_CONNECTOR_LINE_CIRCLE_START  ||
		nSlotId == SID_CONNECTOR_LINE_CIRCLE_END    ||
		nSlotId == SID_CONNECTOR_LINE_CIRCLES       ||
		nSlotId == SID_CONNECTOR_CURVE              ||
		nSlotId == SID_CONNECTOR_CURVE_ARROW_START  ||
		nSlotId == SID_CONNECTOR_CURVE_ARROW_END    ||
		nSlotId == SID_CONNECTOR_CURVE_ARROWS       ||
		nSlotId == SID_CONNECTOR_CURVE_CIRCLE_START ||
		nSlotId == SID_CONNECTOR_CURVE_CIRCLE_END   ||
		nSlotId == SID_CONNECTOR_CURVE_CIRCLES      ||
		nSlotId == SID_CONNECTOR_LINES              ||
		nSlotId == SID_CONNECTOR_LINES_ARROW_START  ||
		nSlotId == SID_CONNECTOR_LINES_ARROW_END    ||
		nSlotId == SID_CONNECTOR_LINES_ARROWS       ||
		nSlotId == SID_CONNECTOR_LINES_CIRCLE_START ||
		nSlotId == SID_CONNECTOR_LINES_CIRCLE_END   ||
		nSlotId == SID_CONNECTOR_LINES_CIRCLES		||
		nSlotId == SID_LINE_ARROW_START				||
		nSlotId == SID_LINE_ARROW_END				||
		nSlotId == SID_LINE_ARROWS					||
		nSlotId == SID_LINE_ARROW_CIRCLE			||
		nSlotId == SID_LINE_CIRCLE_ARROW			||
		nSlotId == SID_LINE_ARROW_SQUARE			||
		nSlotId == SID_LINE_SQUARE_ARROW )
	{
		mpView->SetGlueVisible( FALSE );
=====================================================================
Found a 29 line (145 tokens) duplication in the following files: 
Starting at line 1979 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output.cxx
Starting at line 2085 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output.cxx

		 nRefStartY <= nVisY2 + 1 && nRefEndY >= nVisY1 )		// +1 because it touches next cells left/top
	{
		long nMinX = nScrX;
		long nMinY = nScrY;
		long nMaxX = nScrX+nScrW-1;
		long nMaxY = nScrY+nScrH-1;
		if ( bLayoutRTL )
		{
			long nTemp = nMinX;
			nMinX = nMaxX;
			nMaxX = nTemp;
		}
		long nLayoutSign = bLayoutRTL ? -1 : 1;

		BOOL bTop    = FALSE;
		BOOL bBottom = FALSE;
		BOOL bLeft   = FALSE;
		BOOL bRight	 = FALSE;

		long nPosY = nScrY;
		BOOL bNoStartY = ( nY1 < nRefStartY );
		BOOL bNoEndY   = FALSE;
		for (SCSIZE nArrY=1; nArrY<nArrCount; nArrY++)		// loop to end for bNoEndY check
		{
			SCROW nY = pRowInfo[nArrY].nRowNo;

			if ( nY==nRefStartY || (nY>nRefStartY && bNoStartY) )
			{
				nMinY = nPosY - 1;
=====================================================================
Found a 18 line (145 tokens) duplication in the following files: 
Starting at line 3243 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx
Starting at line 3382 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx

	ScDocument* pUndoDoc = NULL;
	if ( bRecord )
	{
		SCTAB nTabCount = pDoc->GetTableCount();
        SCTAB nDestStartTab = aDestArea.aStart.Tab();

		pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
        pUndoDoc->InitUndo( pDoc, nDestStartTab, nDestStartTab );
		for (SCTAB i=0; i<nTabCount; i++)
            if (i != nDestStartTab && aMark.GetTableSelect(i))
				pUndoDoc->AddUndoTab( i, i );

		pDoc->CopyToDocument(
			aDestArea.aStart.Col(), aDestArea.aStart.Row(), 0,
			aDestArea.aEnd.Col(), aDestArea.aEnd.Row(), nTabCount-1,
			IDF_ALL, FALSE, pUndoDoc, &aMark );
		pDoc->BeginDrawUndo();
	}
=====================================================================
Found a 26 line (145 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/dbdocfun.cxx
Starting at line 1683 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

				pDoc->CopyToDocument( 0, nOutStartRow, nTab, MAXCOL, nOutEndRow, nTab, IDF_NONE, FALSE, pUndoDoc );
			}
			else
				pUndoDoc->InitUndo( pDoc, nTab, nTab, FALSE, TRUE );

			//	Datenbereich sichern - incl. Filter-Ergebnis
			pDoc->CopyToDocument( 0,nStartRow,nTab, MAXCOL,nEndRow,nTab, IDF_ALL, FALSE, pUndoDoc );

			//	alle Formeln wegen Referenzen
			pDoc->CopyToDocument( 0,0,0, MAXCOL,MAXROW,nTabCount-1, IDF_FORMULA, FALSE, pUndoDoc );

			//	DB- und andere Bereiche
			ScRangeName* pDocRange = pDoc->GetRangeName();
			if (pDocRange->GetCount())
				pUndoRange = new ScRangeName( *pDocRange );
			ScDBCollection* pDocDB = pDoc->GetDBCollection();
			if (pDocDB->GetCount())
				pUndoDB = new ScDBCollection( *pDocDB );
		}

		if (bSort && bSubTotal)
		{
			//	Sortieren ohne SubTotals

			aSubTotalParam.bRemoveOnly = TRUE;		// wird unten wieder zurueckgesetzt
			DoSubTotals( aSubTotalParam, FALSE );
=====================================================================
Found a 23 line (145 tokens) duplication in the following files: 
Starting at line 604 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/drwtrans.cxx
Starting at line 711 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/app/sdxfer.cxx

                uno::Reference< embed::XStorage > xWorkStore =
                    ::comphelper::OStorageHelper::GetStorageFromURL( aTempFile.GetURL(), embed::ElementModes::READWRITE );

                // write document storage
                pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, sal_False );
                // mba: no relative ULRs for clipboard!
                SfxMedium aMedium( xWorkStore, String() );
                bRet = pEmbObj->DoSaveObjectAs( aMedium, FALSE );
                pEmbObj->DoSaveCompleted();

                uno::Reference< embed::XTransactedObject > xTransact( xWorkStore, uno::UNO_QUERY );
                if ( xTransact.is() )
                    xTransact->commit();

                SvStream* pSrcStm = ::utl::UcbStreamHelper::CreateStream( aTempFile.GetURL(), STREAM_READ );
                if( pSrcStm )
                {
                    rxOStm->SetBufferSize( 0xff00 );
                    *rxOStm << *pSrcStm;
                    delete pSrcStm;
                }

                bRet = TRUE;
=====================================================================
Found a 22 line (145 tokens) duplication in the following files: 
Starting at line 815 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 935 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

			fFactor = pow(q, n);
			if (fFactor == 0.0)
			{
				fFactor = pow(p, n);
				if (fFactor == 0.0)
					SetNoValue();
				else
				{
					ULONG max = (ULONG) (n - x);
					for (ULONG i = 0; i < max && fFactor > 0.0; i++)
						fFactor *= (n-i)/(i+1)*q/p;
					PushDouble(fFactor);
				}
			}
			else
			{
				ULONG max = (ULONG) x;
				for (ULONG i = 0; i < max && fFactor > 0.0; i++)
					fFactor *= (n-i)/(i+1)*p/q;
				PushDouble(fFactor);
			}
		}
=====================================================================
Found a 48 line (145 tokens) duplication in the following files: 
Starting at line 1956 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 631 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::rtl::OUString suError = outputError(sSocket.getLocalHost( ), rtl::OUString::createFromAscii(""), "test for getLocalHost function: getLocalHost with invalid SocketAddr");
	
			CPPUNIT_ASSERT_MESSAGE( suError, sal_True == bOK ); 
		}
		
		CPPUNIT_TEST_SUITE( getLocalHost );
		CPPUNIT_TEST( getLocalHost_001 );
		CPPUNIT_TEST( getLocalHost_002 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class getLocalHost
	

	/** testing the methods:
		inline void SAL_CALL getPeerAddr( SocketAddr & Addr) const;
		inline sal_Int32	SAL_CALL getPeerPort() const;
		inline ::rtl::OUString SAL_CALL getPeerHost() const;
	*/
	class getPeer : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		TimeValue *pTimeout;
		::osl::AcceptorSocket asAcceptorSocket;
		::osl::ConnectorSocket csConnectorSocket;
		
		
		// initialization
		void setUp( )
		{
			pTimeout  = ( TimeValue* )malloc( sizeof( TimeValue ) );
			pTimeout->Seconds = 3;
			pTimeout->Nanosec = 0;
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			free( pTimeout );
			sHandle = NULL;
			asAcceptorSocket.close( );
			csConnectorSocket.close( );
		}

	
		void getPeer_001()
		{
			::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT );
=====================================================================
Found a 6 line (145 tokens) duplication in the following files: 
Starting at line 1092 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1100 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 09f0 - 09ff

     0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a00 - 0a0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a10 - 0a1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a20 - 0a2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 0a30 - 0a3f
=====================================================================
Found a 5 line (145 tokens) duplication in the following files: 
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 31b0 - 31bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31c0 - 31cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31d0 - 31df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31e0 - 31ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31f0 - 31ff
=====================================================================
Found a 6 line (145 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 600 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2540 - 254f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2550 - 255f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2560 - 256f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2570 - 257f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2580 - 258f
    27,27,27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2590 - 259f
=====================================================================
Found a 5 line (145 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 31b0 - 31bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31c0 - 31cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31d0 - 31df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31e0 - 31ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31f0 - 31ff
=====================================================================
Found a 5 line (145 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2330 - 233f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2340 - 234f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2350 - 235f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2360 - 236f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,10,10,// 2370 - 237f
=====================================================================
Found a 6 line (145 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 5,// 1150 - 115f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1160 - 116f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1170 - 117f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1180 - 118f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1190 - 119f
     5, 5, 5, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5,// 11a0 - 11af
=====================================================================
Found a 5 line (145 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 31b0 - 31bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31c0 - 31cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31d0 - 31df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31e0 - 31ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 31f0 - 31ff
=====================================================================
Found a 5 line (145 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 8, 8, 6, 6, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
=====================================================================
Found a 9 line (145 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,   19,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
=====================================================================
Found a 40 line (145 tokens) duplication in the following files: 
Starting at line 861 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/desktop.cxx
Starting at line 2156 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/frame.cxx

css::uno::Reference< css::frame::XDispatch > SAL_CALL Frame::queryDispatch( const css::util::URL&   aURL            ,
                                                                            const ::rtl::OUString&  sTargetFrameName,
                                                                                  sal_Int32         nSearchFlags    ) throw( css::uno::RuntimeException )
{
	const char UNO_PROTOCOL[] = ".uno:";

	// Don't check incoming parameter here! Our helper do it for us and it isn't a good idea to do it more then ones!
    // But look for rejected calls!
    TransactionGuard aTransaction( m_aTransactionManager, E_HARDEXCEPTIONS );

	// Remove uno and cmd protocol part as we want to support both of them. We store only the command part
	// in our hash map. All other protocols are stored with the protocol part.
	String aCommand( aURL.Main );
	if ( aURL.Protocol.equalsIgnoreAsciiCaseAsciiL( UNO_PROTOCOL, sizeof( UNO_PROTOCOL )-1 ))
		aCommand = aURL.Path;

	// Make hash_map lookup if the current URL is in the disabled list
	if ( m_aCommandOptions.Lookup( SvtCommandOptions::CMDOPTION_DISABLED, aCommand ) )
		return css::uno::Reference< css::frame::XDispatch >();
	else
	{
		// We use a helper to support these interface and an interceptor mechanism.
		// Our helper is threadsafe by himself!
		return m_xDispatchHelper->queryDispatch( aURL, sTargetFrameName, nSearchFlags );
	}
}

/*-****************************************************************************************************//**
	@short		handle more then ones dispatches at same call
    @descr      Returns a sequence of dispatches. For details see the queryDispatch method.
				For failed dispatches we return empty items in list!

	@seealso	method queryDispatch()

	@param		"lDescriptor" list of dispatch arguments for queryDispatch()!
	@return		List of dispatch references. Some elements can be NULL!

	@onerror	An empty list is returned.
*//*-*****************************************************************************************************/
css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Frame::queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptor ) throw( css::uno::RuntimeException )
=====================================================================
Found a 32 line (145 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/actiontriggerpropertyset.cxx
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/actiontriggerseparatorpropertyset.cxx

Sequence< Type > SAL_CALL ActionTriggerSeparatorPropertySet::getTypes() throw ( RuntimeException )
{
	// Optimize this method !
	// We initialize a static variable only one time. And we don't must use a mutex at every call!
	// For the first call; pTypeCollection is NULL - for the second call pTypeCollection is different from NULL!
	static ::cppu::OTypeCollection* pTypeCollection = NULL ;

	if ( pTypeCollection == NULL )
	{
		// Ready for multithreading; get global mutex for first call of this method only! see before
		osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;

		// Control these pointer again ... it can be, that another instance will be faster then these!
		if ( pTypeCollection == NULL )
		{
			// Create a static typecollection ...
			static ::cppu::OTypeCollection aTypeCollection(	
						::getCppuType(( const Reference< XPropertySet			>*)NULL ) ,
						::getCppuType(( const Reference< XFastPropertySet		>*)NULL	) ,
						::getCppuType(( const Reference< XMultiPropertySet		>*)NULL	) ,
						::getCppuType(( const Reference< XServiceInfo			>*)NULL ) ,
						::getCppuType(( const Reference< XTypeProvider			>*)NULL ) ) ;

			// ... and set his address to static pointer!
			pTypeCollection = &aTypeCollection ;
		}
	}

	return pTypeCollection->getTypes() ;
}

Sequence< sal_Int8 > SAL_CALL ActionTriggerSeparatorPropertySet::getImplementationId() throw ( RuntimeException )
=====================================================================
Found a 9 line (145 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,    0,    0,    0,    6,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,   32,    0,
=====================================================================
Found a 27 line (145 tokens) duplication in the following files: 
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/gui/dp_gui_cmdenv.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx

    Sequence< Reference<task::XInteractionContinuation> > conts(
        xRequest->getContinuations() );
    Reference<task::XInteractionContinuation> const * pConts =
        conts.getConstArray();
    sal_Int32 len = conts.getLength();
    for ( sal_Int32 pos = 0; pos < len; ++pos )
    {
        if (approve) {
            Reference<task::XInteractionApprove> xInteractionApprove(
                pConts[ pos ], UNO_QUERY );
            if (xInteractionApprove.is()) {
                xInteractionApprove->select();
                // don't query again for ongoing continuations:
                approve = false;
            }
        }
        else if (abort) {
            Reference<task::XInteractionAbort> xInteractionAbort(
                pConts[ pos ], UNO_QUERY );
            if (xInteractionAbort.is()) {           
                xInteractionAbort->select();
                // don't query again for ongoing continuations:
                abort = false;
            }
        }
    }
}
=====================================================================
Found a 15 line (145 tokens) duplication in the following files: 
Starting at line 1026 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx
Starting at line 1068 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx

					else if ( aName == CONFIGKEY_DEFSET_FONT_SLANT ) sProp = PROPERTY_FONTSLANT;

					if ( sProp.getLength() )
					{
                        if ( m_aProperties.find(m_aStack.top().second) == m_aProperties.end() )
                            m_aProperties.insert(::std::map< sal_Int16 ,Sequence< ::rtl::OUString> >::value_type(m_aStack.top().second,Sequence< ::rtl::OUString>()));
						sal_Int32 nPos = m_aProperties[m_aStack.top().second].getLength();
						m_aProperties[m_aStack.top().second].realloc(nPos+1);
						m_aProperties[m_aStack.top().second][nPos] = sProp;
					}
					else
						m_aStack.push(TElementStack::value_type(aName,NO_PROP));
				}
				break;
			case COLUMN:
=====================================================================
Found a 19 line (145 tokens) duplication in the following files: 
Starting at line 1109 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx

								const ::rtl::OUString& procedureNamePattern)
								throw(SQLException, RuntimeException)
{
	const ::rtl::OUString *pSchemaPat = NULL;

	if(schemaPattern.toChar() != '%')
		pSchemaPat = &schemaPattern;
	else
		pSchemaPat = NULL;

	m_bFreeHandle = sal_True;
	::rtl::OString aPKQ,aPKO,aPKN,aCOL;

	aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding);
	aPKO = ::rtl::OUStringToOString(schemaPattern,m_nTextEncoding);

	const char	*pPKQ = catalog.hasValue() && aPKQ.getLength() ? aPKQ.getStr()	: NULL,
				*pPKO = pSchemaPat && pSchemaPat->getLength() ? aPKO.getStr() : NULL,
				*pPKN = aPKN = ::rtl::OUStringToOString(procedureNamePattern,m_nTextEncoding).getStr();
=====================================================================
Found a 18 line (145 tokens) duplication in the following files: 
Starting at line 1010 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
Starting at line 1171 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx

									const ::rtl::OUString& table,sal_Int32 scope, 	sal_Bool nullable )
									throw(SQLException, RuntimeException)
{
	const ::rtl::OUString *pSchemaPat = NULL;

	if(schema.toChar() != '%')
		pSchemaPat = &schema;
	else
		pSchemaPat = NULL;

	m_bFreeHandle = sal_True;
	::rtl::OString aPKQ,aPKO,aPKN,aCOL;
	aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding);
	aPKO = ::rtl::OUStringToOString(schema,m_nTextEncoding);

	const char	*pPKQ = catalog.hasValue() && aPKQ.getLength() ? aPKQ.getStr()	: NULL,
				*pPKO = pSchemaPat && pSchemaPat->getLength() ? aPKO.getStr() : NULL,
				*pPKN = aPKN = ::rtl::OUStringToOString(table,m_nTextEncoding).getStr();
=====================================================================
Found a 18 line (145 tokens) duplication in the following files: 
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx

			::cppu::extractInterface(xTable,xNames->getByName(*pTabBegin));
			OSL_ENSURE(xTable.is(),"Table not found! Normallya exception had to be thrown here!");
			aRow[3] = new ORowSetValueDecorator(*pTabBegin);

			Reference< XNameAccess> xColumns = xTable->getColumns();
			if(!xColumns.is())
                throw SQLException();

			Sequence< ::rtl::OUString> aColNames(xColumns->getElementNames());

			const ::rtl::OUString* pBegin = aColNames.getConstArray();
			const ::rtl::OUString* pEnd = pBegin + aColNames.getLength();
			Reference< XPropertySet> xColumn;
			for(sal_Int32 i=1;pBegin != pEnd;++pBegin,++i)
			{
				if(match(columnNamePattern,*pBegin,'\0'))
				{
					aRow[4] = new ORowSetValueDecorator(*pBegin);
=====================================================================
Found a 39 line (145 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/AreaChartTypeTemplate.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx

        uno::makeAny( sal_Int32( 1 ) );
}

const uno::Sequence< Property > & lcl_GetPropertySequence()
{
    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

::cppu::IPropertyArrayHelper & lcl_getInfoHelper()
{
    static ::cppu::OPropertyArrayHelper aArrayHelper(
        lcl_GetPropertySequence(),
        /* bSorted = */ sal_True );

    return aArrayHelper;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 28 line (145 tokens) duplication in the following files: 
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx
Starting at line 847 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx

void ImpPutUInt64( SbxValues* p, sal_uInt64 n )
{
	SbxValues aTmp;

start:
	switch( p->eType )
	{
		// Check neccessary
		case SbxCHAR:
			aTmp.pChar = &p->nChar; goto direct;
		case SbxBYTE:
			aTmp.pByte = &p->nByte; goto direct;
		case SbxINTEGER:
		case SbxBOOL:
			aTmp.pInteger = &p->nInteger; goto direct;
		case SbxULONG64:
			aTmp.pULong64 = &p->nULong64; goto direct;
		case SbxLONG64:
		case SbxCURRENCY:
			aTmp.pLong64 = &p->nLong64; goto direct;
		case SbxULONG:
			aTmp.pULong = &p->nULong; goto direct;
		case SbxERROR:
		case SbxUSHORT:
			aTmp.pUShort = &p->nUShort; goto direct;
		case SbxLONG:
			aTmp.pnInt64 = &p->nInt64; goto direct;
		case SbxSALINT64:
=====================================================================
Found a 23 line (145 tokens) duplication in the following files: 
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 569 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdec.cxx

			pnDecRes->setUShort( *p->pUShort ); break;

		// ab hier muss getestet werden
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
		case SbxBYREF | SbxSALINT64:
			aTmp.nInt64 = *p->pnInt64; goto ref;
		case SbxBYREF | SbxSALUINT64:
			aTmp.uInt64 = *p->puInt64; goto ref;
		ref:
			aTmp.eType = SbxDataType( p->eType & 0x0FFF );
			p = &aTmp; goto start;

		default:
			SbxBase::SetError( SbxERR_CONVERSION ); pnDecRes->setShort( 0 );
=====================================================================
Found a 43 line (144 tokens) duplication in the following files: 
Starting at line 36819 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 38535 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

OOXMLContext_wordprocessingml_CT_TblBorders::element(TokenEnum_t nToken)
{
    OOXMLContext::Pointer_t pResult;
    
    switch (nToken)
    {
     case OOXML_ELEMENT_wordprocessingml_top:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_left:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_bottom:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_right:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_insideH:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_insideV:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_TOKENS_END:
=====================================================================
Found a 19 line (144 tokens) duplication in the following files: 
Starting at line 513 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 583 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                                  weight_array[y_hr] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }
=====================================================================
Found a 22 line (144 tokens) duplication in the following files: 
Starting at line 364 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgb.h
Starting at line 394 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgb.h

        void blend_solid_vspan(int x, int y,
                               unsigned len, 
                               const color_type& c,
                               const int8u* covers)
        {
            if (c.a)
            {
                value_type* p = (value_type*)m_rbuf->row(y) + x + x + x;
                do 
                {
                    calc_type alpha = (calc_type(c.a) * (calc_type(*covers) + 1)) >> 8;
                    if(alpha == base_mask)
                    {
                        p[order_type::R] = c.r;
                        p[order_type::G] = c.g;
                        p[order_type::B] = c.b;
                    }
                    else
                    {
                        m_blender.blend_pix(p, c.r, c.g, c.b, alpha, *covers);
                    }
                    p = (value_type*)m_rbuf->next_row(p);
=====================================================================
Found a 34 line (144 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/XMLShapeStyleContext.cxx

		const Reference< xml::sax::XAttributeList > & xAttrList )
{
	SvXMLImportContext *pContext = 0;

	if( XML_NAMESPACE_STYLE == nPrefix )
	{
		sal_uInt32 nFamily = 0;
		if( IsXMLToken( rLocalName, XML_TEXT_PROPERTIES ) )
			nFamily = XML_TYPE_PROP_TEXT;
		else if( IsXMLToken( rLocalName, XML_PARAGRAPH_PROPERTIES ) )
			nFamily = XML_TYPE_PROP_PARAGRAPH;
		else if( IsXMLToken( rLocalName, XML_GRAPHIC_PROPERTIES ) )
			nFamily = XML_TYPE_PROP_GRAPHIC;
		if( nFamily )
		{
			UniReference < SvXMLImportPropertyMapper > xImpPrMap =
				GetStyles()->GetImportPropertyMapper( GetFamily() );
			if( xImpPrMap.is() )
				pContext = new XMLShapePropertySetContext( GetImport(), nPrefix,
														rLocalName, xAttrList,
														nFamily,
														GetProperties(),
														xImpPrMap );
		}
	}
		
	if( !pContext )
		pContext = XMLPropStyleContext::CreateChildContext( nPrefix, rLocalName,
														  xAttrList );

	return pContext;
}

void XMLShapeStyleContext::FillPropertySet( const Reference< beans::XPropertySet > & rPropSet )
=====================================================================
Found a 13 line (144 tokens) duplication in the following files: 
Starting at line 1659 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx
Starting at line 1815 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx

void AddressMultiLineEdit::SelectCurrentItem()
{
    ExtTextEngine* pTextEngine = GetTextEngine();
    ExtTextView* pTextView = GetTextView();
    const TextSelection& rSelection = pTextView->GetSelection();
    const TextCharAttrib* pBeginAttrib = pTextEngine->FindCharAttrib( rSelection.GetStart(), TEXTATTR_PROTECTED );
    const TextCharAttrib* pEndAttrib = pTextEngine->FindCharAttrib( rSelection.GetEnd(), TEXTATTR_PROTECTED );
    if(pBeginAttrib && 
            (pBeginAttrib->GetStart() <= rSelection.GetStart().GetIndex() 
                            && pBeginAttrib->GetEnd() >= rSelection.GetEnd().GetIndex()))
    {
        ULONG nPara = rSelection.GetStart().GetPara();
        TextSelection aEntrySel(TextPaM( nPara, pBeginAttrib->GetStart()), TextPaM(nPara, pBeginAttrib->GetEnd()));
=====================================================================
Found a 26 line (144 tokens) duplication in the following files: 
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx
Starting at line 866 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx

	const XMLPropStyleContext *pStyle = 0;
	if( rStyleName.getLength() )
	{
		pStyle = FindAutoFrameStyle( rStyleName );
		if( pStyle )
		{
			UniReference < SvXMLImportPropertyMapper > xImpPrMap =
				pStyle->GetStyles()
					  ->GetImportPropertyMapper(pStyle->GetFamily());
			ASSERT( xImpPrMap.is(), "Where is the import prop mapper?" );
			if( xImpPrMap.is() )
			{
				UniReference<XMLPropertySetMapper> rPropMapper =
				xImpPrMap->getPropertySetMapper();

				sal_Int32 nCount = pStyle->GetProperties().size();
				for( sal_Int32 i=0; i < nCount; i++ )
				{
					const XMLPropertyState& rProp = pStyle->GetProperties()[i];
					sal_Int32 nIdx = rProp.mnIndex;
					if( -1 == nIdx )
						continue;

					switch( rPropMapper->GetEntryContextId(nIdx) )
					{
					case CTF_FRAME_DISPLAY_SCROLLBAR:
=====================================================================
Found a 34 line (144 tokens) duplication in the following files: 
Starting at line 2197 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlform.cxx
Starting at line 2478 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlform.cxx

			nEvent = HTML_ET_ONCHANGE;
			bSetEvent = sal_True;
			break;

		default:
			lcl_html_getEvents( pOption->GetTokenString(),
								pOption->GetString(),
								aUnoMacroTbl, aUnoMacroParamTbl );
			break;
		}

		if( bSetEvent )
		{
			String sEvent( pOption->GetString() );
			if( sEvent.Len() )
			{
				sEvent.ConvertLineEnd();
				if( EXTENDED_STYPE==eScriptType )
					aScriptType = rDfltScriptType;
				aMacroTbl.Insert( nEvent, new SvxMacro( sEvent, aScriptType,
								  eScriptType ) );
			}
		}
	}

	const uno::Reference< lang::XMultiServiceFactory > & rSrvcMgr =
		pFormImpl->GetServiceFactory();
	if( !rSrvcMgr.is() )
	{
		FinishTextArea();
		return;
	}
	uno::Reference< uno::XInterface >  xInt = rSrvcMgr->createInstance(
		OUString::createFromAscii( "com.sun.star.form.component.ListBox" ) );
=====================================================================
Found a 18 line (144 tokens) duplication in the following files: 
Starting at line 529 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/draw/dflyobj.cxx
Starting at line 1854 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/feshview.cxx

			SfxItemSet aHtmlSet( GetDoc()->GetAttrPool(), RES_VERT_ORIENT, RES_HORI_ORIENT );
			//Horizontale Ausrichtung:
			const FASTBOOL bLeftFrm = aFlyRect.Left() <
									  pAnch->Frm().Left() + pAnch->Prt().Left(),
						   bLeftPrt = aFlyRect.Left() + aFlyRect.Width() <
									  pAnch->Frm().Left() + pAnch->Prt().Width()/2;
			if( bLeftFrm || bLeftPrt )
			{
				aHori.SetHoriOrient( HORI_LEFT );
				aHori.SetRelationOrient( bLeftFrm ? FRAME : PRTAREA );
			}
			else
			{
				const FASTBOOL bRightFrm = aFlyRect.Left() >
										   pAnch->Frm().Left() + pAnch->Prt().Width();
				aHori.SetHoriOrient( HORI_RIGHT );
				aHori.SetRelationOrient( bRightFrm ? FRAME : PRTAREA );
			}
=====================================================================
Found a 17 line (144 tokens) duplication in the following files: 
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/toolbars/extrusionbar.cxx
Starting at line 583 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/toolbars/fontworkbar.cxx

				nStrResId = RID_SVXSTR_UNDO_APPLY_FONTWORK_SAME_LETTER_HEIGHT;

			const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList();
			ULONG nCount = rMarkList.GetMarkCount(), i;
			for( i = 0; i < nCount; i++ )
			{
				SdrObject* pObj = rMarkList.GetMark(i)->GetMarkedSdrObj();
				if( pObj->ISA(SdrObjCustomShape) )
				{
					String aStr( SVX_RES( nStrResId ) );
					pSdrView->BegUndo( aStr );
					pSdrView->AddUndo( pSdrView->GetModel()->GetSdrUndoFactory().CreateUndoAttrObject( *pObj ) );
					SdrCustomShapeGeometryItem aGeometryItem( (SdrCustomShapeGeometryItem&)pObj->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ) );
					impl_execute( pSdrView, rReq, aGeometryItem, pObj );
					pObj->SetMergedItem( aGeometryItem );
					pObj->BroadcastObjectChange();
					pSdrView->EndUndo();
=====================================================================
Found a 9 line (144 tokens) duplication in the following files: 
Starting at line 1882 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2077 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffVertPair mso_sptActionButtonBackPreviousVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I,4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },
	
	{ 0xa MSO_I, 10800 }, { 0xe MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I }
=====================================================================
Found a 9 line (144 tokens) duplication in the following files: 
Starting at line 1675 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 1758 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffVertPair mso_sptActionButtonBlankVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 1 MSO_I, 0 MSO_I }, { 0 MSO_I, 0 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 1 MSO_I, 1 MSO_I }, { 1 MSO_I, 0 MSO_I },
	{ 21600, 21600 }, { 0, 21600 },	{ 0 MSO_I, 1 MSO_I }, { 1 MSO_I, 1 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 0 MSO_I, 0 MSO_I }, { 0 MSO_I, 1 MSO_I }
};
static const sal_uInt16 mso_sptActionButtonBlankSegm[] =
=====================================================================
Found a 9 line (144 tokens) duplication in the following files: 
Starting at line 2350 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2403 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptActionButtonForwardNextVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 },	{ 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0xa MSO_I, 0xc MSO_I }, { 0xe MSO_I, 8 MSO_I }, { 0xa MSO_I, 0x10 MSO_I }
=====================================================================
Found a 8 line (144 tokens) duplication in the following files: 
Starting at line 2068 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2152 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptActionButtonHelpVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I,4 MSO_I },
	{ 7 MSO_I, 0xc MSO_I }, { 0xa MSO_I, 0x3e MSO_I }, { 7 MSO_I, 0x10 MSO_I }, { 0xe MSO_I, 0x3e MSO_I }, { 7 MSO_I, 0xc MSO_I },
=====================================================================
Found a 9 line (144 tokens) duplication in the following files: 
Starting at line 1923 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2020 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptActionButtonBlankVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 }, { 1 MSO_I, 0 MSO_I }, { 0 MSO_I, 0 MSO_I },
	{ 21600, 0 }, { 21600, 21600 }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 0 MSO_I },
	{ 21600, 21600 }, { 0, 21600 },	{ 0 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 0, 21600 }, { 0, 0 }, { 0 MSO_I, 0 MSO_I }, { 0 MSO_I, 2 MSO_I }
};
static const sal_uInt16 mso_sptActionButtonBlankSegm[] =
=====================================================================
Found a 21 line (144 tokens) duplication in the following files: 
Starting at line 884 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 814 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptUpDownArrowVert[] =	// adjustment1: x 0 - 10800
{															// adjustment2: y 0 - 10800
	{ 0, 1 MSO_I },	{ 10800, 0 }, { 21600, 1 MSO_I }, { 2 MSO_I, 1 MSO_I },
	{ 2 MSO_I, 3 MSO_I }, { 21600, 3 MSO_I }, { 10800, 21600 }, { 0, 3 MSO_I },
	{ 0 MSO_I, 3 MSO_I }, { 0 MSO_I, 1 MSO_I }
};
static const sal_uInt16 mso_sptUpDownArrowSegm[] =
{
	0x4000, 0x0009, 0x6001, 0x8000
};
static const sal_Int32 mso_sptUpDownArrowDefault[] =
{
	2, 5400, 4300
};
static const SvxMSDffTextRectangles mso_sptUpDownArrowTextRect[] =
{
	{ { 0 MSO_I, 8 MSO_I }, { 2 MSO_I, 9 MSO_I } }
};
static const mso_CustomShape msoUpDownArrow =
=====================================================================
Found a 26 line (144 tokens) duplication in the following files: 
Starting at line 1225 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/accessibility/AccessibleEditableTextPara.cxx
Starting at line 393 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/accessibility/AccessibleImageBullet.cxx

        DBG_CHKTHIS( AccessibleImageBullet, NULL );

        ::vos::OGuard aGuard( Application::GetSolarMutex() );

        // relate us to parent
        uno::Reference< XAccessible > xParent = getAccessibleParent();
        if( xParent.is() )
        {
            uno::Reference< XAccessibleComponent > xParentComponent( xParent, uno::UNO_QUERY );
            if( xParentComponent.is() )
            {
                awt::Point aRefPoint = xParentComponent->getLocationOnScreen();
                awt::Point aPoint = getLocation();
                aPoint.X += aRefPoint.X;
                aPoint.Y += aRefPoint.Y;

                return aPoint;
            }
        }

        throw uno::RuntimeException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Cannot access parent")),
                                    uno::Reference< uno::XInterface >
                                    ( static_cast< XAccessible* > (this) ) );	// disambiguate hierarchy
    }

    awt::Size SAL_CALL AccessibleImageBullet::getSize(  ) throw (uno::RuntimeException)
=====================================================================
Found a 17 line (144 tokens) duplication in the following files: 
Starting at line 3525 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/viewfrm.cxx
Starting at line 3548 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/viewfrm.cxx

                case SID_STOP_RECORDING :
                {
					const char* pName = GetObjectShell()->GetFactory().GetShortName();
					if (  strcmp(pName,"swriter") && strcmp(pName,"scalc") )
					{
                        rSet.DisableItem( nWhich );
						break;
					}

                    ::rtl::OUString sProperty = rtl::OUString::createFromAscii("DispatchRecorderSupplier");
                    com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xSet(
                            GetFrame()->GetFrameInterface(),
                            com::sun::star::uno::UNO_QUERY);

                    com::sun::star::uno::Any aProp = xSet->getPropertyValue(sProperty);
                    com::sun::star::uno::Reference< com::sun::star::frame::XDispatchRecorderSupplier > xSupplier;
                    if ( !(aProp >>= xSupplier) || !xSupplier.is() )
=====================================================================
Found a 21 line (144 tokens) duplication in the following files: 
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/pptexanimations.cxx
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/ppt/pptinanimations.cxx

	const sal_Char* pDest[] = { "x", "y", "width", "height", NULL };
	sal_Int32 nIndex = 0;

	const sal_Char** ps = pSource;
	const sal_Char** pd = pDest;

	while( *ps )
	{
		const OUString aSearch( OUString::createFromAscii( *ps ) );
		while( (nIndex = rString.indexOf( aSearch, nIndex )) != -1  )
		{
			sal_Int32 nLength = aSearch.getLength();
			if( nIndex && (rString.getStr()[nIndex-1] == '#' ) )
			{
				nIndex--;
				nLength++;
			}

			const OUString aNew( OUString::createFromAscii( *pd ) );
			rString = rString.replaceAt( nIndex, nLength, aNew );
			nIndex += aNew.getLength();
=====================================================================
Found a 4 line (144 tokens) duplication in the following files: 
Starting at line 4994 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 5261 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx

        aPixelRects.push_back(Rectangle( aRect.Left(), aRect.Top(), aRect.Left()+2, aRect.Bottom() ));
        aPixelRects.push_back(Rectangle( aRect.Right()-2, aRect.Top(), aRect.Right(), aRect.Bottom() ));
        aPixelRects.push_back(Rectangle( aRect.Left()+3, aRect.Top(), aRect.Right()-3, aRect.Top()+2 ));
        aPixelRects.push_back(Rectangle( aRect.Left()+3, aRect.Bottom()-2, aRect.Right()-3, aRect.Bottom() ));
=====================================================================
Found a 24 line (144 tokens) duplication in the following files: 
Starting at line 321 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cursuno.cxx
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cursuno.cxx

void SAL_CALL ScCellCursorObj::gotoEnd() throw(uno::RuntimeException)
{
	//	this is similar to collapseToCurrentRegion
	//!	something like gotoEdge with 4 possible directions is needed

	ScUnoGuard aGuard;
	const ScRangeList& rRanges = GetRangeList();
	DBG_ASSERT( rRanges.Count() == 1, "Range? Ranges?" );
	ScRange aOneRange(*rRanges.GetObject(0));

	aOneRange.Justify();
	ScDocShell* pDocSh = GetDocShell();
	if ( pDocSh )
	{
		SCCOL nStartCol = aOneRange.aStart.Col();
		SCROW nStartRow = aOneRange.aStart.Row();
		SCCOL nEndCol = aOneRange.aEnd.Col();
		SCROW nEndRow = aOneRange.aEnd.Row();
		SCTAB nTab = aOneRange.aStart.Tab();

		pDocSh->GetDocument()->GetDataArea(
						nTab, nStartCol, nStartRow, nEndCol, nEndRow, FALSE );

		ScRange aNew( nEndCol, nEndRow, nTab );
=====================================================================
Found a 27 line (144 tokens) duplication in the following files: 
Starting at line 640 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlcvali.cxx
Starting at line 714 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlcvali.cxx

SvXMLImportContext *ScXMLErrorMessageContext::CreateChildContext( USHORT nPrefix,
											const ::rtl::OUString& rLName,
											const ::com::sun::star::uno::Reference<
									  	::com::sun::star::xml::sax::XAttributeList>& xAttrList )
{
	SvXMLImportContext *pContext = 0;

	const SvXMLTokenMap& rTokenMap = GetScImport().GetContentValidationMessageElemTokenMap();
	switch( rTokenMap.Get( nPrefix, rLName ) )
	{
		case XML_TOK_P:
		{
			if(nParagraphCount)
				sMessage.append(static_cast<sal_Unicode>('\n'));
			++nParagraphCount;
			pContext = new ScXMLContentContext( GetScImport(), nPrefix, rLName, xAttrList, sMessage);
		}
		break;
	}

	if( !pContext )
		pContext = new SvXMLImportContext( GetImport(), nPrefix, rLName );

	return pContext;
}

void ScXMLErrorMessageContext::EndElement()
=====================================================================
Found a 25 line (144 tokens) duplication in the following files: 
Starting at line 1441 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1796 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
			{
				nActionNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
			else if (IsXMLToken(aLocalName, XML_ACCEPTANCE_STATE))
			{
				if (IsXMLToken(sValue, XML_ACCEPTED))
					nActionState = SC_CAS_ACCEPTED;
				else if (IsXMLToken(sValue, XML_REJECTED))
					nActionState = SC_CAS_REJECTED;
			}
			else if (IsXMLToken(aLocalName, XML_REJECTING_CHANGE_ID))
			{
				nRejectingNumber = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
=====================================================================
Found a 23 line (144 tokens) duplication in the following files: 
Starting at line 2442 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 4604 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

::rtl::OUString SAL_CALL OStorage::getTypeByID(  const ::rtl::OUString& sID  )
		throw ( container::NoSuchElementException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< beans::StringPair > aSeq = getRelationshipByID( sID );
	for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ )
		if ( aSeq[nInd].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Type" ) ) )
			return aSeq[nInd].Second;

	return ::rtl::OUString();
}

//-----------------------------------------------
uno::Sequence< beans::StringPair > SAL_CALL OStorage::getRelationshipByID(  const ::rtl::OUString& sID  )
=====================================================================
Found a 21 line (144 tokens) duplication in the following files: 
Starting at line 574 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx

			   IllegalArgumentException,
			   RuntimeException);

public: // XActiveDataSource
    virtual void SAL_CALL setOutputStream(const Reference < XOutputStream > & aStream)
		throw (RuntimeException);
    virtual Reference < XOutputStream > SAL_CALL getOutputStream(void)
		throw (RuntimeException);

public: // XConnectable
    virtual void SAL_CALL setPredecessor(const Reference < XConnectable > & aPredecessor)
		throw (RuntimeException);
    virtual Reference < XConnectable > SAL_CALL getPredecessor(void) throw (RuntimeException);
    virtual void SAL_CALL setSuccessor(const Reference < XConnectable >& aSuccessor)
		throw (RuntimeException);
    virtual Reference<  XConnectable >  SAL_CALL getSuccessor(void) throw (RuntimeException);

public: // XServiceInfo
    OUString                     SAL_CALL getImplementationName() throw ();
    Sequence< OUString >         SAL_CALL getSupportedServiceNames(void) throw ();
    sal_Bool                        SAL_CALL supportsService(const OUString& ServiceName) throw ();
=====================================================================
Found a 21 line (144 tokens) duplication in the following files: 
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx
Starting at line 557 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx

		throw (IOException, IllegalArgumentException,RuntimeException);

public: // XActiveDataSink
    virtual void SAL_CALL setInputStream(const Reference < XInputStream > & aStream)
		throw (RuntimeException);
    virtual Reference < XInputStream > SAL_CALL getInputStream(void)
		throw (RuntimeException);

public: // XConnectable
    virtual void SAL_CALL setPredecessor(const Reference < XConnectable > & aPredecessor)
		throw (RuntimeException);
    virtual Reference < XConnectable > SAL_CALL getPredecessor(void)
		throw (RuntimeException);
    virtual void SAL_CALL setSuccessor(const Reference < XConnectable > & aSuccessor)
		throw (RuntimeException);
    virtual Reference < XConnectable > SAL_CALL getSuccessor(void) throw (RuntimeException);

public: // XServiceInfo
    OUString                     SAL_CALL getImplementationName() throw ();
    Sequence< OUString >         SAL_CALL getSupportedServiceNames(void) throw ();
    sal_Bool                         SAL_CALL  supportsService(const OUString& ServiceName) throw ();
=====================================================================
Found a 22 line (144 tokens) duplication in the following files: 
Starting at line 2421 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 2476 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx

        for ( int i = 0; i < (int)rInDirVector.size(); i++ )
        {
            OUString aAbsInDirURL;
            OUString aInDirURL;
            OUString aInDir( rInDirVector[i] );

            osl::FileBase::getFileURLFromSystemPath( aInDir, aInDirURL );
            osl::FileBase::getAbsoluteFileURL( aWorkDir, aInDirURL, aAbsInDirURL );
            osl::Directory aDir( aAbsInDirURL );
            if ( aDir.open() == osl::FileBase::E_None )
            {
                osl::DirectoryItem aItem;
                while ( aDir.getNextItem( aItem ) == osl::FileBase::E_None )
                {
                    osl::FileStatus aFileStatus( FileStatusMask_FileName );

                    aItem.getFileStatus( aFileStatus );

                    int j=0;
                    OUString aFileName = aFileStatus.getFileName();

                    while ( ProjectModule_Mapping[j].pProjectFolder != 0 )
=====================================================================
Found a 18 line (144 tokens) duplication in the following files: 
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfileview.cxx
Starting at line 849 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/docvw/srcedtw.cxx

void SwSrcEditWindow::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
{
	if ( rHint.ISA( TextHint ) )
	{
		const TextHint& rTextHint = (const TextHint&)rHint;
		if( rTextHint.GetId() == TEXT_HINT_VIEWSCROLLED )
		{
			pHScrollbar->SetThumbPos( pTextView->GetStartDocPos().X() );
			pVScrollbar->SetThumbPos( pTextView->GetStartDocPos().Y() );
		}
		else if( rTextHint.GetId() == TEXT_HINT_TEXTHEIGHTCHANGED )
		{
			if ( (long)pTextEngine->GetTextHeight() < pOutWin->GetOutputSizePixel().Height() )
				pTextView->Scroll( 0, pTextView->GetStartDocPos().Y() );
			pVScrollbar->SetThumbPos( pTextView->GetStartDocPos().Y() );
			SetScrollBarRanges();
		}
		else if( ( rTextHint.GetId() == TEXT_HINT_PARAINSERTED ) || 
=====================================================================
Found a 23 line (144 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx
Starting at line 2017 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

												const ::rtl::OUString& sEntName )
		throw ( lang::IllegalArgumentException,
				embed::WrongStateException,
				io::IOException,
				uno::Exception,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	// TODO: The object must be at least in Running state;
	if ( !m_bIsLink || m_nObjectState == -1 || !m_pOleComponent )
=====================================================================
Found a 22 line (144 tokens) duplication in the following files: 
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/shared/registrationhelper.cxx
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/inc/componentmodule.cxx

		const Sequence< ::rtl::OUString >* pServices = s_pSupportedServices->getConstArray();
		const sal_Int64* pComponentFunction = s_pCreationFunctionPointers->getConstArray();
		const sal_Int64* pFactoryFunction = s_pFactoryFunctionPointers->getConstArray();

		for (sal_Int32 i=0; i<nLen; ++i, ++pImplName, ++pServices, ++pComponentFunction, ++pFactoryFunction)
		{
			if (pImplName->equals(_rImplementationName))
			{
				const FactoryInstantiation FactoryInstantiationFunction = reinterpret_cast<const FactoryInstantiation>(*pFactoryFunction);
				const ComponentInstantiation ComponentInstantiationFunction = reinterpret_cast<const ComponentInstantiation>(*pComponentFunction);

				xReturn = FactoryInstantiationFunction( _rxServiceManager, *pImplName, ComponentInstantiationFunction, *pServices, NULL);
				if (xReturn.is())
				{
					xReturn->acquire();
					return xReturn.get();
				}
			}
		}

		return NULL;
	}
=====================================================================
Found a 13 line (144 tokens) duplication in the following files: 
Starting at line 1028 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx
Starting at line 1109 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx

					if ( sProp.getLength() )
					{
                        if ( m_aProperties.find(m_aStack.top().second) == m_aProperties.end() )
                            m_aProperties.insert(::std::map< sal_Int16 ,Sequence< ::rtl::OUString> >::value_type(m_aStack.top().second,Sequence< ::rtl::OUString>()));
						sal_Int32 nPos = m_aProperties[m_aStack.top().second].getLength();
						m_aProperties[m_aStack.top().second].realloc(nPos+1);
						m_aProperties[m_aStack.top().second][nPos] = sProp;
					}
					else
						m_aStack.push(TElementStack::value_type(aName,NO_PROP));
				}
				break;
			case BOOKMARK:
=====================================================================
Found a 17 line (144 tokens) duplication in the following files: 
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HCatalog.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YCatalog.cxx

Sequence< Type > SAL_CALL OMySQLCatalog::getTypes(  ) throw(RuntimeException)
{
	Sequence< Type > aTypes = OCatalog::getTypes();
	::std::vector<Type> aOwnTypes;
	aOwnTypes.reserve(aTypes.getLength());	
	const Type* pBegin = aTypes.getConstArray();
	const Type* pEnd = pBegin + aTypes.getLength();
	for(;pBegin != pEnd;++pBegin)
	{
		if ( !(*pBegin == ::getCppuType((const Reference<XGroupsSupplier>*)0)))
		{
			aOwnTypes.push_back(*pBegin);
		}
	}
	const Type* pTypes = aOwnTypes.empty() ? 0 : &aOwnTypes[0];
	return Sequence< Type >(pTypes, aOwnTypes.size());
}
=====================================================================
Found a 33 line (144 tokens) duplication in the following files: 
Starting at line 779 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 1032 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx

void java_sql_Statement_Base::setFastPropertyValue_NoBroadcast(
								sal_Int32 nHandle,
								const Any& rValue
												 )
												 throw (Exception)
{
	switch(nHandle)
	{
		case PROPERTY_ID_QUERYTIMEOUT:
			setQueryTimeOut(comphelper::getINT32(rValue));
			break;
		case PROPERTY_ID_MAXFIELDSIZE:
			setMaxFieldSize(comphelper::getINT32(rValue));
			break;
		case PROPERTY_ID_MAXROWS:
			setMaxRows(comphelper::getINT32(rValue));
			break;
		case PROPERTY_ID_CURSORNAME:
			setCursorName(comphelper::getString(rValue));
			break;
		case PROPERTY_ID_RESULTSETCONCURRENCY:
			setResultSetConcurrency(comphelper::getINT32(rValue));
			break;
		case PROPERTY_ID_RESULTSETTYPE:
			setResultSetType(comphelper::getINT32(rValue));
			break;
		case PROPERTY_ID_FETCHDIRECTION:
			setFetchDirection(comphelper::getINT32(rValue));
			break;
		case PROPERTY_ID_FETCHSIZE:
			setFetchSize(comphelper::getINT32(rValue));
			break;
		case PROPERTY_ID_ESCAPEPROCESSING:
=====================================================================
Found a 39 line (144 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/AreaChartTypeTemplate.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/PieChartTypeTemplate.cxx

        uno::makeAny( sal_False );
}

const uno::Sequence< Property > & lcl_GetPropertySequence()
{
    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

::cppu::IPropertyArrayHelper & lcl_getInfoHelper()
{
    static ::cppu::OPropertyArrayHelper aArrayHelper(
        lcl_GetPropertySequence(),
        /* bSorted = */ sal_True );

    return aArrayHelper;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 23 line (144 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx

void SAL_CALL UpDownBarWrapper::setPropertyValues( const uno::Sequence< ::rtl::OUString >& rNameSeq, const uno::Sequence< uno::Any >& rValueSeq )
                    throw (beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
    bool bUnknownProperty = false;
    sal_Int32 nMinCount = std::min( rValueSeq.getLength(), rNameSeq.getLength() );
    for(sal_Int32 nN=0; nN<nMinCount; nN++)
    {
        ::rtl::OUString aPropertyName( rNameSeq[nN] );
        try
        {
            this->setPropertyValue( aPropertyName, rValueSeq[nN] );
        }
        catch( beans::UnknownPropertyException& ex )
        {
            ASSERT_EXCEPTION( ex );
            bUnknownProperty = true;
        }
    }
    //todo: store unknown properties elsewhere
//    if( bUnknownProperty )
//        throw beans::UnknownPropertyException();
}
uno::Sequence< uno::Any > SAL_CALL UpDownBarWrapper::getPropertyValues( const uno::Sequence< ::rtl::OUString >& rNameSeq )
=====================================================================
Found a 26 line (144 tokens) duplication in the following files: 
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx
Starting at line 658 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

  __asm__ volatile ( "sync;" "isync;" : : : "memory");
}



void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(void * block)
{
    return static_cast< void ** >(block) + 2;
}

sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return (slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize;
}

void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock(void * block) {
    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
=====================================================================
Found a 28 line (144 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/bean/native/win32/com_sun_star_comp_beans_LocalOfficeWindow.c

static void ThrowException(JNIEnv * env, char const * type, char const * msg) {
    jclass c;
    (*env)->ExceptionClear(env);
    c = (*env)->FindClass(env, type);
    if (c == NULL) {
        (*env)->ExceptionClear(env);
        (*env)->FatalError(
            env, "JNI FindClass failed");
    }
    if ((*env)->ThrowNew(env, c, msg) != 0) {
        (*env)->ExceptionClear(env);
        (*env)->FatalError(env, "JNI ThrowNew failed");
    }
}


/*****************************************************************************/
/*
 * Class:     com_sun_star_comp_beans_LocalOfficeWindow
 * Method:    getNativeWindowSystemType
 * Signature: ()I
 */
JNIEXPORT jint JNICALL Java_com_sun_star_comp_beans_LocalOfficeWindow_getNativeWindowSystemType
  (JNIEnv * env, jobject obj_this)
{
    (void) env; // unused
    (void) obj_this; // unused
    return (SYSTEM_WIN32);
=====================================================================
Found a 14 line (143 tokens) duplication in the following files: 
Starting at line 535 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

                fg[2] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;

                if(fg[0] > base_mask) fg[0] = base_mask;
                if(fg[1] > base_mask) fg[1] = base_mask;
                if(fg[2] > base_mask) fg[2] = base_mask;

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)base_mask;
=====================================================================
Found a 25 line (143 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h

                                          image_subpixel_shift);
            do
            {
                int x_hr;
                int y_hr;

                intr.coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                unsigned x1 = m_wrap_mode_x(x_lr);
                unsigned x2 = ++m_wrap_mode_x;
                x1 *= 3;
                x2 *= 3;

                unsigned y1 = m_wrap_mode_y(y_lr);
                unsigned y2 = ++m_wrap_mode_y;
                const value_type* ptr1 = (const value_type*)base_type::source_image().row(y1);
                const value_type* ptr2 = (const value_type*)base_type::source_image().row(y2);

                fg[0] = fg[1] = fg[2] = image_filter_size / 2;
=====================================================================
Found a 21 line (143 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        weight = (image_subpixel_size - x_hr) * y_hr;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }

                        x_lr++;

                        weight = x_hr * y_hr;
=====================================================================
Found a 19 line (143 tokens) duplication in the following files: 
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        weight = x_hr * (image_subpixel_size - y_hr);
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }

                        x_lr--;
=====================================================================
Found a 22 line (143 tokens) duplication in the following files: 
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 809 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                        if(src_alpha < 0) src_alpha = 0;

                        if(src_alpha > base_mask) src_alpha = base_mask;
                        if(fg[0] > src_alpha) fg[0] = src_alpha;
                        if(fg[1] > src_alpha) fg[1] = src_alpha;
                        if(fg[2] > src_alpha) fg[2] = src_alpha;
                    }
                }

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)src_alpha;

                ++span;
                ++base_type::interpolator();

            } while(--len);

            return base_type::allocator().span();
        }
    };
=====================================================================
Found a 27 line (143 tokens) duplication in the following files: 
Starting at line 624 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_gray.h
Starting at line 751 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                        fg[order_type::B] = back_b;
                        src_alpha         = back_a;
                    }
                    else
                    {
                        src_alpha = image_filter_size / 2;
                        y_lr = (y >> image_subpixel_shift) + start;
                        y_hr = image_subpixel_mask - (y_hr & image_subpixel_mask);

                        do
                        {
                            x_count = diameter;
                            weight_y = weight_array[y_hr];
                            x_lr = (x >> image_subpixel_shift) + start;
                            x_hr = image_subpixel_mask - x_fract;

                            do
                            {
                                int weight = (weight_y * weight_array[x_hr] + 
                                             image_filter_size / 2) >> 
                                             image_filter_shift;

                                if(x_lr >= 0 && y_lr >= 0 && 
                                   x_lr < int(base_type::source_image().width()) && 
                                   y_lr < int(base_type::source_image().height()))
                                {
                                    fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr * 3;
=====================================================================
Found a 29 line (143 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_aa.h
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_scanline_storage_bin.h

            m_scanlines.remove_all();
            m_spans.remove_all();
            m_min_x =  0x7FFFFFFF;
            m_min_y =  0x7FFFFFFF;
            m_max_x = -0x7FFFFFFF;
            m_max_y = -0x7FFFFFFF;
            m_cur_scanline = 0;
        }

        //---------------------------------------------------------------
        template<class Scanline> void render(const Scanline& sl)
        {
            scanline_data sl_this;

            int y = sl.y();
            if(y < m_min_y) m_min_y = y;
            if(y > m_max_y) m_max_y = y;

            sl_this.y = y;
            sl_this.num_spans = sl.num_spans();
            sl_this.start_span = m_spans.size();
            typename Scanline::const_iterator span_iterator = sl.begin();

            unsigned num_spans = sl_this.num_spans;
            do
            {
                span_data sp;
                sp.x   = span_iterator->x;
                sp.len = (int16)abs((int)(span_iterator->len));
=====================================================================
Found a 30 line (143 tokens) duplication in the following files: 
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_scanline.h
Starting at line 264 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_scanline.h

        renderer_scanline_bin(base_ren_type& ren, SpanGenerator& span_gen) :
            m_ren(&ren),
            m_span_gen(&span_gen)
        {
        }
        
        //--------------------------------------------------------------------
        void prepare(unsigned max_span_len) 
        { 
            m_span_gen->prepare(max_span_len); 
        }

        //--------------------------------------------------------------------
        template<class Scanline> void render(const Scanline& sl)
        {
            int y = sl.y();
            m_ren->first_clip_box();
            do
            {
                int xmin = m_ren->xmin();
                int xmax = m_ren->xmax();

                if(y >= m_ren->ymin() && y <= m_ren->ymax())
                {
                    unsigned num_spans = sl.num_spans();
                    typename Scanline::const_iterator span = sl.begin();
                    do
                    {
                        int x = span->x;
                        int len = span->len;
=====================================================================
Found a 27 line (143 tokens) duplication in the following files: 
Starting at line 1258 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
Starting at line 976 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/javacompskeleton.cxx

                                supportxcomponent);       
        
        if ( !standardout && pofs && ((std::ofstream*)pofs)->is_open()) {
            ((std::ofstream*)pofs)->close();
            delete pofs;
            OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, sal_False));
        }
    } catch(CannotDumpException& e) {

        std::cerr << "ERROR: " << e.m_message.getStr() << "\n"; 
        if ( !standardout ) {
            if (pofs && ((std::ofstream*)pofs)->is_open()) {
                ((std::ofstream*)pofs)->close();       
                delete pofs;
            }
            // remove existing type file if something goes wrong to ensure
            // consistency
            if (fileExists(compFileName))
                removeTypeFile(compFileName);
            
            // remove tmp file if something goes wrong
            removeTypeFile(tmpFileName);
        }
    }    
}

} }
=====================================================================
Found a 20 line (143 tokens) duplication in the following files: 
Starting at line 1664 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshap.cxx
Starting at line 2638 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshap.cxx

		SetLayer();

		if(bIsPresShape)
		{
			uno::Reference< beans::XPropertySet > xProps(mxShape, uno::UNO_QUERY);
			if(xProps.is())
			{
				uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
				if( xPropsInfo.is() )
				{
					if( !mbIsPlaceholder && xPropsInfo->hasPropertyByName(OUString(RTL_CONSTASCII_USTRINGPARAM("IsEmptyPresentationObject") )))
						xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("IsEmptyPresentationObject") ), ::cppu::bool2any( sal_False ) );

					if( mbIsUserTransformed && xPropsInfo->hasPropertyByName(OUString(RTL_CONSTASCII_USTRINGPARAM("IsPlaceholderDependent") )))
						xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("IsPlaceholderDependent") ), ::cppu::bool2any( sal_False ) );
				}
			}
		}

		if( !mbIsPlaceholder && maHref.getLength() )
=====================================================================
Found a 15 line (143 tokens) duplication in the following files: 
Starting at line 1129 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

								nTemp = pLutFrac[ nY ];

								lXR1 = aCol1.GetRed() - ( lXR0 = aCol0.GetRed() );
								lXG1 = aCol1.GetGreen() - ( lXG0 = aCol0.GetGreen() );
								lXB1 = aCol1.GetBlue() - ( lXB0 = aCol0.GetBlue() );

								aCol0.SetRed( (BYTE) ( ( lXR1 * nTemp + ( lXR0 << 10 ) ) >> 10 ) );
								aCol0.SetGreen( (BYTE) ( ( lXG1 * nTemp + ( lXG0 << 10 ) ) >> 10 ) );
								aCol0.SetBlue( (BYTE) ( ( lXB1 * nTemp + ( lXB0 << 10 ) ) >> 10 ) );

								pWriteAcc->SetPixel( nY, nX, aCol0 );
							}
						}
					}
				}
=====================================================================
Found a 19 line (143 tokens) duplication in the following files: 
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salgdi.h
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/pspgraphics.h

                                              sal_Int32* pGlyphIDs,
                                              sal_uInt8* pEncoding,
                                              sal_Int32* pWidths,
                                              int nGlyphs,
                                              FontSubsetInfo& rInfo
                                              );
    virtual const std::map< sal_Unicode, sal_Int32 >* GetFontEncodingVector( ImplFontData* pFont, const std::map< sal_Unicode, rtl::OString >** ppNonEncoded );
    virtual const void*	GetEmbedFontData( ImplFontData* pFont,
                                          const sal_Unicode* pUnicodes,
                                          sal_Int32* pWidths,
                                          FontSubsetInfo& rInfo,
                                          long* pDataLen );
    virtual void			FreeEmbedFontData( const void* pData, long nDataLen );
    virtual void            GetGlyphWidths( ImplFontData* pFont,
                                            bool bVertical,
                                            std::vector< sal_Int32 >& rWidths,
                                            std::map< sal_Unicode, sal_uInt32 >& rUnicodeEnc );
    virtual BOOL			GetGlyphBoundRect( long nIndex, Rectangle& );
    virtual BOOL			GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
=====================================================================
Found a 50 line (143 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgresultset.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavresultset.cxx

using namespace webdav_ucp;

//=========================================================================
//=========================================================================
//
// DynamicResultSet Implementation.
//
//=========================================================================
//=========================================================================

DynamicResultSet::DynamicResultSet(
                const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
                const rtl::Reference< Content >& rxContent,
                const ucb::OpenCommandArgument2& rCommand,
                const uno::Reference< ucb::XCommandEnvironment >& rxEnv )
: ResultSetImplHelper( rxSMgr, rCommand ),
  m_xContent( rxContent ),
  m_xEnv( rxEnv )
{
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
	m_xResultSet2 = m_xResultSet1;
}
=====================================================================
Found a 45 line (143 tokens) duplication in the following files: 
Starting at line 782 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 996 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

					xRow->appendVoid( rProp );
			}
			else
			{
				// Not a Core Property! Maybe it's an Additional Core Property?!

				if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
				{
					xAdditionalPropSet
                        = uno::Reference< beans::XPropertySet >(
							rProvider->getAdditionalPropertySet( rContentId,
																 sal_False ),
                            uno::UNO_QUERY );
					bTriedToGetAdditonalPropSet = sal_True;
				}

				if ( xAdditionalPropSet.is() )
				{
					if ( !xRow->appendPropertySetValue(
												xAdditionalPropSet,
												rProp ) )
					{
						// Append empty entry.
						xRow->appendVoid( rProp );
					}
				}
				else
				{
					// Append empty entry.
					xRow->appendVoid( rProp );
				}
			}
		}
	}
	else
	{
		// Append all Core Properties.
		xRow->appendString (
            beans::Property(
                rtl::OUString::createFromAscii( "ContentType" ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY ),
			rData.aContentType );
=====================================================================
Found a 16 line (143 tokens) duplication in the following files: 
Starting at line 322 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/gsiconv.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/txtconv.cxx

		ByteString sCharset( argv[ 2 ] );
		sCharset.ToUpperAscii();

		if 		( sCharset == "MS_932" ) 	nEncoding = RTL_TEXTENCODING_MS_932;
		else if ( sCharset == "MS_936" ) 	nEncoding = RTL_TEXTENCODING_MS_936;
		else if ( sCharset == "MS_949" ) 	nEncoding = RTL_TEXTENCODING_MS_949;
		else if ( sCharset == "MS_950" ) 	nEncoding = RTL_TEXTENCODING_MS_950;
		else if ( sCharset == "MS_1250" ) 	nEncoding = RTL_TEXTENCODING_MS_1250;
		else if ( sCharset == "MS_1251" ) 	nEncoding = RTL_TEXTENCODING_MS_1251;
		else if ( sCharset == "MS_1252" ) 	nEncoding = RTL_TEXTENCODING_MS_1252;
		else if ( sCharset == "MS_1253" ) 	nEncoding = RTL_TEXTENCODING_MS_1253;
		else if ( sCharset == "MS_1254" ) 	nEncoding = RTL_TEXTENCODING_MS_1254;
		else if ( sCharset == "MS_1255" ) 	nEncoding = RTL_TEXTENCODING_MS_1255;
		else if ( sCharset == "MS_1256" ) 	nEncoding = RTL_TEXTENCODING_MS_1256;
		else if ( sCharset == "MS_1257" ) 	nEncoding = RTL_TEXTENCODING_MS_1257;
		else if (( sCharset == "HW2FW" ) && ( ByteString( argv[ 1 ] ) == "-t" )) bHW2FW = TRUE;
=====================================================================
Found a 31 line (143 tokens) duplication in the following files: 
Starting at line 703 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx
Starting at line 2041 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx

	aCtlXRectPreview.Show();
	aCtlBitmapPreview.Hide();

//	aGrpTransparent.Hide();
//	aLbTransparent.Hide();
    aFlStepCount.Hide();
	aTsbStepCount.Hide();
	aNumFldStepCount.Hide();

	aTsbTile.Hide();
	aTsbStretch.Hide();
	aTsbScale.Hide();
	aTsbOriginal.Hide();
	aFtXSize.Hide();
	aMtrFldXSize.Hide();
	aFtYSize.Hide();
	aMtrFldYSize.Hide();
    aFlSize.Hide();
	aRbtRow.Hide();
	aRbtColumn.Hide();
	aMtrFldOffset.Hide();
    aFlOffset.Hide();
	aCtlPosition.Hide();
	aFtXOffset.Hide();
	aMtrFldXOffset.Hide();
	aFtYOffset.Hide();
	aMtrFldYOffset.Hide();
    aFlPosition.Hide();

	// Controls for Hatch-Background
	aCbxHatchBckgrd.Show();
=====================================================================
Found a 20 line (143 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx

					TestEnum eEnum, const ::rtl::OUString& rStr,
					const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
					const ::com::sun::star::uno::Any& rAny )
{
	rData.Bool = bBool;
	rData.Char = cChar;
	rData.Byte = nByte;
	rData.Short = nShort;
	rData.UShort = nUShort;
	rData.Long = nLong;
	rData.ULong = nULong;
	rData.Hyper = nHyper;
	rData.UHyper = nUHyper;
	rData.Float = fFloat;
	rData.Double = fDouble;
	rData.Enum = eEnum;
	rData.String = rStr;
	rData.Interface = xTest;
	rData.Any = rAny;
}
=====================================================================
Found a 28 line (143 tokens) duplication in the following files: 
Starting at line 2173 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/workwin.cxx
Starting at line 2444 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/workwin.cxx

	SfxChildWin_Impl *pCW=NULL;
	SfxWorkWindow *pWork = pParent;

	// Den obersten parent nehmen; ChildWindows werden immer am WorkWindow
	// der Task bzw. des Frames oder am AppWorkWindow angemeldet
	while ( pWork && pWork->pParent )
		pWork = pWork->pParent;

	if ( pWork )
	{
		// Dem Parent schon bekannt ?
		USHORT nCount = pWork->pChildWins->Count();
		for (USHORT n=0; n<nCount; n++)
			if ((*pWork->pChildWins)[n]->nSaveId == nId)
			{
				pCW = (*pWork->pChildWins)[n];
				break;
			}
	}

	if ( !pCW )
	{
		// Kein Parent oder dem Parent noch unbekannt, dann bei mir suchen
		USHORT nCount = pChildWins->Count();
		for (USHORT n=0; n<nCount; n++)
			if ((*pChildWins)[n]->nSaveId == nId)
			{
				pCW = (*pChildWins)[n];
=====================================================================
Found a 36 line (143 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linksrc.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linksrc.cxx

	aArr.Remove( 0, aArr.Count() );
}

SvLinkSource_Entry_Impl* SvLinkSource_EntryIter_Impl::Next()
{
	SvLinkSource_Entry_ImplPtr pRet = 0;
	if( nPos + 1 < aArr.Count() )
	{
		++nPos;
		if( rOrigArr.Count() == aArr.Count() &&
			rOrigArr[ nPos ] == aArr[ nPos ] )
			pRet = aArr[ nPos ];
		else
		{
			// then we must search the current (or the next) in the orig
			do {
				pRet = aArr[ nPos ];
				if( USHRT_MAX != rOrigArr.GetPos( pRet ))
					break;
				pRet = 0;
				++nPos;
			} while( nPos < aArr.Count() );

			if( nPos >= aArr.Count() )
				pRet = 0;
		}
	}
	return pRet;
}

struct SvLinkSource_Impl
{
	SvLinkSource_Array_Impl aArr;
	String				aDataMimeType;
	SvLinkSourceTimer *	pTimer;
	ULONG				nTimeout;
=====================================================================
Found a 21 line (143 tokens) duplication in the following files: 
Starting at line 1309 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/drawdoc4.cxx
Starting at line 1172 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/stlpool.cxx

			aNumberFormat.SetBulletFont(&rBulletFont);
			aNumberFormat.SetBulletChar( 0x25CF ); // StarBats: 0xF000 + 34
			aNumberFormat.SetBulletRelSize(45);
			aNumberFormat.SetBulletColor(Color(COL_AUTO));
			aNumberFormat.SetStart(1);
			aNumberFormat.SetNumAdjust(SVX_ADJUST_LEFT);

			SvxNumRule aNumRule( NUM_BULLET_REL_SIZE|NUM_BULLET_COLOR|NUM_CHAR_TEXT_DISTANCE, 10 , FALSE);
			aNumberFormat.SetLSpace( 0 );
			aNumberFormat.SetAbsLSpace( 0 );
			aNumberFormat.SetFirstLineOffset( 0 );
			aNumRule.SetLevel( 0, aNumberFormat );

			for( USHORT i = 1; i < 10; i++ )
			{
				const short nLSpace = (i + 1) * 600;
				aNumberFormat.SetLSpace(nLSpace);
				aNumberFormat.SetAbsLSpace(nLSpace);
				aNumberFormat.SetFirstLineOffset(-600);
				aNumRule.SetLevel( i, aNumberFormat );
			}
=====================================================================
Found a 32 line (143 tokens) duplication in the following files: 
Starting at line 2388 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 2807 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

void ScInterpreter::ScRKP()
{
	BYTE nParamCount = GetByte();
	if ( !MustHaveParamCount( nParamCount, 1, 4 ) )
		return;
	BOOL bConstant, bStats;
	if (nParamCount == 4)
		bStats = GetBool();
	else
		bStats = FALSE;
	if (nParamCount >= 3)
		bConstant = GetBool();
	else
		bConstant = TRUE;
	ScMatrixRef pMatX;
	ScMatrixRef pMatY;
	if (nParamCount >= 2)
		pMatX = GetMatrix();
	else
		pMatX = NULL;
	pMatY = GetMatrix();
	if (!pMatY)
	{
		SetIllegalParameter();
		return;
	}
	BYTE nCase;							// 1 = normal, 2,3 = mehrfach
	SCSIZE nCX, nCY;
	SCSIZE nRX, nRY;
    SCSIZE M = 0, N = 0;
	pMatY->GetDimensions(nCY, nRY);
	SCSIZE nCountY = nCY * nRY;
=====================================================================
Found a 25 line (143 tokens) duplication in the following files: 
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx
Starting at line 1164 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx

                            BOOL bValid = TRUE;
                            long nVisibleCount = 0;
                            long nCallerPos = SC_CALLERPOS_NONE;

                            uno::Sequence<reflection::ParamInfo> aParams =
                                    xFunc->getParameterInfos();
                            long nParamCount = aParams.getLength();
                            const reflection::ParamInfo* pParArr = aParams.getConstArray();
                            long nParamPos;
                            for (nParamPos=0; nParamPos<nParamCount; nParamPos++)
                            {
                                if ( pParArr[nParamPos].aMode != reflection::ParamMode_IN )
                                    bValid = FALSE;
                                uno::Reference<reflection::XIdlClass> xParClass =
                                            pParArr[nParamPos].aType;
                                ScAddInArgumentType eArgType = lcl_GetArgType( xParClass );
                                if ( eArgType == SC_ADDINARG_NONE )
                                    bValid = FALSE;
                                else if ( eArgType == SC_ADDINARG_CALLER )
                                    nCallerPos = nParamPos;
                                else
                                    ++nVisibleCount;
                            }
                            if (bValid)
                            {
=====================================================================
Found a 9 line (143 tokens) duplication in the following files: 
Starting at line 1690 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1780 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                  "\x2D\x6F\x2D\x73\x2D\x74\x2D\x78\x2D\x79\x1B(B"),
              { 0x2460,0x2461,0x2462,0x2463,0x2464,0x2465,0x2466,0x2467,0x2468,
                0x2469,0x246A,0x246B,0x246C,0x246D,0x246E,0x246F,0x2470,0x2471,
                0x2472,0x2473,0x2160,0x2161,0x2162,0x2163,0x2164,0x2165,0x2166,
                0x2167,0x2168,0x2169,0x3349,0x3314,0x3322,0x334D,0x3318,0x3327,
                0x3303,0x3336,0x3351,0x3357,0x330D,0x3326,0x3323,0x332B,0x334A,
                0x333B,0x339C,0x339D,0x339E,0x338E,0x338F,0x33C4,0x33A1,0x337B,
                0x301D,0x301F,0x2116,0x33CD,0x2121,0x32A4,0x32A5,0x32A6,0x32A7,
                0x32A8,0x3231,0x3232,0x3239,0x337E,0x337D,0x337C,0x222E,0x2211,
=====================================================================
Found a 11 line (143 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 1682 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

const
  sal_Char aBase64EncodeTable[] =
    { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
      'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
      'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
      'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };

const
  sal_uInt8 aBase64DecodeTable[]  =
    {											 62,255,255,255, 63, // 43-47
=====================================================================
Found a 19 line (143 tokens) duplication in the following files: 
Starting at line 741 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2297 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xe0, 0xe0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd3 },
=====================================================================
Found a 7 line (143 tokens) duplication in the following files: 
Starting at line 1398 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1402 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,10,10,10,10, 0,10,10,10,10, 0, 0,10,10,10,10,// 2700 - 270f
=====================================================================
Found a 5 line (143 tokens) duplication in the following files: 
Starting at line 1230 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2330 - 233f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2340 - 234f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2350 - 235f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2360 - 236f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,10,10,// 2370 - 237f
=====================================================================
Found a 5 line (143 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 446 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
=====================================================================
Found a 6 line (143 tokens) duplication in the following files: 
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,20,21, 0, 0, 0,// 1690 - 169f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16a0 - 16af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16b0 - 16bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16c0 - 16cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 16d0 - 16df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,23,23,23,10,10,// 16e0 - 16ef
=====================================================================
Found a 5 line (143 tokens) duplication in the following files: 
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18b0 - 18bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18c0 - 18cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18d0 - 18df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18e0 - 18ef
=====================================================================
Found a 5 line (143 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 446 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1740 - 174f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1750 - 175f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1760 - 176f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
=====================================================================
Found a 5 line (143 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 8, 8, 6, 6, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
=====================================================================
Found a 22 line (143 tokens) duplication in the following files: 
Starting at line 631 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/cfgview.cxx
Starting at line 870 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/cfgview.cxx

            sAllFiltersHTML.append      ( OUString::valueOf( nFilters )                                                                                             );  // write nr
            sAllFiltersHTML.appendAscii ( "</td>\n"                                                                                                                 );  // close column "nr"
            sAllFiltersHTML.appendAscii ( "\t\t\t\t<td>"                                                                                                            );  // open column "name"
            sAllFiltersHTML.appendAscii ( "<a href=\""                                                                                                              );  // open href="filterproperties.html#<filtername>"
            sAllFiltersHTML.appendAscii ( FILTERPROPERTIES_HTML                                                                                                     );
            sAllFiltersHTML.appendAscii ( "#"                                                                                                                       );
            sAllFiltersHTML.append      ( aFilter.sName                                                                                                             );
            sAllFiltersHTML.appendAscii ( "\" target=\""                                                                                                            );
            sAllFiltersHTML.appendAscii ( TARGET_PROPERTIES                                                                                                         );
            sAllFiltersHTML.appendAscii ( "\">"                                                                                                                     );
            sAllFiltersHTML.append      ( aFilter.sName                                                                                                             );  // write name
            sAllFiltersHTML.appendAscii ( "</a>"                                                                                                                    );  // close href
            sAllFiltersHTML.appendAscii ( "</td>\n"                                                                                                                 );  // close column "name"
            sAllFiltersHTML.appendAscii ( "\t\t\t</tr>\n"                                                                                                           );  // close row

            // write entry in filter property table
            sFilterPropHTML.appendAscii ( "\t\t<a name=\""                                                                                                          );  // set target="#<typename>" to follow table
            sFilterPropHTML.append      ( aFilter.sName                                                                                                             );
            sFilterPropHTML.appendAscii ( "\"></a>"                                                                                                                 );
            sFilterPropHTML.appendAscii ( "\t\t<table border=0>\n"                                                                                                  );  // open table
            sFilterPropHTML.appendAscii ( "\t\t\t<tr><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">Nr.</td><td bgcolor=#f5f9d5 valign=\"top\" align=\"top\">&nbsp;");    // generate row "Nr <value>"
            sFilterPropHTML.append      ( OUString::valueOf( nFilters )                                                                                             );
=====================================================================
Found a 25 line (143 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/itemcontainer.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/rootitemcontainer.cxx

    if ( rSourceContainer.is() )
    {
        sal_Int32 nCount = rSourceContainer->getCount();
        try
        {
            for ( sal_Int32 i = 0; i < nCount; i++ )
            {
                Sequence< PropertyValue > aPropSeq;
                Any a = rSourceContainer->getByIndex( i );
                if ( a >>= aPropSeq )
                {
                    sal_Int32 nContainerIndex = -1;
                    Reference< XIndexAccess > xIndexAccess;
                    for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
                    {
                        if ( aPropSeq[j].Name.equalsAscii( "ItemDescriptorContainer" ))
                        {
                            aPropSeq[j].Value >>= xIndexAccess;
                            nContainerIndex = j;
                            break;
                        }
                    }

                    if ( xIndexAccess.is() && nContainerIndex >= 0 )
                        aPropSeq[nContainerIndex].Value <<= deepCopyContainer( xIndexAccess );
=====================================================================
Found a 20 line (143 tokens) duplication in the following files: 
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ComboBox.cxx
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Edit.cxx

using namespace dbtools;

//.........................................................................
namespace frm
{
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::form::binding;

//------------------------------------------------------------------
InterfaceRef SAL_CALL OEditControl_CreateInstance(const Reference< XMultiServiceFactory > & _rxFactory)
=====================================================================
Found a 43 line (143 tokens) duplication in the following files: 
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfileview.cxx
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/docvw/srcedtw.cxx

			Invalidate();
	}

}

/*--------------------------------------------------------------------
	Beschreibung:
 --------------------------------------------------------------------*/

void TextViewOutWin::DataChanged( const DataChangedEvent& rDCEvt )
{
	Window::DataChanged( rDCEvt );

	switch( rDCEvt.GetType() )
	{
	case DATACHANGED_SETTINGS:
		// den Settings abgefragt werden.
		if( rDCEvt.GetFlags() & SETTINGS_STYLE )
		{
			const Color &rCol = GetSettings().GetStyleSettings().GetWindowColor();
			SetBackground( rCol );
			Font aFont( pTextView->GetTextEngine()->GetFont() );
			aFont.SetFillColor( rCol );
			pTextView->GetTextEngine()->SetFont( aFont );
		}
		break;
	}
}

void  TextViewOutWin::MouseMove( const MouseEvent &rEvt )
{
	if ( pTextView )
		pTextView->MouseMove( rEvt );
}

/*--------------------------------------------------------------------
	Beschreibung:
 --------------------------------------------------------------------*/


void  TextViewOutWin::MouseButtonUp( const MouseEvent &rEvt )
{
	if ( pTextView )
=====================================================================
Found a 11 line (143 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1682 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

const
  sal_Char aBase64EncodeTable[] =
    { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
      'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
      'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
      'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };

const
  sal_uInt8 aBase64DecodeTable[]  =
    {											 62,255,255,255, 63, // 43-47
=====================================================================
Found a 20 line (143 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx

					TestEnum eEnum, const ::rtl::OUString& rStr,
					const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
					const ::com::sun::star::uno::Any& rAny )
{
	rData.Bool = bBool;
	rData.Char = cChar;
	rData.Byte = nByte;
	rData.Short = nShort;
	rData.UShort = nUShort;
	rData.Long = nLong;
	rData.ULong = nULong;
	rData.Hyper = nHyper;
	rData.UHyper = nUHyper;
	rData.Float = fFloat;
	rData.Double = fDouble;
	rData.Enum = eEnum;
	rData.String = rStr;
	rData.Interface = xTest;
	rData.Any = rAny;
}
=====================================================================
Found a 22 line (143 tokens) duplication in the following files: 
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/kab/KCatalog.cxx
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MCatalog.cxx

void OCatalog::refreshTables()
{
	TStringVector aVector;
	Sequence< ::rtl::OUString > aTypes(1);
	aTypes[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%"));
	Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
		::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%")),::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%")),aTypes);

	if(xResult.is())
	{
		Reference< XRow > xRow(xResult,UNO_QUERY);
		::rtl::OUString aName;
		while(xResult->next())
		{
			aName = xRow->getString(3);
			aVector.push_back(aName);
		}
	}
	if(m_pTables)
		m_pTables->reFill(aVector);
	else
		m_pTables = new OTables(m_xMetaData,*this,m_aMutex,aVector);
=====================================================================
Found a 23 line (143 tokens) duplication in the following files: 
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Blob.cxx
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Clob.cxx

sal_Int64 SAL_CALL java_sql_Clob::length(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
	jlong out(0);
    SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
	if( t.pEnv )
	{
		// temporaere Variable initialisieren
		static const char * cSignature = "()J";
		static const char * cMethodName = "length";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallLongMethod( object, mID );
			ThrowSQLException(t.pEnv,*this);
			// und aufraeumen
		} //mID
	} //t.pEnv
	return (sal_Int64)out;
}

::rtl::OUString SAL_CALL java_sql_Clob::getSubString( sal_Int64 pos, sal_Int32 subStringLength ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 35 line (143 tokens) duplication in the following files: 
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NServices.cxx
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SServices.cxx

	for (sal_uInt32 i=0; i<Services.getLength(); ++i)
		xNewKey->createKey(Services[i]);
}


//---------------------------------------------------------------------------------------
struct ProviderRequest
{
	Reference< XSingleServiceFactory > xRet;
	Reference< XMultiServiceFactory > const xServiceManager;
	OUString const sImplementationName;

	ProviderRequest(
		void* pServiceManager,
		sal_Char const* pImplementationName
	)
	: xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
	, sImplementationName(OUString::createFromAscii(pImplementationName))
	{
	}

	inline
	sal_Bool CREATE_PROVIDER(
				const OUString& Implname, 
				const Sequence< OUString > & Services, 
				::cppu::ComponentInstantiation Factory,
				createFactoryFunc creator
			)
	{
		if (!xRet.is() && (Implname == sImplementationName))
		try																							
		{																								
			xRet = creator( xServiceManager, sImplementationName,Factory, Services,0);	
		}
		catch(...)
=====================================================================
Found a 35 line (143 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx

Sequence<Any> createSequence(const OUString &sUser, const OUString &sPasswd)
{
	Sequence< Any > aCPArgs;
		
	if (sUser.getLength() > 0)
	{
		aCPArgs.realloc(1);
		aCPArgs[0] <<= configmgr::createPropertyValue(ASCII("user"), sUser);
	}
	if (sPasswd.getLength() > 0)
	{
		aCPArgs.realloc(2);
		aCPArgs[1] <<= configmgr::createPropertyValue(ASCII("password"), sPasswd);
	}
	return aCPArgs;
}

//=============================================================================
#include <string.h>
#if (defined UNX) || (defined OS2)
#else
#include <conio.h>
#endif

OString input(const char* pDefaultText, char cEcho)
{
	// PRE: a Default Text would be shown, cEcho is a Value which will show if a key is pressed.
	const int MAX_INPUT_LEN = 500;
	char aBuffer[MAX_INPUT_LEN];

	strcpy(aBuffer, pDefaultText);
	int nLen = strlen(aBuffer);

#ifdef WNT
	char ch = '\0';
=====================================================================
Found a 23 line (143 tokens) duplication in the following files: 
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx

    const sal_Int32 nPointCount = bClosed ? 5 : 4;

    //--------------------------------------
    drawing::PolyPolygonShape3D aPP;

	aPP.SequenceX.realloc(1);
	aPP.SequenceY.realloc(1);
	aPP.SequenceZ.realloc(1);

	drawing::DoubleSequence* pOuterSequenceX = aPP.SequenceX.getArray();
	drawing::DoubleSequence* pOuterSequenceY = aPP.SequenceY.getArray();
	drawing::DoubleSequence* pOuterSequenceZ = aPP.SequenceZ.getArray();

    pOuterSequenceX->realloc(nPointCount);
    pOuterSequenceY->realloc(nPointCount);
	pOuterSequenceZ->realloc(nPointCount);

    double* pInnerSequenceX = pOuterSequenceX->getArray();
	double* pInnerSequenceY = pOuterSequenceY->getArray();
	double* pInnerSequenceZ = pOuterSequenceZ->getArray();

    for(sal_Int32 nN = nPointCount; nN--;)
	    *pInnerSequenceZ++ = 0.0;
=====================================================================
Found a 31 line (143 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvasbitmap.cxx
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvasbitmap.cxx

                             *rDevice.get() );
    }

    void SAL_CALL CanvasBitmap::disposing()
    {
        mpDevice.clear();

        // forward to base
        CanvasBitmap_Base::disposing();
    }

#define IMPLEMENTATION_NAME "VCLCanvas.CanvasBitmap"
#define SERVICE_NAME "com.sun.star.rendering.CanvasBitmap"

    ::rtl::OUString SAL_CALL CanvasBitmap::getImplementationName(  ) throw (uno::RuntimeException)
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL CanvasBitmap::supportsService( const ::rtl::OUString& ServiceName ) throw (uno::RuntimeException)
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames(  ) throw (uno::RuntimeException)
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
        
        return aRet;
    }
=====================================================================
Found a 30 line (143 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 465 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx

}

//==================================================================================================
void ** bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable( void * block )
{
	return static_cast<void **>( block ) + 2;
}

//==================================================================================================
sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize(
    sal_Int32 slotCount)
{
    return ( slotCount + 2 ) * sizeof( void * ) + slotCount * codeSnippetSize;
}

//==================================================================================================
void ** bridges::cpp_uno::shared::VtableFactory::initializeBlock( void * block )
{
	void ** slots = mapBlockToVtable( block );
	slots[-2] = 0;
	slots[-1] = 0;

	return slots;
}

//==================================================================================================

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
	void ** slots, unsigned char * code,
	typelib_InterfaceTypeDescription const * type, sal_Int32 nFunctionOffset,
=====================================================================
Found a 22 line (142 tokens) duplication in the following files: 
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h
Starting at line 465 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

        span_pattern_filter_rgba(alloc_type& alloc,
                                 const rendering_buffer& src, 
                                 interpolator_type& inter,
                                 const image_filter_lut& filter) :
            base_type(alloc, src, color_type(0,0,0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 22 line (142 tokens) duplication in the following files: 
Starting at line 495 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 518 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                        weight = (weight_array[x_hr] * 
                                  weight_array[y_hr + image_subpixel_size] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0]     += weight * *fg_ptr++;
                            fg[1]     += weight * *fg_ptr++;
                            fg[2]     += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }

                        x_lr--;
=====================================================================
Found a 6 line (142 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

static char asse_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 14 line (142 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salmenu.h
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salmenu.h
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salmenu.h

    virtual ~WinSalMenu();
    virtual BOOL VisibleMenuBar();  // must return TRUE to actually DISPLAY native menu bars
                            // otherwise only menu messages are processed (eg, OLE on Windows)

    virtual void InsertItem( SalMenuItem* pSalMenuItem, unsigned nPos );
    virtual void RemoveItem( unsigned nPos );
    virtual void SetSubMenu( SalMenuItem* pSalMenuItem, SalMenu* pSubMenu, unsigned nPos );
    virtual void SetFrame( const SalFrame* pFrame );
    virtual void CheckItem( unsigned nPos, BOOL bCheck );
    virtual void EnableItem( unsigned nPos, BOOL bEnable );
    virtual void SetItemText( unsigned nPos, SalMenuItem* pSalMenuItem, const XubString& rText );
    virtual void SetItemImage( unsigned nPos, SalMenuItem* pSalMenuItem, const Image& rImage );
    virtual void SetAccelerator( unsigned nPos, SalMenuItem* pSalMenuItem, const KeyCode& rKeyCode, const XubString& rKeyName );
    virtual void GetSystemMenuData( SystemMenuData* pData );
=====================================================================
Found a 40 line (142 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavresultset.cxx
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_resultset.cxx

DynamicResultSet::DynamicResultSet(
    const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
    const rtl::Reference< Content >& rxContent,
    const ucb::OpenCommandArgument2& rCommand,
    const uno::Reference< ucb::XCommandEnvironment >& rxEnv )
: ResultSetImplHelper( rxSMgr, rCommand ),
  m_xContent( rxContent ),
  m_xEnv( rxEnv )
{
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
	m_xResultSet2 = m_xResultSet1;
}
=====================================================================
Found a 29 line (142 tokens) duplication in the following files: 
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< ucb::XContentIdentifier > xId
            = m_pImpl->m_aResults[ nIndex ]->xId;
		if ( xId.is() )
		{
			// Already cached.
			return xId;
		}
	}

    rtl::OUString aId = queryContentIdentifierString( nIndex );
	if ( aId.getLength() )
	{
        uno::Reference< ucb::XContentIdentifier > xId
            = new ::ucbhelper::ContentIdentifier( aId );
		m_pImpl->m_aResults[ nIndex ]->xId = xId;
		return xId;
	}
    return uno::Reference< ucb::XContentIdentifier >();
}

//=========================================================================
// virtual
uno::Reference< ucb::XContent >
=====================================================================
Found a 40 line (142 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgresultset.cxx
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_resultset.cxx

DynamicResultSet::DynamicResultSet(
    const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
    const rtl::Reference< Content >& rxContent,
    const ucb::OpenCommandArgument2& rCommand,
    const uno::Reference< ucb::XCommandEnvironment >& rxEnv )
: ResultSetImplHelper( rxSMgr, rCommand ),
  m_xContent( rxContent ),
  m_xEnv( rxEnv )
{
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
	m_xResultSet2 = m_xResultSet1;
}
=====================================================================
Found a 29 line (142 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx

ResultSetDataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< ucb::XContentIdentifier > xId
								= m_pImpl->m_aResults[ nIndex ]->xId;
		if ( xId.is() )
		{
			// Already cached.
			return xId;
		}
	}

    rtl::OUString aId = queryContentIdentifierString( nIndex );
	if ( aId.getLength() )
	{
        uno::Reference< ucb::XContentIdentifier > xId
            = new ::ucbhelper::ContentIdentifier( aId );
		m_pImpl->m_aResults[ nIndex ]->xId = xId;
		return xId;
	}
    return uno::Reference< ucb::XContentIdentifier >();
}

//=========================================================================
// virtual
uno::Reference< ucb::XContent >
=====================================================================
Found a 22 line (142 tokens) duplication in the following files: 
Starting at line 2588 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 2667 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

					eState = STATE_IP6_HEXSEQ2_COLON;
				}
				else if (*p == '.')
				{
					nNumber = 100 * (nNumber >> 8) + 10 * (nNumber >> 4 & 15)
								  + (nNumber & 15);
					aTheCanonic.append(
						rtl::OUString::valueOf(sal_Int32(nNumber)));
					aTheCanonic.append(sal_Unicode('.'));
					nOctets = 2;
					eState = STATE_IP6_IP4_DOT;
				}
				else if (INetMIME::isDigit(*p) && nDigits < 3)
				{
					nNumber = 16 * nNumber + INetMIME::getWeight(*p);
					++nDigits;
				}
				else if (INetMIME::isHexDigit(*p) && nDigits < 4)
				{
					nNumber = 16 * nNumber + INetMIME::getHexWeight(*p);
					++nDigits;
					eState = STATE_IP6_HEXSEQ2;
=====================================================================
Found a 9 line (142 tokens) duplication in the following files: 
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx
Starting at line 995 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

    static BYTE __READONLY_DATA aURLData1[] = {
        0,0,0,0,        // len of struct
        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
    };
=====================================================================
Found a 28 line (142 tokens) duplication in the following files: 
Starting at line 2122 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlform.cxx
Starting at line 2413 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlform.cxx

	nSelectEntryCnt = 1;
	SvKeyValueIterator *pHeaderAttrs = pFormImpl->GetHeaderAttrs();
	ScriptType eDfltScriptType = GetScriptType( pHeaderAttrs );
	const String& rDfltScriptType = GetScriptTypeString( pHeaderAttrs );

	const HTMLOptions *pOptions = GetOptions();
	for( sal_uInt16 i = pOptions->Count(); i; )
	{
		const HTMLOption *pOption = (*pOptions)[--i];
		ScriptType eScriptType = eDfltScriptType;
		sal_uInt16 nEvent;
		sal_Bool bSetEvent = sal_False;

		switch( pOption->GetToken() )
		{
		case HTML_O_ID:
			aId = pOption->GetString();
			break;
		case HTML_O_STYLE:
			aStyle = pOption->GetString();
			break;
		case HTML_O_CLASS:
			aClass = pOption->GetString();
			break;
		case HTML_O_NAME:
			sName = pOption->GetString();
			break;
		case HTML_O_MULTIPLE:
=====================================================================
Found a 15 line (142 tokens) duplication in the following files: 
Starting at line 2286 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2545 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2695 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2766 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffCalculationData mso_sptActionButtonMovieCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, { DFF_Prop_adjustValue, 0, 0 } },
	{ 0x6000, { DFF_Prop_geoLeft, DFF_Prop_adjustValue, 0 } },
	{ 0x6000, { DFF_Prop_geoTop, DFF_Prop_adjustValue, 0 } },
	{ 0xa000, { DFF_Prop_geoRight, 0, DFF_Prop_adjustValue } },
	{ 0xa000, { DFF_Prop_geoBottom, 0, DFF_Prop_adjustValue } },
	{ 0x8000, { 10800, 0, DFF_Prop_adjustValue } },
	{ 0x2001, { 0x0405, 1, 10800 } },			// scaling	 6
	{ 0x2001, { DFF_Prop_geoRight, 1, 2 } },	// lr center 7
	{ 0x2001, { DFF_Prop_geoBottom, 1, 2 } },	// ul center 8

	{ 0x4001, { -8050, 0x0406, 1 } },	// 9
	{ 0x6000, { 0x0409, 0x0407, 0 } },	// a
	{ 0x4001, { -4020, 0x0406, 1 } },	// b
=====================================================================
Found a 16 line (142 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crenum.cxx
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/criface.cxx

	virtual ~IdlInterfaceMethodImpl();
	
	// XInterface
	virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException);
	virtual void SAL_CALL acquire() throw();
	virtual void SAL_CALL release() throw();
	
	// XTypeProvider
	virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException);
	virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException);
	
	// XIdlMember
    virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException);
    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
	// XIdlMethod
    virtual Reference< XIdlClass > SAL_CALL getReturnType() throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 30 line (142 tokens) duplication in the following files: 
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/embobj.cxx
Starting at line 7392 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx

BOOL SvxMSDffManager::ConvertToOle2( SvStream& rStm, UINT32 nReadLen,
					const GDIMetaFile * pMtf, const SotStorageRef& rDest )
{
	BOOL bMtfRead = FALSE;
	SotStorageStreamRef xOle10Stm = rDest->OpenSotStream( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\1Ole10Native" ) ),
													STREAM_WRITE| STREAM_SHARE_DENYALL );
	if( xOle10Stm->GetError() )
		return FALSE;

	UINT32 nType;
	UINT32 nRecType;
	UINT32 nStrLen;
	String aSvrName;
	UINT32 nDummy0;
	UINT32 nDummy1;
	UINT32 nDataLen;
	BYTE * pData;
	UINT32 nBytesRead = 0;
	do
	{
		rStm >> nType;
		rStm >> nRecType;
		rStm >> nStrLen;
		if( nStrLen )
		{
			if( 0x10000L > nStrLen )
			{
				sal_Char * pBuf = new sal_Char[ nStrLen ];
				rStm.Read( pBuf, nStrLen );
                aSvrName.Assign( String( pBuf, (USHORT) nStrLen-1, gsl_getSystemTextEncoding() ) );
=====================================================================
Found a 22 line (142 tokens) duplication in the following files: 
Starting at line 1038 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/acccfg.cxx
Starting at line 1142 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/acccfg.cxx

        }

        if (xRootStorage.is())
        {
            css::uno::Reference< css::lang::XComponent > xComponent;
            xComponent = css::uno::Reference< css::lang::XComponent >(xCfgMgr, css::uno::UNO_QUERY);
            if (xComponent.is())
                xComponent->dispose();
            xComponent = css::uno::Reference< css::lang::XComponent >(xRootStorage, css::uno::UNO_QUERY);
            if (xComponent.is())
                xComponent->dispose();
        }
    }
    catch(const css::uno::RuntimeException& exRun)
        { throw exRun; }
    catch(const css::uno::Exception&)
        {}

    GetTabDialog()->LeaveWait();

    return 0;
}
=====================================================================
Found a 14 line (142 tokens) duplication in the following files: 
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/pptexanimations.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/ppt/pptinanimations.cxx

using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::UNO_QUERY;
using ::com::sun::star::uno::UNO_QUERY_THROW;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::uno::makeAny;
using ::com::sun::star::uno::Exception;
using ::com::sun::star::uno::XInterface;
using ::com::sun::star::beans::NamedValue;
using ::com::sun::star::container::XEnumerationAccess;
using ::com::sun::star::container::XEnumeration;
using ::com::sun::star::lang::XMultiServiceFactory;

using namespace ::com::sun::star::drawing;
=====================================================================
Found a 39 line (142 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/warnpassword.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/warnpassword.cxx

bool SwWarnPassword::WarningOnPassword( SfxMedium& rMedium )
{
    bool bReturn = true;
    Reference< XInteractionHandler > xHandler( rMedium.GetInteractionHandler());
    if( xHandler.is() )
    {

        OUString empty;
        Any xException( makeAny(InteractiveAppException(empty,
				Reference <XInterface> (),
			InteractionClassification_QUERY,
			     ERRCODE_SVX_EXPORT_FILTER_CRYPT)));

        Reference< ucbhelper::SimpleInteractionRequest > xRequest
                    = new ucbhelper::SimpleInteractionRequest(
                        xException,
			     ucbhelper::CONTINUATION_APPROVE
                           | ucbhelper::CONTINUATION_DISAPPROVE );

        xHandler->handle( xRequest.get() );

        const sal_Int32 nResp = xRequest->getResponse();

        switch ( nResp )
        {
		case ucbhelper::CONTINUATION_UNKNOWN:
                break;

		case ucbhelper::CONTINUATION_APPROVE:
                // Continue
                break;

		case ucbhelper::CONTINUATION_DISAPPROVE:
                bReturn = false;
                break;
        }
    }
    return bReturn;
}
=====================================================================
Found a 17 line (142 tokens) duplication in the following files: 
Starting at line 3353 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/dapiuno.cxx
Starting at line 3390 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/dapiuno.cxx

    uno::Any aRet;
    String aNameString = aPropertyName;

    ScDPObject* pDPObj(pParent->GetDPObject());
    if (pDPObj)
    {
        uno::Reference<container::XNameAccess> xMembers;
        ScDPSaveDimension* pDim = NULL;
        if (lcl_GetMembers(pParent, aSourceIdent, xMembers) && lcl_GetDim(pDPObj, aSourceIdent, pDim))
        {
            uno::Reference<container::XIndexAccess> xMembersIndex(new ScNameToIndexAccess( xMembers ));
            sal_Int32 nCount = xMembersIndex->getCount();
	        if (nIndex < static_cast<SCSIZE>(nCount) )
	        {
                uno::Reference<container::XNamed> xMember(xMembersIndex->getByIndex(static_cast<sal_Int32>(nIndex)), uno::UNO_QUERY);
                String sName(xMember->getName());
                ScDPSaveMember* pMember = pDim->GetExistingMemberByName(sName);
=====================================================================
Found a 25 line (142 tokens) duplication in the following files: 
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform8.cxx
Starting at line 1019 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform8.cxx

				rRangeList.Append( aSRD );
			}
				break;
			case 0x4D:
			case 0x6D:
			case 0x2D: // Area Reference Within a Name			[324    ]
			{	   // Area Reference Within a Shared Formula[    274]
				UINT16					nRowFirst, nRowLast;
				UINT16					nColFirst, nColLast;

				aCRD.Ref1.nRelTab = aCRD.Ref2.nRelTab = 0;
				aCRD.Ref1.SetTabRel( TRUE );
				aCRD.Ref2.SetTabRel( TRUE );
				aCRD.Ref1.SetFlag3D( bRangeName );
				aCRD.Ref2.SetFlag3D( bRangeName );

				aIn >> nRowFirst >> nRowLast >> nColFirst >> nColLast;

                ExcRelToScRel8( nRowFirst, nColFirst, aCRD.Ref1, bRNorSF );
                ExcRelToScRel8( nRowLast, nColLast, aCRD.Ref2, bRNorSF );

				if( IsComplColRange( nColFirst, nColLast ) )
					SetComplCol( aCRD );
				else if( IsComplRowRange( nRowFirst, nRowLast ) )
					SetComplRow( aCRD );
=====================================================================
Found a 25 line (142 tokens) duplication in the following files: 
Starting at line 650 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx
Starting at line 1149 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx

				rRangeList.Append( aSRD );
			}
				break;
			case 0x4D:
			case 0x6D:
			case 0x2D: // Area Reference Within a Name			[324    ]
			{	   // Area Reference Within a Shared Formula[    274]
				UINT16					nRowFirst, nRowLast;
				UINT8					nColFirst, nColLast;

				aCRD.Ref1.nRelTab = aCRD.Ref2.nRelTab = 0;
				aCRD.Ref1.SetTabRel( TRUE );
				aCRD.Ref2.SetTabRel( TRUE );
				aCRD.Ref1.SetFlag3D( bRangeName );
				aCRD.Ref2.SetFlag3D( bRangeName );

				aIn >> nRowFirst >> nRowLast >> nColFirst >> nColLast;

				ExcRelToScRel( nRowFirst, nColFirst, aCRD.Ref1, bRNorSF );
				ExcRelToScRel( nRowLast, nColLast, aCRD.Ref2, bRNorSF );

				if( IsComplColRange( nColFirst, nColLast ) )
					SetComplCol( aCRD );
				else if( IsComplRowRange( nRowFirst, nRowLast ) )
					SetComplRow( aCRD );
=====================================================================
Found a 26 line (142 tokens) duplication in the following files: 
Starting at line 9549 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 11535 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 12546 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_007_Int64_Negative : public CppUnit::TestFixture
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
            OString                expVal( aStrBuf.getStr() );
            sal_Int64              input = -0; 
=====================================================================
Found a 26 line (142 tokens) duplication in the following files: 
Starting at line 3826 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 5816 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 6827 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_006_Int32_Negative : public CppUnit::TestFixture
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
            OString                expVal( aStrBuf.getStr() );
            sal_Int32              input = -0; 
=====================================================================
Found a 35 line (142 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx

    *result = '\0';

    // on entry prefix is 0 length or already matches the beginning of the word.
    // So if the remaining root word has positive length
    // and if there are enough chars in root word and added back strip chars
    // to meet the number of characters conditions, then test it

     tmpl = len - appndl;

     if ((tmpl > 0) &&  (tmpl + stripl >= numconds)) {

	    // generate new root word by removing prefix and adding
	    // back any characters that would have been stripped

	    if (stripl) strcpy (tmpword, strip);
	    strcpy ((tmpword + stripl), (word + appndl));

            // now make sure all of the conditions on characters
            // are met.  Please see the appendix at the end of
            // this file for more info on exactly what is being
            // tested

            // if all conditions are met then check if resulting
            // root word in the dictionary

	    if (test_condition(tmpword)) {
		tmpl += stripl;
		if ((he = pmyMgr->lookup(tmpword)) != NULL) {
                    do {
		      if (TESTAFF(he->astr, aflag, he->alen) &&
                        // forbid single prefixes with pseudoroot flag
                        ! TESTAFF(contclass, pmyMgr->get_pseudoroot(), contclasslen) &&
                        // needflag
                        ((!needflag) || TESTAFF(he->astr, needflag, he->alen) ||
                         (contclass && TESTAFF(contclass, needflag, contclasslen)))) {
=====================================================================
Found a 10 line (142 tokens) duplication in the following files: 
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 30 line (142 tokens) duplication in the following files: 
Starting at line 829 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 865 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx

	if ( Source.Source == m_xFrame )
	{
		ResetableGuard aGuard( m_aLock );

		// disposing called from parent dispatcher
		// remove all listener to prepare shutdown

		// #110897#
		// REFERENCE< XURLTransformer > xTrans( ::comphelper::getProcessServiceFactory()->createInstance(
		//	rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), UNO_QUERY );
		REFERENCE< XURLTransformer > xTrans( getServiceFactory()->createInstance(
			rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), UNO_QUERY );

		std::vector< MenuItemHandler* >::iterator p;
		for ( p = m_aMenuItemHandlerVector.begin(); p != m_aMenuItemHandlerVector.end(); p++ )
		{
			MenuItemHandler* pItemHandler = *p;
			if ( pItemHandler->xMenuItemDispatch.is() )
			{
				URL aTargetURL;
				aTargetURL.Complete	= pItemHandler->aMenuItemURL;
				xTrans->parseStrict( aTargetURL );

				pItemHandler->xMenuItemDispatch->removeStatusListener(
					SAL_STATIC_CAST( XSTATUSLISTENER*, this ), aTargetURL );
			}

			pItemHandler->xMenuItemDispatch = REFERENCE< XDISPATCH >();
			if ( pItemHandler->pSubMenuManager )
				pItemHandler->pSubMenuManager->disposing( Source );
=====================================================================
Found a 7 line (142 tokens) duplication in the following files: 
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olecomponent.cxx
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/ref/globname.cxx

	if ( aSeq.getLength() == 16 )
	{
		aResult.Data1 = ( ( ( ( ( ( sal_uInt8 )aSeq[0] << 8 ) + ( sal_uInt8 )aSeq[1] ) << 8 ) + ( sal_uInt8 )aSeq[2] ) << 8 ) + ( sal_uInt8 )aSeq[3];
		aResult.Data2 = ( ( sal_uInt8 )aSeq[4] << 8 ) + ( sal_uInt8 )aSeq[5];
		aResult.Data3 = ( ( sal_uInt8 )aSeq[6] << 8 ) + ( sal_uInt8 )aSeq[7];
		for( int nInd = 0; nInd < 8; nInd++ )
			aResult.Data4[nInd] = ( sal_uInt8 )aSeq[nInd+8];
=====================================================================
Found a 19 line (142 tokens) duplication in the following files: 
Starting at line 802 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/WCopyTable.cxx
Starting at line 886 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/tabledesign/TableController.cxx

	if(!_rxSup.is())
		return; // the database doesn't support keys

	OSL_ENSURE(_rxSup.is(),"No XKeysSupplier!");
	Reference<XDataDescriptorFactory> xKeyFactory(_rxSup->getKeys(),UNO_QUERY);
	OSL_ENSURE(xKeyFactory.is(),"No XDataDescriptorFactory Interface!");
	if ( !xKeyFactory.is() )
		return;
	Reference<XAppend> xAppend(xKeyFactory,UNO_QUERY);
	OSL_ENSURE(xAppend.is(),"No XAppend Interface!");

	Reference<XPropertySet> xKey = xKeyFactory->createDataDescriptor();
	OSL_ENSURE(xKey.is(),"Key is null!");
	xKey->setPropertyValue(PROPERTY_TYPE,makeAny(KeyType::PRIMARY));

	Reference<XColumnsSupplier> xColSup(xKey,UNO_QUERY);
	if(xColSup.is())
	{
		appendColumns(xColSup,_bNew,sal_True);
=====================================================================
Found a 21 line (142 tokens) duplication in the following files: 
Starting at line 419 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx

void SAL_CALL OSingleSelectQueryComposer::appendGroupByColumn( const Reference< XPropertySet >& column) throw(SQLException, RuntimeException)
{
	::connectivity::checkDisposed(OSubComponent::rBHelper.bDisposed);

	if	( !column.is()
		|| !m_aCurrentColumns[SelectColumns]
		|| !column->getPropertySetInfo()->hasPropertyByName(PROPERTY_NAME)
		)
		{
			String sError(DBACORE_RESSTRING(RID_STR_COLUMN_UNKNOWN_PROP));
			sError.SearchAndReplaceAscii("%value", ::rtl::OUString(PROPERTY_NAME));
			SQLException aErr(sError,*this,SQLSTATE_GENERAL,1000,Any() );
			throw SQLException(DBACORE_RESSTRING(RID_STR_COLUMN_NOT_VALID),*this,SQLSTATE_GENERAL,1000,makeAny(aErr) );
		}

	::osl::MutexGuard aGuard( m_aMutex );

	::rtl::OUString aName,aAppendOrder;
	column->getPropertyValue(PROPERTY_NAME)			>>= aName;

	if ( !m_xMetaData->supportsGroupByUnrelated() && m_aCurrentColumns[SelectColumns] && !m_aCurrentColumns[SelectColumns]->hasByName(aName))
=====================================================================
Found a 20 line (142 tokens) duplication in the following files: 
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx
Starting at line 1342 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx

    drawing::PolyPolygonShape3D aPP;

	aPP.SequenceX.realloc(1);
	aPP.SequenceY.realloc(1);
	aPP.SequenceZ.realloc(1);

	drawing::DoubleSequence* pOuterSequenceX = aPP.SequenceX.getArray();
	drawing::DoubleSequence* pOuterSequenceY = aPP.SequenceY.getArray();
	drawing::DoubleSequence* pOuterSequenceZ = aPP.SequenceZ.getArray();

    pOuterSequenceX->realloc(nPointCount);
    pOuterSequenceY->realloc(nPointCount);
	pOuterSequenceZ->realloc(nPointCount);

    double* pInnerSequenceX = pOuterSequenceX->getArray();
	double* pInnerSequenceY = pOuterSequenceY->getArray();
	double* pInnerSequenceZ = pOuterSequenceZ->getArray();

    for(sal_Int32 nN = nPointCount; nN--;)
        *pInnerSequenceZ++ = 0.0;
=====================================================================
Found a 24 line (142 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/test/java_uno/acquire/testacquire.cxx
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/registry_tdprovider/testregistrytdprovider.cxx

    return css::uno::Sequence< rtl::OUString >();
}

css::uno::Reference< css::uno::XInterface > Service::createInstance(
    css::uno::Reference< css::uno::XComponentContext > const & context)
    throw (css::uno::Exception)
{
    return static_cast< cppu::OWeakObject * >(new Service(context));
}

extern "C" void SAL_CALL component_getImplementationEnvironment(
    char const ** envTypeName, uno_Environment **)
{
    if (envTypeName != 0) {
        *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
    }
}

extern "C" void * SAL_CALL component_getFactory(char const * implName,
                                                void * serviceManager, void *) {
    void * p = 0;
    if (serviceManager != 0) {
        css::uno::Reference< css::lang::XSingleComponentFactory > f;
        if (Service::getImplementationName().equalsAscii(implName)) {
=====================================================================
Found a 32 line (142 tokens) duplication in the following files: 
Starting at line 929 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/uno/scriptcont.cxx
Starting at line 1033 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/uno/scriptcont.cxx

							uno::Reference< io::XStream > xSourceStream = xElementRootStorage->openEncryptedStreamElement(
																	aSourceStreamName,
																	embed::ElementModes::READ,
																	pLib->maPassword );
							if ( !xSourceStream.is() )
								throw uno::RuntimeException();

							if ( !bVerifyPasswordOnly )
                            {
								uno::Reference< io::XInputStream > xInStream = xSourceStream->getInputStream();
								if ( !xInStream.is() )
									throw io::IOException(); // read access denied, seems to be impossible

			                    Any aAny = importLibraryElement( aSourceStreamName, xInStream );
			                    if( pLib->hasByName( aElementName ) )
                                {
                                    if( aAny.hasValue() )
				                        pLib->maNameContainer.replaceByName( aElementName, aAny );
                                }
			                    else
                                {
				                    pLib->maNameContainer.insertByName( aElementName, aAny );
                                }
                            }
                        }
						catch ( uno::Exception& )
						{
							bRet = sal_False;
						}
                    }
                }
			}
=====================================================================
Found a 27 line (142 tokens) duplication in the following files: 
Starting at line 390 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolypolygoncutter.cxx
Starting at line 713 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolypolygoncutter.cxx

										maGeometry.getB2DPolygon(rNextControl.mnPoly).getNextControlPoint(rNextControl.mnPoint));
								}

								// check if last two edges build a dead end and maybe removed
								const sal_uInt32 nNewPointCount(aNew.count());
								
								if(nNewPointCount > 2 && aNew.getB2DPoint(nNewPointCount - 3).equal(aNewPoint))
								{
									if(bControlPointsUsed)
									{
										// check if edges are the same including control points
										if(aNew.getPrevControlPoint(nNewPointCount - 2).equal(aNew.getNextControlPoint(nNewPointCount - 2)))
										{
											if(aNew.getPrevControlPoint(nNewPointCount - 1).equal(aNew.getNextControlPoint(nNewPointCount - 3)))
											{
												// rescue nextControlPoint and remove
												aNew.setNextControlPoint(nNewPointCount - 3, aNew.getNextControlPoint(nNewPointCount - 1));
												aNew.remove(nNewPointCount - 2, 2);
											}
										}
									}
									else
									{
										// edges are the same, remove
										aNew.remove(nNewPointCount - 2, 2);
									}
								}
=====================================================================
Found a 20 line (142 tokens) duplication in the following files: 
Starting at line 996 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside2.cxx
Starting at line 924 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/srcview.cxx

			String aLine( pTextEngine->GetText( nPara ) );
			lcl_ConvertTabsToSpaces( aLine );
			USHORT nLines = aLine.Len()/nCharspLine+1;
			for ( USHORT nLine = 0; nLine < nLines; nLine++ )
			{
				String aTmpLine( aLine, nLine*nCharspLine, nCharspLine );
				aPos.Y() += nLineHeight;
				if ( aPos.Y() > ( aPaperSz.Height()+TMARGPRN ) )
				{
					nCurPage++;
					pPrinter->EndPage();
					pPrinter->StartPage();
					lcl_PrintHeader( pPrinter, nPages, nCurPage, aTitle );
					aPos = Point( LMARGPRN, TMARGPRN+nLineHeight );
				}
				pPrinter->DrawText( aPos, aTmpLine );
			}
			aPos.Y() += nParaSpace;
		}
		pPrinter->EndPage();
=====================================================================
Found a 25 line (141 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_rgb.h
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_rgba.h

            base_type(alloc, src, offset_x, offset_y, 0),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeY(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {   
            color_type* span = base_type::allocator().span();
            unsigned sx = m_wrap_mode_x(base_type::offset_x() + x);
            const value_type* row_ptr = 
                (const value_type*)base_type::source_image().row(
                    m_wrap_mode_y(
                        base_type::offset_y() + y));
            do
            {
                const value_type* p = row_ptr + (sx << 2);
=====================================================================
Found a 18 line (141 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

            long_type fg[4];

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
            int radius_x = (diameter * base_type::m_rx) >> 1;
            int radius_y = (diameter * base_type::m_ry) >> 1;
            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;
            const int16* weight_array = base_type::filter().weight_array();

            do
            {
                intr.coordinates(&x, &y);

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 27 line (141 tokens) duplication in the following files: 
Starting at line 111 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h

            int y1 = int(yt * subpixel_size);

            double dx;
            double dy;
            const double delta = 1/double(subpixel_size);

            // Calculate scale by X at x1,y1
            dx = xt + delta;
            dy = yt;
            m_trans_inv.transform(&dx, &dy);
            dx -= x;
            dy -= y;
            int sx1 = int(subpixel_size/sqrt(dx*dx + dy*dy)) >> subpixel_shift;

            // Calculate scale by Y at x1,y1
            dx = xt;
            dy = yt + delta;
            m_trans_inv.transform(&dx, &dy);
            dx -= x;
            dy -= y;
            int sy1 = int(subpixel_size/sqrt(dx*dx + dy*dy)) >> subpixel_shift;

            // Calculate transformed coordinates at x2,y2 
            x += len;
            xt = x;
            yt = y;
            m_trans_dir.transform(&xt, &yt);
=====================================================================
Found a 21 line (141 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }

                        x_lr++;

                        weight = (weight_array[x_hr] * 
=====================================================================
Found a 19 line (141 tokens) duplication in the following files: 
Starting at line 3227 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx
Starting at line 4056 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx

    Size aSize = ImplGetCheckImageSize();
    nMaxWidth -= aSize.Width();

    XubString aText = GetText();
    if ( aText.Len() && ! (ImplGetButtonState() & BUTTON_DRAW_NOTEXT) )
    {
        // subtract what will be added later
        nMaxWidth-=2;
        nMaxWidth -= IMPL_SEP_BUTTON_IMAGE;

        Size aTextSize = GetTextRect( Rectangle( Point(), Size( nMaxWidth > 0 ? nMaxWidth : 0x7fffffff, 0x7fffffff ) ),
                                      aText, FixedText::ImplGetTextStyle( GetStyle() ) ).GetSize();
        aSize.Width()+=2;    // for focus rect
        aSize.Width() += IMPL_SEP_BUTTON_IMAGE;
        aSize.Width() += aTextSize.Width();
        if ( aSize.Height() < aTextSize.Height() )
            aSize.Height() = aTextSize.Height();
    }
    else
=====================================================================
Found a 45 line (141 tokens) duplication in the following files: 
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

	}
}

//=========================================================================
//=========================================================================
//
// DataSupplier Implementation.
//
//=========================================================================
//=========================================================================

DataSupplier::DataSupplier( const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
							const rtl::Reference< Content >& rContent,
							sal_Int32 nOpenMode )
: m_pImpl( new DataSupplier_Impl( rxSMgr, rContent, nOpenMode ) )
{
}

//=========================================================================
// virtual
DataSupplier::~DataSupplier()
{
	delete m_pImpl;
}

//=========================================================================
// virtual
rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
		rtl::OUString aId = m_pImpl->m_aResults[ nIndex ]->aId;
		if ( aId.getLength() )
		{
			// Already cached.
			return aId;
		}
	}

	if ( getResult( nIndex ) )
	{
		rtl::OUString aId
			= m_pImpl->m_xContent->getIdentifier()->getContentIdentifier();
=====================================================================
Found a 34 line (141 tokens) duplication in the following files: 
Starting at line 459 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 347 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

                rtl::Reference< ::ucbhelper::ContentProviderImplHelper >(
                    m_pImpl->m_xContent->getProvider().get() ),
                queryContentIdentifierString( nIndex ) );
		m_pImpl->m_aResults[ nIndex ]->xRow = xRow;
		return xRow;
	}

    return uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
        m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::close()
{
}

//=========================================================================
// virtual
void DataSupplier::validate()
    throw( ucb::ResultSetException )
{
    if ( m_pImpl->m_bThrowException )
        throw ucb::ResultSetException();
}
=====================================================================
Found a 51 line (141 tokens) duplication in the following files: 
Starting at line 783 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 550 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

			}
#endif
			else
			{
				// @@@ Note: If your data source supports adding/removing
				//     properties, you should implement the interface
				//     XPropertyContainer by yourself and supply your own
				//     logic here. The base class uses the service
				//     "com.sun.star.ucb.Store" to maintain Additional Core
				//     properties. But using server functionality is preferred!

				// Not a Core Property! Maybe it's an Additional Core Property?!

				if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
				{
					xAdditionalPropSet
                        = uno::Reference< beans::XPropertySet >(
							rProvider->getAdditionalPropertySet( rContentId,
																 sal_False ),
                            uno::UNO_QUERY );
					bTriedToGetAdditonalPropSet = sal_True;
				}

				if ( xAdditionalPropSet.is() )
				{
					if ( !xRow->appendPropertySetValue(
												xAdditionalPropSet,
												rProp ) )
					{
						// Append empty entry.
						xRow->appendVoid( rProp );
					}
				}
				else
				{
					// Append empty entry.
					xRow->appendVoid( rProp );
				}
			}
		}
	}
	else
	{
		// Append all Core Properties.
		xRow->appendString (
            beans::Property( rtl::OUString::createFromAscii( "ContentType" ),
					  -1,
                      getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                      beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY ),
			rData.aContentType );
=====================================================================
Found a 24 line (141 tokens) duplication in the following files: 
Starting at line 963 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 2300 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

    sal_Int32 nLen = aURL.getLength();
    
    ::ucbhelper::ContentRefList::const_iterator it  = aAllContents.begin();
    ::ucbhelper::ContentRefList::const_iterator end = aAllContents.end();

    while ( it != end )
    {
        ::ucbhelper::ContentImplHelperRef xChild = (*it);
        rtl::OUString aChildURL
            = xChild->getIdentifier()->getContentIdentifier();
	    
        // Is aURL a prefix of aChildURL?
        if ( ( aChildURL.getLength() > nLen ) &&
             ( aChildURL.compareTo( aURL, nLen ) == 0 ) )
        {
            sal_Int32 nPos = nLen;
            nPos = aChildURL.indexOf( '/', nPos );
	    
            if ( ( nPos == -1 ) ||
                 ( nPos == ( aChildURL.getLength() - 1 ) ) )
            {
                // No further slashes / only a final slash. It's a child!
                rChildren.push_back(
                    ::webdav_ucp::Content::ContentRef(
=====================================================================
Found a 15 line (141 tokens) duplication in the following files: 
Starting at line 2606 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx
Starting at line 2633 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx

shell::getContentDeletedEventListeners( const rtl::OUString& aName )
{
	std::list< ContentEventNotifier* >* p = new std::list< ContentEventNotifier* >;
	std::list< ContentEventNotifier* >& listeners = *p;
	{
		osl::MutexGuard aGuard( m_aMutex );
		shell::ContentMap::iterator it = m_aContent.find( aName );
		if( it != m_aContent.end() && it->second.notifier )
		{
			std::list<Notifier*>& listOfNotifiers = *( it->second.notifier );
			std::list<Notifier*>::iterator it1 = listOfNotifiers.begin();
			while( it1 != listOfNotifiers.end() )
			{
				Notifier* pointer = *it1;
				ContentEventNotifier* notifier = pointer->cDEL();
=====================================================================
Found a 11 line (141 tokens) duplication in the following files: 
Starting at line 1661 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx
Starting at line 1797 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx

    ExtTextEngine* pTextEngine = GetTextEngine();
    ExtTextView* pTextView = GetTextView();
    const TextSelection& rSelection = pTextView->GetSelection();
    const TextCharAttrib* pBeginAttrib = pTextEngine->FindCharAttrib( rSelection.GetStart(), TEXTATTR_PROTECTED );
    const TextCharAttrib* pEndAttrib = pTextEngine->FindCharAttrib( rSelection.GetEnd(), TEXTATTR_PROTECTED );
    if(pBeginAttrib && 
            (pBeginAttrib->GetStart() <= rSelection.GetStart().GetIndex() 
                            && pBeginAttrib->GetEnd() >= rSelection.GetEnd().GetIndex()))
    {
        ULONG nPara = rSelection.GetStart().GetPara();
        TextSelection aEntrySel(TextPaM( nPara, pBeginAttrib->GetStart()), TextPaM(nPara, pBeginAttrib->GetEnd()));
=====================================================================
Found a 47 line (141 tokens) duplication in the following files: 
Starting at line 4863 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5115 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    BYTE aBits1;
    BYTE aBits2;
    BYTE aVer8Bits1;    // nur ab WinWord 8 benutzt
    rSt.Seek( nOffset );
    /*
        Wunsch-Nr vermerken, File-Versionsnummer ermitteln
        und gegen Wunsch-Nr. checken !
    */
    nVersion = nWantedVersion;
    rSt >> wIdent;
    rSt >> nFib;
    rSt >> nProduct;
    if( 0 != rSt.GetError() )
    {
        INT16 nFibMin;
        INT16 nFibMax;
        // note: 6 stands for "6 OR 7",  7 stands for "ONLY 7"
        switch( nVersion )
        {
            case 6:
                nFibMin = 0x0065;   // von 101 WinWord 6.0
                                    //     102    "
                                    // und 103 WinWord 6.0 fuer Macintosh
                                    //     104    "
                nFibMax = 0x0069;   // bis 105 WinWord 95
                break;
            case 7:
                nFibMin = 0x0069;   // von 105 WinWord 95
                nFibMax = 0x0069;   // bis 105 WinWord 95
                break;
            case 8:
                nFibMin = 0x006A;   // von 106 WinWord 97
                nFibMax = 0x00c1;   // bis 193 WinWord 97 (?)
                break;
            default:
                nFibMin = 0;            // Programm-Fehler!
                nFibMax = 0;
                nFib    = 1;
                ASSERT( !this, "Es wurde vergessen, nVersion zu kodieren!" );
                break;
        }
        if ( (nFib < nFibMin) || (nFib > nFibMax) )
        {
            nFibError = ERR_SWG_READ_ERROR; // Error melden
            return;                         // und hopp raus!
        }
    }
=====================================================================
Found a 9 line (141 tokens) duplication in the following files: 
Starting at line 1799 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 1882 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2217 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffVertPair mso_sptActionButtonEndVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 },	{ 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 },	{ 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },
	
	{ 0x16 MSO_I, 10800 }, { 0x12 MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0xc MSO_I },
=====================================================================
Found a 21 line (141 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx

IMPL_LINK( SvInsertAppletDialog, BrowseHdl, PushButton *, EMPTYARG )
{
    Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
    if( xFactory.is() )
    {
        Reference< XFilePicker > xFilePicker( xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ), UNO_QUERY );
        DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

        Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
        Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
        if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
        {
            Sequence< Any > aServiceType( 1 );
            aServiceType[0] <<= TemplateDescription::FILEOPEN_SIMPLE;
            xInit->initialize( aServiceType );

            // add filter
            try
            {
                xFilterMgr->appendFilter(
                     OUString( RTL_CONSTASCII_USTRINGPARAM( "Applet" ) ),
=====================================================================
Found a 21 line (141 tokens) duplication in the following files: 
Starting at line 4670 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4254 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartPunchedCardVert[] =
{
	{ 4300, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 4300 }, { 4300, 0 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartPunchedCardTextRect[] = 
{
	{ { 0, 4300 }, { 21600, 21600 } }
};
static const mso_CustomShape msoFlowChartPunchedCard =
{
	(SvxMSDffVertPair*)mso_sptFlowChartPunchedCardVert, sizeof( mso_sptFlowChartPunchedCardVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartPunchedCardTextRect, sizeof( mso_sptFlowChartPunchedCardTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 21 line (141 tokens) duplication in the following files: 
Starting at line 4648 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4233 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartOffpageConnectorVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 17150 }, { 10800, 21600 },
	{ 0, 17150 }, { 0, 0 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartOffpageConnectorTextRect[] = 
{
	{ { 0, 0 }, { 21600, 17150 } }
};
static const mso_CustomShape msoFlowChartOffpageConnector =
{
	(SvxMSDffVertPair*)mso_sptFlowChartOffpageConnectorVert, sizeof( mso_sptFlowChartOffpageConnectorVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartOffpageConnectorTextRect, sizeof( mso_sptFlowChartOffpageConnectorTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 9 line (141 tokens) duplication in the following files: 
Starting at line 2068 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2262 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2350 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2493 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffVertPair mso_sptActionButtonEndVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 },
	{ 0, 0 }, { 21600, 0 },	{ 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I },
	{ 21600, 0 }, { 21600, 21600 },	{ 3 MSO_I, 4 MSO_I }, { 3 MSO_I, 2 MSO_I },
	{ 21600, 21600 }, { 0, 21600 }, { 1 MSO_I, 4 MSO_I }, { 3 MSO_I, 4 MSO_I },
	{ 0, 21600 }, { 0, 0 },	{ 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 4 MSO_I },

	{ 0x16 MSO_I, 8 MSO_I }, { 0x12 MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0xc MSO_I },
=====================================================================
Found a 20 line (141 tokens) duplication in the following files: 
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 307 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffTextRectangles mso_sptEllipseTextRect[] =
{
	{ { 3200, 3200 }, { 18400, 18400 } }
};
static const SvxMSDffVertPair mso_sptEllipseGluePoints[] =
{
	{ 10800, 0 }, { 3160, 3160 }, { 0, 10800 }, { 3160, 18440 }, { 10800, 21600 }, { 18440, 18440 }, { 21600, 10800 }, { 18440, 3160 }
};
static const mso_CustomShape msoEllipse =
{
	NULL, 0,
	NULL, 0, 
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptEllipseTextRect, sizeof( mso_sptEllipseTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptEllipseGluePoints, sizeof( mso_sptEllipseGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 21 line (141 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx

IMPL_LINK( SvInsertAppletDlg, BrowseHdl, PushButton *, EMPTYARG )
{
    Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
    if( xFactory.is() )
    {
        Reference< XFilePicker > xFilePicker( xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ), UNO_QUERY );
        DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

        Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
        Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
        if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
        {
            Sequence< Any > aServiceType( 1 );
            aServiceType[0] <<= TemplateDescription::FILEOPEN_SIMPLE;
            xInit->initialize( aServiceType );

            // add filter
            try
            {
                xFilterMgr->appendFilter(
                     OUString( RTL_CONSTASCII_USTRINGPARAM( "Applet" ) ),
=====================================================================
Found a 26 line (141 tokens) duplication in the following files: 
Starting at line 953 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx
Starting at line 1134 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

void ScDBFunc::GroupDataPilot()
{
    ScDPObject* pDPObj = GetViewData()->GetDocument()->GetDPAtCursor( GetViewData()->GetCurX(),
                                        GetViewData()->GetCurY(), GetViewData()->GetTabNo() );
    if ( pDPObj )
    {
        StrCollection aEntries;
        long nSelectDimension = -1;
        GetSelectedMemberList( aEntries, nSelectDimension );

        if ( aEntries.GetCount() > 0 )
        {
            BOOL bIsDataLayout;
            String aDimName = pDPObj->GetDimName( nSelectDimension, bIsDataLayout );

            ScDPSaveData aData( *pDPObj->GetSaveData() );
            ScDPDimensionSaveData* pDimData = aData.GetDimensionData();     // created if not there

            // find original base
            String aBaseDimName( aDimName );
            const ScDPSaveGroupDimension* pBaseGroupDim = pDimData->GetNamedGroupDim( aDimName );
            if ( pBaseGroupDim )
            {
                // any entry's SourceDimName is the original base
                aBaseDimName = pBaseGroupDim->GetSourceDimName();
            }
=====================================================================
Found a 22 line (141 tokens) duplication in the following files: 
Starting at line 925 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx
Starting at line 1367 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx

					USHORT	cBottom	= ( pPattern->FrameColor & 0xF000 ) >> 12;

					lcl_ChangeColor( cLeft, ColorLeft );
					lcl_ChangeColor( cTop, ColorTop );
					lcl_ChangeColor( cRight, ColorRight );
					lcl_ChangeColor( cBottom, ColorBottom );

					SvxBorderLine	aLine;
                    SvxBoxItem      aBox( ATTR_BORDER );

					aLine.SetOutWidth( nLeft );
					aLine.SetColor( ColorLeft );
					aBox.SetLine( &aLine, BOX_LINE_LEFT );
					aLine.SetOutWidth( nTop );
					aLine.SetColor( ColorTop );
					aBox.SetLine( &aLine, BOX_LINE_TOP );
					aLine.SetOutWidth( nRight );
					aLine.SetColor( ColorRight );
					aBox.SetLine( &aLine, BOX_LINE_RIGHT );
					aLine.SetOutWidth( nBottom );
					aLine.SetColor( ColorBottom );
					aBox.SetLine( &aLine, BOX_LINE_BOTTOM );
=====================================================================
Found a 24 line (141 tokens) duplication in the following files: 
Starting at line 1076 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/html/htmlpars.cxx
Starting at line 1134 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/html/htmlpars.cxx

        nTableWidth = 0;
        if ( pInfo->nToken == HTML_TABLE_ON )
        {   // es kann auch TD oder TH sein, wenn es vorher kein TABLE gab
            const HTMLOptions* pOptions = ((HTMLParser*)pInfo->pParser)->GetOptions();
            USHORT nArrLen = pOptions->Count();
            for ( USHORT i = 0; i < nArrLen; i++ )
            {
                const HTMLOption* pOption = (*pOptions)[i];
                switch( pOption->GetToken() )
                {
                    case HTML_O_WIDTH:
                    {   // Prozent: von Dokumentbreite bzw. aeusserer Zelle
                        nTableWidth = GetWidthPixel( pOption );
                    }
                    break;
                    case HTML_O_BORDER:
                        bBorderOn = ((pOption->GetString().Len() == 0) || (pOption->GetNumber() != 0));
                    break;
                    case HTML_O_ID:
                        aTabName.Assign( pOption->GetString() );
                    break;
                }
            }
        }
=====================================================================
Found a 36 line (141 tokens) duplication in the following files: 
Starting at line 802 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx
Starting at line 1255 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx

			case 0x3B: // 3-D Area Reference					[    276]
			{
				UINT16		nTabFirst, nTabLast, nRowFirst, nRowLast;
				INT16		nExtSheet;
				BYTE		nColFirst, nColLast;

				aIn >> nExtSheet;
                aIn.Ignore( 8 );
				aIn >> nTabFirst >> nTabLast >> nRowFirst >> nRowLast
					>> nColFirst >> nColLast;

				if( nExtSheet >= 0 )
					// von extern
				{
                    if( rR.pExtSheetBuff->GetScTabIndex( nExtSheet, nTabLast ) )
					{
						nTabFirst = nTabLast;
						nExtSheet = 0;		// gefunden
					}
					else
					{
						aPool << ocBad;
						aPool >> aStack;
						nExtSheet = 1;		// verhindert Erzeugung einer CompleteRef
					}
				}

				if( nExtSheet <= 0 )
				{// in aktuellem Workbook
					// erster Teil des Bereichs
					SingleRefData	&rR1 = aCRD.Ref1;
					SingleRefData	&rR2 = aCRD.Ref2;

					rR1.nTab = static_cast<SCTAB>(nTabFirst);
					rR2.nTab = static_cast<SCTAB>(nTabLast);
					rR1.SetFlag3D( ( static_cast<SCTAB>(nTabFirst) != aEingPos.Tab() ) || bRangeName );
=====================================================================
Found a 30 line (141 tokens) duplication in the following files: 
Starting at line 4116 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 4293 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

				 nRow4 - nRow3 != nRow2 - nRow1 || nCol1 > nCol2)
		{
			SetIllegalParameter();
			return;
		}
		if (nGlobalError == 0)
		{
			ScQueryParam rParam;
			rParam.nRow1       = nRow1;
			rParam.nRow2       = nRow2;

			ScQueryEntry& rEntry = rParam.GetEntry(0);
			rEntry.bDoQuery = TRUE;
			if (!bIsString)
			{
				rEntry.bQueryByString = FALSE;
				rEntry.nVal = fVal;
				rEntry.eOp = SC_EQUAL;
			}
			else
			{
				rParam.FillInExcelSyntax(rString, 0);
				sal_uInt32 nIndex = 0;
				rEntry.bQueryByString =
					!(pFormatter->IsNumberFormat(
						*rEntry.pStr, nIndex, rEntry.nVal));
				if ( rEntry.bQueryByString )
                    rParam.bRegExp = MayBeRegExp( *rEntry.pStr, pDok );
			}
			double fSum = 0.0;
=====================================================================
Found a 21 line (141 tokens) duplication in the following files: 
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx
Starting at line 590 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx

            pKeyBuffer[0] = 1;

            sal_uInt32     nArgLen = 16;
            sal_uInt8     *pArgBuffer = new sal_uInt8[ nArgLen ];
            memset(pArgBuffer, 0, nArgLen);

            t_print(T_VERBOSE, "Key: %s\n", createHex(pKeyBuffer, nKeyLen).getStr());
            t_print(T_VERBOSE, "Arg: %s\n", createHex(pArgBuffer, nArgLen).getStr());

            rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, pArgBuffer, nArgLen);
            CPPUNIT_ASSERT_MESSAGE("wrong init", aError == rtl_Cipher_E_None);

            t_print(T_VERBOSE, "Key: %s\n", createHex(pKeyBuffer, nKeyLen).getStr());
            t_print(T_VERBOSE, "Arg: %s\n", createHex(pArgBuffer, nArgLen).getStr());

            delete [] pArgBuffer;
            delete [] pKeyBuffer;

            rtl_cipher_destroy(aCipher);
        }
    void init_003()
=====================================================================
Found a 28 line (141 tokens) duplication in the following files: 
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx

int Hunspell::cleanword(char * dest, const char * src, 
    int * pcaptype, int * pabbrev)
{ 
   unsigned char * p = (unsigned char *) dest;
   const unsigned char * q = (const unsigned char * ) src;
   int firstcap = 0;

   // first skip over any leading blanks
   while ((*q != '\0') && (*q == ' ')) q++;
   
   // now strip off any trailing periods (recording their presence)
   *pabbrev = 0;
   int nl = strlen((const char *)q);
   while ((nl > 0) && (*(q+nl-1)=='.')) {
       nl--;
       (*pabbrev)++;
   }
   
   // if no characters are left it can't be capitalized
   if (nl <= 0) { 
       *pcaptype = NOCAP;
       *p = '\0';
       return 0;
   }

   // now determine the capitalization type of the first nl letters
   int ncap = 0;
   int nneutral = 0;
=====================================================================
Found a 19 line (141 tokens) duplication in the following files: 
Starting at line 709 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2265 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xc0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
{ 0x01, 0xf1, 0xd1 },
{ 0x00, 0xd2, 0xd2 },
=====================================================================
Found a 31 line (141 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/lex.c
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_lex.c

		 {-1, "", 0}
};

/* first index is char, second is state */
/* increase #states to power of 2 to encourage use of shift */
short bigfsm[256][MAXSTATE];

void
    expandlex(void)
{
     /* const */ struct fsm *fp;
    int i, j, nstate;

    for (fp = fsm; fp->state >= 0; fp++)
    {
        for (i = 0; fp->ch[i]; i++)
        {
            nstate = fp->nextstate;
            if (nstate >= S_SELF)
                nstate = ~nstate;
            switch (fp->ch[i])
            {

                case C_XX:              /* random characters */
                    for (j = 0; j < 256; j++)
                        bigfsm[j][fp->state] = (short) nstate;
                    continue;
                case C_ALPH:
                    for (j = 0; j <= 256; j++)
#ifdef S390
						if( isalpha( j ) || (j == '_') )
=====================================================================
Found a 25 line (141 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h
Starting at line 554 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h

	{ 0x307c, 0x307d },	// 0x307b HIRAGANA LETTER HO --> HIRAGANA LETTER BO or HIRAGANA LETTER PO
	{ 0x0000, 0x0000 },	// 0x307c HIRAGANA LETTER BO
	{ 0x0000, 0x0000 },	// 0x307d HIRAGANA LETTER PO
	{ 0x0000, 0x0000 },	// 0x307e HIRAGANA LETTER MA
	{ 0x0000, 0x0000 },	// 0x307f HIRAGANA LETTER MI
	{ 0x0000, 0x0000 },	// 0x3080 HIRAGANA LETTER MU
	{ 0x0000, 0x0000 },	// 0x3081 HIRAGANA LETTER ME
	{ 0x0000, 0x0000 },	// 0x3082 HIRAGANA LETTER MO
	{ 0x0000, 0x0000 },	// 0x3083 HIRAGANA LETTER SMALL YA
	{ 0x0000, 0x0000 },	// 0x3084 HIRAGANA LETTER YA
	{ 0x0000, 0x0000 },	// 0x3085 HIRAGANA LETTER SMALL YU
	{ 0x0000, 0x0000 },	// 0x3086 HIRAGANA LETTER YU
	{ 0x0000, 0x0000 },	// 0x3087 HIRAGANA LETTER SMALL YO
	{ 0x0000, 0x0000 },	// 0x3088 HIRAGANA LETTER YO
	{ 0x0000, 0x0000 },	// 0x3089 HIRAGANA LETTER RA
	{ 0x0000, 0x0000 },	// 0x308a HIRAGANA LETTER RI
	{ 0x0000, 0x0000 },	// 0x308b HIRAGANA LETTER RU
	{ 0x0000, 0x0000 },	// 0x308c HIRAGANA LETTER RE
	{ 0x0000, 0x0000 },	// 0x308d HIRAGANA LETTER RO
	{ 0x0000, 0x0000 },	// 0x308e HIRAGANA LETTER SMALL WA
	{ 0x0000, 0x0000 },	// 0x308f HIRAGANA LETTER WA
	{ 0x0000, 0x0000 },	// 0x3090 HIRAGANA LETTER WI
	{ 0x0000, 0x0000 },	// 0x3091 HIRAGANA LETTER WE
	{ 0x0000, 0x0000 },	// 0x3092 HIRAGANA LETTER WO
	{ 0x0000, 0x0000 },	// 0x3093 HIRAGANA LETTER N
=====================================================================
Found a 74 line (141 tokens) duplication in the following files: 
Starting at line 1402 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
/* RES_GRFATR_ROTATION */			0,
/* RES_GRFATR_LUMINANCE */			0,
/* RES_GRFATR_CONTRAST */			0,
/* RES_GRFATR_CHANNELR */			0,
/* RES_GRFATR_CHANNELG */			0,
/* RES_GRFATR_CHANNELB */			0,
/* RES_GRFATR_GAMMA */				0,
/* RES_GRFATR_INVERT */				0,
/* RES_GRFATR_TRANSPARENCY */		0,
/* RES_GRFATR_DRWAMODE */			0,
/* RES_GRFATR_DUMMY1 */				0,
/* RES_GRFATR_DUMMY2 */				0,
/* RES_GRFATR_DUMMY3 */				0,
/* RES_GRFATR_DUMMY4 */				0,
/* RES_GRFATR_DUMMY5 */				0,
=====================================================================
Found a 7 line (141 tokens) duplication in the following files: 
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1402 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,10,10,10,10, 0,10,10,10,10, 0, 0,10,10,10,10,// 2700 - 270f
=====================================================================
Found a 74 line (141 tokens) duplication in the following files: 
Starting at line 446 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
/* RES_GRFATR_ROTATION */			0,
/* RES_GRFATR_LUMINANCE */			0,
/* RES_GRFATR_CONTRAST */			0,
/* RES_GRFATR_CHANNELR */			0,
/* RES_GRFATR_CHANNELG */			0,
/* RES_GRFATR_CHANNELB */			0,
/* RES_GRFATR_GAMMA */				0,
/* RES_GRFATR_INVERT */				0,
/* RES_GRFATR_TRANSPARENCY */		0,
/* RES_GRFATR_DRWAMODE */			0,
/* RES_GRFATR_DUMMY1 */				0,
/* RES_GRFATR_DUMMY2 */				0,
/* RES_GRFATR_DUMMY3 */				0,
/* RES_GRFATR_DUMMY4 */				0,
/* RES_GRFATR_DUMMY5 */				0,
=====================================================================
Found a 5 line (141 tokens) duplication in the following files: 
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 896 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 6 line (141 tokens) duplication in the following files: 
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 0, 0, 0, 0, 6, 6,26,26, 4, 4, 0,// 3090 - 309f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30a0 - 30af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30b0 - 30bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30c0 - 30cf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30d0 - 30df
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 30e0 - 30ef
=====================================================================
Found a 6 line (141 tokens) duplication in the following files: 
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16f0 - 16ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1700 - 170f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1710 - 171f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1730 - 173f
=====================================================================
Found a 4 line (141 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0518 - 051f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0520 - 0527
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0528 - 052f
    {0x00, 0x0000}, {0x6a, 0x0561}, {0x6a, 0x0562}, {0x6a, 0x0563}, {0x6a, 0x0564}, {0x6a, 0x0565}, {0x6a, 0x0566}, {0x6a, 0x0567}, // 0530 - 0537
=====================================================================
Found a 5 line (141 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 8, 8, 6, 6, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
=====================================================================
Found a 20 line (141 tokens) duplication in the following files: 
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/bmkmenu.cxx
Starting at line 723 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/templwin.cxx

(
	Sequence< PropertyValue >& aDynamicMenuEntry,
	::rtl::OUString& rTitle,
	::rtl::OUString& rURL,
    ::rtl::OUString& rFrame,
	::rtl::OUString& rImageId
)
{
	for ( int i = 0; i < aDynamicMenuEntry.getLength(); i++ )
	{
		if ( aDynamicMenuEntry[i].Name == DYNAMICMENU_PROPERTYNAME_URL )
			aDynamicMenuEntry[i].Value >>= rURL;
		else if ( aDynamicMenuEntry[i].Name == DYNAMICMENU_PROPERTYNAME_TITLE )
			aDynamicMenuEntry[i].Value >>= rTitle;
		else if ( aDynamicMenuEntry[i].Name == DYNAMICMENU_PROPERTYNAME_IMAGEIDENTIFIER )
			aDynamicMenuEntry[i].Value >>= rImageId;
		else if ( aDynamicMenuEntry[i].Name == DYNAMICMENU_PROPERTYNAME_TARGETNAME )
			aDynamicMenuEntry[i].Value >>= rFrame;
	}
}
=====================================================================
Found a 5 line (141 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 8, 8, 6, 6, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
=====================================================================
Found a 20 line (141 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/InputStream.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Reader.cxx

void SAL_CALL java_io_Reader::closeInput(  ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
    SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
	if( t.pEnv )
	{
		static const char * cSignature = "()V";
		static const char * cMethodName = "close";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID )
		{
			t.pEnv->CallVoidMethod( object, mID);
			ThrowSQLException(t.pEnv,*this);
		}
	} //t.pEnv
}
// -----------------------------------------------------
sal_Int32 SAL_CALL java_io_Reader::readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 33 line (141 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunooptions.cxx

sal_Bool CunoOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) 
	throw( IllegalArgument )
{
	sal_Bool 	ret = sal_True;
	sal_uInt16	i=0;

	if (!bCmdFile)
	{
		bCmdFile = sal_True;
		
		m_program = av[0];

		if (ac < 2)
		{
			fprintf(stderr, "%s", prepareHelp().getStr());
			ret = sal_False;
		}

		i = 1;
	} else
	{
		i = 0;
	}

	char	*s=NULL;
	for (i; i < ac; i++)
	{
		if (av[i][0] == '-')
		{
			switch (av[i][1])
			{
				case 'O':
					if (av[i][2] == 'C')
=====================================================================
Found a 18 line (141 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/VCartesianCoordinateSystem.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/VPolarCoordinateSystem.cxx

void VPolarCoordinateSystem::updateScalesAndIncrementsOnAxes()
{
    if(!m_xLogicTargetForAxes.is() || !m_xFinalTarget.is() || !m_xCooSysModel.is() )
        return;

    sal_Int32 nDimensionCount = m_xCooSysModel->getDimension();
    bool bSwapXAndY = this->getPropertySwapXAndYAxis();

    tVAxisMap::iterator aIt( m_aAxisMap.begin() );
    tVAxisMap::const_iterator aEnd( m_aAxisMap.end() );
    for( ; aIt != aEnd; ++aIt )
    {
        VAxisBase* pVAxis = aIt->second.get();
        if( pVAxis )
        {
            sal_Int32 nDimensionIndex = aIt->first.first;
            sal_Int32 nAxisIndex = aIt->first.second;
            pVAxis->setExplicitScaleAndIncrement( this->getExplicitScale( nDimensionIndex, nAxisIndex ), this->getExplicitIncrement(nDimensionIndex, nAxisIndex) );
=====================================================================
Found a 37 line (141 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/AreaWrapper.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx

    RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.chart.ChartArea" ));

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        
        ::chart::LineProperties::AddPropertiesToVector( aProperties );
        ::chart::FillProperties::AddPropertiesToVector( aProperties );
//         ::chart::NamedProperties::AddPropertiesToVector( aProperties );
        ::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

} // anonymous namespace

// --------------------------------------------------------------------------------

namespace chart
{
namespace wrapper
{
=====================================================================
Found a 23 line (141 tokens) duplication in the following files: 
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

	*(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );
        *pPT++ = 'I';

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut 
                    && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 39 line (141 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
	sal_Int32 nFunctionIndex,
        sal_Int32 nVtableOffset,
        void ** gpreg, void ** fpreg, void ** ovrflw,
=====================================================================
Found a 44 line (140 tokens) duplication in the following files: 
Starting at line 36976 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 38441 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

OOXMLContext_wordprocessingml_CT_TblCellMar::element(TokenEnum_t nToken)
{
    OOXMLContext::Pointer_t pResult;
    
    switch (nToken)
    {
     case OOXML_ELEMENT_wordprocessingml_top:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblWidth(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_left:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblWidth(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_bottom:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblWidth(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_right:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblWidth(*this));
         }
             break;
     case OOXML_TOKENS_END:
         break;
     default:
         pResult = elementFromRefs(nToken);
              break;
     }

    if (pResult.get() != NULL)
        pResult->setToken(nToken);

    return pResult;
}
     
bool OOXMLContext_wordprocessingml_CT_TblCellMar::lcl_attribute(TokenEnum_t /*nToken*/, const rtl::OUString & /*rValue*/)
=====================================================================
Found a 44 line (140 tokens) duplication in the following files: 
Starting at line 28401 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 46493 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

OOXMLContext_wordprocessingml_CT_DivBdr::element(TokenEnum_t nToken)
{
    OOXMLContext::Pointer_t pResult;
    
    switch (nToken)
    {
     case OOXML_ELEMENT_wordprocessingml_top:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_left:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_bottom:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_right:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_TOKENS_END:
         break;
     default:
         pResult = elementFromRefs(nToken);
              break;
     }

    if (pResult.get() != NULL)
        pResult->setToken(nToken);

    return pResult;
}
     
bool OOXMLContext_wordprocessingml_CT_DivBdr::lcl_attribute(TokenEnum_t /*nToken*/, const rtl::OUString & /*rValue*/)
=====================================================================
Found a 39 line (140 tokens) duplication in the following files: 
Starting at line 20649 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 20832 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_Shd(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
     case OOXML_ATTRIBUTE_wordprocessingml_color:
        {
          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_HexColor(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
     case OOXML_ATTRIBUTE_wordprocessingml_themeColor:
        {
          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_ThemeColor(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
     case OOXML_ATTRIBUTE_wordprocessingml_themeTint:
        {
          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_UcharHexNumber(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
     case OOXML_ATTRIBUTE_wordprocessingml_themeShade:
        {
          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_UcharHexNumber(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
     case OOXML_ATTRIBUTE_wordprocessingml_fill:
=====================================================================
Found a 17 line (140 tokens) duplication in the following files: 
Starting at line 891 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi.cxx
Starting at line 716 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/window/salobj.cxx

	ULONG nRectBufSize = sizeof(RECT)*nRectCount;
	if ( nRectCount < SAL_CLIPRECT_COUNT )
	{
		if ( !mpStdClipRgnData )
			mpStdClipRgnData = (RGNDATA*)new BYTE[sizeof(RGNDATA)-1+(SAL_CLIPRECT_COUNT*sizeof(RECT))];
		mpClipRgnData = mpStdClipRgnData;
	}
	else
		mpClipRgnData = (RGNDATA*)new BYTE[sizeof(RGNDATA)-1+nRectBufSize];
	mpClipRgnData->rdh.dwSize	  = sizeof( RGNDATAHEADER );
	mpClipRgnData->rdh.iType	  = RDH_RECTANGLES;
	mpClipRgnData->rdh.nCount	  = nRectCount;
	mpClipRgnData->rdh.nRgnSize  = nRectBufSize;
	SetRectEmpty( &(mpClipRgnData->rdh.rcBound) );
	mpNextClipRect 		  = (RECT*)(&(mpClipRgnData->Buffer));
	mbFirstClipRect		  = TRUE;
}
=====================================================================
Found a 7 line (140 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_mask.h

   0xfe, 0xf9, 0x01, 0x00, 0xfe, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x00, 0x00,
   0xf8, 0x7f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 6 line (140 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h

 0x00,0xf8,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 17 line (140 tokens) duplication in the following files: 
Starting at line 7331 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 7401 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

    m_aPages.back().appendPoint( aPoints[11], aLine );
    aLine.append( ' ' );
    m_aPages.back().appendPoint( aPoints[0], aLine );
    aLine.append( ' ' );
    m_aPages.back().appendPoint( aPoints[1], aLine );
    aLine.append( " c " );

    if( m_aGraphicsStack.front().m_aLineColor != Color( COL_TRANSPARENT ) &&
        m_aGraphicsStack.front().m_aFillColor != Color( COL_TRANSPARENT ) )
        aLine.append( "b*\n" );
    else if( m_aGraphicsStack.front().m_aLineColor != Color( COL_TRANSPARENT ) )
        aLine.append( "s\n" );
    else
        aLine.append( "f*\n" );

    writeBuffer( aLine.getStr(), aLine.getLength() );
}
=====================================================================
Found a 23 line (140 tokens) duplication in the following files: 
Starting at line 963 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 948 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx

	sal_Int32 nLen = aURL.getLength();

	::ucbhelper::ContentRefList::const_iterator it  = aAllContents.begin();
	::ucbhelper::ContentRefList::const_iterator end = aAllContents.end();

	while ( it != end )
	{
		::ucbhelper::ContentImplHelperRef xChild = (*it);
        rtl::OUString aChildURL
            = xChild->getIdentifier()->getContentIdentifier();

		// Is aURL a prefix of aChildURL?
		if ( ( aChildURL.getLength() > nLen ) &&
			 ( aChildURL.compareTo( aURL, nLen ) == 0 ) )
		{
			sal_Int32 nPos = nLen;
			nPos = aChildURL.indexOf( '/', nPos );

			if ( ( nPos == -1 ) ||
				 ( nPos == ( aChildURL.getLength() - 1 ) ) )
			{
				// No further slashes/ only a final slash. It's a child!
				rChildren.push_back(
=====================================================================
Found a 37 line (140 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/filinpstr.cxx
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/inputstream.cxx

		m_bIsOpen = false;
	}
}


void SAL_CALL
XInputStream_impl::seek(
	sal_Int64 location )
	throw( lang::IllegalArgumentException,
		   io::IOException,
		   uno::RuntimeException )
{
	if( location < 0 )
		throw lang::IllegalArgumentException();
	if( osl::FileBase::E_None != m_aFile.setPos( Pos_Absolut, sal_uInt64( location ) ) )
		throw io::IOException();
}


sal_Int64 SAL_CALL
XInputStream_impl::getPosition(
	void )
	throw( io::IOException,
		   uno::RuntimeException )
{
	sal_uInt64 uPos;
	if( osl::FileBase::E_None != m_aFile.getPos( uPos ) )
		throw io::IOException();
	return sal_Int64( uPos );
}

sal_Int64 SAL_CALL
XInputStream_impl::getLength(
	void )
	throw( io::IOException,
		   uno::RuntimeException )
{
=====================================================================
Found a 20 line (140 tokens) duplication in the following files: 
Starting at line 1628 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1680 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

        *pStr >> nPLCFfLen;
    ASSERT( 65536 > nPLCFfLen, "PLCFfpcd ueber 64 k" );
    return new WW8PLCFpcd( pStr, pStr->Tell(), nPLCFfLen, 8 );
}

void WW8ScannerBase::DeletePieceTable()
{
    if( pPieceGrpprls )
    {
        for( BYTE** p = pPieceGrpprls; *p; p++ )
            delete[] (*p);
        delete[] pPieceGrpprls;
        pPieceGrpprls = 0;
    }
}

WW8ScannerBase::WW8ScannerBase( SvStream* pSt, SvStream* pTblSt,
    SvStream* pDataSt, const WW8Fib* pWwFib )
    : pWw8Fib(pWwFib), pMainFdoa(0), pHdFtFdoa(0), pMainTxbx(0),
    pMainTxbxBkd(0), pHdFtTxbx(0), pHdFtTxbxBkd(0), pMagicTables(0),
=====================================================================
Found a 18 line (140 tokens) duplication in the following files: 
Starting at line 3408 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/swparrtf.cxx
Starting at line 3475 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/swparrtf.cxx

			pPgFmt->SetAttr( aLR );
			pPgFmt->SetAttr( aUL );
			pPgFmt->SetAttr( aSz );
			::lcl_SetFmtCol( *pPgFmt, nCols, nColSpace, aColumns );
			if( pPgFmt->GetHeader().GetHeaderFmt() )
			{
				SwFrmFmt* pHFmt = (SwFrmFmt*)pPgFmt->GetHeader().GetHeaderFmt();
				pHFmt->SetAttr( aHUL );
				pHFmt->SetAttr( aHLR );
				pHFmt->SetAttr( aHSz );
			}
			if( pPgFmt->GetFooter().GetFooterFmt() )
			{
				SwFrmFmt* pFFmt = (SwFrmFmt*)pPgFmt->GetFooter().GetFooterFmt();
				pFFmt->SetAttr( aHUL );
				pFFmt->SetAttr( aHLR );
				pFFmt->SetAttr( aHSz );
			}
=====================================================================
Found a 20 line (140 tokens) duplication in the following files: 
Starting at line 2072 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/rtfatr.cxx
Starting at line 2319 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

            SwWriteTableCell* pCell = rCells[nBox];
            const bool bProcessCoveredCell = bNewTableModel && 0 == pCell->GetRowSpan();

            if( !pRowSpans[ nColCnt ] || bProcessCoveredCell )
            {
                // set new BoxPtr
                nBox++;
                pBoxArr[ nColCnt ] = pCell;
                if ( !bProcessCoveredCell )
                    pRowSpans[ nColCnt ] = pCell->GetRowSpan();
                for( USHORT nCellSpan = pCell->GetColSpan(), nCS = 1;
                        nCS < nCellSpan; ++nCS, ++nColCnt )
                {
                    ASSERT( nColCnt+1 < rCols.Count(), "More colspan than columns" );
                    if( nColCnt+1 < rCols.Count() ) // robust against wrong colspans
                    {
                        pBoxArr[ nColCnt+1 ] = pBoxArr[ nColCnt ];
                        pRowSpans[ nColCnt+1 ] = pRowSpans[ nColCnt ];
                    }
                }
=====================================================================
Found a 30 line (140 tokens) duplication in the following files: 
Starting at line 3447 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 4801 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

void SwHTMLParser::NewCharFmt( int nToken )
{
	String aId, aStyle, aClass, aLang, aDir;

	const HTMLOptions *pOptions = GetOptions();
	for( USHORT i = pOptions->Count(); i; )
	{
		const HTMLOption *pOption = (*pOptions)[--i];
		switch( pOption->GetToken() )
		{
		case HTML_O_ID:
			aId = pOption->GetString();
			break;
		case HTML_O_STYLE:
			aStyle = pOption->GetString();
			break;
		case HTML_O_CLASS:
			aClass = pOption->GetString();
			break;
		case HTML_O_LANG:
			aLang = pOption->GetString();
			break;
		case HTML_O_DIR:
			aDir = pOption->GetString();
			break;
		}
	}

	// einen neuen Kontext anlegen
	_HTMLAttrContext *pCntxt = new _HTMLAttrContext( nToken );
=====================================================================
Found a 43 line (140 tokens) duplication in the following files: 
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/undraw.cxx
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/undraw.cxx

		SwUndoGroupObjImpl& rSave = *( pObjArr + n );

        // --> OD 2006-11-01 #130889# - taken over by <SwUndoDrawUnGroupConnectToLayout>
//        SwDrawContact* pContact = (SwDrawContact*)rSave.pFmt->FindContactObj();

//        rSave.pObj = pContact->GetMaster();

//        //loescht sich selbst!
//        pContact->Changed( *rSave.pObj, SDRUSERCALL_DELETE,
//                           rSave.pObj->GetLastBoundRect() );
//        rSave.pObj->SetUserCall( 0 );
        // <--

		::lcl_SaveAnchor( rSave.pFmt, rSave.nNodeIdx );

		// alle Uno-Objecte sollten sich jetzt abmelden
		::lcl_SendRemoveToUno( *rSave.pFmt );

		rFlyFmts.Remove( rFlyFmts.GetPos( rSave.pFmt ));
	}

	// das Group-Object wieder einfuegen
	::lcl_RestoreAnchor( pObjArr->pFmt, pObjArr->nNodeIdx );
	rFlyFmts.Insert( pObjArr->pFmt, rFlyFmts.Count() );

	SwDrawContact *pContact = new SwDrawContact( pObjArr->pFmt, pObjArr->pObj );
	pContact->ConnectToLayout();
    // --> OD 2005-03-22 #i45718# - follow-up of #i35635#
    // move object to visible layer
    pContact->MoveObjToVisibleLayer( pObjArr->pObj );
    // <--
    // --> OD 2005-05-10 #i45952# - notify that position attributes
    // are already set
    ASSERT( pObjArr->pFmt->ISA(SwDrawFrmFmt),
            "<SwUndoDrawGroup::Undo(..)> - wrong type of frame format for drawing object" );
    if ( pObjArr->pFmt->ISA(SwDrawFrmFmt) )
    {
        static_cast<SwDrawFrmFmt*>(pObjArr->pFmt)->PosAttrSet();
    }
    // <--
}

void SwUndoDrawUnGroup::Redo( SwUndoIter& )
=====================================================================
Found a 11 line (140 tokens) duplication in the following files: 
Starting at line 829 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx
Starting at line 841 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx

	FrPair aS(GetInchOrMM(eS));
	FrPair aD(GetInchOrMM(eD));
	FASTBOOL bSInch=IsInch(eS);
	FASTBOOL bDInch=IsInch(eD);
	FrPair aRet(aD.X()/aS.X(),aD.Y()/aS.Y());
	if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); }
	if (!bSInch && bDInch) { aRet.X()*=Fraction(5,127); aRet.Y()*=Fraction(5,127); }
	return aRet;
};

FrPair GetMapFactor(FieldUnit eS, MapUnit eD)
=====================================================================
Found a 19 line (140 tokens) duplication in the following files: 
Starting at line 5542 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4849 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};
static const sal_Int32 mso_sptDoubleWaveDefault[] = 
{
	2, 1400, 10800
};
static const SvxMSDffTextRectangles mso_sptDoubleWaveTextRect[] =
{
	{ { 5 MSO_I, 22 MSO_I }, { 11 MSO_I, 23 MSO_I } }
};
static const mso_CustomShape msoDoubleWave =
{
	(SvxMSDffVertPair*)mso_sptDoubleWaveVert, sizeof( mso_sptDoubleWaveVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptDoubleWaveSegm, sizeof( mso_sptDoubleWaveSegm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptDoubleWaveCalc, sizeof( mso_sptDoubleWaveCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptDoubleWaveDefault,
	(SvxMSDffTextRectangles*)mso_sptDoubleWaveTextRect, sizeof( mso_sptDoubleWaveTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptDoubleWaveGluePoints, sizeof( mso_sptDoubleWaveGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 19 line (140 tokens) duplication in the following files: 
Starting at line 5460 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4776 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};
static const sal_Int32 mso_sptWaveDefault[] = 
{
	2, 1400, 10800
};
static const SvxMSDffTextRectangles mso_sptWaveTextRect[] =
{
	{ { 5 MSO_I, 22 MSO_I }, { 11 MSO_I, 23 MSO_I } }
};
static const mso_CustomShape msoWave =
{
	(SvxMSDffVertPair*)mso_sptWaveVert, sizeof( mso_sptWaveVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptWaveSegm, sizeof( mso_sptWaveSegm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptWaveCalc, sizeof( mso_sptWaveCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptWaveDefault,
	(SvxMSDffTextRectangles*)mso_sptWaveTextRect, sizeof( mso_sptWaveTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptWaveGluePoints, sizeof( mso_sptWaveGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 17 line (140 tokens) duplication in the following files: 
Starting at line 3508 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3150 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptLeftBracketGluePoints, sizeof( mso_sptLeftBracketGluePoints ) / sizeof( SvxMSDffVertPair )
};
static const SvxMSDffVertPair mso_sptRightBraceVert[] =
{
	{ 0, 0 },													// p
	{ 5400, 0 }, { 10800, 0 MSO_I }, { 10800, 1 MSO_I },		// ccp
	{ 10800, 2 MSO_I },											// p
	{ 10800, 3 MSO_I },	{ 16200, 4 MSO_I }, { 21600, 4 MSO_I },	// ccp
	{ 16200, 4 MSO_I },	{ 10800, 5 MSO_I },	{ 10800, 6 MSO_I },	// ccp
	{ 10800, 7 MSO_I },											// p
	{ 10800, 8 MSO_I }, { 5400,	21600 }, { 0, 21600	}			// ccp
};
static const SvxMSDffTextRectangles mso_sptRightBraceTextRect[] =
{
	{ { 0, 9 MSO_I }, { 7800, 10 MSO_I } }
};
static const mso_CustomShape msoRightBrace =		// adj value0 0 -> 5400
=====================================================================
Found a 30 line (140 tokens) duplication in the following files: 
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/memtools/svarray.cxx
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/memtools/svarray.cxx

	register USHORT nO  = SvByteStringsISortDtor_SAR::Count(),
			nM,
			nU = 0;
	if( nO > 0 )
	{
		nO--;
		while( nU <= nO )
		{
			nM = nU + ( nO - nU ) / 2;
			StringCompare eCmp = (*((ByteStringPtr*)pData + nM))->
									CompareIgnoreCaseToAscii( *(aE) );
			if( COMPARE_EQUAL == eCmp )
			{
				if( pP ) *pP = nM;
				return TRUE;
			}
			else if( COMPARE_LESS == eCmp )
				nU = nM + 1;
			else if( nM == 0 )
			{
				if( pP ) *pP = nU;
				return FALSE;
			}
			else
				nO = nM - 1;
		}
	}
	if( pP ) *pP = nU;
	return FALSE;
}
=====================================================================
Found a 30 line (140 tokens) duplication in the following files: 
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/memtools/svarray.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/memtools/svarray.cxx

	register USHORT nO  = SvStringsISortDtor_SAR::Count(),
			nM,
			nU = 0;
	if( nO > 0 )
	{
		nO--;
		while( nU <= nO )
		{
			nM = nU + ( nO - nU ) / 2;
			StringCompare eCmp = (*((StringPtr*)pData + nM))->
									CompareIgnoreCaseToAscii( *(aE) );
			if( COMPARE_EQUAL == eCmp )
			{
				if( pP ) *pP = nM;
				return TRUE;
			}
			else if( COMPARE_LESS == eCmp )
				nU = nM + 1;
			else if( nM == 0 )
			{
				if( pP ) *pP = nU;
				return FALSE;
			}
			else
				nO = nM - 1;
		}
	}
	if( pP ) *pP = nU;
	return FALSE;
}
=====================================================================
Found a 9 line (140 tokens) duplication in the following files: 
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

    virtual TestEnum SAL_CALL getEnum() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Enum; }
    virtual rtl::OUString SAL_CALL getString() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.String; }
    virtual com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getInterface(  ) throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Interface; }
    virtual com::sun::star::uno::Any SAL_CALL getAny() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Any; }
    virtual com::sun::star::uno::Sequence< TestElement > SAL_CALL getSequence() throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 24 line (140 tokens) duplication in the following files: 
Starting at line 421 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/toolbox/tbxitem.cxx
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/toolbox/tbxitem.cxx

		SfxTbxCtrlFactArr_Impl &rFactories = pApp->GetTbxCtrlFactories_Impl();
		USHORT nFactory;
		const USHORT nCount = rFactories.Count();

		for( nFactory = 0; nFactory < nCount; ++nFactory )
			if( (rFactories[nFactory]->nTypeId == aSlotType) && (rFactories[nFactory]->nSlotId == nSlotId) )
				break;

		if( nFactory == nCount )
		{
			// if no factory exists for the given slot id, see if we
			// have a generic factory with the correct slot type and slot id == 0
			for( nFactory = 0; nFactory < nCount; ++nFactory )
				if( (rFactories[nFactory]->nTypeId == aSlotType) && (rFactories[nFactory]->nSlotId == 0) )
					break;
		}

		if( nFactory < nCount )
		{
			pCtrl = rFactories[nFactory]->pCtor( nSlotId, nTbxId, *pBox );
			pCtrl->pImpl->pFact = rFactories[nFactory];
			return pCtrl;
		}
	}
=====================================================================
Found a 19 line (140 tokens) duplication in the following files: 
Starting at line 1219 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx
Starting at line 1246 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx

		if( aDataHelper.GetBitmap( FORMAT_BITMAP, aBmp ) )
		{
			Point aInsertPos( rPos );

			if( pOwnData && pOwnData->GetWorkDocument() )
			{
			    const SdDrawDocument*	pWorkModel = pOwnData->GetWorkDocument();
                SdrPage*	            pWorkPage = (SdrPage*) ( ( pWorkModel->GetPageCount() > 1 ) ?
                                                    pWorkModel->GetSdPage( 0, PK_STANDARD ) :
                                                    pWorkModel->GetPage( 0 ) );

				pWorkPage->SetRectsDirty();

				// #104148# Use SnapRect, not BoundRect
				Size aSize( pWorkPage->GetAllObjSnapRect().GetSize() );

				aInsertPos.X() = pOwnData->GetStartPos().X() + ( aSize.Width() >> 1 );
				aInsertPos.Y() = pOwnData->GetStartPos().Y() + ( aSize.Height() >> 1 );
			}
=====================================================================
Found a 24 line (140 tokens) duplication in the following files: 
Starting at line 325 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/postit.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx

	aCaptionSet.Put( XLineStartItem( aName, basegfx::B2DPolyPolygon(aTriangle) ) );
	aCaptionSet.Put( XLineStartWidthItem( 200 ) );
	aCaptionSet.Put( XLineStartCenterItem( FALSE ) );
	aCaptionSet.Put( XFillStyleItem( XFILL_SOLID ) );
	Color aYellow( ScDetectiveFunc::GetCommentColor() );
	aCaptionSet.Put( XFillColorItem( String(), aYellow ) );

	//	shadow
	//	SdrShadowItem has FALSE, instead the shadow is set for the rectangle
	//	only with SetSpecialTextBoxShadow when the object is created
	//	(item must be set to adjust objects from older files)
	aCaptionSet.Put( SdrShadowItem( FALSE ) );
	aCaptionSet.Put( SdrShadowXDistItem( 100 ) );
	aCaptionSet.Put( SdrShadowYDistItem( 100 ) );

	//	text attributes
	aCaptionSet.Put( SdrTextLeftDistItem( 100 ) );
	aCaptionSet.Put( SdrTextRightDistItem( 100 ) );
	aCaptionSet.Put( SdrTextUpperDistItem( 100 ) );
	aCaptionSet.Put( SdrTextLowerDistItem( 100 ) );
    
	//	#78943# do use the default cell style, so the user has a chance to
	//	modify the font for the annotations
	((const ScPatternAttr&)pDoc->GetPool()->GetDefaultItem(ATTR_PATTERN)).
=====================================================================
Found a 23 line (140 tokens) duplication in the following files: 
Starting at line 2420 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 4582 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

::rtl::OUString SAL_CALL OStorage::getTargetByID(  const ::rtl::OUString& sID  )
		throw ( container::NoSuchElementException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< beans::StringPair > aSeq = getRelationshipByID( sID );
	for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ )
		if ( aSeq[nInd].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Target" ) ) )
			return aSeq[nInd].Second;

	return ::rtl::OUString();
}

//-----------------------------------------------
::rtl::OUString SAL_CALL OStorage::getTypeByID(  const ::rtl::OUString& sID  )
=====================================================================
Found a 24 line (140 tokens) duplication in the following files: 
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontmenucontroller.cxx
Starting at line 413 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontsizemenucontroller.cxx

void SAL_CALL FontSizeMenuController::setPopupMenu( const Reference< css::awt::XPopupMenu >& xPopupMenu ) throw ( RuntimeException )
{
    ResetableGuard aLock( m_aLock );

    if ( m_bDisposed )
        throw DisposedException();
    
    if ( m_xFrame.is() && !m_xPopupMenu.is() )
    {
        // Create popup menu on demand
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        
        m_xPopupMenu = xPopupMenu;
	    m_xPopupMenu->addMenuListener( Reference< css::awt::XMenuListener >( (OWeakObject*)this, UNO_QUERY ));

        Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance( 
                                                        rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                    UNO_QUERY );
        Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
        
        com::sun::star::util::URL aTargetURL;

        // Register for font name updates which gives us info about the current font!
        aTargetURL.Complete = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharFontName" ));
=====================================================================
Found a 27 line (140 tokens) duplication in the following files: 
Starting at line 1256 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 993 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uiconfigurationmanager.cxx

void SAL_CALL UIConfigurationManager::removeSettings( const ::rtl::OUString& ResourceURL )
throw ( NoSuchElementException, IllegalArgumentException, IllegalAccessException, RuntimeException)
{
    sal_Int16 nElementType = RetrieveTypeFromResourceURL( ResourceURL );
    
    if (( nElementType == ::com::sun::star::ui::UIElementType::UNKNOWN ) || 
        ( nElementType >= ::com::sun::star::ui::UIElementType::COUNT   ))
        throw IllegalArgumentException();
    else if ( m_bReadOnly )
        throw IllegalAccessException();
    else
    {
        ResetableGuard aGuard( m_aLock );
        
        if ( m_bDisposed )
            throw DisposedException();
        
        UIElementData* pDataSettings = impl_findUIElementData( ResourceURL, nElementType );
        if ( pDataSettings )
        {
            // If element settings are default, we don't need to change anything!
            if ( pDataSettings->bDefault )
                return;
            else
            {
                Reference< XIndexAccess > xRemovedSettings = pDataSettings->xSettings;
                pDataSettings->bDefault = true;
=====================================================================
Found a 11 line (140 tokens) duplication in the following files: 
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/uiconfigelementwrapperbase.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarwrapper.cxx

                            UIConfigElementWrapperBase                                        ,
                            DIRECT_INTERFACE( ::com::sun::star::lang::XTypeProvider          ),
                            DIRECT_INTERFACE( ::com::sun::star::ui::XUIElement               ),
                            DIRECT_INTERFACE( ::com::sun::star::ui::XUIElementSettings       ),
                            DIRECT_INTERFACE( ::com::sun::star::beans::XMultiPropertySet     ),
                            DIRECT_INTERFACE( ::com::sun::star::beans::XFastPropertySet      ),
                            DIRECT_INTERFACE( ::com::sun::star::beans::XPropertySet          ),
                            DIRECT_INTERFACE( ::com::sun::star::lang::XInitialization        ),
                            DIRECT_INTERFACE( ::com::sun::star::lang::XComponent             ),
                            DIRECT_INTERFACE( ::com::sun::star::util::XUpdatable             ),
                            DIRECT_INTERFACE( ::com::sun::star::ui::XUIConfigurationListener ),
=====================================================================
Found a 21 line (140 tokens) duplication in the following files: 
Starting at line 2245 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 2360 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx

                    aOutputFileURL += OUString::createFromAscii( TBSubResourceModule_Mapping[i].pXMLPrefix );
                    aOutputFileURL += OUString::createFromAscii( ".xml" );

                    osl::File aXMLFile( aOutputFileURL );
                    osl::File::RC nRet = aXMLFile.open( OpenFlag_Create|OpenFlag_Write );
                    if ( nRet == osl::File::E_EXIST )
                    {
                        nRet = aXMLFile.open( OpenFlag_Write );
                        if ( nRet == osl::File::E_None )
                            nRet = aXMLFile.setSize( 0 );
                    }

                    if ( nRet == osl::FileBase::E_None )
                    {
                        sal_uInt64 nWritten;

                        aXMLFile.write( XMLStart, strlen( XMLStart ), nWritten );
                        aXMLFile.write( ToolBarDocType, strlen( ToolBarDocType ), nWritten );
                        aXMLFile.write( ToolBarStart, strlen( ToolBarStart ), nWritten );

                        ToolBox* pToolBox = pFloatWin->GetSubToolBox();
=====================================================================
Found a 15 line (140 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormComponent.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ListBox.cxx

namespace frm
{
    using namespace ::com::sun::star::uno;
    using namespace ::com::sun::star::sdb;
    using namespace ::com::sun::star::sdbc;
    using namespace ::com::sun::star::sdbcx;
    using namespace ::com::sun::star::beans;
    using namespace ::com::sun::star::container;
    using namespace ::com::sun::star::form;
    using namespace ::com::sun::star::awt;
    using namespace ::com::sun::star::io;
    using namespace ::com::sun::star::lang;
    using namespace ::com::sun::star::util;
    using namespace ::com::sun::star::form::binding;
    using namespace ::dbtools;
=====================================================================
Found a 28 line (140 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx
Starting at line 648 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx

  	"</html:html>\n";

	Sequence<BYTE> seqBytes( strlen( TestString ) );
	memcpy( seqBytes.getArray() , TestString , strlen( TestString ) );


	XInputStreamRef rInStream;
	UString sInput;

	rInStream = createStreamFromSequence( seqBytes , m_rFactory );
	sInput = UString( L"internal" );

	if( rParser.is() ) {
		InputSource source;

		source.aInputStream = rInStream;
		source.sSystemId 	= sInput;

		TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , FALSE );
		XDocumentHandlerRef rDocHandler( (XDocumentHandler *) pDocHandler , USR_QUERY );
		XEntityResolverRef 	rEntityResolver( (XEntityResolver *) pDocHandler , USR_QUERY );

		rParser->setDocumentHandler( rDocHandler );
		rParser->setEntityResolver( rEntityResolver );

		try {
			rParser->parseStream( source );
			ERROR_ASSERT( pDocHandler->m_iElementCount 		== 6 , "wrong element count" 	);
=====================================================================
Found a 29 line (140 tokens) duplication in the following files: 
Starting at line 1491 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/ole/unoobjw.cxx
Starting at line 1537 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/ole/unoobjw.cxx

                    else if( wFlags & DISPATCH_METHOD && wFlags & DISPATCH_PROPERTYGET)
                    {
                        OUString exactName;
                        convertDispparamsArgs(dispidMember, wFlags, pdispparams, params );
                        
                        if( FAILED( ret= doInvoke( pdispparams, pvarResult, 
                                                   pexcepinfo, puArgErr, info.name, params))
                            && ret == DISP_E_MEMBERNOTFOUND)
                        {
                            // try to get the exact name 
                            if (m_xExactName.is())
                            {
                                exactName = m_xExactName->getExactName( info.name);
                                // invoke again
                                if( exactName.getLength() != 0)
                                {
                                    if( SUCCEEDED( ret= doInvoke( pdispparams, pvarResult, 
                                                                  pexcepinfo, puArgErr, exactName, params)))
                                        info.name= exactName;
                                } 
                            }
                        }	
                        if( SUCCEEDED( ret ) )
                            info.flags= DISPATCH_METHOD;
                        
                        // try as property
                        if( FAILED( ret) && pdispparams->cArgs == 1)
                        {
                            if( FAILED( ret= doGetProperty( pdispparams, pvarResult, 
=====================================================================
Found a 7 line (140 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_mask.h

   0xfe, 0xf9, 0x01, 0x00, 0xfe, 0xff, 0x01, 0x00, 0xfc, 0xff, 0x00, 0x00,
   0xf8, 0x7f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 17 line (140 tokens) duplication in the following files: 
Starting at line 439 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx

	if ( !m_xMetaData->supportsGroupByUnrelated() && m_aCurrentColumns[SelectColumns] && !m_aCurrentColumns[SelectColumns]->hasByName(aName))
	{
		String sError(DBACORE_RESSTRING(RID_STR_COLUMN_MUST_VISIBLE));
		sError.SearchAndReplaceAscii("%name", aName);
		throw SQLException(sError,*this,SQLSTATE_GENERAL,1000,Any() );
	}

	// filter anhaengen
	// select ohne where und order by aufbauen
	::rtl::OUString aSql(m_aPureSelectSQL);
	::rtl::OUString aQuote	= m_xMetaData->getIdentifierQuoteString();
	if ( m_aCurrentColumns[SelectColumns]->hasByName(aName) )
	{
		Reference<XPropertySet> xColumn;
		m_aCurrentColumns[SelectColumns]->getByName(aName) >>= xColumn;
		OSL_ENSURE(xColumn->getPropertySetInfo()->hasPropertyByName(PROPERTY_REALNAME),"Property REALNAME not available!");
		OSL_ENSURE(xColumn->getPropertySetInfo()->hasPropertyByName(PROPERTY_TABLENAME),"Property TABLENAME not available!");
=====================================================================
Found a 9 line (140 tokens) duplication in the following files: 
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

    virtual TestEnum SAL_CALL getEnum() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Enum; }
    virtual rtl::OUString SAL_CALL getString() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.String; }
    virtual com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getInterface(  ) throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Interface; }
    virtual com::sun::star::uno::Any SAL_CALL getAny() throw(com::sun::star::uno::RuntimeException)
		{ return _aData.Any; }
    virtual com::sun::star::uno::Sequence< TestElement > SAL_CALL getSequence() throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 39 line (140 tokens) duplication in the following files: 
Starting at line 321 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FConnection.cxx
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MConnection.cxx

	return sal_True;
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::commit(  ) throw(SQLException, RuntimeException)
{
	// when you database does support transactions you should commit here
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::rollback(  ) throw(SQLException, RuntimeException)
{
	// same as commit but for the other case
}
// --------------------------------------------------------------------------------
sal_Bool SAL_CALL OConnection::isClosed(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );

	// just simple -> we are close when we are disposed taht means someone called dispose(); (XComponent)
	return OConnection_BASE::rBHelper.bDisposed;
}
// --------------------------------------------------------------------------------
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);

	// here we have to create the class with biggest interface
	// The answer is 42 :-)
	Reference< XDatabaseMetaData > xMetaData = m_xMetaData;
	if(!xMetaData.is())
	{
		xMetaData = new ODatabaseMetaData(this); // need the connection because it can return it
		m_xMetaData = xMetaData;
	}

	return xMetaData;
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::setReadOnly( sal_Bool /*readOnly*/ ) throw(SQLException, RuntimeException)
=====================================================================
Found a 20 line (140 tokens) duplication in the following files: 
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 491 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx

			pAny = &aCPArgs[aCPArgs.getLength() - 1];
			*pAny <<= configmgr::createPropertyValue(ASCII("sourcepath"), sSharePath);
			aCPArgs.realloc(aCPArgs.getLength() + 1);
			aCPArgs[aCPArgs.getLength() - 1] <<= configmgr::createPropertyValue(ASCII("updatepath"), sUserPath);
		}
		
		aCPArgs.realloc(aCPArgs.getLength() + 1);
		aCPArgs[aCPArgs.getLength() - 1] <<= configmgr::createPropertyValue(ASCII("servertype"), sServerType);

		Reference< XMultiServiceFactory > xCfgProvider(
			xORB->createInstanceWithArguments(
				::rtl::OUString::createFromAscii("com.sun.star.configuration.ConfigurationProvider"),
				aCPArgs),
			UNO_QUERY);
		if (!xCfgProvider.is())
		{
			::flush(cout);
			cerr << "Could not create the configuration provider !\n\n";
			return 3;
		}
=====================================================================
Found a 19 line (140 tokens) duplication in the following files: 
Starting at line 669 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/nodeimplobj.cxx
Starting at line 758 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/nodeimplobj.cxx

void DeferredSetNodeImpl::revertCommit(data::Accessor const& _aAccessor, SubtreeChange& rChanges)
{
	OSL_ENSURE(rChanges.isSetNodeChange(),"ERROR: Change type GROUP does not match set");
	OSL_ENSURE(	rChanges.getElementTemplateName() ==  getElementTemplate()->getName().toString(),
				"ERROR: Element template of change does not match the template of the set");
	OSL_ENSURE(	rChanges.getElementTemplateModule() ==  getElementTemplate()->getModule().toString(),
				"ERROR: Element template module of change does not match the template of the set");


	for(SubtreeChange::MutatingChildIterator it = rChanges.begin_changes(), stop = rChanges.end_changes();
		it != stop;
		++it)
	{
		Name aElementName = makeElementName(it->getNodeName(), Name::NoValidate());

		Element* pOriginal = getStoredElement(aElementName);

		if (Element* pNewElement = m_aChangedData.getElement(aElementName)) 
		{
=====================================================================
Found a 27 line (140 tokens) duplication in the following files: 
Starting at line 2185 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 2382 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx

	if (superType.getLength() > 0)
	{
		o << "  ret = bonobobridge::cpp_convert_b2u((";
		dumpUnoType(o, superType, sal_False, sal_False);
		o << "&) _u, (const ";
		dumpCorbaType(o, superType, sal_False, sal_False);
		o << "&) _b, bridge);\n";
	}

	for (i=0; i < fieldCount; i++)
	{
		fieldName = m_reader.getFieldName(i);
		fieldType = m_reader.getFieldType(i);
		cIndex = fieldName.indexOf("_reserved_identifier_");

		if (cIndex == 0)
			corbaFieldName = fieldName.copy(OString("_reserved_identifier_").getLength());
		else
			corbaFieldName = fieldName;
			
		if (isArray(fieldType))
			o << "  // fix me: no conversion of array types!\n";
		else
			o << "  if (ret)\n"
			  << "    ret = bonobobridge::cpp_convert_b2u(" 
			  << "_u." << fieldName.getStr() 
			  << ", _b." << corbaFieldName.getStr()
=====================================================================
Found a 40 line (140 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/BarChartTypeTemplate.cxx
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/LineChartTypeTemplate.cxx
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/StockChartTypeTemplate.cxx

        uno::makeAny( false );
}

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

::cppu::IPropertyArrayHelper & lcl_getInfoHelper()
{
    static ::cppu::OPropertyArrayHelper aArrayHelper(
        lcl_GetPropertySequence(),
        /* bSorted = */ sal_True );

    return aArrayHelper;
}

} // anonymous namespace
// ----------------------------------------

namespace chart
{
=====================================================================
Found a 28 line (140 tokens) duplication in the following files: 
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/Axis.cxx

        uno::makeAny( sal_Int32( 0 /* CHAXIS_MARK_NONE */ ) );
}

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );
        ::chart::CharacterProperties::AddPropertiesToVector( aProperties );
        ::chart::LineProperties::AddPropertiesToVector( aProperties );
        ::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}
=====================================================================
Found a 21 line (140 tokens) duplication in the following files: 
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx

        ng++;

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr )) // value
=====================================================================
Found a 35 line (140 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx

        new unsigned int[6]);

	typelib_TypeDescription * pTypeDescr = 0;
	// will be released by deleteException
	typelib_typedescriptionreference_getDescription( &pTypeDescr, pUnoExc->pType );

	void* pRTTI;
	{
	static ::osl::Mutex aMutex;
	::osl::Guard< ::osl::Mutex > guard( aMutex );

	static RTTIHolder * s_pRTTI = 0;
	if (! s_pRTTI)
	{
#ifdef LEAK_STATIC_DATA
		s_pRTTI = new RTTIHolder();
#else
		static RTTIHolder s_aRTTI;
		s_pRTTI = &s_aRTTI;
#endif
	}

	pRTTI = s_pRTTI->generateRTTI( (typelib_CompoundTypeDescription *)pTypeDescr );
	}

	// a must be
	OSL_ENSURE( sizeof(sal_Int32) == sizeof(void *), "### pointer size differs from sal_Int32!" );

	void * pCppExc = __Crun::ex_alloc( pTypeDescr->nSize );
	uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	uno_any_destruct( pUnoExc, 0 );

    unsigned int * thunk = thunkPtr.release();
=====================================================================
Found a 21 line (140 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx

        ng++;

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr )) // value
=====================================================================
Found a 18 line (140 tokens) duplication in the following files: 
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/miniapp/testapp.cxx
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/app.cxx

uno::Reference< XContentProviderManager > InitializeUCB( void )
{
    OUString path;
    if( osl_Process_E_None != osl_getExecutableFile( (rtl_uString**)&path ) )
    {
        InfoBox( NULL, String::CreateFromAscii( "Couldn't retrieve directory of executable" ) ).Execute();
        exit( 1 );
    }
    OSL_ASSERT( path.lastIndexOf( '/' ) >= 0 );


    ::rtl::OUStringBuffer bufServices( path.copy( 0, path.lastIndexOf( '/' )+1 ) );
    bufServices.appendAscii("services.rdb");
    OUString services = bufServices.makeStringAndClear();

    ::rtl::OUStringBuffer bufTypes( path.copy( 0, path.lastIndexOf( '/' )+1 ) );
    bufTypes.appendAscii("types.rdb");
    OUString types = bufTypes.makeStringAndClear();
=====================================================================
Found a 10 line (139 tokens) duplication in the following files: 
Starting at line 487 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 603 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        fg[0] >>= image_filter_shift;
                        fg[1] >>= image_filter_shift;
                        fg[2] >>= image_filter_shift;
                        fg[3] >>= image_filter_shift;

                        if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                        if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                        if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                        if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
                    }
=====================================================================
Found a 11 line (139 tokens) duplication in the following files: 
Starting at line 485 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 396 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                fg[3] += weight * fg_ptr[3];

                fg[0] >>= image_filter_shift;
                fg[1] >>= image_filter_shift;
                fg[2] >>= image_filter_shift;
                fg[3] >>= image_filter_shift;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
=====================================================================
Found a 23 line (139 tokens) duplication in the following files: 
Starting at line 1096 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
Starting at line 1260 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/cppcompskeleton.cxx

        if ( !standardout && pofs && ((std::ofstream*)pofs)->is_open()) {
            ((std::ofstream*)pofs)->close();
            delete pofs;
            OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, sal_False));
        }
    } catch(CannotDumpException& e) {

        std::cerr << "ERROR: " << e.m_message.getStr() << "\n";
        if ( !standardout ) {
            if (pofs && ((std::ofstream*)pofs)->is_open()) {
                ((std::ofstream*)pofs)->close();       
                delete pofs;
            }
            // remove existing type file if something goes wrong to ensure
            // consistency
            if (fileExists(compFileName))
                removeTypeFile(compFileName);
            
            // remove tmp file if something goes wrong
            removeTypeFile(tmpFileName);
        }
    }
}
=====================================================================
Found a 19 line (139 tokens) duplication in the following files: 
Starting at line 1573 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 1660 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

		OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlComboBoxModel") ) );
	Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
	
	Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
	if (xStyle.is())
	{
		StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () );
		pStyle->importBackgroundColorStyle( xControlModel );
		pStyle->importTextColorStyle( xControlModel );
		pStyle->importTextLineColorStyle( xControlModel );
		pStyle->importBorderStyle( xControlModel );
		pStyle->importFontStyle( xControlModel );
	}
	
	ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
							   _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
=====================================================================
Found a 31 line (139 tokens) duplication in the following files: 
Starting at line 1880 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshap.cxx
Starting at line 2002 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshap.cxx

	case XML_NAMESPACE_SVG:
	{
		if( IsXMLToken( rLocalName, XML_X1 ) )
		{
			GetImport().GetMM100UnitConverter().convertMeasure(maStart.X, rValue);
			return;
		}
		if( IsXMLToken( rLocalName, XML_Y1 ) )
		{
			GetImport().GetMM100UnitConverter().convertMeasure(maStart.Y, rValue);
			return;
		}
		if( IsXMLToken( rLocalName, XML_X2 ) )
		{
			GetImport().GetMM100UnitConverter().convertMeasure(maEnd.X, rValue);
			return;
		}
		if( IsXMLToken( rLocalName, XML_Y2 ) )
		{
			GetImport().GetMM100UnitConverter().convertMeasure(maEnd.Y, rValue);
			return;
		}
	}
	}

	SdXMLShapeContext::processAttribute( nPrefix, rLocalName, rValue );
}

//////////////////////////////////////////////////////////////////////////////

void SdXMLMeasureShapeContext::StartElement(const uno::Reference< xml::sax::XAttributeList>& xAttrList)
=====================================================================
Found a 36 line (139 tokens) duplication in the following files: 
Starting at line 1088 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/sunconvert.cxx
Starting at line 1238 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/sunconvert.cxx

g723_40_encoder(
	int		sl,
	int		in_coding,
	struct g72x_state *state_ptr)
{
	short		sei, sezi, se, sez;	/* ACCUM */
	short		d;			/* SUBTA */
	short		y;			/* MIX */
	short		sr;			/* ADDB */
	short		dqsez;			/* ADDC */
	short		dq, i;

	switch (in_coding) {	/* linearize input sample to 14-bit PCM */
	case AUDIO_ENCODING_ALAW:
		sl = alaw2linear(sl) >> 2;
		break;
	case AUDIO_ENCODING_ULAW:
		sl = ulaw2linear(sl) >> 2;
		break;
	case AUDIO_ENCODING_LINEAR:
		sl >>= 2;		/* sl of 14-bit dynamic range */
		break;
	default:
		return (-1);
	}

	sezi = predictor_zero(state_ptr);
	sez = sezi >> 1;
	sei = sezi + predictor_pole(state_ptr);
	se = sei >> 1;			/* se = estimated signal */

	d = sl - se;			/* d = estimation difference */

	/* quantize prediction difference */
	y = step_size(state_ptr);	/* adaptive quantizer step size */
	i = quantize(d, y, qtab_723_40, 15);	/* i = ADPCM code */
=====================================================================
Found a 18 line (139 tokens) duplication in the following files: 
Starting at line 4260 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 4385 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

    drawEllipse( aCheckRect );
    writeBuffer( " Q\n", 3 );
    setTextColor( replaceColor( rWidget.TextColor, rSettings.GetRadioCheckTextColor() ) );
    drawText( aTextRect, rBox.m_aText, rBox.m_nTextStyle );

    pop();

    OStringBuffer aDA( 256 );
    appendNonStrokingColor( replaceColor( rWidget.TextColor, rSettings.GetRadioCheckTextColor() ), aDA );
    sal_Int32 nBest = getBestBuiltinFont( Font( String( RTL_CONSTASCII_USTRINGPARAM( "ZapfDingbats" ) ), aFont.GetSize() ) );
    aDA.append( ' ' );
    aDA.append( m_aBuiltinFonts[nBest].getNameObject() );
    aDA.append( " 0 Tf" );
    rBox.m_aDAString = aDA.makeStringAndClear();
//to encrypt this (el)
    rBox.m_aMKDict = "/CA";
//after this assignement, to m_aMKDic cannot be added anything
    rBox.m_aMKDictCAString = "l";
=====================================================================
Found a 19 line (139 tokens) duplication in the following files: 
Starting at line 2029 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outmap.cxx
Starting at line 2162 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outmap.cxx

		ENTER4( rMapModeSource, rMapModeDest );

		return Rectangle( fn5( rRectSource.Left() + aMapResSource.mnMapOfsX,
							   aMapResSource.mnMapScNumX, aMapResDest.mnMapScDenomX,
							   aMapResSource.mnMapScDenomX, aMapResDest.mnMapScNumX ) -
						  aMapResDest.mnMapOfsX,
						  fn5( rRectSource.Top() + aMapResSource.mnMapOfsY,
							   aMapResSource.mnMapScNumY, aMapResDest.mnMapScDenomY,
							   aMapResSource.mnMapScDenomY, aMapResDest.mnMapScNumY ) -
						  aMapResDest.mnMapOfsY,
						  fn5( rRectSource.Right() + aMapResSource.mnMapOfsX,
							   aMapResSource.mnMapScNumX, aMapResDest.mnMapScDenomX,
							   aMapResSource.mnMapScDenomX, aMapResDest.mnMapScNumX ) -
						  aMapResDest.mnMapOfsX,
						  fn5( rRectSource.Bottom() + aMapResSource.mnMapOfsY,
							   aMapResSource.mnMapScNumY, aMapResDest.mnMapScDenomY,
							   aMapResSource.mnMapScDenomY, aMapResDest.mnMapScNumY ) -
						  aMapResDest.mnMapOfsY );
	}
=====================================================================
Found a 22 line (139 tokens) duplication in the following files: 
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx
Starting at line 878 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx

								nSumB += rCol.GetBlue();
							}
						}

						aCol.SetRed( (BYTE) ( nSumR * fArea_1 ) );
						aCol.SetGreen( (BYTE) ( nSumG * fArea_1 ) );
						aCol.SetBlue( (BYTE) ( nSumB * fArea_1 ) );

						for( nY = nY1; nY <= nY2; nY++ )
							for( nX = nX1; nX <= nX2; nX++ )
								pWriteAcc->SetPixel( nY, nX, aCol );

						nX1 += nTileWidth; nX2 += nTileWidth;

						if( nX2 >= nWidth )
						{
							nX2 = nWidth - 1;
							fArea_1 = 1.0 / ( ( nX2 - nX1 + 1 ) * ( nY2 - nY1 + 1 ) );
						}
					}
					while( nX1 < nWidth );
				}
=====================================================================
Found a 34 line (139 tokens) duplication in the following files: 
Starting at line 1435 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1883 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

                                aEvent.PropertyName = rName;
                                aEvent.OldValue     = aOldValue;
                                aEvent.NewValue     = rValue.Value;

                                aChanges.getArray()[ nChanged ] = aEvent;
                                nChanged++;
                            }
                        }
                        catch ( beans::UnknownPropertyException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( lang::WrappedTargetException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( beans::PropertyVetoException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( lang::IllegalArgumentException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                    }
                    else
                    {
                        aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
                    }
                }
            }
=====================================================================
Found a 25 line (139 tokens) duplication in the following files: 
Starting at line 888 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1000 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

            rSMgr, rProperties, aData, pProvider, rContentId );
    }
    else
    {
        rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
            = new ::ucbhelper::PropertyValueSet( rSMgr );

        sal_Int32 nCount = rProperties.getLength();
        if ( nCount )
        {
            const beans::Property* pProps = rProperties.getConstArray();
            for ( sal_Int32 n = 0; n < nCount; ++n )
                xRow->appendVoid( pProps[ n ] );
        }

        return uno::Reference< sdbc::XRow >( xRow.get() );
    }
}

//=========================================================================
// static
uno::Reference< sdbc::XRow > Content::getPropertyValues(
                const uno::Reference< lang::XMultiServiceFactory >& rSMgr,
                const uno::Sequence< beans::Property >& rProperties,
                const ContentProperties& rData,
=====================================================================
Found a 34 line (139 tokens) duplication in the following files: 
Starting at line 1416 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1883 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

                                aEvent.PropertyName = rName;
                                aEvent.OldValue     = aOldValue;
                                aEvent.NewValue     = rValue.Value;

                                aChanges.getArray()[ nChanged ] = aEvent;
                                nChanged++;
                            }
                        }
                        catch ( beans::UnknownPropertyException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( lang::WrappedTargetException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( beans::PropertyVetoException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( lang::IllegalArgumentException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                    }
                    else
                    {
                        aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
                    }
                }
            }
=====================================================================
Found a 32 line (139 tokens) duplication in the following files: 
Starting at line 4338 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindows.cxx
Starting at line 4651 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindows.cxx

::com::sun::star::uno::Any VCLXCurrencyField::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException)
{
	::vos::OGuard aGuard( GetMutex() );

	::com::sun::star::uno::Any aProp;
	FormatterBase* pFormatter = GetFormatter();
	if ( pFormatter )
	{
		sal_uInt16 nPropType = GetPropertyId( PropertyName );
		switch ( nPropType )
		{
			case BASEPROPERTY_VALUE_DOUBLE:
			{
				aProp <<= (double) getValue();
			}
			break;
			case BASEPROPERTY_VALUEMIN_DOUBLE:
			{
				aProp <<= (double) getMin();
			}
			break;
			case BASEPROPERTY_VALUEMAX_DOUBLE:
			{
				aProp <<= (double) getMax();
			}
			break;
			case BASEPROPERTY_VALUESTEP_DOUBLE:
			{
				aProp <<= (double) getSpinSize();
			}
			break;
			case BASEPROPERTY_CURRENCYSYMBOL:
=====================================================================
Found a 26 line (139 tokens) duplication in the following files: 
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx
Starting at line 1312 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx

    if( rOpt.IsPrintSingleJobs() )
    {
        SfxPrinter* pTmpPrinter = pSh->getIDocumentDeviceAccess()->getPrinter( true );
        pTmpPrinter->SetEndPrintHdl( aSfxSaveLnk );
        if ( !bUserBreak && !pTmpPrinter->IsJobActive() )     //Schon zu spaet?
            aSfxSaveLnk.Call( pTmpPrinter );
    }

    rOpt.nMergeCnt = 0;
    rOpt.nMergeAct = 0;

    nMergeType = DBMGR_INSERT;

    SwDocShell* pDocSh = rView.GetDocShell();
    SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst(pDocSh);

    while (pTmpFrm)     // Alle Views Invalidieren
    {
        SwView *pVw = PTR_CAST(SwView, pTmpFrm->GetViewShell());
        if (pVw)
            pVw->GetEditWin().Invalidate();
        pTmpFrm = pTmpFrm->GetNext(*pTmpFrm, pDocSh);
    }

    return bRet;
}
=====================================================================
Found a 8 line (139 tokens) duplication in the following files: 
Starting at line 606 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx
Starting at line 995 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

    static BYTE __READONLY_DATA aURLData1[] = {
        0,0,0,0,        // len of struct
        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 23 line (139 tokens) duplication in the following files: 
Starting at line 3861 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3074 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

	if( pModel->IsWriter() )
	{
		if(GetAnchorPos().X() || GetAnchorPos().Y())
		{
			aTranslate -= basegfx::B2DTuple(GetAnchorPos().X(), GetAnchorPos().Y());
		}
	}

	// force MapUnit to 100th mm
	SfxMapUnit eMapUnit = pModel->GetItemPool().GetMetric(0);
	if(eMapUnit != SFX_MAPUNIT_100TH_MM)
	{
		switch(eMapUnit)
		{
			case SFX_MAPUNIT_TWIP :
			{
				// postion
				aTranslate.setX(ImplTwipsToMM(aTranslate.getX()));
				aTranslate.setY(ImplTwipsToMM(aTranslate.getY()));

				// size
				aScale.setX(ImplTwipsToMM(aScale.getX()));
				aScale.setY(ImplTwipsToMM(aScale.getY()));
=====================================================================
Found a 14 line (139 tokens) duplication in the following files: 
Starting at line 792 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/winmtf.cxx
Starting at line 829 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/winmtf.cxx

			else if ( eType == GDI_PEN )
			{
				Size aSize( ((WinMtfLineStyle*)pStyle)->aLineInfo.GetWidth(), 0 );
				((WinMtfLineStyle*)pStyle)->aLineInfo.SetWidth( ImplMap( aSize ).Width() );
				if ( ((WinMtfLineStyle*)pStyle)->aLineInfo.GetStyle() == LINE_DASH )
				{
					aSize.Width() += 1;
					long nDotLen = ImplMap( aSize ).Width();
					((WinMtfLineStyle*)pStyle)->aLineInfo.SetDistance( nDotLen );
					((WinMtfLineStyle*)pStyle)->aLineInfo.SetDotLen( nDotLen );
					((WinMtfLineStyle*)pStyle)->aLineInfo.SetDashLen( nDotLen * 4 );
				}
			}
		}
=====================================================================
Found a 14 line (139 tokens) duplication in the following files: 
Starting at line 800 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/implementationregistration/implreg.cxx
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/implementationregistration/implreg.cxx

            xKey = xImplKey->openKey( pool.slash_UNO );
            if (xKey.is())
            {
                Sequence< Reference < XRegistryKey > > subKeys2 = xKey->openKeys();

                if (subKeys2.getLength())
                {
                    const Reference < XRegistryKey > * pSubKeys2 = subKeys2.getConstArray();
						
                    for (sal_Int32 j = 0; j < subKeys2.getLength(); j++)
                    {
                        if (pSubKeys2[j]->getKeyName() != (xImplKey->getKeyName() + pool.slash_UNO_slash_SERVICES) &&
                            pSubKeys2[j]->getKeyName() != (xImplKey->getKeyName() + pool.slash_UNO_slash_REGISTRY_LINKS ) &&
                            pSubKeys2[j]->getKeyName() != (xImplKey->getKeyName() + pool.slash_UNO_slash_SINGLETONS ))
=====================================================================
Found a 13 line (139 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crcomp.cxx
Starting at line 387 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/criface.cxx

	virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException);
	virtual void SAL_CALL acquire() throw();
	virtual void SAL_CALL release() throw();
	
	// XTypeProvider
	virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException);
	virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException);
	
	// XIdlMember
    virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException);
    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
	// XIdlMethod
    virtual Reference< XIdlClass > SAL_CALL getReturnType() throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 8 line (139 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unomodule.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/unomodule.cxx

void SAL_CALL SwUnoModule::dispatchWithNotification( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchResultListener >& xListener ) throw (::com::sun::star::uno::RuntimeException)
{
    // there is no guarantee, that we are holded alive during this method!
    // May the outside dispatch container will be updated by a CONTEXT_CHANGED
    // asynchronous ...
    ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xThis(static_cast< ::com::sun::star::frame::XNotifyingDispatch* >(this));

    ::vos::OGuard aGuard( Application::GetSolarMutex() );
=====================================================================
Found a 31 line (139 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/drawvie4.cxx
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/drawvie4.cxx

uno::Reference<datatransfer::XTransferable> ScDrawView::CopyToTransferable()
{
	BOOL bAnyOle, bOneOle;
	const SdrMarkList& rMarkList = GetMarkedObjectList();
	lcl_CheckOle( rMarkList, bAnyOle, bOneOle );

	// update ScGlobal::pDrawClipDocShellRef
	ScDrawLayer::SetGlobalDrawPersist( ScTransferObj::SetDrawClipDoc( bAnyOle ) );
	SdrModel* pModel = GetAllMarkedModel();
	ScDrawLayer::SetGlobalDrawPersist(NULL);

	//	Charts now always copy their data in addition to the source reference, so
	//	there's no need to call SchDLL::Update for the charts in the clipboard doc.
	//	Update with the data (including NumberFormatter) from the live document would
	//	also store the NumberFormatter in the clipboard chart (#88749#)
	// lcl_RefreshChartData( pModel, pViewData->GetDocument() );

	ScDocShell* pDocSh = pViewData->GetDocShell();

	TransferableObjectDescriptor aObjDesc;
	pDocSh->FillTransferableObjectDescriptor( aObjDesc );
	aObjDesc.maDisplayName = pDocSh->GetMedium()->GetURLObject().GetURLNoPass();
	// maSize is set in ScDrawTransferObj ctor

	ScDrawTransferObj* pTransferObj = new ScDrawTransferObj( pModel, pDocSh, aObjDesc );
	uno::Reference<datatransfer::XTransferable> xTransferable( pTransferObj );

	if ( ScGlobal::pDrawClipDocShellRef )
	{
        pTransferObj->SetDrawPersist( &(*ScGlobal::pDrawClipDocShellRef) );    // keep persist for ole objects alive
	}
=====================================================================
Found a 17 line (139 tokens) duplication in the following files: 
Starting at line 886 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/autofmt.cxx
Starting at line 978 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/tautofmt.cxx

void AutoFmtPreview::CalcLineMap()
{
    for( size_t nRow = 0; nRow < 5; ++nRow )
    {
        for( size_t nCol = 0; nCol < 5; ++nCol )
        {
            svx::frame::Style aStyle;

            const SvxBoxItem& rItem = GetBoxItem( nCol, nRow );
            lclSetStyleFromBorder( aStyle, rItem.GetLeft() );
            maArray.SetCellStyleLeft( nCol, nRow, aStyle );
            lclSetStyleFromBorder( aStyle, rItem.GetRight() );
            maArray.SetCellStyleRight( nCol, nRow, aStyle );
            lclSetStyleFromBorder( aStyle, rItem.GetTop() );
            maArray.SetCellStyleTop( nCol, nRow, aStyle );
            lclSetStyleFromBorder( aStyle, rItem.GetBottom() );
            maArray.SetCellStyleBottom( nCol, nRow, aStyle );
=====================================================================
Found a 22 line (139 tokens) duplication in the following files: 
Starting at line 598 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/drwtrans.cxx
Starting at line 849 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx

            SfxObjectShell*   pEmbObj = (SfxObjectShell*) pObject;
            try
            {
                ::utl::TempFile     aTempFile;
                aTempFile.EnableKillingFile();
                uno::Reference< embed::XStorage > xWorkStore =
                    ::comphelper::OStorageHelper::GetStorageFromURL( aTempFile.GetURL(), embed::ElementModes::READWRITE );

                // write document storage
                pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, sal_False );
                // mba: no BaseURL for clipboard
                SfxMedium aMedium( xWorkStore, String() );
                bRet = pEmbObj->DoSaveObjectAs( aMedium, FALSE );
                pEmbObj->DoSaveCompleted();

                uno::Reference< embed::XTransactedObject > xTransact( xWorkStore, uno::UNO_QUERY );
                if ( xTransact.is() )
                    xTransact->commit();

                SvStream* pSrcStm = ::utl::UcbStreamHelper::CreateStream( aTempFile.GetURL(), STREAM_READ );
                if( pSrcStm )
                {
=====================================================================
Found a 24 line (139 tokens) duplication in the following files: 
Starting at line 1838 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePageHeader.cxx

uno::Reference< XAccessibleStateSet > SAL_CALL ScAccessiblePageHeader::getAccessibleStateSet()
								throw (uno::RuntimeException)
{
	ScUnoGuard aGuard;
	uno::Reference<XAccessibleStateSet> xParentStates;
	if (getAccessibleParent().is())
	{
		uno::Reference<XAccessibleContext> xParentContext = getAccessibleParent()->getAccessibleContext();
		xParentStates = xParentContext->getAccessibleStateSet();
	}
	utl::AccessibleStateSetHelper* pStateSet = new utl::AccessibleStateSetHelper();
	if (IsDefunc(xParentStates))
		pStateSet->AddState(AccessibleStateType::DEFUNC);
    else
    {
	    pStateSet->AddState(AccessibleStateType::ENABLED);
	    pStateSet->AddState(AccessibleStateType::OPAQUE);
	    if (isShowing())
		    pStateSet->AddState(AccessibleStateType::SHOWING);
	    if (isVisible())
		    pStateSet->AddState(AccessibleStateType::VISIBLE);
    }
	return pStateSet;
}
=====================================================================
Found a 70 line (139 tokens) duplication in the following files: 
Starting at line 815 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx
Starting at line 1376 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx

		FT_FuncFix2,		//  166 D360 (US-Version)
		FT_NotImpl,			//  167
		FT_NotImpl,			//  168
		FT_NotImpl,			//  169
		FT_NotImpl,			//  170
		FT_NotImpl,			//  171
		FT_NotImpl,			//  172
		FT_NotImpl,			//  173
		FT_NotImpl,			//  174
		FT_NotImpl,			//  175
		FT_NotImpl,			//  176
		FT_NotImpl,			//  177
		FT_NotImpl,			//  178
		FT_NotImpl,			//  179
		FT_NotImpl,			//  180
		FT_NotImpl,			//  181
		FT_NotImpl,			//  182
		FT_NotImpl,			//  183
		FT_NotImpl,			//  184
		FT_NotImpl,			//  185
		FT_FuncVar,			//  186 Solver               <-------- neu! -
		FT_NotImpl,			//  187
		FT_NotImpl,			//  188
		FT_NotImpl,			//  189
		FT_NotImpl,			//  190
		FT_NotImpl,			//  191
		FT_NotImpl,			//  192
		FT_NotImpl,			//  193
		FT_NotImpl,			//  194
		FT_NotImpl,			//  195
		FT_NotImpl,			//  196
		FT_NotImpl,			//  197
		FT_NotImpl,			//  198
		FT_NotImpl,			//  199
		FT_NotImpl,			//  200
		FT_NotImpl,			//  201
		FT_NotImpl,			//  202
		FT_NotImpl,			//  203
		FT_NotImpl,			//  204
		FT_NotImpl,			//  205
		FT_NotImpl,			//  206
		FT_NotImpl,			//  207
		FT_NotImpl,			//  208
		FT_NotImpl,			//  209
		FT_NotImpl,			//  210
		FT_NotImpl,			//  211
		FT_NotImpl,			//  212
		FT_NotImpl,			//  213
		FT_NotImpl,			//  214
		FT_NotImpl,			//  215
		FT_NotImpl,			//  216
		FT_NotImpl,			//  217
		FT_NotImpl,			//  218
		FT_NotImpl,			//  219
		FT_NotImpl,			//  220
		FT_NotImpl,			//  221
		FT_NotImpl,			//  222
		FT_NotImpl,			//  223
		FT_NotImpl,			//  224
		FT_NotImpl,			//  225
		FT_NotImpl,			//  226
		FT_NotImpl,			//  227
		FT_NotImpl,			//  228
		FT_NotImpl,			//  229
		FT_NotImpl,			//  230
		FT_NotImpl,			//  231
		FT_NotImpl,			//  232
		FT_NotImpl,			//  233
		FT_NotImpl,			//  234
		FT_NotImpl,			//  235
=====================================================================
Found a 32 line (139 tokens) duplication in the following files: 
Starting at line 1931 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 2010 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

		ScMatrixRef pResMat = MatPow(pMat1, pMat2);
		if (!pResMat)
			SetNoValue();
		else
			PushMatrix(pResMat);
	}
	else if (pMat1 || pMat2)
	{
		double fVal;
		BOOL bFlag;
		ScMatrixRef pMat = pMat1;
		if (!pMat)
		{
			fVal = fVal1;
			pMat = pMat2;
			bFlag = TRUE;			// double - Matrix
		}
		else
		{
			fVal = fVal2;
			bFlag = FALSE;			// Matrix - double
		}
        SCSIZE nC, nR;
		pMat->GetDimensions(nC, nR);
		ScMatrixRef pResMat = GetNewMat(nC, nR);
		if (pResMat)
		{
			SCSIZE nCount = nC * nR;
			if (bFlag)
			{	for ( SCSIZE i = 0; i < nCount; i++ )
					if (pMat->IsValue(i))
						pResMat->PutDouble(pow(fVal,pMat->GetDouble(i)), i);
=====================================================================
Found a 45 line (139 tokens) duplication in the following files: 
Starting at line 728 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/strtmpl.c
Starting at line 782 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/strtmpl.c

    sal_uInt64  nValue;

    /* Radix must be valid */
    if ( (nRadix < RTL_STR_MIN_RADIX) || (nRadix > RTL_STR_MAX_RADIX) )
        nRadix = 10;

    /* is value negativ */
    if ( n < 0 )
    {
        *pStr = '-';
        pStr++;
        nLen++;
        nValue = -n; /* FIXME this code is not portable for
                        n == -9223372036854775808 (smallest negative value for
                        sal_Int64) */
    }
    else
        nValue = n;

    /* create a recursive buffer with all values, except the last one */
    do
    {
        sal_Char nDigit = (sal_Char)(nValue % nRadix);
        nValue /= nRadix;
        if ( nDigit > 9 )
            *pBuf = (nDigit-10) + 'a';
        else
            *pBuf = (nDigit + '0' );
        pBuf++;
    }
    while ( nValue > 0 );

    /* copy the values in the right direction into the destination buffer */
    do
    {
        pBuf--;
        *pStr = *pBuf;
        pStr++;
        nLen++;
    }
    while ( pBuf != aBuf );
    *pStr = 0;

    return nLen;
}
=====================================================================
Found a 19 line (139 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx

    void test_encode_and_decode(sal_uInt8 _nKeyValue, sal_uInt8 _nArgValue, rtl::OString const& _sPlainTextStr)
        {
            rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB);
            CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL);

            sal_uInt32     nKeyLen = 16;
            sal_uInt8     *pKeyBuffer = new sal_uInt8[ nKeyLen ];
            memset(pKeyBuffer, 0, nKeyLen);
            pKeyBuffer[0] = _nKeyValue;

            sal_uInt32     nArgLen = 16;
            sal_uInt8     *pArgBuffer = new sal_uInt8[ nArgLen ];
            memset(pArgBuffer, 0, nArgLen);
            pArgBuffer[0] = _nArgValue;

            t_print(T_VERBOSE, "  init Key: %s\n", createHex(pKeyBuffer, nKeyLen).getStr());
            t_print(T_VERBOSE, "  init Arg: %s\n", createHex(pArgBuffer, nArgLen).getStr());

            rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionBoth, pKeyBuffer, nKeyLen, pArgBuffer, nArgLen);
=====================================================================
Found a 18 line (139 tokens) duplication in the following files: 
Starting at line 423 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/module/osl_Module.cxx

}

/** detete a temp test file using OUString name.
*/
inline void deleteTestFile( const ::rtl::OUString filename )
{
	::rtl::OUString	aPathURL   = filename.copy( 0 );
	::osl::FileBase::RC	nError;
	
	if ( !isURL( filename ) )
		::osl::FileBase::getFileURLFromSystemPath( filename, aPathURL ); //convert if not full qualified URL
		
	nError = ::osl::File::setAttributes( aPathURL, Attribute_GrpWrite| Attribute_OwnWrite| Attribute_OthWrite ); // if readonly, make writtenable. 
	CPPUNIT_ASSERT_MESSAGE( "In deleteTestFile Function: set writtenable ", ( ::osl::FileBase::E_None == nError ) || ( ::osl::FileBase::E_NOENT == nError ) );	
	
	nError = ::osl::File::remove( aPathURL );
	CPPUNIT_ASSERT_MESSAGE( "In deleteTestFile Function: remove ", ( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::FileBase::E_NOENT ) );	
}
=====================================================================
Found a 25 line (139 tokens) duplication in the following files: 
Starting at line 3826 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 9549 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_007_Int64 : public CppUnit::TestFixture
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
            OString                expVal( aStrBuf.getStr() );
=====================================================================
Found a 5 line (139 tokens) duplication in the following files: 
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1428 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 6 line (139 tokens) duplication in the following files: 
Starting at line 1127 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1161 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
     0, 0,17,17,17, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0dd0 - 0ddf
=====================================================================
Found a 7 line (139 tokens) duplication in the following files: 
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24f0 - 24ff

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2500 - 250f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2510 - 251f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2520 - 252f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2530 - 253f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2540 - 254f
=====================================================================
Found a 5 line (139 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2330 - 233f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2340 - 234f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2350 - 235f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2360 - 236f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,10,10,// 2370 - 237f
=====================================================================
Found a 5 line (139 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0, 0, 0,// 2390 - 239f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23a0 - 23af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23b0 - 23bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23c0 - 23cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23d0 - 23df
=====================================================================
Found a 31 line (139 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarwrapper.cxx
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/statusbarwrapper.cxx

void SAL_CALL StatusBarWrapper::setSettings( const Reference< XIndexAccess >& xSettings ) throw ( RuntimeException )
{
    ResetableGuard aLock( m_aLock );
    
    if ( m_bDisposed )
        throw DisposedException();

    if ( xSettings.is() )
    {
        // Create a copy of the data if the container is not const
        Reference< XIndexReplace > xReplace( xSettings, UNO_QUERY );
        if ( xReplace.is() )
            m_xConfigData = Reference< XIndexAccess >( static_cast< OWeakObject * >( new ConstItemContainer( xSettings ) ), UNO_QUERY );
        else
            m_xConfigData = xSettings;

        if ( m_xConfigSource.is() && m_bPersistent )
        {
            OUString aResourceURL( m_aResourceURL );
            Reference< XUIConfigurationManager > xUICfgMgr( m_xConfigSource );
            
            aLock.unlock();
            
            try
            {
                xUICfgMgr->replaceSettings( aResourceURL, m_xConfigData );
            }
            catch( NoSuchElementException& )
            {
            }
        }
=====================================================================
Found a 18 line (139 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ComboBox.cxx
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/RadioButton.cxx

namespace frm
{
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::form::binding;

//==================================================================
//------------------------------------------------------------------------------
InterfaceRef SAL_CALL ORadioButtonControl_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) throw (RuntimeException)
=====================================================================
Found a 22 line (139 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

	pBuffer[nStart + 2] = OneByte;
}

void Base64Codec::decodeBase64(uno::Sequence< sal_uInt8 >& aBuffer, const rtl::OUString& sBuffer)
{
	sal_Int32 nFirstLength((sBuffer.getLength() / 4) * 3);
	sal_uInt8* pBuffer = new sal_uInt8[nFirstLength];
	sal_Int32 nSecondLength(0);
	sal_Int32 nLength(0);
	sal_Int32 i = 0;
	sal_Int32 k = 0;
	while (i < sBuffer.getLength())
	{
		FourByteToThreeByte (pBuffer, nLength, k, sBuffer.copy(i, 4));
		nSecondLength += nLength;
		nLength = 0;
		i += 4;
		k += 3;
	}
	aBuffer = uno::Sequence<sal_uInt8>(pBuffer, nSecondLength);
	delete[] pBuffer;
}
=====================================================================
Found a 5 line (139 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2330 - 233f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2340 - 234f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2350 - 235f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2360 - 236f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,10,10,// 2370 - 237f
=====================================================================
Found a 27 line (139 tokens) duplication in the following files: 
Starting at line 1278 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1169 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/pdf/pdfexport.cxx

				}
				break;

				case( META_COMMENT_ACTION ):
				{
					const MetaCommentAction*	pA = (const MetaCommentAction*) pAction;
					String						aSkipComment;

					if( pA->GetComment().CompareIgnoreCaseToAscii( "XGRAD_SEQ_BEGIN" ) == COMPARE_EQUAL )
					{
						const MetaGradientExAction*	pGradAction = NULL;
						sal_Bool					bDone = sal_False;

						while( !bDone && ( ++i < nCount ) )
						{
							pAction = rMtf.GetAction( i );

							if( pAction->GetType() == META_GRADIENTEX_ACTION )
								pGradAction = (const MetaGradientExAction*) pAction;
							else if( ( pAction->GetType() == META_COMMENT_ACTION ) &&
									( ( (const MetaCommentAction*) pAction )->GetComment().CompareIgnoreCaseToAscii( "XGRAD_SEQ_END" ) == COMPARE_EQUAL ) )
							{
								bDone = sal_True;
							}
						}

						if( pGradAction )
=====================================================================
Found a 14 line (139 tokens) duplication in the following files: 
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/EDatabaseMetaData.cxx
Starting at line 954 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);
=====================================================================
Found a 42 line (139 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LNoException.cxx
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ENoException.cxx

		for( ; i < nLen; ++i )
		{
			if (bInString)
			{
				// Wenn jetzt das String-Delimiter-Zeichen auftritt ...
				if ( (*this).GetChar(i) == cStrDel )
				{
					if ((i+1 < nLen) && ((*this).GetChar(i+1) == cStrDel))
					{
						// Verdoppeltes String-Delimiter-Zeichen:
						++i;	// kein String-Ende, naechstes Zeichen ueberlesen.

						_rStr += (*this).GetChar(i);	// Zeichen gehoert zum Resultat-String
					}
					else
					{
						// String-Ende
						bInString = FALSE;
					}
				}
				else
				{
					_rStr += (*this).GetChar(i);	// Zeichen gehoert zum Resultat-String
				}

			}
			else
			{
				// Stimmt das Tokenzeichen ueberein, dann erhoehe nTok
				if ( (*this).GetChar(i) == cTok )
				{
					// Vorzeitiger Abbruch der Schleife moeglich, denn
					// wir haben, was wir wollten.
					nStartPos = i+1;
					break;
				}
				else
				{
					_rStr += (*this).GetChar(i);	// Zeichen gehoert zum Resultat-String
				}
			}
		}
=====================================================================
Found a 14 line (139 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx
Starting at line 954 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);
=====================================================================
Found a 29 line (139 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx

		COUT << aStr << endl;
	}
	volatile int dummy = 0;
}

//=============================================================================

inline void operator <<= (::rtl::OUString& _rUnicodeString, const sal_Char* _pAsciiString)
{
	_rUnicodeString = ::rtl::OUString::createFromAscii(_pAsciiString);
}

inline void operator <<= (::rtl::OUString& _rUnicodeString, const ::rtl::OString& _rAsciiString)
{
	_rUnicodeString <<= _rAsciiString.getStr();
}

inline void operator <<= (Any& _rUnoValue, const sal_Char* _pAsciiString)
{
	_rUnoValue <<= ::rtl::OUString::createFromAscii(_pAsciiString);
}

inline void operator <<= (Any& _rUnoValue, const ::rtl::OString& _rAsciiString)
{
	_rUnoValue <<= _rAsciiString.getStr();
}

//=============================================================================
void test_read_access(Reference< XInterface >& xIface, const Reference< XMultiServiceFactory > &xMSF);
=====================================================================
Found a 21 line (139 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx

		GuardedValueSetUpdateAccess lock( rNode );

		Tree const aTree( lock.getTree() );
		NodeRef const aNode( lock.getNode() );

		Name aChildName = validateElementName(sName,aTree,aNode);

		ElementRef aElement( aTree.getElement(aNode,aChildName) );

		if (!aElement.isValid())
		{
			OSL_ENSURE(!configuration::hasChildOrElement(aTree,aNode,aChildName),"ERROR: Configuration: Existing Set element not found by implementation");

		    OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot replace Set Element. Element '") );
			sMessage += sName;
			sMessage += OUString( RTL_CONSTASCII_USTRINGPARAM("' not found in Set ")  );
			sMessage += aTree.getAbsolutePath(aNode).toString();

			Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
			throw NoSuchElementException( sMessage, xContext );
		}
=====================================================================
Found a 18 line (139 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/VCartesianCoordinateSystem.cxx
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/VCartesianCoordinateSystem.cxx

void VCartesianCoordinateSystem::updateScalesAndIncrementsOnAxes()
{
    if(!m_xLogicTargetForAxes.is() || !m_xFinalTarget.is() || !m_xCooSysModel.is() )
        return;

    sal_Int32 nDimensionCount = m_xCooSysModel->getDimension();
    bool bSwapXAndY = this->getPropertySwapXAndYAxis();

    tVAxisMap::iterator aIt( m_aAxisMap.begin() );
    tVAxisMap::const_iterator aEnd( m_aAxisMap.end() );
    for( ; aIt != aEnd; ++aIt )
    {
        VAxisBase* pVAxis = aIt->second.get();
        if( pVAxis )
        {
            sal_Int32 nDimensionIndex = aIt->first.first;
            sal_Int32 nAxisIndex = aIt->first.second;
            pVAxis->setExplicitScaleAndIncrement( this->getExplicitScale( nDimensionIndex, nAxisIndex ), this->getExplicitIncrement( nDimensionIndex, nAxisIndex ) );
=====================================================================
Found a 34 line (139 tokens) duplication in the following files: 
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_spritecanvas.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_spritecanvas.cxx

        SpriteCanvasBaseT::disposing();
    }

    ::sal_Bool SAL_CALL SpriteCanvas::showBuffer( ::sal_Bool bUpdateAll ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // avoid repaints on hidden window (hidden: not mapped to
        // screen). Return failure, since the screen really has _not_
        // been updated (caller should try again later)
        return !mbIsVisible ? false : SpriteCanvasBaseT::showBuffer( bUpdateAll );
    }

    ::sal_Bool SAL_CALL SpriteCanvas::switchBuffer( ::sal_Bool bUpdateAll ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // avoid repaints on hidden window (hidden: not mapped to
        // screen). Return failure, since the screen really has _not_
        // been updated (caller should try again later)
        return !mbIsVisible ? false : SpriteCanvasBaseT::switchBuffer( bUpdateAll );
    }

    sal_Bool SAL_CALL SpriteCanvas::updateScreen( sal_Bool bUpdateAll ) throw (uno::RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        // avoid repaints on hidden window (hidden: not mapped to
        // screen). Return failure, since the screen really has _not_
        // been updated (caller should try again later)
        return !mbIsVisible ? false : maCanvasHelper.updateScreen(
            ::basegfx::unotools::b2IRectangleFromAwtRectangle(maBounds),
            bUpdateAll,
            mbSurfaceDirty );
=====================================================================
Found a 19 line (139 tokens) duplication in the following files: 
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 22 line (139 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx
Starting at line 342 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

        *pPT++ = 'I';

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut 
                    && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 19 line (139 tokens) duplication in the following files: 
Starting at line 111 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));

	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );

		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 22 line (138 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h

        span_pattern_filter_gray(alloc_type& alloc,
                                 const rendering_buffer& src, 
                                 interpolator_type& inter,
                                 const image_filter_lut& filter) :
            base_type(alloc, src, color_type(0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 9 line (138 tokens) duplication in the following files: 
Starting at line 603 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 398 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                fg[0] >>= image_filter_shift;
                fg[1] >>= image_filter_shift;
                fg[2] >>= image_filter_shift;
                fg[3] >>= image_filter_shift;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
=====================================================================
Found a 17 line (138 tokens) duplication in the following files: 
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        weight = x_hr * y_hr;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }
=====================================================================
Found a 33 line (138 tokens) duplication in the following files: 
Starting at line 265 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/xmlnumfe.cxx
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/xmlnumfe.cxx

	sPrefix( rPrefix ),
	pFormatter( NULL ),
	pCharClass( NULL ),
	pLocaleData( NULL )
{
	//	supplier must be SvNumberFormatsSupplierObj
	SvNumberFormatsSupplierObj* pObj =
					SvNumberFormatsSupplierObj::getImplementation( rSupp );
	if (pObj)
		pFormatter = pObj->GetNumberFormatter();

	if ( pFormatter )
	{
		pCharClass = new CharClass( pFormatter->GetServiceManager(),
			pFormatter->GetLocale() );
		pLocaleData = new LocaleDataWrapper( pFormatter->GetServiceManager(),
			pFormatter->GetLocale() );
	}
	else
	{
		lang::Locale aLocale( MsLangId::convertLanguageToLocale( MsLangId::getSystemLanguage() ) );

		// #110680#
		// pCharClass = new CharClass( ::comphelper::getProcessServiceFactory(), aLocale );
		// pLocaleData = new LocaleDataWrapper( ::comphelper::getProcessServiceFactory(), aLocale );
		pCharClass = new CharClass( rExport.getServiceFactory(), aLocale );
		pLocaleData = new LocaleDataWrapper( rExport.getServiceFactory(), aLocale );
	}

	pUsedList = new SvXMLNumUsedList_Impl;
}

SvXMLNumFmtExport::~SvXMLNumFmtExport()
=====================================================================
Found a 6 line (138 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/timemove_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/timesize_curs.h

 0x01,0x01,0x01,0x00,0x81,0x03,0x01,0x00,0xc1,0x07,0x01,0x00,0x01,0x01,0x01,
 0x00,0x01,0x01,0x01,0x00,0x01,0x01,0x01,0x00,0xff,0xff,0x01,0x00,0x00,0x01,
 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,
 0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 7 line (138 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawbezier_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawcirclecut_curs.h

static char drawcirclecut_curs_bits[] = {
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0a, 0x00,
=====================================================================
Found a 5 line (138 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,
=====================================================================
Found a 6 line (138 tokens) duplication in the following files: 
Starting at line 42 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asns_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,
 0x00,0x00,0xe0,0x03,0x00,0x00,0xe0,0x03,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x04,0x00,0x00,0xf0,0x07,0x00,0x00,
 0xe0,0x03,0x00,0x00,0xe0,0x03,0x00,0x00,0xc0,0x01,0x00,0x00,0x80,0x00,0x00,
 0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (138 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,
=====================================================================
Found a 5 line (138 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 25 line (138 tokens) duplication in the following files: 
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/directory.cxx
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx

	}

    rtl::OUString aId = queryContentIdentifierString( nIndex );
	if ( aId.getLength() )
	{
        uno::Reference< ucb::XContentIdentifier > xId
            = new ::ucbhelper::ContentIdentifier( aId );
		m_pImpl->m_aResults[ nIndex ]->xId = xId;
		return xId;
	}
    return uno::Reference< ucb::XContentIdentifier >();
}

//=========================================================================
// virtual
uno::Reference< ucb::XContent > DataSupplier::queryContent(
                                                        sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< ucb::XContent > xContent
								= m_pImpl->m_aResults[ nIndex ]->xContent;
		if ( xContent.is() )
=====================================================================
Found a 34 line (138 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static const ucb::CommandInfo aCommandInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory commands
		///////////////////////////////////////////////////////////////
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::Property > * >( 0 ) )
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
		)
		///////////////////////////////////////////////////////////////
		// Optional standard commands
		///////////////////////////////////////////////////////////////

#ifdef IMPLEMENT_COMMAND_DELETE
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
=====================================================================
Found a 44 line (138 tokens) duplication in the following files: 
Starting at line 4538 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmltab.cxx
Starting at line 4737 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmltab.cxx

												pSaveStruct->eColGrpVertOri );
					break;
				}
			}
		}
		// ist beim ersten GetNextToken schon pending, muss bei
		// wiederaufsetzen auf jedenfall neu gelesen werden!
		SaveState( 0 );
	}

	if( !nToken )
		nToken = GetNextToken();	// naechstes Token

	sal_Bool bDone = sal_False;
	while( (IsParserWorking() && !bDone) || bPending )
	{
		SaveState( nToken );

		nToken = FilterToken( nToken );

		ASSERT( pPendStack || !bCallNextToken ||
				pCurTable->GetContext() || pCurTable->HasParentSection(),
				"Wo ist die Section gebieben?" );
		if( !pPendStack && bCallNextToken &&
			(pCurTable->GetContext() || pCurTable->HasParentSection()) )
		{
			// NextToken direkt aufrufen (z.B. um den Inhalt von
			// Floating-Frames oder Applets zu ignorieren)
			NextToken( nToken );
		}
		else switch( nToken )
		{
		case HTML_TABLE_ON:
			if( !pCurTable->GetContext()  )
			{
				SkipToken( -1 );
				bDone = sal_True;
			}
//			else
//			{
//				NextToken( nToken );
//			}
			break;
		case HTML_COLGROUP_ON:
=====================================================================
Found a 36 line (138 tokens) duplication in the following files: 
Starting at line 2206 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx
Starting at line 2604 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx

						if( !bForceNew && pItem->GetLineEndValue() == pLineEndItem->GetLineEndValue() )
						{
							aUniqueName = pItem->GetName();
							bFoundExisting = sal_True;
							break;
						}

						if( pItem->GetName().CompareTo( aUser, aUser.Len() ) == 0 )
						{
							sal_Int32 nThisIndex = pItem->GetName().Copy( aUser.Len() ).ToInt32();
							if( nThisIndex >= nUserIndex )
								nUserIndex = nThisIndex + 1;
						}
					}
				}
			}

			if( !bFoundExisting )
			{
				aUniqueName = aUser;
				aUniqueName += sal_Unicode(' ');
				aUniqueName += String::CreateFromInt32( nUserIndex );
			}
		}

		// if the given name is not valid, replace it!
		if( aUniqueName != GetName() || pTempItem )
		{
			if( pTempItem )
			{
				pTempItem->SetName( aUniqueName );
				return pTempItem;
			}
			else
			{
				return new XLineEndItem( aUniqueName, maPolyPolygon );
=====================================================================
Found a 16 line (138 tokens) duplication in the following files: 
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdxcgv.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdxcgv.cxx

	Point aPos(rPos);
	ImpGetPasteObjList(aPos,pLst);
	ImpLimitToWorkArea( aPos );
	if (pLst==NULL) return FALSE;
	SdrLayerID nLayer;
	if (!ImpGetPasteLayer(pLst,nLayer)) return FALSE;
	BOOL bUnmark=(nOptions&(SDRINSERT_DONTMARK|SDRINSERT_ADDMARK))==0 && !IsTextEdit();
	if (bUnmark) UnmarkAllObj();
	Rectangle aTextRect(0,0,500,500);
	SdrPage* pPage=pLst->GetPage();
	if (pPage!=NULL) {
		aTextRect.SetSize(pPage->GetSize());
	}
	SdrRectObj* pObj=new SdrRectObj(OBJ_TEXT,aTextRect);
	pObj->SetModel(pMod);
	pObj->SetLayer(nLayer);
=====================================================================
Found a 22 line (138 tokens) duplication in the following files: 
Starting at line 1767 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4833 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_CheckBox::WriteContents(SvStorageStreamRef &rContents,
    const uno::Reference< beans::XPropertySet > &rPropSet,
	const awt::Size &rSize)

{
	sal_Bool bRet=sal_True;
    sal_uInt32 nOldPos = rContents->Tell();
	rContents->SeekRel(12);

	pBlockFlags[0] = 0;
	pBlockFlags[1] = 0x01;
	pBlockFlags[2] = 0;
	pBlockFlags[3] = 0x80;
	pBlockFlags[4] = 0;
	pBlockFlags[5] = 0;
	pBlockFlags[6] = 0;
	pBlockFlags[7] = 0;

	uno::Any aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("Enabled"));
	fEnabled = any2bool(aTmp);

    aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("BackgroundColor"));
=====================================================================
Found a 40 line (138 tokens) duplication in the following files: 
Starting at line 529 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmsrcimp.cxx
Starting at line 606 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmsrcimp.cxx

        bFound = aSearchExpression.Matches(sCurrentCheck);

        if (bFound)
            break;

        // naechstes Feld (implizit naechster Datensatz, wenn noetig)
        if (!MoveField(nFieldPos, iterFieldLoop, iterBegin, iterEnd))
        {   // beim Bewegen auf das naechste Feld ging was schief ... weitermachen ist nicht drin, da das naechste Mal genau
            // das selbe bestimmt wieder schief geht, also Abbruch
            // vorher aber noch, damit das Weitersuchen an der aktuellen Position weitermacht :
            try { m_aPreviousLocBookmark = m_xSearchCursor.getBookmark(); }
            catch ( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); }
            m_iterPreviousLocField = iterFieldLoop;
            // und wech
            return SR_ERROR;
        }

        Any aCurrentBookmark;
        try { aCurrentBookmark = m_xSearchCursor.getBookmark(); }
        catch ( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); return SR_ERROR; }

        bMovedAround = EQUAL_BOOKMARKS(aStartMark, aCurrentBookmark) && (iterFieldLoop == iterInitialField);

        if (nFieldPos == 0)
            // das heisst, ich habe mich auf einen neuen Datensatz bewegt
            PropagateProgress(bMovedAround);
                // if we moved to the starting position we don't have to propagate an 'overflow' message
                // FS - 07.12.99 - 68530

        // abbrechen gefordert ?
        if (CancelRequested())
            return SR_CANCELED;

    } while (!bMovedAround);

    return bFound ? SR_FOUND : SR_NOTFOUND;
}

//------------------------------------------------------------------------
FmSearchEngine::SEARCH_RESULT FmSearchEngine::SearchRegularApprox(const ::rtl::OUString& strExpression, sal_Int32& nFieldPos,
=====================================================================
Found a 25 line (138 tokens) duplication in the following files: 
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fusel.cxx
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/futext.cxx

						else if (aVEvt.eEvent == SDREVENT_EXECUTEURL && !rMEvt.IsMod2())
						{
							/******************************************************
							* URL ausfuehren
							******************************************************/
							mpWindow->ReleaseMouse();
							SfxStringItem aStrItem(SID_FILE_NAME, aVEvt.pURLField->GetURL());
							SfxStringItem aReferer(SID_REFERER, mpDocSh->GetMedium()->GetName());
							SfxBoolItem aBrowseItem( SID_BROWSE, TRUE );
							SfxViewFrame* pFrame = mpViewShell->GetViewFrame();
							mpWindow->ReleaseMouse();

							if (rMEvt.IsMod1())
							{
								// Im neuen Frame oeffnen
								pFrame->GetDispatcher()->Execute(SID_OPENDOC, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD,
											&aStrItem, &aBrowseItem, &aReferer, 0L);
							}
							else
							{
								// Im aktuellen Frame oeffnen
								SfxFrameItem aFrameItem(SID_DOCFRAME, pFrame);
								pFrame->GetDispatcher()->Execute(SID_OPENDOC, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD,
											&aStrItem, &aFrameItem, &aBrowseItem, &aReferer, 0L);
							}
=====================================================================
Found a 23 line (138 tokens) duplication in the following files: 
Starting at line 5330 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 5407 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx

        Rectangle aLogic( PixelToLogic( aPixRect, aDrawMode ) );

        const basegfx::B2DPoint aTopLeft(aLogic.Left(), aLogic.Top());
        const basegfx::B2DPoint aBottomRight(aLogic.Right(), aLogic.Bottom());
        const basegfx::B2DRange a2DRange(aTopLeft, aBottomRight);

        sdr::overlay::OverlayObjectCell::RangeVector aRanges;
        aRanges.push_back( a2DRange );

		// #i70788# get the OverlayManager safely
		::sdr::overlay::OverlayManager* pOverlayManager = getOverlayManager();

		if(pOverlayManager)
		{
			ScOverlayType eType = SC_OVERLAY_INVERT;
//		          ScOverlayType eType = SC_OVERLAY_HATCH;
//			      ScOverlayType eType = SC_OVERLAY_TRANSPARENT;

            Color aHighlight = GetSettings().GetStyleSettings().GetHighlightColor();
            sdr::overlay::OverlayObjectCell* pOverlay =
	            new sdr::overlay::OverlayObjectCell( eType, aHighlight, aRanges );

            pOverlayManager->add(*pOverlay);
=====================================================================
Found a 22 line (138 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cursuno.cxx
Starting at line 321 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cursuno.cxx

void SAL_CALL ScCellCursorObj::gotoStart() throw(uno::RuntimeException)
{
	//	this is similar to collapseToCurrentRegion
	//!	something like gotoEdge with 4 possible directions is needed

	ScUnoGuard aGuard;
	const ScRangeList& rRanges = GetRangeList();
	DBG_ASSERT( rRanges.Count() == 1, "Range? Ranges?" );
	ScRange aOneRange(*rRanges.GetObject(0));

	aOneRange.Justify();
	ScDocShell* pDocSh = GetDocShell();
	if ( pDocSh )
	{
		SCCOL nStartCol = aOneRange.aStart.Col();
		SCROW nStartRow = aOneRange.aStart.Row();
		SCCOL nEndCol = aOneRange.aEnd.Col();
		SCROW nEndRow = aOneRange.aEnd.Row();
		SCTAB nTab = aOneRange.aStart.Tab();

		pDocSh->GetDocument()->GetDataArea(
						nTab, nStartCol, nStartRow, nEndCol, nEndRow, FALSE );
=====================================================================
Found a 18 line (138 tokens) duplication in the following files: 
Starting at line 841 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr4.cxx
Starting at line 969 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr4.cxx

				const SingleRefData& rRef = rCRef.Ref1;
				if ( rRef.IsColRel() )
					nCol = aPos.Col() + rRef.nRelCol;
				else
					nCol = rRef.nCol;
				if ( rRef.IsRowRel() )
					nRow = aPos.Row() + rRef.nRelRow;
				else
					nRow = rRef.nRow;
				if ( rRef.IsTabRel() )
					nTab = aPos.Tab() + rRef.nRelTab;
				else
					nTab = rRef.nTab;
				if( !ValidCol( nCol) || rRef.IsColDeleted() )
					SetError( errNoRef ), nCol = 0;
				if( !ValidRow( nRow) || rRef.IsRowDeleted() )
					SetError( errNoRef ), nRow = 0;
				if( !ValidTab( (SCTAB)nTab, nMaxTab) || rRef.IsTabDeleted() )
=====================================================================
Found a 19 line (138 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/math/test_rtl_math.cxx
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/math/test_rtl_math.cxx

    aBuffer.append(RTL_CONSTASCII_STRINGPARAM("), "));
    aBuffer.append(static_cast< sal_Int32 >(rTest.eFormat));
    aBuffer.append(RTL_CONSTASCII_STRINGPARAM(", "));
    aBuffer.append(rTest.nDecPlaces);
    aBuffer.append(RTL_CONSTASCII_STRINGPARAM(", "));
    aBuffer.append(rTest.cDecSeparator);
    aBuffer.append(RTL_CONSTASCII_STRINGPARAM(", "));
    aBuffer.append(static_cast< sal_Int32 >(rTest.bEraseTrailingDecZeros));
    aBuffer.append(RTL_CONSTASCII_STRINGPARAM("): "));
    StringT::appendBuffer(aBuffer, aResult1);
    if (!bSuccess)
    {
        aBuffer.append(RTL_CONSTASCII_STRINGPARAM(" != "));
        StringT::appendBuffer(aBuffer, aResult2);
    }
    // call to the real test checker
    // pTestResult->pFuncs->state_(pTestResult, bSuccess, "test_rtl_math",
    //                             aBuffer.getStr(), false);
    c_rtl_tres_state(pTestResult, bSuccess, aBuffer.getStr(), "testStringToNumberToString");
=====================================================================
Found a 19 line (138 tokens) duplication in the following files: 
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/ocompinstream.cxx
Starting at line 2474 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	// TODO/LATER: in future the unification of the ID could be checked
	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	for ( sal_Int32 nInd1 = 0; nInd1 < aSeq.getLength(); nInd1++ )
		for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ )
			if ( aSeq[nInd1][nInd2].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Id" ) ) )
			{
				if ( aSeq[nInd1][nInd2].Second.equals( sID ) )
					return aSeq[nInd1];
				break;
			}
	
	throw container::NoSuchElementException();
}

//-----------------------------------------------
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OWriteStream::getRelationshipsByType(  const ::rtl::OUString& sType  )
=====================================================================
Found a 5 line (138 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,
=====================================================================
Found a 6 line (138 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h

 0xc0,0x07,0x00,0x00,0xc0,0x07,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x03,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (138 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,
=====================================================================
Found a 6 line (138 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h

 0xc0,0x07,0x00,0x00,0xc0,0x07,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x03,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 6 line (138 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

static sal_Unicode consonant[] = {
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // 3000
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // 3010
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // 3020
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // 3030
	0x3040, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x3042, 0x304B, 0x304B, 0x304B, 0x304B, 0x304B,  // 3040
=====================================================================
Found a 63 line (138 tokens) duplication in the following files: 
Starting at line 2296 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1730 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx

	throw writerfilter::rtftok::RTFParseException("fatal error: %s"/*, msg*/);
	}


/* Redefine yyless() so it works in section 3 code. */

#undef yyless
#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		yytext[yyleng] = yy_hold_char; \
		yy_c_buf_p = yytext + n; \
		yy_hold_char = *yy_c_buf_p; \
		*yy_c_buf_p = '\0'; \
		yyleng = n; \
		} \
	while ( 0 )


/* Internal utility routines. */

#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
	{
	register int i;
	for ( i = 0; i < n; ++i )
		s1[i] = s2[i];
	}
#endif

#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
	{
	register int n;
	for ( n = 0; s[n]; ++n )
		;

	return n;
	}
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
	{
	return (void *) rtl_allocateMemory( size );
=====================================================================
Found a 22 line (138 tokens) duplication in the following files: 
Starting at line 2777 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 4975 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

            if( !bParaStart )
            {
                padd(ascii("text:style-name"), sXML_CDATA,
                    ascii(getPStyleName(para->GetParaShape()->index, buf)));
                rstartEl( ascii("text:p"),rList);
                pList->clear();
            }
            if( d->bFirstPara && d->bInBody )
            {
/* for HWP's Bookmark */
                strcpy(buf,"[������ ó=]");
                padd(ascii("text:name"), sXML_CDATA, OUString(buf, strlen(buf), RTL_TEXTENCODING_EUC_KR));
                rstartEl(ascii("text:bookmark"), rList);
                pList->clear();
                rendEl(ascii("text:bookmark"));
                d->bFirstPara = sal_False;
            }
            if( d->bInHeader )
            {
                makeShowPageNum();
                d->bInHeader = sal_False;
            }
=====================================================================
Found a 26 line (138 tokens) duplication in the following files: 
Starting at line 479 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/uiconfigelementwrapperbase.cxx
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/uielementwrapperbase.cxx
Starting at line 7456 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx
Starting at line 443 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/rootitemcontainer.cxx

com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo > SAL_CALL RootItemContainer::getPropertySetInfo() 
throw (::com::sun::star::uno::RuntimeException)
{
	// Optimize this method !
	// We initialize a static variable only one time. And we don't must use a mutex at every call!
	// For the first call; pInfo is NULL - for the second call pInfo is different from NULL!
    static com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo >* pInfo = NULL;

    if( pInfo == NULL )
	{
		// Ready for multithreading
		osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;
		// Control this pointer again, another instance can be faster then these!
        if( pInfo == NULL )
		{
			// Create structure of propertysetinfo for baseclass "OPropertySetHelper".
			// (Use method "getInfoHelper()".)
            static com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
			pInfo = &xInfo;
		}
	}

	return (*pInfo);
}

const com::sun::star::uno::Sequence< com::sun::star::beans::Property > RootItemContainer::impl_getStaticPropertyDescriptor()
=====================================================================
Found a 24 line (138 tokens) duplication in the following files: 
Starting at line 1714 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/pdf/pdfexport.cxx
Starting at line 1150 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/print2.cxx

            const double    fMaxPixelY = aDstSizeTwip.Height() * nMaxBmpDPIY / 1440.0;

            // check, if the bitmap DPI exceeds the maximum DPI (allow 4 pixel rounding tolerance)
            if( ( ( fBmpPixelX > ( fMaxPixelX + 4 ) ) || 
                  ( fBmpPixelY > ( fMaxPixelY + 4 ) ) ) && 
                ( fBmpPixelY > 0.0 ) && ( fMaxPixelY > 0.0 ) )
            {
                // do scaling
                Size            aNewBmpSize;
		        const double    fBmpWH = fBmpPixelX / fBmpPixelY;
		        const double    fMaxWH = fMaxPixelX / fMaxPixelY;

			    if( fBmpWH < fMaxWH )
			    {
				    aNewBmpSize.Width() = FRound( fMaxPixelY * fBmpWH );
				    aNewBmpSize.Height() = FRound( fMaxPixelY );
			    }
			    else if( fBmpWH > 0.0 )
			    {
				    aNewBmpSize.Width() = FRound( fMaxPixelX );
				    aNewBmpSize.Height() = FRound( fMaxPixelX / fBmpWH);
			    }

                if( aNewBmpSize.Width() && aNewBmpSize.Height() )
=====================================================================
Found a 48 line (138 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

using namespace ::com::sun::star;



#define IUL 6



uno::Sequence< ::rtl::OUString > Interceptor::m_aInterceptedURL(IUL);




struct equalOUString
{
	bool operator()( 
		const rtl::OUString& rKey1,
		const rtl::OUString& rKey2 ) const
	{
		return !!( rKey1 == rKey2 );
	}
};


struct hashOUString
{
	size_t operator()( const rtl::OUString& rName ) const
	{
		return rName.hashCode();
	}
};



class StatusChangeListenerContainer
	: public ::cppu::OMultiTypeInterfaceContainerHelperVar<
rtl::OUString,hashOUString,equalOUString>
{
public:
	StatusChangeListenerContainer( ::osl::Mutex& aMutex )
		:  cppu::OMultiTypeInterfaceContainerHelperVar<
	rtl::OUString,hashOUString,equalOUString>(aMutex)
	{
	}
};


void SAL_CALL
=====================================================================
Found a 13 line (138 tokens) duplication in the following files: 
Starting at line 993 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx
Starting at line 1024 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx

						sProp = PROPERTY_UPDATE_CATALOGNAME;
					else if ( aName == CONFIGKEY_LAYOUTINFORMATION )
						sProp = PROPERTY_LAYOUTINFORMATION;

					if ( sProp.getLength() )
					{
                        if ( m_aProperties.find(m_aStack.top().second) == m_aProperties.end() )
                            m_aProperties.insert(::std::map< sal_Int16 ,Sequence< ::rtl::OUString> >::value_type(m_aStack.top().second,Sequence< ::rtl::OUString>()));
						sal_Int32 nPos = m_aProperties[m_aStack.top().second].getLength();
						m_aProperties[m_aStack.top().second].realloc(nPos+1);
						m_aProperties[m_aStack.top().second][nPos] = sProp;
					}
					else
=====================================================================
Found a 24 line (138 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/component_context.cxx
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno.cxx

		TYPELIB_DANGER_RELEASE( pTypeDescr );
		
		buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(" }") );
		break;
	}
	case typelib_TypeClass_SEQUENCE:
	{
		typelib_TypeDescription * pTypeDescr = 0;
		TYPELIB_DANGER_GET( &pTypeDescr, pTypeRef );
		
		uno_Sequence * pSequence = *(uno_Sequence **)pVal;
		typelib_TypeDescription * pElementTypeDescr = 0;
		TYPELIB_DANGER_GET( &pElementTypeDescr, ((typelib_IndirectTypeDescription *)pTypeDescr)->pType );
		
		sal_Int32 nElementSize = pElementTypeDescr->nSize;
		sal_Int32 nElements	   = pSequence->nElements;
		
		if (nElements)
		{
			buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("{ ") );
			char * pElements = pSequence->elements;
			for ( sal_Int32 nPos = 0; nPos < nElements; ++nPos )
			{
				buf.append( val2str( pElements + (nElementSize * nPos), pElementTypeDescr->pWeakRef, mode ) );
=====================================================================
Found a 29 line (138 tokens) duplication in the following files: 
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LConnection.cxx
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NConnection.cxx

	checkDisposed(OConnection_BASE::rBHelper.bDisposed);

	Reference< XDatabaseMetaData > xMetaData = m_xMetaData;
	if(!xMetaData.is())
	{
		xMetaData = new OEvoabDatabaseMetaData(this);
		m_xMetaData = xMetaData;
	}

	return xMetaData;
}
//------------------------------------------------------------------------------
::com::sun::star::uno::Reference< XTablesSupplier > OEvoabConnection::createCatalog()
{
	::osl::MutexGuard aGuard( m_aMutex );
 	Reference< XTablesSupplier > xTab = m_xCatalog;
 	if(!xTab.is())
 	{
 		OEvoabCatalog *pCat = new OEvoabCatalog(this);
 		xTab = pCat;
 		m_xCatalog = xTab;
 	}
 	return xTab;
}
// --------------------------------------------------------------------------------
Reference< XStatement > SAL_CALL OEvoabConnection::createStatement(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);
=====================================================================
Found a 34 line (138 tokens) duplication in the following files: 
Starting at line 3051 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 3432 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx

sal_Bool EnumType::dumpHFile(
    FileStream& o, codemaker::cppumaker::Includes & includes)
	throw( CannotDumpException )
{
	OString headerDefine(dumpHeaderDefine(o, "HDL"));
	o << "\n";

	addDefaultHIncludes(includes);
    includes.dump(o, 0);
	o << "\n";

    if (codemaker::cppumaker::dumpNamespaceOpen(o, m_typeName, false)) {
        o << "\n";
    }

	dumpDeclaration(o);

    if (codemaker::cppumaker::dumpNamespaceClose(o, m_typeName, false)) {
        o << "\n";
    }

	o << "\nnamespace com { namespace sun { namespace star { namespace uno {\n"
	  << "class Type;\n} } } }\n\n";

	o << "inline const ::com::sun::star::uno::Type& SAL_CALL getCppuType( ";
	dumpType(o, m_typeName, sal_True, sal_False); 
	o << "* ) SAL_THROW( () );\n\n";

	o << "#endif // "<< headerDefine << "\n";

	return sal_True;
}

sal_Bool EnumType::dumpDeclaration(FileStream& o)
=====================================================================
Found a 28 line (138 tokens) duplication in the following files: 
Starting at line 2010 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

	sal_Bool bSelfCheck = sal_True;
	if (!pReader)
	{
		bSelfCheck = sal_False;
		pReader = &m_reader;
	}

	sal_uInt32 count = 0;
	OString superType(pReader->getSuperTypeName());
	if (superType.getLength() > 0)
	{
		TypeReader aSuperReader(m_typeMgr.getTypeReader(superType));
		if ( aSuperReader.isValid() )
		{
			count = checkInheritedMemberCount(&aSuperReader);
		}
	}

	if (bSelfCheck)
	{
		count += pReader->getMethodCount();
		sal_uInt32 fieldCount = pReader->getFieldCount();
		RTFieldAccess access = RT_ACCESS_INVALID;
		for (sal_uInt16 i=0; i < fieldCount; i++)
		{
			access = pReader->getFieldAccess(i);

			if (access != RT_ACCESS_CONST && access != RT_ACCESS_INVALID)
=====================================================================
Found a 31 line (138 tokens) duplication in the following files: 
Starting at line 1049 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 1273 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

OString CunoType::typeToIdentifier(const OString& type)
{
	sal_uInt32 index = type.lastIndexOf(']');
	sal_uInt32 seqNum = (index > 0 ? ((index+1) / 2) : 0);

	OString relType = (index > 0 ? ((OString)type).copy(index+1) : type);
	OString sIdentifier;

	while( seqNum > 0 )
	{
		sIdentifier += OString("seq");

		if ( --seqNum == 0 )
		{
			sIdentifier += OString("_");
		}
	}

	if ( isBaseType(relType) )
	{
		sIdentifier += relType.replace(' ', '_');
	} else
	{
		sIdentifier += relType.replace('/', '_');
	}


	return sIdentifier;
}

OString	CunoType::checkSpecialCunoType(const OString& type)
=====================================================================
Found a 21 line (138 tokens) duplication in the following files: 
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 417 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx

void WrappedDataSourceLabelsInFirstColumnProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
                throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
    sal_Bool bLabelsInFirstRow = sal_True;
    if( ! (rOuterValue >>= bLabelsInFirstRow) )
        throw lang::IllegalArgumentException( C2U("Property DataSourceLabelsInFirstRow requires value of type boolean"), 0, 0 );

    m_aOuterValue = rOuterValue;
    bool bNewValue = bLabelsInFirstRow;

    ::rtl::OUString aRangeString;
    bool bUseColumns = true;
    bool bFirstCellAsLabel = true;
    bool bHasCategories = true;
    uno::Sequence< sal_Int32 > aSequenceMapping;

    if( DataSourceHelper::detectRangeSegmentation(
            m_spChart2ModelContact->getChartModel(), aRangeString, aSequenceMapping, bUseColumns
            , bFirstCellAsLabel, bHasCategories ) )
    {
        if( bUseColumns && bNewValue != bHasCategories )
=====================================================================
Found a 19 line (138 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 18 line (138 tokens) duplication in the following files: 
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			pCppArgs[ nPos ] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr );
=====================================================================
Found a 23 line (138 tokens) duplication in the following files: 
Starting at line 476 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 436 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx

    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /*functionCount*/, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
                reinterpret_cast< typelib_InterfaceAttributeTypeDescription * >(
                    member)->pAttributeTypeRef->eTypeClass);
=====================================================================
Found a 8 line (138 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,faw,awd,awd,awd, // ... 63
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd  // ... 127
	};

	const INT16 A_nHtmlDefStatus[C_nStatusSize] =
=====================================================================
Found a 17 line (137 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                    y_hr += ry_inv;
                    ++y_lr;
                }
                while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::R]) fg[order_type::R] = fg[order_type::R];
=====================================================================
Found a 19 line (137 tokens) duplication in the following files: 
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        weight = (image_subpixel_size - x_hr) * y_hr;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }

                        x_lr++;
=====================================================================
Found a 5 line (137 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,
=====================================================================
Found a 24 line (137 tokens) duplication in the following files: 
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/xlfd_extd.cxx
Starting at line 734 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/xlfd_extd.cxx

ScalableXlfd::ToString( ByteString &rString,
		unsigned short nPixelSize, char* pMatricsString, rtl_TextEncoding nEncoding ) const
{
	int nIdx = GetEncodingIdx( nEncoding );
	if ( nIdx < 0 )
		return;

	ExtendedXlfd::ToString( rString, nPixelSize, nEncoding);

	EncodingInfo& rInfo = mpEncodingInfo[ nIdx ];
	AppendAttribute( mpFactory->RetrieveAddstyle(rInfo.mnAddstyle), rString );

	rString += "-*-";
	char pTmp[256];
	snprintf( pTmp, sizeof(pTmp), pMatricsString, nPixelSize, nPixelSize );
	rString += pTmp;
	rString += "-*-*-";
	rString += static_cast< char >(rInfo.mcSpacing);
	rString += "-*";

	AppendAttribute( mpFactory->RetrieveCharset(rInfo.mnCharset), rString );
}

ImplFontData* ScalableXlfd::GetImplFontData() const
=====================================================================
Found a 10 line (137 tokens) duplication in the following files: 
Starting at line 1703 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx
Starting at line 1761 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

                        aDstCol.SetBlue(0);
                    }
                    else
                    {
                        aDstCol.SetRed( (BYTE)(((int)(aSrcCol.GetRed())*nSrcAlpha + (int)(aDstCol.GetRed())*nDstAlpha) /
                                               (nSrcAlpha+nDstAlpha)) );
                        aDstCol.SetGreen( (BYTE)(((int)(aSrcCol.GetGreen())*nSrcAlpha + (int)(aDstCol.GetGreen())*nDstAlpha) /
                                                 (nSrcAlpha+nDstAlpha)) );
                        aDstCol.SetBlue( (BYTE)(((int)(aSrcCol.GetBlue())*nSrcAlpha + (int)(aDstCol.GetBlue())*nDstAlpha) /
                                                (nSrcAlpha+nDstAlpha)) );
=====================================================================
Found a 24 line (137 tokens) duplication in the following files: 
Starting at line 430 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impgraph.cxx
Starting at line 1385 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impgraph.cxx

							::ucbhelper::Content aCnt( aSwapURL,
												 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );

							aCnt.executeCommand( ::rtl::OUString::createFromAscii( "delete" ),
												 ::com::sun::star::uno::makeAny( sal_Bool( sal_True ) ) );
						}
						catch( const ::com::sun::star::ucb::ContentCreationException& )
						{
						}
						catch( const ::com::sun::star::uno::RuntimeException& )
						{
						}
						catch( const ::com::sun::star::ucb::CommandAbortedException& )
						{
						}
        		        catch( const ::com::sun::star::uno::Exception& )
		                {
		                }

						delete mpSwapFile;
					}

					mpSwapFile = NULL;
				}
=====================================================================
Found a 20 line (137 tokens) duplication in the following files: 
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gfxlink.cxx
Starting at line 1099 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impgraph.cxx

									::ucbhelper::Content aCnt( aTmpURL.GetMainURL( INetURLObject::NO_DECODE ),
														 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );

									aCnt.executeCommand( ::rtl::OUString::createFromAscii( "delete" ),
														 ::com::sun::star::uno::makeAny( sal_Bool( sal_True ) ) );
								}
								catch( const ::com::sun::star::ucb::ContentCreationException& )
								{
								}
								catch( const ::com::sun::star::uno::RuntimeException& )
								{
								}
								catch( const ::com::sun::star::ucb::CommandAbortedException& )
								{
            					}
        		                catch( const ::com::sun::star::uno::Exception& )
		                        {
		                        }
							}
						}
=====================================================================
Found a 27 line (137 tokens) duplication in the following files: 
Starting at line 1413 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/client/content.cxx
Starting at line 1454 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/client/content.cxx

                                        nPropertyHandles,
					  				const Sequence< Any >& rPropertyValues,
									const Reference< XInputStream >& rData,
					  				Content& rNewContent )
	throw( CommandAbortedException, RuntimeException, Exception )
{
	if ( rContentType.getLength() == 0 )
		return sal_False;

	Reference< XContentCreator > xCreator( m_xImpl->getContent(), UNO_QUERY );

    OSL_ENSURE( xCreator.is(),
				"Content::insertNewContent - Not a XContentCreator!" );

	if ( !xCreator.is() )
		return sal_False;

	ContentInfo aInfo;
	aInfo.Type = rContentType;
	aInfo.Attributes = 0;

    Reference< XContent > xNew = xCreator->createNewContent( aInfo );
	if ( !xNew.is() )
		return sal_False;

	Content aNewContent( xNew, m_xImpl->getEnvironment() );
	aNewContent.setPropertyValues( nPropertyHandles, rPropertyValues );
=====================================================================
Found a 28 line (137 tokens) duplication in the following files: 
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

DataSupplier::queryContent( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< ucb::XContent > xContent
            = m_pImpl->m_aResults[ nIndex ]->xContent;
		if ( xContent.is() )
		{
			// Already cached.
			return xContent;
		}
	}

    uno::Reference< ucb::XContentIdentifier > xId
        = queryContentIdentifier( nIndex );
	if ( xId.is() )
	{
		try
		{
            uno::Reference< ucb::XContent > xContent
				= m_pImpl->m_xContent->getProvider()->queryContent( xId );
			m_pImpl->m_aResults[ nIndex ]->xContent = xContent;
			return xContent;

		}
        catch ( ucb::IllegalIdentifierException& )
=====================================================================
Found a 30 line (137 tokens) duplication in the following files: 
Starting at line 334 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

	if ( !bFound )
		m_pImpl->m_bCountFinal = sal_True;

	rtl::Reference< ::ucbhelper::ResultSet > xResultSet = getResultSet().get();
	if ( xResultSet.is() )
	{
		// Callbacks follow!
		aGuard.clear();

		if ( nOldCount < m_pImpl->m_aResults.size() )
			xResultSet->rowCountChanged(
									nOldCount, m_pImpl->m_aResults.size() );

		if ( m_pImpl->m_bCountFinal )
			xResultSet->rowCountFinal();
	}

	return bFound;
}

//=========================================================================
// virtual
sal_uInt32 DataSupplier::totalCount()
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( m_pImpl->m_bCountFinal )
		return m_pImpl->m_aResults.size();

	sal_uInt32 nOldCount = m_pImpl->m_aResults.size();
=====================================================================
Found a 33 line (137 tokens) duplication in the following files: 
Starting at line 2246 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 2846 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

        if ( exchange( xNewId ) )
        {
            // Process instanciated children...
            
            ContentRefList aChildren;
            queryChildren( aChildren );
	    
            ContentRefList::const_iterator it  = aChildren.begin();
            ContentRefList::const_iterator end = aChildren.end();

            while ( it != end )
            {
                ContentRef xChild = (*it);

                // Create new content identifier for the child...
                uno::Reference< ucb::XContentIdentifier >
                    xOldChildId = xChild->getIdentifier();
                rtl::OUString aOldChildURL
                    = xOldChildId->getContentIdentifier();
                rtl::OUString aNewChildURL
                    = aOldChildURL.replaceAt(
                        0,
                        aOldURL.getLength(),
                        xNewId->getContentIdentifier() );
                uno::Reference< ucb::XContentIdentifier >
                    xNewChildId
                    = new ::ucbhelper::ContentIdentifier( m_xSMgr, aNewChildURL );
                
                if ( !xChild->exchangeIdentity( xNewChildId ) )
                    return sal_False;
                
                ++it;
            }
=====================================================================
Found a 28 line (137 tokens) duplication in the following files: 
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

DataSupplier::queryContent( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< ucb::XContent > xContent
            = m_pImpl->m_aResults[ nIndex ]->xContent;
		if ( xContent.is() )
		{
			// Already cached.
			return xContent;
		}
	}

    uno::Reference< ucb::XContentIdentifier > xId
        = queryContentIdentifier( nIndex );
	if ( xId.is() )
	{
		try
		{
            uno::Reference< ucb::XContent > xContent
				= m_pImpl->m_xContent->getProvider()->queryContent( xId );
			m_pImpl->m_aResults[ nIndex ]->xContent = xContent;
			return xContent;

		}
        catch ( ucb::IllegalIdentifierException& )
=====================================================================
Found a 33 line (137 tokens) duplication in the following files: 
Starting at line 1152 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 2246 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

			if ( isFolder() )
			{
				// Process instanciated children...

				ContentRefList aChildren;
				queryChildren( aChildren );

				ContentRefList::const_iterator it  = aChildren.begin();
				ContentRefList::const_iterator end = aChildren.end();

				while ( it != end )
				{
					ContentRef xChild = (*it);

					// Create new content identifier for the child...
                    uno::Reference< ucb::XContentIdentifier > xOldChildId
                        = xChild->getIdentifier();
                    rtl::OUString aOldChildURL
                        = xOldChildId->getContentIdentifier();
                    rtl::OUString aNewChildURL
						= aOldChildURL.replaceAt(
										0,
										aOldURL.getLength(),
										xNewId->getContentIdentifier() );
                    uno::Reference< ucb::XContentIdentifier > xNewChildId
						= new ::ucbhelper::ContentIdentifier( 
                            m_xSMgr, aNewChildURL );

					if ( !xChild->exchangeIdentity( xNewChildId ) )
						return sal_False;

					++it;
				}
=====================================================================
Found a 18 line (137 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx
Starting at line 877 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

void SAL_CALL Test_Impl::setSequencesOut( Sequence< sal_Bool >& aSeqBoolean,
                             Sequence< sal_Unicode >& aSeqChar,
                             Sequence< sal_Int8 >& aSeqByte,
                             Sequence< sal_Int16 >& aSeqShort,
                             Sequence< sal_uInt16 >& aSeqUShort,             
                             Sequence< sal_Int32 >& aSeqLong,
                             Sequence< sal_uInt32 >& aSeqULong,             
                             Sequence< sal_Int64 >& aSeqHyper,
                             Sequence< sal_uInt64 >& aSeqUHyper,
                             Sequence< float >& aSeqFloat,
                             Sequence< double >& aSeqDouble,
                             Sequence< TestEnum >& aSeqEnum,
                             Sequence< OUString >& aSeqString,
                             Sequence< Reference< XInterface > >& aSeqXInterface,
                             Sequence< Any >& aSeqAny,
                             Sequence< Sequence< sal_Int32 > >& aSeqDim2,
                             Sequence< Sequence< Sequence< sal_Int32 > > >& aSeqDim3 )
        throw (RuntimeException)
=====================================================================
Found a 18 line (137 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx
Starting at line 839 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

void SAL_CALL Test_Impl::setSequencesInOut(Sequence< sal_Bool >& aSeqBoolean,
                                Sequence< sal_Unicode >& aSeqChar,
                                Sequence< sal_Int8 >& aSeqByte,
                                Sequence< sal_Int16 >& aSeqShort,
                                Sequence< sal_uInt16 >& aSeqUShort,
                                Sequence< sal_Int32 >& aSeqLong,
                                Sequence< sal_uInt32 >& aSeqULong,
                                Sequence< sal_Int64 >& aSeqHyper,
                                Sequence< sal_uInt64 >& aSeqUHyper,
                                Sequence< float >& aSeqFloat,
                                Sequence< double >& aSeqDouble,
                                Sequence< TestEnum >& aSeqTestEnum,
                                Sequence< OUString >& aSeqString,
                                Sequence<Reference<XInterface > >& aSeqXInterface,
                                Sequence< Any >& aSeqAny,
                                Sequence< Sequence< sal_Int32 > >& aSeqDim2,
                                Sequence< Sequence< Sequence< sal_Int32 > > >& aSeqDim3 )
        throw (RuntimeException)
=====================================================================
Found a 31 line (137 tokens) duplication in the following files: 
Starting at line 3287 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/untbl.cxx
Starting at line 3314 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/untbl.cxx

void InsertSort( SvULongs& rArr, ULONG nIdx, USHORT* pInsPos )
{
	register USHORT nO	= rArr.Count(), nM, nU = 0;
	if( nO > 0 )
	{
		nO--;
		while( nU <= nO )
		{
			nM = nU + ( nO - nU ) / 2;
			if( *(rArr.GetData() + nM) == nIdx )
			{
				ASSERT( FALSE, "Index ist schon vorhanden, darf nie sein!" );
				return;
			}
			if( *(rArr.GetData() + nM) < nIdx )
				nU = nM + 1;
			else if( nM == 0 )
				break;
			else
				nO = nM - 1;
		}
	}
	rArr.Insert( nIdx, nU );
	if( pInsPos )
		*pInsPos = nU;
}

#if defined( JP_DEBUG ) && !defined( PRODUCT )


void DumpDoc( SwDoc* pDoc, const String& rFileNm )
=====================================================================
Found a 30 line (137 tokens) duplication in the following files: 
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/txtatr2.cxx
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/txtatr2.cxx

		USHORT nId = rStr.Len() ? rFmt.GetCharFmtId() : RES_POOLCHR_RUBYTEXT;

		// JP 10.02.2000, Bug 72806: dont modify the doc for getting the
		//				correct charstyle.
		BOOL bResetMod = !pDoc->IsModified();
		Link aOle2Lnk;
		if( bResetMod )
		{
			aOle2Lnk = pDoc->GetOle2Link();
			((SwDoc*)pDoc)->SetOle2Link( Link() );
		}

		pRet = IsPoolUserFmt( nId )
				? ((SwDoc*)pDoc)->FindCharFmtByName( rStr )
				: ((SwDoc*)pDoc)->GetCharFmtFromPool( nId );

		if( bResetMod )
		{
			((SwDoc*)pDoc)->ResetModified();
			((SwDoc*)pDoc)->SetOle2Link( aOle2Lnk );
		}
	}

	if( pRet )
		pRet->Add( this );
	else if( GetRegisteredIn() )
		pRegisteredIn->Remove( this );

	return pRet;
}
=====================================================================
Found a 21 line (137 tokens) duplication in the following files: 
Starting at line 2320 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/layact.cxx
Starting at line 2367 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/layact.cxx

			if ( bBrowse && !IsIdle() && !IsCalcLayout() && !IsComplete() &&
				 pCntnt->Frm().Top() > pImp->GetShell()->VisArea().Bottom())
			{
				const long nBottom = pImp->GetShell()->VisArea().Bottom();
				const SwFrm *pTmp = lcl_FindFirstInvaCntnt( pPage,
													nBottom, pCntnt );
				if ( !pTmp )
				{
					if ( (!(IS_FLYS && IS_INVAFLY) ||
                            !lcl_FindFirstInvaObj( pPage, nBottom )) &&
							(!pPage->IsInvalidLayout() ||
							!lcl_FindFirstInvaLay( pPage, nBottom )))
						SetBrowseActionStop( TRUE );
                    // OD 14.04.2003 #106346# - consider interrupt formatting.
                    if ( !mbFormatCntntOnInterrupt )
                    {
                        return FALSE;
                    }
				}
			}
			pCntnt = pCntnt->GetNextCntntFrm();
=====================================================================
Found a 29 line (137 tokens) duplication in the following files: 
Starting at line 1942 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/poolfmt.cxx
Starting at line 2081 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/poolfmt.cxx

            aFmt.SetBulletFont( &numfunc::GetDefBulletFont() );
            // <--

			static const USHORT aAbsSpace[ MAXLEVEL ] =
				{
//				cm: 0,4  0,8  1,2  1,6  2,0   2,4   2,8   3,2   3,6   4,0
					227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
				};
#ifdef USE_MEASUREMENT
			static const USHORT aAbsSpaceInch[ MAXLEVEL ] =
				{
					227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
				};
			const USHORT* pArr = MEASURE_METRIC ==
								GetAppLocaleData().getMeasurementSystemEnum()
									? aAbsSpace
									: aAbsSpaceInch;
#else
			const USHORT* pArr = aAbsSpace;
#endif

			aFmt.SetFirstLineOffset( - (*pArr) );
			for( n = 0; n < MAXLEVEL; ++n, ++pArr )
			{
				aFmt.SetAbsLSpace( *pArr );
				pNewRule->Set( n, aFmt );
			}
		}
		break;
=====================================================================
Found a 9 line (137 tokens) duplication in the following files: 
Starting at line 841 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx
Starting at line 866 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx

	FrPair aS(GetInchOrMM(eS));
	FrPair aD(GetInchOrMM(eD));
	FASTBOOL bSInch=IsInch(eS);
	FASTBOOL bDInch=IsInch(eD);
	FrPair aRet(aD.X()/aS.X(),aD.Y()/aS.Y());
	if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); }
	if (!bSInch && bDInch) { aRet.X()*=Fraction(5,127); aRet.Y()*=Fraction(5,127); }
	return aRet;
};
=====================================================================
Found a 17 line (137 tokens) duplication in the following files: 
Starting at line 1989 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx

void SdrObjGroup::NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact)
{
	FASTBOOL bXMirr=(xFact.GetNumerator()<0) != (xFact.GetDenominator()<0);
	FASTBOOL bYMirr=(yFact.GetNumerator()<0) != (yFact.GetDenominator()<0);
	if (bXMirr || bYMirr) {
		Point aRef1(GetSnapRect().Center());
		if (bXMirr) {
			Point aRef2(aRef1);
			aRef2.Y()++;
			NbcMirrorGluePoints(aRef1,aRef2);
		}
		if (bYMirr) {
			Point aRef2(aRef1);
			aRef2.X()++;
			NbcMirrorGluePoints(aRef1,aRef2);
		}
	}
=====================================================================
Found a 20 line (137 tokens) duplication in the following files: 
Starting at line 3388 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3050 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0xa000, DFF_Prop_geoBottom, 0, 0x400 }
};
static const sal_uInt16 mso_sptBracketSegm[] =
{
	0x4000, 0x2001, 0x0001, 0x2001, 0x8000
};
static const SvxMSDffVertPair mso_sptLeftBracketVert[] =	// adj value 0 -> 10800
{
	{ 21600, 0 }, { 10800,	0 }, { 0, 3 MSO_I }, { 0, 1 MSO_I },
	{ 0, 2 MSO_I }, { 0, 4 MSO_I }, { 10800, 21600 }, { 21600, 21600 }
};
static const SvxMSDffTextRectangles mso_sptLeftBracketTextRect[] =
{
	{ { 6350, 3 MSO_I }, { 21600, 4 MSO_I } }
};
static const SvxMSDffVertPair mso_sptLeftBracketGluePoints[] =
{
	{ 21600, 0 }, { 0, 10800 }, { 21600, 21600 }
};
static const mso_CustomShape msoLeftBracket =
=====================================================================
Found a 17 line (137 tokens) duplication in the following files: 
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

			aBool = *(sal_Bool *)rParams[0].getValue();
			aChar = *(sal_Unicode *)rParams[1].getValue();
			rParams[2] >>= nByte;
			rParams[3] >>= nShort;
			rParams[4] >>= nUShort;
			rParams[5] >>= nLong;
			rParams[6] >>= nULong;
			rParams[7] >>= nHyper;
			rParams[8] >>= nUHyper;
			rParams[9] >>= fFloat;
			rParams[10] >>= fDouble;
			rParams[11] >>= eEnum;
			rParams[12] >>= aString;
			rParams[13] >>= xInterface;
			rParams[14] >>= aAny;
			rParams[15] >>= aSeq;
			rParams[16] >>= aData;
=====================================================================
Found a 46 line (137 tokens) duplication in the following files: 
Starting at line 1146 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/cfg.cxx
Starting at line 714 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/selector.cxx

                        pmoduleDescr[ pos ].Value >>= factoryURL;
                        break;
                    }
                }
            }
            if( factoryURL.getLength() > 0 )
            {
                if( bHighContrast == BMP_COLOR_NORMAL )
                    aImage = SvFileInformationManager::GetFileImage(
                        INetURLObject(factoryURL), false,
                        BMP_COLOR_NORMAL );
                else
                    aImage = SvFileInformationManager::GetFileImage(
                        INetURLObject(factoryURL), false,
                        BMP_COLOR_HIGHCONTRAST );
            }
            else
            {
                if( bHighContrast == BMP_COLOR_NORMAL )
                    aImage = m_docImage;
                else
                    aImage = m_docImage_hc;
            }
        }
    }
    else
    {
        if( node->getType() == browse::BrowseNodeTypes::SCRIPT )
        {
            if( bHighContrast == BMP_COLOR_NORMAL )
                aImage = m_macImage;
            else
                aImage = m_macImage_hc;
        }
        else
        {
            if( bHighContrast == BMP_COLOR_NORMAL )
                aImage = m_libImage;
            else
                aImage = m_libImage_hc;
        }
    }
    return aImage;
}

Reference< XInterface  >
=====================================================================
Found a 29 line (137 tokens) duplication in the following files: 
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconcs.cxx
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/ribbar/concustomshape.cxx

						const SdrObject* pSourceObj = aFormModel.GetPage( 0 )->GetObj( 0 );
						if( pSourceObj )
						{
							const SfxItemSet& rSource = pSourceObj->GetMergedItemSet();
							SfxItemSet aDest( pObj->GetModel()->GetItemPool(), 				// ranges from SdrAttrObj
							SDRATTR_START, SDRATTR_SHADOW_LAST,
							SDRATTR_MISC_FIRST, SDRATTR_MISC_LAST,
							SDRATTR_TEXTDIRECTION, SDRATTR_TEXTDIRECTION,
							// Graphic Attributes
							SDRATTR_GRAF_FIRST, SDRATTR_GRAF_LAST,
							// 3d Properties
							SDRATTR_3D_FIRST, SDRATTR_3D_LAST,
							// CustomShape properties
							SDRATTR_CUSTOMSHAPE_FIRST, SDRATTR_CUSTOMSHAPE_LAST,
							// range from SdrTextObj
							EE_ITEMS_START, EE_ITEMS_END,
							// end
							0, 0);
							aDest.Set( rSource );
							pObj->SetMergedItemSet( aDest );
							sal_Int32 nAngle = pSourceObj->GetRotateAngle();
							if ( nAngle )
							{
								double a = nAngle * F_PI18000;
								pObj->NbcRotate( pObj->GetSnapRect().Center(), nAngle, sin( a ), cos( a ) );
							}
							bAttributesAppliedFromGallery = sal_True;
						}
					}
=====================================================================
Found a 15 line (137 tokens) duplication in the following files: 
Starting at line 1464 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx
Starting at line 1545 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx

    double* pArr = aSeq.getArray();
    nCount = 0;
    for ( p = m_xRanges->First(); p; p = m_xRanges->Next())
    {
        // TODO: use DocIter?
        ScAddress aAdr( p->aStart);
        for ( SCTAB nTab = p->aStart.Tab(); nTab <= p->aEnd.Tab(); ++nTab)
        {
            aAdr.SetTab( nTab);
            for ( SCCOL nCol = p->aStart.Col(); nCol <= p->aEnd.Col(); ++nCol)
            {
                aAdr.SetCol( nCol);
                for ( SCROW nRow = p->aStart.Row(); nRow <= p->aEnd.Row();
                        ++nRow)
                {
=====================================================================
Found a 40 line (137 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuconcustomshape.cxx
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconcs.cxx

							const SdrObject* pSourceObj = pPage->GetObj( 0 );
							if( pSourceObj )
							{
								const SfxItemSet& rSource = pSourceObj->GetMergedItemSet();
								SfxItemSet aDest( pObj->GetModel()->GetItemPool(), 				// ranges from SdrAttrObj
								SDRATTR_START, SDRATTR_SHADOW_LAST,
								SDRATTR_MISC_FIRST, SDRATTR_MISC_LAST,
								SDRATTR_TEXTDIRECTION, SDRATTR_TEXTDIRECTION,
								// Graphic Attributes
								SDRATTR_GRAF_FIRST, SDRATTR_GRAF_LAST,
								// 3d Properties
								SDRATTR_3D_FIRST, SDRATTR_3D_LAST,
								// CustomShape properties
								SDRATTR_CUSTOMSHAPE_FIRST, SDRATTR_CUSTOMSHAPE_LAST,
								// range from SdrTextObj
								EE_ITEMS_START, EE_ITEMS_END,
								// end
								0, 0);
								aDest.Set( rSource );
								pObj->SetMergedItemSet( aDest );
								sal_Int32 nAngle = pSourceObj->GetRotateAngle();
								if ( nAngle )
								{
									double a = nAngle * F_PI18000;
									pObj->NbcRotate( pObj->GetSnapRect().Center(), nAngle, sin( a ), cos( a ) );
								}
								bAttributesAppliedFromGallery = sal_True;


	/*
								com::sun::star::uno::Any aAny;
								if ( ((SdrCustomShapeGeometryItem&)pObj->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY )).QueryValue( aAny ) )
								{
									aGeometryItem.PutValue( aAny );
									pObj->SetMergedItem( aGeometryItem );
									bAttributesAppliedFromGallery = sal_True;
								}
	*/
							}
						}
=====================================================================
Found a 39 line (137 tokens) duplication in the following files: 
Starting at line 2561 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 1236 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT );
			::osl::StreamSocket ssConnection;
			
			/// launch server socket 
			asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);
			sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket bind address failed.", sal_True == bOK1 );
			sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket listen failed.",  sal_True == bOK2 );
			asAcceptorSocket.enableNonBlockingMode( sal_True );
			asAcceptorSocket.acceptConnection(ssConnection); /// waiting for incoming connection...
 
			/// if reach this statement, it is non-blocking mode, since acceptConnection will blocked by default. 
			sal_Bool bOK  = sal_True;
			asAcceptorSocket.close( );
				
			CPPUNIT_ASSERT_MESSAGE( "test for enableNonBlockingMode function: launch a server socket and make it non blocking. if it can pass the acceptConnection statement, it is non-blocking", 
  									( sal_True == bOK  ) );
		}
	
		
		CPPUNIT_TEST_SUITE( enableNonBlockingMode );
		CPPUNIT_TEST( enableNonBlockingMode_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class enableNonBlockingMode


	/** testing the method:
		inline sal_Bool SAL_CALL isNonBlockingMode() const;
	*/
	class isNonBlockingMode : public CppUnit::TestFixture
	{
	public:
		::osl::AcceptorSocket asAcceptorSocket;
		
		void isNonBlockingMode_001()
		{
			::osl::SocketAddr saLocalSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT );
=====================================================================
Found a 6 line (137 tokens) duplication in the following files: 
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/file_url.cxx
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 9 line (137 tokens) duplication in the following files: 
Starting at line 2542 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 2586 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

            )) rv = sptr->check(word,len, sfxopts, ppfx, NULL, 0, 0, cclass, needflag);
            while (rv) {
                    if (ppfx) {
                        if (((PfxEntry *) ppfx)->getMorph()) strcat(result, ((PfxEntry *) ppfx)->getMorph());
                    }    
                    if (complexprefixes && rv->description) strcat(result, rv->description);
                    if (rv->description && ((!rv->astr) || 
                        !TESTAFF(rv->astr, lemma_present, rv->alen))) strcat(result, rv->word);
                    if (!complexprefixes && rv->description) strcat(result, rv->description);
=====================================================================
Found a 24 line (137 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h

	{ 0x30db, 0x309a },	// 0x30dd KATAKANA LETTER PO --> KATAKANA LETTER HO + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x30de KATAKANA LETTER MA
	{ 0x0000, 0x0000 },	// 0x30df KATAKANA LETTER MI
	{ 0x0000, 0x0000 },	// 0x30e0 KATAKANA LETTER MU
	{ 0x0000, 0x0000 },	// 0x30e1 KATAKANA LETTER ME
	{ 0x0000, 0x0000 },	// 0x30e2 KATAKANA LETTER MO
	{ 0x0000, 0x0000 },	// 0x30e3 KATAKANA LETTER SMALL YA
	{ 0x0000, 0x0000 },	// 0x30e4 KATAKANA LETTER YA
	{ 0x0000, 0x0000 },	// 0x30e5 KATAKANA LETTER SMALL YU
	{ 0x0000, 0x0000 },	// 0x30e6 KATAKANA LETTER YU
	{ 0x0000, 0x0000 },	// 0x30e7 KATAKANA LETTER SMALL YO
	{ 0x0000, 0x0000 },	// 0x30e8 KATAKANA LETTER YO
	{ 0x0000, 0x0000 },	// 0x30e9 KATAKANA LETTER RA
	{ 0x0000, 0x0000 },	// 0x30ea KATAKANA LETTER RI
	{ 0x0000, 0x0000 },	// 0x30eb KATAKANA LETTER RU
	{ 0x0000, 0x0000 },	// 0x30ec KATAKANA LETTER RE
	{ 0x0000, 0x0000 },	// 0x30ed KATAKANA LETTER RO
	{ 0x0000, 0x0000 },	// 0x30ee KATAKANA LETTER SMALL WA
	{ 0x0000, 0x0000 },	// 0x30ef KATAKANA LETTER WA
	{ 0x0000, 0x0000 },	// 0x30f0 KATAKANA LETTER WI
	{ 0x0000, 0x0000 },	// 0x30f1 KATAKANA LETTER WE
	{ 0x0000, 0x0000 },	// 0x30f2 KATAKANA LETTER WO
	{ 0x0000, 0x0000 },	// 0x30f3 KATAKANA LETTER N
	{ 0x30a6, 0x3099 },	// 0x30f4 KATAKANA LETTER VU --> KATAKANA LETTER U + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
=====================================================================
Found a 5 line (137 tokens) duplication in the following files: 
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1261 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 5 line (137 tokens) duplication in the following files: 
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 417 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1480 - 148f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1490 - 149f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14a0 - 14af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14b0 - 14bf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14c0 - 14cf
=====================================================================
Found a 5 line (137 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 872 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fd40 - fd4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd50 - fd5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd60 - fd6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd70 - fd7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd80 - fd8f
=====================================================================
Found a 6 line (137 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 5,// 1150 - 115f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1160 - 116f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1170 - 117f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1180 - 118f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1190 - 119f
     5, 5, 5, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5,// 11a0 - 11af
=====================================================================
Found a 9 line (137 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,    0,    0,    0,    6,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,   32,    0,
=====================================================================
Found a 13 line (137 tokens) duplication in the following files: 
Starting at line 2376 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 2725 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

        char *cell = (char *)fstyle->cell;
        padd(ascii("draw:luminance"), sXML_CDATA,
            ascii(Int2Str(cell[0], "%d%%", buf)));
        padd(ascii("draw:contrast"), sXML_CDATA,
            ascii(Int2Str(cell[1], "%d%%", buf)));
        if( cell[2] == 0 )
            padd(ascii("draw:color-mode"), sXML_CDATA, ascii("standard"));
        else if( cell[2] == 1 )
            padd(ascii("draw:color-mode"), sXML_CDATA, ascii("greyscale"));
        else if( cell[2] == 2 )
            padd(ascii("draw:color-mode"), sXML_CDATA, ascii("mono"));

    }
=====================================================================
Found a 16 line (137 tokens) duplication in the following files: 
Starting at line 1168 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eps/eps.cxx
Starting at line 1622 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/wmfwr.cxx

					WMFRecord_PolyPolygon( ( (MetaTransparentAction*) pMA )->GetPolyPolygon() );
				}
				break;

				case META_FLOATTRANSPARENT_ACTION:
				{
					const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
					
					GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
					Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
					const Size		aSrcSize( aTmpMtf.GetPrefSize() );
					const Point		aDestPt( pA->GetPoint() );
					const Size		aDestSize( pA->GetSize() );
					const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
					const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
					long			nMoveX, nMoveY;
=====================================================================
Found a 23 line (137 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/actiontriggercontainer.cxx
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/rootactiontriggercontainer.cxx

Sequence< Type > SAL_CALL RootActionTriggerContainer::getTypes() throw ( RuntimeException )
{
	// Optimize this method !
	// We initialize a static variable only one time. And we don't must use a mutex at every call!
	// For the first call; pTypeCollection is NULL - for the second call pTypeCollection is different from NULL!
	static ::cppu::OTypeCollection* pTypeCollection = NULL ;

	if ( pTypeCollection == NULL )
	{
		// Ready for multithreading; get global mutex for first call of this method only! see before
		osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;

		// Control these pointer again ... it can be, that another instance will be faster then these!
		if ( pTypeCollection == NULL )
		{
			// Create a static typecollection ...
			static ::cppu::OTypeCollection aTypeCollection(	
						::getCppuType(( const Reference< XMultiServiceFactory	>*)NULL ) ,
						::getCppuType(( const Reference< XIndexContainer		>*)NULL ) ,
						::getCppuType(( const Reference< XIndexAccess			>*)NULL ) ,
						::getCppuType(( const Reference< XIndexReplace			>*)NULL ) ,
						::getCppuType(( const Reference< XServiceInfo			>*)NULL ) ,
						::getCppuType(( const Reference< XTypeProvider			>*)NULL ) ,
=====================================================================
Found a 15 line (137 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/CheckBox.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ComboBox.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormComponent.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Numeric.cxx

namespace frm
{
//.........................................................................
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::form::binding;
=====================================================================
Found a 6 line (137 tokens) duplication in the following files: 
Starting at line 1746 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
Starting at line 533 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 28 line (137 tokens) duplication in the following files: 
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilterdetect/fdcomp.cxx
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx

	void * pServiceManager, void * pRegistryKey )
{
	if (pRegistryKey)
	{
		try
		{
			Reference< XRegistryKey > xNewKey(
				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( FilterDetect_getImplementationName() ) ); 
			xNewKey = xNewKey->createKey( OUString::createFromAscii( "/UNO/SERVICES" ) );
			
			const Sequence< OUString > & rSNL = FilterDetect_getSupportedServiceNames();
			const OUString * pArray = rSNL.getConstArray();
			for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
				xNewKey->createKey( pArray[nPos] );

			return sal_True;
		}
		catch (InvalidRegistryException &)
		{
			OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
		}
	}
	return sal_False;
}

//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
=====================================================================
Found a 9 line (137 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,   27,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,   11,    0,    0,    0,    0,    0,    0,    8,    0,
=====================================================================
Found a 21 line (137 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/manager/dp_manager.h
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/registry/inc/dp_backend.h

    };
    
    // XComponent
    virtual void SAL_CALL dispose() throw (css::uno::RuntimeException);
    virtual void SAL_CALL addEventListener(
        css::uno::Reference<css::lang::XEventListener> const & xListener )
        throw (css::uno::RuntimeException);
    virtual void SAL_CALL removeEventListener(
        css::uno::Reference<css::lang::XEventListener> const & xListener )
        throw (css::uno::RuntimeException);
    
    // XModifyBroadcaster
    virtual void SAL_CALL addModifyListener(
        css::uno::Reference<css::util::XModifyListener> const & xListener )
        throw (css::uno::RuntimeException);
    virtual void SAL_CALL removeModifyListener(
        css::uno::Reference<css::util::XModifyListener> const & xListener )
        throw (css::uno::RuntimeException);
    
    // XPackage
    virtual css::uno::Reference<css::task::XAbortChannel> SAL_CALL
=====================================================================
Found a 18 line (137 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HTable.cxx
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YTable.cxx

		descriptor->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_TYPE))	>>= nNewType;
		// and precsions and scale
		xProp->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_PRECISION))	>>= nOldPrec;
		descriptor->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_PRECISION))>>= nNewPrec;
		xProp->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_SCALE))		>>= nOldScale;
		descriptor->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_SCALE))	>>= nNewScale;
		// second: check the "is nullable" value
		sal_Int32 nOldNullable = 0,nNewNullable = 0;
		xProp->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_ISNULLABLE))		>>= nOldNullable;
		descriptor->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_ISNULLABLE))	>>= nNewNullable;

		// check also the auto_increment
		sal_Bool bOldAutoIncrement = sal_False,bAutoIncrement = sal_False;
		xProp->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_ISAUTOINCREMENT))		>>= bOldAutoIncrement;
		descriptor->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_ISAUTOINCREMENT))	>>= bAutoIncrement;

		if (	nOldType != nNewType
			||	nOldPrec != nNewPrec
=====================================================================
Found a 11 line (137 tokens) duplication in the following files: 
Starting at line 736 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/dialogs/DataBrowserModel.cxx
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/DataSeriesHelper.cxx

        Sequence< Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems());
        for( sal_Int32 nCooSysIdx=0; nCooSysIdx<aCooSysSeq.getLength(); ++nCooSysIdx )
        {
            Reference< chart2::XChartTypeContainer > xCTCnt( aCooSysSeq[nCooSysIdx], uno::UNO_QUERY_THROW );
            Sequence< Reference< chart2::XChartType > > aChartTypes( xCTCnt->getChartTypes());
            for( sal_Int32 nCTIdx=0; nCTIdx<aChartTypes.getLength(); ++nCTIdx )
            {
                Reference< chart2::XDataSeriesContainer > xSeriesCnt( aChartTypes[nCTIdx], uno::UNO_QUERY );
                if( xSeriesCnt.is())
                {
                    Sequence< Reference< chart2::XDataSeries > > aSeries( xSeriesCnt->getDataSeries());
=====================================================================
Found a 18 line (137 tokens) duplication in the following files: 
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvashelper.cxx
Starting at line 513 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper.cxx

        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* 							, 
                                                                                              const uno::Reference< rendering::XPolyPolygon2D >& 	,
                                                                                              const rendering::ViewState& 							,
                                                                                              const rendering::RenderState& 						,
                                                                                              const uno::Sequence< rendering::Texture >& 			,
                                                                                              const uno::Reference< geometry::XMapping2D >& 			 )
    {
        return uno::Reference< rendering::XCachedPrimitive >(NULL);
    }

    uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* 						, 
                                                                       const rendering::FontRequest& 					fontRequest,
                                                                       const uno::Sequence< beans::PropertyValue >& 	extraFontProperties,
                                                                       const geometry::Matrix2D& 						fontMatrix )
    {
=====================================================================
Found a 34 line (137 tokens) duplication in the following files: 
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx

		return typelib_TypeClass_VOID;
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if ( pParams[nIndex].bOut ) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if ( pCppReturn ) // has complex return
		{
			if ( pUnoReturn != pCppReturn ) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
=====================================================================
Found a 25 line (137 tokens) duplication in the following files: 
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdate.cxx
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdbl.cxx

				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINSNG2;
			}
			*p->pSingle = (float) n; break;
		case SbxBYREF | SbxSALINT64:
            *p->pnInt64 = ImpDoubleToSalInt64( n ); break;
		case SbxBYREF | SbxSALUINT64:
			*p->puInt64 = ImpDoubleToSalUInt64( n ); break;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			*p->pDouble = (double) n; break;
		case SbxBYREF | SbxCURRENCY:
			if( n > SbxMAXCURR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCURR;
			}
			else if( n < SbxMINCURR )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINCURR;
			}
			*p->pLong64 = ImpDoubleToCurrency( n ); break;

		default:
			SbxBase::SetError( SbxERR_CONVERSION );
	}
}
=====================================================================
Found a 19 line (137 tokens) duplication in the following files: 
Starting at line 828 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside3.cxx
Starting at line 1757 of /local/ooo-build/ooo-build/src/oog680-m3/scripting/source/stringresource/stringresource.cxx

	bool bDefaultFound = false;

    sal_Int32 nCount = aContentSeq.getLength();
	const ::rtl::OUString* pFiles = aContentSeq.getConstArray();
	for( int i = 0 ; i < nCount ; i++ )
	{
		::rtl::OUString aCompleteName = pFiles[i];
		rtl::OUString aPureName;
		rtl::OUString aExtension;
		sal_Int32 iDot = aCompleteName.lastIndexOf( '.' );
		sal_Int32 iSlash = aCompleteName.lastIndexOf( '/' );
		if( iDot != -1 )
		{
			sal_Int32 iCopyFrom = (iSlash != -1) ? iSlash + 1 : 0;
			aPureName = aCompleteName.copy( iCopyFrom, iDot-iCopyFrom );
			aExtension = aCompleteName.copy( iDot + 1 );
		}

		if( aExtension.equalsAscii( "properties" ) )
=====================================================================
Found a 16 line (137 tokens) duplication in the following files: 
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/viewer/mediaevent_impl.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/viewer/mediaevent_impl.cxx

void SAL_CALL MediaEventListenersImpl::mouseReleased( const ::com::sun::star::awt::MouseEvent& e )
    throw (::com::sun::star::uno::RuntimeException)
{
    const ::osl::MutexGuard aGuard( maMutex );
    const ::vos::OGuard aAppGuard( Application::GetSolarMutex() );

    if( mpNotifyWindow )
    {
        MouseEvent aVCLMouseEvt( Point( e.X, e.Y ),
                                 sal::static_int_cast< USHORT >(e.ClickCount),
                                 0,
                                ( ( e.Buttons & 1 ) ? MOUSE_LEFT : 0 ) |
                                ( ( e.Buttons & 2 ) ? MOUSE_RIGHT : 0 ) |
                                ( ( e.Buttons & 4 ) ? MOUSE_MIDDLE : 0 ),
                                e.Modifiers );
        Application::PostMouseEvent( VCLEVENT_WINDOW_MOUSEBUTTONUP, reinterpret_cast< ::Window* >( mpNotifyWindow ), &aVCLMouseEvt );
=====================================================================
Found a 11 line (137 tokens) duplication in the following files: 
Starting at line 3974 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 3986 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

		case M_GetSizeY:
			if ( pControl->GetType() == WINDOW_DOCKINGWINDOW && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_FLOATINGWINDOW )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r FloatingWindows
			if ( pControl->GetType() == WINDOW_TABCONTROL && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_TABDIALOG )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r TabDialoge
			if ( pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_BORDERWINDOW )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r Border
            if ( (nParams & PARAM_BOOL_1) && bBool1 )
                pControl = pControl->GetWindow( WINDOW_OVERLAP );

			pRet->GenReturn ( RET_Value, aUId, (comm_ULONG)pControl->GetSizePixel().Height() );
=====================================================================
Found a 26 line (137 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/display/html/pm_class.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/display/idl/hfi_hierarchy.cxx

    io_rDisplayer.Out().Enter(rPre);

    for ( int line = 0; line < nSize; ++line )
    {
        char * sLine1 = new char[2 + line*5];
        char * sLine2 = new char[1 + line*5];
        *sLine1 = '\0';
        *sLine2 = '\0';

        bool bBaseForThisLineReached = false;
     	for ( int col = 0; col < line; ++col )
        {
            intt nDerivPos = aPositionList[col]->Derived()->Position();

            if ( nDerivPos >= line )
                strcat(sLine1, "  |  ");
            else
                strcat(sLine1, "     ");

            if ( nDerivPos > line )
            {
                strcat(sLine2, "  |  ");
            }
            else if ( nDerivPos == line )
            {
                if (NOT bBaseForThisLineReached)
=====================================================================
Found a 22 line (136 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/filter/WriterFilter.cxx
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/component.cxx

	OOXML_SCANNERTESTSERVICE_COMPONENT_ENTRY, /* debugservices.ooxml.ScannerTestService */
	{ 0, 0, 0, 0, 0, 0 } // terminate with NULL
};


    void SAL_CALL component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

sal_Bool SAL_CALL component_writeInfo( ::com::sun::star::lang::XMultiServiceFactory * xMgr, ::com::sun::star::registry::XRegistryKey * xRegistry )
{
	return ::cppu::component_writeInfoHelper( xMgr, xRegistry, s_component_entries );
}


void * SAL_CALL component_getFactory(sal_Char const * implName, ::com::sun::star::lang::XMultiServiceFactory * xMgr, ::com::sun::star::registry::XRegistryKey * xRegistry )
{
	return ::cppu::component_getFactoryHelper(implName, xMgr, xRegistry, s_component_entries );
}

}
=====================================================================
Found a 34 line (136 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_vcgen_bspline.cpp
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_vcgen_smooth_poly1.cpp

    unsigned vcgen_smooth_poly1::vertex(double* x, double* y)
    {
        unsigned cmd = path_cmd_line_to;
        while(!is_stop(cmd))
        {
            switch(m_status)
            {
            case initial:
                rewind(0);

            case ready:
                if(m_src_vertices.size() <  2)
                {
                    cmd = path_cmd_stop;
                    break;
                }

                if(m_src_vertices.size() == 2)
                {
                    *x = m_src_vertices[m_src_vertex].x;
                    *y = m_src_vertices[m_src_vertex].y;
                    m_src_vertex++;
                    if(m_src_vertex == 1) return path_cmd_move_to;
                    if(m_src_vertex == 2) return path_cmd_line_to;
                    cmd = path_cmd_stop;
                    break;
                }

                cmd = path_cmd_move_to;
                m_status = polygon;
                m_src_vertex = 0;

            case polygon:
                if(m_closed)
=====================================================================
Found a 21 line (136 tokens) duplication in the following files: 
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

        span_pattern_filter_rgba_bilinear(alloc_type& alloc,
                                          const rendering_buffer& src, 
                                          interpolator_type& inter) :
            base_type(alloc, src, color_type(0,0,0,0), inter, 0),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 17 line (136 tokens) duplication in the following files: 
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            fg[3] += weight * *fg_ptr++;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            fg[order_type::A] += back_a * weight;
                        }
=====================================================================
Found a 13 line (136 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgb.h
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

        };

        //--------------------------------------------------------------------
        static AGG_INLINE void blend_pix(value_type* p, 
                                         unsigned cr, unsigned cg, unsigned cb,
                                         unsigned alpha,
                                         unsigned cover)
        {
            alpha = color_type::base_mask - alpha;
            cover = (cover + 1) << (base_shift - 8);
            p[Order::R] = (value_type)((p[Order::R] * alpha + cr * cover) >> base_shift);
            p[Order::G] = (value_type)((p[Order::G] * alpha + cg * cover) >> base_shift);
            p[Order::B] = (value_type)((p[Order::B] * alpha + cb * cover) >> base_shift);
=====================================================================
Found a 7 line (136 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawarc_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawbezier_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawconnect_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawpie_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawrect_curs.h

static char drawrect_curs_bits[] = {
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x81, 0x00,
=====================================================================
Found a 6 line (136 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotdel_curs.h

   0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 14 line (136 tokens) duplication in the following files: 
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salframe.h
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salframe.h

    virtual void                                SetMenu( SalMenu* pSalMenu );
    virtual void                                DrawMenuBar();
    virtual void                SetExtendedFrameStyle( SalExtStyle nExtStyle );
    virtual void				Show( BOOL bVisible, BOOL bNoActivate = FALSE );
    virtual void				Enable( BOOL bEnable );
    virtual void                SetMinClientSize( long nWidth, long nHeight );
    virtual void                SetMaxClientSize( long nWidth, long nHeight );
    virtual void				SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
    virtual void				GetClientSize( long& rWidth, long& rHeight );
    virtual void				GetWorkArea( Rectangle& rRect );
    virtual SalFrame*			GetParent() const;
    virtual void				SetWindowState( const SalFrameState* pState );
    virtual BOOL				GetWindowState( SalFrameState* pState );
    virtual void				ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
=====================================================================
Found a 19 line (136 tokens) duplication in the following files: 
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gfxlink.cxx
Starting at line 1283 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impgraph.cxx

							::ucbhelper::Content aCnt( aTmpURL.GetMainURL( INetURLObject::NO_DECODE ),
												 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );

							aCnt.executeCommand( ::rtl::OUString::createFromAscii( "delete" ),
												 ::com::sun::star::uno::makeAny( sal_Bool( sal_True ) ) );
						}
						catch( const ::com::sun::star::ucb::ContentCreationException& )
						{
						}
						catch( const ::com::sun::star::uno::RuntimeException& )
						{
						}
						catch( const ::com::sun::star::ucb::CommandAbortedException& )
						{
						}
        		        catch( const ::com::sun::star::uno::Exception& )
		                {
		                }
					}
=====================================================================
Found a 29 line (136 tokens) duplication in the following files: 
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/combobox.cxx
Starting at line 1811 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/edit.cxx

	Font aFont = GetDrawPixelFont( pDev );
	OutDevType eOutDevType = pDev->GetOutDevType();

	pDev->Push();
	pDev->SetMapMode();
	pDev->SetFont( aFont );
	pDev->SetTextFillColor();

	// Border/Background
	pDev->SetLineColor();
	pDev->SetFillColor();
	BOOL bBorder = !(nFlags & WINDOW_DRAW_NOBORDER ) && (GetStyle() & WB_BORDER);
	BOOL bBackground = !(nFlags & WINDOW_DRAW_NOBACKGROUND) && IsControlBackground();
	if ( bBorder || bBackground )
	{
		Rectangle aRect( aPos, aSize );
		if ( bBorder )
		{
            ImplDrawFrame( pDev, aRect );
		}
		if ( bBackground )
		{
			pDev->SetFillColor( GetControlBackground() );
			pDev->DrawRect( aRect );
		}
	}

	// Inhalt
	if ( ( nFlags & WINDOW_DRAW_MONO ) || ( eOutDevType == OUTDEV_PRINTER ) )
=====================================================================
Found a 33 line (136 tokens) duplication in the following files: 
Starting at line 944 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 2846 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

        if ( exchange( xNewId ) )
        {
            // Process instanciated children...
            
            ContentRefList aChildren;
            queryChildren( aChildren );
	    
            ContentRefList::const_iterator it  = aChildren.begin();
            ContentRefList::const_iterator end = aChildren.end();

            while ( it != end )
            {
                ContentRef xChild = (*it);

                // Create new content identifier for the child...
                uno::Reference< ucb::XContentIdentifier >
                    xOldChildId = xChild->getIdentifier();
                rtl::OUString aOldChildURL
                    = xOldChildId->getContentIdentifier();
                rtl::OUString aNewChildURL
                    = aOldChildURL.replaceAt(
                        0,
                        aOldURL.getLength(),
                        xNewId->getContentIdentifier() );
                uno::Reference< ucb::XContentIdentifier >
                    xNewChildId
                    = new ::ucbhelper::ContentIdentifier( m_xSMgr, aNewChildURL );
                
                if ( !xChild->exchangeIdentity( xNewChildId ) )
                    return sal_False;
                
                ++it;
            }
=====================================================================
Found a 34 line (136 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_contentcaps.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_contentcaps.cxx

    static const ucb::CommandInfo aCommandInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Mandatory commands
		///////////////////////////////////////////////////////////////
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::Property > * >( 0 ) )
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
		)
		///////////////////////////////////////////////////////////////
		// Optional standard commands
		///////////////////////////////////////////////////////////////

#ifdef IMPLEMENT_COMMAND_DELETE
        , ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
=====================================================================
Found a 39 line (136 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

            ::ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString(),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet <<= setPropertyValues( aProperties, Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "getPropertySetInfo" ) ) )
    {
		//////////////////////////////////////////////////////////////////
		// getPropertySetInfo
		//////////////////////////////////////////////////////////////////

		// Note: Implemented by base class.
		aRet <<= getPropertySetInfo( Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "getCommandInfo" ) ) )
    {
		//////////////////////////////////////////////////////////////////
		// getCommandInfo
		//////////////////////////////////////////////////////////////////

		// Note: Implemented by base class.
		aRet <<= getCommandInfo( Environment );
	}
#ifdef IMPLEMENT_COMMAND_OPEN
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "open" ) ) )
    {
        ucb::OpenCommandArgument2 aOpenCommand;
      	if ( !( aCommand.Argument >>= aOpenCommand ) )
		{
            OSL_ENSURE( sal_False, "Wrong argument type!" );
=====================================================================
Found a 33 line (136 tokens) duplication in the following files: 
Starting at line 1152 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 944 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

            if ( eType == FOLDER )
			{
				// Process instanciated children...

                ContentRefList aChildren;
				queryChildren( aChildren );

                ContentRefList::const_iterator it  = aChildren.begin();
                ContentRefList::const_iterator end = aChildren.end();

				while ( it != end )
				{
                    ContentRef xChild = (*it);

					// Create new content identifier for the child...
                    uno::Reference< ucb::XContentIdentifier > xOldChildId
													= xChild->getIdentifier();
                    rtl::OUString aOldChildURL
                        = xOldChildId->getContentIdentifier();
                    rtl::OUString aNewChildURL
						= aOldChildURL.replaceAt(
										0,
										aOldURL.getLength(),
										xNewId->getContentIdentifier() );
                    uno::Reference< ucb::XContentIdentifier > xNewChildId
						= new ::ucbhelper::ContentIdentifier( 
                            m_xSMgr, aNewChildURL );

					if ( !xChild->exchangeIdentity( xNewChildId ) )
						return sal_False;

					++it;
				}
=====================================================================
Found a 39 line (136 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_contentcaps.cxx

    static ucb::CommandInfo aCommandInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Required commands
		///////////////////////////////////////////////////////////////
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::Property > * >( 0 ) )
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
		),
		///////////////////////////////////////////////////////////////
		// Optional standard commands
		///////////////////////////////////////////////////////////////
/*
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
			-1,
			getCppuBooleanType()
		),
*/
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
=====================================================================
Found a 37 line (136 tokens) duplication in the following files: 
Starting at line 1068 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1146 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    : WW8PLCFx(eVersion, false), nClipStart(-1)
{
    // eigenen Iterator konstruieren
    pPcdI = new WW8PLCFpcd_Iter(*pPLCFpcd, nStartCp);
    bVer67= bVer67P;
}

WW8PLCFx_PCD::~WW8PLCFx_PCD()
{
    // pPcd-Dtor which in called from WW8ScannerBase
    delete pPcdI;
}

ULONG WW8PLCFx_PCD::GetIMax() const
{
    return pPcdI ? pPcdI->GetIMax() : 0;
}

ULONG WW8PLCFx_PCD::GetIdx() const
{
    return pPcdI ? pPcdI->GetIdx() : 0;
}

void WW8PLCFx_PCD::SetIdx( ULONG nIdx )
{
    if (pPcdI)
        pPcdI->SetIdx( nIdx );
}

bool WW8PLCFx_PCD::SeekPos(WW8_CP nCpPos)
{
    return pPcdI ? pPcdI->SeekPos( nCpPos ) : false;
}

WW8_CP WW8PLCFx_PCD::Where()
{
    return pPcdI ? pPcdI->Where() : WW8_CP_MAX;
=====================================================================
Found a 21 line (136 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptParallelogramGluePoints, sizeof( mso_sptParallelogramGluePoints ) / sizeof( SvxMSDffVertPair )
};

static const SvxMSDffVertPair mso_sptDiamondVert[] =
{
	{ 10800, 0 }, { 21600, 10800 }, { 10800, 21600 }, {	0, 10800 }, { 10800, 0 }
};
static const SvxMSDffTextRectangles mso_sptDiamondTextRect[] = 
{
	{ { 5400, 5400 }, { 16200, 16200 } }
};
static const mso_CustomShape msoDiamond =
{
	(SvxMSDffVertPair*)mso_sptDiamondVert, sizeof( mso_sptDiamondVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptDiamondTextRect, sizeof( mso_sptDiamondTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 30 line (136 tokens) duplication in the following files: 
Starting at line 1119 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/itemset.cxx
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/itemset.cxx

			if( *ppFnd1 && *ppFnd2 )
			{
				// aus dem Pool loeschen
				if( !IsInvalidItem( *ppFnd1 ) )
				{
					USHORT nWhich = (*ppFnd1)->Which();
					if(nWhich <= SFX_WHICH_MAX)
					{
						const SfxPoolItem& rNew = _pParent
							? _pParent->Get( nWhich, TRUE )
							: _pPool->GetDefaultItem( nWhich );

						Changed( **ppFnd1, rNew );
					}
					_pPool->Remove( **ppFnd1 );
				}
				*ppFnd1 = 0;
				--_nCount;
			}
	}
	else
	{
		SfxItemIter aIter( *this );
		const SfxPoolItem* pItem = aIter.GetCurItem();
		while( TRUE )
		{
			USHORT nWhich = IsInvalidItem( pItem )
								? GetWhichByPos( aIter.GetCurPos() )
								: pItem->Which();
			if( SFX_ITEM_SET == rSet.GetItemState( nWhich, FALSE ) )
=====================================================================
Found a 18 line (136 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx

	check( rData1.Any == rData2.Any, "### any does not match!" );

	return (rData1.Bool == rData2.Bool &&
			rData1.Char == rData2.Char &&
			rData1.Byte == rData2.Byte &&
			rData1.Short == rData2.Short &&
			rData1.UShort == rData2.UShort &&
			rData1.Long == rData2.Long &&
			rData1.ULong == rData2.ULong &&
			rData1.Hyper == rData2.Hyper &&
			rData1.UHyper == rData2.UHyper &&
			rData1.Float == rData2.Float &&
			rData1.Double == rData2.Double &&
			rData1.Enum == rData2.Enum &&
			rData1.String == rData2.String &&
			rData1.Interface == rData2.Interface &&
			rData1.Any == rData2.Any);
}
=====================================================================
Found a 5 line (136 tokens) duplication in the following files: 
Starting at line 228 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN(UNO_NAME_PAGE_ORIENTATION),		WID_PAGE_ORIENT,	&::getCppuType((const view::PaperOrientation*)0),0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_WIDTH),			WID_PAGE_WIDTH,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_PREVIEW),			WID_PAGE_PREVIEW,	SEQTYPE(::getCppuType((::com::sun::star::uno::Sequence<sal_Int8>*)0)), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_PREVIEWBITMAP),	WID_PAGE_PREVIEWBITMAP,	SEQTYPE(::getCppuType((::com::sun::star::uno::Sequence<sal_Int8>*)0)), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
		{ MAP_CHAR_LEN(sUNO_Prop_UserDefinedAttributes),WID_PAGE_USERATTRIBS, &::getCppuType((const Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
=====================================================================
Found a 12 line (136 tokens) duplication in the following files: 
Starting at line 756 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuoaprms.cxx
Starting at line 881 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview2.cxx

								SdAnimationPrmsUndoAction* pAction = new SdAnimationPrmsUndoAction(mpDoc, pPickObj, bCreated);
								pAction->SetActive(pInfo->mbActive, pInfo->mbActive);
								pAction->SetEffect(pInfo->meEffect, pInfo->meEffect);
								pAction->SetTextEffect(pInfo->meTextEffect, pInfo->meTextEffect);
								pAction->SetSpeed(pInfo->meSpeed, pInfo->meSpeed);
								pAction->SetDim(pInfo->mbDimPrevious, pInfo->mbDimPrevious);
								pAction->SetDimColor(pInfo->maDimColor, pInfo->maDimColor);
								pAction->SetDimHide(pInfo->mbDimHide, pInfo->mbDimHide);
								pAction->SetSoundOn(pInfo->mbSoundOn, pInfo->mbSoundOn);
								pAction->SetSound(pInfo->maSoundFile, pInfo->maSoundFile);
								pAction->SetPlayFull(pInfo->mbPlayFull, pInfo->mbPlayFull);
								pAction->SetPathObj(pInfo->mpPathObj, pInfo->mpPathObj);
=====================================================================
Found a 18 line (136 tokens) duplication in the following files: 
Starting at line 968 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/epptso.cxx
Starting at line 3503 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/escherex.cxx

::com::sun::star::beans::PropertyState EscherPropertyValueHelper::GetPropertyState(
	const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & rXPropSet,
		const String& rPropertyName )
{
	::com::sun::star::beans::PropertyState eRetValue = ::com::sun::star::beans::PropertyState_AMBIGUOUS_VALUE;
	try
	{
		::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >	aXPropState
				( rXPropSet, ::com::sun::star::uno::UNO_QUERY );
		if ( aXPropState.is() )
            eRetValue = aXPropState->getPropertyState( rPropertyName );
	}
	catch( ::com::sun::star::uno::Exception& )
	{
		//...
	}
	return eRetValue;
}
=====================================================================
Found a 12 line (136 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbawindows.cxx
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbaworkbooks.cxx

	SpreadSheetDocEnumImpl( const uno::Reference< uno::XComponentContext >& xContext ) throw ( uno::RuntimeException ) :  m_xContext( xContext )
	{
		uno::Reference< lang::XMultiComponentFactory > xSMgr(
			m_xContext->getServiceManager(), uno::UNO_QUERY_THROW );

		uno::Reference< frame::XDesktop > xDesktop
			(xSMgr->createInstanceWithContext(::rtl::OUString::createFromAscii("com.sun.star.frame.Desktop"), m_xContext), uno::UNO_QUERY_THROW );
		uno::Reference< container::XEnumeration > mxComponents = xDesktop->getComponents()->createEnumeration();
		while( mxComponents->hasMoreElements() )
		{
			uno::Reference< sheet::XSpreadsheetDocument > xNext( mxComponents->nextElement(), uno::UNO_QUERY );
			if ( xNext.is() )
=====================================================================
Found a 24 line (136 tokens) duplication in the following files: 
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/viewuno.cxx
Starting at line 1228 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/viewuno.cxx

                                    throw (uno::RuntimeException)
{
    sal_Bool bReturn(sal_False);

    if (aMouseClickHandlers.Count())
    {
        uno::Reference< uno::XInterface > xTarget = GetClickedObject(Point(e.X, e.Y));

        if (xTarget.is())
        {
            awt::EnhancedMouseEvent aMouseEvent;

            aMouseEvent.Buttons = e.Buttons;
            aMouseEvent.X = e.X;
            aMouseEvent.Y = e.Y;
            aMouseEvent.ClickCount = e.ClickCount;
            aMouseEvent.PopupTrigger = e.PopupTrigger;
            aMouseEvent.Target = xTarget;

	        for ( USHORT n=0; n<aMouseClickHandlers.Count(); n++ )
            {
                try
                {
                    if (!(*aMouseClickHandlers[n])->mouseReleased( aMouseEvent ))
=====================================================================
Found a 19 line (136 tokens) duplication in the following files: 
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/transobj.cxx
Starting at line 852 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx

                ::utl::TempFile     aTempFile;
                aTempFile.EnableKillingFile();
                uno::Reference< embed::XStorage > xWorkStore =
                    ::comphelper::OStorageHelper::GetStorageFromURL( aTempFile.GetURL(), embed::ElementModes::READWRITE );

                // write document storage
                pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, sal_False );
                // mba: no BaseURL for clipboard
                SfxMedium aMedium( xWorkStore, String() );
                bRet = pEmbObj->DoSaveObjectAs( aMedium, FALSE );
                pEmbObj->DoSaveCompleted();

                uno::Reference< embed::XTransactedObject > xTransact( xWorkStore, uno::UNO_QUERY );
                if ( xTransact.is() )
                    xTransact->commit();

                SvStream* pSrcStm = ::utl::UcbStreamHelper::CreateStream( aTempFile.GetURL(), STREAM_READ );
                if( pSrcStm )
                {
=====================================================================
Found a 26 line (136 tokens) duplication in the following files: 
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen5.cxx
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen5.cxx

	if (!pDrawLayer || bInDtorClear)
		return;

	for (SCTAB nTab=0; nTab<=MAXTAB && pTab[nTab]; nTab++)
	{
		SdrPage* pPage = pDrawLayer->GetPage(static_cast<sal_uInt16>(nTab));
		DBG_ASSERT(pPage,"Page ?");

		SdrObjListIter aIter( *pPage, IM_DEEPNOGROUPS );
		SdrObject* pObject = aIter.Next();
		while (pObject)
		{
			if ( pObject->GetObjIdentifier() == OBJ_OLE2 &&
					((SdrOle2Obj*)pObject)->GetPersistName() == rChartName )
			{
                //@todo?: maybe we need a notification
                //from the calc to the chart in future
                //that calc content has changed
                // ((SdrOle2Obj*)pObject)->GetNewReplacement();

                // Load the object and set modified

                uno::Reference< embed::XEmbeddedObject > xIPObj = ((SdrOle2Obj*)pObject)->GetObjRef();
                if ( xIPObj.is() )
                {
                    svt::EmbeddedObjectRef::TryRunningState( xIPObj );
=====================================================================
Found a 24 line (136 tokens) duplication in the following files: 
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/signal.c
Starting at line 488 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/source/result/signal.cxx

    for (int i = 0; i < NoSignals; i++) 
    {
        if (Signals[i].Action != ACT_SYSTEM)
        {
            if (Signals[i].Action == ACT_HIDE)
            {
                struct sigaction ign;
                
                ign.sa_handler = SIG_IGN;
                ign.sa_flags   = 0;
                sigemptyset(&ign.sa_mask);
                
                if (sigaction(Signals[i].Signal, &ign, &oact) == 0)
                    Signals[i].Handler = oact.sa_handler;
                else
                    Signals[i].Handler = SIG_DFL;
            }
            else
                if (sigaction(Signals[i].Signal, &act, &oact) == 0)
                    Signals[i].Handler = oact.sa_handler;
                else
                    Signals[i].Handler = SIG_DFL;
        }
    }
=====================================================================
Found a 22 line (136 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/datatest.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testsax.cxx

	OSaxParserTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory )
	{
	}
public:
    virtual void SAL_CALL testInvariant(
		const OUString& TestName,
		const Reference < XInterface >& TestObject)
		throw (	IllegalArgumentException, RuntimeException);

    virtual sal_Int32 SAL_CALL test(
		const OUString& TestName,
		const Reference < XInterface >& TestObject,
		sal_Int32 hTestHandle)
		throw (	IllegalArgumentException,RuntimeException);

    virtual sal_Bool SAL_CALL testPassed(void) throw (	RuntimeException);
    virtual Sequence< OUString > SAL_CALL getErrors(void) 				throw (RuntimeException);
    virtual Sequence< Any > SAL_CALL getErrorExceptions(void) 		throw (RuntimeException);
    virtual Sequence< OUString > SAL_CALL getWarnings(void) 				throw (RuntimeException);

private:
	void testSimple( const Reference < XParser > &r );
=====================================================================
Found a 28 line (136 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxf2mtf.cxx
Starting at line 678 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxf2mtf.cxx

			DXFTransform(1.0,1.0,1.0,DXFVector(0.0,0.0,0.0)-pB->aBasePoint),
			rTransform
		);
		long nSavedBlockColor, nSavedParentLayerColor;
		PenStyle eSavedBlockPStyle, eSavedParentLayerPStyle;
		nSavedBlockColor=nBlockColor;
		nSavedParentLayerColor=nParentLayerColor;
		eSavedBlockPStyle=eBlockPStyle;
		eSavedParentLayerPStyle=eParentLayerPStyle;
		nBlockColor=GetEntityColor(rE);
		eBlockPStyle=GetEntityPStyle(rE);
		if (rE.sLayer[0]!='0' || rE.sLayer[1]!=0) {
			DXFLayer * pLayer=pDXF->aTables.SearchLayer(rE.sLayer);
			if (pLayer!=NULL) {
				nParentLayerColor=pLayer->nColor;
				eParentLayerPStyle=LTypeToPStyle(pLayer->sLineType);
			}
		}
		DrawEntities(*pB,aT,FALSE);
		eBlockPStyle=eSavedBlockPStyle;
		eParentLayerPStyle=eSavedParentLayerPStyle;
		nBlockColor=nSavedBlockColor;
		nParentLayerColor=nSavedParentLayerColor;
	}
}


void DXF2GDIMetaFile::DrawEntities(const DXFEntities & rEntities,
=====================================================================
Found a 26 line (136 tokens) duplication in the following files: 
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontmenucontroller.cxx
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontsizemenucontroller.cxx

    const rtl::OUString aFontHeightCommand( RTL_CONSTASCII_USTRINGPARAM( ".uno:FontHeight?FontHeight.Height:float=" ));

    if ( xPopupMenu.is() && xDispatch.is() )
    {
        VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( xPopupMenu );
        if ( pPopupMenu )
        {
            css::util::URL               aTargetURL;
	        Sequence<PropertyValue>	     aArgs;
            Reference< XURLTransformer > xURLTransformer( xServiceManager->createInstance( 
                                                            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                        UNO_QUERY );

            {
                vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
                PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();
                aTargetURL.Complete = pVCLPopupMenu->GetItemCommand( rEvent.MenuId );
            }
            
            xURLTransformer->parseStrict( aTargetURL );
            xDispatch->dispatch( aTargetURL, aArgs );
        }
    }
}

void SAL_CALL FontSizeMenuController::activate( const css::awt::MenuEvent& ) throw (RuntimeException)
=====================================================================
Found a 26 line (136 tokens) duplication in the following files: 
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/constitemcontainer.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/rootitemcontainer.cxx

        {
            for ( sal_Int32 i = 0; i < nCount; i++ )
            {
                Sequence< PropertyValue > aPropSeq;
                Any a = rSourceContainer->getByIndex( i );
                if ( a >>= aPropSeq )
                {
                    sal_Int32 nContainerIndex = -1;
                    Reference< XIndexAccess > xIndexAccess;
                    for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
                    {
                        if ( aPropSeq[j].Name.equalsAscii( "ItemDescriptorContainer" ))
                        {
                            aPropSeq[j].Value >>= xIndexAccess;
                            nContainerIndex = j;
                            break;
                        }
                    }

                    if ( xIndexAccess.is() && nContainerIndex >= 0 )
                        aPropSeq[nContainerIndex].Value <<= deepCopyContainer( xIndexAccess );
                    
                    m_aItemVector.push_back( aPropSeq );
                }
            }
        }
=====================================================================
Found a 26 line (136 tokens) duplication in the following files: 
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/popupmenucontrollerbase.cxx
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontsizemenucontroller.cxx

    const rtl::OUString aFontHeightCommand( RTL_CONSTASCII_USTRINGPARAM( ".uno:FontHeight?FontHeight.Height:float=" ));

    if ( xPopupMenu.is() && xDispatch.is() )
    {
        VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( xPopupMenu );
        if ( pPopupMenu )
        {
            css::util::URL               aTargetURL;
	        Sequence<PropertyValue>	     aArgs;
            Reference< XURLTransformer > xURLTransformer( xServiceManager->createInstance( 
                                                            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                        UNO_QUERY );

            {
                vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
                PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();
                aTargetURL.Complete = pVCLPopupMenu->GetItemCommand( rEvent.MenuId );
            }
            
            xURLTransformer->parseStrict( aTargetURL );
            xDispatch->dispatch( aTargetURL, aArgs );
        }
    }
}

void SAL_CALL FontSizeMenuController::activate( const css::awt::MenuEvent& ) throw (RuntimeException)
=====================================================================
Found a 22 line (136 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxdocumenthandler.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxdocumenthandler.cxx

struct ToolBarEntryProperty
{
	OReadToolBoxDocumentHandler::ToolBox_XML_Namespace	nNamespace;
	char												aEntryName[20];
};

ToolBarEntryProperty ToolBoxEntries[OReadToolBoxDocumentHandler::TB_XML_ENTRY_COUNT] =
{
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ELEMENT_TOOLBAR				},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ELEMENT_TOOLBARITEM			},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ELEMENT_TOOLBARSPACE		},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ELEMENT_TOOLBARBREAK		},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ELEMENT_TOOLBARSEPARATOR	},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ATTRIBUTE_TEXT				},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ATTRIBUTE_BITMAP			},
	{ OReadToolBoxDocumentHandler::TB_NS_XLINK,		ATTRIBUTE_URL				},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ATTRIBUTE_ITEMBITS			},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ATTRIBUTE_VISIBLE			},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ATTRIBUTE_WIDTH				},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ATTRIBUTE_USER				},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ATTRIBUTE_HELPID			},
	{ OReadToolBoxDocumentHandler::TB_NS_TOOLBAR,	ATTRIBUTE_ITEMSTYLE			},
=====================================================================
Found a 26 line (136 tokens) duplication in the following files: 
Starting at line 934 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/datatest.cxx
Starting at line 986 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/datatest.cxx

			XPersistObjectRef persistRef( x , USR_QUERY );
		
			XPropertySetRef rProp( persistRef , USR_QUERY );
			ERROR_ASSERT( rProp.is() , "test object is no property set " );
		
			UsrAny any;
			any.setINT32( 0x83482 );
			rProp->setPropertyValue( L"long" , any );
			
			any.setFloat( 42.23 );
			rProp->setPropertyValue( L"float" , any );
	
			any.setDouble( 	233.321412 );
			rProp->setPropertyValue( L"double" , any );
			
			any.setBOOL( TRUE );
			rProp->setPropertyValue( L"bool" , any );
	
			any.setBYTE( 130 );
			rProp->setPropertyValue( L"byte" , any );
			
			any.setChar( 'h' );
			rProp->setPropertyValue( L"char" , any );
			
			any.setString( L"hi du !" );
			rProp->setPropertyValue( L"string" , any );
=====================================================================
Found a 27 line (136 tokens) duplication in the following files: 
Starting at line 647 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx
Starting at line 704 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx

      	"<html:a href='http://frob.com'>here.</html:a></html:p></html:body>\n"
  	"</html:html>\n";

	Sequence<BYTE> seqBytes( strlen( TestString ) );
	memcpy( seqBytes.getArray() , TestString , strlen( TestString ) );

	
	XInputStreamRef rInStream;
	UString sInput;

	rInStream = createStreamFromSequence( seqBytes , m_rFactory );
	sInput = UString( L"internal" );
	
	if( rParser.is() ) {
		InputSource source;

		source.aInputStream = rInStream;
		source.sSystemId 	= sInput;
		
		TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , FALSE );
		XDocumentHandlerRef rDocHandler( (XDocumentHandler *) pDocHandler , USR_QUERY );
		XEntityResolverRef 	rEntityResolver( (XEntityResolver *) pDocHandler , USR_QUERY );
	
		rParser->setDocumentHandler( rDocHandler );
		rParser->setEntityResolver( rEntityResolver );
		try {
			rParser->parseStream( source );
=====================================================================
Found a 18 line (136 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/bridgetest.cxx

	check( rData1.Any == rData2.Any, "### any does not match!" );

	return (rData1.Bool == rData2.Bool &&
			rData1.Char == rData2.Char &&
			rData1.Byte == rData2.Byte &&
			rData1.Short == rData2.Short &&
			rData1.UShort == rData2.UShort &&
			rData1.Long == rData2.Long &&
			rData1.ULong == rData2.ULong &&
			rData1.Hyper == rData2.Hyper &&
			rData1.UHyper == rData2.UHyper &&
			rData1.Float == rData2.Float &&
			rData1.Double == rData2.Double &&
			rData1.Enum == rData2.Enum &&
			rData1.String == rData2.String &&
			rData1.Interface == rData2.Interface &&
			rData1.Any == rData2.Any);
}
=====================================================================
Found a 29 line (136 tokens) duplication in the following files: 
Starting at line 1250 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx
Starting at line 1586 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx

                               const ::std::vector< sal_Int32 >& 					rPolygonGlyphMap,
                               const uno::Sequence< double >&						rOffsets,
                               VirtualDevice&										rVDev,
                               const CanvasSharedPtr&								rCanvas, 
                               const OutDevState& 									rState,
                               const ::basegfx::B2DHomMatrix&						rTextTransform ); 

                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
                                     const Subset&					rSubset ) const;

                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix&	rTransformation,
                                                       const Subset&					rSubset ) const;

                virtual sal_Int32 getActionCount() const;

            private:
                // TextRenderer interface
                virtual bool operator()( const rendering::RenderState& rRenderState ) const;
                    
                // TODO(P2): This is potentially a real mass object
                // (every character might be a separate TextAction),
                // thus, make it as lightweight as possible. For
                // example, share common RenderState among several
                // TextActions, maybe using maOffsets for the
                // translation.

                uno::Reference< rendering::XPolyPolygon2D >			mxTextPoly;
=====================================================================
Found a 26 line (136 tokens) duplication in the following files: 
Starting at line 780 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JConnection.cxx
Starting at line 1129 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

	jobject out(NULL);
	SDBThreadAttach t;
	if( t.pEnv )
	{
		// temporaere Variable initialisieren
		static const char * cSignature = "()Ljava/sql/SQLWarning;";
		static const char * cMethodName = "getWarnings";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	if( out )
	{
		java_sql_SQLWarning_BASE		warn_base( t.pEnv, out );
		return makeAny(
            static_cast< starsdbc::SQLException >(
                java_sql_SQLWarning(warn_base,*this)));
	}

	return ::com::sun::star::uno::Any();
=====================================================================
Found a 31 line (136 tokens) duplication in the following files: 
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FConnection.cxx
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx

}
// --------------------------------------------------------------------------------
sal_Bool SAL_CALL OConnection::isClosed(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	
	// just simple -> we are close when we are disposed taht means someone called dispose(); (XComponent)
	return OConnection_BASE::rBHelper.bDisposed;
}
// --------------------------------------------------------------------------------
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);
		
	// here we have to create the class with biggest interface
	// The answer is 42 :-)
	Reference< XDatabaseMetaData > xMetaData = m_xMetaData;
	if(!xMetaData.is())
	{
		xMetaData = new ODatabaseMetaData(this); // need the connection because it can return it
		m_xMetaData = xMetaData;
	}

	return xMetaData;
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);
=====================================================================
Found a 25 line (136 tokens) duplication in the following files: 
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/localbe/localsinglebackend.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/localbe/localstratumbase.cxx

sal_Bool SAL_CALL LocalStratumBase::isEqualEntity(const OUString& aEntity, const OUString& aOtherEntity) 
    throw (backend::BackendAccessException, lang::IllegalArgumentException, uno::RuntimeException)
{
    if (aEntity.getLength() == 0)
    {
        rtl::OUString const sMsg(RTL_CONSTASCII_USTRINGPARAM(
                "LocalSingleBackend - Invalid empty entity."));

        throw lang::IllegalArgumentException(sMsg, *this, 1);
    }
    if (aOtherEntity.getLength() == 0)
    {
        rtl::OUString const sMsg(RTL_CONSTASCII_USTRINGPARAM(
                "LocalSingleBackend - Invalid empty entity."));

        throw lang::IllegalArgumentException(sMsg, *this, 2);
    }
    OUString aNormalizedEntity(aEntity);
    normalizeURL(aNormalizedEntity,*this);

    OUString aNormalizedOther(aOtherEntity);
    normalizeURL(aNormalizedOther,*this);

    return aNormalizedEntity == aNormalizedOther;
}
=====================================================================
Found a 26 line (136 tokens) duplication in the following files: 
Starting at line 698 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 1968 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 3199 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

void EnumType::dumpCGetCunoType(FileStream& o)
{
	OString typeName(m_typeName.replace('/', '_'));

	dumpOpenExternC(o);

	o << "#if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))\n"
	  << "static typelib_TypeDescriptionReference * s_pType_" << typeName << " = 0;\n"
	  << "#endif\n\n";

	o << "typelib_TypeDescriptionReference ** SAL_CALL getCUnoType_" << m_name << "() SAL_THROW_EXTERN_C( () )\n{\n";
	inc();

	o << "#if ! (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))\n"
	  << indent() << "static typelib_TypeDescriptionReference * s_pType_" << typeName << " = 0;\n"
	  << "#endif\n\n";

	o << indent() << "if ( !s_pType_" << typeName << " )\n" << indent() << "{\n";
	inc();
	o << indent() << "oslMutex * pMutex = osl_getGlobalMutex();\n"
	  << indent() << "osl_acquireMutex( pMutex );\n";

	o << indent() << "if ( !s_pType_" << typeName << " )\n" << indent() << "{\n";
	inc();
	o << indent() << "rtl_uString * pTypeName = 0;\n"
 	  << indent() << "_typelib_TypeDescription * pTD = 0;\n";
=====================================================================
Found a 33 line (136 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
            // has to destruct the any
	}
	else // else no exception occured...
	{
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bOut) // inout/out
			{
				// convert and assign
				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
=====================================================================
Found a 21 line (135 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = m_wrap_mode_x(x_lr_ini);
                    int x_hr = x_hr_ini;
                    const value_type* row_ptr = (const value_type*)base_type::source_image().row(y_lr);
                    do
                    {
                        const value_type* fg_ptr = row_ptr + (x_lr << 2);
                        int weight = (weight_y * weight_array[x_hr] + 
                                     image_filter_size / 2) >> 
                                     downscale_shift;
                        fg[0] += fg_ptr[0] * weight;
                        fg[1] += fg_ptr[1] * weight;
                        fg[2] += fg_ptr[2] * weight;
                        fg[3] += fg_ptr[3] * weight;
                        total_weight += weight;
                        x_hr   += rx_inv;
=====================================================================
Found a 21 line (135 tokens) duplication in the following files: 
Starting at line 519 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                                  weight_array[y_hr] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }

                        x_lr++;
=====================================================================
Found a 22 line (135 tokens) duplication in the following files: 
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 521 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0]     += weight * *fg_ptr++;
                            fg[1]     += weight * *fg_ptr++;
                            fg[2]     += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }

                        x_lr--;
                        y_lr++;

                        weight = (weight_array[x_hr + image_subpixel_size] * 
=====================================================================
Found a 19 line (135 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 870 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

		OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFileControlModel") ) );
	
	Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
	if (xStyle.is())
	{
		StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () );
		Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
		pStyle->importBackgroundColorStyle( xControlModel );
		pStyle->importTextColorStyle( xControlModel );
		pStyle->importTextLineColorStyle( xControlModel );
		pStyle->importBorderStyle( xControlModel );
		pStyle->importFontStyle( xControlModel );
	}
	
	ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
							   _xAttributes );
	ctx.importBooleanProperty(
=====================================================================
Found a 7 line (135 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 34 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_gsv_text.cpp

        0x0a,0x0d,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 22 line (135 tokens) duplication in the following files: 
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/xlfd_extd.cxx
Starting at line 632 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/xlfd_extd.cxx

BitmapXlfd::ToString( ByteString &rString,
		unsigned short nPixelSize, char *pMatricsString, rtl_TextEncoding nEncoding ) const
{
	int nIdx = GetEncodingIdx( nEncoding );
	if ( nIdx < 0 )
		return;

	ExtendedXlfd::ToString( rString, nPixelSize, nEncoding );
	EncodingInfo& rInfo = mpEncodingInfo[ nIdx ];

	AppendAttribute( mpFactory->RetrieveAddstyle(rInfo.mnAddstyle), rString );

	rString += "-*-";
	char pTmp[256];
	snprintf( pTmp, sizeof(pTmp), pMatricsString, nPixelSize, nPixelSize );
	rString += pTmp;
	rString += "-*-*-";
	rString += static_cast< char >(rInfo.mcSpacing);
	rString += "-*";

	AppendAttribute( mpFactory->RetrieveCharset(rInfo.mnCharset), rString );
}
=====================================================================
Found a 27 line (135 tokens) duplication in the following files: 
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/devaudiosound.cxx
Starting at line 437 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/osssound.cxx

		aData.m_pSound = this;

		// check for data chunk
		if( findChunk( &aData, "data" ) == -1 )
			goto failed;
		int nPos = findChunk( &aData, "fmt " );
		if( nPos == -1 )
			goto failed;
		
		int nFormat		= readLEShort( m_pBuffer + nPos + 8 );
		int nChannels	= readLEShort( m_pBuffer + nPos + 10 );
		// check channels
		if( nChannels != 1 && nChannels != 2 )
			goto failed;
		// check formats
		// playable is MS-PCM only at now
		if( nFormat != 1 )
			goto failed;
		return TRUE;
	}
	else if( ! strncmp( ".snd", m_pBuffer, 4 ) )
	{
		ULONG nEncoding		= readBELong( m_pBuffer + 12 );
		ULONG nChannels		= readBELong( m_pBuffer + 20 );

		// check for playable encodings
		if( nEncoding != 1 && nEncoding != 2 && nEncoding != 3 )
=====================================================================
Found a 33 line (135 tokens) duplication in the following files: 
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

    if( !nStepCount )
	{
		long nInc;

		if ( meOutDevType != OUTDEV_PRINTER && !bMtf )
        {
			nInc = ( nMinRect < 50 ) ? 2 : 4;
        }
		else
        {
            // #105998# Use display-equivalent step size calculation
			nInc = (nMinRect < 800) ? 10 : 20;
        }

		if( !nInc )
			nInc = 1;

		nStepCount = nMinRect / nInc;
	}
	
    // minimal drei Schritte und maximal die Anzahl der Farbunterschiede
	long nSteps = Max( nStepCount, 2L );
	long nCalcSteps  = Abs( nRedSteps );
	long nTempSteps = Abs( nGreenSteps );
	if ( nTempSteps > nCalcSteps )
		nCalcSteps = nTempSteps;
	nTempSteps = Abs( nBlueSteps );
	if ( nTempSteps > nCalcSteps )
		nCalcSteps = nTempSteps;
	if ( nCalcSteps < nSteps )
		nSteps = nCalcSteps;
	if ( !nSteps )
		nSteps = 1;
=====================================================================
Found a 18 line (135 tokens) duplication in the following files: 
Starting at line 428 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gfxlink.cxx
Starting at line 430 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impgraph.cxx

				::ucbhelper::Content aCnt( mpSwapFile->aSwapURL.GetMainURL( INetURLObject::NO_DECODE ),
									 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );

				aCnt.executeCommand( ::rtl::OUString::createFromAscii( "delete" ),
									 ::com::sun::star::uno::makeAny( sal_Bool( sal_True ) ) );
			}
			catch( const ::com::sun::star::ucb::ContentCreationException& )
			{
			}
			catch( const ::com::sun::star::uno::RuntimeException& )
			{
			}
			catch( const ::com::sun::star::ucb::CommandAbortedException& )
			{
			}
        	catch( const ::com::sun::star::uno::Exception& )
		    {
		    }
=====================================================================
Found a 32 line (135 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/content.cxx

		osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() );
	  	if ( !pCollection )
	  	{
	  		static cppu::OTypeCollection aCollection(
				CPPU_TYPE_REF( lang::XTypeProvider ),
			   	CPPU_TYPE_REF( lang::XServiceInfo ),
			   	CPPU_TYPE_REF( lang::XComponent ),
			   	CPPU_TYPE_REF( ucb::XContent ),
			   	CPPU_TYPE_REF( ucb::XCommandProcessor ),
			   	CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
			   	CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
			   	CPPU_TYPE_REF( beans::XPropertyContainer ),
			   	CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
			   	CPPU_TYPE_REF( container::XChild ) );
	  		pCollection = &aCollection;
		}
	}

	return (*pCollection).getTypes();
}

//=========================================================================
//
// XServiceInfo methods.
//
//=========================================================================

// virtual
rtl::OUString SAL_CALL Content::getImplementationName()
	throw( uno::RuntimeException )
{
	return rtl::OUString::createFromAscii( "CHelpContent" );
=====================================================================
Found a 41 line (135 tokens) duplication in the following files: 
Starting at line 393 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

    return rtl::OUString::createFromAscii( WEBDAV_CONTENT_TYPE );
}

//=========================================================================
//
// XCommandProcessor methods.
//
//=========================================================================

// virtual
uno::Any SAL_CALL Content::execute(
        const ucb::Command& aCommand,
        sal_Int32 /*CommandId*/,
        const uno::Reference< ucb::XCommandEnvironment >& Environment )
    throw( uno::Exception,
           ucb::CommandAbortedException,
           uno::RuntimeException )
{
    uno::Any aRet;
    
    if ( aCommand.Name.equalsAsciiL(
             RTL_CONSTASCII_STRINGPARAM( "getPropertyValues" ) ) )
    {
      	//////////////////////////////////////////////////////////////////
      	// getPropertyValues
      	//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::Property > Properties;
      	if ( !( aCommand.Argument >>= Properties ) )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

      	aRet <<= getPropertyValues( Properties, Environment );
=====================================================================
Found a 27 line (135 tokens) duplication in the following files: 
Starting at line 712 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 913 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

        const ContentProperties& rData,
        const rtl::Reference< ::ucbhelper::ContentProviderImplHelper >& 
            rProvider,
        const rtl::OUString& rContentId )
{
	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
        = new ::ucbhelper::PropertyValueSet( rSMgr );

	sal_Int32 nCount = rProperties.getLength();
	if ( nCount )
	{
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
		sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
		for ( sal_Int32 n = 0; n < nCount; ++n )
		{
            const beans::Property& rProp = pProps[ n ];

			// Process Core properties.

            if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
			{
				xRow->appendString ( rProp, rData.aContentType );
=====================================================================
Found a 32 line (135 tokens) duplication in the following files: 
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/content.cxx

		osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() );
	  	if ( !pCollection )
	  	{
	  		static cppu::OTypeCollection aCollection(
				CPPU_TYPE_REF( lang::XTypeProvider ),
			   	CPPU_TYPE_REF( lang::XServiceInfo ),
			   	CPPU_TYPE_REF( lang::XComponent ),
			   	CPPU_TYPE_REF( ucb::XContent ),
			   	CPPU_TYPE_REF( ucb::XCommandProcessor ),
			   	CPPU_TYPE_REF( beans::XPropertiesChangeNotifier ),
			   	CPPU_TYPE_REF( ucb::XCommandInfoChangeNotifier ),
			   	CPPU_TYPE_REF( beans::XPropertyContainer ),
			   	CPPU_TYPE_REF( beans::XPropertySetInfoChangeNotifier ),
			   	CPPU_TYPE_REF( container::XChild ) );
	  		pCollection = &aCollection;
		}
	}

	return (*pCollection).getTypes();
}

//=========================================================================
//
// XServiceInfo methods.
//
//=========================================================================

// virtual
rtl::OUString SAL_CALL Content::getImplementationName()
	throw( uno::RuntimeException )
{
	return rtl::OUString::createFromAscii( "CHelpContent" );
=====================================================================
Found a 22 line (135 tokens) duplication in the following files: 
Starting at line 4473 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 4537 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

rtl::OUString INetURLObject::getExtension(sal_Int32 nIndex,
									  bool bIgnoreFinalSlash,
									  DecodeMechanism eMechanism,
									  rtl_TextEncoding eCharset) const
{
	SubString aSegment(getSegment(nIndex, bIgnoreFinalSlash));
	if (!aSegment.isPresent())
		return rtl::OUString();

	sal_Unicode const * pSegBegin
		= m_aAbsURIRef.getStr() + aSegment.getBegin();
	sal_Unicode const * pSegEnd = pSegBegin + aSegment.getLength();

    if (pSegBegin < pSegEnd && *pSegBegin == '/')
        ++pSegBegin;
	sal_Unicode const * pExtension = 0;
	sal_Unicode const * p = pSegBegin;
	for (; p != pSegEnd && *p != ';'; ++p)
		if (*p == '.' && p != pSegBegin)
			pExtension = p;

	if (!pExtension)
=====================================================================
Found a 22 line (135 tokens) duplication in the following files: 
Starting at line 647 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/swparrtf.cxx

		pSttNdIdx = new SwNodeIndex( pDoc->GetNodes() );
		if( !IsNewDoc() )		// in ein Dokument einfuegen ?
		{
			const SwPosition* pPos = pPam->GetPoint();
			SwTxtNode* pSttNd = pPos->nNode.GetNode().GetTxtNode();

			pDoc->SplitNode( *pPos, false );

			*pSttNdIdx = pPos->nNode.GetIndex()-1;
			pDoc->SplitNode( *pPos, false );

			SwPaM aInsertionRangePam( *pPos );

			pPam->Move( fnMoveBackward );

			// #106634# split any redline over the insertion point
			aInsertionRangePam.SetMark();
			*aInsertionRangePam.GetPoint() = *pPam->GetPoint();
			aInsertionRangePam.Move( fnMoveBackward );
			pDoc->SplitRedline( aInsertionRangePam );

            pDoc->SetTxtFmtColl( *pPam, pDoc->GetTxtCollFromPool
=====================================================================
Found a 17 line (135 tokens) duplication in the following files: 
Starting at line 1487 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doclay.cxx
Starting at line 1777 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doclay.cxx

	pNewFmt->SetAttr( SwFmtCntnt( pSttNd ));
	pNewFmt->SetAttr( *pNewSet );

	const SwFmtAnchor& rAnchor = pNewFmt->GetAnchor();
	if( FLY_IN_CNTNT == rAnchor.GetAnchorId() )
	{
		const SwPosition *pPos = rAnchor.GetCntntAnchor();
		SwTxtNode *pTxtNode = pPos->nNode.GetNode().GetTxtNode();
		ASSERT( pTxtNode->HasHints(), "Missing FlyInCnt-Hint." );
		const xub_StrLen nIdx = pPos->nContent.GetIndex();
		SwTxtAttr *pHnt = pTxtNode->GetTxtAttr( nIdx, RES_TXTATR_FLYCNT );

#ifndef PRODUCT
		ASSERT( pHnt && pHnt->Which() == RES_TXTATR_FLYCNT,
					"Missing FlyInCnt-Hint." );
		ASSERT( pHnt && ((SwFmtFlyCnt&)pHnt->GetFlyCnt()).
					GetFrmFmt() == (SwFrmFmt*)pOldFmt,
=====================================================================
Found a 34 line (135 tokens) duplication in the following files: 
Starting at line 2150 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx
Starting at line 2548 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx

						if( pItem->GetLineEndValue() != pLineEndItem->GetLineEndValue() )
						{
							// same name but different value, we need a new name for this item
							aUniqueName = String();
							bForceNew = sal_True;
						}
						break;
					}
				}
			}
		}

		// if we have no name yet, find existing item with same conent or
		// create a unique name
		if( aUniqueName.Len() == 0 )
		{
			sal_Bool bFoundExisting = sal_False;

			sal_Int32 nUserIndex = 1;
			const ResId aRes(SVX_RES(RID_SVXSTR_LINEEND));
			const String aUser( aRes );

			if( pPool1 )
			{
				nCount = pPool1->GetItemCount( XATTR_LINESTART );
				sal_uInt16 nSurrogate2;

				for( nSurrogate2 = 0; nSurrogate2 < nCount; nSurrogate2++ )
				{
					const XLineStartItem* pItem = (const XLineStartItem*)pPool1->GetItem( XATTR_LINESTART, nSurrogate2 );

					if( pItem && pItem->GetName().Len() )
					{
						if( !bForceNew && pItem->GetLineStartValue() == pLineEndItem->GetLineEndValue() )
=====================================================================
Found a 18 line (135 tokens) duplication in the following files: 
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/_contdlg.cxx
Starting at line 2701 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/fly.cxx

                    fScaleY = (double) aOrig.Height() / aOrgSize.Height();

                    for ( USHORT j = 0, nPolyCount = rContour.Count(); j < nPolyCount; j++ )
                    {
                        Polygon& rPoly = rContour[ j ];

                        for ( USHORT i = 0, nCount = rPoly.GetSize(); i < nCount; i++ )
                        {
                            if ( bPixelMap )
                                aNewPoint = pOutDev->PixelToLogic( rPoly[ i ], aDispMap  );
                            else
                                aNewPoint = pOutDev->LogicToLogic( rPoly[ i ], aGrfMap, aDispMap  );

                            rPoly[ i ] = Point( FRound( aNewPoint.X() * fScaleX ), FRound( aNewPoint.Y() * fScaleY ) );
                        }
                    }
                }
            }
=====================================================================
Found a 10 line (135 tokens) duplication in the following files: 
Starting at line 5479 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4794 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptWaveGluePoints, sizeof( mso_sptWaveGluePoints ) / sizeof( SvxMSDffVertPair )
};
static const SvxMSDffVertPair mso_sptDoubleWaveVert[] =	// adjustment1 : 0 - 2230
{														// adjustment2 : 8640 - 12960
	{ 7 MSO_I, 0 MSO_I }, { 15 MSO_I, 9 MSO_I }, { 0x1e MSO_I, 10 MSO_I }, { 0x12 MSO_I, 0 MSO_I }, { 0x1f MSO_I, 9 MSO_I }, { 16 MSO_I, 10 MSO_I }, { 12 MSO_I, 0 MSO_I },
	{ 24 MSO_I, 1 MSO_I }, { 25 MSO_I, 26 MSO_I }, { 0x21 MSO_I, 28 MSO_I }, { 0x13 MSO_I, 1 MSO_I }, { 0x20 MSO_I, 26 MSO_I }, { 27 MSO_I, 28 MSO_I }, { 29 MSO_I, 1 MSO_I }
};
static const SvxMSDffCalculationData mso_sptDoubleWaveCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },	//400 (vert.adj)
=====================================================================
Found a 20 line (135 tokens) duplication in the following files: 
Starting at line 4347 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3943 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartDecisionVert[] =
{
	{ 0, 10800 }, { 10800, 0 }, { 21600, 10800 }, { 10800, 21600 }, { 0, 10800 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartDecisionTextRect[] = 
{
	{ { 5400, 5400 }, { 16200, 16200 } }
};
static const mso_CustomShape msoFlowChartDecision =
{
	(SvxMSDffVertPair*)mso_sptFlowChartDecisionVert, sizeof( mso_sptFlowChartDecisionVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartDecisionTextRect, sizeof( mso_sptFlowChartDecisionTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 13 line (135 tokens) duplication in the following files: 
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

	double	fAngle	= nAngle * F_PI1800;
	double	fWidth	= aRect.GetWidth();
	double	fHeight = aRect.GetHeight();
	double	fDX 	= fWidth  * fabs( cos( fAngle ) ) +
					  fHeight * fabs( sin( fAngle ) );
	double	fDY 	= fHeight * fabs( cos( fAngle ) ) +
					  fWidth  * fabs( sin( fAngle ) );
			fDX 	= (fDX - fWidth)  * 0.5 + 0.5;
			fDY 	= (fDY - fHeight) * 0.5 + 0.5;
	aRect.Left()   -= (long)fDX;
	aRect.Right()  += (long)fDX;
	aRect.Top()    -= (long)fDY;
	aRect.Bottom() += (long)fDY;
=====================================================================
Found a 11 line (135 tokens) duplication in the following files: 
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/shlxthandler/propsheets/document_statistic.cxx
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/shlxthandler/propsheets/document_statistic.cxx

void draw_impress_math_document_statistic_reader::fill_description_section(
    CMetaInfoReader *meta_info_accessor, statistic_group_list_t* group_list)
{
    statistic_item_list_t il;
    
    il.push_back(statistic_item(GetResString(IDS_TITLE),       meta_info_accessor->getTagData( META_INFO_TITLE ),       READONLY));
    il.push_back(statistic_item(GetResString(IDS_COMMENTS),    meta_info_accessor->getTagData( META_INFO_DESCRIPTION ), READONLY));
    il.push_back(statistic_item(GetResString(IDS_SUBJECT),     meta_info_accessor->getTagData( META_INFO_SUBJECT ),     READONLY));
    il.push_back(statistic_item(GetResString(IDS_KEYWORDS),    meta_info_accessor->getTagData(META_INFO_KEYWORDS ),    READONLY));
    il.push_back(statistic_item(GetResString(IDS_PAGES),       meta_info_accessor->getTagAttribute( META_INFO_DOCUMENT_STATISTIC,META_INFO_PAGES) ,   READONLY));    
    il.push_back(statistic_item(GetResString(IDS_OLE_OBJECTS), meta_info_accessor->getTagAttribute( META_INFO_DOCUMENT_STATISTIC,META_INFO_OBJECTS) , READONLY));
=====================================================================
Found a 23 line (135 tokens) duplication in the following files: 
Starting at line 650 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/menu/virtmenu.cxx
Starting at line 720 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/menu/virtmenu.cxx

			if ( pSVMenu->GetItemType( nSVPos ) == MENUITEM_STRINGIMAGE )
			{
                if ( framework::AddonMenuManager::IsAddonMenuId( nSlotId ))
                {
                    // Special code for Add-On menu items. They can appear inside the help menu.
					rtl::OUString aCmd( pSVMenu->GetItemCommand( nSlotId ) );
					rtl::OUString aImageId;

					::framework::MenuConfiguration::Attributes* pMenuAttributes =
						(::framework::MenuConfiguration::Attributes*)pSVMenu->GetUserValue( nSlotId );

					if ( pMenuAttributes )
						aImageId = pMenuAttributes->aImageId; // Retrieve image id from menu attributes

					pSVMenu->SetItemImage( nSlotId, RetrieveAddOnImage( xFrame, aImageId, aCmd, FALSE, bIsHiContrastMode ));
                }
                else
                {
                    rtl::OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" ));
                    aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId ));
				    pSVMenu->SetItemImage( nSlotId, GetImage( xFrame, aSlotURL, FALSE, bWasHighContrast ));
                }
			}
=====================================================================
Found a 18 line (135 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/impldde.cxx
Starting at line 410 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/impldde.cxx

	String sServer, sTopic, sItem;
	pLink->GetLinkManager()->GetDisplayNames( pLink, &sServer, &sTopic, &sItem );

	aEdDdeApp.SetText( sServer );
	aEdDdeTopic.SetText( sTopic );
	aEdDdeItem.SetText( sItem );

	aEdDdeApp.SetModifyHdl( STATIC_LINK( this, SvDDELinkEditDialog, EditHdl_Impl));
	aEdDdeTopic.SetModifyHdl( STATIC_LINK( this, SvDDELinkEditDialog, EditHdl_Impl));
	aEdDdeItem.SetModifyHdl( STATIC_LINK( this, SvDDELinkEditDialog, EditHdl_Impl));

	aOKButton1.Enable( sServer.Len() && sTopic.Len() && sItem.Len() );
}

String SvDDELinkEditDialog::GetCmd() const
{
	String sCmd( aEdDdeApp.GetText() ), sRet;
	::so3::MakeLnkName( sRet, &sCmd, aEdDdeTopic.GetText(), aEdDdeItem.GetText() );
=====================================================================
Found a 17 line (135 tokens) duplication in the following files: 
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx

	sal_Int32 nColumns = 1;
	if ( mpViewShell && mpTableInfo && nColumn >= 0 && nRow >= 0 &&
			nColumn < mpTableInfo->GetCols() && nRow < mpTableInfo->GetRows() )
	{
		const ScPreviewColRowInfo& rColInfo = mpTableInfo->GetColInfo()[nColumn];
		const ScPreviewColRowInfo& rRowInfo = mpTableInfo->GetRowInfo()[nRow];

		if ( rColInfo.bIsHeader || rRowInfo.bIsHeader )
		{
			//	header cells only span a single cell
		}
		else
		{
			ScDocument* pDoc = mpViewShell->GetDocument();
			const ScMergeAttr* pItem = (const ScMergeAttr*)pDoc->GetAttr(
				static_cast<SCCOL>(rColInfo.nDocIndex), static_cast<SCROW>(rRowInfo.nDocIndex), mpTableInfo->GetTab(), ATTR_MERGE );
			if ( pItem && pItem->GetColMerge() > 0 )
=====================================================================
Found a 5 line (135 tokens) duplication in the following files: 
Starting at line 467 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlwrap.cxx
Starting at line 804 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlwrap.cxx

		{ MAP_LEN( "UsePrettyPrinting" ), 0, &::getCppuType((sal_Bool*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
        { MAP_LEN( "BaseURI" ), 0, &::getCppuType( (rtl::OUString *)0 ), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
        { MAP_LEN( "StreamRelPath" ), 0, &::getCppuType( (rtl::OUString *)0 ), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
        { MAP_LEN( "StreamName" ), 0, &::getCppuType( (rtl::OUString *)0 ), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
        { MAP_LEN( "StyleNames" ), 0, &::getCppuType( (uno::Sequence<rtl::OUString>*)0 ), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
=====================================================================
Found a 43 line (135 tokens) duplication in the following files: 
Starting at line 2650 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 1325 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("123.45.67.89"), IP_PORT_HTTP2 );
			::osl::SocketAddr saLocalSocketAddr;
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);			
			sSocket.bind( saBindSocketAddr );//build an error "osl_Socket_E_AddrNotAvail"
			oslSocketError seBind = sSocket.getError( );
			sSocket.clearError( );
	
			CPPUNIT_ASSERT_MESSAGE( "test for clearError function: trick an error called sSocket.getError( ), and then clear the error states, check the result.", 
									osl_Socket_E_None == sSocket.getError( ) && seBind != osl_Socket_E_None  );
		}
	
		
		CPPUNIT_TEST_SUITE( clearError );
		CPPUNIT_TEST( clearError_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class clearError


	/** testing the methods:
		inline oslSocketError getError() const;
		inline ::rtl::OUString getErrorAsString( ) const;
	*/
	class getError : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

	
		void getError_001()
		{
			::osl::Socket sSocket(sHandle);
			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP );
=====================================================================
Found a 26 line (135 tokens) duplication in the following files: 
Starting at line 15298 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 16076 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_008_Float_Negative : public checkfloat
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
            // LLA: OString                expVal( kTestStr95 );
            float                  input = (float)atof("-3.0");
=====================================================================
Found a 25 line (135 tokens) duplication in the following files: 
Starting at line 9005 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 14724 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_007_Int64_defaultParam : public CppUnit::TestFixture
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
            OString                expVal( kTestStr59 );
=====================================================================
Found a 41 line (135 tokens) duplication in the following files: 
Starting at line 664 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/socket.c
Starting at line 631 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/socket.cxx

	sal_uInt32          nAddr = OSL_INADDR_NONE;

	if (strDottedAddr && strDottedAddr->length)
	{
		/* Dotted host address for limited broadcast */
		rtl_String *pDottedAddr = NULL;

		rtl_uString2String (
			&pDottedAddr, strDottedAddr->buffer, strDottedAddr->length,
			RTL_TEXTENCODING_UTF8, OUSTRING_TO_OSTRING_CVTFLAGS);

		nAddr = inet_addr (pDottedAddr->buffer);
		rtl_string_release (pDottedAddr);
	}

	if (nAddr != OSL_INADDR_NONE)
	{
		/* Limited broadcast */
		nAddr = ntohl(nAddr);
		if (IN_CLASSA(nAddr))
		{
			nAddr &= IN_CLASSA_NET;
			nAddr |= IN_CLASSA_HOST;
		}
		else if (IN_CLASSB(nAddr))
		{
			nAddr &= IN_CLASSB_NET;
			nAddr |= IN_CLASSB_HOST;
		}
		else if (IN_CLASSC(nAddr))
		{
			nAddr &= IN_CLASSC_NET;
			nAddr |= IN_CLASSC_HOST;
		}
		else
		{
			/* No broadcast in class D */
			return ((oslSocketAddr)NULL);
		}
		nAddr = htonl(nAddr);
	}
=====================================================================
Found a 18 line (135 tokens) duplication in the following files: 
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1778 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xdf, 0xbf },
{ 0x00, 0xe0, 0xc0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xf0 },
=====================================================================
Found a 24 line (135 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h

	{ 0x3046, 0x3099 },	// 0x3094 HIRAGANA LETTER VU --> HIRAGANA LETTER U + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x3095
	{ 0x0000, 0x0000 },	// 0x3096
	{ 0x0000, 0x0000 },	// 0x3097
	{ 0x0000, 0x0000 },	// 0x3098
	{ 0x0000, 0x0000 },	// 0x3099 COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309a COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309b KATAKANA-HIRAGANA VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309c KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309d HIRAGANA ITERATION MARK
	{ 0x0000, 0x0000 },	// 0x309e HIRAGANA VOICED ITERATION MARK
	{ 0x0000, 0x0000 },	// 0x309f
	{ 0x0000, 0x0000 },	// 0x30a0
	{ 0x0000, 0x0000 },	// 0x30a1 KATAKANA LETTER SMALL A
	{ 0x0000, 0x0000 },	// 0x30a2 KATAKANA LETTER A
	{ 0x0000, 0x0000 },	// 0x30a3 KATAKANA LETTER SMALL I
	{ 0x0000, 0x0000 },	// 0x30a4 KATAKANA LETTER I
	{ 0x0000, 0x0000 },	// 0x30a5 KATAKANA LETTER SMALL U
	{ 0x0000, 0x0000 },	// 0x30a6 KATAKANA LETTER U
	{ 0x0000, 0x0000 },	// 0x30a7 KATAKANA LETTER SMALL E
	{ 0x0000, 0x0000 },	// 0x30a8 KATAKANA LETTER E
	{ 0x0000, 0x0000 },	// 0x30a9 KATAKANA LETTER SMALL O
	{ 0x0000, 0x0000 },	// 0x30aa KATAKANA LETTER O
	{ 0x0000, 0x0000 },	// 0x30ab KATAKANA LETTER KA
=====================================================================
Found a 5 line (135 tokens) duplication in the following files: 
Starting at line 1534 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1538 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// feb0 - febf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fec0 - fecf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fed0 - fedf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fee0 - feef
    13,13,13,13,13,13,13,13,13,13,13,13,13, 0, 0,18,// fef0 - feff
=====================================================================
Found a 7 line (135 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 34 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_gsv_text.cpp

        0x0a,0x0d,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 5 line (135 tokens) duplication in the following files: 
Starting at line 892 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 896 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 5 line (135 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fab0 - fabf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fac0 - facf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fad0 - fadf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fae0 - faef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// faf0 - faff
=====================================================================
Found a 5 line (135 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 789 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f60 - 9f6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f70 - 9f7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f80 - 9f8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 9f90 - 9f9f
     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fa0 - 9faf
=====================================================================
Found a 22 line (135 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/localedata/saxparser.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/saxdemo.cxx

		nPos( 0 )
		{}

public:
    virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
		throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
		{
			nBytesToRead = (nBytesToRead > m_seq.getLength() - nPos ) ?
				m_seq.getLength() - nPos :
				nBytesToRead;
			aData = Sequence< sal_Int8 > ( &(m_seq.getConstArray()[nPos]) , nBytesToRead );
			nPos += nBytesToRead;
			return nBytesToRead;
		}
    virtual sal_Int32 SAL_CALL readSomeBytes(
		::com::sun::star::uno::Sequence< sal_Int8 >& aData,
		sal_Int32 nMaxBytesToRead )
		throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
		{
			return readBytes( aData, nMaxBytesToRead );
		}
    virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
=====================================================================
Found a 33 line (135 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/characterclassification/cclass_unicode_parser.cxx
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/characterclassification/cclass_unicode_parser.cxx

	/*  95 _ */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/*  96 ` */	TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,	// (TOKEN_ILLEGAL // UNUSED)
	//for ( i = 97; i < 123; i++ )
	/*  97 a */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/*  98 b */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/*  99 c */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 100 d */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 101 e */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 102 f */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 103 g */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 104 h */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 105 i */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 106 j */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 107 k */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 108 l */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 109 m */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 110 n */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 111 o */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 112 p */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 113 q */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 114 r */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 115 s */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 116 t */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 117 u */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 118 v */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 119 w */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 120 x */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 121 y */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 122 z */	TOKEN_CHAR_WORD | TOKEN_WORD,
	/* 123 { */	TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,	// (TOKEN_ILLEGAL // UNUSED)
	/* 124 | */	TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,	// (TOKEN_ILLEGAL // UNUSED)
	/* 125 } */	TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,	// (TOKEN_ILLEGAL // UNUSED)
	/* 126 ~ */	TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,	// (TOKEN_ILLEGAL // UNUSED)
=====================================================================
Found a 19 line (135 tokens) duplication in the following files: 
Starting at line 631 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ipsd/ipsd.cxx
Starting at line 658 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ipsd/ipsd.cxx

							nBlack = (BYTE)mpReadAcc->GetPixel( nY, nX ).GetRed() + nDat;
							if ( nBlack > nBlackMax )
								nBlackMax = nBlack;
							nBlack = (BYTE)mpReadAcc->GetPixel( nY, nX ).GetGreen() + nDat;
							if ( nBlack > nBlackMax )
								nBlackMax = nBlack;
							nBlack = (BYTE)mpReadAcc->GetPixel( nY, nX ).GetBlue() + nDat;
							if ( nBlack > nBlackMax )
								nBlackMax = nBlack;
							pBlack[ nX + nY * mpFileHeader->nColumns ] = nDat ^ 0xff;
							if ( ++nX == mpFileHeader->nColumns )
							{
								nX = 0;
								nY++;
								if ( nY == mpFileHeader->nRows )
									break;
							}
						}
					}
=====================================================================
Found a 15 line (135 tokens) duplication in the following files: 
Starting at line 2333 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 1623 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/wmfwr.cxx

				}
				break;

				case META_FLOATTRANSPARENT_ACTION:
				{
					const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
					
					GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
					Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
					const Size		aSrcSize( aTmpMtf.GetPrefSize() );
					const Point		aDestPt( pA->GetPoint() );
					const Size		aDestSize( pA->GetSize() );
					const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
					const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
					long			nMoveX, nMoveY;
=====================================================================
Found a 18 line (135 tokens) duplication in the following files: 
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/popupmenucontrollerfactory.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/toolbarcontrollerfactory.cxx

        virtual       ~ConfigurationAccess_ToolbarControllerFactory();

        void          readConfigurationData();

        rtl::OUString getServiceFromCommandModule( const rtl::OUString& rCommandURL, const rtl::OUString& rModule ) const;
        void          addServiceToCommandModule( const rtl::OUString& rCommandURL, const rtl::OUString& rModule, const rtl::OUString& rServiceSpecifier );
        void          removeServiceFromCommandModule( const rtl::OUString& rCommandURL, const rtl::OUString& rModule );

        // container.XContainerListener
        virtual void SAL_CALL elementInserted( const ContainerEvent& aEvent ) throw(RuntimeException);
        virtual void SAL_CALL elementRemoved ( const ContainerEvent& aEvent ) throw(RuntimeException);
        virtual void SAL_CALL elementReplaced( const ContainerEvent& aEvent ) throw(RuntimeException);

        // lang.XEventListener
        virtual void SAL_CALL disposing( const EventObject& aEvent ) throw(RuntimeException);
 
    private:
        class ToolbarControllerMap : public std::hash_map< rtl::OUString,
=====================================================================
Found a 13 line (135 tokens) duplication in the following files: 
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/xml/dbloader2.cxx
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/dbloader2.cxx

using namespace ::ucbhelper;
using namespace ::com::sun::star::task;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::document;
using namespace ::com::sun::star::registry;
using namespace ::com::sun::star::embed;
=====================================================================
Found a 6 line (135 tokens) duplication in the following files: 
Starting at line 646 of /local/ooo-build/ooo-build/src/oog680-m3/cosv/source/strings/streamstr.cxx
Starting at line 677 of /local/ooo-build/ooo-build/src/oog680-m3/cosv/source/strings/streamstr.cxx

	static char cUpper[128] =
	{ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15,
	 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
	 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
	 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
	 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
=====================================================================
Found a 21 line (135 tokens) duplication in the following files: 
Starting at line 307 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx
Starting at line 307 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YUser.cxx

void SAL_CALL OMySQLUser::changePassword( const ::rtl::OUString& /*oldPassword*/, const ::rtl::OUString& newPassword ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard(m_aMutex);
	checkDisposed(OUser_BASE_RBHELPER::rBHelper.bDisposed);
	::rtl::OUString sAlterPwd;
	sAlterPwd = ::rtl::OUString::createFromAscii("SET PASSWORD FOR ");
	sAlterPwd += m_Name;
	sAlterPwd += ::rtl::OUString::createFromAscii("@\"%\" = PASSWORD('") ;
	sAlterPwd += newPassword;
	sAlterPwd += ::rtl::OUString::createFromAscii("')") ;

	
	Reference<XStatement> xStmt = m_xConnection->createStatement();
	if ( xStmt.is() )
	{
		xStmt->execute(sAlterPwd);
		::comphelper::disposeComponent(xStmt);
	}
}
// -----------------------------------------------------------------------------
::rtl::OUString OMySQLUser::getPrivilegeString(sal_Int32 nRights) const
=====================================================================
Found a 23 line (135 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HTable.cxx
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YTable.cxx

			}
			alterColumnType(nNewType,colName,descriptor);
		}

		// third: check the default values
		::rtl::OUString sNewDefault,sOldDefault;
		xProp->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_DEFAULTVALUE))		>>= sOldDefault;
		descriptor->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_DEFAULTVALUE)) >>= sNewDefault;

		if(sOldDefault.getLength())
		{
			dropDefaultValue(colName);
			if(sNewDefault.getLength() && sOldDefault != sNewDefault)
				alterDefaultValue(sNewDefault,colName);
		}
		else if(!sOldDefault.getLength() && sNewDefault.getLength())
			alterDefaultValue(sNewDefault,colName);

		// now we should look if the name of the column changed
		::rtl::OUString sNewColumnName;
		descriptor->getPropertyValue(rProp.getNameByIndex(PROPERTY_ID_NAME)) >>= sNewColumnName;
		if ( !sNewColumnName.equalsIgnoreAsciiCase(colName) )
		{
=====================================================================
Found a 17 line (135 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx

			::cppu::extractInterface(xTable,xNames->getByName(*pTabBegin));
			aRow[3] = new ORowSetValueDecorator(*pTabBegin);

			Reference< XNameAccess> xColumns = xTable->getColumns();
			if(!xColumns.is())
				throw SQLException();

			Sequence< ::rtl::OUString> aColNames(xColumns->getElementNames());

			const ::rtl::OUString* pBegin = aColNames.getConstArray();
			const ::rtl::OUString* pEnd = pBegin + aColNames.getLength();
			Reference< XPropertySet> xColumn;
			for(sal_Int32 i=1;pBegin != pEnd;++pBegin,++i)
			{
				if(match(columnNamePattern,*pBegin,'\0'))
				{
					aRow[4] = new ORowSetValueDecorator(*pBegin);
=====================================================================
Found a 26 line (135 tokens) duplication in the following files: 
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BDriver.cxx
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADriver.cxx

	return *(new ODriver(_rxFactory));
}

// --------------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODriver::getImplementationName(  ) throw(RuntimeException)
{
	return getImplementationName_Static();
}

// --------------------------------------------------------------------------------
sal_Bool SAL_CALL ODriver::supportsService( const ::rtl::OUString& _rServiceName ) throw(RuntimeException)
{
	Sequence< ::rtl::OUString > aSupported(getSupportedServiceNames());
	const ::rtl::OUString* pSupported = aSupported.getConstArray();
	const ::rtl::OUString* pEnd = pSupported + aSupported.getLength();
	for (;pSupported != pEnd && !pSupported->equals(_rServiceName); ++pSupported)
		;

	return pSupported != pEnd;
}

// --------------------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL ODriver::getSupportedServiceNames(  ) throw(RuntimeException)
{
	return getSupportedServiceNames_Static();
}
=====================================================================
Found a 24 line (135 tokens) duplication in the following files: 
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/apifactoryimpl.cxx
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/apifactoryimpl.cxx

SetElement* UpdateObjectFactory::doCreateSetElement(configuration::ElementTree const& aElementTree, Template* pSetElementTemplate)
{
	OSL_ENSURE(aElementTree.isValid(), "ERROR: trying to create a set element object without a tree");

	Tree aTree( aElementTree.getTree() );
	OSL_ENSURE(!aTree.isEmpty(), "ERROR: trying to create a set element object without a tree");

	ApiTreeImpl * pParentContext = 0;
	UnoInterfaceRef aParentRelease;

	configuration::Tree aParentTree = aTree.getContextTree();
	if (!aParentTree.isEmpty())
	{
		//NodeRef aParentNode = aTree.getContextNode(); 
		NodeRef aParentRoot = aParentTree.getRootNode(); 
		if (NodeElement* pParentRootElement = makeElement(aParentTree,aParentRoot) )
		{
			aParentRelease = UnoInterfaceRef(pParentRootElement->getUnoInstance(), uno::UNO_REF_NO_ACQUIRE);
			pParentContext = &getImplementation(*pParentRootElement);
		}
	}

	SetElement * pResult = 0;
	if (implIsReadOnly(aTree,aTree.getRootNode()))
=====================================================================
Found a 18 line (135 tokens) duplication in the following files: 
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/misc/mimeconfighelper.cxx
Starting at line 537 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/misc/mimeconfighelper.cxx

	if ( aDocName.getLength() )
	{
		uno::Reference< container::XNameAccess > xObjConfig = GetObjConfiguration();
		if ( xObjConfig.is() )
		{
			try
			{
				uno::Sequence< ::rtl::OUString > aClassIDs = xObjConfig->getElementNames();
				for ( sal_Int32 nInd = 0; nInd < aClassIDs.getLength(); nInd++ )
				{
					uno::Reference< container::XNameAccess > xObjectProps;
					::rtl::OUString aEntryDocName;

					if ( ( xObjConfig->getByName( aClassIDs[nInd] ) >>= xObjectProps ) && xObjectProps.is()
					  && ( xObjectProps->getByName(
			  					::rtl::OUString::createFromAscii( "ObjectDocumentServiceName" ) ) >>= aEntryDocName )
					  && aEntryDocName.equals( aDocName ) )
					{
=====================================================================
Found a 34 line (135 tokens) duplication in the following files: 
Starting at line 1551 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javatype.cxx
Starting at line 1609 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javatype.cxx

                                RTL_CONSTASCII_STRINGPARAM("INTERFACE")),
                            rtl::OString(
                                RTL_CONSTASCII_STRINGPARAM(
                                    "Lcom/sun/star/uno/TypeClass;")));
                        dependencies->insert(
                            rtl::OString(
                                RTL_CONSTASCII_STRINGPARAM(
                                    "com/sun/star/uno/TypeClass")));
                        code->instrInvokespecial(
                            rtl::OString(
                                RTL_CONSTASCII_STRINGPARAM(
                                    "com/sun/star/uno/Type")),
                            rtl::OString(RTL_CONSTASCII_STRINGPARAM("<init>")),
                            rtl::OString(
                                RTL_CONSTASCII_STRINGPARAM(
                                    "(Ljava/lang/String;"
                                    "Lcom/sun/star/uno/TypeClass;)V")));
                        code->loadLocalReference(*index);
                        code->instrInvokespecial(
                            rtl::OString(
                                RTL_CONSTASCII_STRINGPARAM(
                                    "com/sun/star/uno/Any")),
                            rtl::OString(RTL_CONSTASCII_STRINGPARAM("<init>")),
                            rtl::OString(
                                RTL_CONSTASCII_STRINGPARAM(
                                    "(Lcom/sun/star/uno/Type;"
                                    "Ljava/lang/Object;)V")));
                        stack = 6;
                    } else {
                        code->loadLocalReference(*index);
                        stack = 1;
                    }
                    size = 1;
                    break;
=====================================================================
Found a 24 line (135 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/PageBackground.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/StockBar.cxx

const uno::Sequence< Property > & lcl_GetPropertySequence()
{
    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        ::chart::LineProperties::AddPropertiesToVector( aProperties );
        ::chart::FillProperties::AddPropertiesToVector( aProperties );
        ::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}
=====================================================================
Found a 21 line (135 tokens) duplication in the following files: 
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

	*(void**)pCppStack = pThis->pCppI;
	pCppStack += sizeof( void* );

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 16 line (135 tokens) duplication in the following files: 
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx
Starting at line 1677 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx

        Polygon2D convHull( convexHull( poly ) );
        
        unsigned int k;
        for( k=0; k<poly.size(); ++k )
        {
            cout << poly[k].x << " " << poly[k].y << endl;
        }
        cout << poly[0].x << " " << poly[0].y << endl;
        cout << "e" << endl;

        for( k=0; k<convHull.size(); ++k )
        {
            cout << convHull[k].x << " " << convHull[k].y << endl;
        }
        cout << convHull[0].x << " " << convHull[0].y << endl;
        cout << "e" << endl;
=====================================================================
Found a 30 line (135 tokens) duplication in the following files: 
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessibletabbar.cxx
Starting at line 631 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessibletabbarpagelist.cxx
Starting at line 912 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/accessibility/accessibledialogwindow.cxx

Reference< XAccessible > AccessibleDialogWindow::getAccessibleAtPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
	OExternalLockGuard aGuard( this );

	Reference< XAccessible > xChild;
	for ( sal_uInt32 i = 0; i < m_aAccessibleChildren.size(); ++i )
	{
		Reference< XAccessible > xAcc = getAccessibleChild( i );
		if ( xAcc.is() )
		{			
			Reference< XAccessibleComponent > xComp( xAcc->getAccessibleContext(), UNO_QUERY );				
			if ( xComp.is() )
			{
				Rectangle aRect = VCLRectangle( xComp->getBounds() );
				Point aPos = VCLPoint( rPoint );
				if ( aRect.IsInside( aPos ) )
				{
					xChild = xAcc;
					break;
				}
			}
		}
	}

	return xChild;
}

// -----------------------------------------------------------------------------

void AccessibleDialogWindow::grabFocus(  ) throw (RuntimeException)
=====================================================================
Found a 15 line (134 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                    y_lr = ++m_wrap_mode_y;
                } while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
=====================================================================
Found a 21 line (134 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                            fg[order_type::A] += back_a * weight;
                            x_hr              += base_type::m_rx_inv;
                        }
                        while(x_hr < filter_size);
                    }
                    y_hr += base_type::m_ry_inv;
                    ++y_lr;
                }
                while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
=====================================================================
Found a 19 line (134 tokens) duplication in the following files: 
Starting at line 496 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 566 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                                  weight_array[y_hr] + 
                                  image_filter_size / 2) >> 
                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }
=====================================================================
Found a 12 line (134 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx

using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::lang ;
using ::com::sun::star::lang::XMultiServiceFactory ;
using ::com::sun::star::lang::XSingleServiceFactory ;
using ::rtl::OUString ;

using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
using ::com::sun::star::xml::wrapper::XXMLDocumentWrapper ;
using ::com::sun::star::xml::crypto::XSecurityEnvironment ;
using ::com::sun::star::xml::crypto::XXMLSignature ;
using ::com::sun::star::xml::crypto::XXMLSignatureTemplate ;
using ::com::sun::star::xml::crypto::XSecurityEnvironment ;
=====================================================================
Found a 26 line (134 tokens) duplication in the following files: 
Starting at line 528 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlexp.cxx
Starting at line 569 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlexp.cxx

	mxGraphicResolver( rEmbeddedGraphicObjects ),
	mpAttrList( new SvXMLAttributeList ),
	msOrigFileName( rFileName ),
	mpNamespaceMap( new SvXMLNamespaceMap ),
	// #110680#
	mpUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, SvXMLUnitConverter::GetMapUnit(eDfltUnit), getServiceFactory() ) ),
	mpNumExport(0L),
	mpProgressBarHelper( NULL ),
	mpEventExport( NULL ),
	mpImageMapExport( NULL ),
	mpXMLErrors( NULL ),
	mbExtended( sal_False ),
	meClass( XML_TOKEN_INVALID ),
	mnExportFlags( 0 ),
	mnErrorFlags( ERROR_NO ),
	msWS( GetXMLToken(XML_WS) ),
	mbSaveLinkedSections(sal_True)
{
	DBG_ASSERT( mxServiceFactory.is(), "got no service manager" );
	_InitCtor();

	if (mxNumberFormatsSupplier.is())
		mpNumExport = new SvXMLNumFmtExport(*this, mxNumberFormatsSupplier);
}

SvXMLExport::~SvXMLExport()
=====================================================================
Found a 31 line (134 tokens) duplication in the following files: 
Starting at line 2007 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLExport.cxx
Starting at line 2158 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLExport.cxx

                Reference< beans::XPropertySet > xTitleProp( xAxisSupp->getZAxisTitle(), uno::UNO_QUERY );
                if( xTitleProp.is())
                {
                    aPropertyStates = mxExpPropMapper->Filter( xTitleProp );
                    if( bExportContent )
                    {
                        OUString aText;
                        Any aAny( xTitleProp->getPropertyValue(
							OUString( RTL_CONSTASCII_USTRINGPARAM( "String" ))));
						aAny >>= aText;

                        Reference< drawing::XShape > xShape( xTitleProp, uno::UNO_QUERY );
                        if( xShape.is())
                            addPosition( xShape );

                        AddAutoStyleAttribute( aPropertyStates );
                        SvXMLElementExport aTitle( mrExport, XML_NAMESPACE_CHART, XML_TITLE, sal_True, sal_True );

                        // paragraph containing title
                        exportText( aText );
                    }
                    else
                    {
                        CollectAutoStyle( aPropertyStates );
                    }
                    aPropertyStates.clear();
                }
			}

			// grid
			Reference< beans::XPropertySet > xMajorGrid( xAxisSupp->getZMainGrid(), uno::UNO_QUERY );
=====================================================================
Found a 6 line (134 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotdel_curs.h

   0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 6 line (134 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h

static char asse_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 6 line (134 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotdel_curs.h

   0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 23 line (134 tokens) duplication in the following files: 
Starting at line 6416 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev3.cxx
Starting at line 6374 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

            nMaxTextWidth = m_pReferenceDevice->ImplGetTextLines( aMultiLineInfo, nWidth, aStr, nStyle );
            nLines = (xub_StrLen)(nHeight/nTextHeight);
            nFormatLines = aMultiLineInfo.Count();
            if ( !nLines )
                nLines = 1;
            if ( nFormatLines > nLines )
            {
                if ( nStyle & TEXT_DRAW_ENDELLIPSIS )
                {
                    // handle last line
                    nFormatLines = nLines-1;

                    pLineInfo = aMultiLineInfo.GetLine( nFormatLines );
                    aLastLine = aStr.Copy( pLineInfo->GetIndex() );
                    aLastLine.ConvertLineEnd( LINEEND_LF );
                    // replace line feed by space
                    xub_StrLen nLastLineLen = aLastLine.Len();
                    for ( i = 0; i < nLastLineLen; i++ )
                    {
                        if ( aLastLine.GetChar( i ) == _LF )
                            aLastLine.SetChar( i, ' ' );
                    }
                    aLastLine = m_pReferenceDevice->GetEllipsisString( aLastLine, nWidth, nStyle );
=====================================================================
Found a 41 line (134 tokens) duplication in the following files: 
Starting at line 509 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

    return rtl::OUString::createFromAscii( WEBDAV_CONTENT_TYPE );
}

//=========================================================================
//
// XCommandProcessor methods.
//
//=========================================================================

// virtual
uno::Any SAL_CALL Content::execute(
        const ucb::Command& aCommand,
        sal_Int32 /*CommandId*/,
        const uno::Reference< ucb::XCommandEnvironment >& Environment )
    throw( uno::Exception,
           ucb::CommandAbortedException,
           uno::RuntimeException )
{
    uno::Any aRet;
    
    if ( aCommand.Name.equalsAsciiL(
             RTL_CONSTASCII_STRINGPARAM( "getPropertyValues" ) ) )
    {
      	//////////////////////////////////////////////////////////////////
      	// getPropertyValues
      	//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::Property > Properties;
      	if ( !( aCommand.Argument >>= Properties ) )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

      	aRet <<= getPropertyValues( Properties, Environment );
=====================================================================
Found a 7 line (134 tokens) duplication in the following files: 
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 978 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetstrm.cxx

static const sal_Char six2pr[64] = {
    'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
    'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
    'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
    'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
    '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'
};
=====================================================================
Found a 36 line (134 tokens) duplication in the following files: 
Starting at line 3667 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3841 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    ULONG nOldPos = rStrm.Tell();
    rStrm.Seek( nStart );

    UINT16 nLen2;
    rStrm >> nLen2; // bVer67: total length of structure
                    // bVer8 : count of strings

    if( bVer8 )
    {
        UINT16 nStrings;
        bool bUnicode = (0xFFFF == nLen2);
        if( bUnicode )
            rStrm >> nStrings;
        else
            nStrings = nLen2;

        rStrm >> nExtraLen;

        for( USHORT i=0; i < nStrings; i++ )
        {
            if( bUnicode )
                rArray.push_back(WW8Read_xstz(rStrm, 0, false));
            else
            {
                BYTE nBChar;
                rStrm >> nBChar;
                ByteString aTmp;
                SafeReadString(aTmp,nBChar,rStrm);
                rArray.push_back(String(aTmp, eCS));
            }

            // Skip the extra data
            if( nExtraLen )
            {
                if (pExtraArray)
                {
=====================================================================
Found a 18 line (134 tokens) duplication in the following files: 
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/inftxt.cxx
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/inftxt.cxx

	  nLen(nLen),
      nKanaIdx( rNew.GetKanaIdx() ),
	  bOnWin( rNew.OnWin() ),
	  bNotEOL( rNew.NotEOL() ),
	  bURLNotify( rNew.URLNotify() ),
	  bStopUnderFlow( rNew.StopUnderFlow() ),
      bFtnInside( rNew.IsFtnInside() ),
	  bMulti( rNew.IsMulti() ),
	  bFirstMulti( rNew.IsFirstMulti() ),
	  bRuby( rNew.IsRuby() ),
	  bHanging( rNew.IsHanging() ),
	  bScriptSpace( rNew.HasScriptSpace() ),
	  bForbiddenChars( rNew.HasForbiddenChars() ),
      bSnapToGrid( rNew.SnapToGrid() ),
	  nDirection( rNew.GetDirection() )
{
#ifndef PRODUCT
	ChkOutDev( *this );
=====================================================================
Found a 22 line (134 tokens) duplication in the following files: 
Starting at line 962 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/findattr.cxx
Starting at line 1055 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/findattr.cxx

								: (&::lcl_SearchBackward);

	// Wenn am Anfang/Ende, aus dem Node moven
	// Wenn am Anfang/Ende, aus dem Node moven
	if( bSrchForward
		? pPam->GetPoint()->nContent.GetIndex() == pPam->GetCntntNode()->Len()
		: !pPam->GetPoint()->nContent.GetIndex() )
	{
		if( !(*fnMove->fnNds)( &pPam->GetPoint()->nNode, FALSE ))
		{
			delete pPam;
			return FALSE;
		}
		SwCntntNode *pNd = pPam->GetCntntNode();
		xub_StrLen nTmpPos = bSrchForward ? 0 : pNd->Len();
		pPam->GetPoint()->nContent.Assign( pNd, nTmpPos );
	}


	while( 0 != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) ) )
	{
		if( aCmpArr.Count() )
=====================================================================
Found a 24 line (134 tokens) duplication in the following files: 
Starting at line 525 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpcolor.cxx
Starting at line 612 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpcolor.cxx

            if ( aName == pColorTab->GetColor( i )->GetName() && nPos != i )
				bDifferent = FALSE;

		// Wenn ja, wird wiederholt ein neuer Name angefordert
		if ( !bDifferent )
		{
			WarningBox aWarningBox( DLGWIN, WinBits( WB_OK ),
				String( ResId( RID_SVXSTR_WARN_NAME_DUPLICATE, rMgr ) ) );
			aWarningBox.SetHelpId( HID_WARN_NAME_DUPLICATE );
			aWarningBox.Execute();

			//CHINA001 SvxNameDialog* pDlg = new SvxNameDialog( DLGWIN, aName, aDesc );
			SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
			DBG_ASSERT(pFact, "Dialogdiet fail!");//CHINA001
			AbstractSvxNameDialog* pDlg = pFact->CreateSvxNameDialog( DLGWIN, aName, aDesc, RID_SVXDLG_NAME );
			DBG_ASSERT(pDlg, "Dialogdiet fail!");//CHINA001
			BOOL bLoop = TRUE;

			while ( !bDifferent && bLoop && pDlg->Execute() == RET_OK )
			{
				pDlg->GetName( aName );
				bDifferent = TRUE;

				for ( long i = 0; i < nCount && bDifferent; i++ )
=====================================================================
Found a 14 line (134 tokens) duplication in the following files: 
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx

			UINT8 nStartCol = (UINT8)(((UINT16)aMtrTrgrStartValue.GetValue() * 255) / 100);
			UINT8 nEndCol = (UINT8)(((UINT16)aMtrTrgrEndValue.GetValue() * 255) / 100);
			XGradient aTmpGradient(
						Color(nStartCol, nStartCol, nStartCol),
						Color(nEndCol, nEndCol, nEndCol),
						(XGradientStyle)aLbTrgrGradientType.GetSelectEntryPos(),
						(UINT16)aMtrTrgrAngle.GetValue() * 10,
						(UINT16)aMtrTrgrCenterX.GetValue(),
						(UINT16)aMtrTrgrCenterY.GetValue(),
						(UINT16)aMtrTrgrBorder.GetValue(),
						100, 100);

			String aString;
			XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aTmpGradient);
=====================================================================
Found a 24 line (134 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filepicker/pickerhelper.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filepicker/pickerhelper.cxx

		Reference< css::ui::dialogs::XFolderPicker > _mxFileDlg, sal_Int32 _nHelpId )
	{
		try
		{
			// does the dialog haver a help URL property?
			Reference< css::beans::XPropertySet >		xDialogProps( _mxFileDlg, css::uno::UNO_QUERY );
			Reference< css::beans::XPropertySetInfo >	xInfo;
			if( xDialogProps.is() )
				xInfo = xDialogProps->getPropertySetInfo( );

			const OUString			sHelpURLPropertyName( RTL_CONSTASCII_USTRINGPARAM( "HelpURL" ) );

			if( xInfo.is() && xInfo->hasPropertyByName( sHelpURLPropertyName ) )
			{	// yep
				OUString				sId( RTL_CONSTASCII_USTRINGPARAM( "HID:" ) );
				sId += OUString::valueOf( _nHelpId );
				xDialogProps->setPropertyValue( sHelpURLPropertyName, css::uno::makeAny( sId ) );
			}
		}
		catch( const css::uno::Exception& )
		{
			DBG_ERROR( "svt::SetDialogHelpId(): caught an exception while setting the help id!" );
		}
	}
=====================================================================
Found a 59 line (134 tokens) duplication in the following files: 
Starting at line 387 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/smilfunctionparser.cxx
Starting at line 979 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx

template< typename T > struct custom_real_parser_policies : public ::boost::spirit::ureal_parser_policies<T>
{
    template< typename ScannerT >
	    static typename ::boost::spirit::parser_result< ::boost::spirit::chlit<>, ScannerT >::type
    parse_exp(ScannerT& scan)
    { 
        // as_lower_d somehow breaks MSVC7
        return ::boost::spirit::ch_p('E').parse(scan); 
    }
};

/* This class implements the following grammar (more or
    less literally written down below, only slightly
    obfuscated by the parser actions):

    identifier = '$'|'pi'|'e'|'X'|'Y'|'Width'|'Height'                                                   
                                                                                                        
    function = 'abs'|'sqrt'|'sin'|'cos'|'tan'|'atan'|'acos'|'asin'|'exp'|'log'

    basic_expression =                                                                                   
               		number |                                                                            
               		identifier |                                                                        
               		function '(' additive_expression ')' |                                              
               		'(' additive_expression ')'                                                         
                                                                                                        
    unary_expression = 
               		'-' basic_expression |
                    basic_expression
                                                                                                        
    multiplicative_expression =                                                                          
               		unary_expression ( ( '*' unary_expression )* |                           
                                		( '/' unary_expression )* )
                                                                                                        
    additive_expression =                                                                                
               		multiplicative_expression ( ( '+' multiplicative_expression )* |                              
               									( '-' multiplicative_expression )* ) 

    */
class ExpressionGrammar : public ::boost::spirit::grammar< ExpressionGrammar >
{
public:
    /** Create an arithmetic expression grammar

        @param rParserContext
        Contains context info for the parser
        */
    ExpressionGrammar( const ParserContextSharedPtr& rParserContext ) :
        mpParserContext( rParserContext )
    {
    }

    template< typename ScannerT > class definition
    {
    public:
        // grammar definition
        definition( const ExpressionGrammar& self )
        {
            using ::boost::spirit::str_p;
            using ::boost::spirit::range_p;
=====================================================================
Found a 30 line (134 tokens) duplication in the following files: 
Starting at line 970 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/sfxbasecontroller.cxx
Starting at line 1027 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/sfxbasecontroller.cxx

                    return pAct->GetBindings().GetDispatch( pSlot, aURL, sal_False );
				else
				{
					// try to find parent SfxViewFrame
					uno::Reference< frame::XFrame > xParentFrame;
					uno::Reference< frame::XFrame > xOwnFrame = pAct->GetFrame()->GetFrameInterface();
					if ( xOwnFrame.is() )
						xParentFrame = uno::Reference< frame::XFrame >( xOwnFrame->getCreator(), uno::UNO_QUERY );

					if ( xParentFrame.is() )
					{
						// TODO/LATER: in future probably SfxViewFrame hirarchy should be the same as XFrame hirarchy
						// SfxViewFrame* pParentFrame = pAct->GetParentViewFrame();

						// search the related SfxViewFrame
						SfxViewFrame* pParentFrame = NULL;
						for ( SfxViewFrame* pFrame = SfxViewFrame::GetFirst();
								pFrame;
								pFrame = SfxViewFrame::GetNext( *pFrame ) )
						{
							if ( pFrame->GetFrame()->GetFrameInterface() == xParentFrame )
							{
								pParentFrame = pFrame;
								break;
							}
						}

						if ( pParentFrame )
						{
                            SfxSlotPool& rSlotPool2 = SfxSlotPool::GetSlotPool( pParentFrame );
=====================================================================
Found a 21 line (134 tokens) duplication in the following files: 
Starting at line 1192 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/cfg.cxx
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/scriptdlg.cxx

SFTreeListBox::getDocumentModel( Reference< XComponentContext >& xCtx, ::rtl::OUString& docName )
{
    Reference< XInterface > xModel;
    Reference< lang::XMultiComponentFactory > mcf =
            xCtx->getServiceManager();
    Reference< frame::XDesktop > desktop (
        mcf->createInstanceWithContext(
            ::rtl::OUString::createFromAscii("com.sun.star.frame.Desktop"),                 xCtx ),
            UNO_QUERY );

    Reference< container::XEnumerationAccess > componentsAccess =
        desktop->getComponents();
    Reference< container::XEnumeration > components =
        componentsAccess->createEnumeration();
    while (components->hasMoreElements())
    {
        Reference< frame::XModel > model(
            components->nextElement(), UNO_QUERY );
        if ( model.is() )
        {
			::rtl::OUString sTdocUrl;
=====================================================================
Found a 20 line (134 tokens) duplication in the following files: 
Starting at line 1191 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx
Starting at line 1248 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx

			Point aInsertPos( rPos );

			if( pOwnData && pOwnData->GetWorkDocument() )
			{
			    const SdDrawDocument*	pWorkModel = pOwnData->GetWorkDocument();
                SdrPage*	            pWorkPage = (SdrPage*) ( ( pWorkModel->GetPageCount() > 1 ) ?
                                                    pWorkModel->GetSdPage( 0, PK_STANDARD ) :
                                                    pWorkModel->GetPage( 0 ) );

				pWorkPage->SetRectsDirty();

				// #104148# Use SnapRect, not BoundRect
				Size aSize( pWorkPage->GetAllObjSnapRect().GetSize() );

				aInsertPos.X() = pOwnData->GetStartPos().X() + ( aSize.Width() >> 1 );
				aInsertPos.Y() = pOwnData->GetStartPos().Y() + ( aSize.Height() >> 1 );
			}

			// #90129# restrict movement to WorkArea
			Size aImageMapSize(aBmp.GetPrefSize());
=====================================================================
Found a 68 line (134 tokens) duplication in the following files: 
Starting at line 1065 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx
Starting at line 1132 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx

		ocNoName,			//  188
		ocNoName,			//  189
		ocNoName,			//  190
		ocNoName,			//  191
		ocNoName,			//  192
		ocNoName,			//  193
		ocNoName,			//  194
		ocNoName,			//  195
		ocNoName,			//  196
		ocNoName,			//  197
		ocNoName,			//  198
		ocNoName,			//  199
		ocNoName,			//  200
		ocNoName,			//  201
		ocNoName,			//  202
		ocNoName,			//  203
		ocNoName,			//  204
		ocNoName,			//  205
		ocNoName,			//  206 ?
		ocNoName,			//  207
		ocNoName,			//  208
		ocNoName,			//  209
		ocNoName,			//  210
		ocNoName,			//  211
		ocNoName,			//  212
		ocNoName,			//  213
		ocNoName,			//  214
		ocNoName,			//  215
		ocNoName,			//  216
		ocNoName,			//  217
		ocNoName,			//  218
		ocNoName,			//  219
		ocNoName,			//  220
		ocNoName,			//  221
		ocNoName,			//  222
		ocNoName,			//  223
		ocNoName,			//  224
		ocNoName,			//  225
		ocNoName,			//  226
		ocNoName,			//  227
		ocNoName,			//  228
		ocNoName,			//  229
		ocNoName,			//  230
		ocNoName,			//  231
		ocNoName,			//  232
		ocNoName,			//  233
		ocNoName,			//  234
		ocNoName,			//  235
		ocNoName,			//  236
		ocNoName,			//  237
		ocNoName,			//  238
		ocNoName,			//  239
		ocNoName,			//  240
		ocNoName,			//  241
		ocNoName,			//  242
		ocNoName,			//  243
		ocNoName,			//  244
		ocNoName,			//  245
		ocNoName,			//  246
		ocNoName,			//  247
		ocNoName,			//  248
		ocNoName,			//  249
		ocNoName,			//  250
		ocNoName,			//  251
		ocNoName,			//  252
		ocNoName,			//  253
		ocNoName,			//  254
		ocNoName			//  255 ?
=====================================================================
Found a 25 line (134 tokens) duplication in the following files: 
Starting at line 3908 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx
Starting at line 4059 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx

                    rRef.nRelTab = rRef.nTab - nPosTab;
                }
                else
                    bIsRel = TRUE;
            }
            if ( bIsName && bIsRel )
                pRangeData = (ScRangeData*) this;   // not dereferenced in rangenam
        }
        if (bIsName)
            t = pArr->GetNextReference();
        else
            t = pArr->GetNextReferenceOrName();
    }
    if ( !bIsName )
    {
        pArr->Reset();
        for ( t = pArr->GetNextReferenceRPN(); t;
              t = pArr->GetNextReferenceRPN() )
        {
            if ( t->GetRef() == 1 )
            {
                SingleRefData& rRef1 = t->GetSingleRef();
                if ( !(rRef1.IsRelName() && rRef1.IsTabRel()) )
                {   // of names only adjust absolute references
                    if ( rRef1.IsTabRel() )
=====================================================================
Found a 22 line (134 tokens) duplication in the following files: 
Starting at line 1176 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/conditio.cxx
Starting at line 688 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/rangenam.cxx

    while ( ( t = pCode->GetNextReference() ) != NULL )
	{
		SingleRefData& rRef1 = t->GetSingleRef();
		if ( rRef1.IsTabRel() && !rRef1.IsTabDeleted() )
		{
			if ( rRef1.nTab < nMinTab )
				nMinTab = rRef1.nTab;
			if ( rRef1.nTab > nMaxTab )
				nMaxTab = rRef1.nTab;
		}
		if ( t->GetType() == svDoubleRef )
		{
			SingleRefData& rRef2 = t->GetDoubleRef().Ref2;
			if ( rRef2.IsTabRel() && !rRef2.IsTabDeleted() )
			{
				if ( rRef2.nTab < nMinTab )
					nMinTab = rRef2.nTab;
				if ( rRef2.nTab > nMaxTab )
					nMaxTab = rRef2.nTab;
			}
		}
	}
=====================================================================
Found a 10 line (134 tokens) duplication in the following files: 
Starting at line 473 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 771 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                0x00B8,0x0161,0x015F,0x0165,0x017A,0x02DD,0x017E,0x017C,
                0x0154,0x00C1,0x00C2,0x0102,0x00C4,0x0139,0x0106,0x00C7,
                0x010C,0x00C9,0x0118,0x00CB,0x011A,0x00CD,0x00CE,0x010E,
                0x0110,0x0143,0x0147,0x00D3,0x00D4,0x0150,0x00D6,0x00D7,
                0x0158,0x016E,0x00DA,0x0170,0x00DC,0x00DD,0x0162,0x00DF,
                0x0155,0x00E1,0x00E2,0x0103,0x00E4,0x013A,0x0107,0x00E7,
                0x010D,0x00E9,0x0119,0x00EB,0x011B,0x00ED,0x00EE,0x010F,
                0x0111,0x0144,0x0148,0x00F3,0x00F4,0x0151,0x00F6,0x00F7,
                0x0159,0x016F,0x00FA,0x0171,0x00FC,0x00FD,0x0163,0x02D9 } },
            { RTL_TEXTENCODING_ISO_8859_3,
=====================================================================
Found a 33 line (134 tokens) duplication in the following files: 
Starting at line 4794 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 4956 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx

    class  remove : public CppUnit::TestFixture
	{
		::osl::FileBase::RC      nError1, nError2;
		sal_uInt64 nCount_write, nCount_read;
		
	    public:
		// initialization
		void setUp( )
		{
			// create a tempfile in $TEMP/tmpdir/tmpname.
			createTestDirectory( aTmpName3 );
			createTestFile( aTmpName4 );
			
			//write chars into the file. 
			::osl::File testFile( aTmpName4 );
			
			nError1 = testFile.open( OpenFlag_Write );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
			nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
 			nError1 = testFile.close( );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
		}

		void tearDown( )
		{
			// remove the tempfile in $TEMP/tmpdir/tmpname.
			deleteTestFile( aTmpName4 );
			deleteTestDirectory( aTmpName3 );
		}

		// test code.
		void remove_001( )
=====================================================================
Found a 43 line (134 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/rsc/source/tools/rscchar.cxx
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/rsc/source/tools/rscchar.cxx

	    sal_Unicode  c;
		if( *pStr == '\\' )
		{
			++pStr;
			switch( *pStr )
			{
				case 'a':
					c = '\a';
					break;
				case 'b':
					c = '\b';
					break;
				case 'f':
					c = '\f';
					break;
				case 'n':
					c = '\n';
					break;
				case 'r':
					c = '\r';
					break;
				case 't':
					c = '\t';
					break;
				case 'v':
					c = '\v';
					break;
				case '\\':
					c = '\\';
					break;
				case '?':
					c = '\?';
					break;
				case '\'':
					c = '\'';
					break;
				case '\"':
					c = '\"';
					break;
				default:
				{
					if( '0' <= *pStr && '7' >= *pStr )
					{
=====================================================================
Found a 21 line (134 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/printer/printerinfomanager.cxx
Starting at line 855 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/printer/printerinfomanager.cxx

        fillFontSubstitutions( aPrinter.m_aInfo );
        // merge PPD values with global defaults
        for( int nPPDValueModified = 0; nPPDValueModified < m_aGlobalDefaults.m_aContext.countValuesModified(); nPPDValueModified++ )
        {
            const PPDKey* pDefKey = m_aGlobalDefaults.m_aContext.getModifiedKey( nPPDValueModified );
            const PPDValue* pDefValue = m_aGlobalDefaults.m_aContext.getValue( pDefKey );
            const PPDKey* pPrinterKey = pDefKey ? aPrinter.m_aInfo.m_pParser->getKey( pDefKey->getKey() ) : NULL;
            if( pDefKey && pPrinterKey )
                // at least the options exist in both PPDs
            {
                if( pDefValue )
                {
                    const PPDValue* pPrinterValue = pPrinterKey->getValue( pDefValue->m_aOption );
                    if( pPrinterValue )
                        // the printer has a corresponding option for the key
                    aPrinter.m_aInfo.m_aContext.setValue( pPrinterKey, pPrinterValue );
                }
                else
                    aPrinter.m_aInfo.m_aContext.setValue( pPrinterKey, NULL );
            }
        }
=====================================================================
Found a 8 line (134 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/afm_hash.cpp
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/afm_hash.cpp

      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58
=====================================================================
Found a 23 line (134 tokens) duplication in the following files: 
Starting at line 1746 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 2188 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

            if (langnum == LANG_hu) {
                // calculate syllable number of the word
                numsyllable += get_syllable(word + i, strlen(word + i));

                // - affix syllable num.
                // XXX only second suffix (inflections, not derivations)
                if (sfxappnd) {
                    char * tmp = myrevstrdup(sfxappnd);
	            numsyllable -= get_syllable(tmp, strlen(tmp));
                    free(tmp);
                }

                // + 1 word, if syllable number of the prefix > 1 (hungarian convention)
                if (pfx && (get_syllable(((PfxEntry *)pfx)->getKey(),strlen(((PfxEntry *)pfx)->getKey())) > 1)) wordnum++;

                // increment syllable num, if last word has a SYLLABLENUM flag
                // and the suffix is beginning `s'

	        if (cpdsyllablenum) {
	            switch (sfxflag) {
		        case 'c': { numsyllable+=2; break; }
		        case 'J': { numsyllable += 1; break; }
                        case 'I': { if (rv && TESTAFF(rv->astr, 'J', rv->alen)) numsyllable += 1; break; }
=====================================================================
Found a 6 line (134 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotdel_curs.h

   0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 22 line (134 tokens) duplication in the following files: 
Starting at line 317 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/transliterationImpl.cxx
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/transliterationImpl.cxx

            tmpStr = bodyCascade[0]->folding(tmpStr, 0, nCount, offset);
            if ( startPos )
            {
                sal_Int32 * pArr = offset.getArray();
                nCount = offset.getLength();
                for (sal_Int32 j = 0; j < nCount; j++)
                    pArr[j] += startPos;
            }
            return tmpStr;
        }
    }
    else
    {
        OUString tmpStr = inStr.copy(startPos, nCount);
        sal_Int32 * pArr = offset.getArray();
        for (sal_Int32 j = 0; j < nCount; j++)
            pArr[j] = startPos + j;

        sal_Int16 from = 0, to = 1, tmp;
        Sequence<sal_Int32> off[2];

        off[to] = offset;
=====================================================================
Found a 6 line (134 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

static char ass_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,
=====================================================================
Found a 16 line (134 tokens) duplication in the following files: 
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/descriptor.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unogallery/unogalitem.cxx

		aAny <<= uno::Reference< gallery::XGalleryItem >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XPropertySet >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertyState >*)0) )
		aAny <<= uno::Reference< beans::XPropertyState >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XMultiPropertySet >(this);
	else
		aAny <<= OWeakAggObject::queryAggregation( rType );

	return aAny;
}

// ------------------------------------------------------------------------------

uno::Any SAL_CALL GalleryItem::queryInterface( const uno::Type & rType ) 
=====================================================================
Found a 12 line (134 tokens) duplication in the following files: 
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/CheckBox.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormattedField.cxx

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::form::binding;
=====================================================================
Found a 26 line (134 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx
Starting at line 705 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx

  	"</html:html>\n";

	Sequence<BYTE> seqBytes( strlen( TestString ) );
	memcpy( seqBytes.getArray() , TestString , strlen( TestString ) );

	
	XInputStreamRef rInStream;
	UString sInput;

	rInStream = createStreamFromSequence( seqBytes , m_rFactory );
	sInput = UString( L"internal" );
	
	if( rParser.is() ) {
		InputSource source;

		source.aInputStream = rInStream;
		source.sSystemId 	= sInput;
		
		TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , FALSE );
		XDocumentHandlerRef rDocHandler( (XDocumentHandler *) pDocHandler , USR_QUERY );
		XEntityResolverRef 	rEntityResolver( (XEntityResolver *) pDocHandler , USR_QUERY );
	
		rParser->setDocumentHandler( rDocHandler );
		rParser->setEntityResolver( rEntityResolver );
		try {
			rParser->parseStream( source );
=====================================================================
Found a 13 line (134 tokens) duplication in the following files: 
Starting at line 2209 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx
Starting at line 2226 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx

            OSQLParseNode* pLeft    = pSearchCondition->getChild(0)->removeAt((sal_uInt32)0);
            OSQLParseNode* pRight = pSearchCondition->getChild(2)->removeAt((sal_uInt32)0);
            OSQLParseNode* pNode    = MakeORNode(pLeft,pRight);

            OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
            pNewRule->append(pNode);
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));

            OSQLParseNode::eraseBraces(pLeft);
            OSQLParseNode::eraseBraces(pRight);

            pNode = MakeANDNode(pSearchCondition->getChild(0)->removeAt(1),pNewRule);
=====================================================================
Found a 21 line (134 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
Starting at line 434 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx

			out = t.pEnv->CallObjectMethod( object, mID, args[0].l,args[1].l,args[2].l,scope,nullable);

			// und aufraeumen
			if(catalog.hasValue())
				t.pEnv->DeleteLocalRef((jstring)args[0].l);
			if(args[1].l)
				t.pEnv->DeleteLocalRef((jstring)args[1].l);
			if(table.getLength())
				t.pEnv->DeleteLocalRef((jstring)args[2].l);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
		}
	}

    if ( !out )
        return NULL;

    m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_SUCCESS, cMethodName );
	return new java_sql_ResultSet( t.pEnv, out, m_aLogger );
}
// -------------------------------------------------------------------------
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTablePrivileges(
=====================================================================
Found a 17 line (134 tokens) duplication in the following files: 
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper.cxx
Starting at line 538 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper.cxx

					case BMP_FORMAT_32BIT_TC_RGBA:
						pReadScan = pBitmapReadAcc->GetScanline( nY );
						if( pAlphaReadAcc )
							if( readAlpha( pAlphaReadAcc, nY, nWidth, data, nOff ) )
								bIsAlpha = true;

						for( nX = 0; nX < nWidth; nX++ ) {
							if( pAlphaReadAcc )
								nAlpha = data[ nOff + 3 ];
							else
								nAlpha = data[ nOff + 3 ] = 255;
							data[ nOff++ ] = ( nAlpha*( pReadScan[ 2 ] ) )/255;
							data[ nOff++ ] = ( nAlpha*( pReadScan[ 1 ] ) )/255;
							data[ nOff++ ] = ( nAlpha*( pReadScan[ 0 ] ) )/255;

							nOff++;
							pReadScan += 4;
=====================================================================
Found a 22 line (134 tokens) duplication in the following files: 
Starting at line 312 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 322 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[1] ),
                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *(void **)pRegisterReturn = pCallStack[1];
=====================================================================
Found a 22 line (134 tokens) duplication in the following files: 
Starting at line 3733 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/runtime/methods.cxx
Starting at line 3759 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/runtime/methods.cxx

RTLFUNC(UBound)
{
    (void)pBasic;
    (void)bWrite;
    
	USHORT nParCount = rPar.Count();
	if ( nParCount != 3 && nParCount != 2 )
	{
		StarBASIC::Error( SbERR_BAD_ARGUMENT );
		return;
	}

	SbxBase* pParObj = rPar.Get(1)->GetObject();
	SbxDimArray* pArr = PTR_CAST(SbxDimArray,pParObj);
	if( pArr )
	{
		INT32 nLower, nUpper;
		short nDim = (nParCount == 3) ? (short)rPar.Get(2)->GetInteger() : 1;
		if( !pArr->GetDim32( nDim, nLower, nUpper ) )
			StarBASIC::Error( SbERR_OUT_OF_RANGE );
		else
			rPar.Get(0)->PutLong( nUpper );
=====================================================================
Found a 22 line (134 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/tokens/tkpstama.cxx
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/tokens/tkpstam2.cxx

		StmArrayStatu2 * pArrSt = pStati[i]->AsArray();
		if (pArrSt != 0)
		{
			Cout() << Endl();
			for (int b = 0; b < 128; b++)
			{
				Cout().width(4);
				Cout() << pArrSt->NextBy(b);
				if (b%16 == 15)
					Cout() << Endl();
			}
		}
		else if (pStati[i]->AsBounds() != 0)
		{
			Cout() << "Bounds ";
		}
		else
			Cout() << "Error! ";
		Cout() << (pStati[i]->IsADefault() ? "DEF" : "---")
			 << Endl();
	}	// for
}
=====================================================================
Found a 5 line (134 tokens) duplication in the following files: 
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd, // ... 63
	 faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd  // ... 127
=====================================================================
Found a 21 line (133 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlCell.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlRow.cxx

    DBG_CTOR( rpt_OXMLRow,NULL);

	OSL_ENSURE(_xAttrList.is(),"Attribute list is NULL!");
	
	const SvXMLNamespaceMap& rMap = rImport.GetNamespaceMap();
	const SvXMLTokenMap& rTokenMap = rImport.GetColumnTokenMap();

	const sal_Int16 nLength = (_xAttrList.is()) ? _xAttrList->getLength() : 0;
	for(sal_Int16 i = 0; i < nLength; ++i)
	{
		OUString sLocalName;
		const rtl::OUString sAttrName = _xAttrList->getNameByIndex( i );
		const sal_uInt16 nPrefix = rMap.GetKeyByAttrName( sAttrName,&sLocalName );
		rtl::OUString sValue = _xAttrList->getValueByIndex( i );

		switch( rTokenMap.Get( nPrefix, sLocalName ) )
		{
			case XML_TOK_COLUMN_STYLE_NAME:
				m_sStyleName = sValue;
				break;
            case XML_TOK_NUMBER_ROWS_SPANNED:
=====================================================================
Found a 21 line (133 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                        weight = (image_subpixel_size - x_hr) * y_hr;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }

                        x_lr++;

                        weight = x_hr * y_hr;
=====================================================================
Found a 19 line (133 tokens) duplication in the following files: 
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                        weight = x_hr * (image_subpixel_size - y_hr);
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0]     += weight * *fg_ptr++;
                            fg[1]     += weight * *fg_ptr++;
                            fg[2]     += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }

                        x_lr--;
=====================================================================
Found a 19 line (133 tokens) duplication in the following files: 
Starting at line 1113 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 1573 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

		OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlListBoxModel") ) );
	Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
	
	Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
	if (xStyle.is())
	{
		StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () );
		pStyle->importBackgroundColorStyle( xControlModel );
		pStyle->importTextColorStyle( xControlModel );
		pStyle->importTextLineColorStyle( xControlModel );
		pStyle->importBorderStyle( xControlModel );
		pStyle->importFontStyle( xControlModel );
	}
	
	ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
							   _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiSelection") ),
=====================================================================
Found a 22 line (133 tokens) duplication in the following files: 
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bmpacc3.cxx
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bmpacc3.cxx

		Region				aRegion( rPolyPoly );
		Rectangle			aRect;

		aRegion.Intersect( Rectangle( Point(), Size( Width(), Height() ) ) );

		if( !aRegion.IsEmpty() )
		{
			RegionHandle aRegHandle( aRegion.BeginEnumRects() );
			
			while( aRegion.GetNextEnumRect( aRegHandle, aRect ) )
				for( long nY = aRect.Top(), nEndY = aRect.Bottom(); nY <= nEndY; nY++ )
					for( long nX = aRect.Left(), nEndX = aRect.Right(); nX <= nEndX; nX++ )
						SetPixel( nY, nX, rFillColor );

			aRegion.EndEnumRects( aRegHandle );
		}
	}
}

// ------------------------------------------------------------------

void BitmapWriteAccess::DrawPolyPolygon( const PolyPolygon& rPolyPoly )
=====================================================================
Found a 13 line (133 tokens) duplication in the following files: 
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

    virtual test::TestData SAL_CALL getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
											   sal_Int16& nShort, sal_uInt16& nUShort,
											   sal_Int32& nLong, sal_uInt32& nULong,
											   sal_Int64& nHyper, sal_uInt64& nUHyper,
											   float& fFloat, double& fDouble,
											   test::TestEnum& eEnum, rtl::OUString& rStr,
											   ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
											   ::com::sun::star::uno::Any& rAny,
											   ::com::sun::star::uno::Sequence< test::TestElement >& rSequence,
											   test::TestData& rStruct )
		throw(com::sun::star::uno::RuntimeException);
	
    virtual sal_Bool SAL_CALL getBool() throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 38 line (133 tokens) duplication in the following files: 
Starting at line 1515 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/cfg.cxx
Starting at line 980 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/selector.cxx

BOOL SvxConfigGroupListBox_Impl::Expand( SvLBoxEntry* pParent )
{
	BOOL bRet = SvTreeListBox::Expand( pParent );
	if ( bRet )
	{
		// Wieviele Entries k"onnen angezeigt werden ?
		ULONG nEntries = GetOutputSizePixel().Height() / GetEntryHeight();

		// Wieviele Kinder sollen angezeigt werden ?
		ULONG nChildCount = GetVisibleChildCount( pParent );

		// Passen alle Kinder und der parent gleichzeitig in die View ?
		if ( nChildCount+1 > nEntries )
		{
			// Wenn nicht, wenigstens parent ganz nach oben schieben
			MakeVisible( pParent, TRUE );
		}
		else
		{
			// An welcher relativen ViewPosition steht der aufzuklappende parent
			SvLBoxEntry *pEntry = GetFirstEntryInView();
			ULONG nParentPos = 0;
			while ( pEntry && pEntry != pParent )
			{
				nParentPos++;
				pEntry = GetNextEntryInView( pEntry );
			}

			// Ist unter dem parent noch genug Platz f"ur alle Kinder ?
			if ( nParentPos + nChildCount + 1 > nEntries )
				ScrollOutputArea( (short)( nEntries - ( nParentPos + nChildCount + 1 ) ) );
		}
	}

	return bRet;
}

void SvxConfigGroupListBox_Impl::RequestingChilds( SvLBoxEntry *pEntry )
=====================================================================
Found a 26 line (133 tokens) duplication in the following files: 
Starting at line 1688 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 1717 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		aSize.setHeight( nHeight );

		SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
		const PageKind ePageKind = GetPage()->GetPageKind();

		USHORT i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
		for (i = 0; i < nPageCnt; i++)
		{
			SdPage* pPage = pDoc->GetMasterSdPage(i, ePageKind);
			pPage->SetSize(aSize);
		}

		nPageCnt = pDoc->GetSdPageCount(ePageKind);

		for (i = 0; i < nPageCnt; i++)
		{
			SdPage* pPage = pDoc->GetSdPage(i, ePageKind);
			pPage->SetSize(aSize);
		}

		refreshpage( pDoc, ePageKind );
	}
}

// XInterface
void SdGenericDrawPage::release() throw()
=====================================================================
Found a 16 line (133 tokens) duplication in the following files: 
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/dbdocfun.cxx
Starting at line 1029 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/dbdocfun.cxx

			nTabCount = pDoc->GetTableCount();
			pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
			ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab );
			if (pTable)
			{
				pUndoTab = new ScOutlineTable( *pTable );

                // column/row state
                SCCOLROW nOutStartCol, nOutEndCol;
                SCCOLROW nOutStartRow, nOutEndRow;
				pTable->GetColArray()->GetRange( nOutStartCol, nOutEndCol );
				pTable->GetRowArray()->GetRange( nOutStartRow, nOutEndRow );

				pUndoDoc->InitUndo( pDoc, nTab, nTab, TRUE, TRUE );
				pDoc->CopyToDocument( static_cast<SCCOL>(nOutStartCol), 0, nTab, static_cast<SCCOL>(nOutEndCol), MAXROW, nTab, IDF_NONE, FALSE, pUndoDoc );
				pDoc->CopyToDocument( 0, nOutStartRow, nTab, MAXCOL, nOutEndRow, nTab, IDF_NONE, FALSE, pUndoDoc );
=====================================================================
Found a 19 line (133 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr4.cxx
Starting at line 427 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr4.cxx

BOOL ScInterpreter::CreateStringArr(SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
									SCCOL nCol2, SCROW nRow2, SCTAB nTab2,
									BYTE* pCellArr)
{
#if SC_ROWLIMIT_MORE_THAN_64K
#error row limit 64k
#endif
	USHORT nCount = 0;
	USHORT* p = (USHORT*) pCellArr;
	*p++ = static_cast<USHORT>(nCol1);
	*p++ = static_cast<USHORT>(nRow1);
	*p++ = static_cast<USHORT>(nTab1);
	*p++ = static_cast<USHORT>(nCol2);
	*p++ = static_cast<USHORT>(nRow2);
	*p++ = static_cast<USHORT>(nTab2);
	USHORT* pCount = p;
	*p++ = 0;
	USHORT nPos = 14;
	SCTAB nTab = nTab1;
=====================================================================
Found a 6 line (133 tokens) duplication in the following files: 
Starting at line 533 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 578 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       }};
=====================================================================
Found a 24 line (133 tokens) duplication in the following files: 
Starting at line 695 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/digest/rtl_digest.cxx
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/digest/rtl_digest.cxx

            rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 );
            
            rtl::OString aMsg = sSampleString;
            const sal_uInt8 *pData = (const sal_uInt8*)aMsg.getStr();
            sal_uInt32	     nSize = ( aMsg.getLength() );
            
            sal_uInt32     nKeyLen = rtl_digest_queryLength( handle );
            CPPUNIT_ASSERT_MESSAGE( "Keylen must be greater 0", nKeyLen );

            sal_uInt8    *pKeyBuffer = new sal_uInt8[ nKeyLen ];
            CPPUNIT_ASSERT( pKeyBuffer );
            memset(pKeyBuffer, 0, nKeyLen);
          
            rtlDigestError aError = rtl_digest_init(handle, pKeyBuffer, nKeyLen );

            CPPUNIT_ASSERT_MESSAGE("init(handle, pData, nSize)", aError == rtl_Digest_E_None);

            rtl_digest_update( handle, pData, nSize );

            rtl_digest_get( handle, pKeyBuffer, nKeyLen );
            rtl::OString aSum = createHex(pKeyBuffer, nKeyLen);
            delete [] pKeyBuffer;
            
            t_print("HMAC_SHA1 Sum: %s\n", aSum.getStr());
=====================================================================
Found a 29 line (133 tokens) duplication in the following files: 
Starting at line 2384 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c
Starting at line 2419 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

			    (osl_getProfileName(strSVLocation, strSVName, &strSVProfile)))
            {
				hProfile = osl_openProfile(strSVProfile, osl_Profile_READLOCK);
                if (hProfile)
                {
                    osl_getProfileSectionEntries(
                        hProfile, SVERSION_SECTION, Buffer, sizeof(Buffer));

                    for (pChr = Buffer; *pChr != '\0'; pChr += strlen(pChr) + 1)
                    {
                        if ((strnicmp(
                                 pChr, SVERSION_SOFFICE,
                                 sizeof(SVERSION_SOFFICE) - 1)
                             == 0)
                            && (stricmp(Product, pChr) < 0))
                        {
                            osl_readProfileString(
                                hProfile, SVERSION_SECTION, pChr, Dir,
                                sizeof(Dir), "");

                            /* check for existence of path */
                            if (access(Dir, 0) >= 0)
                                strcpy(Product, pChr);
                        }
                    }

                    osl_closeProfile(hProfile);
                }
				rtl_uString_release(strSVProfile);
=====================================================================
Found a 31 line (133 tokens) duplication in the following files: 
Starting at line 378 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/hyphdsp.cxx
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/hyphdsp.cxx
Starting at line 627 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/hyphdsp.cxx

					xRes = rHyph->createPossibleHyphens( aChkWord, rLocale,
								rProperties );
				++i;
			}
			else if (pEntry->aFlags.nLastTriedSvcIndex < nLen - 1)
			// instantiate services and try it
			{
				Reference< XMultiServiceFactory >  xMgr( getProcessServiceFactory() );
				if (xMgr.is())
				{
					// build service initialization argument
					Sequence< Any > aArgs(2);
					aArgs.getArray()[0] <<= GetPropSet();
					//! The dispatcher searches the dictionary-list
					//! thus the service needs not to now about it
					//aArgs.getArray()[1] <<= GetDicList();

					// create specific service via it's implementation name
					Reference< XHyphenator > xHyph(
							xMgr->createInstanceWithArguments(
								pEntry->aSvcImplName, aArgs ),
							UNO_QUERY );
					rHyph = xHyph;

					Reference< XLinguServiceEventBroadcaster >
							xBroadcaster( xHyph, UNO_QUERY );
					if (xBroadcaster.is())
						rMgr.AddLngSvcEvtBroadcaster( xBroadcaster );

                    if (rHyph.is()  &&  rHyph->hasLocale( rLocale ))
					xRes = rHyph->createPossibleHyphens( aChkWord, rLocale,
=====================================================================
Found a 9 line (133 tokens) duplication in the following files: 
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdiclist.cxx
Starting at line 1195 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unoobj.cxx

    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    
    // XNameAccess
    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);

    // XElementAccess
    virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 18 line (133 tokens) duplication in the following files: 
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1746 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xdf, 0xbf },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x00, 0xd0, 0xb0 },
=====================================================================
Found a 6 line (133 tokens) duplication in the following files: 
Starting at line 1500 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1514 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fd40 - fd4f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd50 - fd5f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd60 - fd6f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd70 - fd7f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd80 - fd8f
     0, 0,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd90 - fd9f
=====================================================================
Found a 5 line (133 tokens) duplication in the following files: 
Starting at line 1338 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1436 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2eb0 - 2ebf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ec0 - 2ecf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ed0 - 2edf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2ee0 - 2eef
    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff
=====================================================================
Found a 5 line (133 tokens) duplication in the following files: 
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1224 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1630 - 163f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1640 - 164f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1650 - 165f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1660 - 166f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1670 - 167f
=====================================================================
Found a 5 line (133 tokens) duplication in the following files: 
Starting at line 1085 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0980 - 098f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0990 - 099f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 09a0 - 09af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 09b0 - 09bf
     0,17,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 09c0 - 09cf
=====================================================================
Found a 5 line (133 tokens) duplication in the following files: 
Starting at line 1038 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,10,10, 0, 0, 0,// 3090 - 309f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30a0 - 30af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30b0 - 30bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30c0 - 30cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 30d0 - 30df
=====================================================================
Found a 5 line (133 tokens) duplication in the following files: 
Starting at line 872 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 896 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 6 line (133 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0af0 - 0aff

     0, 6, 8, 8, 0, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 5,// 0b00 - 0b0f
     5, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0b10 - 0b1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 5, 5, 5, 5, 5, 5,// 0b20 - 0b2f
     5, 0, 5, 5, 0, 0, 5, 5, 5, 5, 0, 0, 6, 5, 8, 6,// 0b30 - 0b3f
=====================================================================
Found a 5 line (133 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fab0 - fabf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fac0 - facf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fad0 - fadf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fae0 - faef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// faf0 - faff
=====================================================================
Found a 21 line (133 tokens) duplication in the following files: 
Starting at line 763 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/threadtest/threadtest.cxx
Starting at line 762 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/threadtest.cxx

	OStringBuffer	sBuf(256);
	sal_Int32		nTime=0;
	sBuf.append( "Nr.\tTime\tThreadCount\tLoops\tOwner\n" );
	for( sal_Int32 nI=1; nI<=nTestCount; ++nI )
	{
		nTime = measureTime( nThreadCount, nOwner, nLoops );
		sBuf.append( nI				);
		sBuf.append( "\t"			);
		sBuf.append( nTime			);
		sBuf.append( "\t"			);
		sBuf.append( nThreadCount	);
		sBuf.append( "\t"			);
		sBuf.append( nLoops			);
		sBuf.append( "\t"			);
		sBuf.append( nOwner 		);
		sBuf.append( "\n"			);
	}

	WRITE_LOGFILE( STATISTICS_FILE, sBuf.makeStringAndClear() );
	LOG_ERROR( "TApplication::Main()", "Test finish successful!" )
}
=====================================================================
Found a 33 line (133 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarwrapper.cxx
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarwrapper.cxx

void SAL_CALL ToolBarWrapper::setSettings( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& xSettings ) throw (::com::sun::star::uno::RuntimeException)
{
    ResetableGuard aLock( m_aLock );
    
    if ( m_bDisposed )
        throw DisposedException();

    if ( xSettings.is() )
    {
        // Create a copy of the data if the container is not const
        Reference< XIndexReplace > xReplace( xSettings, UNO_QUERY );
        if ( xReplace.is() )
            m_xConfigData = Reference< XIndexAccess >( static_cast< OWeakObject * >( new ConstItemContainer( xSettings ) ), UNO_QUERY );
        else
            m_xConfigData = xSettings;

        if ( m_xConfigSource.is() && m_bPersistent )
        {
            OUString aResourceURL( m_aResourceURL );
            Reference< XUIConfigurationManager > xUICfgMgr( m_xConfigSource );
            
            aLock.unlock();
            
            try
            {
                xUICfgMgr->replaceSettings( aResourceURL, m_xConfigData );
            }
            catch( NoSuchElementException& )
            {
            }
        }
        else if ( !m_bPersistent )
        {
=====================================================================
Found a 42 line (133 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/jobs/jobdispatch.cxx
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/jobs/jobdispatch.cxx

    aCfg.setAlias(sAlias);
    aCfg.setEnvironment(JobData::E_DISPATCH);

    /*Attention!
        Jobs implements interfaces and dies by ref count!
        And freeing of such uno object is done by uno itself.
        So we have to use dynamic memory everytimes.
     */
    Job* pJob = new Job(m_xSMGR, m_xFrame);
    css::uno::Reference< css::uno::XInterface > xJob(static_cast< ::cppu::OWeakObject* >(pJob), css::uno::UNO_QUERY);
    pJob->setJobData(aCfg);

    aReadLock.unlock();
    /* } SAFE */

    css::uno::Reference< css::frame::XDispatchResultListener > xThis( static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY );

    // Special mode for listener.
    // We dont notify it directly here. We delegate that
    // to the job implementation. But we must set ourself there too.
    // Because this job must fake the source adress of the event.
    // Otherwhise the listener may will ignore it.
    if (xListener.is())
        pJob->setDispatchResultFake(xListener, xThis);
    pJob->execute(Converter::convert_seqPropVal2seqNamedVal(lArgs));
}

//________________________________
/**
    @short  implementation of XDispatch::dispatch()
    @descr  Because the methods dispatch() and dispatchWithNotification() are different in her parameters
            only, we can forward this request to dispatchWithNotification() by using an empty listener!

    @param  aURL
                describe the job(s), which should be started

    @param  lArgs
                optional arguments for this request

    @see    dispatchWithNotification()
*/
void SAL_CALL JobDispatch::dispatch( /*IN*/ const css::util::URL&                                  aURL  ,
=====================================================================
Found a 27 line (133 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/popupmenucontrollerbase.cxx
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/recentfilesmenucontroller.cxx

void SAL_CALL RecentFilesMenuController::updatePopupMenu() throw (RuntimeException)
{
    ResetableGuard aLock( m_aLock );
    
    if ( m_bDisposed )
        throw DisposedException();

    Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY );
    Reference< XDispatch > xDispatch( m_xDispatch );
    Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
                                                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
                                                UNO_QUERY );
    com::sun::star::util::URL aTargetURL;
    aTargetURL.Complete = m_aCommandURL;
    xURLTransformer->parseStrict( aTargetURL );
    aLock.unlock();

    // Add/remove status listener to get a status update once
    if ( xDispatch.is() )
    {
        xDispatch->addStatusListener( xStatusListener, aTargetURL );
        xDispatch->removeStatusListener( xStatusListener, aTargetURL );
    }
}

// XDispatchProvider
Reference< XDispatch > SAL_CALL RecentFilesMenuController::queryDispatch( 
=====================================================================
Found a 7 line (133 tokens) duplication in the following files: 
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/imgprod.cxx
Starting at line 522 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/imgprod.cxx

		for( pCons = maConsList.First(); pCons; pCons = maConsList.Next() )
			aTmp.Insert( new ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > ( *(::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > *) pCons ), LIST_APPEND );

		// iterate through interfaces
		for( pCons = aTmp.First(); pCons; pCons = aTmp.Next() )
		{
			( *(::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > *) pCons )->init( pBmpAcc->Width(), pBmpAcc->Height() );
=====================================================================
Found a 16 line (133 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/CheckBox.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/clickableimage.cxx

namespace frm
{
//.........................................................................

    using namespace ::com::sun::star::uno;
    using namespace ::com::sun::star::sdb;
    using namespace ::com::sun::star::sdbc;
    using namespace ::com::sun::star::sdbcx;
    using namespace ::com::sun::star::beans;
    using namespace ::com::sun::star::container;
    using namespace ::com::sun::star::form;
    using namespace ::com::sun::star::awt;
    using namespace ::com::sun::star::io;
    using namespace ::com::sun::star::lang;
    using namespace ::com::sun::star::util;
    using namespace ::com::sun::star::frame;
=====================================================================
Found a 6 line (133 tokens) duplication in the following files: 
Starting at line 1746 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
Starting at line 578 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       }};
=====================================================================
Found a 12 line (133 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

static const sal_Unicode pBase64[] = 
{
	//0   1   2   3   4   5   6   7
	 'A','B','C','D','E','F','G','H', // 0
	 'I','J','K','L','M','N','O','P', // 1
	 'Q','R','S','T','U','V','W','X', // 2
	 'Y','Z','a','b','c','d','e','f', // 3
	 'g','h','i','j','k','l','m','n', // 4
	 'o','p','q','r','s','t','u','v', // 5
	 'w','x','y','z','0','1','2','3', // 6
	 '4','5','6','7','8','9','+','/'  // 7
};
=====================================================================
Found a 10 line (133 tokens) duplication in the following files: 
Starting at line 761 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx

				aPoly[ 0 ].Y() = static_cast<long>(aBaseLinePos.Y() + 1.5*nLineHeight);
				aPoly[ 1 ].X() = aPoly[ 0 ].X() + aNormSize.Width() - 1; 
				aPoly[ 1 ].Y() = aPoly[ 0 ].Y();
				aPoly[ 2 ].X() = aPoly[ 1 ].X(); 
				aPoly[ 2 ].Y() = aPoly[ 1 ].Y() + nLineHeight - 1;
				aPoly[ 3 ].X() = aPoly[ 0 ].X(); 
				aPoly[ 3 ].Y() = aPoly[ 2 ].Y();

				Impl_writePolygon( aPoly, sal_True, aTextColor, aTextColor );
			}
=====================================================================
Found a 30 line (133 tokens) duplication in the following files: 
Starting at line 264 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/config/cache/basecontainer.cxx
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/config/cache/basecontainer.cxx

           css::container::NoSuchElementException,
           css::lang::WrappedTargetException     ,
           css::uno::RuntimeException            )
{
    if (!sItem.getLength())
        throw css::lang::IllegalArgumentException(
            ::rtl::OUString::createFromAscii("empty value not allowed as item name."),
            static_cast< css::container::XNameContainer* >(this),
            1);

    CacheItem aItem;
    try
    {
        aItem << aValue;
    }
    catch(const css::uno::Exception& ex)
    {
        throw css::lang::IllegalArgumentException(ex.Message, static_cast< css::container::XNameContainer* >(this), 2);
    }

    impl_loadOnDemand();

    // SAFE -> ----------------------------------
    ::osl::ResettableMutexGuard aLock(m_aLock);

    // create write copy of used cache on demand ...
    impl_initFlushMode();

    FilterCache* pCache = impl_getWorkingCache();
    if (!pCache->hasItem(m_eType, sItem))
=====================================================================
Found a 6 line (133 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx

  sal_Char aBase64EncodeTable[] =
    { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
      'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
      'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
      'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };
=====================================================================
Found a 12 line (133 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/eventattacher/source/eventattacher.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/invocation/invocation.cxx

	virtual void		SAL_CALL setMaterial( const Any& rMaterial );
	
	// XInvocation
    virtual Reference<XIntrospectionAccess> SAL_CALL getIntrospection(void) throw( RuntimeException );
    virtual Any SAL_CALL invoke(const OUString& FunctionName, const Sequence< Any >& Params, Sequence< sal_Int16 >& OutParamIndex, Sequence< Any >& OutParam) 
		throw( IllegalArgumentException, CannotConvertException, InvocationTargetException, RuntimeException );
    virtual void SAL_CALL setValue(const OUString& PropertyName, const Any& Value) 
		throw( UnknownPropertyException, CannotConvertException, InvocationTargetException, RuntimeException );
    virtual Any SAL_CALL getValue(const OUString& PropertyName) 
		throw( UnknownPropertyException, RuntimeException );
    virtual sal_Bool SAL_CALL hasMethod(const OUString& Name) throw( RuntimeException );
    virtual sal_Bool SAL_CALL hasProperty(const OUString& Name) throw( RuntimeException );
=====================================================================
Found a 15 line (133 tokens) duplication in the following files: 
Starting at line 297 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/querydesign/querycontroller.cxx
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/relationdesign/RelationController.cxx

}


using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::util;
=====================================================================
Found a 23 line (133 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/control/toolboxcontroller.cxx
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/ui/misc/toolboxcontroller.cxx

Any SAL_CALL OToolboxController::queryInterface( const Type& _rType ) throw (RuntimeException)
{
	Any aReturn = ToolboxController::queryInterface(_rType);
	if (!aReturn.hasValue())
		aReturn = TToolboxController_BASE::queryInterface(_rType);
	return aReturn;
}
// -----------------------------------------------------------------------------
void SAL_CALL OToolboxController::acquire() throw ()
{
	ToolboxController::acquire();
}
// -----------------------------------------------------------------------------
void SAL_CALL OToolboxController::release() throw ()
{
	ToolboxController::release();
}
// -----------------------------------------------------------------------------
void SAL_CALL OToolboxController::initialize( const Sequence< Any >& _rArguments ) throw (Exception, RuntimeException)
{
	ToolboxController::initialize(_rArguments);
	vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
	::osl::MutexGuard aGuard(m_aMutex);
=====================================================================
Found a 11 line (133 tokens) duplication in the following files: 
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/xml/dbloader2.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/browser/dbloader.cxx

		return ::rtl::OUString::createFromAscii("org.openoffice.comp.dbu.DBContentLoader");
	}
	static Sequence< ::rtl::OUString> getSupportedServiceNames_Static(void) throw(  );
	static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
			SAL_CALL Create(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&);

	// XLoader
	virtual void SAL_CALL load(	const Reference< XFrame > & _rFrame, const ::rtl::OUString& _rURL,
								const Sequence< PropertyValue >& _rArgs,
								const Reference< XLoadEventListener > & _rListener) throw(::com::sun::star::uno::RuntimeException);
	virtual void SAL_CALL cancel(void) throw();
=====================================================================
Found a 13 line (133 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 228 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx

    virtual test::TestData SAL_CALL getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
											   sal_Int16& nShort, sal_uInt16& nUShort,
											   sal_Int32& nLong, sal_uInt32& nULong,
											   sal_Int64& nHyper, sal_uInt64& nUHyper,
											   float& fFloat, double& fDouble,
											   test::TestEnum& eEnum, rtl::OUString& rStr,
											   ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
											   ::com::sun::star::uno::Any& rAny,
											   ::com::sun::star::uno::Sequence< test::TestElement >& rSequence,
											   test::TestData& rStruct )
		throw(com::sun::star::uno::RuntimeException);
	
    virtual sal_Bool SAL_CALL getBool() throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 26 line (133 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/source/uno/EnvStack.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/source/uno/cascade_mapping.cxx

static rtl::OUString getPrefix(rtl::OUString const & str1, rtl::OUString const & str2)
{
	sal_Int32 nIndex1 = 0;
	sal_Int32 nIndex2 = 0;
	sal_Int32 sim = 0;
	
	rtl::OUString token1;
	rtl::OUString token2;
	
	do
	{
		token1 = str1.getToken(0, ':', nIndex1);
		token2 = str2.getToken(0, ':', nIndex2);

		if (token1.equals(token2))
			sim += token1.getLength() + 1;
	}
	while(nIndex1 == nIndex2 && nIndex1 >= 0 && token1.equals(token2));

	rtl::OUString result;

	if (sim)
		result = str1.copy(0, sim - 1);

	return result;
}
=====================================================================
Found a 8 line (133 tokens) duplication in the following files: 
Starting at line 646 of /local/ooo-build/ooo-build/src/oog680-m3/cosv/source/strings/streamstr.cxx
Starting at line 50 of /local/ooo-build/ooo-build/src/oog680-m3/idl/source/cmptools/char.cxx

static unsigned char EqualTab[ 256 ] = {
  0,   1,   2,   3,   4,   5,   6,   7,   8,   9,
 10,  11,  12,  13,  14,  15,  16,  17,  18,  19,
 20,  21,  22,  23,  24,  25,  26,  27,  28,  29,
 30,  31,  32,  33,  34,  35,  36,  37,  38,  39,
 40,  41,  42,  43,  44,  45,  46,  47,  48,  49,
 50,  51,  52,  53,  54,  55,  56,  57,  58,  59,
 60,  61,  62,  63,  64,  65,  66,  67,  68,  69,
=====================================================================
Found a 17 line (133 tokens) duplication in the following files: 
Starting at line 1826 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 1923 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

	OLEVariant varCriteria[3];

	// Create SafeArray Bounds and initialize the array
	rgsabound[0].lLbound   = 0;
	rgsabound[0].cElements = sizeof varCriteria / sizeof varCriteria[0];
	psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

	sal_Int32 nPos=0;
	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
		varCriteria[nPos].setString(schemaPattern);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

	if(procedureNamePattern.toChar() != '%')
=====================================================================
Found a 7 line (133 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL java_sql_ResultSet::getTypes(  ) throw(::com::sun::star::uno::RuntimeException)
{
	::cppu::OTypeCollection aTypes(	::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
									::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XFastPropertySet > *)0 ),
									::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > *)0 ));

	return ::comphelper::concatSequences(aTypes.getTypes(),java_sql_ResultSet_BASE::getTypes());
=====================================================================
Found a 9 line (133 tokens) duplication in the following files: 
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/APreparedStatement.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FPreparedStatement.cxx

                                        static_cast< XParameters*>(this),
                                        static_cast< XResultSetMetaDataSupplier*>(this));
}
// -------------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OPreparedStatement::getTypes(  ) throw(::com::sun::star::uno::RuntimeException)
{
        ::cppu::OTypeCollection aTypes( ::getCppuType( (const ::com::sun::star::uno::Reference< XPreparedStatement > *)0 ),
                                        ::getCppuType( (const ::com::sun::star::uno::Reference< XParameters > *)0 ),
                                        ::getCppuType( (const ::com::sun::star::uno::Reference< XResultSetMetaDataSupplier > *)0 ));
=====================================================================
Found a 7 line (133 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx

::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OStatement_Base::getTypes(  ) throw(::com::sun::star::uno::RuntimeException)
{
	::cppu::OTypeCollection aTypes(	::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
									::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XFastPropertySet > *)0 ),
									::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > *)0 ));

	return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_BASE::getTypes());
=====================================================================
Found a 9 line (133 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/NamedPropertyValuesContainer.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdiclist.cxx

    virtual sal_Bool SAL_CALL hasElements(  ) throw (::com::sun::star::uno::RuntimeException);

    // XNameAccess
    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw (::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw (::com::sun::star::uno::RuntimeException);

    // XNameReplace
    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 47 line (133 tokens) duplication in the following files: 
Starting at line 3246 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javatype.cxx
Starting at line 3319 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javatype.cxx

        generated.add(typeName);
        return true;
    }
    if (!reader.isValid()) {
        return false;
    }
    handleUnoTypeRegistryEntityFunction handler;
    switch (reader.getTypeClass()) {
    case RT_TYPE_ENUM:
        handler = handleEnumType;
        break;

    case RT_TYPE_STRUCT:
    case RT_TYPE_EXCEPTION:
        handler = handleAggregatingType;
        break;

    case RT_TYPE_INTERFACE:
        handler = handleInterfaceType;
        break;

    case RT_TYPE_TYPEDEF:
        handler = handleTypedef;
        break;

    case RT_TYPE_CONSTANTS:
        handler = handleConstantGroup;
        break;

    case RT_TYPE_MODULE:
        handler = handleModule;
        break;

    case RT_TYPE_SERVICE:
        handler = handleService;
        break;

    case RT_TYPE_SINGLETON:
        handler = handleSingleton;
        break;

    default:
        return false;
    }
    Dependencies deps;
    handler(manager, *options, reader, &deps);
    generated.add(typeName);
=====================================================================
Found a 21 line (133 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/Stripe.cxx
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/Stripe.cxx

uno::Any Stripe::getTexturePolygon() const
{
    drawing::PolyPolygonShape3D aPP;

	aPP.SequenceX.realloc(1);
	aPP.SequenceY.realloc(1);
	aPP.SequenceZ.realloc(1);

	drawing::DoubleSequence* pOuterSequenceX = aPP.SequenceX.getArray();
	drawing::DoubleSequence* pOuterSequenceY = aPP.SequenceY.getArray();
	drawing::DoubleSequence* pOuterSequenceZ = aPP.SequenceZ.getArray();

    pOuterSequenceX->realloc(4);
    pOuterSequenceY->realloc(4);
	pOuterSequenceZ->realloc(4);

    double* pInnerSequenceX = pOuterSequenceX->getArray();
	double* pInnerSequenceY = pOuterSequenceY->getArray();
	double* pInnerSequenceZ = pOuterSequenceZ->getArray();

    *pInnerSequenceX++ = 0.0;
=====================================================================
Found a 22 line (133 tokens) duplication in the following files: 
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/LineChartTypeTemplate.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/NetChartTypeTemplate.cxx

    bool bSymbolsFound = false;
    if( bResult )
    {
        ::std::vector< Reference< chart2::XDataSeries > > aSeriesVec(
            DiagramHelper::getDataSeriesFromDiagram( xDiagram ));

        for( ::std::vector< Reference< chart2::XDataSeries > >::const_iterator aIt =
                 aSeriesVec.begin(); aIt != aSeriesVec.end(); ++aIt )
        {
            try
            {
                chart2::Symbol aSymbProp;
                drawing::LineStyle eLineStyle;
                Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY_THROW );
                if( (xProp->getPropertyValue( C2U( "Symbol" )) >>= aSymbProp) &&
                    (aSymbProp.Style != chart2::SymbolStyle_NONE ) &&
                    (! m_bHasSymbols) )
                {
                    bResult = false;
                    break;
                }
                if( m_bHasSymbols )
=====================================================================
Found a 23 line (133 tokens) duplication in the following files: 
Starting at line 329 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxlng.cxx

			*p->pLong = n; break;
		case SbxBYREF | SbxULONG:
			if( n < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); n = 0;
			}
			*p->pULong = (UINT32) n; break;
		case SbxBYREF | SbxSALINT64:
			*p->pnInt64 = n; break;
		case SbxBYREF | SbxSALUINT64:
	        if( n < 0 )
            {
		        SbxBase::SetError( SbxERR_OVERFLOW ); *p->puInt64 = 0;
            }
            else
			    *p->puInt64 = n; 
            break;
		case SbxBYREF | SbxSINGLE:
			*p->pSingle = (float) n; break;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			*p->pDouble = (double) n; break;
		case SbxBYREF | SbxCURRENCY:
=====================================================================
Found a 12 line (133 tokens) duplication in the following files: 
Starting at line 3345 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/classes/sbunoobj.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/invocation/invocation.cxx

	virtual void		SAL_CALL setMaterial( const Any& rMaterial );
	
	// XInvocation
    virtual Reference<XIntrospectionAccess> SAL_CALL getIntrospection(void) throw( RuntimeException );
    virtual Any SAL_CALL invoke(const OUString& FunctionName, const Sequence< Any >& Params, Sequence< sal_Int16 >& OutParamIndex, Sequence< Any >& OutParam) 
		throw( IllegalArgumentException, CannotConvertException, InvocationTargetException, RuntimeException );
    virtual void SAL_CALL setValue(const OUString& PropertyName, const Any& Value) 
		throw( UnknownPropertyException, CannotConvertException, InvocationTargetException, RuntimeException );
    virtual Any SAL_CALL getValue(const OUString& PropertyName) 
		throw( UnknownPropertyException, RuntimeException );
    virtual sal_Bool SAL_CALL hasMethod(const OUString& Name) throw( RuntimeException );
    virtual sal_Bool SAL_CALL hasProperty(const OUString& Name) throw( RuntimeException );
=====================================================================
Found a 14 line (133 tokens) duplication in the following files: 
Starting at line 1898 of /local/ooo-build/ooo-build/src/oog680-m3/animations/source/animcore/animcore.cxx
Starting at line 1924 of /local/ooo-build/ooo-build/src/oog680-m3/animations/source/animcore/animcore.cxx

Reference< XAnimationNode > SAL_CALL AnimationNode::insertAfter( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& refChild )
	throw (IllegalArgumentException, NoSuchElementException, ElementExistException, WrappedTargetException, RuntimeException)
{
	Guard< Mutex > aGuard( maMutex );

	if( !newChild.is() || !refChild.is() )
		throw IllegalArgumentException();

	ChildList_t::iterator before = ::std::find(maChilds.begin(), maChilds.end(), refChild);
	if( before == maChilds.end() )
		throw NoSuchElementException();

	if( ::std::find(maChilds.begin(), maChilds.end(), newChild) != maChilds.end() )
		throw ElementExistException();
=====================================================================
Found a 10 line (132 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokAnalyzeService.cxx
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokTestService.cxx

sal_Int32 SAL_CALL ScannerTestService::run( const uno::Sequence< rtl::OUString >& aArguments ) throw (uno::RuntimeException)
{
	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
			rtl::OUString arg=aArguments[0];
=====================================================================
Found a 21 line (132 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 539 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h

                if(fg[2] < 0) fg[2] = 0;

                if(fg[0] > base_mask) fg[0] = base_mask;
                if(fg[1] > base_mask) fg[1] = base_mask;
                if(fg[2] > base_mask) fg[2] = base_mask;

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = base_mask;
                ++span;
                ++intr;
            } while(--len);

            return base_type::allocator().span();
        }

    private:
        WrapModeX m_wrap_mode_x;
        WrapModeY m_wrap_mode_y;
    };
=====================================================================
Found a 22 line (132 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h

            base_type(alloc, src, color_type(0,0,0,0), intr, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            calc_type fg[3];
            const value_type *fg_ptr;
=====================================================================
Found a 21 line (132 tokens) duplication in the following files: 
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h

        span_pattern_filter_gray_bilinear(alloc_type& alloc,
                                          const rendering_buffer& src, 
                                          interpolator_type& inter) :
            base_type(alloc, src, color_type(0,0), inter, 0),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 27 line (132 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svdem.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svptest.cxx

public:
				MyWin( Window* pParent, WinBits nWinStyle );

	void		MouseMove( const MouseEvent& rMEvt );
	void		MouseButtonDown( const MouseEvent& rMEvt );
	void		MouseButtonUp( const MouseEvent& rMEvt );
	void		KeyInput( const KeyEvent& rKEvt );
	void		KeyUp( const KeyEvent& rKEvt );
	void		Paint( const Rectangle& rRect );
	void		Resize();
};

// -----------------------------------------------------------------------

void Main()
{
	MyWin aMainWin( NULL, WB_APP | WB_STDWORK );
	aMainWin.SetText( XubString( RTL_CONSTASCII_USTRINGPARAM( "VCL - Workbench" ) ) );
	aMainWin.Show();

	Application::Execute();
}

// -----------------------------------------------------------------------

MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
	WorkWindow( pParent, nWinStyle ),
=====================================================================
Found a 5 line (132 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_mask.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 19 line (132 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salinst.h
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salinst.h

                                                     USHORT nBitCount, const SystemGraphicsData *pData );
    virtual void			DestroyVirtualDevice( SalVirtualDevice* pDevice );

    virtual SalInfoPrinter*	CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
                                               ImplJobSetup* pSetupData );
    virtual void			DestroyInfoPrinter( SalInfoPrinter* pPrinter );
    virtual SalPrinter*		CreatePrinter( SalInfoPrinter* pInfoPrinter );
    virtual void			DestroyPrinter( SalPrinter* pPrinter );
    virtual void			GetPrinterQueueInfo( ImplPrnQueueList* pList );
    virtual void			GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
    virtual void			DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
    virtual String             GetDefaultPrinter();
    virtual SalSound*			CreateSalSound();
    virtual SalTimer*			CreateSalTimer();
    virtual SalOpenGL*			CreateSalOpenGL( SalGraphics* pGraphics );
    virtual SalI18NImeStatus*	CreateI18NImeStatus();
    virtual SalSystem*			CreateSalSystem();
    virtual SalBitmap*			CreateSalBitmap();
    virtual vos::IMutex*		GetYieldMutex();
=====================================================================
Found a 22 line (132 tokens) duplication in the following files: 
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx
Starting at line 801 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
};
=====================================================================
Found a 21 line (132 tokens) duplication in the following files: 
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salinst.h
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salinst.h

                                                     USHORT nBitCount, const SystemGraphicsData *pData = NULL );
    virtual void				DestroyVirtualDevice( SalVirtualDevice* pDevice );

    virtual SalInfoPrinter*	CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
                                               ImplJobSetup* pSetupData );
    virtual void				DestroyInfoPrinter( SalInfoPrinter* pPrinter );
    virtual SalPrinter*		CreatePrinter( SalInfoPrinter* pInfoPrinter );
    virtual void				DestroyPrinter( SalPrinter* pPrinter );

    virtual void				GetPrinterQueueInfo( ImplPrnQueueList* pList );
    virtual void				GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
    virtual void				DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
    virtual String             GetDefaultPrinter();

    virtual SalSound*			CreateSalSound();
    virtual SalTimer*			CreateSalTimer();
    virtual SalOpenGL*			CreateSalOpenGL( SalGraphics* pGraphics );
    virtual SalI18NImeStatus*	CreateI18NImeStatus();
    virtual SalSystem*			CreateSalSystem();
    virtual SalBitmap*			CreateSalBitmap();
    virtual SalSession*			CreateSalSession();
=====================================================================
Found a 39 line (132 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_contentcaps.cxx

    static ucb::CommandInfo aCommandInfoTable[] =
	{
		///////////////////////////////////////////////////////////////
		// Required commands
		///////////////////////////////////////////////////////////////
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
			-1,
			getCppuVoidType()
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::Property > * >( 0 ) )
		),
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
			-1,
            getCppuType(
                static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
		),
		///////////////////////////////////////////////////////////////
		// Optional standard commands
		///////////////////////////////////////////////////////////////
/*
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
			-1,
			getCppuBooleanType()
		),
*/
        ucb::CommandInfo(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
=====================================================================
Found a 38 line (132 tokens) duplication in the following files: 
Starting at line 575 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 653 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

    else if ( !m_aUri.isRootFolder()
              && aCommand.Name.equalsAsciiL(
                    RTL_CONSTASCII_STRINGPARAM( "delete" ) ) )
	{
		//////////////////////////////////////////////////////////////////
		// delete
		//////////////////////////////////////////////////////////////////

		sal_Bool bDeletePhysical = sal_False;
		aCommand.Argument >>= bDeletePhysical;
        destroy( bDeletePhysical, Environment );

		// Remove own and all children's persistent data.
        if ( !removeData() )
        {
            uno::Any aProps
                = uno::makeAny(
                         beans::PropertyValue(
                             rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                               "Uri")),
                             -1,
                             uno::makeAny(m_xIdentifier->
                                              getContentIdentifier()),
                             beans::PropertyState_DIRECT_VALUE));
            ucbhelper::cancelCommandExecution(
                ucb::IOErrorCode_CANT_WRITE,
                uno::Sequence< uno::Any >(&aProps, 1),
                Environment,
                rtl::OUString::createFromAscii(
                    "Cannot remove persistent data!" ),
                this );
            // Unreachable
        }

		// Remove own and all children's Additional Core Properties.
		removeAdditionalPropertySet( sal_True );
	}
    else if ( aCommand.Name.equalsAsciiL(
=====================================================================
Found a 18 line (132 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 1424 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx

	static ucb::CommandInfo aDocumentCommandInfoTable[] = {
		// Required commands
		ucb::CommandInfo
		( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
		  -1, getCppuVoidType() ),
		ucb::CommandInfo
		( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
		  -1, getCppuVoidType() ),
		ucb::CommandInfo
		( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
		  -1, getCppuType( static_cast<uno::Sequence< beans::Property > * >( 0 ) ) ),
		ucb::CommandInfo
		( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
		  -1, getCppuType( static_cast<uno::Sequence< beans::PropertyValue > * >( 0 ) ) ),

		// Optional standard commands
		ucb::CommandInfo
		( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
=====================================================================
Found a 11 line (132 tokens) duplication in the following files: 
Starting at line 1171 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetstrm.cxx
Starting at line 1181 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetstrm.cxx

    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,

    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,

    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
    0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40
=====================================================================
Found a 6 line (132 tokens) duplication in the following files: 
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 1683 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

  sal_Char aBase64EncodeTable[] =
    { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
      'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
      'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
      'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };
=====================================================================
Found a 19 line (132 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmgreetingspage.cxx
Starting at line 521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmgreetingspage.cxx

    lcl_FillGreetingsBox(m_aNeutralCB, rConfig, SwMailMergeConfigItem::NEUTRAL);

    //try to find the gender setting
    m_aFemaleColumnLB.Clear();
    Reference< sdbcx::XColumnsSupplier > xColsSupp = rConfig.GetColumnsSupplier();
    if(xColsSupp.is())
    {        
        Reference < container::XNameAccess> xColAccess = xColsSupp->getColumns();
        Sequence< ::rtl::OUString > aColumns = xColAccess->getElementNames();
        for(sal_Int32 nName = 0; nName < aColumns.getLength(); ++nName)
            m_aFemaleColumnLB.InsertEntry(aColumns[nName]);
    }

    ::rtl::OUString sGenderColumn = rConfig.GetAssignedColumn(MM_PART_GENDER);
    m_aFemaleColumnLB.SelectEntry(sGenderColumn);
    m_aFemaleColumnLB.SaveValue();

    m_aFemaleFieldCB.SetText(rConfig.GetFemaleGenderValue());
    m_aFemaleFieldCB.SaveValue();
=====================================================================
Found a 27 line (132 tokens) duplication in the following files: 
Starting at line 806 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/rtffly.cxx
Starting at line 925 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/rtffly.cxx

								break;

// JP 26.09.94: die Bindung an die Spalte gibt es nicht mehr !!
//							case RTF_FLY_COLUMN:
							}
							break;
					case RTF_COLS:	nCols = USHORT( nTokenValue );		break;
					case RTF_COLSX:	nColSpace = USHORT( nTokenValue );	break;
					case RTF_COLNO:
						nAktCol = USHORT( nTokenValue );
						if( RTF_COLW == GetNextToken() )
						{
							USHORT nWidth = USHORT( nTokenValue ), nSpace = 0;
							if( RTF_COLSR == GetNextToken() )
								nSpace = USHORT( nTokenValue );
							else
								SkipToken( -1 );		// wieder zurueck

							if( --nAktCol == ( aColumns.Count() / 2 ) )
							{
								aColumns.Insert( nWidth + nSpace, aColumns.Count() );
								aColumns.Insert( nSpace, aColumns.Count() );
							}
						}
						break;

					case '{':
=====================================================================
Found a 71 line (132 tokens) duplication in the following files: 
Starting at line 3529 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
// <--
    };
=====================================================================
Found a 26 line (132 tokens) duplication in the following files: 
Starting at line 1741 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/poolfmt.cxx
Starting at line 1831 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/poolfmt.cxx

			aFmt.SetCharFmt( pNumCFmt );
			aFmt.SetIncludeUpperLevels( 1 );
			aFmt.SetSuffix( aDotStr );

			static const USHORT aAbsSpace[ MAXLEVEL ] =
				{
//				cm: 0,5  1,0  1,5  2,0   2,5   3,0   3,5   4,0   4,5   5,0
					283, 567, 850, 1134, 1417, 1701, 1984, 2268, 2551, 2835
				};
#ifdef USE_MEASUREMENT
			static const USHORT aAbsSpaceInch[ MAXLEVEL ] =
				{
					283, 567, 850, 1134, 1417, 1701, 1984, 2268, 2551, 2835
				};
			const USHORT* pArr = MEASURE_METRIC ==
								GetAppLocaleData().getMeasurementSystemEnum()
									? aAbsSpace
									: aAbsSpaceInch;
#else
			const USHORT* pArr = aAbsSpace;
#endif

			aFmt.SetFirstLineOffset( - (*pArr) );
			for( n = 0; n < MAXLEVEL; ++n, ++pArr )
			{
				aFmt.SetStart( n + 1 );
=====================================================================
Found a 14 line (132 tokens) duplication in the following files: 
Starting at line 1139 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doctxm.cxx
Starting at line 2043 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doctxm.cxx

		if(GetTOXForm().IsCommaSeparated() &&
				aSortArr[nCnt]->GetType() == TOX_SORT_INDEX)
		{
			const SwTOXMark& rMark = aSortArr[nCnt]->pTxtMark->GetTOXMark();
			const String sPrimKey = rMark.GetPrimaryKey();
			const String sSecKey = rMark.GetSecondaryKey();
			const SwTOXMark* pNextMark = 0;
			while(aSortArr.Count() > (nCnt + nRange)&&
					aSortArr[nCnt + nRange]->GetType() == TOX_SORT_INDEX &&
					0 != (pNextMark = &(aSortArr[nCnt + nRange]->pTxtMark->GetTOXMark())) &&
					pNextMark->GetPrimaryKey() == sPrimKey &&
					pNextMark->GetSecondaryKey() == sSecKey)
				nRange++;
		}
=====================================================================
Found a 21 line (132 tokens) duplication in the following files: 
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xtabdash.cxx
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xtablend.cxx

	pXLSet->GetItemSet().Put( XLineEndItem( String(), GetLineEnd( nIndex )->GetLineEnd() ) );

//-/	pXOut->SetLineAttr( *pXLSet );
	pXOut->SetLineAttr( pXLSet->GetItemSet() );
	
	pXOut->DrawLine( Point( 0, aVDSize.Height() / 2 ),
					 Point( aVDSize.Width(), aVDSize.Height() / 2 ) );

	Bitmap* pBitmap = new Bitmap( pVD->GetBitmap( aZero, aVDSize ) );

	// Loeschen, da JOE den Pool vorm Dtor entfernt!
	if( bDelete )
	{
		if( pVD )	{ delete pVD;	pVD = NULL;     }
		if( pXOut ) { delete pXOut;	pXOut = NULL;   }
		if( pXFSet ){ delete pXFSet; pXFSet = NULL; }
		if( pXLSet ){ delete pXLSet; pXLSet = NULL; }
	}

	return( pBitmap );
}
=====================================================================
Found a 12 line (132 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/cube3d.cxx
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/cube3d.cxx

			if(GetCreateNormals())
			{
				basegfx::B3DPolygon aNormals3D;
				basegfx::B3DVector aVecTmp;
				
				aVecTmp = aRect3D.getB3DPoint(0L); aVecTmp.normalize(); aNormals3D.append(basegfx::B3DPoint(aVecTmp));
				aVecTmp = aRect3D.getB3DPoint(1L); aVecTmp.normalize(); aNormals3D.append(basegfx::B3DPoint(aVecTmp));
				aVecTmp = aRect3D.getB3DPoint(2L); aVecTmp.normalize(); aNormals3D.append(basegfx::B3DPoint(aVecTmp));
				aVecTmp = aRect3D.getB3DPoint(3L); aVecTmp.normalize(); aNormals3D.append(basegfx::B3DPoint(aVecTmp));

				if(GetCreateTexture())
				{
=====================================================================
Found a 13 line (132 tokens) duplication in the following files: 
Starting at line 2270 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2001 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x12 MSO_I, 0x14 MSO_I }, { 0x16 MSO_I, 0x18 MSO_I },

	{ 0x1a MSO_I, 0x1c MSO_I }, { 0x1e MSO_I, 0x1c MSO_I }, { 0x1e MSO_I, 0x20 MSO_I }, { 0x22 MSO_I, 0x20 MSO_I },
	{ 0x22 MSO_I, 0x24 MSO_I }, { 0x1a MSO_I, 0x24 MSO_I }, { 0x1a MSO_I, 0x20 MSO_I }, { 0x26 MSO_I, 0x20 MSO_I },
	{ 0x26 MSO_I, 0x28 MSO_I }, { 0x1a MSO_I, 0x28 MSO_I }
};
static const sal_uInt16 mso_sptActionButtonInformationSegm[] =
{
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
=====================================================================
Found a 29 line (132 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx

void StatusbarController::addStatusListener( const rtl::OUString& aCommandURL )
{
    Reference< XDispatch >       xDispatch;
    Reference< XStatusListener > xStatusListener;
    com::sun::star::util::URL    aTargetURL;

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        URLToDispatchMap::iterator pIter = m_aListenerMap.find( aCommandURL );

        // Already in the list of status listener. Do nothing.
        if ( pIter != m_aListenerMap.end() )
            return;

        // Check if we are already initialized. Implementation starts adding itself as status listener when
        // intialize is called.
        if ( !m_bInitialized )
        {
            // Put into the hash_map of status listener. Will be activated when initialized is called
            m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, Reference< XDispatch >() ));
            return;
        }
        else
        {
            // Add status listener directly as intialize has already been called.
            Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
            if ( m_xServiceManager.is() && xDispatchProvider.is() )
            {
                Reference< XURLTransformer > xURLTransformer = getURLTransformer();
=====================================================================
Found a 25 line (132 tokens) duplication in the following files: 
Starting at line 1095 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/itemset.cxx
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/itemset.cxx

	BOOL bEqual = TRUE;
	USHORT* pWh1 = _pWhichRanges;
	USHORT* pWh2 = rSet._pWhichRanges;
	USHORT nSize = 0;

	for( USHORT n = 0; *pWh1 && *pWh2; ++pWh1, ++pWh2, ++n )
	{
		if( *pWh1 != *pWh2 )
		{
			bEqual = FALSE;
			break;
		}
		if( n & 1 )
			nSize += ( *(pWh1) - *(pWh1-1) ) + 1;
	}
	bEqual = *pWh1 == *pWh2;		// auch die 0 abpruefen

	// sind die Bereiche identisch, ist es einfacher zu handhaben !
	if( bEqual )
	{
		SfxItemArray ppFnd1 = _aItems;
		SfxItemArray ppFnd2 = rSet._aItems;

		for( ; nSize; --nSize, ++ppFnd1, ++ppFnd2 )
			if( *ppFnd1 && *ppFnd2 )
=====================================================================
Found a 12 line (132 tokens) duplication in the following files: 
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 727 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

test::TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									 sal_Int16& nShort, sal_uInt16& nUShort,
									 sal_Int32& nLong, sal_uInt32& nULong,
									 sal_Int64& nHyper, sal_uInt64& nUHyper,
									 float& fFloat, double& fDouble,
									 test::TestEnum& eEnum, rtl::OUString& rStr,
									 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									 ::com::sun::star::uno::Any& rAny,
									 ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									 test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
{
=====================================================================
Found a 11 line (132 tokens) duplication in the following files: 
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 727 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

test::TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									 sal_Int16& nShort, sal_uInt16& nUShort,
									 sal_Int32& nLong, sal_uInt32& nULong,
									 sal_Int64& nHyper, sal_uInt64& nUHyper,
									 float& fFloat, double& fDouble,
									 test::TestEnum& eEnum, rtl::OUString& rStr,
									 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									 ::com::sun::star::uno::Any& rAny,
									 ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									 test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 11 line (132 tokens) duplication in the following files: 
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

test::TestData Test_Impl::setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									  sal_Int16& nShort, sal_uInt16& nUShort,
									  sal_Int32& nLong, sal_uInt32& nULong,
									  sal_Int64& nHyper, sal_uInt64& nUHyper,
									  float& fFloat, double& fDouble,
									  test::TestEnum& eEnum, rtl::OUString& rStr,
									  ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									  ::com::sun::star::uno::Any& rAny,
									  ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									  test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 25 line (132 tokens) duplication in the following files: 
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodel.cxx
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodelapi.cxx

void SfxMailModel::ClearList( AddressList_Impl* pList )
{
	if ( pList )
	{
		ULONG i, nCount = pList->Count();
		for ( i = 0; i < nCount; ++i )
			delete pList->GetObject(i);
		pList->Clear();
	}
}

void SfxMailModel::MakeValueList( AddressList_Impl* pList, String& rValueList )
{
	rValueList.Erase();
	if ( pList )
	{
		ULONG i, nCount = pList->Count();
		for ( i = 0; i < nCount; ++i )
		{
			if ( rValueList.Len() > 0 )
				rValueList += ',';
			rValueList += *pList->GetObject(i);
		}
	}
}
=====================================================================
Found a 28 line (132 tokens) duplication in the following files: 
Starting at line 297 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/reg4msdoc/registryw9x.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/reg4msdoc/registrywnt.cxx

		Name.c_str(),
		0,
		&Type,
		reinterpret_cast<LPBYTE>(buff),
		&size);

	if (ERROR_FILE_NOT_FOUND == rc)
	{
		#if (_MSC_VER < 1300) && !defined(__MINGW32__)
		return Default;
		#else
		RegistryValue regval_ptr;
		regval_ptr = RegistryValue(new RegistryValueImpl(*Default));
		return regval_ptr;
		#endif
	}

	if (ERROR_ACCESS_DENIED == rc)
		throw RegistryAccessDeniedException(rc);
	else if (ERROR_SUCCESS != rc)
		throw RegistryException(rc);

	RegistryValue regval;

	if (REG_DWORD == Type)
		regval = RegistryValue(new RegistryValueImpl(Name, *reinterpret_cast<int*>(buff)));
	else if (REG_SZ == Type || REG_EXPAND_SZ == Type || REG_MULTI_SZ == Type)
		regval = RegistryValue(new RegistryValueImpl(Name, std::wstring(reinterpret_cast<wchar_t*>(buff))));
=====================================================================
Found a 18 line (132 tokens) duplication in the following files: 
Starting at line 1191 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx
Starting at line 1221 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx

		Point aInsertPos( rPos );

		if( pOwnData && pOwnData->GetWorkDocument() )

		{
			const SdDrawDocument*	pWorkModel = pOwnData->GetWorkDocument();
            SdrPage*	            pWorkPage = (SdrPage*) ( ( pWorkModel->GetPageCount() > 1 ) ?
                                                pWorkModel->GetSdPage( 0, PK_STANDARD ) :
                                                pWorkModel->GetPage( 0 ) );

			pWorkPage->SetRectsDirty();

			// #104148# Use SnapRect, not BoundRect
			Size aSize( pWorkPage->GetAllObjSnapRect().GetSize() );

			aInsertPos.X() = pOwnData->GetStartPos().X() + ( aSize.Width() >> 1 );
			aInsertPos.Y() = pOwnData->GetStartPos().Y() + ( aSize.Height() >> 1 );
		}
=====================================================================
Found a 8 line (132 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

	static const SfxItemPropertyMap aGraphicPagePropertyMap_Impl[] =
	{
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BACKGROUND),		WID_PAGE_BACK,		&ITYPE( beans::XPropertySet),					beans::PropertyAttribute::MAYBEVOID,0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BOTTOM),			WID_PAGE_BOTTOM,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_LEFT),				WID_PAGE_LEFT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_RIGHT),			WID_PAGE_RIGHT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_TOP),				WID_PAGE_TOP,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
=====================================================================
Found a 23 line (132 tokens) duplication in the following files: 
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/facreg.cxx
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoctabl.cxx

static void writeInfo (
	registry::XRegistryKey * pRegistryKey,
	const OUString& rImplementationName,
	const uno::Sequence< OUString >& rServices)
{
	uno::Reference< registry::XRegistryKey > xNewKey(
		pRegistryKey->createKey(
			OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + rImplementationName + OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) ) );

	for( sal_Int32 i = 0; i < rServices.getLength(); i++ )
		xNewKey->createKey( rServices.getConstArray()[i]);
}

SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo (
	void * , void * pRegistryKey)
{
	if( pRegistryKey )
	{
		try
		{
			registry::XRegistryKey *pKey = reinterpret_cast< registry::XRegistryKey * >( pRegistryKey );

			writeInfo( pKey, SvxShapeCollection::getImplementationName_Static(), SvxShapeCollection::getSupportedServiceNames_Static() );
=====================================================================
Found a 29 line (132 tokens) duplication in the following files: 
Starting at line 258 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/accessibility/AccessibleTreeNode.cxx

sal_Int32 SAL_CALL AccessibleTreeNode::getAccessibleIndexInParent (void) 
    throw (uno::RuntimeException)
{
    OSL_ASSERT(getAccessibleParent().is());
    ThrowIfDisposed();
    const vos::OGuard aSolarGuard (Application::GetSolarMutex());
    sal_Int32 nIndexInParent(-1);

    
    Reference<XAccessibleContext> xParentContext (getAccessibleParent()->getAccessibleContext());
    if (xParentContext.is())
    {
        sal_Int32 nChildCount (xParentContext->getAccessibleChildCount());
        for (sal_Int32 i=0; i<nChildCount; ++i)
            if (xParentContext->getAccessibleChild(i).get() 
                    == static_cast<XAccessible*>(this))
            {
                nIndexInParent = i;
                break;
            }
    }
   
    return nIndexInParent;
}




sal_Int16 SAL_CALL AccessibleTreeNode::getAccessibleRole (void) 
=====================================================================
Found a 32 line (132 tokens) duplication in the following files: 
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 417 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

						while (nErr == 0 && aValIter.GetNext(nCellVal, nErr))
						{
							fx = nCellVal;
							if (fx < 0.0)
							{
								fx *= -1.0;
								fSign *= -1.0;
							}
							fy = fx * fy / ScGetGGT(fx, fy);
						}
						SetError(nErr);
					}
					else
						SetError(errIllegalArgument);
				}
				break;
				case svMatrix :
				{
					ScMatrixRef pMat = PopMatrix();
					if (pMat)
					{
                        SCSIZE nC, nR;
                        pMat->GetDimensions(nC, nR);
						if (nC == 0 || nR == 0)
							SetError(errIllegalArgument);
						else
						{
							if (!pMat->IsValue(0))
							{
								SetIllegalArgument();
								return;
							}
=====================================================================
Found a 24 line (132 tokens) duplication in the following files: 
Starting at line 743 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen4.cxx
Starting at line 784 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen4.cxx

		if (ValidRow(nOtherRow))	// nur Zeilen vergleichen, die in beiden Dateien sind
		{
			const ScBaseCell* pThisCell = GetCell( ScAddress( nThisCol, nThisRow, nThisTab ) );
			const ScBaseCell* pOtherCell = rOtherDoc.GetCell( ScAddress( nOtherCol, nOtherRow, nOtherTab ) );
			if (!ScBaseCell::CellEqual( pThisCell, pOtherCell ))
			{
				if ( pThisCell && pOtherCell )
					nDif += 3;
				else
					nDif += 4;		// Inhalt <-> leer zaehlt mehr
			}

			if ( ( pThisCell  && pThisCell->GetCellType()!=CELLTYPE_NOTE ) ||
				 ( pOtherCell && pOtherCell->GetCellType()!=CELLTYPE_NOTE ) )
				++nUsed;
		}
	}

	if (nUsed > 0)
		return static_cast<USHORT>((nDif*64)/nUsed);	// max.256

	DBG_ASSERT(!nDif,"Diff ohne Used");
	return 0;
}
=====================================================================
Found a 33 line (132 tokens) duplication in the following files: 
Starting at line 4041 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 4144 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 4209 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 4303 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 4430 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 4661 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx

    class  copy : public CppUnit::TestFixture
	{
		::osl::FileBase::RC      nError1;
		sal_uInt64 nCount_write, nCount_read;
		
	    public:
		// initialization
		void setUp( )
		{
			// create a tempfile in $TEMP/tmpdir/tmpname.
			createTestDirectory( aTmpName3 );
			createTestFile( aTmpName4 );
			
			//write chars into the file. 
			::osl::File testFile( aTmpName4 );
			
			nError1 = testFile.open( OpenFlag_Write );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
			nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
 			nError1 = testFile.close( );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
		}

		void tearDown( )
		{
			// remove the tempfile in $TEMP/tmpdir/tmpname.
			deleteTestFile( aTmpName4 );
			deleteTestDirectory( aTmpName3 );
		}

		// test code.
		void copy_001( )
=====================================================================
Found a 26 line (132 tokens) duplication in the following files: 
Starting at line 16869 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 17631 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_009_Double_Negative : public checkdouble
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
            // LLA: OString                expVal( kTestStr95 );
            double                 input = atof("-3.0");
=====================================================================
Found a 25 line (132 tokens) duplication in the following files: 
Starting at line 3826 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 9005 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_006_Int32_defaultParam : public CppUnit::TestFixture
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
            OString                expVal( kTestStr59 );
=====================================================================
Found a 15 line (132 tokens) duplication in the following files: 
Starting at line 712 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 629 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

	if (! (pProfile->m_Flags & osl_Profile_SYSTEM))
	{
		if ((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) == NULL)
		{
			Line[0] = '\0';
			addLine(pProfile, Line);

			Line[0] = '[';
			strcpy(&Line[1], pszSection);
			Line[1 + strlen(pszSection)] = ']';
			Line[2 + strlen(pszSection)] = '\0';

			if (((pStr = addLine(pProfile, Line)) == NULL) ||
				(! addSection(pProfile, pProfile->m_NoLines - 1, &pStr[1], strlen(pszSection))))
			{
=====================================================================
Found a 71 line (132 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
// <--
    };
=====================================================================
Found a 5 line (132 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 6 line (132 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

	static const sal_Char aDigits[64]
		= { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
			'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
			'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
			'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
			'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };
=====================================================================
Found a 24 line (132 tokens) duplication in the following files: 
Starting at line 960 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx
Starting at line 1047 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx

int Hunspell::suggest_pos_stems(char*** slst, const char * word)
{
  char cw[MAXWORDUTF8LEN + 4];
  char wspace[MAXWORDUTF8LEN + 4];
  if (! pSMgr) return 0;
  int wl = strlen(word);
  if (utf8) {
    if (wl >= MAXWORDUTF8LEN) return 0;
  } else {
    if (wl >= MAXWORDLEN) return 0;
  }
  int captype = 0;
  int abbv = 0;
  wl = cleanword(cw, word, &captype, &abbv);
  if (wl == 0) return 0;
  
  int ns = 0; // ns=0 = normalized input

  *slst = NULL; // HU, nsug in pSMgr->suggest
  
  switch(captype) {
     case HUHCAP:
     case NOCAP:   { 
                     ns = pSMgr->suggest_pos_stems(slst, cw, ns);
=====================================================================
Found a 16 line (132 tokens) duplication in the following files: 
Starting at line 1569 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 1984 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

                    continue;
            }

            // check compoundmiddle flag in suffix and prefix
            if ((rv) && !checked_prefix && (wordnum==0) && compoundmiddle && !hu_mov_rule &&
                ((pfx && ((PfxEntry*)pfx)->getCont() &&
                    TESTAFF(((PfxEntry*)pfx)->getCont(), compoundmiddle, 
                        ((PfxEntry*)pfx)->getContLen())) ||
                (sfx && ((SfxEntry*)sfx)->getCont() &&
                    TESTAFF(((SfxEntry*)sfx)->getCont(), compoundmiddle, 
                        ((SfxEntry*)sfx)->getContLen())))) {
                    rv = NULL;
            }	    

	// check forbiddenwords
	if ((rv) && (rv->astr) && TESTAFF(rv->astr, forbiddenword, rv->alen)) continue;
=====================================================================
Found a 71 line (132 tokens) duplication in the following files: 
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
// <--
    };
=====================================================================
Found a 7 line (132 tokens) duplication in the following files: 
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp

    10,    11,    12,    13,    14,    -1,    -1,    17,    18,    19,
    20,    21,    22,    23,    24,    25,    26,    -1,    -1,    29,
    -1,    31,    32,    33,    -1,    35,    -1,    -1,    -1,    39,
     3,     4,     5,     6,     7,     8,     9,    10,    11,    12,
    13,    14,    -1,    -1,    17,    18,    19,    20,    21,    22,
    23,    24,    25,    26,    -1,    -1,    29,    -1,    31,    32,
    33,    -1,    35,    -1,    -1,    38,     3,     4,     5,     6,
=====================================================================
Found a 33 line (132 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/attributes.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/xmlaccelcfg.cxx

	::std::vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}


AttributeListImpl::AttributeListImpl()
{
	m_pImpl = new AttributeListImpl_impl;
}



AttributeListImpl::~AttributeListImpl()
{
	delete m_pImpl;
}


void AttributeListImpl::addAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}

void AttributeListImpl::clear()
{
=====================================================================
Found a 24 line (132 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/scrollbar.cxx
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/spinbutton.cxx

	static ::frm::OMultiInstanceAutoRegistration< ::frm::OSpinButtonModel >   aRegisterModel;
}

//........................................................................
namespace frm
{
//........................................................................

    using namespace ::com::sun::star::uno;
    using namespace ::com::sun::star::beans;
    using namespace ::com::sun::star::form;
    using namespace ::com::sun::star::awt;
    using namespace ::com::sun::star::lang;
    using namespace ::com::sun::star::util;
    using namespace ::com::sun::star::io;
    using namespace ::com::sun::star::form::binding;

    //====================================================================
	//= OSpinButtonModel
	//====================================================================
    // implemented elsewhere
    Any translateExternalDoubleToControlIntValue( 
        const Reference< XValueBinding >& _rxBinding, const Reference< XPropertySet >& _rxProperties,
        const ::rtl::OUString& _rMinValueName, const ::rtl::OUString& _rMaxValueName );
=====================================================================
Found a 6 line (132 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

	static const sal_Char aDigits[64]
		= { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
			'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
			'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
			'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
			'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };
=====================================================================
Found a 71 line (132 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
// <--
    };
=====================================================================
Found a 5 line (132 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 6 line (132 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

	static const sal_Char aDigits[64]
		= { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
			'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
			'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
			'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
			'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };
=====================================================================
Found a 22 line (132 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/plugin/base/context.cxx
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/plugin/base/context.cxx

            Sequence< ::com::sun::star::beans::PropertyValue > aArgs( aValues, 2 );
            Reference< ::com::sun::star::lang::XComponent >  xComp =
                xLoader->loadComponentFromURL(
                                              url,
                                              target,
                                              ::com::sun::star::frame::FrameSearchFlag::PARENT          |
                                              ::com::sun::star::frame::FrameSearchFlag::SELF            |
                                              ::com::sun::star::frame::FrameSearchFlag::CHILDREN        |
                                              ::com::sun::star::frame::FrameSearchFlag::SIBLINGS        |
                                              ::com::sun::star::frame::FrameSearchFlag::TASKS           |
                                              ::com::sun::star::frame::FrameSearchFlag::CREATE,
                                              aArgs
                                              );
        }
        catch( ... )
        {
            throw ::com::sun::star::plugin::PluginException();
        }
	}
}

void XPluginContext_Impl::postURLNotify(const Reference< ::com::sun::star::plugin::XPlugin > & plugin, const ::rtl::OUString& url, const ::rtl::OUString& target, const Sequence< sal_Int8 >& buf, sal_Bool file, const Reference< ::com::sun::star::lang::XEventListener > & listener )
=====================================================================
Found a 23 line (132 tokens) duplication in the following files: 
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/pages.cxx
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/license.cxx

    aPBAccept.Disable();

    // load license text
    File aLicenseFile(aLicensePath);
    if ( aLicenseFile.open(OpenFlag_Read) == FileBase::E_None)
    {
        DirectoryItem d;
        DirectoryItem::get(aLicensePath, d);
        FileStatus fs(FileStatusMask_FileSize);
        d.getFileStatus(fs);
        sal_uInt64 nBytesRead = 0;
        sal_uInt64 nPosition = 0;
        sal_uInt32 nBytes = (sal_uInt32)fs.getFileSize();
        sal_Char *pBuffer = new sal_Char[nBytes];
        // FileBase RC r = FileBase::E_None;
        while (aLicenseFile.read(pBuffer+nPosition, nBytes-nPosition, nBytesRead) == FileBase::E_None 
            && nPosition + nBytesRead < nBytes)
        {
            nPosition += nBytesRead;
        }
        OUString aLicenseString(pBuffer, nBytes, RTL_TEXTENCODING_UTF8, 
                OSTRING_TO_OUSTRING_CVTFLAGS | RTL_TEXTTOUNICODE_FLAGS_GLOBAL_SIGNATURE);
        delete[] pBuffer;    
=====================================================================
Found a 30 line (132 tokens) duplication in the following files: 
Starting at line 63 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/FreeReference/FreeReference.test.cxx
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/Map/Map.test.cxx

	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\""));

	if (!s_env.is())
	{
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE: s_env not set"));
		return;
	}

	rtl::OUString reason;
	int valid = s_env.isValid(&reason);

	if (valid)
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));

	else
	{
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE: "));
		s_comment += reason;
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));
	}
}

static void s_callee_out(rtl_uString *  pMethod_name)
{
	rtl::OUString method_name(pMethod_name);

	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t\ts_callee_out method:\""));
	s_comment += method_name;

	s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\" env: \""));
=====================================================================
Found a 12 line (132 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx

test::TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									 sal_Int16& nShort, sal_uInt16& nUShort,
									 sal_Int32& nLong, sal_uInt32& nULong,
									 sal_Int64& nHyper, sal_uInt64& nUHyper,
									 float& fFloat, double& fDouble,
									 test::TestEnum& eEnum, rtl::OUString& rStr,
									 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									 ::com::sun::star::uno::Any& rAny,
									 ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									 test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
{
=====================================================================
Found a 11 line (132 tokens) duplication in the following files: 
Starting at line 228 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx

test::TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									 sal_Int16& nShort, sal_uInt16& nUShort,
									 sal_Int32& nLong, sal_uInt32& nULong,
									 sal_Int64& nHyper, sal_uInt64& nUHyper,
									 float& fFloat, double& fDouble,
									 test::TestEnum& eEnum, rtl::OUString& rStr,
									 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									 ::com::sun::star::uno::Any& rAny,
									 ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									 test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 11 line (132 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx

test::TestData Test_Impl::setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									  sal_Int16& nShort, sal_uInt16& nUShort,
									  sal_Int32& nLong, sal_uInt32& nULong,
									  sal_Int64& nHyper, sal_uInt64& nUHyper,
									  float& fFloat, double& fDouble,
									  test::TestEnum& eEnum, rtl::OUString& rStr,
									  ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									  ::com::sun::star::uno::Any& rAny,
									  ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									  test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 12 line (132 tokens) duplication in the following files: 
Starting at line 1165 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/implrenderer.cxx
Starting at line 1253 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/implrenderer.cxx

                rState.clip = ::basegfx::tools::correctOrientations( rState.clip );
                aClipPoly = ::basegfx::tools::correctOrientations( aClipPoly );

                // intersect the two poly-polygons
                rState.clip = ::basegfx::tools::removeAllIntersections(rState.clip);
                rState.clip = ::basegfx::tools::removeNeutralPolygons(rState.clip, sal_True);
                aClipPoly = ::basegfx::tools::removeAllIntersections(aClipPoly);
                aClipPoly = ::basegfx::tools::removeNeutralPolygons(aClipPoly, sal_True);
                rState.clip.append(aClipPoly);
                rState.clip = ::basegfx::tools::removeAllIntersections(rState.clip);
                rState.clip = ::basegfx::tools::removeNeutralPolygons(rState.clip, sal_False);
            }
=====================================================================
Found a 17 line (132 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HViews.cxx
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YViews.cxx

	OTables* pTables = static_cast<OTables*>(static_cast<OMySQLCatalog&>(m_rParent).getPrivateTables());
	if ( pTables )
	{
		::rtl::OUString sName = ::dbtools::composeTableName( m_xMetaData, descriptor, ::dbtools::eInDataManipulation, false, false, false );
		pTables->appendNew(sName);
	}
}
// -----------------------------------------------------------------------------
void OViews::appendNew(const ::rtl::OUString& _rsNewTable)
{
	insertElement(_rsNewTable,NULL);
	// notify our container listeners
	ContainerEvent aEvent(static_cast<XContainer*>(this), makeAny(_rsNewTable), Any(), Any());
	OInterfaceIteratorHelper aListenerLoop(m_aContainerListeners);
	while (aListenerLoop.hasMoreElements())
		static_cast<XContainerListener*>(aListenerLoop.next())->elementInserted(aEvent);
}
=====================================================================
Found a 25 line (132 tokens) duplication in the following files: 
Starting at line 2772 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 1742 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

    if( nPos == -1 )
        return OString();

	// scoped name only if the namespace is not equal
	if (scope.lastIndexOf('/') > 0)
	{
		OString tmpScp(scope.copy(0, scope.lastIndexOf('/')));
		OString tmpScp2(type.copy(0, nPos));

		if (tmpScp == tmpScp2)
			return OString();
	}

    OString aScope( type.copy( 0, nPos ) );
	OStringBuffer tmpBuf(aScope.getLength()*2);

    nPos = 0;
    do
	{
		tmpBuf.append("::");
		tmpBuf.append(aScope.getToken(0, '/', nPos));
	} while( nPos != -1 );

	return tmpBuf.makeStringAndClear();
}
=====================================================================
Found a 24 line (132 tokens) duplication in the following files: 
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbamaker.cxx
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdbmaker.cxx

		cleanUp(sal_True);
		exit(99);
	}

	RegistryKey	typeKey = typeMgr.getTypeKey(typeName);
	RegistryKeyNames subKeys;
	
	if (typeKey.getKeyNames(OUString(), subKeys))
		return sal_False;
	
	OString tmpName;
	for (sal_uInt32 i=0; i < subKeys.getLength(); i++)
	{
		tmpName = OUStringToOString(subKeys.getElement(i), RTL_TEXTENCODING_UTF8);

		if (pOptions->isValid("-B"))
			tmpName = tmpName.copy(tmpName.indexOf('/', 1) + 1);
		else
			tmpName = tmpName.copy(1);

		if (bFullScope)
		{
			if (!produceAllTypes(tmpName, typeMgr, typeDependencies, pOptions, sal_True, 
								 o, regKey, filterTypes2))
=====================================================================
Found a 18 line (132 tokens) duplication in the following files: 
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/StockChartTypeTemplate.cxx

        Reference< chart2::XChartType > xCandleStickChartType;
        Reference< chart2::XChartType > xLineChartType;
        sal_Int32 nNumberOfChartTypes = 0;

        Reference< XCoordinateSystemContainer > xCooSysCnt(
            xDiagram, uno::UNO_QUERY_THROW );
        Sequence< Reference< XCoordinateSystem > > aCooSysSeq(
            xCooSysCnt->getCoordinateSystems());
        for( sal_Int32 i=0; i<aCooSysSeq.getLength(); ++i )
        {
            Reference< XChartTypeContainer > xCTCnt( aCooSysSeq[i], uno::UNO_QUERY_THROW );
            Sequence< Reference< XChartType > > aChartTypeSeq( xCTCnt->getChartTypes());
            for( sal_Int32 j=0; j<aChartTypeSeq.getLength(); ++j )
            {
                if( aChartTypeSeq[j].is())
                {
                    ++nNumberOfChartTypes;
                    if( nNumberOfChartTypes > 3 )
=====================================================================
Found a 18 line (132 tokens) duplication in the following files: 
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx

    Reference< beans::XPropertySet > xPropSet(0);

    Sequence< Reference< chart2::XChartType > > aTypes(
            ::chart::DiagramHelper::getChartTypesFromDiagram( m_spChart2ModelContact->getChart2Diagram() ) );
    for( sal_Int32 nN = 0; nN < aTypes.getLength(); nN++ )
    {
        Reference< chart2::XChartType > xType( aTypes[nN] );
        if( xType->getChartType().equals(CHART2_SERVICE_NAME_CHARTTYPE_CANDLESTICK) )
        {
            Reference< beans::XPropertySet > xTypeProps( aTypes[nN], uno::UNO_QUERY );
            if(xTypeProps.is())
            {
                xTypeProps->getPropertyValue( m_aPropertySetName ) >>= xPropSet;
            }
        }
    }
    if(xPropSet.is())
    {
=====================================================================
Found a 27 line (132 tokens) duplication in the following files: 
Starting at line 382 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx
Starting at line 437 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx

                            {
                                for( int x=0; x<aDestBmpSize.Width(); ++x )
                                {
                                    ::basegfx::B2DPoint aPoint(x,y);
                                    aPoint *= aTransform;

                                    const int nSrcX( ::basegfx::fround( aPoint.getX() ) );
                                    const int nSrcY( ::basegfx::fround( aPoint.getY() ) );
                                    if( nSrcX < 0 || nSrcX >= aBmpSize.Width() ||
                                        nSrcY < 0 || nSrcY >= aBmpSize.Height() )
                                    {
                                        pAlphaWriteAccess->SetPixel( y, x, BitmapColor(255) );
                                    }
                                    else
                                    {
                                        // modulate alpha with
                                        // nAlphaModulation. This is a
                                        // little bit verbose, formula
                                        // is 255 - 255*nAlphaModulation
                                        // (invert 'alpha' pixel value, 
                                        // to get the standard alpha 
                                        // channel behaviour)
                                        pAlphaWriteAccess->SetPixel( y, x, 
                                                                     BitmapColor( 
                                                                         255U - 
                                                                         static_cast<BYTE>(
                                                                             nAlphaModulation*255.0
=====================================================================
Found a 36 line (132 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if (pCppReturn) // has complex return
		{
			if (pUnoReturn != pCppReturn) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if (pReturnTypeDescr)
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}


//==================================================================================================
static typelib_TypeClass cpp_mediate(
=====================================================================
Found a 22 line (132 tokens) duplication in the following files: 
Starting at line 5665 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 5691 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

									nNr2 = 1;
                                if ( ValueOK( aUId, MethodString( nMethodId ),nNr2,pThisEntry->ItemCount() ) )
                                {
                                    SvLBoxString* pItem = NULL;
							        if ( ! (nParams & PARAM_USHORT_2) )
								        pItem = (SvLBoxString*)pThisEntry->GetFirstItem( SV_ITEM_ID_LBOXSTRING );
                                    else
                                    {
                                        SvLBoxItem *pMyItem = pThisEntry->GetItem( nNr2-1 );
                                        if ( pMyItem->IsA() == SV_ITEM_ID_LBOXSTRING )
                                            pItem = (SvLBoxString*)pMyItem;
                                    }

        						    if ( pItem )
                                        pRet->GenReturn ( RET_Value, aUId, pItem->GetText() );
                                    else
// i79413                               ReportError( aUId, GEN_RES_STR1( S_NO_LIST_BOX_STRING, MethodString( nMethodId ) ) );
                                        ReportError( aUId, CUniString( "String does not exist in ($Arg1)" ).Append( ArgString( 1, MethodString( nMethodId ) ) ) );
                                }
							}
							break;
						case M_IsChecked :
=====================================================================
Found a 15 line (132 tokens) duplication in the following files: 
Starting at line 868 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 3686 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

	pCmdIn->Read( nMethodId );
	pCmdIn->Read( nParams );

	if( nParams & PARAM_USHORT_1 )	pCmdIn->Read( nNr1 );
	if( nParams & PARAM_USHORT_2 )	pCmdIn->Read( nNr2 );
	if( nParams & PARAM_USHORT_3 )	pCmdIn->Read( nNr3 );
	if( nParams & PARAM_USHORT_4 )	pCmdIn->Read( nNr4 );
	if( nParams & PARAM_ULONG_1 )	pCmdIn->Read( nLNr1 );
	if( nParams & PARAM_STR_1 )		pCmdIn->Read( aString1 );
	if( nParams & PARAM_STR_2 )		pCmdIn->Read( aString2 );
	if( nParams & PARAM_BOOL_1 )	pCmdIn->Read( bBool1 );
	if( nParams & PARAM_BOOL_2 )	pCmdIn->Read( bBool2 );

#if OSL_DEBUG_LEVEL > 1
	m_pDbgWin->AddText( "Reading Control: UId: " );
=====================================================================
Found a 6 line (132 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/ary/kernel/namesort.cxx
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/ary/kernel/namesort.cxx

      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
        
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255,
      255,255,255,255, 255,255,255,255,     255,255,255,255, 255,255,255,255
=====================================================================
Found a 21 line (131 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

            base_type(alloc, src, color_type(0,0,0,0), inter, filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg[3];
=====================================================================
Found a 21 line (131 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 498 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }

                        x_lr++;

                        weight = (weight_array[x_hr] * 
=====================================================================
Found a 16 line (131 tokens) duplication in the following files: 
Starting at line 2186 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx
Starting at line 2278 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

		ImplInitFillColor();

		// create forward mapping tables
		for( nX = 0L; nX <= nSrcWidth; nX++ )
			pMapX[ nX ] = aDestPt.X() + FRound( (double) aDestSz.Width() * nX / nSrcWidth );

		for( nY = 0L; nY <= nSrcHeight; nY++ )
			pMapY[ nY ] = aDestPt.Y() + FRound( (double) aDestSz.Height() * nY / nSrcHeight );
    
        // walk through all rectangles of mask
        Region          aWorkRgn( aMask.CreateRegion( COL_BLACK, Rectangle( Point(), aMask.GetSizePixel() ) ) );
		ImplRegionInfo	aInfo;
		BOOL            bRgnRect = aWorkRgn.ImplGetFirstRect( aInfo, nWorkX, nWorkY, nWorkWidth, nWorkHeight );

		while( bRgnRect )
		{
=====================================================================
Found a 40 line (131 tokens) duplication in the following files: 
Starting at line 325 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx

						const Color&	rCol = mpPal[ nIndex ];

						// 0: Transparent; >0: Non-Transparent
						if( !rCol.GetTransparency() )
						{
							pMskAcc->SetPixel( nY, nX, aMskWhite );
							mbTrans = TRUE;
						}
						else
						{
							aCol.SetRed( rCol.GetRed() );
							aCol.SetGreen( rCol.GetGreen() );
							aCol.SetBlue( rCol.GetBlue() );
							pBmpAcc->SetPixel( nY, nX, aCol );
						}
					}
				}

				bDataChanged = sal_True;
			}
			else
			{
				DBG_ERROR( "Producer format error!" );
				maChangedRect.SetEmpty();
			}
		}
	}
	else
		maChangedRect.SetEmpty();

	maBitmap.ReleaseAccess( pBmpAcc );
	maMask.ReleaseAccess( pMskAcc );

	if( bDataChanged )
		DataChanged();
}

// -----------------------------------------------------------------------------

void ImageConsumer::Completed( sal_uInt32 nStatus /*, ImageProducer& rProducer */ )
=====================================================================
Found a 29 line (131 tokens) duplication in the following files: 
Starting at line 2218 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx
Starting at line 3290 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx

void CheckBox::ImplInitSettings( BOOL bFont,
                                 BOOL bForeground, BOOL bBackground )
{
    const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();

    if ( bFont )
    {
        Font aFont = rStyleSettings.GetRadioCheckFont();
        if ( IsControlFont() )
            aFont.Merge( GetControlFont() );
        SetZoomedPointFont( aFont );
    }

    if ( bForeground || bFont )
    {
        Color aColor;
        if ( IsControlForeground() )
            aColor = GetControlForeground();
        else
            aColor = rStyleSettings.GetRadioCheckTextColor();
        SetTextColor( aColor );
        SetTextFillColor();
    }

    if ( bBackground )
    {
        Window* pParent = GetParent();
        if ( !IsControlBackground() &&
            (pParent->IsChildTransparentModeEnabled() || IsNativeControlSupported( CTRL_CHECKBOX, PART_ENTIRE_CONTROL ) ) )
=====================================================================
Found a 17 line (131 tokens) duplication in the following files: 
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/envelp/labelcfg.cxx
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/envelp/labelcfg.cxx

	OUString sFoundNode;
	for(sal_Int32 nLabel = 0; nLabel < aLabels.getLength(); nLabel++)
	{
		OUString sPrefix(sManufacturer);
		sPrefix += C2U("/");
		sPrefix += pLabels[nLabel];
		sPrefix += C2U("/");
		Sequence<OUString> aProperties(1);
		aProperties.getArray()[0] = sPrefix;
		aProperties.getArray()[0] += C2U("Name");
		Sequence<Any>	aValues = GetProperties(aProperties);
		const Any* pValues = aValues.getConstArray();
		if(pValues[0].hasValue())
		{
			OUString sTmp;
			pValues[0] >>= sTmp;
			if(rType == sTmp)
=====================================================================
Found a 25 line (131 tokens) duplication in the following files: 
Starting at line 3936 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 4070 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

	_HTMLAttrContext *pCntxt = new _HTMLAttrContext( nToken, nTxtColl, aClass );

	// Styles parsen (zu Class siehe auch NewPara)
	if( HasStyleOptions( aStyle, aId, aEmptyStr, &aLang, &aDir ) )
	{
		SfxItemSet aItemSet( pDoc->GetAttrPool(), pCSS1Parser->GetWhichMap() );
		SvxCSS1PropertyInfo aPropInfo;

		if( ParseStyleOptions( aStyle, aId, aEmptyStr, aItemSet, aPropInfo, &aLang, &aDir ) )
		{
			ASSERT( !aClass.Len() || !pCSS1Parser->GetClass( aClass ),
					"Class wird nicht beruecksichtigt" );
			DoPositioning( aItemSet, aPropInfo, pCntxt );
			InsertAttrs( aItemSet, aPropInfo, pCntxt );
		}
	}

	if( SVX_ADJUST_END != eParaAdjust )
        InsertAttr( &aAttrTab.pAdjust, SvxAdjustItem(eParaAdjust, RES_PARATR_ADJUST), pCntxt );

	// udn auf den Stack packen
	PushContext( pCntxt );

	// und die Vorlage oder deren Attribute setzen
	SetTxtCollAttrs( pCntxt );
=====================================================================
Found a 37 line (131 tokens) duplication in the following files: 
Starting at line 4367 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmltab.cxx
Starting at line 4546 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmltab.cxx

		SaveState( 0 );
	}

	if( !nToken )
		nToken = GetNextToken();	// naechstes Token

	sal_Bool bDone = sal_False;
	while( (IsParserWorking() && !bDone) || bPending )
	{
		SaveState( nToken );

		nToken = FilterToken( nToken );

		ASSERT( pPendStack || !bCallNextToken ||
				pCurTable->GetContext() || pCurTable->HasParentSection(),
				"Wo ist die Section gebieben?" );
		if( !pPendStack && bCallNextToken &&
			(pCurTable->GetContext() || pCurTable->HasParentSection()) )
		{
			// NextToken direkt aufrufen (z.B. um den Inhalt von
			// Floating-Frames oder Applets zu ignorieren)
			NextToken( nToken );
		}
		else switch( nToken )
		{
		case HTML_TABLE_ON:
			if( !pCurTable->GetContext()  )
			{
				SkipToken( -1 );
				bDone = sal_True;
			}
//			else
//			{
//				NextToken( nToken );
//			}
			break;
		case HTML_THEAD_ON:
=====================================================================
Found a 19 line (131 tokens) duplication in the following files: 
Starting at line 1943 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotext.cxx
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/dmapper/DomainMapperTableHandler.cxx

            const uno::Sequence< beans::PropertyValues > aDebugCurrentRow = aCellProperties[nDebugRow];
            sal_Int32 nDebugCells = aDebugCurrentRow.getLength();
            (void) nDebugCells;
            for( sal_Int32  nDebugCell = 0; nDebugCell < nDebugCells; ++nDebugCell)
            {
                const uno::Sequence< beans::PropertyValue >& aDebugCellProperties = aDebugCurrentRow[nDebugCell];
                sal_Int32 nDebugCellProperties = aDebugCellProperties.getLength();
                for( sal_Int32  nDebugProperty = 0; nDebugProperty < nDebugCellProperties; ++nDebugProperty)
                {
                    const ::rtl::OUString sName = aDebugCellProperties[nDebugProperty].Name;
                    sNames += sName;
                    sNames += ::rtl::OUString('-');
                }
                sNames += ::rtl::OUString('+');
            }
            sNames += ::rtl::OUString('|');
        }
        (void)sNames;
    }
=====================================================================
Found a 17 line (131 tokens) duplication in the following files: 
Starting at line 3370 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/tabfrm.cxx
Starting at line 2147 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/wsfrm.cxx

	if( pNew && RES_ATTRSET_CHG == pNew->Which() )
	{
		SfxItemIter aNIter( *((SwAttrSetChg*)pNew)->GetChgSet() );
		SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() );
		SwAttrSetChg aOldSet( *(SwAttrSetChg*)pOld );
		SwAttrSetChg aNewSet( *(SwAttrSetChg*)pNew );
		while( TRUE )
		{
			_UpdateAttr( (SfxPoolItem*)aOIter.GetCurItem(),
						 (SfxPoolItem*)aNIter.GetCurItem(), nInvFlags,
						 &aOldSet, &aNewSet );
			if( aNIter.IsAtEnd() )
				break;
			aNIter.NextItem();
			aOIter.NextItem();
		}
		if ( aOldSet.Count() || aNewSet.Count() )
=====================================================================
Found a 27 line (131 tokens) duplication in the following files: 
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoedge.cxx
Starting at line 1921 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

	const bool bIsLineDraft(0 != (rInfoRec.nPaintMode & SDRPAINTMODE_DRAFTLINE));

	// prepare ItemSet of this object
	const SfxItemSet& rSet = GetObjectItemSet();

	// perepare ItemSet to avoid old XOut line drawing
	SfxItemSet aEmptySet(*rSet.GetPool());
	aEmptySet.Put(XLineStyleItem(XLINE_NONE));
	aEmptySet.Put(XFillStyleItem(XFILL_NONE));

	// #b4899532# if not filled but fill draft, avoid object being invisible in using
	// a hair linestyle and COL_LIGHTGRAY
    SfxItemSet aItemSet(rSet);
	if(bIsFillDraft && XLINE_NONE == ((const XLineStyleItem&)(rSet.Get(XATTR_LINESTYLE))).GetValue())
	{
		ImpPrepareLocalItemSetForDraftLine(aItemSet);
	}

	// #103692# prepare ItemSet for shadow fill attributes
    SfxItemSet aShadowSet(aItemSet);

	// prepare line geometry
	::std::auto_ptr< SdrLineGeometry > pLineGeometry( ImpPrepareLineGeometry(rXOut, aItemSet, bIsLineDraft) );

	// Shadows
	if (!bHideContour && ImpSetShadowAttributes(aItemSet, aShadowSet))
	{
=====================================================================
Found a 33 line (131 tokens) duplication in the following files: 
Starting at line 1235 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdmodel.cxx
Starting at line 1229 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx

			rStr = UniString();
			rStr += sal_Unicode('m');
			break;
		}
		case FUNIT_KM     :
		{
			sal_Char aText[] = "km";
			rStr = UniString(aText, sizeof(aText-1));
			break;
		}

		// Inch
		case FUNIT_TWIP   :
		{
			sal_Char aText[] = "twip";
			rStr = UniString(aText, sizeof(aText-1));
			break;
		}
		case FUNIT_POINT  :
		{
			sal_Char aText[] = "pt";
			rStr = UniString(aText, sizeof(aText-1));
			break;
		}
		case FUNIT_PICA   :
		{
			sal_Char aText[] = "pica";
			rStr = UniString(aText, sizeof(aText-1));
			break;
		}
		case FUNIT_INCH   :
		{
			rStr = UniString();
=====================================================================
Found a 18 line (131 tokens) duplication in the following files: 
Starting at line 4750 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 4819 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x6000, 0x40c, 0x40e, 3600 },			//410
	{ 0x2001, 0x40d, 1, 2 },				//411 1/2 width
	{ 0x6000, 0x407, 0x411, 0 },			//412 top center glue xpos
	{ 0x8000, 21600, 0, 0x412 },			//413 bottom center glue xpos
	{ 0x2001, 0x405, 1, 2 },				//414 left glue x pos
	{ 0x8000, 21600, 0, 0x414 },			//415 right glue x pos
	{ 0x2001, 0x400, 2, 1 },				//416 y1 (textbox)
	{ 0x8000, 21600, 0, 0x416 },			//417 y2 (textbox)

	{ 0x8000, 21600, 0, 0x407 },			//418 p2

	{ 0x8000, 21600, 0, 0x40f },			//419 c
	{ 0x6000, 0x401, 0x408, 0 },			//41a

	{ 0x8000, 21600, 0, 0x410 },			//41b c
	{ 0xa000, 0x401, 0, 0x408 },			//41c 

	{ 0x8000, 21600, 0, 0x40c }, 			//41d p3
=====================================================================
Found a 35 line (131 tokens) duplication in the following files: 
Starting at line 530 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmsrcimp.cxx
Starting at line 733 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmsrcimp.cxx

        if (bFound) // immer noch ?
            break;

        // naechstes Feld (implizit naechster Datensatz, wenn noetig)
        if (!MoveField(nFieldPos, iterFieldLoop, iterBegin, iterEnd))
        {   // beim Bewegen auf das naechste Feld ging was schief ... weitermachen ist nicht drin, da das naechste Mal genau
            // das selbe bestimmt wieder schief geht, also Abbruch (ohne Fehlermeldung, von der erwarte ich, dass sie im Move
            // angezeigt wurde)
            // vorher aber noch, damit das Weitersuchen an der aktuellen Position weitermacht :
            try { m_aPreviousLocBookmark = m_xSearchCursor.getBookmark(); }
            catch ( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); }
            m_iterPreviousLocField = iterFieldLoop;
            // und wech
            return SR_ERROR;
        }

        Any aCurrentBookmark;
        try { aCurrentBookmark = m_xSearchCursor.getBookmark(); }
        catch ( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); return SR_ERROR; }
        bMovedAround = EQUAL_BOOKMARKS(aStartMark, aCurrentBookmark) && (iterFieldLoop == iterInitialField);

        if (nFieldPos == 0)
            // das heisst, ich habe mich auf einen neuen Datensatz bewegt
            PropagateProgress(bMovedAround);
                // if we moved to the starting position we don't have to propagate an 'overflow' message
                // FS - 07.12.99 - 68530

        // abbrechen gefordert ?
        if (CancelRequested())
            return SR_CANCELED;

    } while (!bMovedAround);

    return bFound ? SR_FOUND : SR_NOTFOUND;
}
=====================================================================
Found a 18 line (131 tokens) duplication in the following files: 
Starting at line 1546 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/chardlg.cxx
Starting at line 2060 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/chardlg.cxx

            m_aFontColorLB.SetNoSelection();
			break;

		case SFX_ITEM_DEFAULT:
		case SFX_ITEM_SET:
		{
			SvxFont& rFont = GetPreviewFont();
            SvxFont& rCJKFont = GetPreviewCJKFont();
			SvxFont& rCTLFont = GetPreviewCTLFont();

			const SvxColorItem& rItem = (SvxColorItem&)rSet.Get( nWhich );
			Color aColor = rItem.GetValue();
            rFont.SetColor( aColor.GetColor() == COL_AUTO ? Color(COL_BLACK) : aColor );
            rCJKFont.SetColor( aColor.GetColor() == COL_AUTO ? Color(COL_BLACK) : aColor );
			rCTLFont.SetColor( aColor.GetColor() == COL_AUTO ? Color(COL_BLACK) : aColor );

			m_aPreviewWin.Invalidate();
            USHORT nSelPos = m_aFontColorLB.GetEntryPos( aColor );
=====================================================================
Found a 11 line (131 tokens) duplication in the following files: 
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 708 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

test::TestData Test_Impl::setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									  sal_Int16& nShort, sal_uInt16& nUShort,
									  sal_Int32& nLong, sal_uInt32& nULong,
									  sal_Int64& nHyper, sal_uInt64& nUHyper,
									  float& fFloat, double& fDouble,
									  test::TestEnum& eEnum, rtl::OUString& rStr,
									  ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									  ::com::sun::star::uno::Any& rAny,
									  ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									  test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 21 line (131 tokens) duplication in the following files: 
Starting at line 474 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/cfgitem.cxx
Starting at line 712 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/cfgitem.cxx

    Sequence< OUString > aNames = lcl_GetFontPropertyNames();
	INT32 nProps = aNames.getLength();

	OUString aDelim( OUString::valueOf( (sal_Unicode) '/' ) );
	OUString *pName = aNames.getArray();
	for (INT32 i = 0;  i < nProps;  ++i)
	{
		OUString &rName = pName[i];
		OUString aTmp( rName );
		rName = rBaseNode;
		rName += aDelim;
		rName += rSymbolName;
		rName += aDelim;
		rName += aTmp;
	}

    const Sequence< Any > aValues = ((SmMathConfig*) this)->GetProperties( aNames );

	if (nProps  &&  aValues.getLength() == nProps)
	{
		const Any * pValue = aValues.getConstArray();
=====================================================================
Found a 33 line (131 tokens) duplication in the following files: 
Starting at line 558 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviewsb.cxx
Starting at line 557 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlnvs2.cxx

			SvxFieldItem* pFieldItem = 0;

			switch( nSId )
			{
				case SID_INSERT_FLD_DATE_FIX:
					pFieldItem = new SvxFieldItem(
                        SvxDateField( Date(), SVXDATETYPE_FIX ), EE_FEATURE_FIELD );
				break;

				case SID_INSERT_FLD_DATE_VAR:
                    pFieldItem = new SvxFieldItem( SvxDateField(), EE_FEATURE_FIELD );
				break;

				case SID_INSERT_FLD_TIME_FIX:
					pFieldItem = new SvxFieldItem(
                        SvxExtTimeField( Time(), SVXTIMETYPE_FIX ), EE_FEATURE_FIELD );
				break;

				case SID_INSERT_FLD_TIME_VAR:
                    pFieldItem = new SvxFieldItem( SvxExtTimeField(), EE_FEATURE_FIELD );
				break;

				case SID_INSERT_FLD_AUTHOR:
				{
                    SvtUserOptions aUserOptions;
                    pFieldItem = new SvxFieldItem(
                            SvxAuthorField(
                                aUserOptions.GetFirstName(), aUserOptions.GetLastName(), aUserOptions.GetID() )
                                , EE_FEATURE_FIELD );
				}
				break;

				case SID_INSERT_FLD_PAGE:
=====================================================================
Found a 17 line (131 tokens) duplication in the following files: 
Starting at line 1761 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output.cxx
Starting at line 2047 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output.cxx

			pDev->SetLineColor( rColor );
			if (bTop && bBottom && bLeft && bRight)
			{
				pDev->SetFillColor();
				pDev->DrawRect( Rectangle( nMinX, nMinY, nMaxX, nMaxY ) );
			}
			else
			{
				if (bTop)
					pDev->DrawLine( Point( nMinX,nMinY ), Point( nMaxX,nMinY ) );
				if (bBottom)
					pDev->DrawLine( Point( nMinX,nMaxY ), Point( nMaxX,nMaxY ) );
				if (bLeft)
					pDev->DrawLine( Point( nMinX,nMinY ), Point( nMinX,nMaxY ) );
				if (bRight)
					pDev->DrawLine( Point( nMaxX,nMinY ), Point( nMaxX,nMaxY ) );
			}
=====================================================================
Found a 22 line (131 tokens) duplication in the following files: 
Starting at line 485 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/cellsh1.cxx
Starting at line 1249 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/cellsh1.cxx

						if( IS_AVAILABLE( FID_INS_CELL_CONTENTS, &pItem ) )
							aFlags = ((const SfxStringItem*)pItem)->GetValue();

						aFlags.ToUpperAscii();
						BOOL	bCont = TRUE;

						for( xub_StrLen i=0 ; bCont && i<aFlags.Len() ; i++ )
						{
							switch( aFlags.GetChar(i) )
							{
								case 'A': // Alle
								nFlags |= IDF_ALL;
								bCont = FALSE; // nicht mehr weitermachen!
								break;
								case 'S': nFlags |= IDF_STRING;	break;
								case 'V': nFlags |= IDF_VALUE; break;
								case 'D': nFlags |= IDF_DATETIME; break;
								case 'F': nFlags |= IDF_FORMULA; break;
								case 'N': nFlags |= IDF_NOTE; break;
								case 'T': nFlags |= IDF_ATTRIB; break;
							}
						}
=====================================================================
Found a 29 line (131 tokens) duplication in the following files: 
Starting at line 721 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undodat.cxx
Starting at line 1547 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undodat.cxx

		pDoc->InsertRow( 0,nTab, MAXCOL,nTab, nNewEndRow+1, static_cast<SCSIZE>(nNewEndRow-aBlockEnd.Row()) );
	}

	//	Original Outline-Table

	pDoc->SetOutlineTable( nTab, pUndoTable );

	//	Original Spalten-/Zeilenstatus

	if (pUndoDoc && pUndoTable)
	{
		SCCOLROW nStartCol;
		SCCOLROW nStartRow;
		SCCOLROW nEndCol;
		SCCOLROW nEndRow;
		pUndoTable->GetColArray()->GetRange( nStartCol, nEndCol );
		pUndoTable->GetRowArray()->GetRange( nStartRow, nEndRow );

        pUndoDoc->CopyToDocument( static_cast<SCCOL>(nStartCol), 0, nTab,
                static_cast<SCCOL>(nEndCol), MAXROW, nTab, IDF_NONE, FALSE,
                pDoc );
		pUndoDoc->CopyToDocument( 0, nStartRow, nTab, MAXCOL, nEndRow, nTab, IDF_NONE, FALSE, pDoc );

		pViewShell->UpdateScrollBars();
	}

	//	Original-Daten & Referenzen

	ScUndoUtil::MarkSimpleBlock( pDocShell, 0, aBlockStart.Row(), nTab,
=====================================================================
Found a 22 line (131 tokens) duplication in the following files: 
Starting at line 631 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlcelli.cxx
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlsubti.cxx

		uno::Reference<sheet::XSheetCellRange> xMergeSheetCellRange (xMergeable, uno::UNO_QUERY);
		uno::Reference<sheet::XSpreadsheet> xTable(xMergeSheetCellRange->getSpreadsheet());
		uno::Reference<sheet::XSheetCellCursor> xMergeSheetCursor(xTable->createCursorByRange(xMergeSheetCellRange));
		if (xMergeSheetCursor.is())
		{
			xMergeSheetCursor->collapseToMergedArea();
			uno::Reference<sheet::XCellRangeAddressable> xMergeCellAddress (xMergeSheetCursor, uno::UNO_QUERY);
			if (xMergeCellAddress.is())
			{
				aCellAddress = xMergeCellAddress->getRangeAddress();
				if (aCellAddress.StartColumn == nCol && aCellAddress.EndColumn == nCol &&
					aCellAddress.StartRow == nRow && aCellAddress.EndRow == nRow)
					return sal_False;
				else
					return sal_True;
			}
		}
	}
	return sal_False;
}

void ScMyTables::UnMerge()
=====================================================================
Found a 22 line (131 tokens) duplication in the following files: 
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform8.cxx
Starting at line 952 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform8.cxx

			case 0x25: // Area Reference						[320 270]
			{
				UINT16			nRowFirst, nRowLast;
				UINT16			nColFirst, nColLast;
				SingleRefData	&rSRef1 = aCRD.Ref1;
				SingleRefData	&rSRef2 = aCRD.Ref2;

				aIn >> nRowFirst >> nRowLast >> nColFirst >> nColLast;

				rSRef1.nRelTab = rSRef2.nRelTab = 0;
				rSRef1.SetTabRel( TRUE );
				rSRef2.SetTabRel( TRUE );
				rSRef1.SetFlag3D( bRangeName );
				rSRef2.SetFlag3D( bRangeName );

                ExcRelToScRel8( nRowFirst, nColFirst, aCRD.Ref1, bRangeName );
                ExcRelToScRel8( nRowLast, nColLast, aCRD.Ref2, bRangeName );

				if( IsComplColRange( nColFirst, nColLast ) )
					SetComplCol( aCRD );
				else if( IsComplRowRange( nRowFirst, nRowLast ) )
					SetComplRow( aCRD );
=====================================================================
Found a 22 line (131 tokens) duplication in the following files: 
Starting at line 585 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx
Starting at line 1089 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx

			case 0x25: // Area Reference						[320 270]
			{
				UINT16			nRowFirst, nRowLast;
				UINT8			nColFirst, nColLast;
				SingleRefData	&rSRef1 = aCRD.Ref1;
				SingleRefData	&rSRef2 = aCRD.Ref2;

				aIn >> nRowFirst >> nRowLast >> nColFirst >> nColLast;

				rSRef1.nRelTab = rSRef2.nRelTab = 0;
				rSRef1.SetTabRel( TRUE );
				rSRef2.SetTabRel( TRUE );
				rSRef1.SetFlag3D( bRangeName );
				rSRef2.SetFlag3D( bRangeName );

				ExcRelToScRel( nRowFirst, nColFirst, aCRD.Ref1, bRangeName );
				ExcRelToScRel( nRowLast, nColLast, aCRD.Ref2, bRangeName );

				if( IsComplColRange( nColFirst, nColLast ) )
					SetComplCol( aCRD );
				else if( IsComplRowRange( nRowFirst, nRowLast ) )
					SetComplRow( aCRD );
=====================================================================
Found a 26 line (131 tokens) duplication in the following files: 
Starting at line 1925 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabres.cxx
Starting at line 2037 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabres.cxx

            if ( !nUserSubCount || !bHasChild )
                nUserSubCount = 1;

            ScDPSubTotalState aLocalSubState(rSubState);        // keep row state, modify column

            long nMemberMeasure = nMeasure;
            long nSubSize = pResultData->GetCountForMeasure(nMeasure);

            for (long nUserPos=0; nUserPos<nUserSubCount; nUserPos++)   // including hidden "automatic"
            {
                if ( pChildDimension && nUserSubCount > 1 )
                {
                    const ScDPLevel* pForceLevel = pResultMember ? pResultMember->GetParentLevel() : NULL;
                    aLocalSubState.nColSubTotalFunc = nUserPos;
                    aLocalSubState.eColForce = lcl_GetForceFunc( pForceLevel, nUserPos );
                }

                for ( long nSubCount=0; nSubCount<nSubSize; nSubCount++ )
                {
                    if ( nMeasure == SC_DPMEASURE_ALL )
                        nMemberMeasure = nSubCount;

                    // update data...
                    ScDPAggData* pAggData = GetAggData( nMemberMeasure, aLocalSubState );
                    if (pAggData)
                    {
=====================================================================
Found a 71 line (131 tokens) duplication in the following files: 
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
// <--
    };
=====================================================================
Found a 38 line (131 tokens) duplication in the following files: 
Starting at line 660 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx
Starting at line 725 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx

											   sal_Unicode*** pValueList, 
											   sal_uInt32* pLen)
{
	ORegKey* 	pKey;

	if (hKey)
	{
		pKey = (ORegKey*)hKey;

		if (pKey->isDeleted())
		{
			pValueList = NULL;
			*pLen = 0;
			return REG_INVALID_KEY;
		}
	} else
	{
		pValueList = NULL;
		*pLen = 0;
		return REG_INVALID_KEY;
	}

	OUString valueName( RTL_CONSTASCII_USTRINGPARAM("value") );
	if (keyName->length)
	{
		RegKeyHandle hSubKey;
		ORegKey* pSubKey;
		RegError _ret1 = pKey->openKey(keyName, &hSubKey);
		if (_ret1)
		{
			pValueList = NULL;
			*pLen = 0;
			return _ret1;
		}

		pSubKey = (ORegKey*)hSubKey;

        _ret1 = pSubKey->getUnicodeListValue(valueName, pValueList, pLen);
=====================================================================
Found a 18 line (131 tokens) duplication in the following files: 
Starting at line 1746 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3818 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xbf, 0xaf },
{ 0x01, 0xe0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
=====================================================================
Found a 13 line (131 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/include.c
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_include.c

        for (fd = -1, i = (depth < 0) ? (NINCLUDE - 1) : (depth - 1); i >= 0; i--)
        {
            ip = &includelist[i];
            if (ip->file == NULL || ip->deleted || (angled && ip->always == 0))
                continue;
            if (strlen(fname) + strlen(ip->file) + 2 > sizeof(iname))
                continue;
            strcpy(iname, ip->file);
            strcat(iname, "/");
            strcat(iname, fname);
            if ((fd = open(iname, O_RDONLY)) >= 0)
                break;
        }
=====================================================================
Found a 5 line (131 tokens) duplication in the following files: 
Starting at line 1514 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1534 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13, 0,13, 0,13,13,13,13,13,13,13,13,13,13,// fe70 - fe7f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fe80 - fe8f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fe90 - fe9f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fea0 - feaf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// feb0 - febf
=====================================================================
Found a 7 line (131 tokens) duplication in the following files: 
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1402 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26b0 - 26bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26c0 - 26cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26d0 - 26df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26e0 - 26ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 26f0 - 26ff

     0,10,10,10,10, 0,10,10,10,10, 0, 0,10,10,10,10,// 2700 - 270f
=====================================================================
Found a 5 line (131 tokens) duplication in the following files: 
Starting at line 1085 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1102 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a00 - 0a0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a10 - 0a1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a20 - 0a2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 0a30 - 0a3f
     0,17,17, 0, 0, 0, 0,17,17, 0, 0,17,17,17, 0, 0,// 0a40 - 0a4f
=====================================================================
Found a 5 line (131 tokens) duplication in the following files: 
Starting at line 872 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 892 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe70 - fe7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe80 - fe8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe90 - fe9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// feb0 - febf
=====================================================================
Found a 5 line (131 tokens) duplication in the following files: 
Starting at line 662 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 990 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0270 - 027f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0280 - 028f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0290 - 029f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 02a0 - 02af
     0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0,// 02b0 - 02bf
=====================================================================
Found a 5 line (131 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 823 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d760 - d76f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d770 - d77f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d780 - d78f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// d790 - d79f
     5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// d7a0 - d7af
=====================================================================
Found a 19 line (131 tokens) duplication in the following files: 
Starting at line 437 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hbox.h
Starting at line 494 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hbox.h

	 void AddRowsSize(){
		  int *tmp = data;
		  data = new int[nTotal + ADD_AMOUNT];
		  for( int i = 0 ; i < nTotal ; i++ )
				data[i] = tmp[i];
		  nTotal += ADD_AMOUNT;
		  delete[] tmp;
	 }

	 void insert(int pos){
		  if( nCount == 0 ){
				data[nCount++] = pos;
				return;
		  }
		  for( int i = 0 ; i < nCount; i++ ){
				if( pos < data[i] + ALLOWED_GAP && pos > data[i] - ALLOWED_GAP )
					 return;  // Already exist;
				if( pos < data[i] ){
					 if( nCount == nTotal )
=====================================================================
Found a 21 line (131 tokens) duplication in the following files: 
Starting at line 768 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx
Starting at line 870 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx

            CommandToInfoMap::iterator pIter = m_aCommandMap.find( aSeq[i] );
            if ( pIter != m_aCommandMap.end() && ( pIter->second.nImageInfo >= nImageInfo ))
            {
                Reference< XGraphic > xGraphic;
                if ( xNameAccess->getByName( aSeq[i] ) >>= xGraphic )
                {
                    Image aImage( xGraphic );
                    m_pToolBar->SetItemImage( pIter->second.nId, aImage );
                    if ( pIter->second.aIds.size() > 0 )
                    {
                        for ( sal_uInt32 j=0; j < pIter->second.aIds.size(); j++ )
                            m_pToolBar->SetItemImage( pIter->second.aIds[j], aImage );
                    }
                }
                pIter->second.nImageInfo = nImageInfo;
            }
        }
    }
}

void ToolBarManager::RemoveControllers()
=====================================================================
Found a 26 line (131 tokens) duplication in the following files: 
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/comboboxtoolbarcontroller.cxx
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/dropdownboxtoolbarcontroller.cxx
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/edittoolbarcontroller.cxx

            aSelectedText = m_pEditControl->GetText();
        }        
    }

    if ( xDispatch.is() && aTargetURL.Complete.getLength() > 0 )
    {
        Sequence<PropertyValue>   aArgs( 2 );

        // Add key modifier to argument list
        aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "KeyModifier" ));
        aArgs[0].Value <<= KeyModifier;
        aArgs[1].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Text" ));
        aArgs[1].Value <<= aSelectedText;

        // Execute dispatch asynchronously
        ExecuteInfo* pExecuteInfo = new ExecuteInfo;
        pExecuteInfo->xDispatch     = xDispatch;
        pExecuteInfo->aTargetURL    = aTargetURL;
        pExecuteInfo->aArgs         = aArgs;
        Application::PostUserEvent( STATIC_LINK(0, ComplexToolbarController , ExecuteHdl_Impl), pExecuteInfo );
    }
}

// ------------------------------------------------------------------

void EditToolbarController::Modify()
=====================================================================
Found a 13 line (131 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormattedField.cxx
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Grid.cxx

using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::view;
=====================================================================
Found a 17 line (131 tokens) duplication in the following files: 
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/typedetectionexport.cxx
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/typedetectionexport.cxx

void TypeDetectionExporter::addLocaleProperty( Reference< XDocumentHandler > xHandler, const OUString& rName, const OUString& rValue )
{
	try
	{
		const OUString sCdataAttribute( RTL_CONSTASCII_USTRINGPARAM( "CDATA" ) );
		const OUString sProp( RTL_CONSTASCII_USTRINGPARAM( "prop" ) );
		const OUString sValue( RTL_CONSTASCII_USTRINGPARAM( "value" ) );
		const OUString sWhiteSpace 			( RTL_CONSTASCII_USTRINGPARAM ( " " ) );

		AttributeList * pAttrList = new AttributeList;
		pAttrList->AddAttribute ( OUString::createFromAscii( "oor:name" ), sCdataAttribute, rName );
		pAttrList->AddAttribute ( OUString::createFromAscii( "oor:type" ), sCdataAttribute, OUString::createFromAscii( "xs:string" ) );
		Reference < XAttributeList > xAttrList (pAttrList);

		xHandler->ignorableWhitespace ( sWhiteSpace );
		xHandler->startElement( sProp, xAttrList );
		xAttrList = pAttrList = new AttributeList;
=====================================================================
Found a 37 line (131 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpptest/cpptest.cpp
Starting at line 42 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/unoTocomCalls/Test/Test.cpp

CComModule _Module;
BEGIN_OBJECT_MAP(ObjectMap)
END_OBJECT_MAP()

HRESULT doTest();

int main(int argc, char* argv[])
{
	HRESULT hr;
	if( FAILED( hr=CoInitialize(NULL)))
	{
		_tprintf(_T("CoInitialize failed \n"));
		return -1;
	}

	
	_Module.Init( ObjectMap, GetModuleHandle( NULL));

	if( FAILED(hr=doTest()))
	{
		_com_error err( hr);
		const TCHAR * errMsg= err.ErrorMessage();
		MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
	}


	_Module.Term();
	CoUninitialize();

	
	return 0;
}


HRESULT doTest()
{
	HRESULT hr= S_OK;
=====================================================================
Found a 7 line (131 tokens) duplication in the following files: 
Starting at line 1041 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatehdl.cxx
Starting at line 1135 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatehdl.cxx

        setProperty( aProps, 0, UNISTRING("Text"), uno::Any( rtl::OUString() ) );
        setProperty( aProps, 1, UNISTRING("Border"), uno::Any( sal_Int16( 0 ) ) );
        setProperty( aProps, 2, UNISTRING("PaintTransparent"), uno::Any( true ) );
        setProperty( aProps, 3, UNISTRING("MultiLine"), uno::Any( true ) );
        setProperty( aProps, 4, UNISTRING("ReadOnly"), uno::Any( true ) );
        setProperty( aProps, 5, UNISTRING("AutoVScroll"), uno::Any( true ) );
        setProperty( aProps, 6, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_DESCRIPTION ) ) );
=====================================================================
Found a 25 line (131 tokens) duplication in the following files: 
Starting at line 1097 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/registry/component/dp_component.cxx
Starting at line 1168 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/registry/component/dp_component.cxx

            }
        }
        
        if (! singletons.empty())
        {
            // singletons live removal:
            const Reference<container::XNameContainer> xRootContext(
                that->getComponentContext()->getValueByName(
                    OUSTR("_root") ), UNO_QUERY );
            if (xRootContext.is())
            {
                for ( t_stringpairvec::const_iterator iPos(
                          singletons.begin() );
                      iPos != singletons.end(); ++iPos )
                {
                    ::std::pair<OUString, OUString> const & sp = *iPos;
                    const OUString name( OUSTR("/singletons/") + sp.first );
                    // arguments:
                    try {
                        xRootContext->removeByName( name + OUSTR("/arguments"));
                    }
                    catch (container::NoSuchElementException &) {}
                    // used service:
                    try {
                        xRootContext->removeByName( name + OUSTR("/service") );
=====================================================================
Found a 11 line (131 tokens) duplication in the following files: 
Starting at line 228 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx

test::TestData Test_Impl::setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
									  sal_Int16& nShort, sal_uInt16& nUShort,
									  sal_Int32& nLong, sal_uInt32& nULong,
									  sal_Int64& nHyper, sal_uInt64& nUHyper,
									  float& fFloat, double& fDouble,
									  test::TestEnum& eEnum, rtl::OUString& rStr,
									  ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
									  ::com::sun::star::uno::Any& rAny,
									  ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
									  test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 13 line (131 tokens) duplication in the following files: 
Starting at line 2175 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx
Starting at line 2192 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx

            OSQLParseNode* pLeft = pSearchCondition->getChild(0)->removeAt((sal_uInt32)0);
            OSQLParseNode* pRight = pSearchCondition->getChild(2)->removeAt(2);
            OSQLParseNode* pNode = MakeORNode(pLeft,pRight);

            OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
            pNewRule->append(pNode);
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));

            OSQLParseNode::eraseBraces(pLeft);
            OSQLParseNode::eraseBraces(pRight);

            pNode = MakeANDNode(pSearchCondition->getChild(0)->removeAt(1),pNewRule);
=====================================================================
Found a 15 line (131 tokens) duplication in the following files: 
Starting at line 1658 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 1783 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

	OLEVariant varCriteria[5];

	// Create SafeArray Bounds and initialize the array
	rgsabound[0].lLbound   = 0;
	rgsabound[0].cElements = sizeof varCriteria / sizeof varCriteria[0];
	psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

	sal_Int32 nPos=0;
	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schema.getLength() && schema.toChar() != '%')
		varCriteria[nPos].setString(schema);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA
=====================================================================
Found a 28 line (131 tokens) duplication in the following files: 
Starting at line 690 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 707 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

				if (0 <= n && n < aNames.getLength())
					aName = aNames[n];
			}
			
			if (aName.getLength())
			{ 
				bool bNest = aInput.indexOf(sal_Unicode('/')) >= 0;
				
				Any aElement = bNest ?
					( xDeepAccess.is() ?
					  xDeepAccess->getByHierarchicalName(aName) : Any()
					  ) :
					( xAccess.is() ? 
					  xAccess->getByName(aName) : Any()
					  );
				
				while (aElement.getValueTypeClass() == TypeClass_ANY)
				{
					Any aWrap(aElement);
					aWrap >>= aElement;
				}
				sal_Bool bValue = true;
				sal_Bool bValueOk = false;
				
				switch (aElement.getValueTypeClass() )
				{
				case TypeClass_INTERFACE:
					bValue = false;
=====================================================================
Found a 22 line (131 tokens) duplication in the following files: 
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/CommonConverters.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx

    const sal_Int32 nPointCount = bRoundEdges ? 13 : 5;

    //--------------------------------------
    drawing::PolyPolygonShape3D aPP;

	aPP.SequenceX.realloc(1);
	aPP.SequenceY.realloc(1);
	aPP.SequenceZ.realloc(1);

	drawing::DoubleSequence* pOuterSequenceX = aPP.SequenceX.getArray();
	drawing::DoubleSequence* pOuterSequenceY = aPP.SequenceY.getArray();
	drawing::DoubleSequence* pOuterSequenceZ = aPP.SequenceZ.getArray();

    pOuterSequenceX->realloc(nPointCount);
    pOuterSequenceY->realloc(nPointCount);
	pOuterSequenceZ->realloc(nPointCount);

    double* pInnerSequenceX = pOuterSequenceX->getArray();
	double* pInnerSequenceY = pOuterSequenceY->getArray();
	double* pInnerSequenceZ = pOuterSequenceZ->getArray();

    for(sal_Int32 nN = nPointCount; nN--;)
=====================================================================
Found a 36 line (131 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/GridWrapper.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx

    RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.chart.ChartLine" ));

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        
        ::chart::LineProperties::AddPropertiesToVector( aProperties );
//         ::chart::NamedLineProperties::AddPropertiesToVector( aProperties );
        ::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

} // anonymous namespace

// --------------------------------------------------------------------------------

namespace chart
{
namespace wrapper
{
=====================================================================
Found a 26 line (131 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 20 line (131 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
=====================================================================
Found a 26 line (131 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 20 line (131 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx

	INSERT_INT64( &pAdjustedThisPtr, nGPR, pGPR, pStack );

	// Args
	void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
	// Indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// Type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = alloca( 8 ), pUnoArgs[nPos], pParamTypeDescr,
=====================================================================
Found a 26 line (131 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 20 line (131 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx

	INSERT_INT64( &pAdjustedThisPtr, nGPR, pGPR, pStack );

	// Args
	void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
	// Indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// Type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = alloca( 8 ), pUnoArgs[nPos], pParamTypeDescr,
=====================================================================
Found a 27 line (131 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxchar.cxx

				nRes = (xub_Unicode) ImpRound( p->nSingle );
			break;
		case SbxDATE:
		case SbxDOUBLE:
		case SbxLONG64:
		case SbxULONG64:
		case SbxCURRENCY:
		case SbxDECIMAL:
		case SbxBYREF | SbxDECIMAL:
			{
			double dVal;
			if( p->eType ==	SbxCURRENCY )
				dVal = ImpCurrencyToDouble( p->nLong64 );
			else if( p->eType == SbxLONG64 )
				dVal = ImpINT64ToDouble( p->nLong64 );
			else if( p->eType == SbxULONG64 )
				dVal = ImpUINT64ToDouble( p->nULong64 );
			else if( p->eType == SbxDECIMAL )
			{
				dVal = 0.0;
				if( p->pDecimal )
					p->pDecimal->getDouble( dVal );
			}
			else
				dVal = p->nDouble;

			if( dVal > SbxMAXCHAR )
=====================================================================
Found a 24 line (131 tokens) duplication in the following files: 
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/app.cxx
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/workben/testmoz/main.cxx

                Reference< XSimpleRegistry > xReg(
                    interimSmgr->createInstance(
                        OUString::createFromAscii(
                            "com.sun.star.registry.SimpleRegistry" ) ), UNO_QUERY );
                if ( xReg.is() )
                {
                    xReg->open(services, sal_False, sal_True);
                    if ( xReg->isValid() )
                    {
                        OUString loader( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.loader.SharedLibrary" ));
                        for( sal_Int32 i = 0; components[i] ; i ++ )
                        {
                            printf("Registering %s ... ", components[i]);
                            xIR->registerImplementation(
                                loader, OUString::createFromAscii(components[i]),xReg);
                            printf("done\n");
                        }
                        xReg->close();
                    } else
                    {
                        printf("Cannot open Registry. Terminating Program\n");
                        exit (1);
                    }
                }
=====================================================================
Found a 19 line (131 tokens) duplication in the following files: 
Starting at line 1733 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx
Starting at line 1985 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx

            c2.p3.x += bezierClip_xOffset;

            cout << " bez(" 
                 << c1.p0.x << "," 
                 << c1.p1.x << ","
                 << c1.p2.x << ","
                 << c1.p3.x << ",t),bez("
                 << c1.p0.y << "," 
                 << c1.p1.y << ","
                 << c1.p2.y << ","
                 << c1.p3.y << ",t), bez("
                 << c2.p0.x << "," 
                 << c2.p1.x << ","
                 << c2.p2.x << ","
                 << c2.p3.x << ",t),bez("
                 << c2.p0.y << "," 
                 << c2.p1.y << ","
                 << c2.p2.y << ","
                 << c2.p3.y << ",t), '-' using (bez(" 
=====================================================================
Found a 21 line (130 tokens) duplication in the following files: 
Starting at line 352 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 352 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                            fg[order_type::A] += back_a * weight;
                            x_hr              += rx_inv;
                        }
                        while(x_hr < filter_size);
                    }
                    y_hr += ry_inv;
                    ++y_lr;
                }
                while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
=====================================================================
Found a 24 line (130 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartOASISTContext.cxx
Starting at line 879 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/StyleOASISTContext.cxx

	m_bControlStyle = sal_False;

	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName,
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
			if( !pMutableAttrList )
			{
				pMutableAttrList =
						new XMLMutableAttributeList( xAttrList );
				xAttrList = pMutableAttrList;
			}
			const OUString& rAttrValue = xAttrList->getValueByIndex( i );
			switch( (*aIter).second.m_nActionType )
			{
			case XML_ATACTION_STYLE_FAMILY:
=====================================================================
Found a 7 line (130 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawarc_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawline_curs.h

static char drawline_curs_bits[] = {
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x03,
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asns_mask.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h

 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,
 0x00,0x00,0xf0,0x07,0x00,0x00,0xf0,0x07,0x00,0x00,0xe0,0x03,0x00,0x00,0xc0,
 0x01,0x00,0x00,0x10,0x04,0x00,0x00,0xf8,0x0f,0x00,0x00,0xf8,0x0f,0x00,0x00,
 0xf0,0x07,0x00,0x00,0xf0,0x07,0x00,0x00,0xe0,0x03,0x00,0x00,0xc0,0x01,0x00,
 0x00,0xc0,0x01,0x00,0x00,0x80,0x00,0x00};
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asne_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_mask.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,
=====================================================================
Found a 51 line (130 tokens) duplication in the following files: 
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/test/dndtest.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svpclient.cxx

    return 0;
}

// -----------------------------------------------------------------------

void MyWin::MouseMove( const MouseEvent& rMEvt )
{
	WorkWindow::MouseMove( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
{
	WorkWindow::MouseButtonDown( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::MouseButtonUp( const MouseEvent& rMEvt )
{
	WorkWindow::MouseButtonUp( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::KeyInput( const KeyEvent& rKEvt )
{
	WorkWindow::KeyInput( rKEvt );
}

// -----------------------------------------------------------------------

void MyWin::KeyUp( const KeyEvent& rKEvt )
{
	WorkWindow::KeyUp( rKEvt );
}

// -----------------------------------------------------------------------

void MyWin::Paint( const Rectangle& rRect )
{
	WorkWindow::Paint( rRect );
}

// -----------------------------------------------------------------------

void MyWin::Resize()
{
	WorkWindow::Resize();
}
=====================================================================
Found a 21 line (130 tokens) duplication in the following files: 
Starting at line 717 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx
Starting at line 848 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

        if ( mnDrawMode & ( DRAWMODE_BLACKGRADIENT | DRAWMODE_WHITEGRADIENT | DRAWMODE_SETTINGSGRADIENT) )
	    {
		    Color aColor;

		    if ( mnDrawMode & DRAWMODE_BLACKGRADIENT )
                aColor = Color( COL_BLACK );
		    else if ( mnDrawMode & DRAWMODE_WHITEGRADIENT )
                aColor = Color( COL_WHITE );
            else if ( mnDrawMode & DRAWMODE_SETTINGSGRADIENT )
                aColor = GetSettings().GetStyleSettings().GetWindowColor();

		    if ( mnDrawMode & DRAWMODE_GHOSTEDGRADIENT )
            {
                aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80, 
						        ( aColor.GetGreen() >> 1 ) | 0x80,
						        ( aColor.GetBlue() >> 1 ) | 0x80 );
            }

		    Push( PUSH_LINECOLOR | PUSH_FILLCOLOR );
		    SetLineColor( aColor );
		    SetFillColor( aColor );
=====================================================================
Found a 16 line (130 tokens) duplication in the following files: 
Starting at line 2131 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx
Starting at line 2152 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx

				MetaMaskScaleAction* pAct = (MetaMaskScaleAction*) pAction;

				ShortToSVBT16( pAct->GetType(), aBT16 );
				nCrc = rtl_crc32( nCrc, aBT16, 2 );

				UInt32ToSVBT32( pAct->GetBitmap().GetChecksum(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetColor().GetColor(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetPoint().X(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetPoint().Y(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );
=====================================================================
Found a 18 line (130 tokens) duplication in the following files: 
Starting at line 1998 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx
Starting at line 2076 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx

				UInt32ToSVBT32( pAct->GetBitmapEx().GetChecksum(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetPoint().X(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetPoint().Y(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSize().Width(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetSize().Height(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );
			}
			break;

			case( META_BMPEXSCALEPART_ACTION ):
=====================================================================
Found a 69 line (130 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
=====================================================================
Found a 29 line (130 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/helpmerge.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/helpmerge.cxx

	const std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile , bool bCreateDir )
{

    
    (void) rSDFFile ; 
    bool hasNoError = true;
    SimpleXMLParser aParser;
    String sUsedTempFile;
    String sXmlFile;

	if( Export::fileHasUTF8ByteOrderMarker( sHelpFile ) )
	{
        DirEntry aTempFile = Export::GetTempFile();
        DirEntry aSourceFile( String( sHelpFile , RTL_TEXTENCODING_ASCII_US ) );
        aSourceFile.CopyTo( aTempFile , FSYS_ACTION_COPYFILE );
        String sTempFile = aTempFile.GetFull();
        Export::RemoveUTF8ByteOrderMarkerFromFile( ByteString( sTempFile , RTL_TEXTENCODING_ASCII_US ) );
        sUsedTempFile = sTempFile;
        sXmlFile = sTempFile;
    }
	else
	{
        sUsedTempFile = String::CreateFromAscii("");
        sXmlFile = String( sHelpFile , RTL_TEXTENCODING_ASCII_US );
    }

	
	OUString sOUHelpFile( sXmlFile );
	XMLFile* xmlfile = ( aParser.Execute( sOUHelpFile ) );
=====================================================================
Found a 34 line (130 tokens) duplication in the following files: 
Starting at line 3709 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 3905 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

				}
		}
    }
    else
    {
        BYTE nBChar;
        if( nLen2 != nLen )
        {
            ASSERT( nLen2 == nLen, "Fib length and read length are different" );
            if (nLen > USHRT_MAX)
                nLen = USHRT_MAX;
            else if (nLen < 2 )
                nLen = 2;
            nLen2 = static_cast<UINT16>(nLen);
        }
        ULONG nRead = 0;
        for( nLen2 -= 2; nRead < nLen2;  )
        {
            rStrm >> nBChar; ++nRead;
            if (nBChar)
            {
                ByteString aTmp;
                nRead += SafeReadString(aTmp,nBChar,rStrm);
                rArray.push_back(String(aTmp, eCS));
            }
            else
                rArray.push_back(aEmptyStr);

            // #89125# Skip the extra data (for bVer67 versions this must come
            // from external knowledge)
            if (nExtraLen)
            {
                if (pExtraArray)
                {
=====================================================================
Found a 33 line (130 tokens) duplication in the following files: 
Starting at line 2985 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4727 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

                                    sal_Int16(aRgDesc.nTop + nRow));
                //! keep (additional) reference to object to prevent implicit destruction
                //! in following UNO calls (when object will get referenced)
                xCellRef = pXCell;
                SwTableBox * pBox = pXCell ? pXCell->GetTblBox() : 0;
                if(!pBox)
				{
					throw uno::RuntimeException();
				}
                else
                {
                    const uno::Any &rAny = pColArray[nCol];
                    if (uno::TypeClass_STRING == rAny.getValueTypeClass())
                        lcl_setString( *pXCell, *(rtl::OUString *) rAny.getValue() );
                    else
                    {
                        double d;
                        // #i20067# don't throw exception just do nothing if
                        // there is no value set
                        if( (rAny >>= d) )
                            lcl_setValue( *pXCell, d );
						else
							lcl_setString( *pXCell, OUString(), TRUE );
                    }
                }
			}
		}
	}
}
/*-- 11.12.98 14:27:36---------------------------------------------------

  -----------------------------------------------------------------------*/
uno::Sequence< uno::Sequence< double > > SwXCellRange::getData(void) throw( uno::RuntimeException )
=====================================================================
Found a 29 line (130 tokens) duplication in the following files: 
Starting at line 2136 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx
Starting at line 2244 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx

			bRet |= lcl_RejectRedline( *pRedlineTbl, nPos, bCallDelete );

			if( nSeqNo )
			{
				if( USHRT_MAX == nPos )
					nPos = 0;
				USHORT nFndPos = 2 == nLoopCnt
									? pRedlineTbl->FindNextSeqNo( nSeqNo, nPos )
									: pRedlineTbl->FindPrevSeqNo( nSeqNo, nPos );
				if( USHRT_MAX != nFndPos || ( 0 != ( --nLoopCnt ) &&
					USHRT_MAX != ( nFndPos =
							pRedlineTbl->FindPrevSeqNo( nSeqNo, nPos ))) )
					pTmp = (*pRedlineTbl)[ nPos = nFndPos ];
				else
					nLoopCnt = 0;
			}
			else
				nLoopCnt = 0;

		} while( nLoopCnt );

		if( bRet )
		{
			CompressRedlines();
			SetModified();
		}

		if( DoesUndo() )
			EndUndo( UNDO_REJECT_REDLINE, NULL );
=====================================================================
Found a 12 line (130 tokens) duplication in the following files: 
Starting at line 3851 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx
Starting at line 3876 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx

			::com::sun::star::awt::Gradient aGradient2;

			aGradient2.Style = (::com::sun::star::awt::GradientStyle) aXGradient.GetGradientStyle();
			aGradient2.StartColor = (INT32)aXGradient.GetStartColor().GetColor();
			aGradient2.EndColor = (INT32)aXGradient.GetEndColor().GetColor();
			aGradient2.Angle = (short)aXGradient.GetAngle();
			aGradient2.Border = aXGradient.GetBorder();
			aGradient2.XOffset = aXGradient.GetXOffset();
			aGradient2.YOffset = aXGradient.GetYOffset();
			aGradient2.StartIntensity = aXGradient.GetStartIntens();
			aGradient2.EndIntensity = aXGradient.GetEndIntens();
			aGradient2.StepCount = aXGradient.GetSteps();
=====================================================================
Found a 12 line (130 tokens) duplication in the following files: 
Starting at line 394 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unopool.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unogallery/unogalitem.cxx

		aAny <<= uno::Reference< gallery::XGalleryItem >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XPropertySet >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertyState >*)0) )
		aAny <<= uno::Reference< beans::XPropertyState >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XMultiPropertySet >(this);
	else
		aAny <<= OWeakAggObject::queryAggregation( rType );

	return aAny;
}
=====================================================================
Found a 10 line (130 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/items/customshapeitem.cxx
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/items/customshapeitem.cxx

	com::sun::star::uno::Any* pSeqAny = GetPropertyValueByName( rSequenceName );
	if ( pSeqAny )
	{
		if ( pSeqAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < beans::PropertyValue >*)0) )
		{
			PropertyPairHashMap::iterator aHashIter( aPropPairHashMap.find( PropertyPair( rSequenceName, rPropName ) ) );
			if ( aHashIter != aPropPairHashMap.end() )
			{
				::com::sun::star::uno::Sequence < beans::PropertyValue >& rSecSequence =
					*((::com::sun::star::uno::Sequence < beans::PropertyValue >*)pSeqAny->getValue());
=====================================================================
Found a 18 line (130 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crarray.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crarray.cxx

void ArrayIdlClassImpl::set( Any & rArray, sal_Int32 nIndex, const Any & rNewValue )
	throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
	TypeClass eTC = rArray.getValueTypeClass();
	if (eTC != TypeClass_SEQUENCE && eTC != TypeClass_ARRAY)
	{
		throw IllegalArgumentException(
			OUString( RTL_CONSTASCII_USTRINGPARAM("no sequence given!") ),
			(XWeak *)(OWeakObject *)this, 0 );
	}
	
	uno_Sequence * pSeq = *(uno_Sequence **)rArray.getValue();
	if (pSeq->nElements <= nIndex)
	{
		throw ArrayIndexOutOfBoundsException(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal index given!") ),
			(XWeak *)(OWeakObject *)this );
	}
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/ipclient.cxx
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/ole/ndole.cxx

    void Release();
    virtual void SAL_CALL changingState( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL stateChanged( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
};
=====================================================================
Found a 22 line (130 tokens) duplication in the following files: 
Starting at line 2137 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx
Starting at line 3033 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx

						if (!pEngine)
						{
							//	Ein RefDevice muss auf jeden Fall gesetzt werden,
							//	sonst legt sich die EditEngine ein VirtualDevice an!
							pEngine = new ScFieldEditEngine( pDoc->GetEnginePool() );
							pEngine->SetUpdateMode( FALSE );
							pEngine->SetRefDevice( pFmtDevice );	// always set
							ULONG nCtrl = pEngine->GetControlWord();
							if ( bShowSpellErrors )
								nCtrl |= EE_CNTRL_ONLINESPELLING;
							if ( eType == OUTTYPE_PRINTER )
								nCtrl &= ~EE_CNTRL_MARKFIELDS;
							pEngine->SetControlWord( nCtrl );
							pEngine->SetForbiddenCharsTable( pDoc->GetForbiddenCharacters() );
							pEngine->SetAsianCompressionMode( pDoc->GetAsianCompression() );
							pEngine->SetKernAsianPunctuation( pDoc->GetAsianKerning() );
							pEngine->EnableAutoColor( bUseStyleColor );
							pEngine->SetDefaultHorizontalTextDirection(
								(EEHorizontalTextDirection)pDoc->GetEditTextDirection( nTab ) );
						}
						else
							lcl_ClearEdit( *pEngine );		// also calls SetUpdateMode(FALSE)
=====================================================================
Found a 20 line (130 tokens) duplication in the following files: 
Starting at line 738 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuins2.cxx
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/chartins.cxx

                aParam2.Name = C2U("ChartModel");
                aParam2.Value <<= uno::makeAny(xChartModel);
                pArray[0] <<= uno::makeAny(aParam1);
                pArray[1] <<= uno::makeAny(aParam2);
                xInit->initialize( aSeq );

                // try to set the dialog's position so it doesn't hide the chart
                uno::Reference < beans::XPropertySet > xDialogProps( xDialog, uno::UNO_QUERY );
                if ( xDialogProps.is() )
                {
                    try
                    {
                        //get dialog size:
                        awt::Size aDialogAWTSize;
                        if( xDialogProps->getPropertyValue( ::rtl::OUString::createFromAscii("Size") )
                            >>= aDialogAWTSize )
                        {
                            Size aDialogSize( aDialogAWTSize.Width, aDialogAWTSize.Height );
                            if ( aDialogSize.Width() > 0 && aDialogSize.Height() > 0 )
                            {
=====================================================================
Found a 21 line (130 tokens) duplication in the following files: 
Starting at line 2820 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx
Starting at line 3301 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx

	ScDocShellModificator aModificator( rDocShell );

	ScDocument* pDoc = rDocShell.GetDocument();
	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	SCTAB nStartTab = rRange.aStart.Tab();
	SCCOL nEndCol = rRange.aEnd.Col();
	SCROW nEndRow = rRange.aEnd.Row();
	SCTAB nEndTab = rRange.aEnd.Tab();

	if (bRecord && !pDoc->IsUndoEnabled())
		bRecord = FALSE;

	ScMarkData aMark;
	if (pTabMark)
		aMark = *pTabMark;
	else
	{
		for (SCTAB nTab=nStartTab; nTab<=nEndTab; nTab++)
			aMark.SelectTable( nTab, TRUE );
	}
=====================================================================
Found a 33 line (130 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/xmlaccelcfg.cxx

	::std::vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}


AttributeListImpl::AttributeListImpl()
{
	m_pImpl = new AttributeListImpl_impl;
}



AttributeListImpl::~AttributeListImpl()
{
	delete m_pImpl;
}


void AttributeListImpl::addAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}

void AttributeListImpl::clear()
{
=====================================================================
Found a 9 line (130 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 9 line (130 tokens) duplication in the following files: 
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1236 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                0x0451,0x2116,0x04D9,0x00BB,0x0458,0x04AA,0x04AB,0x049D,
                0x0410,0x0411,0x0412,0x0413,0x0414,0x0415,0x0416,0x0417,
                0x0418,0x0419,0x041A,0x041B,0x041C,0x041D,0x041E,0x041F,
                0x0420,0x0421,0x0422,0x0423,0x0424,0x0425,0x0426,0x0427,
                0x0428,0x0429,0x042A,0x042B,0x042C,0x042D,0x042E,0x042F,
                0x0430,0x0431,0x0432,0x0433,0x0434,0x0435,0x0436,0x0437,
                0x0438,0x0439,0x043A,0x043B,0x043C,0x043D,0x043E,0x043F,
                0x0440,0x0441,0x0442,0x0443,0x0444,0x0445,0x0446,0x0447,
                0x0448,0x0449,0x044A,0x044B,0x044C,0x044D,0x044E,0x044F } } };
=====================================================================
Found a 38 line (130 tokens) duplication in the following files: 
Starting at line 595 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx
Starting at line 660 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx

											  sal_Char*** pValueList, 
											  sal_uInt32* pLen)
{
	ORegKey* 	pKey;

	if (hKey)
	{
		pKey = (ORegKey*)hKey;

		if (pKey->isDeleted())
		{
			pValueList = NULL;
			*pLen = 0;
			return REG_INVALID_KEY;
		}
	} else
	{
		pValueList = NULL;
		*pLen = 0;
		return REG_INVALID_KEY;
	}

	OUString valueName( RTL_CONSTASCII_USTRINGPARAM("value") );
	if (keyName->length)
	{
		RegKeyHandle hSubKey;
		ORegKey* pSubKey;
		RegError _ret1 = pKey->openKey(keyName, &hSubKey);
		if (_ret1)
		{
			pValueList = NULL;
			*pLen = 0;
			return _ret1;
		}

		pSubKey = (ORegKey*)hSubKey;

        _ret1 = pSubKey->getStringListValue(valueName, pValueList, pLen);
=====================================================================
Found a 7 line (130 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/afm_hash.cpp
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/afm_hash.cpp

      13,  4, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
      58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
=====================================================================
Found a 69 line (130 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
=====================================================================
Found a 15 line (130 tokens) duplication in the following files: 
Starting at line 1724 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 2168 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

            }

            // check non_compound flag in suffix and prefix
            if ((rv) && 
                ((pfx && ((PfxEntry*)pfx)->getCont() &&
                    TESTAFF(((PfxEntry*)pfx)->getCont(), compoundforbidflag, 
                        ((PfxEntry*)pfx)->getContLen())) ||
                (sfx && ((SfxEntry*)sfx)->getCont() &&
                    TESTAFF(((SfxEntry*)sfx)->getCont(), compoundforbidflag, 
                        ((SfxEntry*)sfx)->getContLen())))) {
                    rv = NULL;
            }

	    // check forbiddenwords
	    if ((rv) && (rv->astr) && (TESTAFF(rv->astr,forbiddenword,rv->alen))
=====================================================================
Found a 69 line (130 tokens) duplication in the following files: 
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 1428 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
=====================================================================
Found a 69 line (130 tokens) duplication in the following files: 
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_mask.h

 0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_mask.h

 0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 69 line (130 tokens) duplication in the following files: 
Starting at line 662 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
=====================================================================
Found a 5 line (130 tokens) duplication in the following files: 
Starting at line 650 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

    = {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* None */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* !"#$%&'()*+,-./*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*0123456789:;<=>?*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
=====================================================================
Found a 69 line (130 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
=====================================================================
Found a 9 line (130 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 3000 - 37ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 3800 - 3fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 4000 - 47ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 4800 - 4fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 5000 - 57ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 5800 - 5fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 6000 - 67ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 6800 - 6fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7000 - 77ff
=====================================================================
Found a 69 line (130 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
=====================================================================
Found a 34 line (130 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/attributes.cxx
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx

	vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

	for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
		if( (*ii).sName == sName ) {
			return (*ii).sValue;
		}
	}
	return OUString();
}



AttributeListImpl::AttributeListImpl()
{
	m_pImpl = new AttributeListImpl_impl;
}



AttributeListImpl::~AttributeListImpl()
{
	delete m_pImpl;
}


void AttributeListImpl::addAttribute( 	const OUString &sName ,
										const OUString &sType ,
										const OUString &sValue )
{
	m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}

void AttributeListImpl::clear()
{
=====================================================================
Found a 17 line (130 tokens) duplication in the following files: 
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx
Starting at line 649 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

		for ( sal_Int16 i=0; i< xAttrList->getLength(); i++ )
		{
			OUString aName = xAttrList->getNameByIndex( i );
			OUString aValue = xAttrList->getValueByIndex( i );
			if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_ID )))
				aCommandId = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_LABEL )))
				aLabel = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_HELPID )))
				aHelpId = aValue;
		}

		if ( aCommandId.getLength() > 0 )
		{
            Sequence< PropertyValue > aSubMenuProp( 5 );
			initPropertyCommon( aSubMenuProp, aCommandId, aHelpId, aLabel );
			aSubMenuProp[2].Value <<= xSubItemContainer;
=====================================================================
Found a 35 line (130 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/attributelist.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/attributes.cxx

    std::vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

    for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ )
    {
        if( (*ii).sName == sName )
        {
            return (*ii).sValue;
        }
    }
    return OUString();
}


AttributeListImpl::AttributeListImpl()
{
    m_pImpl = new AttributeListImpl_impl;
}


AttributeListImpl::~AttributeListImpl()
{
    delete m_pImpl;
}


void AttributeListImpl::addAttribute(   const OUString &sName ,
const OUString &sType ,
const OUString &sValue )
{
    m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}


void AttributeListImpl::clear()
{
=====================================================================
Found a 19 line (130 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/headermenucontroller.cxx

void HeaderMenuController::fillPopupMenu( const Reference< ::com::sun::star::frame::XModel >& rModel, Reference< css::awt::XPopupMenu >& rPopupMenu )
{
    VCLXPopupMenu*                                     pPopupMenu        = (VCLXPopupMenu *)VCLXMenu::GetImplementation( rPopupMenu );
    PopupMenu*                                         pVCLPopupMenu     = 0;
    
    vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
    
    resetPopupMenu( rPopupMenu );
    if ( pPopupMenu )
        pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();
        
    Reference< XStyleFamiliesSupplier > xStyleFamiliesSupplier( rModel, UNO_QUERY );
    if ( pVCLPopupMenu && xStyleFamiliesSupplier.is())
    {
        Reference< XNameAccess > xStyleFamilies = xStyleFamiliesSupplier->getStyleFamilies();
        
        try
        {
            const rtl::OUString aCmd( RTL_CONSTASCII_USTRINGPARAM( ".uno:InsertPageHeader" ));
=====================================================================
Found a 17 line (130 tokens) duplication in the following files: 
Starting at line 1117 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 905 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uiconfigurationmanager.cxx

Reference< XIndexAccess > SAL_CALL UIConfigurationManager::getSettings( const ::rtl::OUString& ResourceURL, sal_Bool bWriteable )
throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
    sal_Int16 nElementType = RetrieveTypeFromResourceURL( ResourceURL );
    
    if (( nElementType == ::com::sun::star::ui::UIElementType::UNKNOWN ) || 
        ( nElementType >= ::com::sun::star::ui::UIElementType::COUNT   ))
        throw IllegalArgumentException();
    else
    {
        ResetableGuard aGuard( m_aLock );
        
        if ( m_bDisposed )
            throw DisposedException();
        
        UIElementData* pDataSettings = impl_findUIElementData( ResourceURL, nElementType );
        if ( pDataSettings && !pDataSettings->bDefault )
=====================================================================
Found a 17 line (130 tokens) duplication in the following files: 
Starting at line 1899 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/desktop.cxx
Starting at line 1962 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/desktop.cxx

    TransactionGuard aTransaction( m_aTransactionManager, E_HARDEXCEPTIONS );

    ::cppu::OInterfaceContainerHelper* pContainer = m_aListenerContainer.getContainer( ::getCppuType( ( const css::uno::Reference< css::frame::XTerminateListener >*) NULL ) );
	if ( ! pContainer )
        return;
    
    css::lang::EventObject aEvent( static_cast< ::cppu::OWeakObject* >(this) );
    
    ::cppu::OInterfaceIteratorHelper aIterator( *pContainer );
    while ( aIterator.hasMoreElements() )
    {
        try
        {
            css::uno::Reference< css::frame::XTerminateListener > xListener(aIterator.next(), css::uno::UNO_QUERY);
            if ( ! xListener.is() )
                continue;
            xListener->notifyTermination( aEvent );
=====================================================================
Found a 35 line (130 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/attributelist.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/attributes.cxx

    std::vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();

    for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ )
    {
        if( (*ii).sName == sName )
        {
            return (*ii).sValue;
        }
    }
    return OUString();
}


AttributeListImpl::AttributeListImpl()
{
    m_pImpl = new AttributeListImpl_impl;
}


AttributeListImpl::~AttributeListImpl()
{
    delete m_pImpl;
}


void AttributeListImpl::addAttribute(   const OUString &sName ,
const OUString &sType ,
const OUString &sValue )
{
    m_pImpl->vecAttribute.push_back( TagAttribute( sName , sType , sValue ) );
}


void AttributeListImpl::clear()
{
=====================================================================
Found a 16 line (130 tokens) duplication in the following files: 
Starting at line 438 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/uicmdstohtml.cxx

    const char* ShortName;
};

Projects ProjectModule_Mapping[] =
{
    { "sfx2"        , "sfx",    "sfx2",     true,   MODULE_GLOBAL         },
    { "svx"         , "svx",    "svx",      true,   MODULE_GLOBAL         },
    { "svx"         , "ofa",    "ofa",      true,   MODULE_GLOBAL         },
    { "sw"          , "sw",     "sw",       true,   MODULE_WRITER         },
    { "sd"          , "sd",     "sd",       true,   MODULE_DRAWIMPRESS    },
    { "sc"          , "sc",     "sc",       true,   MODULE_CALC           },
    { "sch"         , "sch",    "sch",      true,   MODULE_CHART          },
    { "starmath"    , "sm",     "starmath", true,   MODULE_MATH           },
    { "basctl"      , "basctl", "bastctl",  true,   MODULE_BASIC          },
    { "extensions"  , "bib",    "",         false,  MODULE_BIBLIO         },
    { "framework"   , "fwk",    "",         false,  MODULE_BACKINGCOMP    },
=====================================================================
Found a 33 line (130 tokens) duplication in the following files: 
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/office/OfficeFilePicker.cxx
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFilePicker.cxx

}

//------------------------------------------------------------------------------------
namespace {
	//................................................................................
	struct FilterTitleMatch : public ::std::unary_function< FilterEntry, bool >
	{
	protected:
		const ::rtl::OUString& rTitle;

	public:
		FilterTitleMatch( const ::rtl::OUString& _rTitle ) : rTitle( _rTitle ) { }

		//............................................................................
		bool operator () ( const FilterEntry& _rEntry )
		{
			sal_Bool bMatch;
			if( !_rEntry.hasSubFilters() )
				// a real filter
				bMatch = ( _rEntry.getTitle() == rTitle );
			else
				// a filter group -> search the sub filters
				bMatch =
					_rEntry.endSubFilters() != ::std::find_if(
						_rEntry.beginSubFilters(),
						_rEntry.endSubFilters(),
						*this
					);

			return bMatch ? true : false;
		}
		bool operator () ( const UnoFilterEntry& _rEntry )
		{
=====================================================================
Found a 12 line (130 tokens) duplication in the following files: 
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/CheckBox.cxx
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Grid.cxx

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::view;
=====================================================================
Found a 6 line (130 tokens) duplication in the following files: 
Starting at line 1746 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/file_url.cxx

  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, /* 0123456789:;<=>? */
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* @ABCDEFGHIJKLMNO */
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /* PQRSTUVWXYZ[\]^_ */
  0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* `abcdefghijklmno */
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /* pqrstuvwxyz{|}~  */
};
=====================================================================
Found a 69 line (130 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
=====================================================================
Found a 25 line (130 tokens) duplication in the following files: 
Starting at line 1594 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1958 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

sal_Bool SAL_CALL OleEmbeddedObject::isReadonly()
		throw ( embed::WrongStateException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_nObjectState == -1 )
	{
		// the object is still not loaded
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object persistence is not initialized!\n" ),
										uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	return m_bReadOnly;
}

//------------------------------------------------------
void SAL_CALL OleEmbeddedObject::reload(
=====================================================================
Found a 26 line (130 tokens) duplication in the following files: 
Starting at line 1482 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1809 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

::rtl::OUString SAL_CALL OleEmbeddedObject::getEntryName()
		throw ( embed::WrongStateException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_nObjectState == -1 )
	{
		// the object is still not loaded
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object persistence is not initialized!\n" ),
										uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	return m_aEntryName;
}


//------------------------------------------------------
void SAL_CALL OleEmbeddedObject::storeOwn()
=====================================================================
Found a 27 line (130 tokens) duplication in the following files: 
Starting at line 1087 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/xml/xmlExport.cxx
Starting at line 1585 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlExport.cxx

::rtl::OUString ORptExport::implConvertAny(const Any& _rValue)
{
	::rtl::OUStringBuffer aBuffer;
	switch (_rValue.getValueTypeClass())
	{
		case TypeClass_STRING:
		{	// extract the string
			::rtl::OUString sCurrentValue;
			_rValue >>= sCurrentValue;
			aBuffer.append(sCurrentValue);
		}
		break;
		case TypeClass_DOUBLE:
			// let the unit converter format is as string
			GetMM100UnitConverter().convertDouble(aBuffer, getDouble(_rValue));
			break;
		case TypeClass_BOOLEAN:
			aBuffer = getBOOL(_rValue) ? ::xmloff::token::GetXMLToken(XML_TRUE) : ::xmloff::token::GetXMLToken(XML_FALSE);
			break;
		case TypeClass_BYTE:
		case TypeClass_SHORT:
		case TypeClass_LONG:
			// let the unit converter format is as string
			GetMM100UnitConverter().convertNumber(aBuffer, getINT32(_rValue));
			break;
		default:
			OSL_ENSURE(0,"ORptExport::implConvertAny: Invalid type");
=====================================================================
Found a 29 line (130 tokens) duplication in the following files: 
Starting at line 1663 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx
Starting at line 1706 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx

                                          const ::basegfx::B2DHomMatrix&						rTextTransform ) :
                mxTextPoly( rTextPoly ),
                maPolygonGlyphMap( rPolygonGlyphMap ),
                maOffsets( rOffsets ),
                mpCanvas( rCanvas ),
                maState(),
                mnOutlineWidth( calcOutlineWidth(rState,rVDev) ),
                maFillColor( 
                    ::vcl::unotools::colorToDoubleSequence( rCanvas->getUNOCanvas()->getDevice(),
                                                            ::Color( COL_WHITE ) ) ),
                maTextLineInfo( tools::createTextLineInfo( rVDev, rState ) ),
                maLinesOverallSize(),
                maOutlineBounds( rOutlineBounds ),
                mxTextLines(),
                maReliefOffset( rReliefOffset ),
                maReliefColor( rReliefColor ),
                maShadowOffset( rShadowOffset ),
                maShadowColor( rShadowColor )
            {
                initEffectLinePolyPolygon( maLinesOverallSize,
                                           mxTextLines,
                                           rCanvas,
                                           rOffsets,
                                           maTextLineInfo );

                init( maState,
                      rStartPoint, 
                      rState,
                      rCanvas,
=====================================================================
Found a 18 line (130 tokens) duplication in the following files: 
Starting at line 1010 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
Starting at line 1258 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx

								  const ::rtl::OUString& table)	throw(SQLException, RuntimeException)
{
	const ::rtl::OUString *pSchemaPat = NULL;

	if(schema.toChar() != '%')
		pSchemaPat = &schema;
	else
		pSchemaPat = NULL;

	m_bFreeHandle = sal_True;
	::rtl::OString aPKQ,aPKO,aPKN,aCOL;

	aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding);
	aPKO = ::rtl::OUStringToOString(schema,m_nTextEncoding);

	const char	*pPKQ = catalog.hasValue() && aPKQ.getLength() ? aPKQ.getStr()	: NULL,
				*pPKO = pSchemaPat && pSchemaPat->getLength() ? aPKO.getStr() : NULL,
				*pPKN = (aPKN = ::rtl::OUStringToOString(table,m_nTextEncoding)).getStr();
=====================================================================
Found a 24 line (130 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BKeys.cxx
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BTables.cxx

							aSql += aQuote + getString(xColProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))) + aQuote
										+ ::rtl::OUString::createFromAscii(",");
					}

					aSql = aSql.replaceAt(aSql.getLength()-1,1,::rtl::OUString::createFromAscii(")"));

					switch(nDeleteRule)
					{
                        case KeyRule::CASCADE:
							aSql += ::rtl::OUString::createFromAscii(" ON DELETE CASCADE ");
							break;
                        case KeyRule::RESTRICT:
							aSql += ::rtl::OUString::createFromAscii(" ON DELETE RESTRICT ");
							break;
                        case KeyRule::SET_NULL:
							aSql += ::rtl::OUString::createFromAscii(" ON DELETE SET NULL ");
							break;
                        case KeyRule::SET_DEFAULT:
							aSql += ::rtl::OUString::createFromAscii(" ON DELETE SET DEFAULT ");
							break;
						default:
							;
					}
				}
=====================================================================
Found a 19 line (130 tokens) duplication in the following files: 
Starting at line 581 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/CommonConverters.cxx
Starting at line 1342 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/ShapeFactory.cxx

    drawing::PolyPolygonShape3D aPP;

	aPP.SequenceX.realloc(1);
	aPP.SequenceY.realloc(1);
	aPP.SequenceZ.realloc(1);

	drawing::DoubleSequence* pOuterSequenceX = aPP.SequenceX.getArray();
	drawing::DoubleSequence* pOuterSequenceY = aPP.SequenceY.getArray();
	drawing::DoubleSequence* pOuterSequenceZ = aPP.SequenceZ.getArray();

    pOuterSequenceX->realloc(nPointCount);
    pOuterSequenceY->realloc(nPointCount);
	pOuterSequenceZ->realloc(nPointCount);

    double* pInnerSequenceX = pOuterSequenceX->getArray();
	double* pInnerSequenceY = pOuterSequenceY->getArray();
	double* pInnerSequenceZ = pOuterSequenceZ->getArray();

    for(sal_Int32 nN = nPointCount; nN--;)
=====================================================================
Found a 21 line (130 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx
Starting at line 489 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx

                        {
                            // differentiate mask and alpha channel (on-off
                            // vs. multi-level transparency)
                            if( rBitmap.IsTransparent() )
                            {
                                // Handling alpha and mask just the same...
                                for( int x=0; x<aDestBmpSize.Width(); ++x )
                                {
                                    ::basegfx::B2DPoint aPoint(x,y);
                                    aPoint *= aTransform;

                                    const int nSrcX( ::basegfx::fround( aPoint.getX() ) );
                                    const int nSrcY( ::basegfx::fround( aPoint.getY() ) );
                                    if( nSrcX < 0 || nSrcX >= aBmpSize.Width() ||
                                        nSrcY < 0 || nSrcY >= aBmpSize.Height() )
                                    {
                                        pAlphaWriteAccess->SetPixel( y, x, BitmapColor(255) );
                                    }
                                    else
                                    {
                                        pAlphaWriteAccess->SetPixel( y, x, 
=====================================================================
Found a 14 line (130 tokens) duplication in the following files: 
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper_texturefill.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper_texturefill.cxx

                    const double nT( (nStepCount-i-1)/double(nStepCount) );
            
                    for( p=0; p<nNumPoints; ++p )
                    {
                        const ::basegfx::B2DPoint& rOuterPoint( aOuterPoly.getB2DPoint(p) );
                        const ::basegfx::B2DPoint& rInnerPoint( aInnerPoly.getB2DPoint(p) );

                        aTempPoly[(USHORT)p] = ::Point( 
                            basegfx::fround( (1.0-nT)*rInnerPoint.getX() + nT*rOuterPoint.getX() ),
                            basegfx::fround( (1.0-nT)*rInnerPoint.getY() + nT*rOuterPoint.getY() ) );
                    }

                    // close polygon explicitely
                    aTempPoly[(USHORT)p] = aTempPoly[0];
=====================================================================
Found a 22 line (130 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

        *pPT++ = 'I';

	// stack space
	// OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
			uno_copyAndConvertData( pCppArgs[nPos] = pCppStack, pUnoArgs[nPos], pParamTypeDescr,
=====================================================================
Found a 7 line (130 tokens) duplication in the following files: 
Starting at line 334 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd  // ... 127
	};

	const INT16 A_nHtmlDefStatus[C_nStatusSize] =
=====================================================================
Found a 8 line (130 tokens) duplication in the following files: 
Starting at line 312 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	};

	const INT16 A_nWordStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{faw,err,err,err,err,err,err,err,err,faw,faw,faw,faw,faw,err,err,
	 err,err,err,err,err,err,err,err,err,err,faw,err,err,err,err,err, // ... 31
	 faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd, // ... 63
=====================================================================
Found a 7 line (130 tokens) duplication in the following files: 
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx

	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd  // ... 127
	};

	const INT16 A_nAtTagDefStatus[C_nStatusSize] =
=====================================================================
Found a 39 line (129 tokens) duplication in the following files: 
Starting at line 991 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
Starting at line 873 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/javacompskeleton.cxx

    std::hash_set< OString, OStringHash > interfaces;
    std::hash_set< OString, OStringHash > services;
    AttributeInfo properties;
    AttributeInfo attributes;
    std::hash_set< OString, OStringHash > propinterfaces;
    bool serviceobject = false;
    bool supportxcomponent = false;

    std::vector< OString >::const_iterator iter = types.begin();
    while (iter != types.end()) {
        checkType(manager, *iter, interfaces, services, properties);
        iter++;
    }

    if (options.componenttype == 3) {
        // the Protocolhandler service is mandatory for an protocol handler add-on,
        // so it is defaulted. The XDispatchProvider provides Dispatch objects for
        // certain functions and the generated impl object implements XDispatch
        // directly for simplicity reasons.
        checkType(manager, "com.sun.star.frame.ProtocolHandler",
                  interfaces, services, properties);
        checkType(manager, "com.sun.star.frame.XDispatch",
                  interfaces, services, properties);
        
        
//         ProtocolCmdMap::const_iterator iter2 = options.protocolCmdMap.begin();
//         while (iter2 != options.protocolCmdMap.end()) {
//             fprintf(stdout, "prt=%s\n", (*iter2).first.getStr());
            
//             for (std::vector< OString >::const_iterator i = (*iter2).second.begin();
//                  i != (*iter2).second.end(); ++i) {
//                 fprintf(stdout, "cmd=%s\n", (*i).getStr());
//             }
//             iter2++;
//         }
//         return;
    }
    
    if (options.componenttype == 2) {
=====================================================================
Found a 15 line (129 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/decrypter.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/encrypter.cxx

using namespace ::rtl ;
using namespace ::cppu ;
using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::io ;
using namespace ::com::sun::star::ucb ;
using namespace ::com::sun::star::beans ;
using namespace ::com::sun::star::document ;
using namespace ::com::sun::star::lang ;
using namespace ::com::sun::star::registry ;
using namespace ::com::sun::star::xml::wrapper ;
using namespace ::com::sun::star::xml::crypto ;

int SAL_CALL main( int argc, char **argv )
{
	CERTCertDBHandle*	certHandle ;
=====================================================================
Found a 50 line (129 tokens) duplication in the following files: 
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svdem.cxx
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svpclient.cxx

}

// -----------------------------------------------------------------------

void MyWin::MouseMove( const MouseEvent& rMEvt )
{
	WorkWindow::MouseMove( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
{
	WorkWindow::MouseButtonDown( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::MouseButtonUp( const MouseEvent& rMEvt )
{
	WorkWindow::MouseButtonUp( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::KeyInput( const KeyEvent& rKEvt )
{
	WorkWindow::KeyInput( rKEvt );
}

// -----------------------------------------------------------------------

void MyWin::KeyUp( const KeyEvent& rKEvt )
{
	WorkWindow::KeyUp( rKEvt );
}

// -----------------------------------------------------------------------

void MyWin::Paint( const Rectangle& rRect )
{
	WorkWindow::Paint( rRect );
}

// -----------------------------------------------------------------------

void MyWin::Resize()
{
	WorkWindow::Resize();
}
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_mask.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,
=====================================================================
Found a 50 line (129 tokens) duplication in the following files: 
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/test/dndtest.cxx
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svdem.cxx

}

// -----------------------------------------------------------------------

void MyWin::MouseMove( const MouseEvent& rMEvt )
{
	WorkWindow::MouseMove( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
{
	WorkWindow::MouseButtonDown( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::MouseButtonUp( const MouseEvent& rMEvt )
{
	WorkWindow::MouseButtonUp( rMEvt );
}

// -----------------------------------------------------------------------

void MyWin::KeyInput( const KeyEvent& rKEvt )
{
	WorkWindow::KeyInput( rKEvt );
}

// -----------------------------------------------------------------------

void MyWin::KeyUp( const KeyEvent& rKEvt )
{
	WorkWindow::KeyUp( rKEvt );
}

// -----------------------------------------------------------------------

void MyWin::Paint( const Rectangle& rRect )
{
	WorkWindow::Paint( rRect );
}

// -----------------------------------------------------------------------

void MyWin::Resize()
{
	WorkWindow::Resize();
}
=====================================================================
Found a 32 line (129 tokens) duplication in the following files: 
Starting at line 661 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 595 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

		sal_Bool bDeletePhysical = sal_False;
		aCommand.Argument >>= bDeletePhysical;
        destroy( bDeletePhysical, Environment );

		// Remove own and all children's persistent data.
        if ( !removeData() )
        {
            uno::Any aProps
                = uno::makeAny(
                         beans::PropertyValue(
                             rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                               "Uri")),
                             -1,
                             uno::makeAny(m_xIdentifier->
                                              getContentIdentifier()),
                             beans::PropertyState_DIRECT_VALUE));
            ucbhelper::cancelCommandExecution(
                ucb::IOErrorCode_CANT_WRITE,
                uno::Sequence< uno::Any >(&aProps, 1),
                Environment,
                rtl::OUString::createFromAscii(
                    "Cannot remove persistent data!" ),
                this );
            // Unreachable
        }

		// Remove own and all children's Additional Core Properties.
		removeAdditionalPropertySet( sal_True );
	}
    else if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "transfer" ) ) )
    {
=====================================================================
Found a 39 line (129 tokens) duplication in the following files: 
Starting at line 4285 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindows.cxx
Starting at line 4591 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindows.cxx

					((LongCurrencyField*)GetWindow())->SetEmptyFieldValue();
				}
				else
				{
					double d = 0;
					if ( Value >>= d )
 						setValue( d );
				}
			}
			break;
			case BASEPROPERTY_VALUEMIN_DOUBLE:
			{
				double d = 0;
				if ( Value >>= d )
 					setMin( d );
			}
			break;
			case BASEPROPERTY_VALUEMAX_DOUBLE:
			{
				double d = 0;
				if ( Value >>= d )
 					setMax( d );
			}
			break;
			case BASEPROPERTY_VALUESTEP_DOUBLE:
			{
				double d = 0;
				if ( Value >>= d )
 					setSpinSize( d );
			}
			break;
			case BASEPROPERTY_DECIMALACCURACY:
			{
				sal_Int16 n = sal_Int16();
				if ( Value >>= n )
 					setDecimalDigits( n );
			}
			break;
			case BASEPROPERTY_CURRENCYSYMBOL:
=====================================================================
Found a 16 line (129 tokens) duplication in the following files: 
Starting at line 2054 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/index/cnttab.cxx
Starting at line 2573 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/utlui/content.cxx

			if(bRet)
			{
				SvLBoxTab* pTab;
				SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab );
				if( pItem && SV_ITEM_ID_LBOXSTRING == pItem->IsA())
				{
					aPos = GetEntryPosition( pEntry );

					aPos.X() = GetTabPos( pEntry, pTab );
					Size aSize( pItem->GetSize( this, pEntry ) );

					if((aPos.X() + aSize.Width()) > GetSizePixel().Width())
						aSize.Width() = GetSizePixel().Width() - aPos.X();

					aPos = OutputToScreenPixel(aPos);
					Rectangle aItemRect( aPos, aSize );
=====================================================================
Found a 36 line (129 tokens) duplication in the following files: 
Starting at line 2877 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par5.cxx
Starting at line 3002 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par5.cxx

                case 'p':
                    {
                        xub_StrLen n = aReadParam.GoToTokenParam();
                        if( STRING_NOTFOUND != n )  // if NO String just ignore the \p
                        {
                            String sDelimiter( aReadParam.GetResult() );
                            SwForm aForm( pBase->GetTOXForm() );

                            // Attention: if TOX_CONTENT brave
                            //            GetFormMax() returns MAXLEVEL + 1  !!
                            USHORT nEnd = aForm.GetFormMax()-1;

                            for(USHORT nLevel = 1;
                                   nLevel <= nEnd;
                                   ++nLevel)
                            {
                                // Levels count from 1
                                // Level 0 is reserved for CAPTION

                                // Delimiter statt Tabstop vor der Seitenzahl einsetzen,
                                // falls es eine Seitenzahl gibt:
                                FormTokenType ePrevType = TOKEN_END;
                                FormTokenType eType;

                                // -> #i21237#
                                SwFormTokens aPattern = aForm.GetPattern(nLevel);
                                SwFormTokens::iterator aIt = aPattern.begin();
                                do
                                {
                                    eType = ++aIt == aPattern.end() ? TOKEN_END : aIt->eTokenType;

                                    if (eType == TOKEN_PAGE_NUMS)
                                    {
                                        if (TOKEN_TAB_STOP == ePrevType)
                                        {
                                            aIt--;
=====================================================================
Found a 19 line (129 tokens) duplication in the following files: 
Starting at line 890 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx

        SfxStyleSheetBase* pBase = pBasePool->Find(sStyleName);
        if(pBase)
        {
            uno::Reference< style::XStyle >  xStyle = _FindStyle(sStyleName);
            if(!xStyle.is())
            {
                xStyle = eFamily == SFX_STYLE_FAMILY_PAGE ?
                    new SwXPageStyle(*pBasePool, pDocShell, eFamily, sStyleName) :
                        eFamily == SFX_STYLE_FAMILY_FRAME ?
                        new SwXFrameStyle(*pBasePool, pDocShell->GetDoc(), pBase->GetName()):
                            new SwXStyle(*pBasePool, eFamily, pDocShell->GetDoc(), sStyleName);
            }
            aRet.setValue(&xStyle, ::getCppuType((uno::Reference<style::XStyle>*)0));
        }
        else
            throw container::NoSuchElementException();
    }
    else
        throw uno::RuntimeException();
=====================================================================
Found a 14 line (129 tokens) duplication in the following files: 
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/swg/SwXMLTextBlocks1.cxx
Starting at line 605 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/swg/SwXMLTextBlocks1.cxx

        uno::Reference < io::XStream > xDocStream = xBlkRoot->openStreamElement( sDocName,
                    embed::ElementModes::WRITE | embed::ElementModes::TRUNCATE );

        uno::Reference < beans::XPropertySet > xSet( xDocStream, uno::UNO_QUERY );
        String aPropName( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM("MediaType") ) );
        OUString aMime ( RTL_CONSTASCII_USTRINGPARAM ( "text/xml") );
        Any aAny;
        aAny <<= aMime;
        xSet->setPropertyValue( aPropName, aAny );
        uno::Reference < io::XOutputStream > xOut = xDocStream->getOutputStream();
        uno::Reference<io::XActiveDataSource> xSrc(xWriter, uno::UNO_QUERY);
        xSrc->setOutputStream(xOut);

    	uno::Reference<xml::sax::XDocumentHandler> xHandler(xWriter, uno::UNO_QUERY);
=====================================================================
Found a 21 line (129 tokens) duplication in the following files: 
Starting at line 477 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/extrusioncontrols.cxx
Starting at line 504 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/extrusioncontrols.cxx

                    pParentWindow,
                    SVX_RES( RID_SVXFLOAT_EXTRUSION_DEPTH )),
	maImgDepth0( SVX_RES( IMG_DEPTH_0 ) ),
	maImgDepth1( SVX_RES( IMG_DEPTH_1 ) ),
	maImgDepth2( SVX_RES( IMG_DEPTH_2 ) ),
	maImgDepth3( SVX_RES( IMG_DEPTH_3 ) ),
	maImgDepth4( SVX_RES( IMG_DEPTH_4 ) ),
	maImgDepthInfinity( SVX_RES( IMG_DEPTH_INFINITY ) ),
	maImgDepth0h( SVX_RES( IMG_DEPTH_0_H ) ),
	maImgDepth1h( SVX_RES( IMG_DEPTH_1_H ) ),
	maImgDepth2h( SVX_RES( IMG_DEPTH_2_H ) ),
	maImgDepth3h( SVX_RES( IMG_DEPTH_3_H ) ),
	maImgDepth4h( SVX_RES( IMG_DEPTH_4_H ) ),
	maImgDepthInfinityh( SVX_RES( IMG_DEPTH_INFINITY_H ) ),
	mxFrame( rFrame ),
	mbPopupMode		( true ),
	mfDepth( -1.0 ),
	mbEnabled( false )
{
    implInit();
}
=====================================================================
Found a 24 line (129 tokens) duplication in the following files: 
Starting at line 1796 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4861 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		nTemp = nTemp << 1;
    if (fBackStyle)
        nTemp |= 0x08;
	*rContents << nTemp;
	pBlockFlags[0] |= 0x01;
	*rContents << sal_uInt8(0x00);
    nTemp = 0;
    aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("MultiLine"));
    fWordWrap = any2bool(aTmp);
    if (fWordWrap)
        nTemp |= 0x80;
    *rContents << nTemp;
    *rContents << sal_uInt8(0x00);

    *rContents << ExportColor(mnBackColor);
    pBlockFlags[0] |= 0x02;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("TextColor"));
    if (aTmp.hasValue())
	    aTmp >>= mnForeColor;
	*rContents << ExportColor(mnForeColor);
	pBlockFlags[0] |= 0x04;

	nStyle = 4;
=====================================================================
Found a 24 line (129 tokens) duplication in the following files: 
Starting at line 1803 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx
Starting at line 1940 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx

IMPL_LINK( SvxAreaTabPage, ClickGradientHdl_Impl, void *, EMPTYARG )
{
	aTsbTile.Hide();
	aTsbStretch.Hide();
	aTsbScale.Hide();
	aTsbOriginal.Hide();
	aFtXSize.Hide();
	aMtrFldXSize.Hide();
	aFtYSize.Hide();
	aMtrFldYSize.Hide();
    aFlSize.Hide();
	aRbtRow.Hide();
	aRbtColumn.Hide();
	aMtrFldOffset.Hide();
    aFlOffset.Hide();
	aCtlPosition.Hide();
	aFtXOffset.Hide();
	aMtrFldXOffset.Hide();
	aFtYOffset.Hide();
	aMtrFldYOffset.Hide();
    aFlPosition.Hide();

	aLbColor.Hide();
	aLbGradient.Enable();
=====================================================================
Found a 20 line (129 tokens) duplication in the following files: 
Starting at line 4872 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4449 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartMergeVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 10800, 21600 }, { 0, 0 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartMergeTextRect[] = 
{
	{ { 5400, 0 }, { 16200, 10800 } }
};
static const mso_CustomShape msoFlowChartMerge =
{
	(SvxMSDffVertPair*)mso_sptFlowChartMergeVert, sizeof( mso_sptFlowChartMergeVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartMergeTextRect, sizeof( mso_sptFlowChartMergeTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptFlowChartExtractGluePoints, sizeof( mso_sptFlowChartExtractGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 27 line (129 tokens) duplication in the following files: 
Starting at line 872 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items/style.cxx
Starting at line 973 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items/style.cxx

			rStream >> nHelpId;

		SfxStyleSheetBase& rSheet = Make( aName, (SfxStyleFamily)nFamily , nStyleMask);
		rSheet.SetHelpId( aHelpFile, nHelpId );
		// Hier erst einmal Parent und Follow zwischenspeichern
		rSheet.aParent = aParent;
		rSheet.aFollow = aFollow;
		UINT32 nPos = rStream.Tell();
		rStream >> nCount;
		if(nCount) {
			rStream.Seek( nPos );
			// Das Laden des ItemSets bedient sich der Methode GetItemSet(),
			// damit eigene ItemSets untergeschoben werden koennen
			SfxItemSet& rSet = rSheet.GetItemSet();
			rSet.ClearItem();
//! 		SfxItemSet aTmpSet( *pTmpPool );
			/*!aTmpSet*/ rSet.Load( rStream );
			//! rSet.Put( aTmpSet );
		}
		// Lokale Teile
		UINT32 nSize;
		USHORT nVer;
		rStream >> nVer >> nSize;
		nPos = rStream.Tell() + nSize;
		rSheet.Load( rStream, nVer );
		rStream.Seek( nPos );
	}
=====================================================================
Found a 17 line (129 tokens) duplication in the following files: 
Starting at line 1672 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 2405 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx

	if ( bEditMode && (pViewData->GetRefTabNo() == pViewData->GetTabNo()) )
	{
		Point	aPos = rMEvt.GetPosPixel();
		SCsCOL	nPosX;
		SCsROW	nPosY;
		pViewData->GetPosFromPixel( aPos.X(), aPos.Y(), eWhich, nPosX, nPosY );

		EditView*	pEditView;
		SCCOL		nEditCol;
		SCROW		nEditRow;
		pViewData->GetEditView( eWhich, pEditView, nEditCol, nEditRow );
		SCCOL nEndCol = pViewData->GetEditEndCol();
		SCROW nEndRow = pViewData->GetEditEndRow();

		if ( nPosX >= (SCsCOL) nEditCol && nPosX <= (SCsCOL) nEndCol &&
			 nPosY >= (SCsROW) nEditRow && nPosY <= (SCsROW) nEndRow )
		{
=====================================================================
Found a 20 line (129 tokens) duplication in the following files: 
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/cellsh1.cxx
Starting at line 485 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/cellsh1.cxx

					if( IS_AVAILABLE( FID_FILL_TAB, &pItem ) )
						aFlags = ((const SfxStringItem*)pItem)->GetValue();

					aFlags.ToUpperAscii();
					BOOL	bCont = TRUE;

					for( xub_StrLen i=0 ; bCont && i<aFlags.Len() ; i++ )
					{
						switch( aFlags.GetChar(i) )
						{
							case 'A': // Alle
							nFlags |= IDF_ALL;
							bCont = FALSE; // nicht mehr weitermachen!
							break;
							case 'S': nFlags |= IDF_STRING;	break;
							case 'V': nFlags |= IDF_VALUE; break;
							case 'D': nFlags |= IDF_DATETIME; break;
							case 'F': nFlags |= IDF_FORMULA; break;
							case 'N': nFlags |= IDF_NOTE; break;
							case 'T': nFlags |= IDF_ATTRIB; break;
=====================================================================
Found a 23 line (129 tokens) duplication in the following files: 
Starting at line 1169 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/styleuno.cxx
Starting at line 1828 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/styleuno.cxx

		ScDocument* pDoc = pDocShell->GetDocument();
		if ( eFamily == SFX_STYLE_FAMILY_PARA )
		{
			//	Zeilenhoehen anpassen...

			VirtualDevice aVDev;
			Point aLogic = aVDev.LogicToPixel( Point(1000,1000), MAP_TWIP );
			double nPPTX = aLogic.X() / 1000.0;
			double nPPTY = aLogic.Y() / 1000.0;
			Fraction aZoom(1,1);
			pDoc->StyleSheetChanged( pStyle, sal_False, &aVDev, nPPTX, nPPTY, aZoom, aZoom );

			pDocShell->PostPaint( 0,0,0, MAXCOL,MAXROW,MAXTAB, PAINT_GRID|PAINT_LEFT );
			pDocShell->SetDocumentModified();
		}
		else
		{
			//!	ModifyStyleSheet am Dokument (alte Werte merken)

			pDocShell->PageStyleModified( aStyleName, sal_True );
		}
	}
}
=====================================================================
Found a 6 line (129 tokens) duplication in the following files: 
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 578 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       }};
=====================================================================
Found a 23 line (129 tokens) duplication in the following files: 
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 492 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 1077 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  setLength : public CppUnit::TestFixture
    {
        OString* arrOUS[6];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr1 );
            arrOUS[1] = new OString( "1" );
            arrOUS[2] = new OString( );
            arrOUS[3] = new OString( "" );
            arrOUS[4] = new OString( "\0" );
            arrOUS[5] = new OString( kTestStr2 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
        }

        void setLength_001()
=====================================================================
Found a 6 line (129 tokens) duplication in the following files: 
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/file_url.cxx
Starting at line 533 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 17 line (129 tokens) duplication in the following files: 
Starting at line 952 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1471 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xa1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x00, 0xb3, 0xa3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xa5 },
{ 0x00, 0xb6, 0xa6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xa9 },
{ 0x00, 0xba, 0xaa },
{ 0x00, 0xbb, 0xab },
{ 0x00, 0xbc, 0xac },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xae },
{ 0x00, 0xbf, 0xbf },
=====================================================================
Found a 17 line (129 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/languageguessing/guesslang.cxx
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/languageguessing/guesslang.cxx

    vector<Guess> gs = guesser.GetAvailableLanguages();
    aRes.realloc(gs.size());

    com::sun::star::lang::Locale *pRes = aRes.getArray();

    for(size_t i = 0; i < gs.size() ; i++ ){
        com::sun::star::lang::Locale current_aRes;
        current_aRes.Language   = OUString(RTL_CONSTASCII_USTRINGPARAM(gs[i].GetLanguage().c_str()));
        current_aRes.Country    = OUString(RTL_CONSTASCII_USTRINGPARAM(gs[i].GetCountry().c_str()));
        pRes[i] = current_aRes;
    }

    return aRes;
}

//*************************************************************************
uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getDisabledLanguages(  )
=====================================================================
Found a 19 line (129 tokens) duplication in the following files: 
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx

                aDNames = new OUString [numdict];
	        aSuppLocales.realloc(numdict);
                Locale * pLocale = aSuppLocales.getArray();
                int numlocs = 0;
                int newloc;
                int i,j;
                int k = 0;

                //first add the user dictionaries
                for (i = 0; i < numusr; i++) {
	            Locale nLoc( A2OU(postupdict[i]->lang), A2OU(postupdict[i]->region), OUString() );
                    newloc = 1;
	            for (j = 0; j < numlocs; j++) {
                        if (nLoc == pLocale[j]) newloc = 0;
                    }
                    if (newloc) {
                        pLocale[numlocs] = nLoc;
                        numlocs++;
                    }
=====================================================================
Found a 6 line (129 tokens) duplication in the following files: 
Starting at line 1379 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f00 - 2f0f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f10 - 2f1f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f20 - 2f2f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f30 - 2f3f
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 1338 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1379 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2550 - 255f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2560 - 256f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2570 - 257f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2580 - 258f
    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2590 - 259f
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1261 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 1071 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1078 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13,13,13,13,17,17,17,17,17,17,17,17,17,17,// 07a0 - 07af
    17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 1058 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1514 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fd40 - fd4f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd50 - fd5f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd60 - fd6f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd70 - fd7f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd80 - fd8f
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 625 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
=====================================================================
Found a 6 line (129 tokens) duplication in the following files: 
Starting at line 601 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 679 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f00 - 2f0f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f10 - 2f1f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f20 - 2f2f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2f30 - 2f3f
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 577 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 691 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2fa0 - 2faf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2fb0 - 2fbf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2fc0 - 2fcf
    27,27,27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2fd0 - 2fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2fe0 - 2fef
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 446 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 375 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5,// 1200 - 120f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1210 - 121f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1220 - 122f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1230 - 123f
     5, 5, 5, 5, 5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 0, 0,// 1240 - 124f
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,// 07a0 - 07af
     6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
=====================================================================
Found a 3 line (129 tokens) duplication in the following files: 
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_sqrt_tables.cpp

        5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
        6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
        6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
=====================================================================
Found a 5 line (129 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_mask.h

 0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 63 line (129 tokens) duplication in the following files: 
Starting at line 1896 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1470 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx

int yyFlexLexer::yyinput()
	{
	int c;

	*yy_c_buf_p = yy_hold_char;

	if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
		{
		/* yy_c_buf_p now points to the character we want to return.
		 * If this occurs *before* the EOB characters, then it's a
		 * valid NUL; if not, then we've hit the end of the buffer.
		 */
		if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			/* This was really a NUL. */
			*yy_c_buf_p = '\0';

		else
			{ /* need more input */
			int offset = yy_c_buf_p - yytext_ptr;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_LAST_MATCH:
					/* This happens because yy_g_n_b()
					 * sees that we've accumulated a
					 * token and flags that we need to
					 * try matching the token before
					 * proceeding.  But for input(),
					 * there's no matching to consider.
					 * So convert the EOB_ACT_LAST_MATCH
					 * to EOB_ACT_END_OF_FILE.
					 */

					/* Reset buffer status. */
					yyrestart( yyin );

					/* fall through */

				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						return EOF;

					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
#ifdef __cplusplus
					return yyinput();
#else
					return input();
#endif
					}

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + offset;
					break;
				}
			}
		}

	c = *(unsigned char *) yy_c_buf_p;	/* cast for 8-bit char's */
	*yy_c_buf_p = '\0';	/* preserve yytext */
	yy_hold_char = *++yy_c_buf_p;
=====================================================================
Found a 7 line (129 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp

     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     1,     3,     4,     5,     6,
=====================================================================
Found a 6 line (129 tokens) duplication in the following files: 
Starting at line 2321 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

	static const sal_Char aDigits[64]
		= { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
			'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
			'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
			'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
			'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };
=====================================================================
Found a 31 line (129 tokens) duplication in the following files: 
Starting at line 322 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/accelerators/acceleratorexecute.cxx
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/acceleratorexecute.cxx

    return xAccCfg;
}

//-----------------------------------------------
css::uno::Reference< css::util::XURLTransformer > AcceleratorExecute::impl_ts_getURLParser()
{
    // SAFE -> ----------------------------------
    ::osl::ResettableMutexGuard aLock(m_aLock);

    if (m_xURLParser.is())
        return m_xURLParser;
    css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR = m_xSMGR;

    aLock.clear();
    // <- SAFE ----------------------------------

    css::uno::Reference< css::util::XURLTransformer > xParser(
                xSMGR->createInstance(::rtl::OUString::createFromAscii("com.sun.star.util.URLTransformer")),
                css::uno::UNO_QUERY_THROW);

    // SAFE -> ----------------------------------
    aLock.reset();
    m_xURLParser = xParser;
    aLock.clear();
    // <- SAFE ----------------------------------

    return xParser;
}

//-----------------------------------------------
IMPL_LINK(AcceleratorExecute, impl_ts_asyncCallback, void*, EMPTYARG)
=====================================================================
Found a 35 line (129 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/resourceprovider.cxx
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/win32/misc/resourceprovider.cxx

using rtl::OUString;
using namespace ::com::sun::star::ui::dialogs::ExtendedFilePickerElementIds;
using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds;

//------------------------------------------------------------
// 
//------------------------------------------------------------

#define FOLDERPICKER_TITLE            500
#define FOLDER_PICKER_DEF_DESCRIPTION 501

//------------------------------------------------------------
// we have to translate control ids to resource ids 
//------------------------------------------------------------

struct _Entry
{
    sal_Int32 ctrlId;
    sal_Int16 resId;
};

_Entry CtrlIdToResIdTable[] = {
    { CHECKBOX_AUTOEXTENSION,                   STR_SVT_FILEPICKER_AUTO_EXTENSION },
    { CHECKBOX_PASSWORD,                        STR_SVT_FILEPICKER_PASSWORD },
    { CHECKBOX_FILTEROPTIONS,                   STR_SVT_FILEPICKER_FILTER_OPTIONS },
    { CHECKBOX_READONLY,                        STR_SVT_FILEPICKER_READONLY },
    { CHECKBOX_LINK,                            STR_SVT_FILEPICKER_INSERT_AS_LINK },
    { CHECKBOX_PREVIEW,                         STR_SVT_FILEPICKER_SHOW_PREVIEW },
    { PUSHBUTTON_PLAY,                          STR_SVT_FILEPICKER_PLAY },
    { LISTBOX_VERSION_LABEL,                    STR_SVT_FILEPICKER_VERSION },
    { LISTBOX_TEMPLATE_LABEL,                   STR_SVT_FILEPICKER_TEMPLATES },
    { LISTBOX_IMAGE_TEMPLATE_LABEL,             STR_SVT_FILEPICKER_IMAGE_TEMPLATE },
    { CHECKBOX_SELECTION,                       STR_SVT_FILEPICKER_SELECTION },
    { FOLDERPICKER_TITLE,                       STR_SVT_FOLDERPICKER_DEFAULT_TITLE },
    { FOLDER_PICKER_DEF_DESCRIPTION,            STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION }
=====================================================================
Found a 6 line (129 tokens) duplication in the following files: 
Starting at line 1746 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, /*0123456789:;<=>?*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 14 line (129 tokens) duplication in the following files: 
Starting at line 2193 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx
Starting at line 2227 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx

            OSQLParseNode* pRight = pSearchCondition->getChild(2)->removeAt((sal_uInt32)0);
            OSQLParseNode* pNode    = MakeORNode(pLeft,pRight);

            OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
            pNewRule->append(pNode);
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));

            OSQLParseNode::eraseBraces(pLeft);
            OSQLParseNode::eraseBraces(pRight);

            pNode = MakeANDNode(pSearchCondition->getChild(0)->removeAt(1),pNewRule);
            replaceAndReset(pSearchCondition,pNode);
        }
=====================================================================
Found a 24 line (129 tokens) duplication in the following files: 
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 578 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx

	Property* pProperties = aProps.getArray();
	sal_Int32 nPos = 0;
	DECL_PROP0(CURSORNAME,	::rtl::OUString);
	DECL_BOOL_PROP0(ESCAPEPROCESSING);
	DECL_PROP0(FETCHDIRECTION,sal_Int32);
	DECL_PROP0(FETCHSIZE,	sal_Int32);
	DECL_PROP0(MAXFIELDSIZE,sal_Int32);
	DECL_PROP0(MAXROWS,		sal_Int32);
	DECL_PROP0(QUERYTIMEOUT,sal_Int32);
	DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
	DECL_PROP0(RESULTSETTYPE,sal_Int32);
	DECL_BOOL_PROP0(USEBOOKMARKS);

	return new ::cppu::OPropertyArrayHelper(aProps);
}

// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
{
	return *const_cast<OStatement_Base*>(this)->getArrayHelper();
}
// -------------------------------------------------------------------------
sal_Bool OStatement_Base::convertFastPropertyValue(
							Any & /*rConvertedValue*/,
=====================================================================
Found a 30 line (129 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx

}
// -------------------------------------------------------------------------

void OStatement_Base::reset() throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);


	clearWarnings ();

	if (m_xResultSet.get().is())
		clearMyResultSet();
}

void OStatement_Base::clearMyResultSet () throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);

    try
    {
	    Reference<XCloseable> xCloseable;
	    if ( ::comphelper::query_interface( m_xResultSet.get(), xCloseable ) )
		    xCloseable->close();
    }
    catch( const DisposedException& ) { }

    m_xResultSet = Reference< XResultSet >();
}
=====================================================================
Found a 8 line (129 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/APreparedStatement.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/PreparedStatement.cxx

::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL java_sql_PreparedStatement::getTypes(  ) throw(::com::sun::star::uno::RuntimeException)
{
	::cppu::OTypeCollection aTypes(	::getCppuType( (const ::com::sun::star::uno::Reference< XPreparedStatement > *)0 ),
									::getCppuType( (const ::com::sun::star::uno::Reference< XParameters > *)0 ),
									::getCppuType( (const ::com::sun::star::uno::Reference< XResultSetMetaDataSupplier > *)0 ),
									::getCppuType( (const ::com::sun::star::uno::Reference< XPreparedBatchExecution > *)0 ));

	return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_BASE2::getTypes());
=====================================================================
Found a 26 line (129 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

		cout << aStr << endl;
	}
	volatile int dummy = 0;
}

//=============================================================================

inline void operator <<= (::rtl::OUString& _rUnicodeString, const sal_Char* _pAsciiString)
{
	_rUnicodeString = ::rtl::OUString::createFromAscii(_pAsciiString);
}

inline void operator <<= (::rtl::OUString& _rUnicodeString, const ::rtl::OString& _rAsciiString)
{
	_rUnicodeString <<= _rAsciiString.getStr();
}

inline void operator <<= (Any& _rUnoValue, const sal_Char* _pAsciiString)
{
	_rUnoValue <<= ::rtl::OUString::createFromAscii(_pAsciiString);
}

inline void operator <<= (Any& _rUnoValue, const ::rtl::OString& _rAsciiString)
{
	_rUnoValue <<= _rAsciiString.getStr();
}
=====================================================================
Found a 15 line (129 tokens) duplication in the following files: 
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

			sUserPath =	_sUserPath; //		enterValue("user path : ", s_pUpdatePath, false);
			// cout << endl;

			aCPArgs.realloc(aCPArgs.getLength() + 1);
			sal_Int32 nCount = aCPArgs.getLength() - 1;
			Any *pAny = &aCPArgs[nCount];
			*pAny <<= configmgr::createPropertyValue(ASCII("sourcepath"), sSharePath);
			aCPArgs.realloc(aCPArgs.getLength() + 1);
			aCPArgs[aCPArgs.getLength() - 1] <<= configmgr::createPropertyValue(ASCII("updatepath"), sUserPath);
		}
		
		aCPArgs.realloc(aCPArgs.getLength() + 1);
		aCPArgs[aCPArgs.getLength() - 1] <<= configmgr::createPropertyValue(ASCII("servertype"), sServerType);

		Reference< XMultiServiceFactory > xCfgProvider(
=====================================================================
Found a 23 line (129 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunomaker.cxx
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdbmaker.cxx

		cleanUp(sal_True);
		exit(99);
	}

	RegistryKey	typeKey = typeMgr.getTypeKey(typeName);
	RegistryKeyNames subKeys;
	
	if (typeKey.getKeyNames(OUString(), subKeys))
		return sal_False;
	
	OString tmpName;
	for (sal_uInt32 i=0; i < subKeys.getLength(); i++)
	{
		tmpName = OUStringToOString(subKeys.getElement(i), RTL_TEXTENCODING_UTF8);

		if (pOptions->isValid("-B"))
			tmpName = tmpName.copy(tmpName.indexOf('/', 1) + 1);
		else
			tmpName = tmpName.copy(1);

		if (bFullScope)
		{
			if (!produceAllTypes(tmpName, typeMgr, typeDependencies, pOptions, sal_True, 
=====================================================================
Found a 31 line (129 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbamaker.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunomaker.cxx

	CunoOptions options;

	try 
	{
		if (!options.initOptions(argc, argv))
		{
			exit(1);
		}
	}
	catch( IllegalArgument& e)
	{
		fprintf(stderr, "Illegal option: %s\n", e.m_message.getStr());
		exit(99);
	}

	RegistryTypeManager typeMgr;
	TypeDependency		typeDependencies;
	
	if (!typeMgr.init(!options.isValid("-T"), options.getInputFiles()))
	{
		fprintf(stderr, "%s : init registries failed, check your registry files.\n", options.getProgramName().getStr());
		exit(99);
	}

	if (options.isValid("-B"))
	{
		typeMgr.setBase(options.getOption("-B"));
	}

	try 
	{
=====================================================================
Found a 19 line (129 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/Stripe.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/Stripe.cxx

uno::Any Stripe::getNormalsPolygon() const
{
    drawing::PolyPolygonShape3D aPP;

	aPP.SequenceX.realloc(1);
	aPP.SequenceY.realloc(1);
	aPP.SequenceZ.realloc(1);

	drawing::DoubleSequence* pOuterSequenceX = aPP.SequenceX.getArray();
	drawing::DoubleSequence* pOuterSequenceY = aPP.SequenceY.getArray();
	drawing::DoubleSequence* pOuterSequenceZ = aPP.SequenceZ.getArray();

    pOuterSequenceX->realloc(4);
    pOuterSequenceY->realloc(4);
	pOuterSequenceZ->realloc(4);

    double* pInnerSequenceX = pOuterSequenceX->getArray();
	double* pInnerSequenceY = pOuterSequenceY->getArray();
	double* pInnerSequenceZ = pOuterSequenceZ->getArray();
=====================================================================
Found a 14 line (129 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/InternalData.cxx
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/linkeddocuments.cxx

	using namespace ::svt;

	namespace
	{
		Sequence< sal_Int8 > lcl_GetSequenceClassID( sal_uInt32 n1, sal_uInt16 n2, sal_uInt16 n3,
													sal_uInt8 b8, sal_uInt8 b9, sal_uInt8 b10, sal_uInt8 b11,
													sal_uInt8 b12, sal_uInt8 b13, sal_uInt8 b14, sal_uInt8 b15 )
		{
			Sequence< sal_Int8 > aResult( 16 );
			aResult[0] = static_cast<sal_Int8>(n1 >> 24);
			aResult[1] = static_cast<sal_Int8>(( n1 << 8 ) >> 24);
			aResult[2] = static_cast<sal_Int8>(( n1 << 16 ) >> 24);
			aResult[3] = static_cast<sal_Int8>(( n1 << 24 ) >> 24);
			aResult[4] = static_cast<sal_Int8>(n2 >> 8);
=====================================================================
Found a 14 line (129 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx

uno::Sequence< uno::Sequence< double > > lcl_getDBL_MINInsteadNAN( const uno::Sequence< uno::Sequence< double > >& rData )
{
    uno::Sequence< uno::Sequence< double > > aRet;
    const sal_Int32 nOuterSize = rData.getLength();
    aRet.realloc( nOuterSize );
    for( sal_Int32 nOuter=0; nOuter<nOuterSize; ++nOuter )
    {
        sal_Int32 nInnerSize = rData[nOuter].getLength();
        aRet[nOuter].realloc( nInnerSize );
        for( sal_Int32 nInner=0; nInner<nInnerSize; ++nInner )
        {
            aRet[nOuter][nInner] = rData[nOuter][nInner];
            double& rValue = aRet[nOuter][nInner];
            if( ::rtl::math::isNan( rValue ) )
=====================================================================
Found a 21 line (129 tokens) duplication in the following files: 
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx

                                                                                             nSrcX ) );
                                    }
                                }
                            }
                            else
                            {
                                for( int x=0; x<aDestBmpSize.Width(); ++x )
                                {
                                    ::basegfx::B2DPoint aPoint(x,y);
                                    aPoint *= aTransform;

                                    const int nSrcX( ::basegfx::fround( aPoint.getX() ) );
                                    const int nSrcY( ::basegfx::fround( aPoint.getY() ) );
                                    if( nSrcX < 0 || nSrcX >= aBmpSize.Width() ||
                                        nSrcY < 0 || nSrcY >= aBmpSize.Height() )
                                    {
                                        pAlphaWriteAccess->SetPixel( y, x, BitmapColor(255) );
                                    }
                                    else
                                    {
                                        pAlphaWriteAccess->SetPixel( y, x, BitmapColor(0) );
=====================================================================
Found a 26 line (129 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvasfont.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvasfont.cxx

            OutputDevice* pOutDev( mpRefDevice->getOutDev() );

            if( pOutDev )
            {
                const bool bOldMapState( pOutDev->IsMapModeEnabled() );
                pOutDev->EnableMapMode(FALSE);

                const Size aSize = pOutDev->GetFontMetric( *maFont ).GetSize();

                const double fDividend( rFontMatrix.m10 + rFontMatrix.m11 );
                double fStretch = (rFontMatrix.m00 + rFontMatrix.m01);            

                if( !::basegfx::fTools::equalZero( fDividend) )
                    fStretch /= fDividend;

                const long nNewWidth = ::basegfx::fround( aSize.Width() * fStretch );

                maFont->SetWidth( nNewWidth );

                pOutDev->EnableMapMode(bOldMapState);
            }
        }
    }

    void SAL_CALL CanvasFont::disposing()
    {
=====================================================================
Found a 19 line (129 tokens) duplication in the following files: 
Starting at line 258 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/uno/namecont.cxx
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/eventcontainer.cxx

void NameContainer_Impl::insertByName( const OUString& aName, const Any& aElement ) 
	throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException)
{
	Type aAnyType = aElement.getValueType();
	if( mType != aAnyType )
		throw IllegalArgumentException();

	NameContainerNameMap::iterator aIt = mHashMap.find( aName );
	if( aIt != mHashMap.end() )
	{
		throw ElementExistException();
	}

	sal_Int32 nCount = mNames.getLength();
	mNames.realloc( nCount + 1 );
	mValues.realloc( nCount + 1 );
	mNames.getArray()[ nCount ] = aName;
	mValues.getArray()[ nCount ] = aElement;
	mHashMap[ aName ] = nCount;
=====================================================================
Found a 11 line (129 tokens) duplication in the following files: 
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	const INT16 fof = finEof;
//	const INT16 fat = finAtTag;

	/// The '0's  will be replaced by calls of AddToken().

	const INT16 A_nTopStatus[C_nStatusSize] =
	//  0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{fof,err,err,err,err,err,err,err,err,wht,  0,wht,wht,  0,err,err,
	 err,err,err,err,err,err,err,err,err,err,fof,err,err,err,err,err, // ... 31
	 wht,awd,awd,awd,awd,awd,awd,awd,awd,awd,  0,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,  0,awd,awd,awd, // ... 63
=====================================================================
Found a 8 line (128 tokens) duplication in the following files: 
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1
=====================================================================
Found a 3 line (128 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_sqrt_tables.cpp
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_sqrt_tables.cpp

        7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
        7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
        7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
=====================================================================
Found a 21 line (128 tokens) duplication in the following files: 
Starting at line 757 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 782 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        y_lr = (y >> image_subpixel_shift) + start;
                        y_hr = image_subpixel_mask - (y_hr & image_subpixel_mask);

                        do
                        {
                            x_count = diameter;
                            weight_y = weight_array[y_hr];
                            x_lr = (x >> image_subpixel_shift) + start;
                            x_hr = image_subpixel_mask - x_fract;

                            do
                            {
                                int weight = (weight_y * weight_array[x_hr] + 
                                             image_filter_size / 2) >> 
                                             image_filter_shift;

                                if(x_lr >= 0 && y_lr >= 0 && 
                                   x_lr < int(base_type::source_image().width()) && 
                                   y_lr < int(base_type::source_image().height()))
                                {
                                    fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
=====================================================================
Found a 17 line (128 tokens) duplication in the following files: 
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                        weight = x_hr * y_hr;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }
=====================================================================
Found a 21 line (128 tokens) duplication in the following files: 
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_gray.h
Starting at line 782 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        y_lr = (y >> image_subpixel_shift) + start;
                        y_hr = image_subpixel_mask - (y_hr & image_subpixel_mask);

                        do
                        {
                            x_count = diameter;
                            weight_y = weight_array[y_hr];
                            x_lr = (x >> image_subpixel_shift) + start;
                            x_hr = image_subpixel_mask - x_fract;

                            do
                            {
                                int weight = (weight_y * weight_array[x_hr] + 
                                             image_filter_size / 2) >> 
                                             image_filter_shift;

                                if(x_lr >= 0 && y_lr >= 0 && 
                                   x_lr < int(base_type::source_image().width()) && 
                                   y_lr < int(base_type::source_image().height()))
                                {
                                    fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + (x_lr << 2);
=====================================================================
Found a 20 line (128 tokens) duplication in the following files: 
Starting at line 879 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
Starting at line 732 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx

Reference< XCertificate > SecurityEnvironment_NssImpl :: createCertificateFromAscii( const OUString& asciiCertificate ) throw( SecurityException , RuntimeException ) {
	xmlChar* chCert ;
	xmlSecSize certSize ;

	rtl::OString oscert = rtl::OUStringToOString( asciiCertificate , RTL_TEXTENCODING_ASCII_US ) ;

	chCert = xmlStrndup( ( const xmlChar* )oscert.getStr(), ( int )oscert.getLength() ) ;

	certSize = xmlSecBase64Decode( chCert, ( xmlSecByte* )chCert, xmlStrlen( chCert ) ) ;

	Sequence< sal_Int8 > rawCert( certSize ) ;
	for( unsigned int i = 0 ; i < certSize ; i ++ )
		rawCert[i] = *( chCert + i ) ;

	xmlFree( chCert ) ;

	return createCertificateFromRaw( rawCert ) ;
}

sal_Int32 SecurityEnvironment_NssImpl :: verifyCertificate( const ::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate >& aCert ) throw( ::com::sun::star::uno::SecurityException, ::com::sun::star::uno::RuntimeException ) {
=====================================================================
Found a 19 line (128 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/FormPropOASISTContext.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/FrameOOoTContext.cxx

	Reference< XAttributeList > xFrameAttrList( pFrameMutableAttrList );

	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
			const OUString& rAttrValue = xAttrList->getValueByIndex( i );
			switch( (*aIter).second.m_nActionType )
			{
			case XML_ATACTION_MOVE_TO_ELEM:
=====================================================================
Found a 24 line (128 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLImport.cxx
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLTools.cxx

using namespace com::sun::star;
using namespace ::xmloff::token;

using ::rtl::OUString;
using ::rtl::OUStringBuffer;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;

namespace
{
Reference< uno::XComponentContext > lcl_getComponentContext()
{
    Reference< uno::XComponentContext > xContext;
    try
    {
        Reference< beans::XPropertySet > xFactProp( comphelper::getProcessServiceFactory(), uno::UNO_QUERY );
        if( xFactProp.is())
            xFactProp->getPropertyValue(OUString::createFromAscii("DefaultContext")) >>= xContext;
    }
    catch( uno::Exception& )
    {}

    return xContext;
}
=====================================================================
Found a 17 line (128 tokens) duplication in the following files: 
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 552 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

							(LPBYTE)CXMergeFilter::m_pszPXLImportCLSID, 
							(::_tcslen(CXMergeFilter::m_pszPSWImportDesc) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	lRet = ::RegSetValueEx(hDataKey, _T("DefaultExport"), 0, REG_SZ, (LPBYTE)_T("Binary Copy"),
							(::_tcslen(_T("Binary Copy")) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

	::RegCloseKey(hDataKey);
							
	// Update registered filters


	_snprintf(sTemp, _MAX_PATH + 1, "%c%s\\InstalledFilters\0", '.', CXMergeFilter::m_pszPXLExportExt);
=====================================================================
Found a 8 line (128 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/invert50.h
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/invert50.h

   0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
   0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
   0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
   0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
   0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
   0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
   0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
   0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
=====================================================================
Found a 7 line (128 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawarc_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawbezier_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawcirclecut_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawconnect_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawpie_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawpolygon_mask.h

static char drawpolygon_mask_bits[] = {
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0x3f, 0x7e, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x3f, 0x7e, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x1e, 0x06,
=====================================================================
Found a 18 line (128 tokens) duplication in the following files: 
Starting at line 428 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gfxlink.cxx
Starting at line 1385 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impgraph.cxx

							::ucbhelper::Content aCnt( aSwapURL,
												 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );

							aCnt.executeCommand( ::rtl::OUString::createFromAscii( "delete" ),
												 ::com::sun::star::uno::makeAny( sal_Bool( sal_True ) ) );
						}
						catch( const ::com::sun::star::ucb::ContentCreationException& )
						{
						}
						catch( const ::com::sun::star::uno::RuntimeException& )
						{
						}
						catch( const ::com::sun::star::ucb::CommandAbortedException& )
						{
						}
        		        catch( const ::com::sun::star::uno::Exception& )
		                {
		                }
=====================================================================
Found a 28 line (128 tokens) duplication in the following files: 
Starting at line 492 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/longcurr.cxx

	ResMgr* 	pMgr = rResId.GetResMgr();
    if( pMgr )
    {
        ULONG		nMask = pMgr->ReadLong();
    
        if ( NUMERICFORMATTER_MIN & nMask )
            mnMin = pMgr->ReadLong();
    
        if ( NUMERICFORMATTER_MAX & nMask )
            mnMax = pMgr->ReadLong();
    
        if ( NUMERICFORMATTER_STRICTFORMAT & nMask )
            SetStrictFormat(  (BOOL)pMgr->ReadShort() );
    
        if ( NUMERICFORMATTER_DECIMALDIGITS & nMask )
            SetDecimalDigits( pMgr->ReadShort() );
    
        if ( NUMERICFORMATTER_VALUE & nMask )
        {
            mnFieldValue = pMgr->ReadLong();
            if ( mnFieldValue > mnMax )
                mnFieldValue = mnMax;
            else if ( mnFieldValue < mnMin )
                mnFieldValue = mnMin;
            mnLastValue = mnFieldValue;
        }
    }
}
=====================================================================
Found a 33 line (128 tokens) duplication in the following files: 
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 446 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

        {
            static const ucb::CommandInfo aLinkCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
=====================================================================
Found a 33 line (128 tokens) duplication in the following files: 
Starting at line 1818 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1985 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

        xSource = static_cast< Content * >(
                        m_xProvider->queryContent( xId ).get() );
    }
    catch ( ucb::IllegalIdentifierException const & )
    {
        // queryContent
    }

    if ( !xSource.is() )
    {
        uno::Any aProps
            = uno::makeAny(beans::PropertyValue(
                                  rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                                    "Uri")),
                                  -1,
                                  uno::makeAny(xId->getContentIdentifier()),
                                  beans::PropertyState_DIRECT_VALUE));
        ucbhelper::cancelCommandExecution(
            ucb::IOErrorCode_CANT_READ,
            uno::Sequence< uno::Any >(&aProps, 1),
            xEnv,
            rtl::OUString::createFromAscii(
                "Cannot instanciate source object!" ),
            this );
        // Unreachable
    }

    //////////////////////////////////////////////////////////////////////
    // 1) Create new child content.
    //////////////////////////////////////////////////////////////////////

    rtl::OUString aType = xSource->isFolder()
            ? GetContentType( m_aUri.getScheme(), sal_True )
=====================================================================
Found a 19 line (128 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/export2.cxx
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/export2.cxx

void Export::QuotHTML( ByteString &rString )
/*****************************************************************************/
{
	ByteString sReturn;
	for ( USHORT i = 0; i < rString.Len(); i++ ) {
		ByteString sTemp = rString.Copy( i );
		if ( sTemp.Search( "<Arg n=" ) == 0 ) {
			while ( i < rString.Len() && rString.GetChar( i ) != '>' ) {
		 		sReturn += rString.GetChar( i );
				i++;
			}
			if ( rString.GetChar( i ) == '>' ) {
				sReturn += ">";
				i++;
			}
		}
		if ( i < rString.Len()) {
			switch ( rString.GetChar( i )) {
				case '<':
=====================================================================
Found a 21 line (128 tokens) duplication in the following files: 
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/urltest.cxx
Starting at line 587 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/urltest.cxx

				"vnd.sun.star.pkg://file:%2F%2F%2Fa:%2Fb%20c/xx//yy" };
		for (std::size_t i = 0; i < sizeof aTest / sizeof aTest[0]; ++i)
		{
			INetURLObject aUrl(aTest[i]);
			if (aUrl.HasError())
				printf("BAD %s\n", aTest[i]);
			else if (aUrl.GetMainURL(INetURLObject::DECODE_TO_IURI).
                         equalsAscii(aTest[i]) != sal_True)
			{
				String sTest(aUrl.GetMainURL(INetURLObject::DECODE_TO_IURI));
				printf("BAD %s -> %s\n",
					   aTest[i],
					   ByteString(sTest, RTL_TEXTENCODING_ASCII_US).GetBuffer());
			}
		}
	}

	if (true)
	{
		static sal_Char const * const aTest[]
			= { /*TODO "vnd.sun.star.cmd:",*/
=====================================================================
Found a 19 line (128 tokens) duplication in the following files: 
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/cctrl/actctrl.cxx

void NoSpaceEdit::Modify()
{
	Selection aSel = GetSelection();
	String sTemp = GetText();
	for(USHORT i = 0; i < sForbiddenChars.Len(); i++)
	{
		sTemp.EraseAllChars( sForbiddenChars.GetChar(i) );
	}
	USHORT nDiff = GetText().Len() - sTemp.Len();
	if(nDiff)
	{
		aSel.setMin(aSel.getMin() - nDiff);
		aSel.setMax(aSel.getMin());
		SetText(sTemp);
		SetSelection(aSel);
	}
	if(GetModifyHdl().IsSet())
		GetModifyHdl().Call(this);
}
=====================================================================
Found a 69 line (128 tokens) duplication in the following files: 
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx
Starting at line 644 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
        0, // POINTER_TAB_SELECT_W
        0, // POINTER_TAB_SELECT_SW
// <--
// --> FME 2004-08-16 #i20119# Paintbrush tool
        0 // POINTER_PAINTBRUSH
// <--
    };
=====================================================================
Found a 33 line (128 tokens) duplication in the following files: 
Starting at line 2092 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 2271 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx

	if( nP < pPLCF_PosArray[0] )
	{
		nIdx = 0;
		// Nicht gefunden: nPos unterhalb kleinstem Eintrag
		return false;
	}

	// Search from beginning?
	if( (1 > nIdx) || (nP < pPLCF_PosArray[ nIdx-1 ]) )
		nIdx = 1;

	long nI   = nIdx ? nIdx : 1;
	long nEnd = nIMax;

	for(int n = (1==nIdx ? 1 : 2); n; --n )
	{
		for( ; nI <=nEnd; ++nI)				// Suchen mit um 1 erhoehtem Index
		{
			if( nP < pPLCF_PosArray[nI] )	// Position gefunden
			{
				nIdx = nI - 1;				// nI - 1 ist der richtige Index
				return true;				// ... und fertig
			}
		}
		nI   = 1;
		nEnd = nIdx-1;
	}

	nIdx = nIMax;				// Nicht gefunden, groesser als alle Eintraege
	return false;
}

bool WW8PLCF::Get(long& rStart, long& rEnd, void*& rpValue) const
=====================================================================
Found a 32 line (128 tokens) duplication in the following files: 
Starting at line 1197 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 870 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/writerwordglue.cxx

        DateTime DTTM2DateTime( long lDTTM )
        {
            /*
            mint    short   :6  0000003F    minutes (0-59)
            hr      short   :5  000007C0    hours (0-23)
            dom     short   :5  0000F800    days of month (1-31)
            mon     short   :4  000F0000    months (1-12)
            yr      short   :9  1FF00000    years (1900-2411)-1900
            wdy     short   :3  E0000000    weekday(Sunday=0
                                                    Monday=1
            ( wdy can be ignored )                  Tuesday=2
                                                    Wednesday=3
                                                    Thursday=4
                                                    Friday=5
                                                    Saturday=6)
            */
            DateTime aDateTime(Date( 0 ), Time( 0 ));
            if( lDTTM )
            {
                USHORT lMin = (USHORT)(lDTTM & 0x0000003F);
                lDTTM >>= 6;
                USHORT lHour= (USHORT)(lDTTM & 0x0000001F);
                lDTTM >>= 5;
                USHORT lDay = (USHORT)(lDTTM & 0x0000001F);
                lDTTM >>= 5;
                USHORT lMon = (USHORT)(lDTTM & 0x0000000F);
                lDTTM >>= 4;
                USHORT lYear= (USHORT)(lDTTM & 0x000001FF) + 1900;
                aDateTime = DateTime(Date(lDay, lMon, lYear), Time(lHour, lMin));
            }
            return aDateTime;
        }
=====================================================================
Found a 7 line (128 tokens) duplication in the following files: 
Starting at line 3531 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
    };
=====================================================================
Found a 26 line (128 tokens) duplication in the following files: 
Starting at line 3161 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4897 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

		if(!nRowCount || rRowDesc.getLength() < bFirstRowAsLabel ? nRowCount - 1 : nRowCount)
		{
			throw uno::RuntimeException();
			return;
		}
		const OUString* pArray = rRowDesc.getConstArray();
		if(bFirstColumnAsLabel)
		{
			sal_uInt16 nStart = bFirstRowAsLabel ? 1 : 0;
			for(sal_uInt16 i = nStart; i < nRowCount; i++)
			{
				uno::Reference< table::XCell >  xCell = getCellByPosition(0, i);
				if(!xCell.is())
				{
					throw uno::RuntimeException();
					break;
				}
				uno::Reference< text::XText >  xText(xCell, uno::UNO_QUERY);
				xText->setString(pArray[i - nStart]);
			}
		}
		else
		{
			DBG_ERROR("Wohin mit den Labels?")
		}
	}
=====================================================================
Found a 26 line (128 tokens) duplication in the following files: 
Starting at line 2035 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/poolfmt.cxx
Starting at line 2079 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/poolfmt.cxx

			aFmt.SetBulletChar( 0x2717 );
            // --> OD 2006-06-29 #6440955#
            aFmt.SetBulletFont( &numfunc::GetDefBulletFont() );
            // <--

			static const USHORT aAbsSpace[ MAXLEVEL ] =
				{
//				cm: 0,4  0,8  1,2  1,6  2,0   2,4   2,8   3,2   3,6   4,0
					227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
				};
#ifdef USE_MEASUREMENT
			static const USHORT aAbsSpaceInch[ MAXLEVEL ] =
				{
					227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
				};
			const USHORT* pArr = MEASURE_METRIC ==
								GetAppLocaleData().getMeasurementSystemEnum()
									? aAbsSpace
									: aAbsSpaceInch;
#else
			const USHORT* pArr = aAbsSpace;
#endif

			aFmt.SetFirstLineOffset( - (*pArr) );
			for( n = 0; n < MAXLEVEL; ++n, ++pArr )
			{
=====================================================================
Found a 19 line (128 tokens) duplication in the following files: 
Starting at line 434 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx

void CrookSlantPoly(XPolygon& rPoly, const Point& rCenter, const Point& rRad, FASTBOOL bVert)
{
	double nSin,nCos;
	USHORT nPointAnz=rPoly.GetPointCount();
	USHORT i=0;
	while (i<nPointAnz) {
		Point* pPnt=&rPoly[i];
		Point* pC1=NULL;
		Point* pC2=NULL;
		if (i+1<nPointAnz && rPoly.IsControl(i)) { // Kontrollpunkt links
			pC1=pPnt;
			i++;
			pPnt=&rPoly[i];
		}
		i++;
		if (i<nPointAnz && rPoly.IsControl(i)) { // Kontrollpunkt rechts
			pC2=&rPoly[i];
			i++;
		}
=====================================================================
Found a 21 line (128 tokens) duplication in the following files: 
Starting at line 2238 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2694 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

        nTemp |= 0x20;
    *rContents << nTemp;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("BackgroundColor"));
    if (aTmp.hasValue())
	    aTmp >>= mnBackColor;
	*rContents << ExportColor(mnBackColor);
	pBlockFlags[0] |= 0x02;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("TextColor"));
    if (aTmp.hasValue())
	    aTmp >>= mnForeColor;
	*rContents << ExportColor(mnForeColor);
	pBlockFlags[0] |= 0x04;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("Border"));
	sal_Int16 nBorder = sal_Int16();
	aTmp >>= nBorder;
	nSpecialEffect = ExportBorder(nBorder,nBorderStyle);
	*rContents << nBorderStyle;
	pBlockFlags[0] |= 0x10;
=====================================================================
Found a 12 line (128 tokens) duplication in the following files: 
Starting at line 2501 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2225 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x16 MSO_I, 10800 }, { 0x12 MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0xc MSO_I },

	{ 0x18 MSO_I, 0xc MSO_I }, { 0x18 MSO_I, 0x10 MSO_I }, { 0xe MSO_I, 0x10 MSO_I }, { 0xe MSO_I, 0xc MSO_I }
};
static const mso_CustomShape msoActionButtonEnd =
{
	(SvxMSDffVertPair*)mso_sptActionButtonEndVert, sizeof( mso_sptActionButtonEndVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptActionButtonBeginningEndSegm, sizeof( mso_sptActionButtonBeginningEndSegm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptActionButtonBeginningEndCalc, sizeof( mso_sptActionButtonBeginningEndCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptDefault1400,
	(SvxMSDffTextRectangles*)mso_sptActionButtonTextRect, sizeof( mso_sptActionButtonTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
=====================================================================
Found a 27 line (128 tokens) duplication in the following files: 
Starting at line 1163 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/itemset.cxx
Starting at line 1380 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/itemset.cxx

	DBG_ASSERT( GetPool() == rSet.GetPool(), "MergeValues mit verschiedenen Pools" );

	// teste mal, ob sich die Which-Bereiche unterscheiden.
	BOOL bEqual = TRUE;
	USHORT* pWh1 = _pWhichRanges;
	USHORT* pWh2 = rSet._pWhichRanges;
	USHORT nSize = 0;

	for( USHORT n = 0; *pWh1 && *pWh2; ++pWh1, ++pWh2, ++n )
	{
		if( *pWh1 != *pWh2 )
		{
			bEqual = FALSE;
			break;
		}
		if( n & 1 )
			nSize += ( *(pWh1) - *(pWh1-1) ) + 1;
	}
	bEqual = *pWh1 == *pWh2; // auch die 0 abpruefen

	// sind die Bereiche identisch, ist es effizieter zu handhaben !
	if( bEqual )
	{
		SfxItemArray ppFnd1 = _aItems;
		SfxItemArray ppFnd2 = rSet._aItems;

		for( ; nSize; --nSize, ++ppFnd1, ++ppFnd2 )
=====================================================================
Found a 32 line (128 tokens) duplication in the following files: 
Starting at line 1449 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/defaultregistry/defaultregistry.cxx
Starting at line 1960 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/implementationregistration/implreg.cxx
Starting at line 1273 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/invocation/invocation.cxx
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/loader/dllcomponentloader.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/namingservice/namingservice.cxx
Starting at line 670 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/registry_tdprovider/tdprovider.cxx
Starting at line 2132 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/servicemanager/servicemanager.cxx
Starting at line 1340 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/simpleregistry/simpleregistry.cxx
Starting at line 1191 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/tdmanager/tdmgr.cxx
Starting at line 977 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/typeconv/convert.cxx

		tcv_getSupportedServiceNames, createSingleComponentFactory,
		&g_moduleCount.modCnt , 0
	},
	{ 0, 0, 0, 0, 0, 0 }
};

extern "C"
{
sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
{
	return g_moduleCount.canUnload( &g_moduleCount , pTime );
}

//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	return component_writeInfoHelper( pServiceManager, pRegistryKey, g_entries );
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
	return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
}
}
=====================================================================
Found a 28 line (128 tokens) duplication in the following files: 
Starting at line 427 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviews7.cxx
Starting at line 1070 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/slidvish.cxx

		}

		if (bDisable)
		{
			rSet.DisableItem(SID_SUMMARY_PAGE);
		}
	}

	// Starten der Praesentation moeglich?
	if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_PRESENTATION ) ||
		SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_REHEARSE_TIMINGS ) )
	{
		BOOL bDisable = TRUE;
		USHORT nCount = GetDoc()->GetSdPageCount( PK_STANDARD );

		for( USHORT i = 0; i < nCount && bDisable; i++ )
		{
			SdPage* pPage = GetDoc()->GetSdPage(i, PK_STANDARD);

			if( !pPage->IsExcluded() )
				bDisable = FALSE;
		}
		if( bDisable || GetDocSh()->IsPreview())
		{
			rSet.DisableItem( SID_PRESENTATION );
			rSet.DisableItem( SID_REHEARSE_TIMINGS );
		}
	}
=====================================================================
Found a 6 line (128 tokens) duplication in the following files: 
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BOTTOM),			WID_PAGE_BOTTOM,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_LEFT),				WID_PAGE_LEFT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_RIGHT),			WID_PAGE_RIGHT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_TOP),				WID_PAGE_TOP,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_ORIENTATION),		WID_PAGE_ORIENT,	&::getCppuType((const view::PaperOrientation*)0),0,	0},
=====================================================================
Found a 18 line (128 tokens) duplication in the following files: 
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/outlinfo.cxx
Starting at line 236 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/_xfont.cxx

	const sal_Int32* pDXArray = pInfo->pDXArray;
	sal_Bool bUseBreakIterator(sal_False);

	Reference < com::sun::star::i18n::XBreakIterator > xBreak;
	Reference < XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
	Reference < XInterface > xInterface = xMSF->createInstance(::rtl::OUString::createFromAscii("com.sun.star.i18n.BreakIterator"));
	::com::sun::star::lang::Locale aFontLocale = SvxCreateLocale(pInfo->rFont.GetLanguage());
	
	if(xInterface.is())
	{
		Any x = xInterface->queryInterface(::getCppuType((const Reference< XBreakIterator >*)0));
		x >>= xBreak;
	}

	if(xBreak.is())
	{
		bUseBreakIterator = sal_True;
	}
=====================================================================
Found a 25 line (128 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/ppt/pptatom.cpp
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/svx/workben/msview/msview.cxx

}

/** returns the next child atom after pLast with nRecType or NULL */
const Atom* Atom::findNextChildAtom( sal_uInt16 nRecType, const Atom* pLast ) const
{
	Atom* pChild = pLast != NULL ? pLast->mpNextAtom : mpFirstChild;
	while( pChild && pChild->maRecordHeader.nRecType != nRecType )
	{
		pChild = pChild->mpNextAtom;
	}

	return pChild;
}

/** returns the next child atom after pLast with nRecType and nRecInstance or NULL */
const Atom* Atom::findNextChildAtom( sal_uInt16 nRecType, sal_uInt16 nRecInstance, const Atom* pLast ) const
{
	const Atom* pChild = pLast != NULL ? pLast->mpNextAtom : mpFirstChild;
	while( pChild && (pChild->maRecordHeader.nRecType != nRecType) && (pChild->maRecordHeader.nRecInstance != nRecInstance) )
	{
		pChild = findNextChildAtom( pChild );
	}

	return pChild;
}
=====================================================================
Found a 18 line (128 tokens) duplication in the following files: 
Starting at line 1634 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1687 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	sal_Bool bPosition(sal_False);
	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
			{
				nID = pChangeTrackingImportHelper->GetIDFromString(sValue);
			}
			else if (IsXMLToken(aLocalName, XML_POSITION))
			{
=====================================================================
Found a 32 line (128 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

						while (nErr == 0 && aValIter.GetNext(nCellVal, nErr))
						{
							fx = nCellVal;
							if (fx < 0.0)
							{
								fx *= -1.0;
								fSign *= -1.0;
							}
							fy = ScGetGGT(fx, fy);
						}
						SetError(nErr);
					}
					else
						SetError(errIllegalArgument);
				}
				break;
				case svMatrix :
				{
					ScMatrixRef pMat = PopMatrix();
					if (pMat)
					{
                        SCSIZE nC, nR;
                        pMat->GetDimensions(nC, nR);
						if (nC == 0 || nR == 0)
							SetError(errIllegalArgument);
						else
						{
							if (!pMat->IsValue(0))
							{
								SetIllegalArgument();
								return;
							}
=====================================================================
Found a 26 line (128 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen9.cxx
Starting at line 1618 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/drwlayer.cxx

				AddCalcUndo( new SdrUndoInsertObj( *pNewObject ) );

			//	handle chart data references (after InsertObject)

			if ( pNewObject->GetObjIdentifier() == OBJ_OLE2 )
			{
				uno::Reference< embed::XEmbeddedObject > xIPObj = ((SdrOle2Obj*)pNewObject)->GetObjRef();
				uno::Reference< embed::XClassifiedObject > xClassified( xIPObj, uno::UNO_QUERY );
				SvGlobalName aObjectClassName;
				if ( xClassified.is() )
			    {
					try {
						aObjectClassName = SvGlobalName( xClassified->getClassID() );
					} catch( uno::Exception& )
					{
						// TODO: handle error?
					}
				}

				if ( xIPObj.is() && SotExchange::IsChart( aObjectClassName ) )
				{
                    String aNewName = ((SdrOle2Obj*)pNewObject)->GetPersistName();

                    //! need to set new DataProvider, or does Chart handle this itself?

                    ScRangeListRef xRanges( new ScRangeList );
=====================================================================
Found a 33 line (128 tokens) duplication in the following files: 
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/source/bridge/remote_bridge.cxx
Starting at line 472 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/source/factory/bridgefactory.cxx
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/source/unourl_resolver/unourl_resolver.cxx
Starting at line 1449 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/defaultregistry/defaultregistry.cxx

		defreg_getSupportedServiceNames, createSingleComponentFactory,
		&g_moduleCount.modCnt , 0
	},
	{ 0, 0, 0, 0, 0, 0 }
};

extern "C"
{

sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
{
	return g_moduleCount.canUnload( &g_moduleCount , pTime );
}

//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	return component_writeInfoHelper( pServiceManager, pRegistryKey, g_entries );
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
	return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
}
}
=====================================================================
Found a 19 line (128 tokens) duplication in the following files: 
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/sft.c
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/ttcr.c

_inline sal_uInt32 GetUInt32(const sal_uInt8 *ptr, sal_uInt32 offset, int bigendian)
{
    sal_uInt32 t;
    assert(ptr != 0);


    if (bigendian) {
        t = (ptr+offset)[0] << 24 | (ptr+offset)[1] << 16 |
            (ptr+offset)[2] << 8  | (ptr+offset)[3];
    } else {
        t = (ptr+offset)[3] << 24 | (ptr+offset)[2] << 16 |
            (ptr+offset)[1] << 8  | (ptr+offset)[0];
    }

    return t;
}


_inline void PutInt16(sal_Int16 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian)
=====================================================================
Found a 9 line (128 tokens) duplication in the following files: 
Starting at line 2298 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 2310 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

				{
					m_pData->m_pTypeCollection = new ::cppu::OTypeCollection
									(	::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
									,	::getCppuType( ( const uno::Reference< embed::XStorage >* )NULL )
									,	::getCppuType( ( const uno::Reference< embed::XStorageRawAccess >* )NULL )
									,	::getCppuType( ( const uno::Reference< embed::XTransactedObject >* )NULL )
									,	::getCppuType( ( const uno::Reference< embed::XTransactionBroadcaster >* )NULL )
									,	::getCppuType( ( const uno::Reference< util::XModifiable >* )NULL )
									,	::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
=====================================================================
Found a 7 line (128 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
    };
=====================================================================
Found a 32 line (128 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/TextInputStream/TextInputStream.cxx
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/TextOutputStream/TextOutputStream.cxx
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acceptor.cxx
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/connector/connector.cxx
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/factreg.cxx
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/source/bridge/remote_bridge.cxx

		remotebridges_bridge::getSupportedServiceNames, createSingleComponentFactory,
		&g_moduleCount.modCnt , 0
	},
	{ 0, 0, 0, 0, 0, 0 }
};

extern "C"
{
sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
{
	return g_moduleCount.canUnload( &g_moduleCount , pTime );
}

//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	return component_writeInfoHelper( pServiceManager, pRegistryKey, g_entries );
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
	return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
}
}
=====================================================================
Found a 5 line (128 tokens) duplication in the following files: 
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 4 line (128 tokens) duplication in the following files: 
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
=====================================================================
Found a 4 line (128 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF00
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF10
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF20
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF30
=====================================================================
Found a 7 line (128 tokens) duplication in the following files: 
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
    };
=====================================================================
Found a 22 line (128 tokens) duplication in the following files: 
Starting at line 830 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1187 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

        if (( pReplacedImages != 0 ) || ( pRemovedImages != 0 ))
        {
            m_bModified = sal_True;
            m_bUserImageListModified[nIndex] = true;
        }
    }

    // Notify listeners
    uno::Reference< XImageManager > xThis( static_cast< OWeakObject* >( this ), UNO_QUERY );
    uno::Reference< XInterface > xIfac( xThis, UNO_QUERY );

    if ( pRemovedImages != 0 )
    {
        ConfigurationEvent aRemoveEvent;
        aRemoveEvent.aInfo           = uno::makeAny( nImageType );
        aRemoveEvent.Accessor        = uno::makeAny( xThis );
        aRemoveEvent.Source          = xIfac;
        aRemoveEvent.ResourceURL     = m_aResourceString;
        aRemoveEvent.Element         = uno::makeAny( uno::Reference< XNameAccess >(
                                            static_cast< OWeakObject *>( pRemovedImages ), UNO_QUERY ));
        implts_notifyContainerListener( aRemoveEvent, NotifyOp_Remove );
    }
=====================================================================
Found a 20 line (128 tokens) duplication in the following files: 
Starting at line 5053 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx
Starting at line 5129 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx

void SAL_CALL LayoutManager::setElementPosSize( const ::rtl::OUString& aName, const css::awt::Point& aPos, const css::awt::Size& aSize )
throw (RuntimeException)
{
    UIElement aUIElement;

    if ( implts_findElement( aName, aUIElement ))
    {
        if ( aUIElement.m_xUIElement.is() )
        {
            try
            {
                Reference< css::awt::XWindow > xWindow( aUIElement.m_xUIElement->getRealInterface(), UNO_QUERY );
                Reference< css::awt::XWindow2 > xWindow2( aUIElement.m_xUIElement->getRealInterface(), UNO_QUERY );
                Reference< css::awt::XDockableWindow > xDockWindow( xWindow, UNO_QUERY );

                if ( xWindow.is() && xWindow2.is() && xDockWindow.is() )
                {
                    if ( aUIElement.m_bFloating )
                    {
                        xWindow2->setPosSize( aPos.X, aPos.Y, 0, 0, css::awt::PosSize::POS );
=====================================================================
Found a 36 line (128 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsdocumenthandler.cxx
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsdocumenthandler.cxx

				for ( sal_Int16 n = 0; n < xAttribs->getLength(); n++ )
				{
					pEventEntry = m_aEventsMap.find( xAttribs->getNameByIndex( n ) );
					if ( pEventEntry != m_aEventsMap.end() )
					{
						switch ( pEventEntry->second )
						{
							case EV_ATTRIBUTE_TYPE:
							{
								aLanguage = xAttribs->getValueByIndex( n );
							}
							break;

							case EV_ATTRIBUTE_NAME:
							{
								aEventName = xAttribs->getValueByIndex( n );
							}
							break;

							case XL_ATTRIBUTE_HREF:
							{
								aURL = xAttribs->getValueByIndex( n );
							}
							break;

							case EV_ATTRIBUTE_MACRONAME:
							{
								aMacroName = xAttribs->getValueByIndex( n );
							}
							break;

							case EV_ATTRIBUTE_LIBRARY:
							{
								aLibrary = xAttribs->getValueByIndex( n );
							}
							break;
=====================================================================
Found a 27 line (128 tokens) duplication in the following files: 
Starting at line 669 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltfilter/XSLTFilter.cxx
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx

sal_Bool SAL_CALL component_writeInfo(void * pServiceManager, void * pRegistryKey )
{
    if (pRegistryKey)
	{
        try
        {
            Reference< XRegistryKey > xNewKey(
                reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
                    OUString::createFromAscii( "/" IMPLEMENTATION_NAME "/UNO/SERVICES" ) ) );

            const Sequence< OUString > & rSNL = getSupportedServiceNames();
            const OUString * pArray = rSNL.getConstArray();
            for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
                xNewKey->createKey( pArray[nPos] );

            return sal_True;
        }
        catch (InvalidRegistryException &)
        {
            OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
        }
    }
    return sal_False;
}

void * SAL_CALL component_getFactory(
    const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
=====================================================================
Found a 16 line (128 tokens) duplication in the following files: 
Starting at line 444 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfileview.cxx
Starting at line 633 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/docvw/srcedtw.cxx

IMPL_LINK(SwSrcEditWindow, ScrollHdl, ScrollBar*, pScroll)
{
	if(pScroll == pVScrollbar)
	{
		long nDiff = pTextView->GetStartDocPos().Y() - pScroll->GetThumbPos();
		GetTextView()->Scroll( 0, nDiff );
		pTextView->ShowCursor( FALSE, TRUE );
		pScroll->SetThumbPos( pTextView->GetStartDocPos().Y() );
	}
	else
	{
		long nDiff = pTextView->GetStartDocPos().X() - pScroll->GetThumbPos();
		GetTextView()->Scroll( nDiff, 0 );
		pTextView->ShowCursor( FALSE, TRUE );
		pScroll->SetThumbPos( pTextView->GetStartDocPos().X() );
	}
=====================================================================
Found a 7 line (128 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
    };
=====================================================================
Found a 8 line (128 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,   27,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
=====================================================================
Found a 15 line (128 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olevisual.cxx
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olevisual.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObject::getVisualAreaSize" );

	::osl::ResettableMutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object is not loaded!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
=====================================================================
Found a 38 line (128 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/dtobj/XTDataObject.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/workbench/XTDo.cxx

	if ( NULL == ppvObject )
		return E_INVALIDARG;

	HRESULT hr = E_NOINTERFACE;

	*ppvObject = NULL;

	if ( ( __uuidof( IUnknown ) == iid ) || ( __uuidof( IDataObject ) == iid ) )
	{
		*ppvObject = static_cast< IUnknown* >( this );
		( (LPUNKNOWN)*ppvObject )->AddRef( );
		hr = S_OK;
	}

	return hr;
}

//------------------------------------------------------------------------
// IUnknown->AddRef
//------------------------------------------------------------------------

STDMETHODIMP_(ULONG) CXTDataObject::AddRef( )
{
	return static_cast< ULONG >( InterlockedIncrement( &m_nRefCnt ) );
}

//------------------------------------------------------------------------
// IUnknown->Release
//------------------------------------------------------------------------

STDMETHODIMP_(ULONG) CXTDataObject::Release( )
{
	// we need a helper variable because it's
	// not allowed to access a member variable
	// after an object is destroyed
	ULONG nRefCnt = static_cast< ULONG >( InterlockedDecrement( &m_nRefCnt ) );

	if ( 0 == nRefCnt )
=====================================================================
Found a 27 line (128 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/eold.c
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/eold.c

void main_env () {
    char **ppCurEnv;
    char *pCurPos;
    struct equalpos *pNewEqual;

    gpEqualList = NULL;

    for (ppCurEnv = environ; *ppCurEnv != NULL; ++ppCurEnv) {
        for (pCurPos = *ppCurEnv; *pCurPos != '\0'; ++pCurPos) {
            if (*pCurPos == '=') {
                if ((pNewEqual =
                     (struct EqualPos *) malloc (sizeof (struct EqualPos))) ==
                    NULL) {
                    fputs ("Out of Memory", stderr);
                    exit (EXIT_FAILURE);
                } /* if */
                pNewEqual->fpPos = pCurPos;
                pNewEqual->fpNext = gpEqualList;
                gpEqualList = pNewEqual;
                
                *pCurPos = gEqualReplace;
            } /* if */
        } /* for */

        *pCurPos = '=';
    } /* for */
} /* void main_env () */
=====================================================================
Found a 32 line (128 tokens) duplication in the following files: 
Starting at line 419 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/dbug/malloc/malloc.c
Starting at line 483 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/dbug/malloc/malloc.c

	t = "Warning: ";
	while( *s = *t++)
	{
		s++;
	}
	t = funcname;
	while( *s = *t++)
	{
		s++;
	}

	t = "(): ";
	while( *s = *t++)
	{
		s++;
	}

	t = malloc_err_strings[malloc_errno];
	while( *s = *t++)
	{
		s++;
	}

	*(s++) = '\n';

	if( write(malloc_errfd,errbuf,(unsigned)(s-errbuf)) != (s-errbuf))
	{
		(void) write(2,"I/O error to error file\n",(unsigned)24);
		exit(110);
	}

	malloc_err_handler(malloc_warn_level);
=====================================================================
Found a 25 line (128 tokens) duplication in the following files: 
Starting at line 969 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/gui/dp_gui_dialog.cxx
Starting at line 1013 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/gui/dp_gui_dialog.cxx

void DialogImpl::clickEnableDisable( USHORT id )
{
    const ::std::vector< ::std::pair< Reference<deployment::XPackage>,
        Reference<deployment::XPackageManager> > > selection(
            m_treelb->getSelectedPackages(true) );
    OSL_ASSERT( selection.size() > 0 );

    //Check if we want to remove a shared extension and notify user if necessary
    for (TreeListBoxImpl::CI_PAIR_PACKAGE i = selection.begin();
         i != selection.end(); i++)
    {
        if (! continueActionOnSharedExtension(i->second))
        {
            return;
        }
        else
        {
            //We only show the the messagebox once
            if (i->second->getContext().equals(OUSTR("shared")))
                break;
        }
    }

    ::rtl::Reference<ProgressCommandEnv> currentCmdEnv(
        new ProgressCommandEnv( m_xComponentContext, this, id == RID_BTN_ENABLE
=====================================================================
Found a 14 line (128 tokens) duplication in the following files: 
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/control/RelationControl.cxx
Starting at line 613 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/ui/dlg/GroupsSorting.cxx

	String aText  =const_cast< OFieldExpressionControl*>(this)->GetCellText( m_nCurrentPos, nColumnId );

	Point aPos( rRect.TopLeft() );			
	Size aTextSize( GetDataWindow().GetTextHeight(),GetDataWindow().GetTextWidth( aText ));

	if( aPos.X() < rRect.Right() || aPos.X() + aTextSize.Width() > rRect.Right() ||
		aPos.Y() < rRect.Top() || aPos.Y() + aTextSize.Height() > rRect.Bottom() )
		rDev.SetClipRegion( rRect );

	rDev.DrawText( aPos, aText );

	if( rDev.IsClipRegion() )
		rDev.SetClipRegion();
}
=====================================================================
Found a 23 line (128 tokens) duplication in the following files: 
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MPreparedStatement.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SPreparedStatement.cxx

}
// -----------------------------------------------------------------------------
void SAL_CALL OPreparedStatement::acquire() throw()
{
	OStatement_BASE2::acquire();
}
// -----------------------------------------------------------------------------
void SAL_CALL OPreparedStatement::release() throw()
{
	OStatement_BASE2::release();
}
// -----------------------------------------------------------------------------
Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
	Any aRet = OStatement_BASE2::queryInterface(rType);
	if(!aRet.hasValue())
		aRet = OPreparedStatement_BASE::queryInterface(rType);
	return aRet;
}
// -------------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OPreparedStatement::getTypes(  ) throw(::com::sun::star::uno::RuntimeException)
{
	return concatSequences(OPreparedStatement_BASE::getTypes(),OStatement_BASE2::getTypes());
=====================================================================
Found a 23 line (128 tokens) duplication in the following files: 
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/kab/KTables.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MTables.cxx

sdbcx::ObjectType OTables::createObject(const ::rtl::OUString& _rName)
{
	::rtl::OUString aName,aSchema;
	// sal_Int32 nLen = _rName.indexOf('.');
	// aSchema = _rName.copy(0,nLen);
	// aName	= _rName.copy(nLen+1);
    aSchema = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%"));
    aName = _rName;

    Sequence< ::rtl::OUString > aTypes(1);
	aTypes[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%"));
	//	aTypes[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("TABLE"));
	//	aTypes[1] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("SYSTEMTABLE"));
	::rtl::OUString sEmpty;

    Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes);

    sdbcx::ObjectType xRet = NULL;
	if(xResult.is())
	{
        Reference< XRow > xRow(xResult,UNO_QUERY);
		if(xResult->next()) // there can be only one table with this name
		{
=====================================================================
Found a 37 line (128 tokens) duplication in the following files: 
Starting at line 727 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 425 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

	return sal_True; // should be supported at least
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInTableDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInTableDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInDataManipulation(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
=====================================================================
Found a 23 line (128 tokens) duplication in the following files: 
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

    aRow[6] = new ORowSetValueDecorator(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("VARCHAR")));
    // COLUMN_SIZE
    aRow[7] = new ORowSetValueDecorator(s_nCOLUMN_SIZE);
    // BUFFER_LENGTH, not used
    aRow[8] = ODatabaseMetaDataResultSet::getEmptyValue();
    // DECIMAL_DIGITS.
    aRow[9] = new ORowSetValueDecorator(s_nDECIMAL_DIGITS);
    // NUM_PREC_RADIX
    aRow[10] = new ORowSetValueDecorator((sal_Int32)10);
    // NULLABLE
    aRow[11] = new ORowSetValueDecorator(s_nNULLABLE);
    // REMARKS
    aRow[12] = ODatabaseMetaDataResultSet::getEmptyValue();
    // COULUMN_DEF, not used
    aRow[13] = ODatabaseMetaDataResultSet::getEmptyValue();
    // SQL_DATA_TYPE, not used
    aRow[14] = ODatabaseMetaDataResultSet::getEmptyValue();
    // SQL_DATETIME_SUB, not used
    aRow[15] = ODatabaseMetaDataResultSet::getEmptyValue();
    // CHAR_OCTET_LENGTH, refer to [5]
    aRow[16] = new ORowSetValueDecorator(s_nCHAR_OCTET_LENGTH);
    // IS_NULLABLE
    aRow[18] = new ORowSetValueDecorator(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("YES")));
=====================================================================
Found a 18 line (128 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx

		GuardedValueSetUpdateAccess lock( rNode );

		Tree const aTree( lock.getTree() );
		NodeRef const aNode( lock.getNode() );

		Name aChildName = validateElementName(sName,aTree,aNode);

		if( aTree.hasElement(aNode,aChildName) )
		{
		    OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot insert into Set. Element '") );
			sMessage += sName;
			sMessage += OUString( RTL_CONSTASCII_USTRINGPARAM("' is already present in Set ")  );
			sMessage += aTree.getAbsolutePath(aNode).toString();

			Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
			throw ElementExistException( sMessage, xContext );
		}
		OSL_ENSURE(!configuration::hasChildOrElement(aTree,aNode,aChildName),"ERROR: Configuration: Existing Set element not found by implementation");
=====================================================================
Found a 20 line (128 tokens) duplication in the following files: 
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx
Starting at line 342 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx

		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot replace Set Element: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw NoSuchElementException( e.message(), xContext );
	}
	catch (configuration::TypeMismatch& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.illegalArgument(2);
	}
	catch (configuration::ConstraintViolation& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.illegalArgument(2);
	}
	catch (configuration::WrappedUnoException& ex)
	{
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot replace Set Element: ") );
=====================================================================
Found a 27 line (128 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppuoptions.cxx

					throw IllegalArgument("the option is unknown" + OString(av[i]));
			}
		} else
		{
			if (av[i][0] == '@')
			{
				FILE* cmdFile = fopen(av[i]+1, "r");
		  		if( cmdFile == NULL )
      			{
					fprintf(stderr, "%s", prepareHelp().getStr());
					ret = sal_False;
				} else
				{
					int rargc=0;
					char* rargv[512];
					char  buffer[512];

					while ( fscanf(cmdFile, "%s", buffer) != EOF )
					{
						rargv[rargc]= strdup(buffer);
						rargc++;
					}
					fclose(cmdFile);
					
					ret = initOptions(rargc, rargv, bCmdFile);
					
					for (long j=0; j < rargc; j++) 
=====================================================================
Found a 32 line (128 tokens) duplication in the following files: 
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

					 : : "m"(nRegReturn[0]) );
			break;
	}
}


//==================================================================================================
class MediateClassData
{
    typedef ::std::hash_map< OUString, void *, OUStringHash > t_classdata_map;
	t_classdata_map m_map;
	Mutex m_mutex;
    
public:
	void const * get_vtable( typelib_InterfaceTypeDescription * pTD ) SAL_THROW( () );
    
	inline MediateClassData() SAL_THROW( () )
        {}
	~MediateClassData() SAL_THROW( () );
};
//__________________________________________________________________________________________________
MediateClassData::~MediateClassData() SAL_THROW( () )
{
	OSL_TRACE( "> calling ~MediateClassData(): freeing mediate vtables." );
	
	for ( t_classdata_map::const_iterator iPos( m_map.begin() ); iPos != m_map.end(); ++iPos )
	{
		::rtl_freeMemory( iPos->second );
	}
}
//--------------------------------------------------------------------------------------------------
static inline void codeSnippet( char * code, sal_uInt32 vtable_pos, bool simple_ret_type ) SAL_THROW( () )
=====================================================================
Found a 26 line (128 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx

			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 21 line (128 tokens) duplication in the following files: 
Starting at line 472 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 436 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx

    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /*functionCount*/, sal_Int32 vtableOffset)
{
    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
=====================================================================
Found a 32 line (128 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx

				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if ( pCppReturn ) // has complex return
		{
			if ( pUnoReturn != pCppReturn ) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if ( pReturnTypeDescr )
		{
			typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
			return eRet;
		}
		else
			return typelib_TypeClass_VOID;
	}
}
=====================================================================
Found a 26 line (128 tokens) duplication in the following files: 
Starting at line 476 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 671 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

    void ** slots = mapBlockToVtable(block);
    slots[-2] = 0;
    slots[-1] = 0;
    return slots;
}

unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
    void ** slots, unsigned char * code,
    typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
    sal_Int32 /* functionCount */, sal_Int32 vtableOffset)
{

  // fprintf(stderr, "in addLocalFunctions functionOffset is %x\n",functionOffset);
  // fprintf(stderr, "in addLocalFunctions vtableOffset is %x\n",vtableOffset);
  // fflush(stderr);

    for (sal_Int32 i = 0; i < type->nMembers; ++i) {
        typelib_TypeDescription * member = 0;
        TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
        OSL_ASSERT(member != 0);
        switch (member->eTypeClass) {
        case typelib_TypeClass_INTERFACE_ATTRIBUTE:
            // Getter:
            *slots++ = code;
            code = codeSnippet(
                code, functionOffset++, vtableOffset,
=====================================================================
Found a 37 line (127 tokens) duplication in the following files: 
Starting at line 3244 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 4115 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

     case OOXML_ELEMENT_drawingml_alphaBiLevel:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_AlphaBiLevelEffect(*this));
         }
             break;
     case OOXML_ELEMENT_drawingml_alphaCeiling:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_AlphaCeilingEffect(*this));
         }
             break;
     case OOXML_ELEMENT_drawingml_alphaFloor:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_AlphaFloorEffect(*this));
         }
             break;
     case OOXML_ELEMENT_drawingml_alphaInv:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_AlphaInverseEffect(*this));
         }
             break;
     case OOXML_ELEMENT_drawingml_alphaMod:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_AlphaModulateEffect(*this));
         }
             break;
     case OOXML_ELEMENT_drawingml_alphaModFix:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_AlphaModulateFixedEffect(*this));
         }
             break;
     case OOXML_ELEMENT_drawingml_alphaOutset:
=====================================================================
Found a 16 line (127 tokens) duplication in the following files: 
Starting at line 6331 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6637 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        0x00,0x7C,0x04,0x08,0x10,0x20,0x40,0x40,0x7C,0x00,0x00,0x00,

        7, // 0x5B '['
        0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x38,0x00,

        7, // 0x5C '\'
        0x00,0x40,0x40,0x20,0x20,0x10,0x10,0x08,0x08,0x04,0x04,0x00,

        7, // 0x5D ']'
        0x38,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x38,0x00,

        7, // 0x5E '^'
        0x00,0x10,0x28,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

        7, // 0x5F '_'
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x00,0x00,0x00,
=====================================================================
Found a 19 line (127 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 521 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                                  image_filter_shift;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0]     += weight * *fg_ptr++;
                            fg[1]     += weight * *fg_ptr++;
                            fg[2]     += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }

                        x_lr--;
=====================================================================
Found a 23 line (127 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_base.h
Starting at line 385 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_base.h

        void blend_opaque_color_vspan(int x, int y, int len, 
                                      const color_type* colors, 
                                      const cover_type* covers,
                                      cover_type cover = cover_full)
        {
            if(x > xmax()) return;
            if(x < xmin()) return;

            if(y < ymin())
            {
                int d = ymin() - y;
                len -= d;
                if(len <= 0) return;
                if(covers) covers += d;
                colors += d;
                y = ymin();
            }
            if(y + len > ymax())
            {
                len = ymax() - y + 1;
                if(len <= 0) return;
            }
            m_ren->blend_opaque_color_vspan(x, y, len, colors, covers, cover);
=====================================================================
Found a 23 line (127 tokens) duplication in the following files: 
Starting at line 306 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_base.h
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_base.h

        void blend_opaque_color_hspan(int x, int y, int len, 
                                      const color_type* colors, 
                                      const cover_type* covers,
                                      cover_type cover = cover_full)
        {
            if(y > ymax()) return;
            if(y < ymin()) return;

            if(x < xmin())
            {
                int d = xmin() - x;
                len -= d;
                if(len <= 0) return;
                if(covers) covers += d;
                colors += d;
                x = xmin();
            }
            if(x + len > xmax())
            {
                len = xmax() - x + 1;
                if(len <= 0) return;
            }
            m_ren->blend_opaque_color_hspan(x, y, len, colors, covers, cover);
=====================================================================
Found a 22 line (127 tokens) duplication in the following files: 
Starting at line 566 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salnativewidgets-luna.cxx
Starting at line 591 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salnativewidgets-luna.cxx

        if( nPart == PART_ALL_BUTTONS )
        {
            SpinbuttonValue *pValue = (SpinbuttonValue*) aValue.getOptionalVal();
            if( pValue )
            {
                BOOL bOk = FALSE;

                RECT rect;
                ImplConvertSpinbuttonValues( pValue->mnUpperPart, pValue->mnUpperState, pValue->maUpperRect, &iPart, &iState, &rect );
                bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption);

                if( bOk )
                {
                    ImplConvertSpinbuttonValues( pValue->mnLowerPart, pValue->mnLowerState, pValue->maLowerRect, &iPart, &iState, &rect );
                    bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption);
                }

                return bOk;
            }
        }

        if( nPart == PART_BUTTON_DOWN )
=====================================================================
Found a 15 line (127 tokens) duplication in the following files: 
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/app/salinfo.cxx
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/app/salinfo.cxx

    {
        int w = GetSystemMetrics( SM_CXSCREEN );
        int h = GetSystemMetrics( SM_CYSCREEN );
        m_aMonitors.push_back( DisplayMonitor( rtl::OUString(),
                                               rtl::OUString(),
                                               Rectangle( Point(), Size( w, h ) ),
                                               Rectangle( Point(), Size( w, h ) ),
                                               0 ) );
        m_aDeviceNameToMonitor[ rtl::OUString() ] = 0;
        m_nPrimary = 0;
        RECT aWorkRect;
        if( SystemParametersInfo( SPI_GETWORKAREA, 0, &aWorkRect, 0 ) )
            m_aMonitors.back().m_aWorkArea =  Rectangle( aWorkRect.left, aWorkRect.top,
                                                         aWorkRect.right, aWorkRect.bottom );
    }
=====================================================================
Found a 22 line (127 tokens) duplication in the following files: 
Starting at line 1163 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/combobox.cxx
Starting at line 1326 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/lstbox.cxx

		aSz.Width() = nColumns * GetTextWidth( XubString( 'X' ) );
	else
		aSz.Width() = aMinSz.Width();

	if ( IsDropDownBox() )
		aSz.Width() += GetSettings().GetStyleSettings().GetScrollBarSize();

	if ( !IsDropDownBox() )
	{
		if ( aSz.Width() < aMinSz.Width() )
			aSz.Height() += GetSettings().GetStyleSettings().GetScrollBarSize();
		if ( aSz.Height() < aMinSz.Height() )
			aSz.Width() += GetSettings().GetStyleSettings().GetScrollBarSize();
	}

	aSz = CalcWindowSize( aSz );
	return aSz;
}

// -----------------------------------------------------------------------

void ListBox::GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const
=====================================================================
Found a 30 line (127 tokens) duplication in the following files: 
Starting at line 1576 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 1637 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                if ( xDataSink.is() )
                {
                    // PULL: wait for client read

                    // May throw CommandFailedException, DocumentPasswordRequest!
                    uno::Reference< io::XInputStream > xIn = getInputStream( xEnv );
                    if ( !xIn.is() )
                    {
                        // No interaction if we are not persistent!
                        uno::Any aProps
                            = uno::makeAny(
                                     beans::PropertyValue(
                                         rtl::OUString(
                                             RTL_CONSTASCII_USTRINGPARAM("Uri")),
                                         -1,
                                         uno::makeAny(m_xIdentifier->
                                                          getContentIdentifier()),
                                         beans::PropertyState_DIRECT_VALUE));
                        ucbhelper::cancelCommandExecution(
                            ucb::IOErrorCode_CANT_READ,
                            uno::Sequence< uno::Any >(&aProps, 1),
                            m_eState == PERSISTENT
                                ? xEnv
                                : uno::Reference<
                                      ucb::XCommandEnvironment >(),
                            rtl::OUString::createFromAscii(
                                "Got no data stream!" ),
                            this );
                        // Unreachable
                    }
=====================================================================
Found a 31 line (127 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 717 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

uno::Any SAL_CALL Content::execute(
        const ucb::Command& aCommand,
        sal_Int32 /*CommandId*/,
        const uno::Reference< ucb::XCommandEnvironment >& Environment )
    throw( uno::Exception,
           ucb::CommandAbortedException,
           uno::RuntimeException )
{
    uno::Any aRet;
    
    if ( aCommand.Name.equalsAsciiL(
             RTL_CONSTASCII_STRINGPARAM( "getPropertyValues" ) ) )
    {
      	//////////////////////////////////////////////////////////////////
      	// getPropertyValues
      	//////////////////////////////////////////////////////////////////

        uno::Sequence< beans::Property > Properties;
      	if ( !( aCommand.Argument >>= Properties ) )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

      	aRet <<= getPropertyValues( Properties, Environment );
=====================================================================
Found a 24 line (127 tokens) duplication in the following files: 
Starting at line 2010 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrols.cxx
Starting at line 2417 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrols.cxx

	const ::rtl::OUString* pOldData = aSeq.getConstArray();

	if ( ( nPos < 0 ) || ( nPos > nOldLen ) )
		nPos = (sal_uInt16) nOldLen;

	sal_uInt16 n;
	// Items vor der Einfuege-Position
	for ( n = 0; n < nPos; n++ )
		pNewData[n] = pOldData[n];

	// Neue Items
	for ( n = 0; n < nNewItems; n++ )
		pNewData[nPos+n] = aItems.getConstArray()[n];

	// Rest der alten Items
	for ( n = nPos; n < nOldLen; n++ )
		pNewData[nNewItems+n] = pOldData[n];

	uno::Any aAny;
	aAny <<= aNewSeq;
	ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_STRINGITEMLIST ), aAny, sal_True );
}

void UnoComboBoxControl::removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(uno::RuntimeException)
=====================================================================
Found a 13 line (127 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

    virtual TestData SAL_CALL getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
											   sal_Int16& nShort, sal_uInt16& nUShort,
											   sal_Int32& nLong, sal_uInt32& nULong,
											   sal_Int64& nHyper, sal_uInt64& nUHyper,
											   float& fFloat, double& fDouble,
											   TestEnum& eEnum, rtl::OUString& rStr,
											   ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
											   ::com::sun::star::uno::Any& rAny,
											   ::com::sun::star::uno::Sequence< TestElement >& rSequence,
											   TestData& rStruct )
		throw(com::sun::star::uno::RuntimeException);
	
    virtual sal_Bool SAL_CALL getBool() throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 8 line (127 tokens) duplication in the following files: 
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  1,  0,  1,  0,  0,  	0,  0,  0,  0,  0,	  	// <, >
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,  // 100 - 149
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
=====================================================================
Found a 27 line (127 tokens) duplication in the following files: 
Starting at line 3447 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 4145 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 4274 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

void SwHTMLParser::NewDefList()
{
	String aId, aStyle, aClass, aLang, aDir;

	const HTMLOptions *pOptions = GetOptions();
	for( USHORT i = pOptions->Count(); i; )
	{
		const HTMLOption *pOption = (*pOptions)[--i];
		switch( pOption->GetToken() )
		{
			case HTML_O_ID:
				aId = pOption->GetString();
				break;
			case HTML_O_STYLE:
				aStyle = pOption->GetString();
				break;
			case HTML_O_CLASS:
				aClass = pOption->GetString();
				break;
			case HTML_O_LANG:
				aLang = pOption->GetString();
				break;
			case HTML_O_DIR:
				aDir = pOption->GetString();
				break;
		}
	}
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 38 line (127 tokens) duplication in the following files: 
Starting at line 1907 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/fly.cxx
Starting at line 2006 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/fly.cxx

			const BOOL bOldLocked = bLocked;
			Unlock();
            if ( IsFlyFreeFrm() )
            {
                // --> OD 2004-11-12 #i37068# - no format of position here
                // and prevent move in method <CheckClip(..)>.
                // This is needed to prevent layout loop caused by nested
                // Writer fly frames - inner Writer fly frames format its
                // anchor, which grows/shrinks the outer Writer fly frame.
                // Note: position will be invalidated below.
                bValidPos = TRUE;
                // --> OD 2005-10-10 #i55416#
                // Suppress format of width for autowidth frame, because the
                // format of the width would call <SwTxtFrm::CalcFitToContent()>
                // for the lower frame, which initiated this shrink.
                const BOOL bOldFormatHeightOnly = bFormatHeightOnly;
                const SwFmtFrmSize& rFrmSz = GetFmt()->GetFrmSize();
                if ( rFrmSz.GetWidthSizeType() != ATT_FIX_SIZE )
                {
                    bFormatHeightOnly = TRUE;
                }
                // <--
                static_cast<SwFlyFreeFrm*>(this)->SetNoMoveOnCheckClip( true );
                ((SwFlyFreeFrm*)this)->SwFlyFreeFrm::MakeAll();
                static_cast<SwFlyFreeFrm*>(this)->SetNoMoveOnCheckClip( false );
                // --> OD 2005-10-10 #i55416#
                if ( rFrmSz.GetWidthSizeType() != ATT_FIX_SIZE )
                {
                    bFormatHeightOnly = bOldFormatHeightOnly;
                }
                // <--
                // <--
            }
            else
				MakeAll();
			_InvalidateSize();
			InvalidatePos();
			if ( bOldLocked )
=====================================================================
Found a 10 line (127 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxtr.cxx
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxtr.cxx

{
	long nHDist=GetTextLeftDistance()+GetTextRightDistance();
	long nVDist=GetTextUpperDistance()+GetTextLowerDistance();
	long nTWdt0=aRect.GetWidth ()-1-nHDist; if (nTWdt0<0) nTWdt0=0;
	long nTHgt0=aRect.GetHeight()-1-nVDist; if (nTHgt0<0) nTHgt0=0;
	long nTWdt1=rRect.GetWidth ()-1-nHDist; if (nTWdt1<0) nTWdt1=0;
	long nTHgt1=rRect.GetHeight()-1-nVDist; if (nTHgt1<0) nTHgt1=0;
	aRect=rRect;
	ImpJustifyRect(aRect);
	if (bTextFrame) {
=====================================================================
Found a 10 line (127 tokens) duplication in the following files: 
Starting at line 475 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx
Starting at line 612 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx

	Rectangle aOld(GetSnapRect());
	long nMulX=rRect.Right()-rRect.Left();
	long nDivX=aOld.Right()-aOld.Left();
	long nMulY=rRect.Bottom()-rRect.Top();
	long nDivY=aOld.Bottom()-aOld.Top();
	if (nDivX==0) { nMulX=1; nDivX=1; }
	if (nDivY==0) { nMulY=1; nDivY=1; }
	if (nMulX!=nDivX || nMulY!=nDivY) {
		Fraction aX(nMulX,nDivX);
		Fraction aY(nMulY,nDivY);
=====================================================================
Found a 20 line (127 tokens) duplication in the following files: 
Starting at line 1925 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit4.cxx
Starting at line 1999 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit4.cxx

            if ( !( aEPaM < CreateEPaM( rSelection.Max()) ) )
                break;
        }

        aCurSel = SelectWord( aCurSel, ::com::sun::star::i18n::WordType::DICTIONARY_WORD );
        aWord = GetSelected( aCurSel );

        // Wenn Punkt dahinter, muss dieser mit uebergeben werden !
        // Falls Abkuerzung...
        if ( aWord.Len() && ( aCurSel.Max().GetIndex() < aCurSel.Max().GetNode()->Len() ) )
        {
            sal_Unicode cNext = aCurSel.Max().GetNode()->GetChar( aCurSel.Max().GetIndex() );
            if ( cNext == '.' )
            {
                aCurSel.Max().GetIndex()++;
                aWord += cNext;
            }
        }

        if ( aWord.Len() > 0 )
=====================================================================
Found a 5 line (127 tokens) duplication in the following files: 
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/editeng.cxx
Starting at line 941 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/editeng.cxx

						aLog << '' << endl << "Debug: ";
						aLog << GetText( "\n\r" ).GetStr();
						aLog << endl << endl;
						aLog << "Ref-Device: " << String( (sal_uInt32)GetRefDevice() ).GetStr() << " Type=" << String( (sal_uInt16)GetRefDevice()->GetOutDevType() ).GetStr() << ", MapX=" << String( GetRefDevice()->GetMapMode().GetScaleX().GetNumerator() ).GetStr() << "/" << String( GetRefDevice()->GetMapMode().GetScaleX().GetDenominator() ).GetStr() <<endl;
						aLog << "Paper-Width: " << String( GetPaperSize().Width() ).GetStr() << ",\tCalculated: " << String( CalcTextWidth() ).GetStr() << endl;
=====================================================================
Found a 17 line (127 tokens) duplication in the following files: 
Starting at line 2434 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2159 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0xa MSO_I, 10800 }, { 0xe MSO_I, 0xc MSO_I }, { 0xe MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0xc MSO_I },
	{ 0x14 MSO_I, 0xc MSO_I }, { 0x14 MSO_I, 0x10 MSO_I }, { 0x12 MSO_I, 0x10 MSO_I }
};
static const sal_uInt16 mso_sptActionButtonBeginningEndSegm[] =
{
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,	

	0x4000, 0x0002, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptActionButtonBeginningEndCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 20 line (127 tokens) duplication in the following files: 
Starting at line 1233 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1114 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x6000, DFF_Prop_adjustValue, 0x0403, 0 }					// 16
};
static const sal_Int32 mso_sptCurvedArrowDefault[] =
{
	3, 13000, 19400, 14400
};
static const SvxMSDffTextRectangles mso_sptCurvedArrowTextRect[] =	// todo
{
	{ { 0, 0 }, { 21600, 21600 } }
};
static const mso_CustomShape msoCurvedArrow =
{
	(SvxMSDffVertPair*)mso_sptCurvedArrowVert, sizeof( mso_sptCurvedArrowVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptCurvedArrowSegm, sizeof( mso_sptCurvedArrowSegm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptCurvedArrowCalc, sizeof( mso_sptCurvedArrowCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptCurvedArrowDefault,
	(SvxMSDffTextRectangles*)mso_sptCurvedArrowTextRect, sizeof( mso_sptCurvedArrowTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 28 line (127 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 433 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx

void ToolboxController::addStatusListener( const rtl::OUString& aCommandURL )
{
    Reference< XDispatch >       xDispatch;
    Reference< XStatusListener > xStatusListener;
    com::sun::star::util::URL    aTargetURL;

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        URLToDispatchMap::iterator pIter = m_aListenerMap.find( aCommandURL );
        
        // Already in the list of status listener. Do nothing.
        if ( pIter != m_aListenerMap.end() )
            return;

        // Check if we are already initialized. Implementation starts adding itself as status listener when
        // intialize is called.
        if ( !m_bInitialized )
        {
            // Put into the hash_map of status listener. Will be activated when initialized is called
            m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, Reference< XDispatch >() ));
            return;
        }
        else
        {
            // Add status listener directly as intialize has already been called.
            Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
            if ( m_xServiceManager.is() && xDispatchProvider.is() )
            {
=====================================================================
Found a 11 line (127 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/defaultregistry/defaultregistry.cxx
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/simpleregistry/simpleregistry.cxx

    virtual Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) throw(RuntimeException);

	// XSimpleRegistry
    virtual OUString SAL_CALL getURL() throw(RuntimeException);
    virtual void SAL_CALL open( const OUString& rURL, sal_Bool bReadOnly, sal_Bool bCreate ) throw(InvalidRegistryException, RuntimeException);
    virtual sal_Bool SAL_CALL isValid(  ) throw(RuntimeException);
    virtual void SAL_CALL close(  ) throw(InvalidRegistryException, RuntimeException);
    virtual void SAL_CALL destroy(  ) throw(InvalidRegistryException, RuntimeException);
    virtual Reference< XRegistryKey > SAL_CALL getRootKey(  ) throw(InvalidRegistryException, RuntimeException);
    virtual sal_Bool SAL_CALL isReadOnly(  ) throw(InvalidRegistryException, RuntimeException);
    virtual void SAL_CALL mergeKey( const OUString& aKeyName, const OUString& aUrl ) throw(InvalidRegistryException, MergeConflictException, RuntimeException);
=====================================================================
Found a 17 line (127 tokens) duplication in the following files: 
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/menu/mnumgr.cxx
Starting at line 421 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/menu/mnumgr.cxx

    USHORT n, nCount = pSVMenu->GetItemCount();
    for ( n=0; n<nCount; n++ )
    {
        USHORT nId = pSVMenu->GetItemId( n );
        if ( nId == SID_COPY || nId == SID_CUT || nId == SID_PASTE )
            break;
    }

    if ( n == nCount )
    {
        PopupMenu aPop( SfxResId( MN_CLIPBOARDFUNCS ) );
        nCount = aPop.GetItemCount();
        pSVMenu->InsertSeparator();
        for ( n=0; n<nCount; n++ )
        {
            USHORT nId = aPop.GetItemId( n );
            pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ) );
=====================================================================
Found a 17 line (127 tokens) duplication in the following files: 
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/lnkbase2.cxx
Starting at line 483 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/lnkbase2.cxx

				sError = String( ResId( STR_ERROR_DDE, *SOAPP->GetResMgr()));
				USHORT nFndPos = sError.Search( '%' );
				if( STRING_NOTFOUND != nFndPos )
				{
					sError.Erase( nFndPos, 1 ).Insert( sApp, nFndPos );
					nFndPos = nFndPos + sApp.Len();
				}
				if( STRING_NOTFOUND != ( nFndPos = sError.Search( '%', nFndPos )))
				{
					sError.Erase( nFndPos, 1 ).Insert( sTopic, nFndPos );
					nFndPos = nFndPos + sTopic.Len();
				}
				if( STRING_NOTFOUND != ( nFndPos = sError.Search( '%', nFndPos )))
					sError.Erase( nFndPos, 1 ).Insert( sItem, nFndPos );
			}
			else
				return FALSE;
=====================================================================
Found a 23 line (127 tokens) duplication in the following files: 
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/reg4msdoc/registryw9x.cxx
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/reg4msdoc/registrywnt.cxx

		Name.c_str(),
		0,
		&Type,
		reinterpret_cast<LPBYTE>(buff),
		&size);

	if (ERROR_FILE_NOT_FOUND == rc)
		throw RegistryValueNotFoundException(rc);
	else if (ERROR_ACCESS_DENIED == rc)
		throw RegistryAccessDeniedException(rc);
	else if (ERROR_SUCCESS != rc)
		throw RegistryException(rc);

	RegistryValue regval;

	if (REG_DWORD == Type)
    {
		regval = RegistryValue(new RegistryValueImpl(Name, *(reinterpret_cast<int*>(buff))));
    }
	else if (REG_SZ == Type || REG_EXPAND_SZ == Type || REG_MULTI_SZ == Type)
    {
        if (size > 0)
            regval = RegistryValue(new RegistryValueImpl(Name, std::wstring(reinterpret_cast<wchar_t*>(buff))));
=====================================================================
Found a 19 line (127 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviewsf.cxx
Starting at line 559 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlnvsh.cxx

		OutlinerView* pOLV = pOlView->GetViewByWindow(GetActiveWindow());
		if (pOLV)
		{
			const SvxFieldItem* pFieldItem = pOLV->GetFieldAtSelection();
			if (pFieldItem)
			{
                ESelection aSel = pOLV->GetSelection();
                if ( abs( aSel.nEndPos - aSel.nStartPos ) == 1 )
                {
				    const SvxFieldData* pField = pFieldItem->GetField();
				    if ( pField->ISA(SvxURLField) )
				    {
					    aHLinkItem.SetName(((const SvxURLField*) pField)->GetRepresentation());
					    aHLinkItem.SetURL(((const SvxURLField*) pField)->GetURL());
					    aHLinkItem.SetTargetFrame(((const SvxURLField*) pField)->GetTargetFrame());
				    }
                }
			}
		}
=====================================================================
Found a 7 line (127 tokens) duplication in the following files: 
Starting at line 236 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
        {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
=====================================================================
Found a 20 line (127 tokens) duplication in the following files: 
Starting at line 1526 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleText.cxx
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/textuno.cxx

	if (!pEditEngine)
	{
		SfxItemPool* pEnginePool = EditEngine::CreatePool();
		pEnginePool->FreezeIdRanges();
		ScHeaderEditEngine* pHdrEngine = new ScHeaderEditEngine( pEnginePool, TRUE );

		pHdrEngine->EnableUndo( FALSE );
		pHdrEngine->SetRefMapMode( MAP_TWIP );

		//	default font must be set, independently of document
		//	-> use global pool from module

		SfxItemSet aDefaults( pHdrEngine->GetEmptyItemSet() );
		const ScPatternAttr& rPattern = (const ScPatternAttr&)SC_MOD()->GetPool().GetDefaultItem(ATTR_PATTERN);
		rPattern.FillEditItemSet( &aDefaults );
		//	FillEditItemSet adjusts font height to 1/100th mm,
		//	but for header/footer twips is needed, as in the PatternAttr:
		aDefaults.Put( rPattern.GetItem(ATTR_FONT_HEIGHT), EE_CHAR_FONTHEIGHT );
		aDefaults.Put( rPattern.GetItem(ATTR_CJK_FONT_HEIGHT), EE_CHAR_FONTHEIGHT_CJK );
		aDefaults.Put( rPattern.GetItem(ATTR_CTL_FONT_HEIGHT), EE_CHAR_FONTHEIGHT_CTL );
=====================================================================
Found a 26 line (127 tokens) duplication in the following files: 
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlstyle.cxx
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtexppr.cxx

				aLeft.Color == aBottom.Color && aLeft.InnerLineWidth == aBottom.InnerLineWidth &&
				aLeft.OuterLineWidth == aBottom.OuterLineWidth && aLeft.LineDistance == aBottom.LineDistance )
			{
				pLeftBorderWidthState->mnIndex = -1;
				pLeftBorderWidthState->maValue.clear();
				pRightBorderWidthState->mnIndex = -1;
				pRightBorderWidthState->maValue.clear();
				pTopBorderWidthState->mnIndex = -1;
				pTopBorderWidthState->maValue.clear();
				pBottomBorderWidthState->mnIndex = -1;
				pBottomBorderWidthState->maValue.clear();
			}
			else
			{
				pAllBorderWidthState->mnIndex = -1;
				pAllBorderWidthState->maValue.clear();
			}
		}
		else
		{
			pAllBorderWidthState->mnIndex = -1;
			pAllBorderWidthState->maValue.clear();
		}
	}

	if( pAllBorderDistanceState )
=====================================================================
Found a 10 line (127 tokens) duplication in the following files: 
Starting at line 3405 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3429 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

		{
			for (k = 0; k < N; k++)
			{
				pE->PutDouble(
					pE->GetDouble(M+1)+pMatY->GetDouble(k)*pMatY->GetDouble(k), M+1);
				pQ->PutDouble(pQ->GetDouble(0, M+1) + pMatY->GetDouble(k), 0,	M+1);
				pE->PutDouble(pQ->GetDouble(0, M+1), 0);
				for (i = 0; i < M; i++)
				{
					pQ->PutDouble(pQ->GetDouble(0, i+1)+pMatX->GetDouble(k,i), 0, i+1);
=====================================================================
Found a 29 line (127 tokens) duplication in the following files: 
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/converteuctw.c
Starting at line 344 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertiso2022cn.c

                    nChar -= 0x20;
                    if (nChar >= nFirst && nChar <= nLast)
                    {
                        sal_uInt32 nUnicode
                            = pCns116431992Data[nOffset + (nChar - nFirst)];
                        if (nUnicode == 0xFFFF)
                            goto bad_input;
                        else if (ImplIsHighSurrogate(nUnicode))
                            if (pDestBufEnd - pDestBufPtr >= 2)
                            {
                                nOffset += nLast - nFirst + 1;
                                nFirst = pCns116431992Data[nOffset++];
                                *pDestBufPtr++ = (sal_Unicode) nUnicode;
                                *pDestBufPtr++
                                    = (sal_Unicode)
                                          pCns116431992Data[
                                              nOffset + (nChar - nFirst)];
                            }
                            else
                                goto no_output;
                        else
                            if (pDestBufPtr != pDestBufEnd)
                                *pDestBufPtr++ = (sal_Unicode) nUnicode;
                            else
                                goto no_output;
                    }
                    else
                        goto bad_input;
                    eState = bSo ? IMPL_ISO_2022_CN_TO_UNICODE_STATE_SO :
=====================================================================
Found a 7 line (127 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
    };
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 4 line (127 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*@ABCDEFGHIJKLMNO*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*PQRSTUVWXYZ[\]^_*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*`abcdefghijklmno*/
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0  /*pqrstuvwxyz{|}~ */
=====================================================================
Found a 5 line (127 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/file_url.cxx
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 17 line (127 tokens) duplication in the following files: 
Starting at line 1779 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2297 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xe0, 0xe0 },
{ 0x00, 0xe1, 0xc1 },
{ 0x00, 0xe2, 0xc2 },
{ 0x00, 0xe3, 0xc3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xd0 },
=====================================================================
Found a 22 line (127 tokens) duplication in the following files: 
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/eval.c
Starting at line 236 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_eval.c

    int ntok, rnd;

    trp->tp++;
    if (kw == KIFDEF || kw == KIFNDEF)
    {
        if (trp->lp - trp->bp != 4 || trp->tp->type != NAME)
        {
            error(ERROR, "Syntax error in #ifdef/#ifndef");
            return 0;
        }
        np = lookup(trp->tp, 0);
        return (kw == KIFDEF) == (np && np->flag & (ISDEFINED | ISMAC));
    }
    ntok = trp->tp - trp->bp;
    kwdefined->val = KDEFINED;          /* activate special meaning of
                                         * defined */
    expandrow(trp, "<if>");
    kwdefined->val = NAME;
    vp = vals;
    op = ops;
    *op++ = END;
    for (rnd = 0, tp = trp->bp + ntok; tp < trp->lp; tp++)
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 997 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 5 line (127 tokens) duplication in the following files: 
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1161 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 997 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 5 line (127 tokens) duplication in the following files: 
Starting at line 743 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 755 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3360 - 336f
    27,27,27,27,27,27,27, 0, 0, 0, 0,27,27,27,27,27,// 3370 - 337f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3380 - 338f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3390 - 339f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33a0 - 33af
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 997 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 5 line (127 tokens) duplication in the following files: 
Starting at line 377 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 0, 0,// 1280 - 128f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1290 - 129f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0,// 12a0 - 12af
     5, 0, 5, 5, 5, 5, 0, 0, 5, 5, 5, 5, 5, 5, 5, 0,// 12b0 - 12bf
     5, 0, 5, 5, 5, 5, 0, 0, 5, 5, 5, 5, 5, 5, 5, 0,// 12c0 - 12cf
=====================================================================
Found a 5 line (127 tokens) duplication in the following files: 
Starting at line 375 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1470 - 147f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1480 - 148f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1490 - 149f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14a0 - 14af
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 14b0 - 14bf
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 997 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 5 line (127 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 375 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5,// 1200 - 120f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1210 - 121f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1220 - 122f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1230 - 123f
     5, 5, 5, 5, 5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 0, 0,// 1240 - 124f
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

	0x308F, 0x308F, 0x308F, 0x308F, 0x3042, 0x304B, 0x304B, 0x308F, 0x308F, 0x308F, 0x308F, 0x30FB, 0x30FC, 0x30FD, 0x30FE, 0x30FF,  // 30F0

	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF00
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF10
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF20
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,  // FF30
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 13 line (127 tokens) duplication in the following files: 
Starting at line 4234 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 4278 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

                    if( !bIsRotate )
                    {
                        padd(ascii("svg:x"), sXML_CDATA,
                            Double2Str (WTMM( x + a + drawobj->offset2.x)) + ascii("mm"));
                        padd(ascii("svg:y"), sXML_CDATA,
                            Double2Str (WTMM( y + b + drawobj->offset2.y)) + ascii("mm"));
                    }

							padd(ascii("svg:width"), sXML_CDATA,
								 Double2Str (WTMM( drawobj->extent.w )) + ascii("mm"));
							padd(ascii("svg:height"), sXML_CDATA,
								 Double2Str (WTMM( drawobj->extent.h )) + ascii("mm"));
							if( drawobj->type == HWPDO_ADVANCED_ELLIPSE ){
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 2321 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

  sal_Char aBase64EncodeTable[] =
    { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
      'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
      'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
      'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' };
=====================================================================
Found a 33 line (127 tokens) duplication in the following files: 
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/macrosmenucontroller.cxx
Starting at line 1572 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx

        }
    }

    if ( m_xUICommandLabels.is() )
    {
        try
        {
            if ( aCmdURL.Len() > 0 )
            {
                rtl::OUString aStr;
                Sequence< PropertyValue > aPropSeq;
                Any a( m_xUICommandLabels->getByName( aCmdURL ));
                if ( a >>= aPropSeq )
                {
                    for ( sal_Int32 i = 0; i < aPropSeq.getLength(); i++ )
                    {
                        if ( aPropSeq[i].Name.equalsAscii( "Label" ))
                        {
                            aPropSeq[i].Value >>= aStr;
                            break;
                        }
                    }
                }
                aLabel = aStr;
            }
        }
        catch ( com::sun::star::uno::Exception& )
        {
        }
    }

    return aLabel;
}
=====================================================================
Found a 25 line (127 tokens) duplication in the following files: 
Starting at line 431 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uicategorydescription.cxx
Starting at line 651 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/uicommanddescription.cxx

                Sequence< OUString > aGenericNameSeq = m_xGenericUICommands->getElementNames();
                sal_uInt32 nCount1 = aNameSeq.getLength();
                sal_uInt32 nCount2 = aGenericNameSeq.getLength();

                aNameSeq.realloc( nCount1 + nCount2 );
                OUString* pNameSeq = aNameSeq.getArray();
                const OUString* pGenericSeq = aGenericNameSeq.getConstArray();
                for ( sal_uInt32 i = 0; i < nCount2; i++ )
                    pNameSeq[nCount1+i] = pGenericSeq[i];
            }

            return aNameSeq;
        }
        catch( com::sun::star::container::NoSuchElementException& )
        {
        }
        catch ( com::sun::star::lang::WrappedTargetException& )
        {
        }
    }

    return Sequence< rtl::OUString >();
}

sal_Bool ConfigurationAccess_UICommand::initializeConfigAccess()
=====================================================================
Found a 24 line (127 tokens) duplication in the following files: 
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx

				BmkMenu* pSubMenu = (BmkMenu*)aMenuCfg.CreateBookmarkMenu( rFrame, BOOKMARK_WIZARDMENU );
				pMenu->SetPopupMenu( nItemId, pSubMenu );

				// #110897#
				// MenuManager* pSubMenuManager = new MenuManager( rFrame, pSubMenu, sal_True, sal_False );
				MenuManager* pSubMenuManager = new MenuManager( getServiceFactory(), rFrame, pSubMenu, sal_True, sal_False );

				REFERENCE< XDISPATCH > aXDispatchRef;
				MenuItemHandler* pMenuItemHandler = new MenuItemHandler(
															nItemId,
															pSubMenuManager,
															aXDispatchRef );
				if ( pMenu->GetItemText( nItemId ).Len() == 0 )
					aQueryLabelItemIdVector.push_back( nItemId );
				m_aMenuItemHandlerVector.push_back( pMenuItemHandler );
				
				if ( m_bShowMenuImages && !pMenu->GetItemImage( nItemId ))
				{
					Image aImage = GetImageFromURL( rFrame, aItemCommand, FALSE, m_bWasHiContrast );
                	if ( !!aImage )
                   		pMenu->SetItemImage( nItemId, aImage );
				}
			}
			else if ( pMenu->GetItemType( i ) != MENUITEM_SEPARATOR )
=====================================================================
Found a 5 line (127 tokens) duplication in the following files: 
Starting at line 1747 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*@ABCDEFGHIJKLMNO*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, /*PQRSTUVWXYZ[\]^_*/
         0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*`abcdefghijklmno*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0  /*pqrstuvwxyz{|}~ */
       },
=====================================================================
Found a 22 line (127 tokens) duplication in the following files: 
Starting at line 428 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfileview.cxx
Starting at line 612 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/docvw/srcedtw.cxx

void SwSrcEditWindow::InitScrollBars()
{
	SetScrollBarRanges();

    Size aOutSz( pOutWin->GetOutputSizePixel() );
    pVScrollbar->SetVisibleSize( aOutSz.Height() );
	pVScrollbar->SetPageSize(  aOutSz.Height() * 8 / 10 );
	pVScrollbar->SetLineSize( pOutWin->GetTextHeight() );
	pVScrollbar->SetThumbPos( pTextView->GetStartDocPos().Y() );
	pHScrollbar->SetVisibleSize( aOutSz.Width() );
	pHScrollbar->SetPageSize( aOutSz.Width() * 8 / 10 );
	pHScrollbar->SetLineSize( pOutWin->GetTextWidth( 'x' ) );
	pHScrollbar->SetThumbPos( pTextView->GetStartDocPos().X() );

}

/*--------------------------------------------------------------------
	Beschreibung:
 --------------------------------------------------------------------*/


IMPL_LINK(SwSrcEditWindow, ScrollHdl, ScrollBar*, pScroll)
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx
Starting at line 2321 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx

	static sal_Unicode const aModifiedBase64[64]
		= { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
			'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
			'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
			'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
			'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '.' };
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 6 line (127 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 2321 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/xml2xcd.cxx

	static sal_Unicode const aModifiedBase64[64]
		= { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
			'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
			'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
			'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
			'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '.' };
=====================================================================
Found a 27 line (127 tokens) duplication in the following files: 
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.h
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.h

class ATL_NO_VTABLE CSOActiveX : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public IDispatchImpl<ISOActiveX, &IID_ISOActiveX, &LIBID_SO_ACTIVEXLib>,
	public CComControl<CSOActiveX>,
	public IPersistStreamInitImpl<CSOActiveX>,
	public IOleControlImpl<CSOActiveX>,
	public IOleObjectImpl<CSOActiveX>,
	public IOleInPlaceActiveObjectImpl<CSOActiveX>,
	public IViewObjectExImpl<CSOActiveX>,
	public IOleInPlaceObjectWindowlessImpl<CSOActiveX>,
//	public IConnectionPointContainerImpl<CSOActiveX>,
	public CComCoClass<CSOActiveX, &CLSID_SOActiveX>,
//	public CProxy_ItryPluginEvents< CSOActiveX >,
	public IPersistPropertyBagImpl< CSOActiveX >,
	public IProvideClassInfo2Impl<	&CLSID_SOActiveX,
									&DIID__ISOActiveXEvents,
									&LIBID_SO_ACTIVEXLib >,
    public IObjectSafetyImpl< CSOActiveX, 
                              INTERFACESAFE_FOR_UNTRUSTED_DATA >
{
protected:
	CComPtr<IWebBrowser2>	mWebBrowser2;
	DWORD					mCookie;

	CComPtr<IDispatch> 		mpDispFactory;
	CComPtr<IDispatch> 		mpDispFrame;
	CComPtr<IDispatch> 		mpDispWin;
=====================================================================
Found a 11 line (127 tokens) duplication in the following files: 
Starting at line 995 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx
Starting at line 1068 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx

					else if ( aName == CONFIGKEY_DEFSET_FONT_SLANT ) sProp = PROPERTY_FONTSLANT;

					if ( sProp.getLength() )
					{
                        if ( m_aProperties.find(m_aStack.top().second) == m_aProperties.end() )
                            m_aProperties.insert(::std::map< sal_Int16 ,Sequence< ::rtl::OUString> >::value_type(m_aStack.top().second,Sequence< ::rtl::OUString>()));
						sal_Int32 nPos = m_aProperties[m_aStack.top().second].getLength();
						m_aProperties[m_aStack.top().second].realloc(nPos+1);
						m_aProperties[m_aStack.top().second][nPos] = sProp;
					}
					else
=====================================================================
Found a 21 line (127 tokens) duplication in the following files: 
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/polypolyaction.cxx
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/polypolyaction.cxx

                                       const rendering::StrokeAttributes&	rStrokeAttributes ); 

                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
                                     const Subset&					rSubset ) const;

                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix&	rTransformation,
                                                       const Subset&					rSubset ) const;

                virtual sal_Int32 getActionCount() const;

            private:
                using Action::render;
                virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive,
                                     const ::basegfx::B2DHomMatrix&                 rTransformation ) const;

                const uno::Reference< rendering::XPolyPolygon2D >	mxPolyPoly;
                const ::Rectangle									maBounds;
                const CanvasSharedPtr								mpCanvas;
                rendering::RenderState								maState;
                const rendering::StrokeAttributes					maStrokeAttributes;
=====================================================================
Found a 28 line (127 tokens) duplication in the following files: 
Starting at line 1037 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

	{
		switch(nHandle)
		{
			case PROPERTY_ID_QUERYTIMEOUT:
				setQueryTimeOut(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_MAXFIELDSIZE:
				setMaxFieldSize(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_MAXROWS:
				setMaxRows(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_CURSORNAME:
				setCursorName(comphelper::getString(rValue));
				break;
			case PROPERTY_ID_RESULTSETCONCURRENCY:
				setResultSetConcurrency(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_RESULTSETTYPE:
				setResultSetType(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_FETCHDIRECTION:
				setFetchDirection(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_FETCHSIZE:
				setFetchSize(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_USEBOOKMARKS:
=====================================================================
Found a 18 line (127 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

		static const char * cSignature = "(I)Ljava/sql/Date;";
		static const char * cMethodName = "getDate";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID, columnIndex );
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			// und aufraeumen
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return out ? static_cast <com::sun::star::util::Date> (java_sql_Date( t.pEnv, out )) : ::com::sun::star::util::Date();
}
// -------------------------------------------------------------------------

double SAL_CALL java_sql_ResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
=====================================================================
Found a 14 line (127 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx

		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::FULL));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);

		aRow[1] = new ORowSetValueDecorator(::rtl::OUString::createFromAscii("VARCHAR"));
=====================================================================
Found a 28 line (127 tokens) duplication in the following files: 
Starting at line 780 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

	{
		switch(nHandle)
		{
			case PROPERTY_ID_QUERYTIMEOUT:
				setQueryTimeOut(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_MAXFIELDSIZE:
				setMaxFieldSize(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_MAXROWS:
				setMaxRows(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_CURSORNAME:
				setCursorName(comphelper::getString(rValue));
				break;
			case PROPERTY_ID_RESULTSETCONCURRENCY:
				setResultSetConcurrency(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_RESULTSETTYPE:
				setResultSetType(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_FETCHDIRECTION:
				setFetchDirection(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_FETCHSIZE:
				setFetchSize(comphelper::getINT32(rValue));
				break;
			case PROPERTY_ID_USEBOOKMARKS:
=====================================================================
Found a 17 line (127 tokens) duplication in the following files: 
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FDatabaseMetaDataResultSetMetaData.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataImpl.cxx

		DataType::BIT);
	m_mColumns[16] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("SQL_DATA_TYPE"),
		ColumnValue::NO_NULLS,
		1,1,0,
		DataType::INTEGER);
	m_mColumns[17] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("SQL_DATETIME_SUB"),
		ColumnValue::NO_NULLS,
		1,1,0,
		DataType::INTEGER);
	m_mColumns[18] = OColumn(::rtl::OUString(),::rtl::OUString::createFromAscii("NUM_PREC_RADIX"),
		ColumnValue::NO_NULLS,
		1,1,0,
		DataType::INTEGER);
}
// -------------------------------------------------------------------------
void ODatabaseMetaDataResultSetMetaData::setProceduresMap()
{
=====================================================================
Found a 20 line (127 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx

        *pPT++ = 'I';

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 16 line (127 tokens) duplication in the following files: 
Starting at line 3019 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/testtool/objtest.cxx
Starting at line 3050 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/testtool/objtest.cxx

    		nEnd = PreCompilePart( aSource, nTry2, nEnd, aFinalErrorLabel, nLabelCount );

    	if ( (nCatch = ImplSearch( aSource, nStart, nEnd, CUniString("catch"), nTry )) == STRING_NOTFOUND )
    	{
    		xub_StrLen l,c;
    		CalcPosition( aSource, nTry, l, c );
    		CError( SbERR_BAD_BLOCK, CUniString("catch"), l, c, c+2 );
    		return nEnd;
    	}
    	if ( (nEndcatch = ImplSearch( aSource, nStart, nEnd, CUniString("endcatch"), nCatch )) == STRING_NOTFOUND )
    	{
    		xub_StrLen l,c;
    		CalcPosition( aSource, nCatch, l, c );
    		CError( SbERR_BAD_BLOCK, CUniString("endcatch"), l, c, c+4 );
    		return nEnd;
    	}
=====================================================================
Found a 4 line (127 tokens) duplication in the following files: 
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx
Starting at line 344 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser/adoc/cx_a_std.cxx

	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 80 ...
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
	 err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err  // 112 ...
=====================================================================
Found a 24 line (127 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/display/idl/hfi_navibar.cxx
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/display/idl/hfi_navibar.cxx

    const StringVector &
        rManualDescrs = i_ce.Secondaries().Links2DescriptionInManual();
    if (rManualDescrs.size() == 2)
    {
        aNaviMain.Add_StdItem(C_sManual, Env().Link2Manual( rManualDescrs.front() ));
    }
    else if (rManualDescrs.size() > 2)
    {
        aNaviMain.Add_StdItem(C_sManual, C_sLocalManualLinks);
    }
    else
    {
        aNaviMain.Add_NoneItem( C_sManual );
    }

    Env().Get_LinkTo( rLink.reset(), 
                      Env().Linker().PositionOf_Index() );
    aNaviMain.Add_StdItem( C_sIndex, rLink.c_str() );

    aNaviMain.Produce_Row();
}

void
HF_IdlNavigationBar::Produce_ModuleMainRow( const client & i_ce )
=====================================================================
Found a 18 line (126 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

            long_type fg[3];

            int diameter = base_type::filter().diameter();
            int filter_size = diameter << image_subpixel_shift;
            int radius_x = (diameter * base_type::m_rx) >> 1;
            int radius_y = (diameter * base_type::m_ry) >> 1;
            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;
            const int16* weight_array = base_type::filter().weight_array();

            do
            {
                intr.coordinates(&x, &y);

                x += base_type::filter_dx_int() - radius_x;
                y += base_type::filter_dy_int() - radius_y;

                fg[0] = fg[1] = fg[2] = image_filter_size / 2;
=====================================================================
Found a 21 line (126 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
            calc_type fg[4];
            const value_type *fg_ptr;
            color_type* span = base_type::allocator().span();
=====================================================================
Found a 17 line (126 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                        weight = x_hr * y_hr;
                        if(x_lr >= 0    && y_lr >= 0 &&
                           x_lr <= maxx && y_lr <= maxy)
                        {
                            fg_ptr = (const value_type*)base_type::source_image().row(y_lr) + x_lr + x_lr + x_lr;
                            fg[0] += weight * *fg_ptr++;
                            fg[1] += weight * *fg_ptr++;
                            fg[2] += weight * *fg_ptr++;
                            src_alpha += weight * base_mask;
                        }
                        else
                        {
                            fg[order_type::R] += back_r * weight;
                            fg[order_type::G] += back_g * weight;
                            fg[order_type::B] += back_b * weight;
                            src_alpha         += back_a * weight;
                        }
=====================================================================
Found a 14 line (126 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/decrypter.cxx
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/encrypter.cxx

using namespace ::rtl ;
using namespace ::cppu ;
using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::io ;
using namespace ::com::sun::star::ucb ;
using namespace ::com::sun::star::beans ;
using namespace ::com::sun::star::document ;
using namespace ::com::sun::star::lang ;
using namespace ::com::sun::star::registry ;
using namespace ::com::sun::star::xml::wrapper ;
using namespace ::com::sun::star::xml::crypto ;

int SAL_CALL main( int argc, char **argv )
{
=====================================================================
Found a 14 line (126 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/certmngr.cxx
Starting at line 24 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/certmngr.cxx

using namespace ::rtl ;
using namespace ::cppu ;
using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::io ;
using namespace ::com::sun::star::ucb ;
using namespace ::com::sun::star::beans ;
using namespace ::com::sun::star::document ;
using namespace ::com::sun::star::lang ;
using namespace ::com::sun::star::security ;
using namespace ::com::sun::star::xml::wrapper ;
using namespace ::com::sun::star::xml::crypto ;

int SAL_CALL main( int argc, char **argv )
{
=====================================================================
Found a 18 line (126 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/DlgOASISTContext.cxx
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/NotesTContext.cxx

		GetTransformer().GetUserDefinedActions( OASIS_NOTES_ACTIONS );
	OSL_ENSURE( pActions, "go no actions" );

	Reference< XAttributeList > xAttrList( rAttrList );
	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
=====================================================================
Found a 6 line (126 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotdel_curs.h

   0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 7 line (126 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawpie_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawrect_mask.h

static char drawrect_mask_bits[] = {
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0x3f, 0x7e, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x3f, 0x7e, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0x00, 0x80, 0xff, 0x01, 0x00, 0x80, 0xff, 0x01, 0x00, 0x80, 0xff, 0x01,
=====================================================================
Found a 7 line (126 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawfreehand_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawtext_curs.h

static char drawtext_curs_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
   0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
   0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0xfd, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
   0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
   0x00, 0x81, 0x0d, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00,
=====================================================================
Found a 7 line (126 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawarc_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawrect_mask.h

static char drawrect_mask_bits[] = {
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0x3f, 0x7e, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x3f, 0x7e, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
   0x00, 0x80, 0xff, 0x01, 0x00, 0x80, 0xff, 0x01, 0x00, 0x80, 0xff, 0x01,
=====================================================================
Found a 6 line (126 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_curs.h

   0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 18 line (126 tokens) duplication in the following files: 
Starting at line 871 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/xlfd_extd.cxx
Starting at line 900 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/xlfd_extd.cxx

        char* pMatricsString, rtl_TextEncoding nEncoding ) const
{
	int nIdx = GetEncodingIdx( nEncoding );
	if ( nIdx < 0 )
		return;

	ExtEncodingInfo &rExtInfo = mpExtEncodingInfo[ nIdx ];

	AppendAttribute( mpFactory->RetrieveFoundry(rExtInfo.mnFoundry),   rString );
	AppendAttribute( mpFactory->RetrieveFamily(rExtInfo.mnFamily),     rString );
	AppendAttribute( mpFactory->RetrieveWeight(rExtInfo.mnWeight),     rString );
	AppendAttribute( mpFactory->RetrieveSlant(rExtInfo.mnSlant), 	   rString );
	AppendAttribute( mpFactory->RetrieveSetwidth(rExtInfo.mnSetwidth), rString );

	EncodingInfo& rInfo = mpEncodingInfo[ nIdx ];
	AppendAttribute( mpFactory->RetrieveAddstyle(rInfo.mnAddstyle), rString );

	rString += "-*-";
=====================================================================
Found a 40 line (126 tokens) duplication in the following files: 
Starting at line 2657 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 2786 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                                       rNewName );
    }
    catch ( embed::InvalidStorageException const & )
    {
        // this storage is in invalid state for eny reason
        OSL_ENSURE( false, "Caught InvalidStorageException!" );
        return false;
    }
    catch ( lang::IllegalArgumentException const & )
    {
        // an illegal argument is provided
        OSL_ENSURE( false, "Caught IllegalArgumentException!" );
        return false;
    }
    catch ( container::NoSuchElementException const & )
    {
        // there is no element with this name in this storage
        OSL_ENSURE( false, "Caught NoSuchElementException!" );
        return false;
    }
    catch ( container::ElementExistException const & )
    {
        // there is no element with this name in this storage
        OSL_ENSURE( false, "Caught ElementExistException!" );
        return false;
    }
    catch ( io::IOException const & )
    {
        // in case of io errors during renaming
        OSL_ENSURE( false, "Caught IOException!" );
        return false;
    }
    catch ( embed::StorageWrappedTargetException const & )
    {
        // wraps other exceptions
        OSL_ENSURE( false, "Caught StorageWrappedTargetException!" );
        return false;
    }

    return commitStorage( xDestStorage );
=====================================================================
Found a 29 line (126 tokens) duplication in the following files: 
Starting at line 1591 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1651 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

      		if ( xDataSink.is() )
			{
	  			// PULL: wait for client read

                uno::Reference< io::XInputStream > xIn = getInputStream();
				if ( !xIn.is() )
                {
                    // No interaction if we are not persistent!
                    uno::Any aProps
                        = uno::makeAny(
                                 beans::PropertyValue(
                                     rtl::OUString(
                                         RTL_CONSTASCII_USTRINGPARAM("Uri")),
                                     -1,
                                     uno::makeAny(m_xIdentifier->
                                                      getContentIdentifier()),
                                     beans::PropertyState_DIRECT_VALUE));
                    ucbhelper::cancelCommandExecution(
                        ucb::IOErrorCode_CANT_READ,
                        uno::Sequence< uno::Any >(&aProps, 1),
                        m_eState == PERSISTENT
                            ? xEnv
                            : uno::Reference<
                                  ucb::XCommandEnvironment >(),
                        rtl::OUString::createFromAscii(
                            "Got no data stream!" ),
                        this );
                    // Unreachable
                }
=====================================================================
Found a 25 line (126 tokens) duplication in the following files: 
Starting at line 1475 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1444 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

            aOldTitle = rtl::OUString();

            // Set error .
            aRet[ nTitlePos ] <<= uno::Exception(
                    rtl::OUString::createFromAscii( "Exchange failed!" ),
                    static_cast< cppu::OWeakObject * >( this ) );
		}
	}

    if ( aOldTitle.getLength() )
	{
        aEvent.PropertyName = rtl::OUString::createFromAscii( "Title" );
        aEvent.OldValue     = uno::makeAny( aOldTitle );
        aEvent.NewValue     = uno::makeAny( m_aProps.getTitle() );

		aChanges.getArray()[ nChanged ] = aEvent;
		nChanged++;
	}

	if ( nChanged > 0 )
	{
		// Save changes, if content was already made persistent.
		if ( !bExchange && ( m_eState == PERSISTENT ) )
        {
            if ( !storeData( uno::Reference< io::XInputStream >(), xEnv ) )
=====================================================================
Found a 20 line (126 tokens) duplication in the following files: 
Starting at line 1144 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx
Starting at line 2571 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx

	insertDefaultProperties( aUnqPath );
	{
		osl::MutexGuard aGuard( m_aMutex );

		shell::ContentMap::iterator it = m_aContent.find( aUnqPath );
		commit( it,aFileStatus );

		shell::PropertySet::iterator it1;
		PropertySet& propset = *(it->second.properties);

		for( sal_Int32 i = 0; i < seq.getLength(); ++i )
		{
			MyProperty readProp( properties[i].Name );
			it1 = propset.find( readProp );
			if( it1 == propset.end() )
				seq[i] = uno::Any();
			else
				seq[i] = it1->getValue();
		}
	}
=====================================================================
Found a 12 line (126 tokens) duplication in the following files: 
Starting at line 577 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx
Starting at line 601 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
							   sal_Int16& nShort, sal_uInt16& nUShort,
							   sal_Int32& nLong, sal_uInt32& nULong,
							   sal_Int64& nHyper, sal_uInt64& nUHyper,
							   float& fFloat, double& fDouble,
							   TestEnum& eEnum, rtl::OUString& rStr,
							   ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
							   ::com::sun::star::uno::Any& rAny,
							   ::com::sun::star::uno::Sequence<TestElement >& rSequence,
							   TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
{
=====================================================================
Found a 11 line (126 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx
Starting at line 577 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

TestData Test_Impl::setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
								sal_Int16& nShort, sal_uInt16& nUShort,
								sal_Int32& nLong, sal_uInt32& nULong,
								sal_Int64& nHyper, sal_uInt64& nUHyper,
								float& fFloat, double& fDouble,
								TestEnum& eEnum, rtl::OUString& rStr,
								::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
								::com::sun::star::uno::Any& rAny,
								::com::sun::star::uno::Sequence<TestElement >& rSequence,
								TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 17 line (126 tokens) duplication in the following files: 
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/grfshex.cxx
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/viewdraw.cxx

				Size			aPrefSize( pObj->GetSnapRect().GetSize() );

				if( rVisArea.Width() > aDocSz.Width())
					aPos.X() = aDocSz.Width() / 2 + rVisArea.Left();

				if(rVisArea.Height() > aDocSz.Height())
					aPos.Y() = aDocSz.Height() / 2 + rVisArea.Top();

				if( aPrefSize.Width() && aPrefSize.Height() )
				{
					if( pWindow )
						aSize = pWindow->PixelToLogic( aPrefSize, MAP_TWIP );
					else
						aSize = Application::GetDefaultDevice()->PixelToLogic( aPrefSize, MAP_TWIP );
				}
				else
					aSize = Size( 2835, 2835 );
=====================================================================
Found a 8 line (126 tokens) duplication in the following files: 
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  1,  0,  1,  0,  0,  	0,  0,  0,  0,  0,	  	// <, >
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,  // 100 - 149
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
=====================================================================
Found a 16 line (126 tokens) duplication in the following files: 
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap2.cxx
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap3.cxx

uno::Any SAL_CALL Svx3DSceneObject::getByIndex( sal_Int32 Index )
	throw( lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
{
	OGuard aGuard( Application::GetSolarMutex() );

	if( !mpObj.is() || mpObj->GetSubList() == NULL )
		throw uno::RuntimeException();

	if( mpObj->GetSubList()->GetObjCount() <= (sal_uInt32)Index )
		throw lang::IndexOutOfBoundsException();

	SdrObject* pDestObj = mpObj->GetSubList()->GetObj( Index );
	if(pDestObj == NULL)
		throw lang::IndexOutOfBoundsException();

	Reference< drawing::XShape > xShape( pDestObj->getUnoShape(), uno::UNO_QUERY );
=====================================================================
Found a 3 line (126 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoole2.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/ole/ndole.cxx

    virtual void SAL_CALL changingState( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL stateChanged( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 19 line (126 tokens) duplication in the following files: 
Starting at line 1767 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2454 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_ToggleButton::WriteContents(SvStorageStreamRef &rContents,
    const uno::Reference< beans::XPropertySet > &rPropSet,
    const awt::Size &rSize)
{
    sal_Bool bRet=sal_True;
    sal_uInt32 nOldPos = rContents->Tell();
    rContents->SeekRel(12);

    pBlockFlags[0] = 0;
    pBlockFlags[1] = 0x01;
    pBlockFlags[2] = 0;
    pBlockFlags[3] = 0x80;
    pBlockFlags[4] = 0;
    pBlockFlags[5] = 0;
    pBlockFlags[6] = 0;
    pBlockFlags[7] = 0;

    uno::Any aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("Enabled"));
    fEnabled = any2bool(aTmp);
=====================================================================
Found a 16 line (126 tokens) duplication in the following files: 
Starting at line 1556 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 3216 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx

	const SfxItemSet* pExampleSet = GetTabDialog()->GetExampleSet();
	if(pExampleSet)
	{
		if(SFX_ITEM_SET == pExampleSet->GetItemState(SID_PARAM_NUM_PRESET, FALSE, &pItem))
			bPreset = ((const SfxBoolItem*)pItem)->GetValue();
		if(SFX_ITEM_SET == pExampleSet->GetItemState(SID_PARAM_CUR_NUM_LEVEL, FALSE, &pItem))
			nTmpNumLvl = ((const SfxUInt16Item*)pItem)->GetValue();
	}
	//
	if(SFX_ITEM_SET == rSet.GetItemState(nNumItemId, FALSE, &pItem))
	{
		delete pSaveNum;
		pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule());
	}
	bModified = (!pActNum->Get( 0 ) || bPreset);
	if(*pSaveNum != *pActNum ||
=====================================================================
Found a 24 line (126 tokens) duplication in the following files: 
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/measure.cxx
Starting at line 809 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/measure.cxx

		SdrMeasureTextHPos eHPos;

		switch( eRP )
		{
			default:
			case RP_LT: eVPos = SDRMEASURE_ABOVE;
						eHPos = SDRMEASURE_TEXTLEFTOUTSIDE; break;
			case RP_LM: eVPos = SDRMEASURETEXT_VERTICALCENTERED;
						eHPos = SDRMEASURE_TEXTLEFTOUTSIDE; break;
			case RP_LB: eVPos = SDRMEASURE_BELOW;
						eHPos = SDRMEASURE_TEXTLEFTOUTSIDE; break;
			case RP_MT: eVPos = SDRMEASURE_ABOVE;
						eHPos = SDRMEASURE_TEXTINSIDE; break;
			case RP_MM: eVPos = SDRMEASURETEXT_VERTICALCENTERED;
						eHPos = SDRMEASURE_TEXTINSIDE; break;
			case RP_MB: eVPos = SDRMEASURE_BELOW;
						eHPos = SDRMEASURE_TEXTINSIDE; break;
			case RP_RT: eVPos = SDRMEASURE_ABOVE;
						eHPos = SDRMEASURE_TEXTRIGHTOUTSIDE; break;
			case RP_RM: eVPos = SDRMEASURETEXT_VERTICALCENTERED;
						eHPos = SDRMEASURE_TEXTRIGHTOUTSIDE; break;
			case RP_RB: eVPos = SDRMEASURE_BELOW;
						eHPos = SDRMEASURE_TEXTRIGHTOUTSIDE; break;
		}
=====================================================================
Found a 17 line (126 tokens) duplication in the following files: 
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx

    Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
    if( xFactory.is() )
    {
        Reference< XFilePicker > xFilePicker( xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ), UNO_QUERY );
        DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

        Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
        Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
        if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
        {
            Sequence< Any > aServiceType( 1 );
            aServiceType[0] <<= TemplateDescription::FILEOPEN_SIMPLE;
            xInit->initialize( aServiceType );

            // add the filters
            try
            {
=====================================================================
Found a 9 line (126 tokens) duplication in the following files: 
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/colrdlg.cxx
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/colrdlg.cxx

		ColorCMYK aColorCMYK( maColor );
		long aCyan    = (long) ( (double)aColorCMYK.GetCyan() * 100.0 / 255.0 + 0.5 );
		long aMagenta = (long) ( (double)aColorCMYK.GetMagenta() * 100.0 / 255.0 + 0.5 );
		long aYellow  = (long) ( (double)aColorCMYK.GetYellow() * 100.0 / 255.0 + 0.5 );
		long aKey     = (long) ( (double)aColorCMYK.GetKey() * 100.0 / 255.0 + 0.5 );
		maNumCyan.SetValue( aCyan );
		maNumMagenta.SetValue( aMagenta );
		maNumYellow.SetValue( aYellow );
		maNumKey.SetValue( aKey );
=====================================================================
Found a 31 line (126 tokens) duplication in the following files: 
Starting at line 434 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl2.cxx
Starting at line 3494 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

	USHORT nX = pViewData->nX;
	DBG_ASSERT(nY<nRows,"GoUpDown:Bad column");
	DBG_ASSERT(nX<nCols,"GoUpDown:Bad row");

	// Nachbar in gleicher Spalte ?
	if( bDown )
		pResult = SearchCol(
            nX, nY, sal::static_int_cast< USHORT >(nRows-1), nY, TRUE, TRUE );
	else
		pResult = SearchCol( nX, nY ,0, nY, FALSE, TRUE );
	if( pResult )
		return pResult;

	long nCurRow = nY;

	long nRowOffs, nLastRow;
	if( bDown )
	{
		nRowOffs = 1;
		nLastRow = nRows;
	}
	else
	{
		nRowOffs = -1;
		nLastRow = -1;   // 0-1
	}

	USHORT nColMin = nX;
	USHORT nColMax = nX;
	do
	{
=====================================================================
Found a 30 line (126 tokens) duplication in the following files: 
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl2.cxx
Starting at line 3445 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

	USHORT nX = pViewData->nX;
	DBG_ASSERT(nY< nRows,"GoLeftRight:Bad column");
	DBG_ASSERT(nX< nCols,"GoLeftRight:Bad row");
	// Nachbar auf gleicher Zeile ?
	if( bRight )
		pResult = SearchRow(
            nY, nX, sal::static_int_cast< USHORT >(nCols-1), nX, TRUE, TRUE );
	else
		pResult = SearchRow( nY, nX ,0, nX, FALSE, TRUE );
	if( pResult )
		return pResult;

	long nCurCol = nX;

	long nColOffs, nLastCol;
	if( bRight )
	{
		nColOffs = 1;
		nLastCol = nCols;
	}
	else
	{
		nColOffs = -1;
		nLastCol = -1;   // 0-1
	}

	USHORT nRowMin = nY;
	USHORT nRowMax = nY;
	do
	{
=====================================================================
Found a 11 line (126 tokens) duplication in the following files: 
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 690 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx

void Test_Impl::setValues( sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
						   sal_Int16 nShort, sal_uInt16 nUShort,
						   sal_Int32 nLong, sal_uInt32 nULong,
						   sal_Int64 nHyper, sal_uInt64 nUHyper,
						   float fFloat, double fDouble,
						   test::TestEnum eEnum, const ::rtl::OUString& rStr,
						   const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
						   const ::com::sun::star::uno::Any& rAny,
						   const ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
						   const test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 27 line (126 tokens) duplication in the following files: 
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/typeconv/convert.cxx
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/typeconv/convert.cxx

		if (nX > 0 && trim[nX-1] == '0') // 0x
		{
			sal_Bool bNeg = sal_False;
			switch (nX)
			{
			case 2: // (+|-)0x...
				if (trim[0] == '-')
					bNeg = sal_True;
				else if (trim[0] != '+')
					return sal_False;
			case 1: // 0x...
				break;
			default:
				return sal_False;
			}
			
			OUString aHexRest( trim.copy( nX+1 ) );
			sal_Int64 nRet = aHexRest.toInt64( 16 );
			
			if (nRet == 0)
			{
				for ( sal_Int32 nPos = aHexRest.getLength(); nPos--; )
				{
					if (aHexRest[nPos] != '0')
						return sal_False;
				}
			}
=====================================================================
Found a 21 line (126 tokens) duplication in the following files: 
Starting at line 653 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/linkdlg2.cxx
Starting at line 651 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/linkdlg.cxx

    XubString aTxt = Links().GetEllipsisString( sFileNm, nWidthPixel, TEXT_DRAW_PATHELLIPSIS );
	INetURLObject aPath( sFileNm, INET_PROT_FILE );
	String aFileName = aPath.getName();
	if( aFileName.Len() > aTxt.Len() )
		aTxt = aFileName;
	else if( aTxt.Search( aFileName, aTxt.Len() - aFileName.Len() ) == STRING_NOTFOUND )
		// filename not in string
		aTxt = aFileName;

	aEntry = aTxt;
	aEntry += '\t';
	if( OBJECT_CLIENT_GRF == rLink.GetObjType() )
		aEntry += sFilter;
	else
		aEntry += sLinkNm;
	aEntry += '\t';
	aEntry += sTypeNm;
	aEntry += '\t';
	aEntry += ImplGetStateStr( rLink );

    SvLBoxEntry * pE = Links().InsertEntryToColumn( aEntry, nPos );
=====================================================================
Found a 17 line (126 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx
Starting at line 382 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx

    Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
    if( xFactory.is() )
    {
        Reference< XFilePicker > xFilePicker( xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ), UNO_QUERY );
        DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

        Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
        Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
        if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
        {
            Sequence< Any > aServiceType( 1 );
            aServiceType[0] <<= TemplateDescription::FILEOPEN_SIMPLE;
            xInit->initialize( aServiceType );

            // add the filters
            try
            {
=====================================================================
Found a 3 line (126 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/ipclient.cxx
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoole2.cxx

    virtual void SAL_CALL changingState( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL stateChanged( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 36 line (126 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/lnkbase2.cxx
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/lnkbase2.cxx

			String sMimeType( SotExchange::GetFormatMimeType(
							pImplData->ClientType.nCntntType ));
			Any aData;

			if( xObj->GetData( aData, sMimeType ) )
			{
				DataChanged( sMimeType, aData );
				//JP 13.07.00: Bug 76817 - for manual Updates there is no
				//				need to hold the ServerObject
				if( OBJECT_CLIENT_DDE == nObjType &&
					LINKUPDATE_ONCALL == GetUpdateMode() && xObj.Is() )
					xObj->RemoveAllDataAdvise( this );
				return TRUE;
			}
			if( xObj.Is() )
			{
				// sollten wir asynschron sein?
				if( xObj->IsPending() )
					return TRUE;

				// dann brauchen wir das Object auch nicht mehr
				AddNextRef();
				Disconnect();
				ReleaseRef();
			}
		}
	}
	return FALSE;
}


USHORT SvBaseLink::GetUpdateMode() const
{
	return ( OBJECT_CLIENT_SO & nObjType )
			? pImplData->ClientType.nUpdateMode
			: (USHORT)LINKUPDATE_ONCALL;
=====================================================================
Found a 11 line (126 tokens) duplication in the following files: 
Starting at line 546 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx
Starting at line 890 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx

			{ MAP_LEN( "PageLayoutNames" ), 0, SEQTYPE(::getCppuType((const OUString*)0)), 	::com::sun::star::beans::PropertyAttribute::MAYBEVOID,     0},
			{ MAP_LEN( "BaseURI" ), 0,
				  &::getCppuType( (OUString *)0 ),
				  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
			{ MAP_LEN( "StreamRelPath" ), 0,
				  &::getCppuType( (OUString *)0 ),
				  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
			{ MAP_LEN( "StreamName" ), 0,
				  &::getCppuType( (OUString *)0 ),
				  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
            { MAP_LEN( "StyleNames" ), 0,
=====================================================================
Found a 25 line (126 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx
Starting at line 347 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx

		pOutput->SetSyntaxColor( &aFont, pCell );

	pDev->SetFont( aFont );
	if ( pFmtDevice != pDev )
		pFmtDevice->SetFont( aFont );

	aMetric = pFmtDevice->GetFontMetric();

	//
	//	Wenn auf dem Drucker das Leading 0 ist, gibt es Probleme
	//	-> Metric vom Bildschirm nehmen (wie EditEngine!)
	//

	if ( pFmtDevice->GetOutDevType() == OUTDEV_PRINTER && aMetric.GetIntLeading() == 0 )
	{
		OutputDevice* pDefaultDev = Application::GetDefaultDevice();
		MapMode aOld = pDefaultDev->GetMapMode();
		pDefaultDev->SetMapMode( pFmtDevice->GetMapMode() );
		aMetric = pDefaultDev->GetFontMetric( aFont );
		pDefaultDev->SetMapMode( aOld );
	}

	nAscentPixel = aMetric.GetAscent();
	if ( bPixelToLogic )
		nAscentPixel = pRefDevice->LogicToPixel( Size( 0, nAscentPixel ) ).Height();
=====================================================================
Found a 10 line (126 tokens) duplication in the following files: 
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbaapplication.cxx
Starting at line 181 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbaapplication.cxx

ScVbaApplication::setDisplayStatusBar(sal_Bool bDisplayStatusBar) throw (uno::RuntimeException)
{
	uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
    uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW );
    uno::Reference< beans::XPropertySet > xProps( xFrame, uno::UNO_QUERY_THROW );

    if( xProps.is() ){
        uno::Reference< frame::XLayoutManager > xLayoutManager( xProps->getPropertyValue( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("LayoutManager")) ), uno::UNO_QUERY_THROW );
        rtl::OUString url(RTL_CONSTASCII_USTRINGPARAM( "private:resource/statusbar/statusbar" ));
        if( xLayoutManager.is() ){
=====================================================================
Found a 29 line (126 tokens) duplication in the following files: 
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/read.cxx
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/read.cxx

			case Z_Biff4:		// ---------------------------------- Z_Biff4 -
			{
				switch( nOpcode )
				{
                    // skip chart substream
                    case EXC_ID2_BOF:
                    case EXC_ID3_BOF:
                    case EXC_ID4_BOF:
                    case EXC_ID5_BOF:           XclTools::SkipSubStream( maStrm );  break;

                    case EXC_ID2_DIMENSIONS:
                    case EXC_ID3_DIMENSIONS:    ReadDimensions();       break;
                    case EXC_ID2_BLANK:
                    case EXC_ID3_BLANK:         ReadBlank();            break;
                    case EXC_ID2_INTEGER:       ReadInteger();          break;
                    case EXC_ID2_NUMBER:
                    case EXC_ID3_NUMBER:        ReadNumber();           break;
                    case EXC_ID2_LABEL:
                    case EXC_ID3_LABEL:         ReadLabel();            break;
                    case EXC_ID2_BOOLERR:
                    case EXC_ID3_BOOLERR:       ReadBoolErr();          break;
                    case EXC_ID_RK:             ReadRk();               break;

					case 0x0A:							// EOF			[ 2345]
                        rNumFmtBfr.CreateScFormats();
                        Eof();
						eAkt = Z_Ende;
						break;
					case 0x12:  Protect(); break;       // SHEET PROTECTION
=====================================================================
Found a 30 line (126 tokens) duplication in the following files: 
Starting at line 1759 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1931 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

		ScMatrixRef pResMat = MatDiv(pMat1, pMat2);
		if (!pResMat)
			SetNoValue();
		else
			PushMatrix(pResMat);
	}
	else if (pMat1 || pMat2)
	{
		double fVal;
		BOOL bFlag;
		ScMatrixRef pMat = pMat1;
		if (!pMat)
		{
			fVal = fVal1;
			pMat = pMat2;
			bFlag = TRUE;			// double - Matrix
		}
		else
		{
			fVal = fVal2;
			bFlag = FALSE;			// Matrix - double
		}
        SCSIZE nC, nR;
		pMat->GetDimensions(nC, nR);
		ScMatrixRef pResMat = GetNewMat(nC, nR);
		if (pResMat)
		{
			SCSIZE nCount = nC * nR;
			if (bFlag)
			{	for ( SCSIZE i = 0; i < nCount; i++ )
=====================================================================
Found a 23 line (126 tokens) duplication in the following files: 
Starting at line 1265 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1441 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

ScMatrixRef ScInterpreter::MatConcat(ScMatrix* pMat1, ScMatrix* pMat2)
{
	SCSIZE nC1, nC2, nMinC;
	SCSIZE nR1, nR2, nMinR;
	SCSIZE i, j;
	pMat1->GetDimensions(nC1, nR1);
	pMat2->GetDimensions(nC2, nR2);
	if (nC1 < nC2)
		nMinC = nC1;
	else
		nMinC = nC2;
	if (nR1 < nR2)
		nMinR = nR1;
	else
		nMinR = nR2;
	ScMatrixRef xResMat = GetNewMat(nMinC, nMinR);
	if (xResMat)
	{
        ScMatrix* pResMat = xResMat;
		for (i = 0; i < nMinC; i++)
		{
			for (j = 0; j < nMinR; j++)
			{
=====================================================================
Found a 30 line (126 tokens) duplication in the following files: 
Starting at line 8 of /local/ooo-build/ooo-build/src/oog680-m3/salhelper/test/Symbols/loader.cxx
Starting at line 8 of /local/ooo-build/ooo-build/src/oog680-m3/salhelper/test/dynamicloader/loader.cxx

using namespace salhelper;
using namespace rtl;


class SampleLibLoader 
	: public ::salhelper::ODynamicLoader<SampleLib_Api>
{
public:
	SampleLibLoader():
		::salhelper::ODynamicLoader<SampleLib_Api>
			(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SAL_MODULENAME( "samplelib") ) ), 
			 ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(SAMPLELIB_INIT_FUNCTION_NAME) ))  
		{}

};


int main( int argc, char *argv[ ], char *envp[ ] )
{
	SampleLibLoader Loader;
	SampleLibLoader Loader2;
	Loader= Loader2;
	SampleLib_Api *pApi= Loader.getApi();

	sal_Int32 retint= pApi->funcA( 10);
	double retdouble= pApi->funcB( 3.14);


	return 0;
}
=====================================================================
Found a 6 line (126 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
=====================================================================
Found a 17 line (126 tokens) duplication in the following files: 
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/sft.c
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/ttcr.c

_inline sal_Int32  GetInt32(const sal_uInt8 *ptr, sal_uInt32 offset, int bigendian)
{
    sal_Int32 t;
    assert(ptr != 0);

    if (bigendian) {
        t = (ptr+offset)[0] << 24 | (ptr+offset)[1] << 16 |
            (ptr+offset)[2] << 8  | (ptr+offset)[3];
    } else {
        t = (ptr+offset)[3] << 24 | (ptr+offset)[2] << 16 |
            (ptr+offset)[1] << 8  | (ptr+offset)[0];
    }

    return t;
}

_inline sal_uInt32 GetUInt32(const sal_uInt8 *ptr, sal_uInt32 offset, int bigendian)
=====================================================================
Found a 12 line (126 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/padmin/source/cmddlg.cxx
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/padmin/source/cmddlg.cxx

		pPipe = popen( "which distill 2>/dev/null", "r" );
		if( pPipe )
		{
			fgets( pBuffer, sizeof( pBuffer ), pPipe );
			int nLen = strlen( pBuffer );
            if( pBuffer[nLen-1] == '\n' ) // strip newline
                pBuffer[--nLen] = 0;
            aCommand = String( ByteString( pBuffer ), aEncoding );
            if( ( ( aCommand.GetChar( 0 ) == '/' )
                  || ( aCommand.GetChar( 0 ) == '.' && aCommand.GetChar( 1 ) == '/' )
                  || ( aCommand.GetChar( 0 ) == '.' && aCommand.GetChar( 1 ) == '.' && aCommand.GetChar( 2 ) == '/' ) )
                && nLen > 7
=====================================================================
Found a 6 line (126 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
=====================================================================
Found a 34 line (126 tokens) duplication in the following files: 
Starting at line 523 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sspellimp.cxx

	}

	return xRes;
}


Reference< XSpellAlternatives > SAL_CALL 
	SpellChecker::spell( const OUString& rWord, const Locale& rLocale, 
			const PropertyValues& rProperties ) 
		throw(IllegalArgumentException, RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );

 	if (rLocale == Locale()  ||  !rWord.getLength())
		return NULL;

	if (!hasLocale( rLocale ))
#ifdef LINGU_EXCEPTIONS
		throw( IllegalArgumentException() );
#else
		return NULL;
#endif

	Reference< XSpellAlternatives > xAlt;
	if (!isValid( rWord, rLocale, rProperties ))
	{
		xAlt =  GetProposals( rWord, rLocale );
	}
	return xAlt;
}


Reference< XInterface > SAL_CALL SpellChecker_CreateInstance( 
			const Reference< XMultiServiceFactory > & rSMgr )
=====================================================================
Found a 19 line (126 tokens) duplication in the following files: 
Starting at line 757 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1277 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xf0, 0xf0 },
{ 0x00, 0xf1, 0xd1 },
{ 0x00, 0xf2, 0xd2 },
{ 0x00, 0xf3, 0xd3 },
{ 0x00, 0xf4, 0xd4 },
{ 0x00, 0xf5, 0xd5 },
{ 0x00, 0xf6, 0xd6 },
{ 0x00, 0xf7, 0xf7 },
{ 0x00, 0xf8, 0xd8 },
{ 0x00, 0xf9, 0xd9 },
{ 0x00, 0xfa, 0xda },
{ 0x00, 0xfb, 0xdb },
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0xdd },
{ 0x00, 0xfe, 0xde },
{ 0x00, 0xff, 0xff },
};

struct cs_info iso4_tbl[] = {
=====================================================================
Found a 6 line (126 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
=====================================================================
Found a 22 line (126 tokens) duplication in the following files: 
Starting at line 1467 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx
Starting at line 1560 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx

		aIntDepthLine.Load(aIntDepthLeft.GetDoubleValue(), aIntDepthRight.GetDoubleValue(), nXLineDelta);

		if(GetTransformationSet())
		{
			basegfx::B3DVector aInvTrans = GetTransformationSet()->GetTranslate();
			basegfx::B3DVector aInvScale = GetTransformationSet()->GetScale();
			while(nXLineDelta--)
			{
				// Werte vorbereiten
				sal_uInt32 nDepth = aIntDepthLine.GetUINT32Value();

				// Punkt ausgeben
				if(IsVisibleAndScissor(nXLineStart, nYPos, nDepth))
				{
					Point aTmpPoint(nXLineStart, nYPos);
					basegfx::B3DPoint aPoint = Get3DCoor(aTmpPoint, nDepth);
					aPoint -= aInvTrans;
					aPoint /= aInvScale;
					basegfx::B3DVector aNormal;
					aIntVectorLine.GetVector3DValue(aNormal);
					aNormal.normalize();
					Color aCol = SolveColorModel(rMat, aNormal, aPoint);
=====================================================================
Found a 31 line (126 tokens) duplication in the following files: 
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/statusbarwrapper.cxx
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarwrapper.cxx

void SAL_CALL ToolBarWrapper::setSettings( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& xSettings ) throw (::com::sun::star::uno::RuntimeException)
{
    ResetableGuard aLock( m_aLock );
    
    if ( m_bDisposed )
        throw DisposedException();

    if ( xSettings.is() )
    {
        // Create a copy of the data if the container is not const
        Reference< XIndexReplace > xReplace( xSettings, UNO_QUERY );
        if ( xReplace.is() )
            m_xConfigData = Reference< XIndexAccess >( static_cast< OWeakObject * >( new ConstItemContainer( xSettings ) ), UNO_QUERY );
        else
            m_xConfigData = xSettings;

        if ( m_xConfigSource.is() && m_bPersistent )
        {
            OUString aResourceURL( m_aResourceURL );
            Reference< XUIConfigurationManager > xUICfgMgr( m_xConfigSource );
            
            aLock.unlock();
            
            try
            {
                xUICfgMgr->replaceSettings( aResourceURL, m_xConfigData );
            }
            catch( NoSuchElementException& )
            {
            }
        }
=====================================================================
Found a 22 line (126 tokens) duplication in the following files: 
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/comboboxtoolbarcontroller.cxx
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/togglebuttontoolbarcontroller.cxx

            aSelectedText = m_aCurrentSelection;
        }        
    }

    if ( xDispatch.is() && aTargetURL.Complete.getLength() > 0 )
    {
        Sequence<PropertyValue>   aArgs( 2 );

        // Add key modifier to argument list
        aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "KeyModifier" ));
        aArgs[0].Value <<= KeyModifier;
        aArgs[1].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Text" ));
        aArgs[1].Value <<= aSelectedText;

        // Execute dispatch asynchronously
        ExecuteInfo* pExecuteInfo = new ExecuteInfo;
        pExecuteInfo->xDispatch     = xDispatch;
        pExecuteInfo->aTargetURL    = aTargetURL;
        pExecuteInfo->aArgs         = aArgs;
        Application::PostUserEvent( STATIC_LINK(0, ComplexToolbarController , ExecuteHdl_Impl), pExecuteInfo );
    }
}
=====================================================================
Found a 18 line (126 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uicategorydescription.cxx
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/windowstateconfiguration.cxx

        virtual                   ~ConfigurationAccess_WindowState();

        //  XInterface, XTypeProvider
        FWK_DECLARE_XINTERFACE
        FWK_DECLARE_XTYPEPROVIDER
                      
        // XNameAccess
        virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) 
            throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
        
        virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() 
            throw (::com::sun::star::uno::RuntimeException);
        
        virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) 
            throw (::com::sun::star::uno::RuntimeException);

        // XNameContainer
        virtual void SAL_CALL removeByName( const ::rtl::OUString& sName )
=====================================================================
Found a 20 line (126 tokens) duplication in the following files: 
Starting at line 4967 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx
Starting at line 5010 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx

::sal_Bool SAL_CALL LayoutManager::unlockWindow( const ::rtl::OUString& ResourceURL )
throw (::com::sun::star::uno::RuntimeException)
{
    UIElement aUIElement;

    if ( implts_findElement( ResourceURL, aUIElement ))
    {
        if ( aUIElement.m_xUIElement.is() )
        {
            try
            {
                Reference< css::awt::XWindow > xWindow( aUIElement.m_xUIElement->getRealInterface(), UNO_QUERY );
                Reference< css::awt::XDockableWindow > xDockWindow( xWindow, UNO_QUERY );
                Window* pWindow = VCLUnoHelper::GetWindow( xWindow );
                if ( pWindow &&
                     pWindow->IsVisible() &&
                     xDockWindow.is() &&
                     !xDockWindow->isFloating() )
                {
                    aUIElement.m_aDockedData.m_bLocked = sal_False;
=====================================================================
Found a 26 line (126 tokens) duplication in the following files: 
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxdocumenthandler.cxx
Starting at line 688 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxdocumenthandler.cxx

	m_rItemAccess( rItemAccess )
{
	m_xEmptyList		= Reference< XAttributeList >( (XAttributeList *)new AttributeListImpl, UNO_QUERY );
	m_aAttributeType	= OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_TYPE_CDATA ));
	m_aXMLXlinkNS		= OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_XLINK_PREFIX ));
	m_aXMLToolbarNS		= OUString( RTL_CONSTASCII_USTRINGPARAM( XMLNS_TOOLBAR_PREFIX ));
}

OWriteToolBoxDocumentHandler::~OWriteToolBoxDocumentHandler()
{
}

void OWriteToolBoxDocumentHandler::WriteToolBoxDocument() throw
( SAXException, RuntimeException )
{
    ResetableGuard aGuard( m_aLock );

	m_xWriteDocumentHandler->startDocument();

	// write DOCTYPE line!
	Reference< XExtendedDocumentHandler > xExtendedDocHandler( m_xWriteDocumentHandler, UNO_QUERY );
	if ( xExtendedDocHandler.is() )
	{
		xExtendedDocHandler->unknown( OUString( RTL_CONSTASCII_USTRINGPARAM( TOOLBAR_DOCTYPE )) );
		m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	}
=====================================================================
Found a 16 line (126 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/File.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FixedText.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/GroupBox.cxx
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Hidden.cxx

namespace frm
{
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;

//------------------------------------------------------------------
InterfaceRef SAL_CALL OHiddenModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) throw (RuntimeException)
=====================================================================
Found a 20 line (126 tokens) duplication in the following files: 
Starting at line 364 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltfilter/XSLTFilter.cxx
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx

    sal_Int32 nLength = aSourceData.getLength();
    OUString aName, aFileName, aURL;
    Reference< XInputStream > xInputStream;	
    for ( sal_Int32 i = 0 ; i < nLength; i++)
	{
        aName = aSourceData[i].Name;
	    if (aName.equalsAscii("InputStream"))
            aSourceData[i].Value >>= xInputStream;        		
	    else if ( aName.equalsAscii("FileName"))
			aSourceData[i].Value >>= aFileName;
	    else if ( aName.equalsAscii("URL"))
			aSourceData[i].Value >>= aURL;
	}

    // we need an input stream
    OSL_ASSERT(xInputStream.is());
    if (!xInputStream.is()) return sal_False;

    // rewind seekable stream
    Reference< XSeekable > xSeek(xInputStream, UNO_QUERY);
=====================================================================
Found a 6 line (126 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
=====================================================================
Found a 13 line (126 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olevisual.cxx
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olevisual.cxx

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object is not loaded!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
=====================================================================
Found a 13 line (126 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/visobj.cxx
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/visobj.cxx

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The own object has no persistence!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
=====================================================================
Found a 5 line (126 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 12 line (126 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/querydesign/JoinController.cxx
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/querydesign/querycontroller.cxx

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::awt;
=====================================================================
Found a 46 line (126 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/moduledbu.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/core/sdr/ModuleHelper.cxx

		m_pRessources = ResMgr::CreateResMgr(sName);
	}
	return m_pRessources;
}

//=========================================================================
//= OModule
//=========================================================================
::osl::Mutex	OModule::s_aMutex;
sal_Int32		OModule::s_nClients = 0;
OModuleImpl*	OModule::s_pImpl = NULL;
//-------------------------------------------------------------------------
ResMgr*	OModule::getResManager()
{
	ENTER_MOD_METHOD();
	return s_pImpl->getResManager();
}

//-------------------------------------------------------------------------
void OModule::registerClient()
{
	::osl::MutexGuard aGuard(s_aMutex);
	++s_nClients;
}

//-------------------------------------------------------------------------
void OModule::revokeClient()
{
	::osl::MutexGuard aGuard(s_aMutex);
	if (!--s_nClients && s_pImpl)
	{
		delete s_pImpl;
		s_pImpl = NULL;
	}
}

//-------------------------------------------------------------------------
void OModule::ensureImpl()
{
	if (s_pImpl)
		return;
	s_pImpl = new OModuleImpl();
}

//.........................................................................
}	// namespace dbaui
=====================================================================
Found a 15 line (126 tokens) duplication in the following files: 
Starting at line 897 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/DExport.cxx
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/TableCopyHelper.cxx

	::rtl::OUString aSql(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("INSERT INTO ")));
	::rtl::OUString sComposedTableName = ::dbtools::composeTableName( _xMetaData, _xDestTable, ::dbtools::eInDataManipulation, false, false, true );

	aSql += sComposedTableName;
	aSql += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" ( "));
	// set values and column names
	::rtl::OUString aValues(RTL_CONSTASCII_USTRINGPARAM(" VALUES ( "));
	static ::rtl::OUString aPara(RTL_CONSTASCII_USTRINGPARAM("?,"));
	static ::rtl::OUString aComma(RTL_CONSTASCII_USTRINGPARAM(","));

	::rtl::OUString aQuote;
	if ( _xMetaData.is() )
		aQuote = _xMetaData->getIdentifierQuoteString();

	Reference<XColumnsSupplier> xColsSup(_xDestTable,UNO_QUERY);
=====================================================================
Found a 31 line (126 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/control/VertSplitView.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/tabledesign/TableDesignView.cxx

void OTableBorderWindow::ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground )
{
	const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();

	if ( bFont )
	{
		Font aFont = rStyleSettings.GetAppFont();
		if ( IsControlFont() )
			aFont.Merge( GetControlFont() );
		SetPointFont( aFont );
//		Set/*Zoomed*/PointFont( aFont );
	}

	if ( bFont || bForeground )
	{
		Color aTextColor = rStyleSettings.GetButtonTextColor();
		if ( IsControlForeground() )
			aTextColor = GetControlForeground();
		SetTextColor( aTextColor );
	}

	if ( bBackground )
	{
		if( IsControlBackground() )
			SetBackground( GetControlBackground() );
		else
			SetBackground( rStyleSettings.GetFaceColor() );
	}
}
// -----------------------------------------------------------------------
void OTableBorderWindow::DataChanged( const DataChangedEvent& rDCEvt )
=====================================================================
Found a 9 line (126 tokens) duplication in the following files: 
Starting at line 997 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx
Starting at line 1109 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx

					if ( sProp.getLength() )
					{
                        if ( m_aProperties.find(m_aStack.top().second) == m_aProperties.end() )
                            m_aProperties.insert(::std::map< sal_Int16 ,Sequence< ::rtl::OUString> >::value_type(m_aStack.top().second,Sequence< ::rtl::OUString>()));
						sal_Int32 nPos = m_aProperties[m_aStack.top().second].getLength();
						m_aProperties[m_aStack.top().second].realloc(nPos+1);
						m_aProperties[m_aStack.top().second][nPos] = sProp;
					}
					else
=====================================================================
Found a 11 line (126 tokens) duplication in the following files: 
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 318 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx

void Test_Impl::setValues( sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
						   sal_Int16 nShort, sal_uInt16 nUShort,
						   sal_Int32 nLong, sal_uInt32 nULong,
						   sal_Int64 nHyper, sal_uInt64 nUHyper,
						   float fFloat, double fDouble,
						   test::TestEnum eEnum, const ::rtl::OUString& rStr,
						   const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
						   const ::com::sun::star::uno::Any& rAny,
						   const ::com::sun::star::uno::Sequence<test::TestElement >& rSequence,
						   const test::TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 28 line (126 tokens) duplication in the following files: 
Starting at line 815 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx
Starting at line 1251 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx

                                       const uno::Sequence< double >&	rOffsets,
                                       VirtualDevice&					rVDev,
                                       const CanvasSharedPtr&			rCanvas, 
                                       const OutDevState& 				rState,
                                       const ::basegfx::B2DHomMatrix&	rTextTransform ); 

                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
                                     const Subset&					rSubset ) const;

                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix&	rTransformation,
                                                       const Subset&					rSubset ) const;

                virtual sal_Int32 getActionCount() const;

            private:
                // TextRenderer interface
                virtual bool operator()( const rendering::RenderState& rRenderState ) const;
                    
                // TODO(P2): This is potentially a real mass object
                // (every character might be a separate TextAction),
                // thus, make it as lightweight as possible. For
                // example, share common RenderState among several
                // TextActions, maybe using maOffsets for the
                // translation.

                uno::Reference< rendering::XTextLayout >		mxTextLayout;
=====================================================================
Found a 17 line (126 tokens) duplication in the following files: 
Starting at line 1043 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
Starting at line 1109 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx

								const ::rtl::OUString& procedureNamePattern,const ::rtl::OUString& columnNamePattern )
								throw(SQLException, RuntimeException)
{
	const ::rtl::OUString *pSchemaPat = NULL;

	if(schemaPattern.toChar() != '%')
		pSchemaPat = &schemaPattern;
	else
		pSchemaPat = NULL;

	m_bFreeHandle = sal_True;
	::rtl::OString aPKQ,aPKO,aPKN,aCOL;
	aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding);
	aPKO = ::rtl::OUStringToOString(schemaPattern,m_nTextEncoding);

	const char	*pPKQ = catalog.hasValue() && aPKQ.getLength() ? aPKQ.getStr()	: NULL,
				*pPKO = pSchemaPat && pSchemaPat->getLength() ? aPKO.getStr() : NULL,
=====================================================================
Found a 24 line (126 tokens) duplication in the following files: 
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx
Starting at line 396 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MStatement.cxx

	return xRS;
}
// -------------------------------------------------------------------------

Reference< XConnection > SAL_CALL OStatement_Base::getConnection(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);

	// just return our connection here
	return (Reference< XConnection >)m_pConnection;
}
// -----------------------------------------------------------------------------
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
	Any aRet = ::cppu::queryInterface(rType,static_cast< XServiceInfo*> (this));
	if(!aRet.hasValue())
		aRet = OStatement_Base::queryInterface(rType);
	return aRet;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const ::rtl::OUString& /*sql*/ ) throw(SQLException, RuntimeException)
{
    ::dbtools::throwFeatureNotImplementedException( "XPreparedStatement::executeUpdate", *this );
=====================================================================
Found a 27 line (126 tokens) duplication in the following files: 
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 550 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx

		cout << endl;
}

///////////////////////////////////////////////////////////////////////////////////////////
void write(Reference<XNameAccess  >& xAccess)
{
		if (xAccess.is())
		{
			Sequence<OUString> aNames( xAccess->getElementNames() );

			cout << "Element Names: (" << aNames.getLength() << ")";
			for (int i = 0; i < aNames.getLength(); ++i)
				cout << "\n[" << i << "] -\t" << aNames[i];
			cout << endl;
		}
		else
			cout << "BUG: XNameAccess not available";
		cout << endl;
}
void write(Reference< XChild >& xChild)
{
		if (xChild.is())
			cout << "\n[ P ] -\tParent";
		else
			cout << "BUG: Parent not available (no XChild)";
		cout << endl;
}
=====================================================================
Found a 34 line (126 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/LineChartTypeTemplate.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/PieChartTypeTemplate.cxx

    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

::cppu::IPropertyArrayHelper & lcl_getInfoHelper()
{
    static ::cppu::OPropertyArrayHelper aArrayHelper(
        lcl_GetPropertySequence(),
        /* bSorted = */ sal_True );

    return aArrayHelper;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 31 line (126 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/LineChartType.cxx
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ScatterChartType.cxx

    rOutMap[ PROP_SCATTERCHARTTYPE_SPLINE_ORDER ] =
        uno::makeAny( sal_Int32( 3 ) );
}

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 34 line (126 tokens) duplication in the following files: 
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/BarChartTypeTemplate.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx

    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

::cppu::IPropertyArrayHelper & lcl_getInfoHelper()
{
    static ::cppu::OPropertyArrayHelper aArrayHelper(
        lcl_GetPropertySequence(),
        /* bSorted = */ sal_True );

    return aArrayHelper;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 14 line (126 tokens) duplication in the following files: 
Starting at line 243 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/AreaChartTypeTemplate.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/BarChartTypeTemplate.cxx

void SAL_CALL BarChartTypeTemplate::resetStyles(
    const Reference< chart2::XDiagram >& xDiagram )
    throw (uno::RuntimeException)
{
    ChartTypeTemplate::resetStyles( xDiagram );
    if( getDimension() == 3 )
    {
        ::std::vector< Reference< chart2::XDataSeries > > aSeriesVec(
            DiagramHelper::getDataSeriesFromDiagram( xDiagram ));
        uno::Any aLineStyleAny( uno::makeAny( drawing::LineStyle_NONE ));
        for( ::std::vector< Reference< chart2::XDataSeries > >::iterator aIt( aSeriesVec.begin());
             aIt != aSeriesVec.end(); ++aIt )
        {
            Reference< beans::XPropertyState > xState( *aIt, uno::UNO_QUERY );
=====================================================================
Found a 34 line (126 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/AreaChartTypeTemplate.cxx
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/BarChartTypeTemplate.cxx

    static Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

::cppu::IPropertyArrayHelper & lcl_getInfoHelper()
{
    static ::cppu::OPropertyArrayHelper aArrayHelper(
        lcl_GetPropertySequence(),
        /* bSorted = */ sal_True );

    return aArrayHelper;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 11 line (126 tokens) duplication in the following files: 
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/filter/XMLFilter.cxx
Starting at line 890 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx

			{ MAP_LEN( "PageLayoutNames" ), 0, SEQTYPE(::getCppuType((const OUString*)0)), 	::com::sun::star::beans::PropertyAttribute::MAYBEVOID,     0},
			{ MAP_LEN( "BaseURI" ), 0,
				  &::getCppuType( (OUString *)0 ),
				  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
			{ MAP_LEN( "StreamRelPath" ), 0,
				  &::getCppuType( (OUString *)0 ),
				  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
			{ MAP_LEN( "StreamName" ), 0,
				  &::getCppuType( (OUString *)0 ),
				  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
            { MAP_LEN( "StyleNames" ), 0,
=====================================================================
Found a 18 line (126 tokens) duplication in the following files: 
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 24 line (126 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
        default:
=====================================================================
Found a 18 line (126 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 24 line (126 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

    case typelib_TypeClass_HYPER:
    case typelib_TypeClass_UNSIGNED_HYPER:
        ((long*)pRegisterReturn)[1] = edx;
    case typelib_TypeClass_LONG:
    case typelib_TypeClass_UNSIGNED_LONG:
    case typelib_TypeClass_CHAR:
    case typelib_TypeClass_ENUM:
        ((long*)pRegisterReturn)[0] = eax;
        break;
    case typelib_TypeClass_SHORT:
    case typelib_TypeClass_UNSIGNED_SHORT:
        *(unsigned short*)pRegisterReturn = eax;
        break;
    case typelib_TypeClass_BOOLEAN:
    case typelib_TypeClass_BYTE:
        *(unsigned char*)pRegisterReturn = eax;
        break;
    case typelib_TypeClass_FLOAT:
        asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
        break;
    case typelib_TypeClass_DOUBLE:
        asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
        break;
    default: {
=====================================================================
Found a 14 line (126 tokens) duplication in the following files: 
Starting at line 446 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/macrodlg.cxx
Starting at line 651 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/moduldlg.cxx

    BOOL bReadOnly = FALSE;
    if ( nDepth == 1 || nDepth == 2 )
    {
        ScriptDocument aDocument( aDesc.GetDocument() );
        ::rtl::OUString aOULibName( aDesc.GetLibName() );
        Reference< script::XLibraryContainer2 > xModLibContainer( aDocument.getLibraryContainer( E_SCRIPTS ), UNO_QUERY );
        Reference< script::XLibraryContainer2 > xDlgLibContainer( aDocument.getLibraryContainer( E_DIALOGS ), UNO_QUERY );
        if ( ( xModLibContainer.is() && xModLibContainer->hasByName( aOULibName ) && xModLibContainer->isLibraryReadOnly( aOULibName ) ) ||
             ( xDlgLibContainer.is() && xDlgLibContainer->hasByName( aOULibName ) && xDlgLibContainer->isLibraryReadOnly( aOULibName ) ) )
        {
            bReadOnly = TRUE;
        }
    }
    if ( bReadOnly || eLocation == LIBRARY_LOCATION_SHARE )
=====================================================================
Found a 31 line (126 tokens) duplication in the following files: 
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessiblelistboxentry.cxx

namespace
{
	void checkActionIndex_Impl( sal_Int32 _nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException)
	{
		if ( _nIndex < 0 || _nIndex >= ACCESSIBLE_ACTION_COUNT )
			// only three actions
			throw ::com::sun::star::lang::IndexOutOfBoundsException();
	}
}

//........................................................................
namespace accessibility
{
	//........................................................................
	// class ALBSolarGuard ---------------------------------------------------------

	/** Aquire the solar mutex. */
	class ALBSolarGuard : public ::vos::OGuard
	{
	public:
    	inline ALBSolarGuard() : ::vos::OGuard( Application::GetSolarMutex() ) {}
	};

	// class AccessibleListBoxEntry -----------------------------------------------------

	using namespace ::com::sun::star::accessibility;
	using namespace ::com::sun::star::uno;
	using namespace ::com::sun::star::lang;
	using namespace ::com::sun::star;

	DBG_NAME(AccessibleListBoxEntry)
=====================================================================
Found a 12 line (125 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokAnalyzeService.cxx
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/odsl/ODSLParser.cxx

	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
		// construct an URL of the input file name
		rtl::OUString arg=aArguments[0];
		rtl_uString *dir=NULL;
		osl_getProcessWorkingDir(&dir);
		rtl::OUString absFileUrl;
=====================================================================
Found a 23 line (125 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h

                                          image_subpixel_shift);
            do
            {
                int x_hr;
                int y_hr;

                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                unsigned x1 = m_wrap_mode_x(x_lr);
                unsigned x2 = ++m_wrap_mode_x;

                unsigned y1 = m_wrap_mode_y(y_lr);
                unsigned y2 = ++m_wrap_mode_y;
                const value_type* ptr1 = (value_type*)base_type::source_image().row(y1);
                const value_type* ptr2 = (value_type*)base_type::source_image().row(y2);

                fg = image_filter_size / 2;
=====================================================================
Found a 14 line (125 tokens) duplication in the following files: 
Starting at line 727 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 530 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h

                    y_lr = ++m_wrap_mode_y;
                } while(--y_count);

                fg[0] >>= image_filter_shift;
                fg[1] >>= image_filter_shift;
                fg[2] >>= image_filter_shift;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;

                if(fg[0] > base_mask) fg[0] = base_mask;
                if(fg[1] > base_mask) fg[1] = base_mask;
                if(fg[2] > base_mask) fg[2] = base_mask;
=====================================================================
Found a 17 line (125 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 1087 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

    Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
        aStyle._set |= 0x1;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }
    
    // collect elements
    readDefaults( false );
=====================================================================
Found a 12 line (125 tokens) duplication in the following files: 
Starting at line 1919 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/kde/salnativewidgets-kde.cxx
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/macosxint.cxx

                aStyleSettings.SetLightBorderColor( aBack );
                if( aBack == COL_LIGHTGRAY )
                            aStyleSettings.SetCheckedColor( Color( 0xCC, 0xCC, 0xCC ) );
                else
                {
                    Color aColor2 = aStyleSettings.GetLightColor();
                    aStyleSettings.SetCheckedColor( 
                        Color( (BYTE)(((USHORT)aBack.GetRed()+(USHORT)aColor2.GetRed())/2),
                                (BYTE)(((USHORT)aBack.GetGreen()+(USHORT)aColor2.GetGreen())/2),
                                (BYTE)(((USHORT)aBack.GetBlue()+(USHORT)aColor2.GetBlue())/2)
                                ) );
                }
=====================================================================
Found a 19 line (125 tokens) duplication in the following files: 
Starting at line 1104 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svppspgraphics.cxx
Starting at line 1181 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/pspgraphics.cxx

            break;
	}
	return WIDTH_DONTKNOW;
}

FontWeight PspGraphics::ToFontWeight (psp::weight::type eWeight)
{
	switch (eWeight)
	{
		case psp::weight::Thin:		  return WEIGHT_THIN;
		case psp::weight::UltraLight: return WEIGHT_ULTRALIGHT;
		case psp::weight::Light:	  return WEIGHT_LIGHT;
		case psp::weight::SemiLight:  return WEIGHT_SEMILIGHT;
		case psp::weight::Normal:	  return WEIGHT_NORMAL;
		case psp::weight::Medium:	  return WEIGHT_MEDIUM;
		case psp::weight::SemiBold:	  return WEIGHT_SEMIBOLD;
		case psp::weight::Bold:		  return WEIGHT_BOLD;
		case psp::weight::UltraBold:  return WEIGHT_ULTRABOLD;
		case psp::weight::Black:	  return WEIGHT_BLACK;
=====================================================================
Found a 24 line (125 tokens) duplication in the following files: 
Starting at line 2136 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx
Starting at line 2234 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

		Bitmap	aMask( rMask );
		ULONG	nMirrFlags = 0UL;

		if( aMask.GetBitCount() > 1 )
			aMask.Convert( BMP_CONVERSION_1BIT_THRESHOLD );

		// mirrored horizontically
		if( aDestSz.Width() < 0L )
		{
			aDestSz.Width() = -aDestSz.Width();
			aDestPt.X() -= ( aDestSz.Width() - 1L );
			nMirrFlags |= BMP_MIRROR_HORZ;
		}

		// mirrored vertically
		if( aDestSz.Height() < 0L )
		{
			aDestSz.Height() = -aDestSz.Height();
			aDestPt.Y() -= ( aDestSz.Height() - 1L );
			nMirrFlags |= BMP_MIRROR_VERT;
		}

		// source cropped?
		if( aSrcRect != Rectangle( aPt, aMask.GetSizePixel() ) )
=====================================================================
Found a 64 line (125 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
// --> FME 2004-07-30 #i32329# Enhanced table selection
        0, // POINTER_TAB_SELECT_S
        0, // POINTER_TAB_SELECT_E
        0, // POINTER_TAB_SELECT_SE
=====================================================================
Found a 27 line (125 tokens) duplication in the following files: 
Starting at line 1242 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx
Starting at line 1471 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx

			nError = copy_recursive( rslvdSrcUnqPath,dstUnqPath,IsWhat,true );

			if( nError == osl::FileBase::E_EXIST )
			{
				// "invent" a new valid title.

				sal_Int32 nPos = -1;
				sal_Int32 nLastDot = dstUnqPath.lastIndexOf( '.' );
				sal_Int32 nLastSlash = dstUnqPath.lastIndexOf( '/' );
				if ( ( nLastSlash < nLastDot ) // dot is part of last(!) path segment
					 && ( nLastSlash != ( nLastDot - 1 ) ) ) // file name does not start with a dot
					nPos = nLastDot;
				else
					nPos = dstUnqPath.getLength();

				sal_Int32 nTry = 0;

				do
				{
					newDstUnqPath = dstUnqPath;

					rtl::OUString aPostFix(	rtl::OUString::createFromAscii( "_" ) );
					aPostFix += rtl::OUString::valueOf( ++nTry );

					newDstUnqPath = newDstUnqPath.replaceAt( nPos, 0, aPostFix );

					nError = copy_recursive( rslvdSrcUnqPath,newDstUnqPath,IsWhat,true );
=====================================================================
Found a 11 line (125 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx
Starting at line 601 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
							   sal_Int16& nShort, sal_uInt16& nUShort,
							   sal_Int32& nLong, sal_uInt32& nULong,
							   sal_Int64& nHyper, sal_uInt64& nUHyper,
							   float& fFloat, double& fDouble,
							   TestEnum& eEnum, rtl::OUString& rStr,
							   ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
							   ::com::sun::star::uno::Any& rAny,
							   ::com::sun::star::uno::Sequence<TestElement >& rSequence,
							   TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 35 line (125 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/source/result/optionhelper.cxx
Starting at line 119 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/workben/test_filter.cxx

	}
}

bool match(OStringList const& _aFilter, OStringList const& _aName)
{
	OStringList::const_iterator aFilterIter = _aFilter.begin();
    OStringList::const_iterator aValueIter = _aName.begin();
    
    bool bMatch = false;

    while (aFilterIter != _aFilter.end() && aValueIter != _aName.end())
    {
		rtl::OString sFilter = *aFilterIter;
		rtl::OString sName   = *aValueIter;

        if (sFilter == sName)
        {
			bMatch = true;
            ++aFilterIter;
            ++aValueIter;
        }
		else if (sFilter == "*")
		{
			bMatch = true;
			break;
		}
        else
        {
            // Filter does not match
            bMatch = false;
            break;
        }
    }
    return bMatch;
}
=====================================================================
Found a 25 line (125 tokens) duplication in the following files: 
Starting at line 4822 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 5032 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

                aD.nEndPos = WW8_CP_MAX;
                pPLCFx->SetDirty(true);
            }
            pPLCFx->GetSprms(&aD);
            pPLCFx->SetDirty(false);
            aD.ReduceByOffset();
            rSave.nStartCp = aD.nStartPos;
            rSave.nPLCFxMemOfs = nOrigSprmsLen - nSprmsLen;
        }
    }
}

void WW8PLCFxDesc::Restore( const WW8PLCFxSave1& rSave )
{
    if( pPLCFx )
    {
        pPLCFx->Restore( rSave );
        if( pPLCFx->IsSprm() )
        {
            WW8PLCFxDesc aD;
            aD.nStartPos = rSave.nStartCp+rSave.nCpOfs;
            nCpOfs = aD.nCpOfs = rSave.nCpOfs;
            if (!(pPLCFx->SeekPos(aD.nStartPos)))
            {
                aD.nEndPos = WW8_CP_MAX;
=====================================================================
Found a 36 line (125 tokens) duplication in the following files: 
Starting at line 4370 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmltab.cxx
Starting at line 5346 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmltab.cxx

	if( !nToken )
		nToken = GetNextToken();	// naechstes Token

	sal_Bool bDone = sal_False;
	while( (IsParserWorking() && !bDone) || bPending )
	{
		SaveState( nToken );

		nToken = FilterToken( nToken );

		ASSERT( pPendStack || !bCallNextToken ||
				pCurTable->GetContext() || pCurTable->HasParentSection(),
				"Wo ist die Section gebieben?" );
		if( !pPendStack && bCallNextToken &&
			(pCurTable->GetContext() || pCurTable->HasParentSection()) )
		{
			// NextToken direkt aufrufen (z.B. um den Inhalt von
			// Floating-Frames oder Applets zu ignorieren)
			NextToken( nToken );
		}
		else switch( nToken )
		{
		case HTML_TABLE_ON:
			if( !pCurTable->GetContext() )
			{
				// Wenn noch keine Tabelle eingefuegt wurde,
				// die naechste Tabelle lesen
				SkipToken( -1 );
				bDone = sal_True;
			}
//			else
//			{
//				NextToken( nToken );
//			}
			break;
		case HTML_TABLE_OFF:
=====================================================================
Found a 25 line (125 tokens) duplication in the following files: 
Starting at line 377 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoparagraph.cxx
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoport.cxx
Starting at line 2606 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx

uno::Sequence< uno::Any > SwXStyle::getPropertyValues(
    const uno::Sequence< OUString >& rPropertyNames ) throw(uno::RuntimeException)
{
    vos::OGuard aGuard(Application::GetSolarMutex());
    uno::Sequence< uno::Any > aValues;

    // workaround for bad designed API
    try
    {
        aValues = GetPropertyValues_Impl( rPropertyNames );
    }
    catch (beans::UnknownPropertyException &)
    {
        throw uno::RuntimeException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property exception caught" ) ), static_cast < cppu::OWeakObject * > ( this ) );
    }
    catch (lang::WrappedTargetException &)
    {
        throw uno::RuntimeException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "WrappedTargetException caught" ) ), static_cast < cppu::OWeakObject * > ( this ) );
    }

    return aValues;
}
/*-- 18.04.01 13:07:29---------------------------------------------------
  -----------------------------------------------------------------------*/
void SwXStyle::addPropertiesChangeListener(
=====================================================================
Found a 28 line (125 tokens) duplication in the following files: 
Starting at line 1919 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accmap.cxx
Starting at line 1988 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accmap.cxx

    SwFrmOrObj aFrmOrObj( &_rTxtFrm );
    if( aFrmOrObj.IsAccessible( GetShell()->IsPreView() ) )
    {
        uno::Reference < XAccessible > xAcc;
        {
            vos::OGuard aGuard( maMutex );

            if( mpFrmMap )
            {
                SwAccessibleContextMap_Impl::iterator aIter =
                                        mpFrmMap->find( aFrmOrObj.GetSwFrm() );
                if( aIter != mpFrmMap->end() )
                {
                    xAcc = (*aIter).second;
                }
            }
        }

        // deliver event directly, or queue event
        if( xAcc.is() )
        {
            SwAccessibleContext *pAccImpl =
                            static_cast< SwAccessibleContext *>( xAcc.get() );
            if( GetShell()->ActionPend() )
            {
                SwAccessibleEvent_Impl aEvent(
                    SwAccessibleEvent_Impl::CARET_OR_STATES,
                    pAccImpl, &_rTxtFrm,
=====================================================================
Found a 14 line (125 tokens) duplication in the following files: 
Starting at line 962 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap2.cxx
Starting at line 988 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap2.cxx

void SAL_CALL SvxShapeControl::setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw( beans::UnknownPropertyException, uno::RuntimeException )
{
	OUString aFormsName;
	convertPropertyName( PropertyName, aFormsName );
	if( aFormsName.getLength() )
	{
		uno::Reference< beans::XPropertyState > xControl( getControl(), uno::UNO_QUERY );
		uno::Reference< beans::XPropertySet > xPropSet( getControl(), uno::UNO_QUERY );

		if( xControl.is() && xPropSet.is() )
		{
			uno::Reference< beans::XPropertySetInfo > xInfo( xPropSet->getPropertySetInfo() );
			if( xInfo.is() && xInfo->hasPropertyByName( aFormsName ) )
			{
=====================================================================
Found a 19 line (125 tokens) duplication in the following files: 
Starting at line 1628 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoole2.cxx
Starting at line 482 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdouno.cxx

void SdrUnoObj::NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact)
{
	SdrRectObj::NbcResize(rRef,xFact,yFact);

	if (aGeo.nShearWink!=0 || aGeo.nDrehWink!=0)
	{
		// kleine Korrekturen
		if (aGeo.nDrehWink>=9000 && aGeo.nDrehWink<27000)
		{
			aRect.Move(aRect.Left()-aRect.Right(),aRect.Top()-aRect.Bottom());
		}

		aGeo.nDrehWink	= 0;
		aGeo.nShearWink = 0;
		aGeo.nSin		= 0.0;
		aGeo.nCos		= 1.0;
		aGeo.nTan		= 0.0;
		SetRectsDirty();
	}
=====================================================================
Found a 23 line (125 tokens) duplication in the following files: 
Starting at line 774 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svddrgmt.cxx
Starting at line 492 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdsnpv.cxx

	USHORT nRet=SnapPos(aPt,pPV);
	aPt-=rPt;
	if ((nRet & SDRSNAP_XSNAPPED) !=0) {
		if (bXSnapped) {
			if (Abs(aPt.X())<Abs(nBestXSnap)) {
				nBestXSnap=aPt.X();
			}
		} else {
			nBestXSnap=aPt.X();
			bXSnapped=TRUE;
		}
	}
	if ((nRet & SDRSNAP_YSNAPPED) !=0) {
		if (bYSnapped) {
			if (Abs(aPt.Y())<Abs(nBestYSnap)) {
				nBestYSnap=aPt.Y();
			}
		} else {
			nBestYSnap=aPt.Y();
			bYSnapped=TRUE;
		}
	}
}
=====================================================================
Found a 25 line (125 tokens) duplication in the following files: 
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/view3d.cxx
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/view3d.cxx

SdrModel* E3dView::GetMarkedObjModel() const
{
	// Existieren 3D-Objekte, deren Szenen nicht selektiert sind?
	BOOL bSpecialHandling = FALSE;
	E3dScene *pScene = NULL;

	long nCnt = GetMarkedObjectCount();
	for(long nObjs = 0;nObjs < nCnt;nObjs++)
	{
		SdrObject *pObj = GetMarkedObjectByIndex(nObjs);
		if(pObj && pObj->ISA(E3dCompoundObject))
		{
			// zugehoerige Szene
			pScene = ((E3dCompoundObject*)pObj)->GetScene();
			if(pScene && !IsObjMarked(pScene))
				bSpecialHandling = TRUE;
		}
		// Alle SelectionFlags zuruecksetzen
		if(pObj && pObj->ISA(E3dObject))
		{
			pScene = ((E3dObject*)pObj)->GetScene();
			if(pScene)
				pScene->SetSelected(FALSE);
		}
	}
=====================================================================
Found a 21 line (125 tokens) duplication in the following files: 
Starting at line 1028 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/autocdlg.cxx
Starting at line 521 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/fontsubs.cxx

        ULONG nSelPos = GetModel()->GetAbsPos(GetCurEntry());
        USHORT nCol = GetCurrentTabPos() - 1;
        if ( nCol < 2 )
        {
            CheckEntryPos( nSelPos, nCol, !IsChecked( nSelPos, nCol ) );
            CallImplEventListeners( VCLEVENT_CHECKBOX_TOGGLE, (void*)GetEntry( nSelPos ) );
        }
        else
        {
            USHORT nCheck = IsChecked(nSelPos, 1) ? 1 : 0;
            if(IsChecked(nSelPos, 0))
                nCheck += 2;
            nCheck--;
            nCheck &= 3;
            CheckEntryPos(nSelPos, 1, 0 != (nCheck & 1));
            CheckEntryPos(nSelPos, 0, 0 != (nCheck & 2));
        }
    }
    else
        SvxSimpleTable::KeyInput(rKEvt);
}
=====================================================================
Found a 20 line (125 tokens) duplication in the following files: 
Starting at line 5381 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 5039 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x6000, 0x40c, 0x406, 0 }						// 0x14
};
static const sal_Int32 mso_sptCloudCalloutDefault[] =
{
	2, 1350, 25920
};
static const SvxMSDffTextRectangles mso_sptCloudCalloutTextRect[] =
{
	{ { 3000, 3320 }, { 17110, 17330 } }
};
static const mso_CustomShape msoCloudCallout =
{
	(SvxMSDffVertPair*)mso_sptCloudCalloutVert, sizeof( mso_sptCloudCalloutVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptCloudCalloutSegm, sizeof( mso_sptCloudCalloutSegm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptCloudCalloutCalc, sizeof( mso_sptCloudCalloutCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptCloudCalloutDefault,
	(SvxMSDffTextRectangles*)mso_sptCloudCalloutTextRect, sizeof( mso_sptCloudCalloutTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	NULL, 0
=====================================================================
Found a 18 line (125 tokens) duplication in the following files: 
Starting at line 3196 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2881 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
};

static const SvxMSDffVertPair mso_sptMoonVert[] =	// adj value 0 -> 18900
{
	{ 21600, 0 },
	{ 3 MSO_I, 4 MSO_I },	{ 0 MSO_I, 5080 },		{ 0 MSO_I, 10800 },	// ccp
	{ 0 MSO_I, 16520 },		{ 3 MSO_I, 5 MSO_I },	{ 21600, 21600 },	// ccp
	{ 9740, 21600 },		{ 0, 16730 },			{ 0, 10800 },		// ccp
	{ 0, 4870 },			{ 9740, 0 },			{ 21600, 0	}		// ccp
};
static const sal_uInt16 mso_sptMoonSegm[] =
{
	0x4000, 0x2004, 0x6000, 0x8000
};
static const SvxMSDffCalculationData mso_sptMoonCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 24 line (125 tokens) duplication in the following files: 
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 395 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx

        Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY );
        URLToDispatchMap::iterator pIter = m_aListenerMap.begin();
        while ( pIter != m_aListenerMap.end() )
        {
            Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance( 
                                                            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                        UNO_QUERY );
            com::sun::star::util::URL aTargetURL;
            aTargetURL.Complete = pIter->first;
            xURLTransformer->parseStrict( aTargetURL );
            
            Reference< XDispatch > xDispatch( pIter->second );
            if ( xDispatch.is() )
            {
                // We already have a dispatch object => we have to requery.
                // Release old dispatch object and remove it as listener
                try
                {
                    xDispatch->removeStatusListener( xStatusListener, aTargetURL );
                }
                catch ( Exception& )
                {
                }
            }
=====================================================================
Found a 26 line (125 tokens) duplication in the following files: 
Starting at line 766 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/imap.cxx
Starting at line 841 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/imap.cxx

	ClearImageMap();

	for ( USHORT i = 0; i < nCount; i++ )
	{
		IMapObject* pCopyObj = rImageMap.GetIMapObject( i );

		switch( pCopyObj->GetType() )
		{
			case( IMAP_OBJ_RECTANGLE ):
				maList.Insert( new IMapRectangleObject( *(IMapRectangleObject*) pCopyObj ), LIST_APPEND );
			break;

			case( IMAP_OBJ_CIRCLE ):
				maList.Insert( new IMapCircleObject( *(IMapCircleObject*) pCopyObj ), LIST_APPEND );
			break;

			case( IMAP_OBJ_POLYGON ):
				maList.Insert( new IMapPolygonObject( *(IMapPolygonObject*) pCopyObj ), LIST_APPEND );
			break;

			default:
			break;
		}
	}

	aName = rImageMap.aName;
=====================================================================
Found a 11 line (125 tokens) duplication in the following files: 
Starting at line 611 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/uriproc/test_uriproc.cxx
Starting at line 716 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/uriproc/test_uriproc.cxx

          "../c/d", 0 } };
    for (std::size_t i = 0; i < sizeof data / sizeof data[0]; ++i) {
        css::uno::Reference< css::uri::XUriReference > baseUriRef(
            m_uriFactory->parse(
                rtl::OUString::createFromAscii(data[i].baseUriReference)));
        CPPUNIT_ASSERT(baseUriRef.is());
        css::uno::Reference< css::uri::XUriReference > uriRef(
            m_uriFactory->parse(
                rtl::OUString::createFromAscii(data[i].uriReference)));
        CPPUNIT_ASSERT(uriRef.is());
        css::uno::Reference< css::uri::XUriReference > relative(
=====================================================================
Found a 17 line (125 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crcomp.cxx
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crcomp.cxx

	throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
	if (rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_STRUCT ||
		rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_EXCEPTION)
	{
		typelib_TypeDescription * pObjTD = 0;
		TYPELIB_DANGER_GET( &pObjTD, rObj.getValueTypeRef() );
		
		typelib_TypeDescription * pTD = pObjTD;
		typelib_TypeDescription * pDeclTD = getDeclTypeDescr();
		while (pTD && !typelib_typedescription_equals( pTD, pDeclTD ))
			pTD = (typelib_TypeDescription *)((typelib_CompoundTypeDescription *)pTD)->pBaseTypeDescription;
		
		OSL_ENSURE( pTD, "### illegal object type!" );
		if (pTD)
		{
			TYPELIB_DANGER_RELEASE( pObjTD );
=====================================================================
Found a 14 line (125 tokens) duplication in the following files: 
Starting at line 786 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx
Starting at line 807 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx

::com::sun::star::accessibility::TextSegment SAL_CALL SmGraphicAccessible::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
	vos::OGuard aGuard(Application::GetSolarMutex());
    String aTxt( GetAccessibleText_Impl() );
    xub_StrLen nIdx = (xub_StrLen) nIndex;
    //!! nIndex is allowed to be the string length
    if (!(/*0 <= nIdx  &&*/  nIdx <= aTxt.Len()))
        throw IndexOutOfBoundsException();

    ::com::sun::star::accessibility::TextSegment aResult;
    aResult.SegmentStart = -1;
    aResult.SegmentEnd = -1;

    if ( (AccessibleTextType::CHARACTER == aTextType)  && nIdx )
=====================================================================
Found a 14 line (125 tokens) duplication in the following files: 
Starting at line 729 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/prevloc.cxx
Starting at line 757 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/prevloc.cxx

                    nMainRowEnd);
            do
            {
                if ((*aIter & CR_HIDDEN) == 0)
                {
                    SCROW nRangeEnd = aIter.GetRangeEnd();
                    for (SCROW nRow=aIter.GetRangeStart(); nRow<=nRangeEnd; ++nRow)
                    {
                        USHORT nDocH = pDoc->FastGetOriginalRowHeight( nRow, nTab );
                        long nNextY = nPosY + (long) (nDocH * nScaleY);

                        long nPixelStart = pWindow->LogicToPixel( Size( 0, nPosY ), aCellMapMode ).Height();
                        long nPixelEnd = pWindow->LogicToPixel( Size( 0, nNextY ), aCellMapMode ).Height() - 1;
                        pRowInfo[nRowPos].Set( FALSE, nRow,
=====================================================================
Found a 8 line (125 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/docuno.cxx
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/optuno.cxx

        {MAP_CHAR_LEN(SC_UNO_DEFTABSTOP),   0,  &getCppuType((sal_Int16*)0),    0, 0},
        {MAP_CHAR_LEN(SC_UNO_IGNORECASE),   0,  &getBooleanCppuType(),          0, 0},
        {MAP_CHAR_LEN(SC_UNO_ITERENABLED),  0,  &getBooleanCppuType(),          0, 0},
        {MAP_CHAR_LEN(SC_UNO_ITERCOUNT),    0,  &getCppuType((sal_Int32*)0),    0, 0},
        {MAP_CHAR_LEN(SC_UNO_ITEREPSILON),  0,  &getCppuType((double*)0),       0, 0},
        {MAP_CHAR_LEN(SC_UNO_LOOKUPLABELS), 0,  &getBooleanCppuType(),          0, 0},
        {MAP_CHAR_LEN(SC_UNO_MATCHWHOLE),   0,  &getBooleanCppuType(),          0, 0},
        {MAP_CHAR_LEN(SC_UNO_NULLDATE),     0,  &getCppuType((util::Date*)0),   0, 0},
=====================================================================
Found a 27 line (125 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/detreg.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/detreg.cxx

using namespace ::rtl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;

extern "C" {

SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
        const  sal_Char**   ppEnvironmentTypeName,
        uno_Environment**              )
{
	*ppEnvironmentTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}

SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(
	void*	,
	void*	pRegistryKey	)
{
    Reference< ::registry::XRegistryKey >
            xKey( reinterpret_cast< ::registry::XRegistryKey* >( pRegistryKey ) ) ;

    OUString aDelimiter( RTL_CONSTASCII_USTRINGPARAM("/") );
    OUString aUnoServices( RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") );

    // Eigentliche Implementierung und ihre Services registrieren
	sal_Int32 i;
    Reference< ::registry::XRegistryKey >  xNewKey;
=====================================================================
Found a 13 line (125 tokens) duplication in the following files: 
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chartuno.cxx
Starting at line 617 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chartuno.cxx

	ScRangeList* pList = new ScRangeList;
	USHORT nRangeCount = (USHORT)aRanges.getLength();
	if (nRangeCount)
	{
		const table::CellRangeAddress* pAry = aRanges.getConstArray();
		for (USHORT i=0; i<nRangeCount; i++)
		{
			ScRange aRange( static_cast<SCCOL>(pAry[i].StartColumn), pAry[i].StartRow, pAry[i].Sheet,
							static_cast<SCCOL>(pAry[i].EndColumn),   pAry[i].EndRow,   pAry[i].Sheet );
			pList->Append( aRange );
		}
	}
	ScRangeListRef xNewRanges( pList );
=====================================================================
Found a 29 line (125 tokens) duplication in the following files: 
Starting at line 674 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx
Starting at line 787 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx

	aString+='\t';
	pScChangeAction->GetRefString(aRefStr, pDoc, TRUE);
	aString+=aRefStr;
	aString+='\t';

	if(!bIsGenerated)
	{
		aString+=aUser;
		aString+='\t';

        aString+=ScGlobal::pLocaleData->getDate(aDateTime);
		aString+=' ';
        aString+=ScGlobal::pLocaleData->getTime(aDateTime);
		aString+='\t';
	}
	else
	{
		aString+='\t';
		aString+='\t';
	}
	String aComment=pScChangeAction->GetComment();
	aComment.EraseAllChars('\n');

	if(aDesc.Len()>0)
	{
		aComment.AppendAscii(RTL_CONSTASCII_STRINGPARAM( " (" ));
		aComment+=aDesc;
		aComment+=')';
	}
=====================================================================
Found a 22 line (125 tokens) duplication in the following files: 
Starting at line 2550 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabres.cxx
Starting at line 2624 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabres.cxx

			bIsDataLayout = pThisDim->getIsDataLayoutDimension();
			aDimensionName = pThisDim->getName();

        	const sheet::DataPilotFieldAutoShowInfo& rAutoInfo = pThisLevel->GetAutoShow();
        	if ( rAutoInfo.IsEnabled )
        	{
        	    bAutoShow     = TRUE;
        	    bAutoTopItems = ( rAutoInfo.ShowItemsMode == sheet::DataPilotFieldShowItemsMode::FROM_TOP );
        	    nAutoMeasure  = pThisLevel->GetAutoMeasure();
        	    nAutoCount    = rAutoInfo.ItemCount;
        	}

            const sheet::DataPilotFieldSortInfo& rSortInfo = pThisLevel->GetSortInfo();
            if ( rSortInfo.Mode == sheet::DataPilotFieldSortMode::DATA )
            {
                bSortByData = TRUE;
                bSortAscending = rSortInfo.IsAscending;
                nSortMeasure = pThisLevel->GetSortMeasure();
            }

            // global order is used to initialize aMembers, so it doesn't have to be looked at later
    		const ScMemberSortOrder& rGlobalOrder = pThisLevel->GetGlobalOrder();
=====================================================================
Found a 21 line (125 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/ustrbuf.c
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/ustrbuf.c

                                                const sal_Char * str,
                                                sal_Int32 len)
{
    sal_Int32 nOldLen;
    sal_Unicode * pBuf;
    sal_Int32 n;
    if( len != 0 )
    {
        if (*capacity < (*This)->length + len)
            rtl_uStringbuffer_ensureCapacity( This, capacity, (*This)->length + len );

        nOldLen = (*This)->length;
        pBuf = (*This)->buffer;

        /* copy the tail */
        n = (nOldLen - offset);
        if( n == 1 )
            /* optimized for 1 character */
            pBuf[offset + len] = pBuf[offset];
        else if( n > 1 )
            rtl_moveMemory( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Unicode) );
=====================================================================
Found a 43 line (125 tokens) duplication in the following files: 
Starting at line 1735 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 410 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket2.cxx

			AcceptorThread myAcceptorThread( asSocket, rtl::OUString::createFromAscii("0.0.0.0") );
			myAcceptorThread.create();
			
			thread_sleep( 1 );
			asSocket.close();
			myAcceptorThread.join();
						
			CPPUNIT_ASSERT_MESSAGE( "test for close when is accepting: the socket will quit accepting status.", 
								myAcceptorThread.isOK()	== sal_True );
		}
		
		CPPUNIT_TEST_SUITE( close );
		CPPUNIT_TEST( close_001 );
		CPPUNIT_TEST( close_002 );
		CPPUNIT_TEST( close_003 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class close
	
	/** testing the method:
		inline void SAL_CALL getLocalAddr( SocketAddr &Addr ) const;
	*/
	
	class getLocalAddr : public CppUnit::TestFixture
	{
	public:
		oslSocket sHandle;
		// initialization
		void setUp( )
		{
			sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
		}

		void tearDown( )
		{
			sHandle = NULL;
		}

		// get the Address of the local end of the socket
		void getLocalAddr_001()
		{
			::osl::Socket sSocket(sHandle);
			::osl::SocketAddr saBindSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_MYPORT8 );
=====================================================================
Found a 21 line (125 tokens) duplication in the following files: 
Starting at line 1769 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 1853 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

				pProfile->m_Sections[index].m_Entries=0;
			}
		}

		if (pProfile->m_Sections == NULL)
		{
			pProfile->m_NoSections = 0;
			pProfile->m_MaxSections = 0;
			return (sal_False);
		}
	}

	pProfile->m_NoSections++;

	if ( pProfile->m_Sections[(pProfile->m_NoSections) - 1].m_Entries != 0 )
	{
		free(pProfile->m_Sections[(pProfile->m_NoSections) - 1].m_Entries);
	}
	pProfile->m_Sections[pProfile->m_NoSections - 1].m_Entries    = NULL;
	pProfile->m_Sections[pProfile->m_NoSections - 1].m_NoEntries  = 0;
	pProfile->m_Sections[pProfile->m_NoSections - 1].m_MaxEntries = 0;
=====================================================================
Found a 11 line (125 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

                                     int Line, const sal_Char* Entry, sal_uInt32 Len);
static void                 removeEntry(osl_TProfileSection *pSection, sal_uInt32 NoEntry);
static sal_Bool             addSection(osl_TProfileImpl* pProfile, int Line, const sal_Char* Section, sal_uInt32 Len);
static void                 removeSection(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection);
static osl_TProfileSection* findEntry(osl_TProfileImpl* pProfile, const sal_Char* Section,
                                      const sal_Char* Entry, sal_uInt32 *pNoEntry);
static sal_Bool             loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile);
static sal_Bool             storeProfile(osl_TProfileImpl* pProfile, sal_Bool bCleanup);
static osl_TProfileImpl*    acquireProfile(oslProfile Profile, sal_Bool bWriteable);
static sal_Bool             releaseProfile(osl_TProfileImpl* pProfile);
static sal_Bool             lookupProfile(const sal_Unicode *strPath, const sal_Unicode *strFile, sal_Unicode *strProfile);
=====================================================================
Found a 17 line (125 tokens) duplication in the following files: 
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/padmin/source/padialog.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/workben/svptest.cxx

	DrawGradient( Rectangle( Point( 1000, 6900 ),
                             Size( aPaperSize.Width() - 2000,
                                   500 ) ), aGradient );



	LineInfo aLineInfo( LINE_SOLID, 200 );
	double sind = sin( DELTA*M_PI/180.0 );
	double cosd = cos( DELTA*M_PI/180.0 );
	double factor = 1 + (DELTA/1000.0);
	int n=0;
	Color aLineColor( 0, 0, 0 );
	Color aApproachColor( 0, 0, 200 );
	while ( aP2.X() < aCenter.X() && n++ < 680 )
	{
		aLineInfo.SetWidth( n/3 );
		aLineColor = approachColor( aLineColor, aApproachColor );
=====================================================================
Found a 14 line (125 tokens) duplication in the following files: 
Starting at line 550 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx
Starting at line 1485 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx

	 		(*(dash-1)>='0')) || (*(dash-1)=='.'))) {
         *dash='-';
	 n = 1;
	 if (*(dash - n) == '.') n++;
	 // search first not a number character to left from dash
	 while (((dash - n)>=cw) && ((*(dash - n)=='0') || (n < 3)) && (n < 6)) {
	    n++;
	 }
	 if ((dash - n) < cw) n--;
	 // numbers: valami1000000-hoz
	 // examine 100000-hoz, 10000-hoz 1000-hoz, 10-hoz,
	 // 56-hoz, 6-hoz
	 for(; n >= 1; n--) {
	    if ((*(dash - n) >= '0') && (*(dash - n) <= '9') && check(dash - n)) {
=====================================================================
Found a 17 line (125 tokens) duplication in the following files: 
Starting at line 1747 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 2265 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xc0, 0xc0 },
{ 0x01, 0xe1, 0xc1 },
{ 0x01, 0xe2, 0xc2 },
{ 0x01, 0xe3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x01, 0xf0, 0xd0 },
=====================================================================
Found a 16 line (125 tokens) duplication in the following files: 
Starting at line 343 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/pumptest.cxx
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/pumptest.cxx

void OPumpTest::testTerminate( const Reference< XInterface > &r )
{
    TestCase t( m_rSmgr, r );

    ERROR_ASSERT( ! t.m_pTestListener->m_bStarted , "started too early" );
    ERROR_ASSERT( ! t.m_pTestListener->m_bTerminated , "terminiation unexpected" );
    ERROR_ASSERT( ! t.m_pTestListener->m_bError, "unexpected error" );
    ERROR_ASSERT( ! t.m_pTestListener->m_bClosed, "unexpected clase" );

    t.m_rControl->start();
    mywait();
 
    ERROR_ASSERT( t.m_pTestListener->m_bStarted , "should have been started already" );
    ERROR_ASSERT( ! t.m_pTestListener->m_bTerminated , "terminiation unexpected" );
    ERROR_ASSERT( ! t.m_pTestListener->m_bError, "unexpected error" );
    ERROR_ASSERT( ! t.m_pTestListener->m_bClosed, "unexpected clase" );
=====================================================================
Found a 22 line (125 tokens) duplication in the following files: 
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acceptor.cxx
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/connector/connector.cxx

                    throw NoConnectException( sMessage ,Reference< XInterface > () );
                }
            }
            else if (aDesc.getName().equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(
                                                      "socket")))
            {
                rtl::OUString aHost;
                if (aDesc.hasParameter(
                        rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("host"))))
                    aHost = aDesc.getParameter(
                        rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("host")));
                else
                    aHost = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                              "localhost"));
                sal_uInt16 nPort = static_cast< sal_uInt16 >(
                    aDesc.getParameter(
                        rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("port"))).
                    toInt32());
                bool bTcpNoDelay
                    = aDesc.getParameter(
                        rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                          "tcpnodelay"))).toInt32() != 0;
=====================================================================
Found a 4 line (125 tokens) duplication in the following files: 
Starting at line 1338 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1386 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25c0 - 25cf
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25d0 - 25df
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 25e0 - 25ef
    10,10,10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0,// 25f0 - 25ff
=====================================================================
Found a 4 line (125 tokens) duplication in the following files: 
Starting at line 1127 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1136 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c00 - 0c0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c10 - 0c1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c20 - 0c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,// 0c30 - 0c3f
=====================================================================
Found a 4 line (125 tokens) duplication in the following files: 
Starting at line 1085 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1162 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 6 line (125 tokens) duplication in the following files: 
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0                            // /
=====================================================================
Found a 5 line (125 tokens) duplication in the following files: 
Starting at line 831 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 871 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,20,21,// fd30 - fd3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fd40 - fd4f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd50 - fd5f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd60 - fd6f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd70 - fd7f
=====================================================================
Found a 5 line (125 tokens) duplication in the following files: 
Starting at line 827 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1261 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1860 - 186f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 4 line (125 tokens) duplication in the following files: 
Starting at line 601 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 608 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,24,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25c0 - 25cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25d0 - 25df
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25e0 - 25ef
    27,27,27,27,27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0,// 25f0 - 25ff
=====================================================================
Found a 19 line (125 tokens) duplication in the following files: 
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontmenucontroller.cxx
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/macrosmenucontroller.cxx

void SAL_CALL MacrosMenuController::setPopupMenu( const Reference< css::awt::XPopupMenu >& xPopupMenu ) throw ( RuntimeException )
{
    ResetableGuard aLock( m_aLock );

    if ( m_bDisposed )
        throw DisposedException();
    
    if ( m_xFrame.is() && !m_xPopupMenu.is() )
    {
        // Create popup menu on demand
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        
        m_xPopupMenu = xPopupMenu;
	    m_xPopupMenu->addMenuListener( Reference< css::awt::XMenuListener >( (OWeakObject*)this, UNO_QUERY ));
            
        Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance( 
                                                        rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                    UNO_QUERY );
        Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
=====================================================================
Found a 34 line (125 tokens) duplication in the following files: 
Starting at line 473 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

void SAL_CALL OReadMenuHandler::characters(const rtl::OUString&)
throw(	SAXException, RuntimeException )
{
}


void SAL_CALL OReadMenuHandler::endElement( const OUString& aName )
	throw( SAXException, RuntimeException )
{
	if ( m_bMenuPopupMode )
	{
		--m_nElementDepth;
		if ( 0 == m_nElementDepth )
		{
			m_xReader->endDocument();
			m_xReader = Reference< XDocumentHandler >();
			m_bMenuPopupMode = sal_False;
			if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUPOPUP )))
			{
				OUString aErrorMessage = getErrorLineString();
				aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "closing element menupopup expected!" ));
				throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
			}
		}
		else
			m_xReader->endElement( aName );
	}
}


// -----------------------------------------------------------------------------


OReadMenuPopupHandler::OReadMenuPopupHandler(     
=====================================================================
Found a 14 line (125 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Button.cxx
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/CheckBox.cxx

namespace frm
{
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::form::binding;
=====================================================================
Found a 22 line (125 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfileview.cxx
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/docvw/srcedtw.cxx

		aScrollSz.Height() = aOutSz.Height();
		aScrollPos = Point(aOutSz.Width() - nScrollStd, 0);

		pVScrollbar->SetPosSizePixel( aScrollPos, aScrollSz);
		aOutSz.Width() 	-= nScrollStd;
		aOutSz.Height() 	-= nScrollStd;
		pOutWin->SetOutputSizePixel(aOutSz);
        InitScrollBars();

        // Zeile im ersten Resize setzen
		if(USHRT_MAX != nStartLine)
		{
			if(nStartLine < pTextEngine->GetParagraphCount())
			{
				TextSelection aSel(TextPaM( nStartLine, 0 ), TextPaM( nStartLine, 0x0 ));
				pTextView->SetSelection(aSel);
				pTextView->ShowCursor();
			}
			nStartLine = USHRT_MAX;
		}

		if ( nVisY != pTextView->GetStartDocPos().Y() )
=====================================================================
Found a 19 line (125 tokens) duplication in the following files: 
Starting at line 352 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1841 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("Enum2", (a >>= b) && b == Enum2_M1);
    }
    {
        Struct1 b(2);
        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testStruct() {
=====================================================================
Found a 32 line (125 tokens) duplication in the following files: 
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MStatement.cxx
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx

		case PROPERTY_ID_USEBOOKMARKS:
		default:
			;
	}
}
// -------------------------------------------------------------------------
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement");
// -----------------------------------------------------------------------------
void SAL_CALL OStatement_Base::acquire() throw()
{
	OStatement_BASE::acquire();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement_Base::release() throw()
{
	OStatement_BASE::release();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement::acquire() throw()
{
	OStatement_BASE2::acquire();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement::release() throw()
{
	OStatement_BASE2::release();
}
// -----------------------------------------------------------------------------
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo(  ) throw(RuntimeException)
{
	return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
=====================================================================
Found a 15 line (125 tokens) duplication in the following files: 
Starting at line 421 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 714 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

		static const char * cSignature = "(I)Ljava/sql/Timestamp;";
		static const char * cMethodName = "getTimestamp";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID, columnIndex);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			// und aufraeumen
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return out ? static_cast <com::sun::star::util::DateTime> (java_sql_Timestamp( t.pEnv, out )) : ::com::sun::star::util::DateTime();
}
=====================================================================
Found a 25 line (125 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YUser.cxx

OUserExtend::OUserExtend(   const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection,const ::rtl::OUString& _Name) : OMySQLUser(_xConnection,_Name)
{
	construct();
}
// -------------------------------------------------------------------------
typedef connectivity::sdbcx::OUser	OUser_TYPEDEF;
void OUserExtend::construct()
{
	registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PASSWORD),	PROPERTY_ID_PASSWORD,0,&m_Password,::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL)));
}
// -----------------------------------------------------------------------------
cppu::IPropertyArrayHelper* OUserExtend::createArrayHelper() const
{
	Sequence< Property > aProps;
	describeProperties(aProps);
	return new cppu::OPropertyArrayHelper(aProps);
}
// -------------------------------------------------------------------------
cppu::IPropertyArrayHelper & OUserExtend::getInfoHelper()
{
	return *OUserExtend_PROP::getArrayHelper();
}
typedef connectivity::sdbcx::OUser_BASE OUser_BASE_RBHELPER;
// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL OMySQLUser::getPrivileges( const ::rtl::OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
=====================================================================
Found a 40 line (125 tokens) duplication in the following files: 
Starting at line 795 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 478 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

	return nValue;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable(  ) throw(SQLException, RuntimeException)
{
    // We allow you to select from any table.
	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly(  ) throw(SQLException, RuntimeException)
{
    //we support insert/update/delete now
    //But we have to set this to return sal_True otherwise the UI will add create "table/edit table"
    //entry to the popup menu. We should avoid them.
	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
=====================================================================
Found a 32 line (125 tokens) duplication in the following files: 
Starting at line 645 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MStatement.cxx

		case PROPERTY_ID_ESCAPEPROCESSING:
		default:
			;
	}
}
// -------------------------------------------------------------------------
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement");
// -----------------------------------------------------------------------------
void SAL_CALL OStatement_Base::acquire() throw()
{
	OStatement_BASE::acquire();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement_Base::release() throw()
{
	OStatement_BASE::release();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement::acquire() throw()
{
	OStatement_BASE2::acquire();
}
// -----------------------------------------------------------------------------
void SAL_CALL OStatement::release() throw()
{
	OStatement_BASE2::release();
}
// -----------------------------------------------------------------------------
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo(  ) throw(RuntimeException)
{
	return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
=====================================================================
Found a 5 line (125 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/NamedPropertyValuesContainer.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdiclist.cxx

    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    // XNameContainer
    virtual void SAL_CALL insertByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL removeByName( const ::rtl::OUString& Name ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 26 line (125 tokens) duplication in the following files: 
Starting at line 1193 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 1460 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

                o << "(sal_uInt64)" << tmp.getStr() << "L";
            }
			break;
		case RT_TYPE_FLOAT:
            {
                ::rtl::OString tmp( OString::valueOf(constValue.m_value.aFloat) );
                o << "(float)" << tmp.getStr();
            }
			break;
		case RT_TYPE_DOUBLE:
            {
                ::rtl::OString tmp( OString::valueOf(constValue.m_value.aDouble) );
                o << "(double)" << tmp.getStr();
            }
			break;
		case RT_TYPE_STRING:
			{
				::rtl::OUString aUStr(constValue.m_value.aString);
				::rtl::OString aStr = ::rtl::OUStringToOString(aUStr, RTL_TEXTENCODING_ASCII_US);
				o << "::rtl::OUString::createFromAscii(\"" << aStr.getStr() << "\")";
			}
			break;
	}
}

void CunoType::inc(sal_uInt32 num)
=====================================================================
Found a 22 line (125 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 608 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx

				pThis, nVtableCall,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
				((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
				pReturn, pArgs, ppException );
		}
		break;
	}
	default:
	{
		::com::sun::star::uno::RuntimeException aExc(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal member type description!") ),
			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
		
		Type const & rExcType = ::getCppuType( &aExc );
		// binary identical null reference
		::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
	}
	}
}

}
=====================================================================
Found a 27 line (125 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxuint.cxx

				nRes = (UINT16) ( p->nSingle + 0.5 );
			break;
		case SbxDATE:
		case SbxDOUBLE:
		case SbxLONG64:
		case SbxULONG64:
		case SbxCURRENCY:
		case SbxDECIMAL:
		case SbxBYREF | SbxDECIMAL:
			{
			double dVal;
			if( p->eType ==	SbxCURRENCY )
				dVal = ImpCurrencyToDouble( p->nLong64 );
			else if( p->eType == SbxLONG64 )
				dVal = ImpINT64ToDouble( p->nLong64 );
			else if( p->eType == SbxULONG64 )
				dVal = ImpUINT64ToDouble( p->nULong64 );
			else if( p->eType == SbxDECIMAL )
			{
				dVal = 0.0;
				if( p->pDecimal )
					p->pDecimal->getDouble( dVal );
			}
			else
				dVal = p->nDouble;

			if( dVal > SbxMAXUINT )
=====================================================================
Found a 23 line (125 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlgedview.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/ui/report/SectionView.cxx

		const sal_Int32 nPageHeight = aPageSize.Height();

		if ( nVisRight + nScrollX > nPageWidth )
			nScrollX = nPageWidth - nVisRight;

		if ( nVisLeft + nScrollX < 0 )
			nScrollX = -nVisLeft;

		if ( nVisBottom + nScrollY > nPageHeight )
			nScrollY = nPageHeight - nVisBottom;

		if ( nVisTop + nScrollY < 0 )
			nScrollY = -nVisTop;

		// scroll window
		rWin.Update();
		rWin.Scroll( -nScrollX, -nScrollY );
		aMap.SetOrigin( Point( aOrg.X() - nScrollX, aOrg.Y() - nScrollY ) );
		rWin.SetMapMode( aMap );
		rWin.Update();
		rWin.Invalidate();

		if ( m_pReportWindow )
=====================================================================
Found a 14 line (125 tokens) duplication in the following files: 
Starting at line 657 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
Starting at line 927 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessiblelistboxentry.cxx

	::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL AccessibleListBoxEntry::getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
	{
		ALBSolarGuard aSolarGuard;
		::osl::MutexGuard aGuard( m_aMutex );
		EnsureIsAlive();

		::rtl::OUString sText( implGetText() );

		if ( !implIsValidIndex( nIndex, sText.getLength() ) )
			throw IndexOutOfBoundsException();

		return ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >();
	}
	sal_Int32 SAL_CALL AccessibleListBoxEntry::getCharacterCount(  ) throw (::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 21 line (124 tokens) duplication in the following files: 
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg[4];
=====================================================================
Found a 30 line (124 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h

                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + x_lr;
                        do
                        {
                            int weight = (weight_y * weight_array[x_hr] + 
                                         image_filter_size / 2) >> 
                                         downscale_shift;

                            if(x_lr >= 0 && x_lr <= maxx)
                            {
                                fg        += *fg_ptr   * weight;
                                src_alpha += base_mask * weight;
                            }
                            else
                            {
                                fg        += back_v * weight;
                                src_alpha += back_a * weight;
                            }
                            total_weight += weight;
                            x_hr         += rx_inv;
=====================================================================
Found a 14 line (124 tokens) duplication in the following files: 
Starting at line 347 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 367 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

        AGG_INLINE void copy_vline(int x, int y,
                                   unsigned len, 
                                   const color_type& c)
        {
            value_type* p = (value_type*)m_rbuf->row(y) + (x << 2);
            pixel_type v;
            ((value_type*)&v)[order_type::R] = c.r;
            ((value_type*)&v)[order_type::G] = c.g;
            ((value_type*)&v)[order_type::B] = c.b;
            ((value_type*)&v)[order_type::A] = c.a;
            do
            {
                *(pixel_type*)p = v;
                p = (value_type*)m_rbuf->next_row(p);
=====================================================================
Found a 15 line (124 tokens) duplication in the following files: 
Starting at line 908 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/demo/performance.cxx
Starting at line 947 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/demo/performance.cxx

			mxMSF->createInstance( rtl::OUString::createFromAscii( SIGNATUREVERIFIER_COMPONENT )),
			cssu::UNO_QUERY);	
		
		cssu::Reference<cssl::XInitialization> xInitialization(m_xReferenceListener, cssu::UNO_QUERY);
		
		cssu::Sequence<cssu::Any> args(5);
		char buf[16];
		
		sprintf(buf, "%d", m_nSecurityId);
		args[0] = cssu::makeAny(rtl::OUString(RTL_ASCII_USTRINGPARAM(buf)));
		args[1] = cssu::makeAny(m_xSAXEventKeeper);
		
		sprintf(buf, "%d", m_nSignatureElementCollectorId);
		args[2] = cssu::makeAny(rtl::OUString(RTL_ASCII_USTRINGPARAM(buf)));
		args[3] = cssu::makeAny(m_xXMLSecurityContext);
=====================================================================
Found a 14 line (124 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/dialogs/warnings.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/dialogs/warnings.cxx

MacroWarning::MacroWarning( Window* _pParent )
	:ModalDialog		( _pParent, XMLSEC_RES( RID_XMLSECTP_MACROWARN ) )
	,maDocNameFI		( this, ResId( FI_DOCNAME ) )
	,maDescr1aFI		( this, ResId( FI_DESCR1A ) )
	,maDescr1bFI		( this, ResId( FI_DESCR1B ) )
	,maSignsFI			( this, ResId( FI_SIGNS ) )
	,maViewSignsBtn		( this, ResId( PB_VIEWSIGNS ) )
	,maDescr2FI			( this, ResId( FI_DESCR2 ) )
	,maAlwaysTrustCB	( this, ResId( CB_ALWAYSTRUST ) )
	,maBottomSepFL		( this, ResId( FL_BOTTOM_SEP ) )
	,maEnableBtn		( this, ResId( PB_DISABLE ) )
	,maDisableBtn		( this, ResId( PB_DISABLE ) )
	,maHelpBtn			( this, ResId( BTN_HELP ) )
	,mbSignedMode		( false )
=====================================================================
Found a 28 line (124 tokens) duplication in the following files: 
Starting at line 1828 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLExport.cxx
Starting at line 2007 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLExport.cxx

                Reference< beans::XPropertySet > xTitleProp( xAxisSupp->getYAxisTitle(), uno::UNO_QUERY );
                if( xTitleProp.is())
                {
                    aPropertyStates = mxExpPropMapper->Filter( xTitleProp );
                    if( bExportContent )
                    {
                        OUString aText;
                        Any aAny( xTitleProp->getPropertyValue(
							OUString( RTL_CONSTASCII_USTRINGPARAM( "String" ))));
						aAny >>= aText;

                        Reference< drawing::XShape > xShape( xTitleProp, uno::UNO_QUERY );
                        if( xShape.is())
                            addPosition( xShape );

                        AddAutoStyleAttribute( aPropertyStates );
                        SvXMLElementExport aTitle( mrExport, XML_NAMESPACE_CHART, XML_TITLE, sal_True, sal_True );

                        // paragraph containing title
                        exportText( aText );
                    }
                    else
                    {
                        CollectAutoStyle( aPropertyStates );
                    }
                    aPropertyStates.clear();
                }
			}
=====================================================================
Found a 35 line (124 tokens) duplication in the following files: 
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/services.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/treeview/tvfactory.cxx

	Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}



//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 12 line (124 tokens) duplication in the following files: 
Starting at line 751 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 793 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

	_snprintf(szKeyName, _MAX_PATH, ".%s\0", CXMergeFilter::m_pszPXLExportExt);
	lRet = ::RegOpenKeyEx(hKey, _T(szKeyName), 0, KEY_ALL_ACCESS, &hDataKey);
	if (lRet != ERROR_SUCCESS)
		return _signalRegError(lRet, hKey, hDataKey);

	lRet = ::RegSetValueEx(hDataKey, _T("DefaultImport"), 0, REG_SZ, (LPBYTE)_T("Binary Copy"),
							(::_tcslen(_T("Binary Copy")) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS)
		return _signalRegError(lRet, hKey, hDataKey);

	::lstrcpyn(szKeyName, "\0", _MAX_PATH);
	::RegCloseKey(hDataKey);	hDataKey = NULL;
=====================================================================
Found a 6 line (124 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_curs.h

   0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 20 line (124 tokens) duplication in the following files: 
Starting at line 1934 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx
Starting at line 2396 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx

void CurrencyBox::DataChanged( const DataChangedEvent& rDCEvt )
{
    ComboBox::DataChanged( rDCEvt );

    if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_LOCALE) )
    {
        String sOldDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sOldThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        if ( IsDefaultLocale() )
            ImplGetLocaleDataWrapper().setLocale( GetSettings().GetLocale() );
        String sNewDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sNewThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        ImplUpdateSeparators( sOldDecSep, sNewDecSep, sOldThSep, sNewThSep, this );
        ReformatAll();
    }
}

// -----------------------------------------------------------------------

void CurrencyBox::Modify()
=====================================================================
Found a 20 line (124 tokens) duplication in the following files: 
Starting at line 1807 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx
Starting at line 2276 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx

void CurrencyField::DataChanged( const DataChangedEvent& rDCEvt )
{
    SpinField::DataChanged( rDCEvt );

    if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_LOCALE) )
    {
        String sOldDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sOldThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        if ( IsDefaultLocale() )
            ImplGetLocaleDataWrapper().setLocale( GetSettings().GetLocale() );
        String sNewDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sNewThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        ImplUpdateSeparators( sOldDecSep, sNewDecSep, sOldThSep, sNewThSep, this );
        ReformatAll();
    }
}

// -----------------------------------------------------------------------

void CurrencyField::Modify()
=====================================================================
Found a 20 line (124 tokens) duplication in the following files: 
Starting at line 989 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx
Starting at line 1934 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx

void MetricBox::DataChanged( const DataChangedEvent& rDCEvt )
{
    ComboBox::DataChanged( rDCEvt );

    if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_LOCALE) )
    {
        String sOldDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sOldThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        if ( IsDefaultLocale() )
            ImplGetLocaleDataWrapper().setLocale( GetSettings().GetLocale() );
        String sNewDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sNewThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        ImplUpdateSeparators( sOldDecSep, sNewDecSep, sOldThSep, sNewThSep, this );
        ReformatAll();
    }
}

// -----------------------------------------------------------------------

void MetricBox::Modify()
=====================================================================
Found a 20 line (124 tokens) duplication in the following files: 
Starting at line 869 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx
Starting at line 1807 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx

void MetricField::DataChanged( const DataChangedEvent& rDCEvt )
{
    SpinField::DataChanged( rDCEvt );

    if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_LOCALE) )
    {
        String sOldDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sOldThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        if ( IsDefaultLocale() )
            ImplGetLocaleDataWrapper().setLocale( GetSettings().GetLocale() );
        String sNewDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sNewThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        ImplUpdateSeparators( sOldDecSep, sNewDecSep, sOldThSep, sNewThSep, this );
        ReformatAll();
    }
}

// -----------------------------------------------------------------------

void MetricField::Modify()
=====================================================================
Found a 35 line (124 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_services.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/treeview/tvfactory.cxx

	Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}



//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 21 line (124 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 1144 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

    throw( uno::Exception )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );

    uno::Sequence< uno::Any > aRet( rValues.getLength() );
    uno::Sequence< beans::PropertyChangeEvent > aChanges( rValues.getLength() );
	sal_Int32 nChanged = 0;

    beans::PropertyChangeEvent aEvent;
    aEvent.Source         = static_cast< cppu::OWeakObject * >( this );
	aEvent.Further 		  = sal_False;
//	aEvent.PropertyName	  =
	aEvent.PropertyHandle = -1;
//	aEvent.OldValue		  =
//	aEvent.NewValue       =

    const beans::PropertyValue* pValues = rValues.getConstArray();
	sal_Int32 nCount = rValues.getLength();

    uno::Reference< ucb::XPersistentPropertySet > xAdditionalPropSet;
	sal_Bool bTriedToGetAdditonalPropSet = sal_False;
=====================================================================
Found a 35 line (124 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchyservices.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/treeview/tvfactory.cxx

	Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}



//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 21 line (124 tokens) duplication in the following files: 
Starting at line 1218 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx

            const uno::Reference< ucb::XCommandEnvironment >& /*xEnv*/ )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );

    uno::Sequence< uno::Any > aRet( rValues.getLength() );
    uno::Sequence< beans::PropertyChangeEvent > aChanges( rValues.getLength() );
	sal_Int32 nChanged = 0;

    beans::PropertyChangeEvent aEvent;
    aEvent.Source         = static_cast< cppu::OWeakObject * >( this );
	aEvent.Further 		  = sal_False;
//	aEvent.PropertyName	  =
	aEvent.PropertyHandle = -1;
//	aEvent.OldValue		  =
//	aEvent.NewValue       =

    const beans::PropertyValue* pValues = rValues.getConstArray();
	sal_Int32 nCount = rValues.getLength();

    uno::Reference< ucb::XPersistentPropertySet > xAdditionalPropSet;
	sal_Bool bTriedToGetAdditonalPropSet = sal_False;
=====================================================================
Found a 35 line (124 tokens) duplication in the following files: 
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/provider.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/treeview/tvfactory.cxx

	Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}



//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 28 line (124 tokens) duplication in the following files: 
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/directory.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

	}

    uno::Reference< ucb::XContentIdentifier > xId
        = queryContentIdentifier( nIndex );
	if ( xId.is() )
	{
		try
		{
            uno::Reference< ucb::XContent > xContent
				= m_pImpl->m_xContent->getProvider()->queryContent( xId );
			m_pImpl->m_aResults[ nIndex ]->xContent = xContent;
			return xContent;

		}
        catch ( ucb::IllegalIdentifierException& )
		{
		}
	}
    return uno::Reference< ucb::XContent >();
}

//=========================================================================
// virtual
sal_Bool DataSupplier::getResult( sal_uInt32 nIndex )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( m_pImpl->m_aResults.size() > nIndex )
=====================================================================
Found a 33 line (124 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/prov.cxx
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/helpprovider/helpcontentprovider.cxx

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}

//=========================================================================
extern "C" void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
=====================================================================
Found a 23 line (124 tokens) duplication in the following files: 
Starting at line 377 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoparagraph.cxx
Starting at line 3623 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx

uno::Sequence< uno::Any > SwXPageStyle::getPropertyValues(
    const uno::Sequence< OUString >& rPropertyNames )
        throw(uno::RuntimeException)
{
    vos::OGuard aGuard(Application::GetSolarMutex());
    uno::Sequence< uno::Any > aValues;

    // workaround for bad designed API
    try
    {
        aValues = GetPropertyValues_Impl( rPropertyNames );
    }
    catch (beans::UnknownPropertyException &)
    {
        throw uno::RuntimeException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property exception caught" ) ), static_cast < cppu::OWeakObject * > ( this ) );
    }
    catch (lang::WrappedTargetException &)
    {
        throw uno::RuntimeException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "WrappedTargetException caught" ) ), static_cast < cppu::OWeakObject * > ( this ) );
    }

    return aValues;
}
=====================================================================
Found a 15 line (124 tokens) duplication in the following files: 
Starting at line 3439 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/fmcomp/gridcell.cxx
Starting at line 4190 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/fmcomp/gridcell.cxx

Sequence< ::com::sun::star::uno::Type > SAL_CALL FmXFilterCell::getTypes(  ) throw(RuntimeException)
{
    Sequence< ::com::sun::star::uno::Type > aTypes = OComponentHelper::getTypes();

    sal_Int32 nLen = aTypes.getLength();
    aTypes.realloc(nLen + 2);
    aTypes.getArray()[nLen++] = ::getCppuType(static_cast< Reference< ::com::sun::star::awt::XControl >* >(NULL));
    aTypes.getArray()[nLen++] = ::getCppuType(static_cast< Reference< ::com::sun::star::awt::XTextComponent >* >(NULL));

    return aTypes;
}

// ::com::sun::star::awt::XTextComponent
//------------------------------------------------------------------------------
void SAL_CALL FmXFilterCell::addTextListener(const Reference< ::com::sun::star::awt::XTextListener >& l) throw( RuntimeException )
=====================================================================
Found a 22 line (124 tokens) duplication in the following files: 
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/simptabl.cxx
Starting at line 427 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx

	SvLBoxItem* pRightItem = getItemAtColumn( pRight, m_nSortColumnIndex );

	if(pLeftItem != NULL && pRightItem != NULL)
	{
		USHORT nLeftKind=pLeftItem->IsA();
		USHORT nRightKind=pRightItem->IsA();

		if(nRightKind == SV_ITEM_ID_LBOXSTRING &&
			nLeftKind == SV_ITEM_ID_LBOXSTRING )
		{
			IntlWrapper aIntlWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() );
			const CollatorWrapper* pCollator = aIntlWrapper.getCaseCollator();

			eCompare=(StringCompare)pCollator->compareString( ((SvLBoxString*)pLeftItem)->GetText(),
									((SvLBoxString*)pRightItem)->GetText());

			if(eCompare==COMPARE_EQUAL)
                eCompare=COMPARE_LESS;
		}
	}
	return eCompare;
}
=====================================================================
Found a 23 line (124 tokens) duplication in the following files: 
Starting at line 1495 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl1.cxx
Starting at line 1752 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

	long nVirtHeight = aVirtOutputSize.Height();
	long nVirtWidth = aVirtOutputSize.Width();

	Size aOSize( pView->Control::GetOutputSizePixel() );
	long nRealHeight = aOSize.Height();
	long nRealWidth = aOSize.Width();

	PositionScrollBars( nRealWidth, nRealHeight );

	const MapMode& rMapMode = pView->GetMapMode();
	Point aOrigin( rMapMode.GetOrigin() );

	long nVisibleWidth;
	if( nRealWidth > nVirtWidth )
		nVisibleWidth = nVirtWidth + aOrigin.X();
	else
		nVisibleWidth = nRealWidth;

	long nVisibleHeight;
	if( nRealHeight > nVirtHeight )
		nVisibleHeight = nVirtHeight + aOrigin.Y();
	else
		nVisibleHeight = nRealHeight;
=====================================================================
Found a 19 line (124 tokens) duplication in the following files: 
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/lingucfg.cxx
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/lingucfg.cxx

            bMod = bSucc;
            break;
        }
        case UPH_IS_IGNORE_POST_POSITIONAL_WORD :       pbVal = &rOpt.bIsIgnorePostPositionalWord; break;
        case UPH_IS_AUTO_CLOSE_DIALOG :                 pbVal = &rOpt.bIsAutoCloseDialog; break;
        case UPH_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST :  pbVal = &rOpt.bIsShowEntriesRecentlyUsedFirst; break;
        case UPH_IS_AUTO_REPLACE_UNIQUE_ENTRIES :       pbVal = &rOpt.bIsAutoReplaceUniqueEntries; break;

        case UPH_IS_DIRECTION_TO_SIMPLIFIED :           pbVal = &rOpt.bIsDirectionToSimplified; break;
        case UPH_IS_USE_CHARACTER_VARIANTS :            pbVal = &rOpt.bIsUseCharacterVariants; break;
        case UPH_IS_TRANSLATE_COMMON_TERMS :            pbVal = &rOpt.bIsTranslateCommonTerms; break;
        case UPH_IS_REVERSE_MAPPING :                   pbVal = &rOpt.bIsReverseMapping; break;
        
        case UPH_DATA_FILES_CHANGED_CHECK_VALUE :       pnInt32Val = &rOpt.nDataFilesChangedCheckValue; break;
        default :
            DBG_ERROR( "unexpected property handle" );
    }

    if (pbVal)
=====================================================================
Found a 17 line (124 tokens) duplication in the following files: 
Starting at line 711 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/app/sdxfer.cxx
Starting at line 854 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx

                uno::Reference< embed::XStorage > xWorkStore =
                    ::comphelper::OStorageHelper::GetStorageFromURL( aTempFile.GetURL(), embed::ElementModes::READWRITE );

                // write document storage
                pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, sal_False );
                // mba: no BaseURL for clipboard
                SfxMedium aMedium( xWorkStore, String() );
                bRet = pEmbObj->DoSaveObjectAs( aMedium, FALSE );
                pEmbObj->DoSaveCompleted();

                uno::Reference< embed::XTransactedObject > xTransact( xWorkStore, uno::UNO_QUERY );
                if ( xTransact.is() )
                    xTransact->commit();

                SvStream* pSrcStm = ::utl::UcbStreamHelper::CreateStream( aTempFile.GetURL(), STREAM_READ );
                if( pSrcStm )
                {
=====================================================================
Found a 19 line (124 tokens) duplication in the following files: 
Starting at line 1069 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/EffectMigration.cxx
Starting at line 1143 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/EffectMigration.cxx

sal_Bool EffectMigration::GetDimPrevious( SvxShape* pShape )
{
	sal_Bool bRet = sal_False;
	if( pShape )
	{
		SdrObject* pObj = pShape->GetSdrObject();
		if( pObj && pObj->GetPage() )
		{
			sd::MainSequencePtr pMainSequence = static_cast<SdPage*>(pObj->GetPage())->getMainSequence();

			const Reference< XShape > xShape( pShape );

			EffectSequence::iterator aIter;
			for( aIter = pMainSequence->getBegin(); aIter != pMainSequence->getEnd(); aIter++ )
			{
				CustomAnimationEffectPtr pEffect( (*aIter) );
				if( pEffect->getTargetShape() == xShape )
				{
					bRet = pEffect->hasAfterEffect() &&
=====================================================================
Found a 21 line (124 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/linkuno.cxx
Starting at line 805 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/linkuno.cxx

uno::Any SAL_CALL ScAreaLinkObj::getPropertyValue( const rtl::OUString& aPropertyName )
				throw(beans::UnknownPropertyException, lang::WrappedTargetException,
						uno::RuntimeException)
{
	ScUnoGuard aGuard;
	String aNameString(aPropertyName);
	uno::Any aRet;
	if ( aNameString.EqualsAscii( SC_UNONAME_LINKURL ) )
		aRet <<= getFileName();
	else if ( aNameString.EqualsAscii( SC_UNONAME_FILTER ) )
		aRet <<= getFilter();
	else if ( aNameString.EqualsAscii( SC_UNONAME_FILTOPT ) )
		aRet <<= getFilterOptions();
	else if ( aNameString.EqualsAscii( SC_UNONAME_REFPERIOD ) )
		aRet <<= getRefreshDelay();
	else if ( aNameString.EqualsAscii( SC_UNONAME_REFDELAY ) )
		aRet <<= getRefreshDelay();
	return aRet;
}

SC_IMPL_DUMMY_PROPERTY_LISTENER( ScAreaLinkObj )
=====================================================================
Found a 12 line (124 tokens) duplication in the following files: 
Starting at line 929 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/datauno.cxx

		case sheet::GeneralFunction_SUM:		eSubTotal = SUBTOTAL_FUNC_SUM;	break;
		case sheet::GeneralFunction_COUNT:		eSubTotal = SUBTOTAL_FUNC_CNT2;	break;
		case sheet::GeneralFunction_AVERAGE:	eSubTotal = SUBTOTAL_FUNC_AVE;	break;
		case sheet::GeneralFunction_MAX:		eSubTotal = SUBTOTAL_FUNC_MAX;	break;
		case sheet::GeneralFunction_MIN:		eSubTotal = SUBTOTAL_FUNC_MIN;	break;
		case sheet::GeneralFunction_PRODUCT:	eSubTotal = SUBTOTAL_FUNC_PROD;	break;
		case sheet::GeneralFunction_COUNTNUMS:	eSubTotal = SUBTOTAL_FUNC_CNT;	break;
		case sheet::GeneralFunction_STDEV:		eSubTotal = SUBTOTAL_FUNC_STD;	break;
		case sheet::GeneralFunction_STDEVP:		eSubTotal = SUBTOTAL_FUNC_STDP;	break;
		case sheet::GeneralFunction_VAR:		eSubTotal = SUBTOTAL_FUNC_VAR;	break;
		case sheet::GeneralFunction_VARP:		eSubTotal = SUBTOTAL_FUNC_VARP;	break;
		case sheet::GeneralFunction_AUTO:
=====================================================================
Found a 23 line (124 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/anyrefdg.cxx
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/anyrefdg.cxx

void ScAnyRefDlg::EnableSpreadsheets(BOOL bFlag, BOOL bChilds)
{
	TypeId aType(TYPE(ScDocShell));
	ScDocShell* pDocShell = (ScDocShell*)SfxObjectShell::GetFirst(&aType);
	while( pDocShell )
	{
		SfxViewFrame* pFrame = SfxViewFrame::GetFirst( pDocShell );
		while( pFrame )
		{
			//	#71577# enable everything except InPlace, including bean frames
            if ( !pFrame->GetFrame()->IsInPlace() )
			{
				SfxViewShell* p = pFrame->GetViewShell();
				ScTabViewShell* pViewSh = PTR_CAST(ScTabViewShell,p);
				if(pViewSh!=NULL)
				{
					Window *pWin=pViewSh->GetWindow();
					if(pWin)
					{
						Window *pParent=pWin->GetParent();
						if(pParent)
						{
							pParent->EnableInput(bFlag,FALSE);
=====================================================================
Found a 14 line (124 tokens) duplication in the following files: 
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docsh8.cxx
Starting at line 816 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docsh8.cxx

            return SCERR_EXPORT_CONNECT;
        }
		rtl::OUString aCharSetStr = (*aIter).getIanaName();

		uno::Sequence<beans::PropertyValue> aProps(2);
		aProps[0].Name = rtl::OUString::createFromAscii(SC_DBPROP_EXTENSION);
		aProps[0].Value <<= rtl::OUString( aExtension );
		aProps[1].Name = rtl::OUString::createFromAscii(SC_DBPROP_CHARSET);
		aProps[1].Value <<= aCharSetStr;

		uno::Reference<sdbc::XConnection> xConnection =
								xDrvMan->getConnectionWithInfo( aConnUrl, aProps );
		DBG_ASSERT( xConnection.is(), "can't get Connection" );
		if (!xConnection.is()) return SCERR_EXPORT_CONNECT;
=====================================================================
Found a 21 line (124 tokens) duplication in the following files: 
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/op.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/op.cxx

	if( nType )
		pRange = new LotusRange( static_cast<SCCOL> (nColSt), static_cast<SCROW> (nRowSt) );
	else
		pRange = new LotusRange( static_cast<SCCOL> (nColSt), static_cast<SCROW> (nRowSt), static_cast<SCCOL> (nColEnd), static_cast<SCROW> (nRowEnd) );

	if( isdigit( *cPuffer ) )
	{	// erstes Zeichen im Namen eine Zahl -> 'A' vor Namen setzen
		*pAnsi = 'A';
		strcpy( pAnsi + 1, cPuffer );       // #100211# - checked
	}
	else
		strcpy( pAnsi, cPuffer );           // #100211# - checked

	String		aTmp( pAnsi, pLotusRoot->eCharsetQ );
    ScfTools::ConvertToScDefinedName( aTmp );

	pLotusRoot->pRangeNames->Append( pRange, aTmp );
}


void OP_Footer( SvStream& r, UINT16 n )
=====================================================================
Found a 38 line (124 tokens) duplication in the following files: 
Starting at line 2937 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_StreamSocket.cxx

                ReadSocketThread myClientThread(_nBufferSize, _nValue, aCondition);
                myServerThread.create( );
//          thread_sleep( 1 );
                myClientThread.create( );
            
                //wait until the thread terminate
                myClientThread.join( );
                myServerThread.join( );
            
                //Maximum Packet Size is ( ARPANET, MILNET = 1007 Ethernet (10Mb) = 1500 
                // Proteon PRONET  = 2046), so here test read 4000 bytes 
                sal_Int32 nLength = myClientThread.getCount();
                bool       bIsOk   = myClientThread.isOk(); // check if the values are right.

                t_print("Length:=%d\n", nLength);
                t_print(" bIsOk:=%d\n", bIsOk);

                CPPUNIT_ASSERT_MESSAGE(" test for write/read values with two threads: send data from server, check readed data in client.", 
                                       nLength == _nBufferSize && bIsOk == true);
            }
        
        // Tests with different values and sizes
        void write_read_001()
            {
                write_read(50, 10);
            }
        void write_read_002()
            {
                write_read(1024, 20);
            }
        void write_read_003()
            {
                write_read(4000, 1);
            }
        void write_read_004()
            {
                write_read(8192, 3);
            }
=====================================================================
Found a 23 line (124 tokens) duplication in the following files: 
Starting at line 3827 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 15299 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 16870 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
            ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
=====================================================================
Found a 14 line (124 tokens) duplication in the following files: 
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/suggestmgr.cxx
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/suggestmgr.cxx

	    strcpy(candidate+i-1,word+i+1);
            cwrd = 1;
            for (int k=0; k < ns; k++)
	        if (strcmp(candidate,wlst[k]) == 0) cwrd = 0;
            if ((cwrd) && check(candidate,strlen(candidate), cpdsuggest, NULL, NULL)) {
	        if (ns < maxSug) {
	  	    wlst[ns] = mystrdup(candidate);
		    if (wlst[ns] == NULL) {
		        for (int j=0; j<ns; j++) free(wlst[j]);
		        return -1;
		    }
		    ns++;
	        } else return ns;
	    }
=====================================================================
Found a 22 line (124 tokens) duplication in the following files: 
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acc_socket.cxx
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/connector/ctr_socket.cxx

			OUString message(RTL_CONSTASCII_USTRINGPARAM("ctr_socket.cxx:SocketConnection::read: error - connection already closed"));

			IOException ioException(message, Reference<XInterface>(static_cast<XConnection *>(this)));

			Any any;
			any <<= ioException;

			notifyListeners(this, &_error, callError(any));

			throw ioException;
		}
	}

	void SocketConnection::write( const Sequence < sal_Int8 > &seq )
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException)
	{
		if( ! m_nStatus )
		{
			if( m_socket.write( seq.getConstArray() , seq.getLength() ) != seq.getLength() )
			{
				OUString message(RTL_CONSTASCII_USTRINGPARAM("ctr_socket.cxx:SocketConnection::write: error - "));
=====================================================================
Found a 6 line (124 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_curs.h

   0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 19 line (124 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 803 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 21 line (124 tokens) duplication in the following files: 
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/constitemcontainer.cxx
Starting at line 111 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/itemcontainer.cxx

        {
            for ( sal_Int32 i = 0; i < nCount; i++ )
            {
                Sequence< PropertyValue > aPropSeq;
                Any a = rSourceContainer->getByIndex( i );
                if ( a >>= aPropSeq )
                {
                    sal_Int32 nContainerIndex = -1;
                    Reference< XIndexAccess > xIndexAccess;
                    for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
                    {
                        if ( aPropSeq[j].Name.equalsAscii( "ItemDescriptorContainer" ))
                        {
                            aPropSeq[j].Value >>= xIndexAccess;
                            nContainerIndex = j;
                            break;
                        }
                    }

                    if ( xIndexAccess.is() && nContainerIndex >= 0 )
                        aPropSeq[nContainerIndex].Value <<= deepCopyContainer( xIndexAccess, rMutex );
=====================================================================
Found a 34 line (124 tokens) duplication in the following files: 
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 475 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

void SAL_CALL OReadMenuBarHandler::characters(const rtl::OUString&)
throw(	SAXException, RuntimeException )
{
}


void OReadMenuBarHandler::endElement( const OUString& aName )
	throw( SAXException, RuntimeException )
{
	if ( m_bMenuMode )
	{
		--m_nElementDepth;
		if ( 0 == m_nElementDepth )
		{
			m_xReader->endDocument();
			m_xReader = Reference< XDocumentHandler >();
			m_bMenuMode = sal_False;
			if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENU )))
			{
				OUString aErrorMessage = getErrorLineString();
				aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "closing element menu expected!" ));
				throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
			}
		}
		else
			m_xReader->endElement( aName );
	}
}


// -----------------------------------------------------------------------------


OReadMenuHandler::OReadMenuHandler(
=====================================================================
Found a 14 line (124 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Button.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Currency.cxx
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/EditBase.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/File.cxx
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormattedFieldWrapper.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Pattern.cxx

namespace frm
{
//.........................................................................
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
=====================================================================
Found a 5 line (124 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 8, 8, 6, 6, 0, 0, 0, 0, 0, 0,// 1050 - 105f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1060 - 106f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1070 - 107f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1080 - 108f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1090 - 109f
=====================================================================
Found a 24 line (124 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

		return hr;

	pdispResult = CComPtr<IDispatch>( result.pdispVal );

	return S_OK;
}

HRESULT PutPropertiesToIDisp( IDispatch* pdispObject, 
							  OLECHAR** sMemberNames, 
							  CComVariant* pVariant, 
							  unsigned int count )
{
	for( unsigned int ind = 0; ind < count; ind++ )
	{
		DISPID id;
		HRESULT hr = pdispObject->GetIDsOfNames( IID_NULL, &sMemberNames[ind], 1, LOCALE_USER_DEFAULT, &id );
		if( !SUCCEEDED( hr ) ) return hr;

		hr = CComDispatchDriver::PutProperty( pdispObject, id, &pVariant[ind] );
		if( !SUCCEEDED( hr ) ) return hr;
	}

	return S_OK;
}
=====================================================================
Found a 15 line (124 tokens) duplication in the following files: 
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xolefactory.cxx
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xolefactory.cxx
Starting at line 307 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xolefactory.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObjectFactory::createInstanceUserInit" );

	// the initialization is completelly controlled by user
	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Reference< uno::XInterface > xResult(
				static_cast< ::cppu::OWeakObject* > ( new OleEmbeddedObject( m_xFactory, aClassID, aClassName ) ),
=====================================================================
Found a 22 line (124 tokens) duplication in the following files: 
Starting at line 626 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/embedobj.cxx
Starting at line 493 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/oleembed.cxx

void SAL_CALL OleEmbeddedObject::setClientSite(
				const uno::Reference< embed::XEmbeddedClient >& xClient )
		throw ( embed::WrongStateException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_xClientSite != xClient)
	{
		if ( m_nObjectState != embed::EmbedStates::LOADED && m_nObjectState != embed::EmbedStates::RUNNING )
			throw embed::WrongStateException(
									::rtl::OUString::createFromAscii( "The client site can not be set currently!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

		m_xClientSite = xClient;
	}
}

//----------------------------------------------
uno::Reference< embed::XEmbeddedClient > SAL_CALL OleEmbeddedObject::getClientSite()
=====================================================================
Found a 4 line (124 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h

	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // 00-0F
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // 10-1F
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // 20-2F
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // 30-3F
=====================================================================
Found a 18 line (124 tokens) duplication in the following files: 
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/app/dispatchwatcher.cxx
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/app/dispatchwatcher.cxx

        else if ( ( aName.CompareToAscii( "service:"  , 8 ) == COMPARE_EQUAL ) )
        {
            // TODO: the dispatch has to be done for loadComponentFromURL as well. Please ask AS for more details.
            URL             aURL ;
            aURL.Complete = aName;

            Reference < XDispatch >         xDispatcher ;
            Reference < XDispatchProvider > xProvider   ( xDesktop, UNO_QUERY );
            Reference < XURLTransformer >   xParser     ( ::comphelper::getProcessServiceFactory()->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.URLTransformer")) ), ::com::sun::star::uno::UNO_QUERY );

            if( xParser.is() == sal_True )
                xParser->parseStrict( aURL );

            if( xProvider.is() == sal_True )
                xDispatcher = xProvider->queryDispatch( aURL, ::rtl::OUString(), 0 );

            if( xDispatcher.is() == sal_True )
            {
=====================================================================
Found a 15 line (124 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/relationdesign/RelationController.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/tabledesign/TableController.cxx

	static ::dbaui::OMultiInstanceAutoRegistration< ::dbaui::OTableController > aAutoRegistration;
}


using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::ui;
=====================================================================
Found a 11 line (124 tokens) duplication in the following files: 
Starting at line 1046 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/UITools.cxx
Starting at line 373 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/helper/vclunohelper.cxx

::com::sun::star::awt::FontDescriptor VCLUnoHelper::CreateFontDescriptor( const Font& rFont )
{
	::com::sun::star::awt::FontDescriptor aFD;
    aFD.Name = rFont.GetName();
    aFD.StyleName = rFont.GetStyleName();
    aFD.Height = (sal_Int16)rFont.GetSize().Height();
    aFD.Width = (sal_Int16)rFont.GetSize().Width();
    aFD.Family = sal::static_int_cast< sal_Int16 >(rFont.GetFamily());
    aFD.CharSet = rFont.GetCharSet();
    aFD.Pitch = sal::static_int_cast< sal_Int16 >(rFont.GetPitch());
    aFD.CharacterWidth = VCLUnoHelper::ConvertFontWidth( rFont.GetWidthType() );
=====================================================================
Found a 15 line (124 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/xml/xmlTable.cxx
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/xml/xmlTable.cxx

	OSL_ENSURE(_xAttrList.is(),"Attribute list is NULL!");
	const SvXMLNamespaceMap& rMap = GetOwnImport().GetNamespaceMap();
	const SvXMLTokenMap& rTokenMap = GetOwnImport().GetQueryElemTokenMap();

	sal_Int16 nLength = (_xAttrList.is()) ? _xAttrList->getLength() : 0;
	for(sal_Int16 i = 0; i < nLength; ++i)
	{
		OUString sLocalName;
		rtl::OUString sAttrName = _xAttrList->getNameByIndex( i );
		sal_uInt16 nPrefix = rMap.GetKeyByAttrName( sAttrName,&sLocalName );
		rtl::OUString sValue = _xAttrList->getValueByIndex( i );

		switch( rTokenMap.Get( nPrefix, sLocalName ) )
		{
			case XML_TOK_COMMAND:
=====================================================================
Found a 24 line (124 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HTable.cxx
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YTable.cxx

void SAL_CALL OMySQLTable::alterColumnByName( const ::rtl::OUString& colName, const Reference< XPropertySet >& descriptor ) throw(SQLException, NoSuchElementException, RuntimeException)
{
	::osl::MutexGuard aGuard(m_aMutex);
	checkDisposed(
#ifdef GCC
		::connectivity::sdbcx::OTableDescriptor_BASE::rBHelper.bDisposed
#else
		rBHelper.bDisposed
#endif
		);

	if ( m_pColumns && !m_pColumns->hasByName(colName) )
		throw NoSuchElementException(colName,*this);


	if ( !isNew() )
	{
		// first we have to check what should be altered
		Reference<XPropertySet> xProp;
		m_pColumns->getByName(colName) >>= xProp;
		// first check the types
		sal_Int32 nOldType = 0,nNewType = 0,nOldPrec = 0,nNewPrec = 0,nOldScale = 0,nNewScale = 0;

		::dbtools::OPropertyMap& rProp = OMetaConnection::getPropMap();
=====================================================================
Found a 27 line (124 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idloptions.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

					m_options["-R"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'b':
=====================================================================
Found a 25 line (124 tokens) duplication in the following files: 
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idlmaker.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javamaker.cxx

			sal_Bool ret = sal_False;
            do
			{
				typeName = tOption.getToken(0, ';', nIndex);
                
                sal_Int32 nPos = typeName.lastIndexOf( '.' );
				tmpName = typeName.copy( nPos != -1 ? nPos+1 : 0 );
				if (tmpName == "*")
				{
					// produce this type and his scope.
					if (typeName.equals("*"))
					{
						tmpName = "/";
					} else
					{
						tmpName = typeName.copy(0, typeName.lastIndexOf('.')).replace('.', '/');
						if (tmpName.getLength() == 0) 
							tmpName = "/";
						else
							tmpName.replace('.', '/');
					}
                    // related to task #116780# the scope is recursively
                    // generated.  bFullScope = true
					ret = produceAllTypes(
                        tmpName, typeMgr, generated, &options, sal_True);
=====================================================================
Found a 27 line (124 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunooptions.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

					m_options["-R"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'b':
=====================================================================
Found a 25 line (124 tokens) duplication in the following files: 
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunomaker.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javamaker.cxx

			sal_Bool ret = sal_False;
            do
			{
				typeName = tOption.getToken(0, ';', nIndex);
                
                sal_Int32 nPos = typeName.lastIndexOf( '.' );
				tmpName = typeName.copy( nPos != -1 ? nPos+1 : 0 );
				if (tmpName == "*")
				{
					// produce this type and his scope.
					if (typeName.equals("*"))
					{
						tmpName = "/";
					} else
					{
						tmpName = typeName.copy(0, typeName.lastIndexOf('.')).replace('.', '/');
						if (tmpName.getLength() == 0) 
							tmpName = "/";
						else
							tmpName.replace('.', '/');
					}
                    // related to task #116780# the scope is recursively
                    // generated.  bFullScope = true
					ret = produceAllTypes(
                        tmpName, typeMgr, generated, &options, sal_True);
=====================================================================
Found a 27 line (124 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbaoptions.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

					m_options["-R"] = OString(s);
					break;
				case 'B':
					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-B', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-B"] = OString(s);
					break;
				case 'b':
=====================================================================
Found a 25 line (124 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbamaker.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javamaker.cxx

			sal_Bool ret = sal_False;
            do
			{
				typeName = tOption.getToken(0, ';', nIndex);
                
                sal_Int32 nPos = typeName.lastIndexOf( '.' );
				tmpName = typeName.copy( nPos != -1 ? nPos+1 : 0 );
				if (tmpName == "*")
				{
					// produce this type and his scope.
					if (typeName.equals("*"))
					{
						tmpName = "/";
					} else
					{
						tmpName = typeName.copy(0, typeName.lastIndexOf('.')).replace('.', '/');
						if (tmpName.getLength() == 0) 
							tmpName = "/";
						else
							tmpName.replace('.', '/');
					}
                    // related to task #116780# the scope is recursively
                    // generated.  bFullScope = true
					ret = produceAllTypes(
                        tmpName, typeMgr, generated, &options, sal_True);
=====================================================================
Found a 25 line (124 tokens) duplication in the following files: 
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_textlayout.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_textlayout.cxx

        return true;
    }


#define SERVICE_NAME "com.sun.star.rendering.TextLayout"
#define IMPLEMENTATION_NAME "NullCanvas::TextLayout"

    ::rtl::OUString SAL_CALL TextLayout::getImplementationName() throw( uno::RuntimeException )
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL TextLayout::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL TextLayout::getSupportedServiceNames()  throw( uno::RuntimeException )
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
        
        return aRet;
    }
}
=====================================================================
Found a 20 line (124 tokens) duplication in the following files: 
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/uno2cpp.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

	void ** pCppArgs  = (void **)malloc( 3 * sizeof(void *) * nParams );
#else
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
#endif
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 23 line (124 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = edx;
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = eax;
			break;
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
			*(unsigned short*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
			*(unsigned char*)pRegisterReturn = eax;
			break;
		case typelib_TypeClass_FLOAT:
			asm ( "fstps %0" : : "m"(*(char *)pRegisterReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			asm ( "fstpl %0\n\t" : : "m"(*(char *)pRegisterReturn) );
			break;
=====================================================================
Found a 19 line (124 tokens) duplication in the following files: 
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx

	INSERT_INT64( &pAdjustedThisPtr, nGPR, pGPR, pStack );

	// Args
	void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
	// Indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// Type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 25 line (124 tokens) duplication in the following files: 
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			break;
	}
}


//================================================================================================== 
static void cpp_call(
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis,
	bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
  	// max space for: [complex ret ptr], values|ptr ...
  	char * pCppStack		=
  		(char *)alloca( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
  	char * pCppStackStart	= pCppStack;
	
        // need to know parameter types for callVirtualMethod so generate a signature string
        char * pParamType = (char *) alloca(nParams+2);
        char * pPT = pParamType;

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
=====================================================================
Found a 25 line (124 tokens) duplication in the following files: 
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
=====================================================================
Found a 17 line (124 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 25 line (124 tokens) duplication in the following files: 
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
=====================================================================
Found a 19 line (124 tokens) duplication in the following files: 
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 25 line (124 tokens) duplication in the following files: 
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
=====================================================================
Found a 27 line (124 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx

				nRes = (INT16) p->uInt64;
			break;
		case SbxDATE:
		case SbxDOUBLE:
		case SbxLONG64:
		case SbxULONG64:
		case SbxCURRENCY:
		case SbxDECIMAL:
		case SbxBYREF | SbxDECIMAL:
			{
			double dVal;
			if( p->eType ==	SbxCURRENCY )
				dVal = ImpCurrencyToDouble( p->nLong64 );
			else if( p->eType == SbxLONG64 )
				dVal = ImpINT64ToDouble( p->nLong64 );
			else if( p->eType == SbxULONG64 )
				dVal = ImpUINT64ToDouble( p->nULong64 );
			else if( p->eType == SbxDECIMAL )
			{
				dVal = 0.0;
				if( p->pDecimal )
					p->pDecimal->getDouble( dVal );
			}
			else
				dVal = p->nDouble;

			if( dVal > SbxMAXINT )
=====================================================================
Found a 18 line (124 tokens) duplication in the following files: 
Starting at line 628 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolygonclipper.cxx
Starting at line 647 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolygonclipper.cxx

				else if((clip&0x0f)==0 && (clip&0xf0)) { // curr is outside, next is inside

					// direction vector from 'current' to 'next', *not* normalized
					// to bring 't' into the [0<=x<=1] intervall.
					::basegfx::B2DPoint dir((*next)-(*curr));

					double denominator = ( pPlane->nx*dir.getX() +
										pPlane->ny*dir.getY() );
					double numerator = ( pPlane->nx*curr->getX() +
										pPlane->ny*curr->getY() +
										pPlane->d );
					double t = -numerator/denominator;

					// calculate the actual point of intersection
					::basegfx::B2DPoint intersection( curr->getX()+t*dir.getX(),
													curr->getY()+t*dir.getY() );

					out_vertex[out_count++] = intersection;
=====================================================================
Found a 38 line (123 tokens) duplication in the following files: 
Starting at line 10998 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 11794 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

     case OOXML_ELEMENT_wordprocessingDrawing_extent:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_PositiveSize2D(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingDrawing_effectExtent:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingDrawing_CT_EffectExtent(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingDrawing_docPr:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_NonVisualDrawingProps(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingDrawing_cNvGraphicFramePr:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_drawingml_CT_NonVisualGraphicFrameProperties(*this));
         }
             break;
     case OOXML_TOKENS_END:
         break;
     default:
         pResult = elementFromRefs(nToken);
              break;
     }

    if (pResult.get() != NULL)
        pResult->setToken(nToken);

    return pResult;
}
     
bool OOXMLContext_wordprocessingDrawing_CT_Anchor::lcl_attribute(TokenEnum_t /*nToken*/, const rtl::OUString & /*rValue*/)
=====================================================================
Found a 20 line (123 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr  = m_wrap_mode_y(y >> image_subpixel_shift);
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                                base_type::m_ry_inv) >> 
                                    image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   base_type::m_rx_inv) >> 
                                       image_subpixel_shift;
                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = m_wrap_mode_x(x_lr_ini);
                    int x_hr = x_hr_ini;
                    const value_type* row_ptr = (const value_type*)base_type::source_image().row(y_lr);
                    do
                    {
                        const value_type* fg_ptr = row_ptr + (x_lr << 2);
=====================================================================
Found a 21 line (123 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

            base_type(alloc, src, color_type(0,0,0,0), inter, filter_),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg[3];
=====================================================================
Found a 20 line (123 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

                fg[0] = fg[1] = fg[2] = image_filter_size / 2;

                int y_lr  = m_wrap_mode_y(y >> image_subpixel_shift);
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                                base_type::m_ry_inv) >> 
                                    image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   base_type::m_rx_inv) >> 
                                       image_subpixel_shift;
                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = m_wrap_mode_x(x_lr_ini);
                    int x_hr = x_hr_ini;
                    const value_type* row_ptr = (const value_type*)base_type::source_image().row(y_lr);
                    do
                    {
                        const value_type* fg_ptr = row_ptr + x_lr * 3;
=====================================================================
Found a 21 line (123 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

            base_type(alloc, src, color_type(0,0,0,0), inter, filter_),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
            long_type fg[3];
=====================================================================
Found a 18 line (123 tokens) duplication in the following files: 
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtparae.cxx
Starting at line 1590 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtparae.cxx

            Reference< XIndexReplace > xNumRule( xNumberingRules->getByIndex( i ), UNO_QUERY );
            if( xNumRule.is() && xNumRule->getCount() )
            {
                Reference < XNamed > xNamed( xNumRule, UNO_QUERY );
                OUString sName;
                if( xNamed.is() )
                    sName = xNamed->getName();
                sal_Bool bAdd = !sName.getLength();
                if( !bAdd )
                {
                    Reference < XPropertySet > xNumPropSet( xNumRule,
                                                            UNO_QUERY );
                    const OUString sIsAutomatic( RTL_CONSTASCII_USTRINGPARAM( "IsAutomatic" ) );
                    if( xNumPropSet.is() &&
                        xNumPropSet->getPropertySetInfo()
                                   ->hasPropertyByName( sIsAutomatic ) )
                    {
                        bAdd = *(sal_Bool *)xNumPropSet->getPropertyValue( sIsAutomatic ).getValue();
=====================================================================
Found a 13 line (123 tokens) duplication in the following files: 
Starting at line 3185 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
Starting at line 1810 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/kde/salnativewidgets-kde.cxx

    while( (nHeight * nDPIY / nDispDPIY) < nPointHeight )
        nHeight++;
    
    // Create the font
    Font aFont( aInfo.m_aFamilyName, Size( 0, nHeight ) );
    if( aInfo.m_eWeight != psp::weight::Unknown )
        aFont.SetWeight( PspGraphics::ToFontWeight( aInfo.m_eWeight ) );
    if( aInfo.m_eWidth != psp::width::Unknown )
        aFont.SetWidthType( PspGraphics::ToFontWidth( aInfo.m_eWidth ) );
    if( aInfo.m_eItalic != psp::italic::Unknown )
        aFont.SetItalic( PspGraphics::ToFontItalic( aInfo.m_eItalic ) );
    if( aInfo.m_ePitch != psp::pitch::Unknown )
        aFont.SetPitch( PspGraphics::ToFontPitch( aInfo.m_ePitch ) );
=====================================================================
Found a 11 line (123 tokens) duplication in the following files: 
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

	    const double    fHeight = aRect.GetHeight();
	    double          fDX = fWidth  * fabs( cos( fAngle ) ) + fHeight * fabs( sin( fAngle ) ); 
	    double          fDY = fHeight * fabs( cos( fAngle ) ) + fWidth  * fabs( sin( fAngle ) ); 

        fDX = ( fDX - fWidth ) * 0.5 + 0.5;
        fDY = ( fDY - fHeight ) * 0.5 + 0.5;
    
	    aRect.Left() -= (long) fDX;
	    aRect.Right() += (long) fDX;
	    aRect.Top() -= (long) fDY;
	    aRect.Bottom() += (long) fDY;
=====================================================================
Found a 25 line (123 tokens) duplication in the following files: 
Starting at line 4323 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev3.cxx
Starting at line 4354 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev3.cxx

                      (eUnderline == UNDERLINE_BOLDDASHDOTDOT) )
            {
                long nDotWidth = nLineHeight*mnDPIY;
                nDotWidth += mnDPIY/2;

                nDotWidth /= mnDPIY;
                long nDashWidth = ((100*mnDPIX)+1270)/2540;
                long nMinDashWidth = nDotWidth*4;
                // DashWidth wird gegebenenfalls verbreitert, wenn
                // die dicke der Linie im Verhaeltnis zur Laenge
                // zu dick wird
                if ( nDashWidth < nMinDashWidth )
                    nDashWidth = nMinDashWidth;
                long nTempDotWidth = nDotWidth;
                long nTempDashWidth = nDashWidth;
                long nEnd = nLeft+nWidth;
                while ( nLeft < nEnd )
                {
                    if ( nLeft+nTempDotWidth > nEnd )
                        nTempDotWidth = nEnd-nLeft;
                    ImplDrawTextRect( nBaseX, nBaseY, nLeft, nLinePos, nTempDotWidth, nLineHeight );
                    nLeft += nDotWidth*2;
                    if ( nLeft > nEnd )
                        break;
                    if ( nLeft+nTempDotWidth > nEnd )
=====================================================================
Found a 22 line (123 tokens) duplication in the following files: 
Starting at line 2115 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx
Starting at line 1806 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx

		aColParam.pMapB = new BYTE[ 256 ];

		// calculate slope
		if( nContrastPercent >= 0 )
			fM = 128.0 / ( 128.0 - 1.27 * MinMax( nContrastPercent, 0L, 100L ) );
		else
			fM = ( 128.0 + 1.27 * MinMax( nContrastPercent, -100L, 0L ) ) / 128.0;

		// total offset = luminance offset + contrast offset
		fOff = MinMax( nLuminancePercent, -100L, 100L ) * 2.55 + 128.0 - fM * 128.0;

		// channel offset = channel offset	+ total offset
		fROff = nChannelRPercent * 2.55 + fOff;
		fGOff = nChannelGPercent * 2.55 + fOff;
		fBOff = nChannelBPercent * 2.55 + fOff;

		// calculate gamma value
		fGamma = ( fGamma <= 0.0 || fGamma > 10.0 ) ? 1.0 : ( 1.0 / fGamma );
		const BOOL bGamma = ( fGamma != 1.0 );

		// create mapping table
		for( long nX = 0L; nX < 256L; nX++ )
=====================================================================
Found a 17 line (123 tokens) duplication in the following files: 
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/alpha.cxx
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap.cxx

			aRectSrc.Intersection( Rectangle( Point(), aCopySizePix ) );

			if( !aRectSrc.IsEmpty() )
			{
				BitmapReadAccess* pReadAcc = pSrc->AcquireReadAccess();

				if( pReadAcc )
				{
					BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();

					if( pWriteAcc )
					{
						const long	nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
						const long	nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
						const long	nSrcEndX = aRectSrc.Left() + nWidth;
						const long	nSrcEndY = aRectSrc.Top() + nHeight;
						long		nDstY = aRectDst.Top();
=====================================================================
Found a 24 line (123 tokens) duplication in the following files: 
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/provider/cancelcommandexecution.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/provider/cancelcommandexecution.cxx

                                    eError, rArgs, rMessage, xContext );
    if ( xEnv.is() )
    {
        uno::Reference<
            task::XInteractionHandler > xIH = xEnv->getInteractionHandler();
        if ( xIH.is() )
        {
            xIH->handle( xRequest.get() );

            rtl::Reference< ucbhelper::InteractionContinuation > xSelection
				= xRequest->getSelection();

            if ( xSelection.is() )
                throw ucb::CommandFailedException( rtl::OUString(),
                                                   xContext,
                                                   xRequest->getRequest() );
        }
    }

    cppu::throwException( xRequest->getRequest() );

    OSL_ENSURE( sal_False, "Return from cppu::throwException call!!!" );
    throw uno::RuntimeException();
}
=====================================================================
Found a 32 line (123 tokens) duplication in the following files: 
Starting at line 2034 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unochart.cxx
Starting at line 2083 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unochart.cxx

        const SwTable* pTable = SwTable::FindTable( GetFrmFmt() );
        if (pTable)
        {
            uno::Reference< chart2::data::XDataSequence > xRef( dynamic_cast< chart2::data::XDataSequence * >(this), uno::UNO_QUERY );
            pDataProvider->AddDataSequence( *pTable, xRef );
            pDataProvider->addEventListener( dynamic_cast< lang::XEventListener * >(this) );
        }
        else
            DBG_ERROR( "table missing" );
    }
    catch (uno::RuntimeException &)
    {
        throw;
    }
    catch (uno::Exception &)
    {
    }
    release();

#if OSL_DEBUG_LEVEL > 1
    OUString aRangeStr( getSourceRangeRepresentation() );

    // check if it can properly convert into a SwUnoTableCrsr
	// which is required for some functions
    SwUnoTableCrsr* pUnoTblCrsr = *pTblCrsr;
	if (!pUnoTblCrsr)
		pUnoTblCrsr = *pTblCrsr;
#endif
}


SwChartDataSequence::~SwChartDataSequence()
=====================================================================
Found a 12 line (123 tokens) duplication in the following files: 
Starting at line 1447 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/_xpoly.cxx
Starting at line 1459 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/poly.cxx

			Point& rPnt = mpImplPolygon->mpPointAry[ i ];

			fTx = (double)( rPnt.X() - Xr) / Wr;
			fTy = (double)( rPnt.Y() - Yr) / Hr;
			fUx = 1.0 - fTx;
			fUy = 1.0 - fTy;

			rPnt.X() = (long) ( fUy * (fUx * X1 + fTx * X2) + fTy * (fUx * X3 + fTx * X4) );
			rPnt.Y() = (long) ( fUx * (fUy * Y1 + fTy * Y3) + fTx * (fUy * Y2 + fTy * Y4) );
		}
	}
}
=====================================================================
Found a 28 line (123 tokens) duplication in the following files: 
Starting at line 4040 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4215 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

    *pS >> nScrollHeight;

	if (nIcon)
	{
		pS->Read(pIconHeader,20);
		*pS >> nIconLen;
		pIcon = new sal_uInt8[nIconLen];
		pS->Read(pIcon,nIconLen);
	}

	if (nPicture)
	{
		pS->Read(pPictureHeader,20);
		*pS >> nPictureLen;
		pPicture = new sal_uInt8[nPictureLen];
		pS->Read(pPicture,nPictureLen);
	}

    ReadAlign( pS, pS->Tell() - nStart, 4);

    if (pBlockFlags[2] & 0x10)
    {
        //Font Stuff..
        pS->SeekRel(0x1a);
        sal_uInt8 nFontLen;
        *pS >> nFontLen;
        pS->SeekRel(nFontLen);
    }
=====================================================================
Found a 14 line (123 tokens) duplication in the following files: 
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpshadow.cxx
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpshadow.cxx

	INT32 nX = 0L, nY = 0L;
	INT32 nXY = GetCoreValue( aMtrDistance, ePoolUnit );
	switch( aCtlPosition.GetActualRP() )
	{
		case RP_LT: nX = nY = -nXY; 	 break;
		case RP_MT: nY = -nXY;			 break;
		case RP_RT: nX = nXY; nY = -nXY; break;
		case RP_LM: nX = -nXY;			 break;
		case RP_RM: nX = nXY;			 break;
		case RP_LB: nX = -nXY; nY = nXY; break;
		case RP_MB: nY = nXY; 			 break;
		case RP_RB: nX = nY = nXY; 		 break;
        case RP_MM: break;
    }
=====================================================================
Found a 23 line (123 tokens) duplication in the following files: 
Starting at line 1803 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx
Starting at line 1852 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx

IMPL_LINK( SvxAreaTabPage, ClickColorHdl_Impl, void *, EMPTYARG )
{
	aTsbTile.Hide();
	aTsbStretch.Hide();
	aTsbScale.Hide();
	aTsbOriginal.Hide();
	aFtXSize.Hide();
	aMtrFldXSize.Hide();
	aFtYSize.Hide();
	aMtrFldYSize.Hide();
    aFlSize.Hide();
	aRbtRow.Hide();
	aRbtColumn.Hide();
	aMtrFldOffset.Hide();
    aFlOffset.Hide();
	aCtlPosition.Hide();
	aFtXOffset.Hide();
	aMtrFldXOffset.Hide();
	aFtYOffset.Hide();
	aMtrFldYOffset.Hide();
    aFlPosition.Hide();

	aLbColor.Enable();
=====================================================================
Found a 15 line (123 tokens) duplication in the following files: 
Starting at line 1019 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 927 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptBentArrowVert[] =	// adjustment1 : x 12427 - 21600
{														// adjustment2 : y 0 - 6079
	{ 0, 21600 }, { 0, 12160 }, { 12427, 1 MSO_I }, { 0 MSO_I, 1 MSO_I },
	{ 0 MSO_I, 0 }, { 21600, 6079 }, { 0 MSO_I, 12158 }, { 0 MSO_I, 2 MSO_I },
	{ 12427, 2 MSO_I }, { 4 MSO_I, 12160 }, { 4 MSO_I, 21600 }
};
static const sal_uInt16 mso_sptBentArrowSegm[] =
{
	0x4000, 0x0001, 0xa801, 0x0006, 0xa701, 0x0001, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptBentArrowCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 11 line (123 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/gradwrap.cxx
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

	    const double    fHeight = aRect.GetHeight();
	    double          fDX = fWidth  * fabs( cos( fAngle ) ) + fHeight * fabs( sin( fAngle ) ); 
	    double          fDY = fHeight * fabs( cos( fAngle ) ) + fWidth  * fabs( sin( fAngle ) ); 

        fDX = ( fDX - fWidth ) * 0.5 + 0.5;
        fDY = ( fDY - fHeight ) * 0.5 + 0.5;
    
	    aRect.Left() -= (long) fDX;
	    aRect.Right() += (long) fDX;
	    aRect.Top() -= (long) fDY;
	    aRect.Bottom() += (long) fDY;
=====================================================================
Found a 13 line (123 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/printdlg.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/prnsetup.cxx

	ModalDialog 	( pWindow, SvtResId( DLG_SVT_PRNDLG_PRNSETUPDLG ) ),
	maFlPrinter		( this, SvtResId( FL_PRINTER ) ),
	maFtName		( this, SvtResId( FT_NAME ) ),
	maLbName		( this, SvtResId( LB_NAMES ) ),
	maBtnProperties ( this, SvtResId( BTN_PROPERTIES ) ),
	maFtStatus		( this, SvtResId( FT_STATUS ) ),
	maFiStatus		( this, SvtResId( FI_STATUS ) ),
	maFtType		( this, SvtResId( FT_TYPE ) ),
	maFiType		( this, SvtResId( FI_TYPE ) ),
	maFtLocation	( this, SvtResId( FT_LOCATION ) ),
	maFiLocation	( this, SvtResId( FI_LOCATION ) ),
	maFtComment 	( this, SvtResId( FT_COMMENT ) ),
	maFiComment 	( this, SvtResId( FI_COMMENT ) ),
=====================================================================
Found a 30 line (123 tokens) duplication in the following files: 
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/smdetect.cxx
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/swdetect.cxx

        	BOOL bIsStorage = aMedium.IsStorage();
            if ( bIsStorage )
			{
                uno::Reference< embed::XStorage > xStorage = aMedium.GetStorage();
				if ( aMedium.GetLastStorageCreationState() != ERRCODE_NONE )
				{
					// error during storage creation means _here_ that the medium
                    // is broken, but we can not handle it in medium since impossibility
					// to create a storage does not _always_ means that the medium is broken
					aMedium.SetError( aMedium.GetLastStorageCreationState() );
					if ( xInteraction.is() )
					{
						OUString empty;
						try
						{
							InteractiveAppException xException( empty,
															REFERENCE< XInterface >(),
															InteractionClassification_ERROR,
															aMedium.GetError() );

							REFERENCE< XInteractionRequest > xRequest(
								new ucbhelper::SimpleInteractionRequest( makeAny( xException ),
																 	 ucbhelper::CONTINUATION_APPROVE ) );
							xInteraction->handle( xRequest );
						}
						catch ( Exception & ) {};
					}
				}
				else
				{
=====================================================================
Found a 6 line (123 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP),		WID_PAGE_LDBITMAP,	&ITYPE(awt::XBitmap),						    beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME),		WID_PAGE_LDNAME,	&::getCppuType((const OUString*)0),			    beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_NUMBER),			WID_PAGE_NUMBER,	&::getCppuType((const sal_Int16*)0),			beans::PropertyAttribute::READONLY,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_ORIENTATION),		WID_PAGE_ORIENT,	&::getCppuType((const view::PaperOrientation*)0),0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_WIDTH),			WID_PAGE_WIDTH,		&::getCppuType((const sal_Int32*)0),			0,	0},
=====================================================================
Found a 24 line (123 tokens) duplication in the following files: 
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/app/sdmod2.cxx
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/app/sdmod2.cxx

	::sd::FrameView* pFrameView = NULL;
	::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() );
	SdDrawDocument* pDoc = NULL;
	// Hier wird der DocType vom Optionsdialog gesetzt (nicht Dokument!)
	DocumentType eDocType = DOCUMENT_TYPE_IMPRESS;
	if( nSlot == SID_SD_GRAPHIC_OPTIONS )
		eDocType = DOCUMENT_TYPE_DRAW;

	::sd::ViewShell* pViewShell = NULL;

	if (pDocSh)
	{
		pDoc = pDocSh->GetDoc();

		// Wenn der Optionsdialog zum Dokumenttyp identisch ist,
		// kann auch die FrameView mit uebergeben werden:
		if( pDoc && eDocType == pDoc->GetDocumentType() )
			pFrameView = pDocSh->GetFrameView();

		pViewShell = pDocSh->GetViewShell();
        if (pViewShell != NULL)
            pViewShell->WriteFrameViewData();
	}
	SdOptions* pOptions = GetSdOptions(eDocType);
=====================================================================
Found a 20 line (123 tokens) duplication in the following files: 
Starting at line 575 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/propread.cxx
Starting at line 554 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/dinfos2.cxx

	pStrm->Seek( nCurOfs );
}

//	-----------------------------------------------------------------------

Section& Section::operator=( Section& rSection )
{
	PropEntry* pProp;

	if ( this != &rSection )
	{
		memcpy( (void*)aFMTID, (void*)rSection.aFMTID, 16 );
		for ( pProp = (PropEntry*)First(); pProp; pProp = (PropEntry*)Next() )
			delete pProp;
		Clear();
		for ( pProp = (PropEntry*)rSection.First(); pProp; pProp = (PropEntry*)rSection.Next() )
			Insert( new PropEntry( *pProp ), LIST_APPEND );
	}
	return *this;
}
=====================================================================
Found a 21 line (123 tokens) duplication in the following files: 
Starting at line 1095 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 1207 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

						const uno::Sequence< uno::Sequence<rtl::OUString> >& aData )
{
//	BOOL bApi = TRUE;

	ScDocument* pDoc = rDocShell.GetDocument();
	SCTAB nTab = rRange.aStart.Tab();
	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	SCCOL nEndCol = rRange.aEnd.Col();
	SCROW nEndRow = rRange.aEnd.Row();
	BOOL bUndo(pDoc->IsUndoEnabled());

	if ( !pDoc->IsBlockEditable( nTab, nStartCol,nStartRow, nEndCol,nEndRow ) )
	{
		//!	error message
		return FALSE;
	}

	long nCols = 0;
	long nRows = aData.getLength();
	const uno::Sequence<rtl::OUString>* pArray = aData.getConstArray();
=====================================================================
Found a 23 line (123 tokens) duplication in the following files: 
Starting at line 343 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/filtdlg.cxx
Starting at line 299 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/pfiltdlg.cxx

void ScPivotFilterDlg::FillFieldLists()
{
	aLbField1.Clear();
	aLbField2.Clear();
	aLbField3.Clear();
	aLbField1.InsertEntry( aStrNone, 0 );
	aLbField2.InsertEntry( aStrNone, 0 );
	aLbField3.InsertEntry( aStrNone, 0 );

	if ( pDoc )
	{
		String	aFieldName;
		SCTAB	nTab		= nSrcTab;
		SCCOL	nFirstCol	= theQueryData.nCol1;
		SCROW	nFirstRow	= theQueryData.nRow1;
		SCCOL	nMaxCol		= theQueryData.nCol2;
		SCCOL	col = 0;
		USHORT	i=1;

		for ( col=nFirstCol; col<=nMaxCol; col++ )
		{
			pDoc->GetString( col, nFirstRow, nTab, aFieldName );
			if ( aFieldName.Len() == 0 )
=====================================================================
Found a 18 line (123 tokens) duplication in the following files: 
Starting at line 1405 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpobject.cxx
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpoutput.cxx

				if ( eDimOrient != sheet::DataPilotFieldOrientation_HIDDEN )
				{
					uno::Reference<container::XIndexAccess> xHiers =
							new ScNameToIndexAccess( xDimSupp->getHierarchies() );
					long nHierarchy = ScUnoHelpFunctions::GetLongProperty(
											xDimProp,
											rtl::OUString::createFromAscii(DP_PROP_USEDHIERARCHY) );
					if ( nHierarchy >= xHiers->getCount() )
						nHierarchy = 0;

					uno::Reference<uno::XInterface> xHier =
							ScUnoHelpFunctions::AnyToInterface(
												xHiers->getByIndex(nHierarchy) );
					uno::Reference<sheet::XLevelsSupplier> xHierSupp( xHier, uno::UNO_QUERY );
					if ( xHierSupp.is() )
					{
						uno::Reference<container::XIndexAccess> xLevels =
								new ScNameToIndexAccess( xHierSupp->getLevels() );
=====================================================================
Found a 24 line (123 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testsax.cxx
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx

	~OSaxWriterTest() {}


public:
    virtual void SAL_CALL testInvariant(
		const OUString& TestName,
		const Reference < XInterface >& TestObject)
		throw  (	IllegalArgumentException,
					RuntimeException);

    virtual sal_Int32 SAL_CALL test(
		const OUString& TestName,
		const Reference < XInterface >& TestObject,
		sal_Int32 hTestHandle)
		throw  (	IllegalArgumentException,RuntimeException);

    virtual sal_Bool SAL_CALL testPassed(void)
		throw  (	RuntimeException);
    virtual Sequence< OUString > SAL_CALL getErrors(void) 				throw  (RuntimeException);
    virtual Sequence< Any > SAL_CALL getErrorExceptions(void) 		throw  (RuntimeException);
    virtual Sequence< OUString > SAL_CALL getWarnings(void) 			throw  (RuntimeException);

private:
	void testSimple( const Reference< XExtendedDocumentHandler > &r );
=====================================================================
Found a 49 line (123 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/ostring/rtl_OString2.cxx
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/oustring/rtl_OUString2.cxx

    void valueOf_float_test_001()
    {
        // this is demonstration code
        // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
        float nValue = 3.0f;
        valueOf_float_test(nValue);
    }

    void valueOf_float_test_002()
    {
        float nValue = 3.5f;
        valueOf_float_test(nValue);
    }

    void valueOf_float_test_003()
    {
        float nValue = 3.0625f;
        valueOf_float_test(nValue);
    }

    void valueOf_float_test_004()
    {
        float nValue = 3.502525f;
        valueOf_float_test(nValue);
    }

    void valueOf_float_test_005()
    {
        float nValue = 3.141592f;
        valueOf_float_test(nValue);
    }

    void valueOf_float_test_006()
    {
        float nValue = 3.5025255f;
        valueOf_float_test(nValue);
    }

    void valueOf_float_test_007()
    {
        float nValue = 3.0039062f;
        valueOf_float_test(nValue);
    }

private:
    
    void valueOf_double_test_impl(double _nValue)
        {
            rtl::OUString suValue;
=====================================================================
Found a 25 line (123 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_ConnectorSocket.cxx
Starting at line 3268 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

			::osl::SocketAddr saPeerSocketAddr( aHostIp2, IP_PORT_FTP );
						
			asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);
			asAcceptorSocket.enableNonBlockingMode( sal_True );
			sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket bind address failed.", sal_True == bOK1 );
			sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket listen failed.",  sal_True == bOK2 );
			
			csConnectorSocket.enableNonBlockingMode( sal_True );
			
			oslSocketResult eResult = csConnectorSocket.connect( saTargetSocketAddr, pTimeout );   /// connecting to server...
			CPPUNIT_ASSERT_MESSAGE( "connect failed.",  osl_Socket_InProgress == eResult ||  osl_Socket_Ok == eResult );

			/// get peer information
			csConnectorSocket.getPeerAddr( saPeerSocketAddr );
			
			CPPUNIT_ASSERT_MESSAGE( "test for connect function: try to create a connection with remote host. and check the setup address.", 
				sal_True == compareSocketAddr( saPeerSocketAddr, saLocalSocketAddr  )  ) ;
		}
		// really an error or just delayed
		// how to design senarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
		void connect_003()
		{
			::osl::SocketAddr saTargetSocketAddr1( aHostIp1, IP_PORT_MYPORT3 );
=====================================================================
Found a 17 line (123 tokens) duplication in the following files: 
Starting at line 680 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3272 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xa3, 0xb3 },
{ 0x00, 0xa4, 0xa4 },
{ 0x00, 0xa5, 0xa5 },
{ 0x00, 0xa6, 0xa6 },
{ 0x00, 0xa7, 0xa7 },
{ 0x00, 0xa8, 0xa8 },
{ 0x00, 0xa9, 0xa9 },
{ 0x00, 0xaa, 0xaa },
{ 0x00, 0xab, 0xab },
{ 0x00, 0xac, 0xac },
{ 0x00, 0xad, 0xad },
{ 0x00, 0xae, 0xae },
{ 0x00, 0xaf, 0xaf },
{ 0x00, 0xb0, 0xb0 },
{ 0x00, 0xb1, 0xb1 },
{ 0x00, 0xb2, 0xb2 },
{ 0x01, 0xa3, 0xb3 },
=====================================================================
Found a 24 line (123 tokens) duplication in the following files: 
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hprophelp.cxx
Starting at line 719 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/prophelp.cxx

	nResHyphMinLeading	 	= nHyphMinLeading;
	nResHyphMinTrailing	 	= nHyphMinTrailing;
	nResHyphMinWordLength	= nHyphMinWordLength;
	//
	INT32 nLen = rPropVals.getLength();
	if (nLen)
	{
		const PropertyValue *pVal = rPropVals.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			INT16	*pnResVal = NULL;
			switch (pVal[i].Handle)
			{
				case UPH_HYPH_MIN_LEADING	  : pnResVal = &nResHyphMinLeading; break;
				case UPH_HYPH_MIN_TRAILING	  : pnResVal = &nResHyphMinTrailing; break;
				case UPH_HYPH_MIN_WORD_LENGTH : pnResVal = &nResHyphMinWordLength; break;
				default:
					DBG_ERROR( "unknown property" );
			}
			if (pnResVal)
				pVal[i].Value >>= *pnResVal;
		}
	}
}
=====================================================================
Found a 24 line (123 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/datatest.cxx
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testwriter.cxx

	~OSaxWriterTest() {}


public:
    virtual void SAL_CALL testInvariant(
		const OUString& TestName,
		const Reference < XInterface >& TestObject)
		throw  (	IllegalArgumentException,
					RuntimeException);

    virtual sal_Int32 SAL_CALL test(
		const OUString& TestName,
		const Reference < XInterface >& TestObject,
		sal_Int32 hTestHandle)
		throw  (	IllegalArgumentException,RuntimeException);

    virtual sal_Bool SAL_CALL testPassed(void)
		throw  (	RuntimeException);
    virtual Sequence< OUString > SAL_CALL getErrors(void) 				throw  (RuntimeException);
    virtual Sequence< Any > SAL_CALL getErrorExceptions(void) 		throw  (RuntimeException);
    virtual Sequence< OUString > SAL_CALL getWarnings(void) 			throw  (RuntimeException);

private:
	void testSimple( const Reference< XExtendedDocumentHandler > &r );
=====================================================================
Found a 23 line (123 tokens) duplication in the following files: 
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/include.c
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_include.c

    static Token ta = {UNCLASS, 0, 0, 0, NULL, 0};
    static Tokenrow tr = {&ta, &ta, &ta + 1, 1};
    uchar *p;

	if (Cplusplus)
	{
		ta.t = p = (uchar *) outptr;

		if (! end)
			strcpy((char *) p, "extern \"C\" {");
		else
			strcpy((char *) p, "}");

		p += strlen((char *) p);
		
		*p++ = '\n';

		ta.len = (char *) p - outptr;
		outptr = (char *) p;
		tr.tp = tr.bp;
		puttokens(&tr);
	}
}
=====================================================================
Found a 22 line (123 tokens) duplication in the following files: 
Starting at line 554 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h
Starting at line 576 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h

	{ 0x0000, 0x0000 },	// 0x3091 HIRAGANA LETTER WE
	{ 0x0000, 0x0000 },	// 0x3092 HIRAGANA LETTER WO
	{ 0x0000, 0x0000 },	// 0x3093 HIRAGANA LETTER N
	{ 0x0000, 0x0000 },	// 0x3094 HIRAGANA LETTER VU
	{ 0x0000, 0x0000 },	// 0x3095
	{ 0x0000, 0x0000 },	// 0x3096
	{ 0x0000, 0x0000 },	// 0x3097
	{ 0x0000, 0x0000 },	// 0x3098
	{ 0x0000, 0x0000 },	// 0x3099 COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309a COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309b KATAKANA-HIRAGANA VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309c KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309d HIRAGANA ITERATION MARK
	{ 0x0000, 0x0000 },	// 0x309e HIRAGANA VOICED ITERATION MARK
	{ 0x0000, 0x0000 },	// 0x309f
	{ 0x0000, 0x0000 },	// 0x30a0
	{ 0x0000, 0x0000 },	// 0x30a1 KATAKANA LETTER SMALL A
	{ 0x0000, 0x0000 },	// 0x30a2 KATAKANA LETTER A
	{ 0x0000, 0x0000 },	// 0x30a3 KATAKANA LETTER SMALL I
	{ 0x0000, 0x0000 },	// 0x30a4 KATAKANA LETTER I
	{ 0x0000, 0x0000 },	// 0x30a5 KATAKANA LETTER SMALL U
	{ 0x30f4, 0x0000 },	// 0x30a6 KATAKANA LETTER U --> KATAKANA LETTER VU
=====================================================================
Found a 20 line (123 tokens) duplication in the following files: 
Starting at line 1127 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 800 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
=====================================================================
Found a 5 line (123 tokens) duplication in the following files: 
Starting at line 1119 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1161 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d90 - 0d9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0da0 - 0daf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0db0 - 0dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0,// 0dc0 - 0dcf
=====================================================================
Found a 4 line (123 tokens) duplication in the following files: 
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 846 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fac0 - facf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fad0 - fadf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fae0 - faef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// faf0 - faff
=====================================================================
Found a 5 line (123 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 438 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x2ce9}, {0x15, 0x2ce8}, {0x6a, 0x2ceb}, {0x15, 0x2cea}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2ce8 - 2cef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2cf0 - 2cf7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2cf8 - 2cff

    {0xd5, 0x013A}, {0xd5, 0x013D}, {0xd5, 0x0140}, {0xd5, 0x0143}, {0xd5, 0x0146}, {0xd5, 0x0149}, {0xd5, 0x014C}, {0x00, 0x0000}, // fb00 - fb07
=====================================================================
Found a 4 line (123 tokens) duplication in the following files: 
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_ja_phonetic.h

	0x30a0, 0x3042, 0x3042, 0x3044, 0x3044, 0x3046, 0x3046, 0x3048, 0x3048, 0x304a, 0x304a, 0x304b, 0x304b, 0x304d, 0x304d, 0x304f,  // 30A0
	0x304f, 0x3051, 0x3051, 0x3053, 0x3053, 0x3055, 0x3055, 0x3057, 0x3057, 0x3059, 0x3059, 0x305b, 0x305b, 0x305d, 0x305d, 0x305f,  // 30B0
	0x305f, 0x3061, 0x3061, 0x3064, 0x3064, 0x3064, 0x3066, 0x3066, 0x3068, 0x3068, 0x306a, 0x306b, 0x306c, 0x306d, 0x306e, 0x306f,  // 30C0
	0x306f, 0x306f, 0x3072, 0x3072, 0x3072, 0x3075, 0x3075, 0x3075, 0x3078, 0x3078, 0x3078, 0x307b, 0x307b, 0x307b, 0x307e, 0x307f,  // 30D0
=====================================================================
Found a 25 line (123 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

	b[j] -= b[icol]*save;
      }
    }
  }

  for (j = n-1; j >= 0; j--)
  {
    if ( indxr[j] != indxc[j] )
    {
      for (k = 0; k < n; k++)
      {
	save = a[k][indxr[j]];
	a[k][indxr[j]] = a[k][indxc[j]];
	a[k][indxc[j]] = save;
      }
    }
  }

  delete[] ipiv;
  delete[] indxr;
  delete[] indxc;
  return 1;
}
//---------------------------------------------------------------------------
int mgcLinearSystem::SolveTri (int n, float* a, float* b, float* c,
=====================================================================
Found a 4 line (123 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1127 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b80 - 0b8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b90 - 0b9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ba0 - 0baf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bb0 - 0bbf
=====================================================================
Found a 11 line (123 tokens) duplication in the following files: 
Starting at line 4234 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 4443 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

                    if( !bIsRotate )
                    {
                        padd(ascii("svg:x"), sXML_CDATA,
                            Double2Str (WTMM( x + a + drawobj->offset2.x)) + ascii("mm"));
                        padd(ascii("svg:y"), sXML_CDATA,
                            Double2Str (WTMM( y + b + drawobj->offset2.y)) + ascii("mm"));
                    }
                    padd(ascii("svg:width"), sXML_CDATA,
                        Double2Str (WTMM( drawobj->extent.w )) + ascii("mm"));
                    padd(ascii("svg:height"), sXML_CDATA,
                        Double2Str (WTMM( drawobj->extent.h )) + ascii("mm"));
=====================================================================
Found a 15 line (123 tokens) duplication in the following files: 
Starting at line 1385 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1425 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

				for( nY = 0; nY < nDstH; nY++ )
				{
					nSinY = pSinY[ nY ];
					nCosY = pCosY[ nY ];

					for( nX = 0; nX < nDstW; nX++ )
					{
						nUnRotX = ( pCosX[ nX ] - nSinY ) >> 8;
						nUnRotY = ( pSinX[ nX ] + nCosY ) >> 8;

						if( ( nUnRotX >= 0L ) && ( nUnRotX < nUnRotW ) &&
							( nUnRotY >= 0L ) && ( nUnRotY < nUnRotH ) )
						{
							nTmpX = pMapIX[ nUnRotX ]; nTmpFX = pMapFX[ nUnRotX ];
							nTmpY = pMapIY[ nUnRotY ], nTmpFY = pMapFY[ nUnRotY ];
=====================================================================
Found a 24 line (123 tokens) duplication in the following files: 
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsconfiguration.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxconfiguration.cxx

using namespace ::com::sun::star::container;


namespace framework
{

static Reference< XParser > GetSaxParser(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XParser >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XDocumentHandler >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

// #110897#
sal_Bool ToolBoxConfiguration::LoadToolBox( 
=====================================================================
Found a 6 line (123 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/windowstateconfiguration.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdiclist.cxx

    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw (::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw (::com::sun::star::uno::RuntimeException);

    // XNameReplace
    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 24 line (123 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsconfiguration.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxconfiguration.cxx

using namespace ::com::sun::star::container;


namespace framework
{

static Reference< XParser > GetSaxParser(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XParser >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XDocumentHandler >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

// #110897#
sal_Bool ToolBoxConfiguration::LoadToolBox( 
=====================================================================
Found a 4 line (123 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1127 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b80 - 0b8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b90 - 0b9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ba0 - 0baf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bb0 - 0bbf
=====================================================================
Found a 19 line (123 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/marktest.cxx
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/marktest.cxx

	Sequence<sal_Int8> seqRead( seqWrite.getLength() );

	int nMax = 10,i;

	for( i = 0 ; i < nMax ; i ++ ) {
		rOutput->writeBytes( seqWrite );
		rInput->readBytes( seqRead , rInput->available() );
		ERROR_ASSERT( ! strcmp( (char *) seqWrite.getArray() , (char * )seqRead.getArray() ) ,
		              "error during read/write/skip" );
	}

	// Check buffer resizing
	nMax = 3000;
	for( i = 0 ; i < nMax ; i ++ ) {
		rOutput->writeBytes( seqWrite );
	}

	for( i = 0 ; i < nMax ; i ++ ) {
		rInput->readBytes( seqRead , seqWrite.getLength() );
=====================================================================
Found a 33 line (123 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/scanner/scanwin.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/scanner/twain.cxx

	LRESULT CALLBACK TwainWndProc( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM nPar2 )
	{
		return DefWindowProc( hWnd, nMsg, nPar1, nPar2 );
	}

	// -------------------------------------------------------------------------

	LRESULT CALLBACK TwainMsgProc( int nCode, WPARAM wParam, LPARAM lParam )
	{
		MSG* pMsg = (MSG*) lParam;

		if( ( nCode < 0 ) || 
			( pImpTwainInstance->hTwainWnd != pMsg->hwnd ) ||
			!pImpTwainInstance->ImplHandleMsg( (void*) lParam ) )
		{
			return CallNextHookEx( pImpTwainInstance->hTwainHook, nCode, wParam, lParam );
		}
		else
		{
			pMsg->message = WM_USER;
			pMsg->lParam = 0;
			
			return 0;
		}
	}

#endif // OS2

// ------------
// - ImpTwain -
// ------------

ImpTwain::ImpTwain( const Link& rNotifyLink ) :
=====================================================================
Found a 21 line (123 tokens) duplication in the following files: 
Starting at line 1809 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx
Starting at line 1958 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

sal_Bool SAL_CALL OleEmbeddedObject::isReadonly()
		throw ( embed::WrongStateException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_nObjectState == -1 )
	{
		// the object is still not loaded
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object persistence is not initialized!\n" ),
										uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	return m_bReadOnly;
=====================================================================
Found a 15 line (123 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx
Starting at line 352 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) UNOEmbeddedObjectCreator::createInstanceUserInit" );

	uno::Reference< uno::XInterface > xResult;

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											3 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											4 );

	::rtl::OUString aEmbedFactory = m_aConfigHelper.GetFactoryNameByClassID( aClassID );
=====================================================================
Found a 21 line (123 tokens) duplication in the following files: 
Starting at line 1482 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1594 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx

sal_Bool SAL_CALL OCommonEmbeddedObject::isReadonly()
		throw ( embed::WrongStateException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_nObjectState == -1 )
	{
		// the object is still not loaded
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object persistence is not initialized!\n" ),
										uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	return m_bReadOnly;
=====================================================================
Found a 15 line (123 tokens) duplication in the following files: 
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BUser.cxx
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx

void SAL_CALL OHSQLUser::revokePrivileges( const ::rtl::OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
    if ( objType != PrivilegeObject::TABLE )
        ::dbtools::throwSQLException( "Privilege not revoked: Only table privileges can be revoked", "01006", *this );

	::osl::MutexGuard aGuard(m_aMutex);
	checkDisposed(OUser_BASE_RBHELPER::rBHelper.bDisposed);
    ::rtl::OUString sPrivs = getPrivilegeString(objPrivileges);
	if(sPrivs.getLength())
	{
		::rtl::OUString sGrant;
		sGrant += ::rtl::OUString::createFromAscii("REVOKE ");
		sGrant += sPrivs;
		sGrant += ::rtl::OUString::createFromAscii(" ON ");
		Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData();
=====================================================================
Found a 25 line (123 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BUser.cxx
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx

OUserExtend::OUserExtend(   const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection,const ::rtl::OUString& _Name) : OHSQLUser(_xConnection,_Name)
{
	construct();
}
// -------------------------------------------------------------------------
typedef connectivity::sdbcx::OUser	OUser_TYPEDEF;
void OUserExtend::construct()
{
	registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PASSWORD),	PROPERTY_ID_PASSWORD,0,&m_Password,::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL)));
}
// -----------------------------------------------------------------------------
cppu::IPropertyArrayHelper* OUserExtend::createArrayHelper() const
{
	Sequence< Property > aProps;
	describeProperties(aProps);
	return new cppu::OPropertyArrayHelper(aProps);
}
// -------------------------------------------------------------------------
cppu::IPropertyArrayHelper & OUserExtend::getInfoHelper()
{
	return *OUserExtend_PROP::getArrayHelper();
}
typedef connectivity::sdbcx::OUser_BASE OUser_BASE_RBHELPER;
// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL OHSQLUser::getPrivileges( const ::rtl::OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
=====================================================================
Found a 11 line (123 tokens) duplication in the following files: 
Starting at line 1153 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/InternalDataProvider.cxx
Starting at line 907 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx

                        aOldLabel = aNewLabel = aOldValues = aNewValues = aEmpty;
                        if( xOld.is() && xOld->getLabel().is() )
                            aOldLabel = xOld->getLabel()->getSourceRangeRepresentation();
                        if( xNew.is() && xNew->getLabel().is() )
                            aNewLabel = xNew->getLabel()->getSourceRangeRepresentation();
                        if( xOld.is() && xOld->getValues().is() )
                            aOldValues = xOld->getValues()->getSourceRangeRepresentation();
                        if( xNew.is() && xNew->getValues().is() )
                            aNewValues = xNew->getValues()->getSourceRangeRepresentation();

                        if( aOldLabel.equals(aNewLabel)
=====================================================================
Found a 20 line (123 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ChartType.cxx
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ScatterChartType.cxx

    ScatterChartType::createCoordinateSystem( ::sal_Int32 DimensionCount )
    throw (lang::IllegalArgumentException,
           uno::RuntimeException)
{
    Reference< chart2::XCoordinateSystem > xResult(
        new CartesianCoordinateSystem(
            GetComponentContext(), DimensionCount, /* bSwapXAndYAxis */ sal_False ));

    for( sal_Int32 i=0; i<DimensionCount; ++i )
    {
        Reference< chart2::XAxis > xAxis( xResult->getAxisByDimension( i, MAIN_AXIS_INDEX ) );
        if( !xAxis.is() )
        {
            OSL_ENSURE(false,"a created coordinate system should have an axis for each dimension");
            continue;
        }

        chart2::ScaleData aScaleData = xAxis->getScaleData();
        aScaleData.Orientation = chart2::AxisOrientation_MATHEMATICAL;
        aScaleData.Scaling = new LinearScaling( 1.0, 0.0 );
=====================================================================
Found a 16 line (123 tokens) duplication in the following files: 
Starting at line 382 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/impltools.cxx

                            {
                                for( int x=0; x<aDestBmpSize.Width(); ++x )
                                {
                                    ::basegfx::B2DPoint aPoint(x,y);
                                    aPoint *= aTransform;

                                    const int nSrcX( ::basegfx::fround( aPoint.getX() ) );
                                    const int nSrcY( ::basegfx::fround( aPoint.getY() ) );
                                    if( nSrcX < 0 || nSrcX >= aBmpSize.Width() ||
                                        nSrcY < 0 || nSrcY >= aBmpSize.Height() )
                                    {
                                        pAlphaWriteAccess->SetPixel( y, x, BitmapColor(255) );
                                    }
                                    else
                                    {
                                        pAlphaWriteAccess->SetPixel( y, x, BitmapColor(0) );
=====================================================================
Found a 23 line (123 tokens) duplication in the following files: 
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvasfont.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvasfont.cxx

        return rendering::FontMetrics();
    }

#define SERVICE_NAME "com.sun.star.rendering.CanvasFont"
#define IMPLEMENTATION_NAME "NullCanvas::CanvasFont"

    ::rtl::OUString SAL_CALL CanvasFont::getImplementationName() throw( uno::RuntimeException )
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL CanvasFont::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL CanvasFont::getSupportedServiceNames()  throw( uno::RuntimeException )
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
        
        return aRet;
    }
=====================================================================
Found a 24 line (123 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvascustomsprite.cxx
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvascustomsprite.cxx

        maSpriteHelper.redraw( mbSurfaceDirty );
    }

#define IMPLEMENTATION_NAME "NullCanvas.CanvasCustomSprite"
#define SERVICE_NAME "com.sun.star.rendering.CanvasCustomSprite"

    ::rtl::OUString SAL_CALL CanvasCustomSprite::getImplementationName() throw( uno::RuntimeException )
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL CanvasCustomSprite::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames()  throw( uno::RuntimeException )
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
        
        return aRet;
    }
}
=====================================================================
Found a 25 line (123 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvasbitmap.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvasbitmap.cxx

        CanvasBitmap_Base::disposing();
    }

#define IMPLEMENTATION_NAME "NullCanvas.CanvasBitmap"
#define SERVICE_NAME "com.sun.star.rendering.CanvasBitmap"

    ::rtl::OUString SAL_CALL CanvasBitmap::getImplementationName(  ) throw (uno::RuntimeException)
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL CanvasBitmap::supportsService( const ::rtl::OUString& ServiceName ) throw (uno::RuntimeException)
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames(  ) throw (uno::RuntimeException)
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
        
        return aRet;
    }

}
=====================================================================
Found a 21 line (123 tokens) duplication in the following files: 
Starting at line 390 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/jni_uno/jni_data.cxx
Starting at line 741 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/jni_uno/jni_data.cxx

	case typelib_TypeClass_EXCEPTION:
    {
        JLocalAutoRef jo_out_holder( jni );
        if (out_param)
        {
            jo_out_holder.reset(
                jni->GetObjectArrayElement( (jobjectArray) java_data.l, 0 ) );
            jni.ensure_no_exception();
            java_data.l = jo_out_holder.get();
        }
        if (0 == java_data.l)
        {
            OUStringBuffer buf( 128 );
            buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("[map_to_uno():") );
            buf.append( OUString::unacquired( &type->pTypeName ) );
            buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("] null-ref given!") );
            buf.append( jni.get_stack_trace() );
            throw BridgeRuntimeError( buf.makeStringAndClear() );
        }

        if (0 == info)
=====================================================================
Found a 29 line (123 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

				::uno_copyAndConvertData(
                    pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                    *(void **)pCppStack, pParamTypeDescr,
                    pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );

	// in case an exception occured...
	if (pUnoExc)
	{
=====================================================================
Found a 30 line (123 tokens) duplication in the following files: 
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/except.cxx

            if (iFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
=====================================================================
Found a 29 line (123 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

				::uno_copyAndConvertData(
                    pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                    *(void **)pCppStack, pParamTypeDescr,
                    pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );

	// in case an exception occured...
	if (pUnoExc)
	{
=====================================================================
Found a 30 line (123 tokens) duplication in the following files: 
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx

            if (iiFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#ifdef DEBUG
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iiFind->second;
=====================================================================
Found a 29 line (123 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

				::uno_copyAndConvertData(
                    pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                    *(void **)pCppStack, pParamTypeDescr,
                    pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );

	// in case an exception occured...
	if (pUnoExc)
	{
=====================================================================
Found a 30 line (123 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx

            if (iFind2 == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind2->second;
=====================================================================
Found a 29 line (123 tokens) duplication in the following files: 
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

				::uno_copyAndConvertData(
                    pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                    *(void **)pCppStack, pParamTypeDescr,
                    pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );

	// in case an exception occured...
	if (pUnoExc)
	{
=====================================================================
Found a 30 line (123 tokens) duplication in the following files: 
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx

            if (iiFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if defined BRIDGES_DEBUG
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iiFind->second;
=====================================================================
Found a 17 line (123 tokens) duplication in the following files: 
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 30 line (123 tokens) duplication in the following files: 
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx

            if (iiFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if defined BRIDGES_DEBUG
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iiFind->second;
=====================================================================
Found a 29 line (123 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

				::uno_copyAndConvertData(
                    pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                    *(void **)pCppStack, pParamTypeDescr,
                    pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );

	// in case an exception occured...
	if (pUnoExc)
	{
=====================================================================
Found a 30 line (123 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx

            if (iiFind == m_generatedRttis.end())
            {
                // we must generate it !
                // symbol and rtti-name is nearly identical,
                // the symbol is prefixed with _ZTI
                char const * rttiName = symName.getStr() +4;
#if defined BRIDGES_DEBUG
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }
                
                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iiFind->second;
=====================================================================
Found a 29 line (123 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

				::uno_copyAndConvertData(
                    pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                    *(void **)pCppStack, pParamTypeDescr,
                    pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );

	// in case an exception occured...
	if (pUnoExc)
	{
=====================================================================
Found a 21 line (123 tokens) duplication in the following files: 
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx

        *pPT++ = 'I';

	// stack space
	// OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
		{
=====================================================================
Found a 29 line (123 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

				::uno_copyAndConvertData(
                    pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
                    *(void **)pCppStack, pParamTypeDescr,
                    pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );

	// in case an exception occured...
	if (pUnoExc)
	{
=====================================================================
Found a 20 line (123 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside2.cxx
Starting at line 1344 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlged.cxx

	Font aFont( pPrinter->GetFont() );
	aFont.SetWeight( WEIGHT_BOLD );
	aFont.SetAlign( ALIGN_BOTTOM );
	pPrinter->SetFont( aFont );

	long nFontHeight = pPrinter->GetTextHeight();

	// 1.Border => Strich, 2+3 Border = Freiraum.
	long nYTop = TMARGPRN-3*nBorder-nFontHeight;

	long nXLeft = nLeftMargin-nBorder;
	long nXRight = aSz.Width()-RMARGPRN+nBorder;

	pPrinter->DrawRect( Rectangle(
		Point( nXLeft, nYTop ),
		Size( nXRight-nXLeft, aSz.Height() - nYTop - BMARGPRN + nBorder ) ) );

	long nY = TMARGPRN-2*nBorder;
	Point aPos( nLeftMargin, nY );
	pPrinter->DrawText( aPos, rTitle );
=====================================================================
Found a 20 line (122 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr  = m_wrap_mode_y(y >> image_subpixel_shift);
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                                base_type::m_ry_inv) >> 
                                    image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   base_type::m_rx_inv) >> 
                                       image_subpixel_shift;
                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = m_wrap_mode_x(x_lr_ini);
                    int x_hr = x_hr_ini;
                    const value_type* row_ptr = (const value_type*)base_type::source_image().row(y_lr);
                    do
                    {
                        const value_type* fg_ptr = row_ptr + (x_lr << 2);
=====================================================================
Found a 20 line (122 tokens) duplication in the following files: 
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h

            base_type(alloc, src, color_type(0,0), inter, filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 23 line (122 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                                          image_subpixel_shift);

            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            do
            {
                int x_hr;
                int y_hr;
                
                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;
                unsigned weight;

                if(x_lr >= 0    && y_lr >= 0 &&
                   x_lr <  maxx && y_lr <  maxy) 
                {
                    fg[0] = fg[1] = fg[2] = image_filter_size / 2;
=====================================================================
Found a 26 line (122 tokens) duplication in the following files: 
Starting at line 2679 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/xexptran.cxx
Starting at line 2710 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/xexptran.cxx

					nPos++;
					Imp_SkipSpaces(aStr, nPos, nLen);
					
					while(nPos < nLen && Imp_IsOnNumberChar(aStr, nPos))
					{
						sal_Int32 nX(Imp_ImportNumberAndSpaces(0L, aStr, nPos, nLen, rConv));
						sal_Int32 nY(Imp_ImportNumberAndSpaces(0L, aStr, nPos, nLen, rConv));

						if(bRelative)
						{
							nX += mnLastX;
							nY += mnLastY;
						}

						// set last position
						mnLastX = nX;
						mnLastY = nY;
						
						// calc transform and add point and flag
						Imp_PrepareCoorImport(nX, nY, rObjectPos, rObjectSize, mrViewBox, bScale, bTranslate);
						Imp_AddExportPoints(nX, nY, pNotSoInnerSequence, pNotSoInnerFlags, nInnerIndex++, drawing::PolygonFlags_NORMAL);
					}
					break;
				}
				
				case 'h' :
=====================================================================
Found a 14 line (122 tokens) duplication in the following files: 
Starting at line 3474 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 8326 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

    disableStreamEncryption();

    sal_uInt64 nEndPos = 0;
    CHECK_RETURN( (osl_File_E_None == osl_getFilePos( m_aFile, &nEndPos )) );
    aLine.setLength( 0 );
    aLine.append( "\nendstream\nendobj\n\n" );
    CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) );
    CHECK_RETURN( updateObject( nStreamLengthObject ) );
    aLine.setLength( 0 );
    aLine.append( nStreamLengthObject );
    aLine.append( " 0 obj\n" );
    aLine.append( (sal_Int64)(nEndPos-nStartPos) );
    aLine.append( "\nendobj\n\n" );
    CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) );
=====================================================================
Found a 12 line (122 tokens) duplication in the following files: 
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salframe.h
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salframe.h

    virtual void                SetExtendedFrameStyle( SalExtStyle nExtStyle );
    virtual void				Show( BOOL bVisible, BOOL bNoActivate = FALSE );
    virtual void				Enable( BOOL bEnable );
    virtual void              SetMinClientSize( long nWidth, long nHeight );
    virtual void              SetMaxClientSize( long nWidth, long nHeight );
    virtual void				SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
    virtual void				GetClientSize( long& rWidth, long& rHeight );
    virtual void				GetWorkArea( Rectangle& rRect );
    virtual SalFrame*			GetParent() const;
    virtual void				SetWindowState( const SalFrameState* pState );
    virtual BOOL				GetWindowState( SalFrameState* pState );
    virtual void				ShowFullScreen( BOOL bFullScreen, sal_Int32 nMonitor );
=====================================================================
Found a 25 line (122 tokens) duplication in the following files: 
Starting at line 1060 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/config/configitem.cxx
Starting at line 1340 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/config/configitem.cxx

sal_Bool ConfigItem::AddNode(const rtl::OUString& rNode, const rtl::OUString& rNewNode)
{
	ValueCounter_Impl aCounter(pImpl->nInValueChange);
    sal_Bool bRet = sal_True;
    Reference<XHierarchicalNameAccess> xHierarchyAccess = GetTree();
    if(xHierarchyAccess.is())
	{
		Reference<XChangesBatch> xBatch(xHierarchyAccess, UNO_QUERY);
		try
		{
			Reference<XNameContainer> xCont;
			if(rNode.getLength())
			{
				Any aNode = xHierarchyAccess->getByHierarchicalName(rNode);
				aNode >>= xCont;
			}
			else
				xCont = Reference<XNameContainer> (xHierarchyAccess, UNO_QUERY);
			if(!xCont.is())
				return sal_False;

			Reference<XSingleServiceFactory> xFac(xCont, UNO_QUERY);

            if(xFac.is())
			{
=====================================================================
Found a 20 line (122 tokens) duplication in the following files: 
Starting at line 1225 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/urltest.cxx
Starting at line 1257 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/urltest.cxx

                INET_PROT_HTTP);
			if (aTest[i].m_pOutput == 0
                ? !aUrl.HasError()
                : (aUrl.HasError()
                   || (aUrl.GetMainURL(INetURLObject::DECODE_TO_IURI).
                           equalsAscii(aTest[i].m_pOutput)
                       != sal_True)))
			{
				String sTest(aUrl.GetMainURL(INetURLObject::DECODE_TO_IURI));
				printf("BAD %s -> %s != %s\n",
					   aTest[i].m_pInput,
                       aUrl.HasError() ? "<none>"
                       : ByteString(sTest, RTL_TEXTENCODING_ASCII_US).GetBuffer(),
                       aTest[i].m_pOutput == 0 ? "<none>" : aTest[i].m_pOutput);
			}
		}
    }

    if (true)
    {
=====================================================================
Found a 24 line (122 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/zcodec/zcodec.cxx
Starting at line 337 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/zcodec/zcodec.cxx

			PZSTREAM->avail_in = mpIStm->Read (
				PZSTREAM->next_in = mpInBuf, nInToRead);
			mnInToRead -= nInToRead;

			if ( mnCompressMethod & ZCODEC_UPDATE_CRC )
				mnCRC = UpdateCRC( mnCRC, mpInBuf, nInToRead );

		}
		err = inflate( PZSTREAM, Z_NO_FLUSH );
		if ( err < 0 )
		{
			// Accept Z_BUF_ERROR as EAGAIN or EWOULDBLOCK.
			mbStatus = (err == Z_BUF_ERROR);
			break;
		}
	}
	while ( (err != Z_STREAM_END) &&
			(PZSTREAM->avail_out != 0) &&
			(PZSTREAM->avail_in || mnInToRead) );
	if ( err == Z_STREAM_END ) 
		mbFinish = TRUE;

	return (mbStatus ? (long)(nSize - PZSTREAM->avail_out) : -1);
}
=====================================================================
Found a 16 line (122 tokens) duplication in the following files: 
Starting at line 322 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx

	uno::Reference < XPropertySet > xPropSet;

	uno::Reference<XUnoTunnel> xCrsrTunnel( GetCursor(), UNO_QUERY );
	ASSERT( xCrsrTunnel.is(), "missing XUnoTunnel for Cursor" );
	OTextCursorHelper *pTxtCrsr =
				(OTextCursorHelper*)xCrsrTunnel->getSomething(
											OTextCursorHelper::getUnoTunnelId() );
	ASSERT( pTxtCrsr, "SwXTextCursor missing" );
	SwDoc *pDoc = SwImport::GetDocFromXMLImport( rImport );

	SfxItemSet aItemSet( pDoc->GetAttrPool(), RES_FRMATR_BEGIN,
						 RES_FRMATR_END );
	Size aTwipSize( 0, 0 );
	Rectangle aVisArea( 0, 0, nWidth, nHeight );
    lcl_putHeightAndWidth( aItemSet, nHeight, nWidth,
						   &aTwipSize.Height(), &aTwipSize.Width() );
=====================================================================
Found a 23 line (122 tokens) duplication in the following files: 
Starting at line 665 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx
Starting at line 799 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx

	pAppletImpl->SetAltText( aAlt );

	SfxItemSet aItemSet( pDoc->GetAttrPool(), pCSS1Parser->GetWhichMap() );
	SvxCSS1PropertyInfo aPropInfo;
	if( HasStyleOptions( aStyle, aId, aClass ) )
		ParseStyleOptions( aStyle, aId, aClass, aItemSet, aPropInfo );

	SfxItemSet& rFrmSet = pAppletImpl->GetItemSet();
	if( !IsNewDoc() )
		Reader::ResetFrmFmtAttrs( rFrmSet );

	// den Anker und die Ausrichtung setzen
	SetAnchorAndAdjustment( eVertOri, eHoriOri, aItemSet, aPropInfo, rFrmSet );

	// und noch die Groesse des Rahmens
	Size aDfltSz( HTML_DFLT_APPLET_WIDTH, HTML_DFLT_APPLET_HEIGHT );
	SetFixSize( aSize, aDfltSz, bPrcWidth, bPrcHeight, aItemSet, aPropInfo,
				rFrmSet );
	SetSpace( aSpace, aItemSet, aPropInfo, rFrmSet );
}
#endif

void SwHTMLParser::EndApplet()
=====================================================================
Found a 28 line (122 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdocirc.cxx
Starting at line 1921 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

	const bool bIsLineDraft(0 != (rInfoRec.nPaintMode & SDRPAINTMODE_DRAFTLINE));

	// prepare ItemSet of this object
	const SfxItemSet& rSet = GetObjectItemSet();

	// perepare ItemSet to avoid old XOut line drawing
	SfxItemSet aEmptySet(*rSet.GetPool());
	aEmptySet.Put(XLineStyleItem(XLINE_NONE));
	aEmptySet.Put(XFillStyleItem(XFILL_NONE));

	// #b4899532# if not filled but fill draft, avoid object being invisible in using
	// a hair linestyle and COL_LIGHTGRAY
    SfxItemSet aItemSet(rSet);
	if(bIsFillDraft && XLINE_NONE == ((const XLineStyleItem&)(rSet.Get(XATTR_LINESTYLE))).GetValue())
	{
		ImpPrepareLocalItemSetForDraftLine(aItemSet);
	}

	// #103692# prepare ItemSet for shadow fill attributes
    SfxItemSet aShadowSet(aItemSet);

	// prepare line geometry
	::std::auto_ptr< SdrLineGeometry > pLineGeometry( ImpPrepareLineGeometry(rXOut, aItemSet, bIsLineDraft) );

	// Shadows
	if (!bHideContour && ImpSetShadowAttributes(aItemSet, aShadowSet))
	{
        if( !IsClosed() || bIsFillDraft )
=====================================================================
Found a 15 line (122 tokens) duplication in the following files: 
Starting at line 1516 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit2.cxx
Starting at line 1534 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit2.cxx

EditPaM ImpEditEngine::EndOfWord( const EditPaM& rPaM, sal_Int16 nWordType )
{
	EditPaM aNewPaM( rPaM );

	// we need to increase the position by 1 when retrieving the locale
	// since the attribute for the char left to the cursor position is returned
	EditPaM aTmpPaM( aNewPaM );
	xub_StrLen nMax = rPaM.GetNode()->Len();
	if ( aTmpPaM.GetIndex() < nMax )
		aTmpPaM.SetIndex( aTmpPaM.GetIndex() + 1 );
    lang::Locale aLocale( GetLocale( aTmpPaM ) );

	uno::Reference < i18n::XBreakIterator > _xBI( ImplGetBreakIterator() );
	i18n::Boundary aBoundary = _xBI->getWordBoundary( *rPaM.GetNode(), rPaM.GetIndex(), aLocale, nWordType, sal_True );
	aNewPaM.SetIndex( (USHORT)aBoundary.endPos );
=====================================================================
Found a 16 line (122 tokens) duplication in the following files: 
Starting at line 4330 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3927 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x2000, DFF_Prop_geoBottom,0, 800 }
};
static const SvxMSDffTextRectangles mso_sptFlowChartAlternateProcessTextRect[] = 
{
	{ { 4 MSO_I, 6 MSO_I }, { 5 MSO_I, 7 MSO_I } }
};
static const mso_CustomShape msoFlowChartAlternateProcess =
{
	(SvxMSDffVertPair*)mso_sptFlowChartAlternateProcessVert, sizeof( mso_sptFlowChartAlternateProcessVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartAlternateProcessSegm, sizeof( mso_sptFlowChartAlternateProcessSegm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptFlowChartAlternateProcessCalc, sizeof( mso_sptFlowChartAlternateProcessCalc ) / sizeof( SvxMSDffCalculationData ),
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartAlternateProcessTextRect, sizeof( mso_sptFlowChartAlternateProcessTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 32 line (122 tokens) duplication in the following files: 
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx
Starting at line 728 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx

	sal_uInt32          &rAttrib)
{
	// Acquire exclusive access.
	osl::MutexGuard aGuard(*this);

	// Check precond.
	if (!self::isValid())
		return store_E_InvalidAccess;

	// Setup BTree entry.
	entry e;
	e.m_aKey = rKey;

	// Find NodePage.
	storeError eErrCode = find (e, *m_pNode[0]);
	if (eErrCode != store_E_None)
		return eErrCode;

	// Find Index.
	sal_uInt16 i = m_pNode[0]->find(e), n = m_pNode[0]->usageCount();
	if (!(i < n))
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Check for exact match.
	if (!(e.compare (m_pNode[0]->m_pData[i]) == entry::COMPARE_EQUAL))
	{
		// Page not present.
		return store_E_NotExists;
	}
=====================================================================
Found a 13 line (122 tokens) duplication in the following files: 
Starting at line 1121 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/embobj.cxx
Starting at line 794 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/embedhlp.cxx

	Point aPixViewPos = pOut->LogicToPixel( rRect.TopLeft() );
	INT32 nMax = aPixSize.Width() + aPixSize.Height();
	for( INT32 i = 5; i < nMax; i += 5 )
	{
		Point a1( aPixViewPos ), a2( aPixViewPos );
		if( i > aPixSize.Width() )
			a1 += Point( aPixSize.Width(), i - aPixSize.Width() );
		else
			a1 += Point( i, 0 );
		if( i > aPixSize.Height() )
			a2 += Point( i - aPixSize.Height(), aPixSize.Height() );
		else
			a2 += Point( 0, i );
=====================================================================
Found a 12 line (122 tokens) duplication in the following files: 
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/transitions/snakewipe.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/transitions/snakewipe.cxx

        const double len = ((1.0 - t) * M_SQRT2 * d);
        const double height = ::basegfx::pruneScaleValue( M_SQRT1_2 / m_sqrtElements );
        poly.clear();
        poly.append( ::basegfx::B2DPoint( 0.0, 0.0 ) );
        poly.append( ::basegfx::B2DPoint( 0.0, height ) );
        poly.append( ::basegfx::B2DPoint( len + a, height ) );
        poly.append( ::basegfx::B2DPoint( len + a, 0.0 ) );
        poly.setClosed(true);
        ::basegfx::B2DHomMatrix aTransform;
        if ((static_cast<sal_Int32>(sqrtArea2) & 1) == 1) {
            // odd line
            aTransform.translate( 0.0, -height );
=====================================================================
Found a 12 line (122 tokens) duplication in the following files: 
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/shapes/viewappletshape.cxx
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/shapes/viewappletshape.cxx

                xFrameWindow->setPosSize( static_cast<sal_Int32>(rPixelBounds.getMinX()), 
                                          static_cast<sal_Int32>(rPixelBounds.getMinY()), 
                                          static_cast<sal_Int32>(rPixelBounds.getWidth()), 
                                          static_cast<sal_Int32>(rPixelBounds.getHeight()),
                                          awt::PosSize::POSSIZE );

            uno::Reference< awt::XWindow > xAppletWindow( mxFrame->getComponentWindow() );
            if( xAppletWindow.is() )
                xAppletWindow->setPosSize( 0, 0, 
                                           static_cast<sal_Int32>(rPixelBounds.getWidth()), 
                                           static_cast<sal_Int32>(rPixelBounds.getHeight()),
                                           awt::PosSize::POSSIZE );
=====================================================================
Found a 52 line (122 tokens) duplication in the following files: 
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/workbench/TestProxySet.cxx
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/workbench/TestSmplMail.cxx

using namespace	::rtl					;
using namespace	::cppu					;
using namespace	::com::sun::star::uno	;
using namespace	::com::sun::star::lang	;
using namespace std						;
using namespace com::sun::star::system;

//--------------------------------------------------------------
//	defines
//--------------------------------------------------------------

#define RDB_SYSPATH "D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\applicat.rdb"

//--------------------------------------------------------------
//	global variables
//--------------------------------------------------------------

Reference< XMultiServiceFactory >	g_xFactory;

//--------------------------------------------------------------
//	main
//--------------------------------------------------------------


// int SAL_CALL main(int nArgc, char* Argv[], char* pEnv[]	)
// make Warning free, leave out typename
int SAL_CALL main(int , char*, char* )
{
	//-------------------------------------------------
	// get the global service-manager
	//-------------------------------------------------
    
	// Get global factory for uno services.
	OUString rdbName = OUString( RTL_CONSTASCII_USTRINGPARAM( RDB_SYSPATH ) );
	Reference< XMultiServiceFactory > g_xFactory( createRegistryServiceFactory( rdbName ) );

	// Print a message if an error occured.
	if ( g_xFactory.is() == sal_False )
	{
		OSL_ENSURE(sal_False, "Can't create RegistryServiceFactory");
		return(-1);
	}

	printf("Creating RegistryServiceFactory successful\n");

	//-------------------------------------------------
	// try to get an Interface to a XFilePicker Service
	//-------------------------------------------------

    try
    {
	    Reference< XSimpleMailClientSupplier > xSmplMailClientSuppl(
=====================================================================
Found a 17 line (122 tokens) duplication in the following files: 
Starting at line 3268 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/objstor.cxx
Starting at line 3311 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/objstor.cxx

	sal_Bool bResult = sal_True;

	if ( pImp->mpObjectContainer )
	{
		uno::Sequence < ::rtl::OUString > aNames = GetEmbeddedObjectContainer().GetObjectNames();
		for ( sal_Int32 n=0; n<aNames.getLength(); n++ )
		{
			uno::Reference < embed::XEmbeddedObject > xObj = GetEmbeddedObjectContainer().GetEmbeddedObject( aNames[n] );
			OSL_ENSURE( xObj.is(), "An empty entry in the embedded objects list!\n" );
			if ( xObj.is() )
			{
				uno::Reference< embed::XEmbedPersist > xPersist( xObj, uno::UNO_QUERY );
				if ( xPersist.is() )
				{
					try
					{
						xPersist->setPersistentEntry( xStorage,
=====================================================================
Found a 20 line (122 tokens) duplication in the following files: 
Starting at line 924 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/shutdowniconw32.cxx
Starting at line 953 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/shutdowniconw32.cxx

	else
	{
		char szPathA[_MAX_PATH];
		GetModuleFileNameA( NULL, szPathA, _MAX_PATH-1);

		// calc the string wcstr len
		int nNeededWStrBuffSize = MultiByteToWideChar( CP_ACP, 0, szPathA, -1, NULL, 0 );

		// copy the string if necessary
		if ( nNeededWStrBuffSize > 0 )
			MultiByteToWideChar( CP_ACP, 0, szPathA, -1, aPath, nNeededWStrBuffSize );
	}

	OUString aOfficepath( reinterpret_cast<const sal_Unicode*>(aPath) );
	int i = aOfficepath.lastIndexOf((sal_Char) '\\');
	if( i != -1 )
		aOfficepath = aOfficepath.copy(0, i);

	OUString quickstartExe(aOfficepath);
	quickstartExe += OUString( RTL_CONSTASCII_USTRINGPARAM( "\\quickstart.exe" ) );
=====================================================================
Found a 19 line (122 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/notes/EditWindow.cxx
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/document.cxx

                DEFAULTFONT_FIXED,      EE_CHAR_FONTINFO },
            // info to get CJK font to be used
            {   LANGUAGE_JAPANESE,      LANGUAGE_NONE,
                DEFAULTFONT_CJK_TEXT,   EE_CHAR_FONTINFO_CJK },
            // info to get CTL font to be used
            {   LANGUAGE_ARABIC,        LANGUAGE_NONE,
                DEFAULTFONT_CTL_TEXT,   EE_CHAR_FONTINFO_CTL }
        };
        aTable[0].nLang = aOpt.nDefaultLanguage;
        aTable[1].nLang = aOpt.nDefaultLanguage_CJK;
        aTable[2].nLang = aOpt.nDefaultLanguage_CTL;
        //
        for (int i = 0;  i < 3;  ++i)
        {
            const FontDta &rFntDta = aTable[i];
            LanguageType nLang = (LANGUAGE_NONE == rFntDta.nLang) ?
                    rFntDta.nFallbackLang : rFntDta.nLang;
            Font aFont = Application::GetDefaultDevice()->GetDefaultFont(
                        rFntDta.nFontType, nLang, DEFAULTFONT_FLAGS_ONLYONE );
=====================================================================
Found a 23 line (122 tokens) duplication in the following files: 
Starting at line 1529 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/pvlaydlg.cxx
Starting at line 993 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/tpsort.cxx

	if ( pEd == &aEdOutPos )
	{
		String	theCurPosStr = aEdOutPos.GetText();
		USHORT	nResult = ScAddress().Parse( theCurPosStr, pDoc );

		if ( SCA_VALID == (nResult & SCA_VALID) )
		{
			String*	pStr	= NULL;
			BOOL	bFound	= FALSE;
			USHORT	i		= 0;
			USHORT	nCount	= aLbOutPos.GetEntryCount();

			for ( i=2; i<nCount && !bFound; i++ )
			{
				pStr = (String*)aLbOutPos.GetEntryData( i );
				bFound = (theCurPosStr == *pStr);
			}

			if ( bFound )
				aLbOutPos.SelectEntryPos( --i );
			else
				aLbOutPos.SelectEntryPos( 0 );
		}
=====================================================================
Found a 16 line (122 tokens) duplication in the following files: 
Starting at line 549 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/inputhdl.cxx
Starting at line 1491 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/inputwin.cxx

	String aFirstName;
	const ScAppOptions& rOpt = SC_MOD()->GetAppOptions();
	USHORT nMRUCount = rOpt.GetLRUFuncListCount();
	const USHORT* pMRUList = rOpt.GetLRUFuncList();
	if (pMRUList)
	{
		const ScFunctionList* pFuncList = ScGlobal::GetStarCalcFunctionList();
		ULONG nListCount = pFuncList->GetCount();
		for (USHORT i=0; i<nMRUCount; i++)
		{
			USHORT nId = pMRUList[i];
			for (ULONG j=0; j<nListCount; j++)
			{
				const ScFuncDesc* pDesc = pFuncList->GetFunction( j );
				if ( pDesc->nFIndex == nId && pDesc->pFuncName )
				{
=====================================================================
Found a 21 line (122 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlstyli.cxx
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/PageMasterImportPropMapper.cxx

			pNewBorders[i] = new XMLPropertyState(pAllBorderProperty->mnIndex + 1 + i, pAllBorderProperty->maValue);
			pBorders[i] = pNewBorders[i];
		}
		if( !pBorderWidths[i] )
			pBorderWidths[i] = pAllBorderWidthProperty;
		else
			pBorderWidths[i]->mnIndex = -1;
		if( pBorders[i] )
		{
			table::BorderLine aBorderLine;
			pBorders[i]->maValue >>= aBorderLine;
 			if( pBorderWidths[i] )
			{
				table::BorderLine aBorderLineWidth;
				pBorderWidths[i]->maValue >>= aBorderLineWidth;
				aBorderLine.OuterLineWidth = aBorderLineWidth.OuterLineWidth;
				aBorderLine.InnerLineWidth = aBorderLineWidth.InnerLineWidth;
				aBorderLine.LineDistance = aBorderLineWidth.LineDistance;
				pBorders[i]->maValue <<= aBorderLine;
			}
		}
=====================================================================
Found a 13 line (122 tokens) duplication in the following files: 
Starting at line 962 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLStylesExportHelper.cxx
Starting at line 985 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLStylesExportHelper.cxx

{
	DBG_ASSERT(static_cast<size_t>(nTable) < aTables.size(), "wrong table");
	ScMyFormatRangeAddresses* pFormatRanges(aTables[nTable]);
	ScMyFormatRangeAddresses::iterator aItr(pFormatRanges->begin());
	ScMyFormatRangeAddresses::iterator aEndItr(pFormatRanges->end());
	while (aItr != aEndItr)
	{
		if (((*aItr).aRangeAddress.StartColumn <= nColumn) &&
			((*aItr).aRangeAddress.EndColumn >= nColumn) &&
			((*aItr).aRangeAddress.StartRow <= nRow) &&
			((*aItr).aRangeAddress.EndRow >= nRow))
		{
			bIsAutoStyle = aItr->bIsAutoStyle;
=====================================================================
Found a 20 line (122 tokens) duplication in the following files: 
Starting at line 1946 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/attarray.cxx
Starting at line 1983 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/attarray.cxx

BOOL ScAttrArray::IsAllEqual( const ScAttrArray& rOther, SCROW nStartRow, SCROW nEndRow ) const
{
	//!	mit IsVisibleEqual zusammenfassen?

	BOOL bEqual = TRUE;
	SCSIZE nThisPos = 0;
	SCSIZE nOtherPos = 0;
	if ( nStartRow > 0 )
	{
		Search( nStartRow, nThisPos );
		rOther.Search( nStartRow, nOtherPos );
	}

	while ( nThisPos<nCount && nOtherPos<rOther.nCount && bEqual )
	{
		SCROW nThisRow = pData[nThisPos].nRow;
		SCROW nOtherRow = rOther.pData[nOtherPos].nRow;
		const ScPatternAttr* pThisPattern = pData[nThisPos].pPattern;
		const ScPatternAttr* pOtherPattern = rOther.pData[nOtherPos].pPattern;
		bEqual = ( pThisPattern == pOtherPattern );
=====================================================================
Found a 22 line (122 tokens) duplication in the following files: 
Starting at line 874 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx
Starting at line 960 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx

int Hunspell::stem(char*** slst, const char * word)
{
  char cw[MAXWORDUTF8LEN + 4];
  char wspace[MAXWORDUTF8LEN + 4];
  if (! pSMgr) return 0;
  int wl = strlen(word);
  if (utf8) {
    if (wl >= MAXWORDUTF8LEN) return 0;
  } else {
    if (wl >= MAXWORDLEN) return 0;
  }
  int captype = 0;
  int abbv = 0;
  wl = cleanword(cw, word, &captype, &abbv);
  if (wl == 0) return 0;
  
  int ns = 0;

  *slst = NULL; // HU, nsug in pSMgr->suggest
  
  switch(captype) {
     case HUHCAP:
=====================================================================
Found a 20 line (122 tokens) duplication in the following files: 
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/languageguessing/guesslang.cxx
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/languageguessing/guesslang.cxx

void SAL_CALL LangGuess_Impl::enableLanguages(
        const uno::Sequence< Locale >& rLanguages )
    throw (lang::IllegalArgumentException, uno::RuntimeException)
{
    osl::MutexGuard aGuard( GetLangGuessMutex() );

    sal_Int32 nLanguages = rLanguages.getLength();
    const Locale *pLanguages = rLanguages.getConstArray();

    for (sal_Int32 i = 0;  i < nLanguages;  ++i)
    {
        string language;

        OString l = OUStringToOString( pLanguages[i].Language, RTL_TEXTENCODING_ASCII_US );
        OString c = OUStringToOString( pLanguages[i].Country, RTL_TEXTENCODING_ASCII_US );

        language += l.getStr();
        language += "-";
        language += c.getStr();
        guesser.EnableLanguage(language);
=====================================================================
Found a 26 line (122 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx

        return false;
    
    // init m_sRuntimeLibrary
    OSL_ASSERT(m_sHome.getLength());
    //call virtual function to get the possible paths to the runtime library.
    
    int size = 0;
    char const* const* arRtPaths = getRuntimePaths( & size);
    vector<OUString> libpaths = getVectorFromCharArray(arRtPaths, size);
    
    bool bRt = false;
    typedef vector<OUString>::const_iterator i_path;
    for(i_path ip = libpaths.begin(); ip != libpaths.end(); ip++)
    {
        //Construct an absolute path to the possible runtime
        OUString usRt= m_sHome + *ip;
        DirectoryItem item;
        if(DirectoryItem::get(usRt, item) == File::E_None)
        {
            //found runtime lib
            m_sRuntimeLibrary = usRt;
            bRt = true;
            break;
        }
    }
    if (!bRt)
=====================================================================
Found a 4 line (122 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 13 line (122 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/popupmenucontrollerfactory.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/statusbarcontrollerfactory.cxx

        rtl::OUString getValueFromCommandModule( const rtl::OUString& rCommandURL, const rtl::OUString& rModule ) const;
        void          addServiceToCommandModule( const rtl::OUString& rCommandURL, const rtl::OUString& rModule, const rtl::OUString& rServiceSpecifier );
        void          removeServiceFromCommandModule( const rtl::OUString& rCommandURL, const rtl::OUString& rModule );

        // container.XContainerListener
        virtual void SAL_CALL elementInserted( const ContainerEvent& aEvent ) throw(RuntimeException);
        virtual void SAL_CALL elementRemoved ( const ContainerEvent& aEvent ) throw(RuntimeException);
        virtual void SAL_CALL elementReplaced( const ContainerEvent& aEvent ) throw(RuntimeException);

        // lang.XEventListener
        virtual void SAL_CALL disposing( const EventObject& aEvent ) throw(RuntimeException);
 
    private:
=====================================================================
Found a 28 line (122 tokens) duplication in the following files: 
Starting at line 1067 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/recentfilesmenucontroller.cxx

				INetURLObject	aURL( m_aRecentFilesItems[i].aURL );

				if ( aURL.GetProtocol() == INET_PROT_FILE )
				{
					// Do handle file URL differently => convert it to a system
					// path and abbreviate it with a special function:
					String aFileSystemPath( aURL.getFSysPath( INetURLObject::FSYS_DETECT ) );

					::rtl::OUString	aSystemPath( aFileSystemPath );
					::rtl::OUString	aCompactedSystemPath;

					aTipHelpText = aSystemPath;
					oslFileError nError = osl_abbreviateSystemPath( aSystemPath.pData, &aCompactedSystemPath.pData, 46, NULL );
					if ( !nError )
						aMenuTitle = String( aCompactedSystemPath );
					else
						aMenuTitle = aSystemPath;
				}
				else
				{
					// Use INetURLObject to abbreviate all other URLs
					String	aShortURL;
					aShortURL = aURL.getAbbreviated( xStringLength, 46, INetURLObject::DECODE_UNAMBIGUOUS );
					aMenuTitle += aShortURL;
					aTipHelpText = aURLString;
				}

				::rtl::OUString aTitle( aMenuShortCut + aMenuTitle );
=====================================================================
Found a 16 line (122 tokens) duplication in the following files: 
Starting at line 665 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/SalAquaFilePicker.cxx
Starting at line 1650 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFilePicker.cxx

	uno::Any aAny;
	if( 0 == aArguments.getLength() )
		throw lang::IllegalArgumentException(
			rtl::OUString::createFromAscii( "no arguments" ),
			static_cast<XFilePicker*>( this ), 1 );
   
	aAny = aArguments[0];

	if( ( aAny.getValueType() != ::getCppuType( ( sal_Int16* )0 ) ) &&
	     (aAny.getValueType() != ::getCppuType( ( sal_Int8* )0 ) ) )
		 throw lang::IllegalArgumentException(
			rtl::OUString::createFromAscii( "invalid argument type" ),
			static_cast<XFilePicker*>( this ), 1 );

	sal_Int16 templateId = -1;
	aAny >>= templateId;
=====================================================================
Found a 12 line (122 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Button.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormattedField.cxx

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::form::binding;
=====================================================================
Found a 37 line (122 tokens) duplication in the following files: 
Starting at line 19 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/so_activex.cpp
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/so_activex.cpp

CComModule _Module;

BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_SOActiveX, CSOActiveX)
END_OBJECT_MAP()

/////////////////////////////////////////////////////////////////////////////
// DLL Entry Point

extern "C"
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
{
    if (dwReason == DLL_PROCESS_ATTACH)
    {
        _Module.Init(ObjectMap, hInstance, &LIBID_SO_ACTIVEXLib);
        DisableThreadLibraryCalls(hInstance);
    }
    else if (dwReason == DLL_PROCESS_DETACH)
        _Module.Term();
    return TRUE;    // ok
}

/////////////////////////////////////////////////////////////////////////////
// Used to determine whether the DLL can be unloaded by OLE

STDAPI DllCanUnloadNow(void)
{
    return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
}

/////////////////////////////////////////////////////////////////////////////
// Returns a class factory to create an object of the requested type

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
    return _Module.GetClassObject(rclsid, riid, ppv);
}
=====================================================================
Found a 34 line (122 tokens) duplication in the following files: 
Starting at line 1005 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 615 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

			ATLASSERT( mWebBrowser2 );
			if( mWebBrowser2 )
				AtlAdvise( mWebBrowser2, GetUnknown(), DIID_DWebBrowserEvents2, &mCookie );
		}
	}

	return hr;
}

STDMETHODIMP CSOActiveX::Invoke(DISPID dispidMember, 
							    REFIID riid, 
							    LCID lcid, 
                                WORD wFlags, 
							    DISPPARAMS* pDispParams,
                                VARIANT* pvarResult, 
							    EXCEPINFO* pExcepInfo,
                                UINT* puArgErr)
{
    if (riid != IID_NULL)
        return DISP_E_UNKNOWNINTERFACE;

    if (!pDispParams)
        return DISP_E_PARAMNOTOPTIONAL;

	if ( dispidMember == DISPID_ONQUIT )
		Cleanup();
	
    IDispatchImpl<ISOActiveX, &IID_ISOActiveX, 
                  &LIBID_SO_ACTIVEXLib>::Invoke(
             dispidMember, riid, lcid, wFlags, pDispParams,
             pvarResult, pExcepInfo, puArgErr);

    return S_OK;
}
=====================================================================
Found a 15 line (122 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olevisual.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olevisual.cxx

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	// TODO: if the object has cached representation then it should be returned
	// TODO: if the object has no cached representation and is in loaded state it should switch itself to the running state
	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object is not loaded!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
=====================================================================
Found a 43 line (122 tokens) duplication in the following files: 
Starting at line 1617 of /local/ooo-build/ooo-build/src/oog680-m3/crashrep/source/win32/soreport.cpp
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/signal.c

	FILE *fp = fopen( filename, "r" );

	if ( fp )
	{
		rtlDigest digest = rtl_digest_createMD5();

		if ( digest )
		{
			size_t			nBytesRead;
			sal_uInt8		buffer[4096];
			rtlDigestError	error = rtl_Digest_E_None;

			while ( rtl_Digest_E_None == error &&
				0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) )
			{
				error = rtl_digest_updateMD5( digest, buffer, nBytesRead );	
				nBytesProcessed += nBytesRead;
			}

			if ( rtl_Digest_E_None == error )
			{
				error = rtl_digest_getMD5( digest, pChecksum, nChecksumLen );
			}

			if ( rtl_Digest_E_None != error )
				nBytesProcessed = 0;

			rtl_digest_destroyMD5( digest );
		}

		fclose( fp );
	}

	return nBytesProcessed;
}

/*****************************************************************************/
/* Call crash reporter	*/
/*****************************************************************************/

/* Helper function to encode and write a string to a stream */

static int fputs_xml( const char *string, FILE *stream )
=====================================================================
Found a 32 line (122 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/cpputools/source/registercomponent/registercomponent.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/cpputools/source/unoexe/unoexe.cxx

static OUString convertToFileUrl(const OUString& fileName)
{
    if ( isFileUrl(fileName) )
    {
        return fileName;
    }

    OUString uUrlFileName;
    if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
    {
        OUString uWorkingDir;
        if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None) {
            OSL_ASSERT(false);
        }
        if (FileBase::getAbsoluteFileURL(uWorkingDir, fileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    } else
    {
        if (FileBase::getFileURLFromSystemPath(fileName, uUrlFileName)
            != FileBase::E_None)
        {
            OSL_ASSERT(false);
        }
    }

    return uUrlFileName;
}

static sal_Bool s_quiet = false;
=====================================================================
Found a 28 line (122 tokens) duplication in the following files: 
Starting at line 2220 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/implrenderer.cxx
Starting at line 2303 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/implrenderer.cxx

                        BitmapEx aBmp( pAct->GetBitmapEx() );
                        const Rectangle aCropRect( pAct->GetSrcPoint(),
                                                   pAct->GetSrcSize() );
                        aBmp.Crop( aCropRect );

                        ActionSharedPtr pBmpAction(
                            internal::BitmapActionFactory::createBitmapAction(
                                aBmp,
                                getState( rStates ).mapModeTransform * 
                                ::vcl::unotools::b2DPointFromPoint( pAct->GetDestPoint() ),
                                getState( rStates ).mapModeTransform * 
                                ::vcl::unotools::b2DSizeFromSize( pAct->GetDestSize() ),
                                rCanvas,
                                getState( rStates ) ) );

                        if( pBmpAction )
                        {
                            maActions.push_back(
                                MtfAction(
                                    pBmpAction,
                                    io_rCurrActionIndex ) );
                            
                            io_rCurrActionIndex += pBmpAction->getActionCount()-1;
                        }
                    }
                    break;

                    case META_MASK_ACTION:
=====================================================================
Found a 30 line (122 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MConnection.cxx
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OConnection.cxx

	return NULL;
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
    ::dbtools::throwFeatureNotImplementedException( "XConnection::setTypeMap", *this );
}
// --------------------------------------------------------------------------------
// XCloseable
void SAL_CALL OConnection::close(  ) throw(SQLException, RuntimeException)
{
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(OConnection_BASE::rBHelper.bDisposed);

	}
	dispose();
}
// --------------------------------------------------------------------------------
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings(  ) throw(SQLException, RuntimeException)
{
	return Any();
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::clearWarnings(  ) throw(SQLException, RuntimeException)
{
}
//--------------------------------------------------------------------
void OConnection::buildTypeInfo() throw( SQLException)
=====================================================================
Found a 22 line (122 tokens) duplication in the following files: 
Starting at line 625 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx
Starting at line 611 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

						(*_rRow)[i]->setNull();
					}
				}	break;
				case DataType::DOUBLE:
				case DataType::INTEGER:
				case DataType::DECIMAL:				// #99178# OJ
				case DataType::NUMERIC:
				{
					sal_Unicode cDecimalDelimiter = pConnection->getDecimalDelimiter();
					sal_Unicode cThousandDelimiter = pConnection->getThousandDelimiter();
					String aStrConverted;

					OSL_ENSURE(cDecimalDelimiter && nType != DataType::INTEGER ||
							   !cDecimalDelimiter && nType == DataType::INTEGER,
							   "FalscherTyp");

					// In Standard-Notation (DezimalPUNKT ohne Tausender-Komma) umwandeln:
					for (xub_StrLen j = 0; j < aStr.Len(); ++j)
					{
						if (cDecimalDelimiter && aStr.GetChar(j) == cDecimalDelimiter)
							aStrConverted += '.';
						else if ( aStr.GetChar(j) == '.' ) // special case, if decimal seperator isn't '.' we have to vut the string after it
=====================================================================
Found a 33 line (122 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AConnection.cxx
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MConnection.cxx

	return NULL;
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
    ::dbtools::throwFeatureNotImplementedException( "XConnection::setTypeMap", *this );
}
// --------------------------------------------------------------------------------
// XCloseable
void SAL_CALL OConnection::close(  ) throw(SQLException, RuntimeException)
{
	// we just dispose us
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(OConnection_BASE::rBHelper.bDisposed);

	}
	dispose();
}
// --------------------------------------------------------------------------------
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings(  ) throw(SQLException, RuntimeException)
{
	// when you collected some warnings -> return it
	return Any();
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::clearWarnings(  ) throw(SQLException, RuntimeException)
{
	// you should clear your collected warnings here
}
//------------------------------------------------------------------------------
void OConnection::disposing()
=====================================================================
Found a 30 line (122 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
Starting at line 260 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx

	return m_aValue;
}
// -------------------------------------------------------------------------

Sequence< sal_Int8 > SAL_CALL ODatabaseMetaDataResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
	return getValue(columnIndex);
}
// -------------------------------------------------------------------------

::com::sun::star::util::Date SAL_CALL ODatabaseMetaDataResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
	return getValue(columnIndex);
}
// -------------------------------------------------------------------------

double SAL_CALL ODatabaseMetaDataResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
	return getValue(columnIndex);
}
// -------------------------------------------------------------------------

float SAL_CALL ODatabaseMetaDataResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
	return getValue(columnIndex);
}
// -------------------------------------------------------------------------

sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
=====================================================================
Found a 27 line (122 tokens) duplication in the following files: 
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppumaker.cxx
Starting at line 153 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javamaker.cxx

	JavaOptions options;

	try 
	{
		if (!options.initOptions(argc, argv))
		{
			exit(1);
		}
	}
	catch( IllegalArgument& e)
	{
		fprintf(stderr, "Illegal option: %s\n", e.m_message.getStr());
		exit(99);
	}

	RegistryTypeManager typeMgr;
	
	if (!typeMgr.init(options.getInputFiles(), options.getExtraInputFiles()))
	{
		fprintf(stderr, "%s : init registries failed, check your registry files.\n", options.getProgramName().getStr());
		exit(99);
	}

	if (options.isValid("-B"))
	{
		typeMgr.setBase(options.getOption("-B"));
	}
=====================================================================
Found a 25 line (122 tokens) duplication in the following files: 
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_textlayout.cxx
Starting at line 385 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/textlayout.cxx

                          OffsetTransformer( aMatrix ) );
    }


#define IMPLEMENTATION_NAME "VCLCanvas::TextLayout"
#define SERVICE_NAME "com.sun.star.rendering.TextLayout"

    ::rtl::OUString SAL_CALL TextLayout::getImplementationName() throw( uno::RuntimeException )
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL TextLayout::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL TextLayout::getSupportedServiceNames()  throw( uno::RuntimeException )
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );

        return aRet;
    }
}
=====================================================================
Found a 23 line (122 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_canvascustomsprite.cxx
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvascustomsprite.cxx

        CanvasCustomSpriteBaseT::disposing();
    }

#define IMPLEMENTATION_NAME "VCLCanvas.CanvasCustomSprite"
#define SERVICE_NAME "com.sun.star.rendering.CanvasCustomSprite"

    ::rtl::OUString SAL_CALL CanvasCustomSprite::getImplementationName() throw( uno::RuntimeException )
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL CanvasCustomSprite::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames()  throw( uno::RuntimeException )
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
        
        return aRet;
    }
=====================================================================
Found a 25 line (122 tokens) duplication in the following files: 
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_textlayout.cxx
Starting at line 385 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/textlayout.cxx

                          OffsetTransformer( aMatrix ) );
    }


#define IMPLEMENTATION_NAME "VCLCanvas::TextLayout"
#define SERVICE_NAME "com.sun.star.rendering.TextLayout"

    ::rtl::OUString SAL_CALL TextLayout::getImplementationName() throw( uno::RuntimeException )
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL TextLayout::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL TextLayout::getSupportedServiceNames()  throw( uno::RuntimeException )
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );

        return aRet;
    }
}
=====================================================================
Found a 23 line (122 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvascustomsprite.cxx
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvascustomsprite.cxx

        CanvasCustomSpriteBaseT::disposing();
    }

#define IMPLEMENTATION_NAME "VCLCanvas.CanvasCustomSprite"
#define SERVICE_NAME "com.sun.star.rendering.CanvasCustomSprite"

    ::rtl::OUString SAL_CALL CanvasCustomSprite::getImplementationName() throw( uno::RuntimeException )
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL CanvasCustomSprite::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames()  throw( uno::RuntimeException )
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
        
        return aRet;
    }
=====================================================================
Found a 23 line (122 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvasbitmap.cxx
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvasbitmap.cxx

        CanvasBitmap_Base::disposing();
    }

#define IMPLEMENTATION_NAME "VCLCanvas.CanvasBitmap"
#define SERVICE_NAME "com.sun.star.rendering.CanvasBitmap"

    ::rtl::OUString SAL_CALL CanvasBitmap::getImplementationName(  ) throw (uno::RuntimeException)
    {
        return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
    }

    sal_Bool SAL_CALL CanvasBitmap::supportsService( const ::rtl::OUString& ServiceName ) throw (uno::RuntimeException)
    {
        return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME ) );
    }

    uno::Sequence< ::rtl::OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames(  ) throw (uno::RuntimeException)
    {
        uno::Sequence< ::rtl::OUString > aRet(1);
        aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
        
        return aRet;
    }
=====================================================================
Found a 25 line (122 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/test/java_uno/nativethreadpool/testnativethreadpoolserver.cxx

        "test.javauno.nativethreadpool.server");
}

css::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() {
    return css::uno::Sequence< rtl::OUString >();
}

cppu::ImplementationEntry entries[] = {
    { &create, &getImplementationName, &getSupportedServiceNames,
      &cppu::createSingleComponentFactory, 0, 0 } };

}

extern "C" void * SAL_CALL component_getFactory(
    char const * implName, void * serviceManager, void * registryKey)
{
    return cppu::component_getFactoryHelper(
        implName, serviceManager, registryKey, entries);
}

extern "C" void SAL_CALL component_getImplementationEnvironment(
    char const ** envTypeName, uno_Environment **)
{
    *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
=====================================================================
Found a 38 line (122 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/uno2cpp.cxx

using namespace com::sun::star::uno;

namespace
{
//==================================================================================================
// The call instruction within the asm section of callVirtualMethod may throw
// exceptions.  So that the compiler handles this correctly, it is important
// that (a) callVirtualMethod might call dummy_can_throw_anything (although this
// never happens at runtime), which in turn can throw exceptions, and (b)
// callVirtualMethod is not inlined at its call site (so that any exceptions are
// caught which are thrown from the instruction calling callVirtualMethod):

void callVirtualMethod( void * pAdjustedThisPtr,
                        sal_Int32 nVtableIndex,
                        void * pRegisterReturn,
                        typelib_TypeClass eReturnType,
                        sal_Int32 * pStackLongs,
                        sal_Int32 nStackLongs ) __attribute__((noinline));

void callVirtualMethod( void * pAdjustedThisPtr,
                        sal_Int32 nVtableIndex,
                        void * pRegisterReturn,
                        typelib_TypeClass eReturnType,
                        sal_Int32 * pStackLongs,
                        sal_Int32 nStackLongs )
{
	// parameter list is mixed list of * and values
	// reference parameters are pointers

	OSL_ENSURE( pStackLongs && pAdjustedThisPtr, "### null ptr!" );
	OSL_ENSURE( (sizeof(void *) == 4) &&
				 (sizeof(sal_Int32) == 4), "### unexpected size of int!" );
	OSL_ENSURE( nStackLongs && pStackLongs, "### no stack in callVirtualMethod !" );

    // never called
    if (! pAdjustedThisPtr) CPPU_CURRENT_NAMESPACE::dummy_can_throw_anything("xxx"); // address something

	volatile long o0 = 0, o1 = 0; // for register returns
=====================================================================
Found a 15 line (122 tokens) duplication in the following files: 
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/managelang.cxx
Starting at line 399 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/managelang.cxx

void SetDefaultLanguageDialog::CalcInfoSize()
{
	String sInfoStr = m_aInfoFT.GetText();
	long nInfoWidth = m_aInfoFT.GetSizePixel().Width();
	long nLongWord = getLongestWordWidth( sInfoStr, m_aInfoFT );
	long nTxtWidth = m_aInfoFT.GetCtrlTextWidth( sInfoStr ) + nLongWord;
	long nLines = ( nTxtWidth / nInfoWidth ) + 1;
	if ( nLines > INFO_LINES_COUNT )
	{
		Size aFTSize = m_aLanguageFT.GetSizePixel();
		Size aSize = m_aInfoFT.GetSizePixel();
		long nNewHeight = aFTSize.Height() * nLines;
		long nDelta = nNewHeight - aSize.Height();
		aSize.Height() = nNewHeight;
		m_aInfoFT.SetSizePixel( aSize );
=====================================================================
Found a 14 line (122 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/viewer/mediaevent_impl.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/viewer/mediaevent_impl.cxx

void SAL_CALL MediaEventListenersImpl::keyReleased( const ::com::sun::star::awt::KeyEvent& e )
    throw (::com::sun::star::uno::RuntimeException)
{
    const ::osl::MutexGuard aGuard( maMutex );
    const ::vos::OGuard aAppGuard( Application::GetSolarMutex() );

    if( mpNotifyWindow )
    {
        KeyCode aVCLKeyCode( e.KeyCode,
                            ( ( e.Modifiers & 1 ) ? KEY_SHIFT : 0 ) |
                            ( ( e.Modifiers & 2 ) ? KEY_MOD1 : 0 ) |
                            ( ( e.Modifiers & 4 ) ? KEY_MOD2 : 0 ) );
        KeyEvent aVCLKeyEvt( e.KeyChar, aVCLKeyCode );
        Application::PostKeyEvent( VCLEVENT_WINDOW_KEYUP, reinterpret_cast< ::Window* >( mpNotifyWindow ), &aVCLKeyEvt );
=====================================================================
Found a 20 line (121 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = m_wrap_mode_x(x_lr_ini);
                    int x_hr = x_hr_ini;
                    const value_type* row_ptr = (const value_type*)base_type::source_image().row(y_lr);
                    do
                    {
                        const value_type* fg_ptr = row_ptr + x_lr * 3;
                        int weight = (weight_y * weight_array[x_hr] + 
                                     image_filter_size / 2) >> 
                                     downscale_shift;
                        fg[0] += fg_ptr[0] * weight;
                        fg[1] += fg_ptr[1] * weight;
                        fg[2] += fg_ptr[2] * weight;
                        total_weight += weight;
                        x_hr   += rx_inv;
=====================================================================
Found a 20 line (121 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

            base_type(alloc, src, color_type(0,0,0,0), inter, filter_),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            color_type* span = base_type::allocator().span();
            interpolator_type& intr = base_type::interpolator();
            intr.begin(x + base_type::filter_dx_dbl(), 
                       y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 24 line (121 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/cpptypemaker.cxx
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/skeletonmaker/javatypemaker.cxx

            o << "false";
            return;
        case codemaker::UnoType::SORT_CHAR:
        case codemaker::UnoType::SORT_BYTE:
        case codemaker::UnoType::SORT_SHORT:
        case codemaker::UnoType::SORT_UNSIGNED_SHORT:
        case codemaker::UnoType::SORT_LONG:
        case codemaker::UnoType::SORT_UNSIGNED_LONG:
        case codemaker::UnoType::SORT_HYPER:
        case codemaker::UnoType::SORT_UNSIGNED_HYPER:
        case codemaker::UnoType::SORT_FLOAT:
        case codemaker::UnoType::SORT_DOUBLE:
            o << "0";
            return;
        case codemaker::UnoType::SORT_VOID:
        case codemaker::UnoType::SORT_STRING:
        case codemaker::UnoType::SORT_TYPE:
        case codemaker::UnoType::SORT_ANY:
        case codemaker::UnoType::SORT_COMPLEX:
            break;
        }
    }

    if ( defaultvalue ) {
=====================================================================
Found a 17 line (121 tokens) duplication in the following files: 
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLSeriesHelper.cxx
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLSeriesHelper.cxx

            , const uno::Reference< frame::XModel >& xChartModel )
{
    uno::Reference< beans::XPropertySet > xRet;

    if( xSeries.is() )
    {
        try
        {
            uno::Reference< lang::XMultiServiceFactory > xFactory( xChartModel, uno::UNO_QUERY );
            if( xFactory.is() )
            {
                xRet = uno::Reference< beans::XPropertySet >( xFactory->createInstance(
                    OUString::createFromAscii( "com.sun.star.comp.chart2.DataSeriesWrapper" ) ), uno::UNO_QUERY );
                Reference< lang::XInitialization > xInit( xRet, uno::UNO_QUERY );
                if(xInit.is())
                {
                    Sequence< uno::Any > aArguments(2);
=====================================================================
Found a 25 line (121 tokens) duplication in the following files: 
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/databases.cxx
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/treeview/tvread.cxx

			off = VENDORSHORT;
		else
			off = -1;
		
		if( off != -1 )
		{
			if( ! cap )
			{
				cap = true;
				aStrBuf.ensureCapacity( 256 );
			}
			
			aStrBuf.append( &oustring.getStr()[k],idx - k );
			aStrBuf.append( m_vReplacement[off] );
			k = idx + m_vAdd[off];
		}
	}
	
	if( cap )
	{
		if( k < oustring.getLength() )
			aStrBuf.append( &oustring.getStr()[k],oustring.getLength()-k );
		oustring = aStrBuf.makeStringAndClear();
	}
}
=====================================================================
Found a 25 line (121 tokens) duplication in the following files: 
Starting at line 915 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                ContentProvider* pProvider,
                const rtl::OUString& rContentId )
{
	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
        = new ::ucbhelper::PropertyValueSet( rSMgr );

	sal_Int32 nCount = rProperties.getLength();
	if ( nCount )
	{
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
		sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
		for ( sal_Int32 n = 0; n < nCount; ++n )
		{
            const beans::Property& rProp = pProps[ n ];

			// Process Core properties.

            if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
			{
                xRow->appendString ( rProp, rData.getContentType() );
=====================================================================
Found a 32 line (121 tokens) duplication in the following files: 
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static const ucb::CommandInfo aFolderCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                ),
=====================================================================
Found a 25 line (121 tokens) duplication in the following files: 
Starting at line 1066 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 915 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

            rProvider,
        const rtl::OUString& rContentId )
{
	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
        = new ::ucbhelper::PropertyValueSet( rSMgr );

	sal_Int32 nCount = rProperties.getLength();
	if ( nCount )
	{
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
		sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
		for ( sal_Int32 n = 0; n < nCount; ++n )
		{
            const beans::Property& rProp = pProps[ n ];

			// Process Core properties.

            if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
			{
				xRow->appendString ( rProp, rData.aContentType );
=====================================================================
Found a 32 line (121 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentcaps.cxx
Starting at line 402 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx

            static const ucb::CommandInfo aLinkCommandInfoTable[] =
            {
                ///////////////////////////////////////////////////////////
                // Required commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
                    -1,
                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast< uno::Sequence< beans::Property > * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString(
                        RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
                    -1,
                    getCppuType(
                        static_cast<
                            uno::Sequence< beans::PropertyValue > * >( 0 ) )
                )
=====================================================================
Found a 18 line (121 tokens) duplication in the following files: 
Starting at line 1150 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx
Starting at line 3276 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx

	if( pWrtShell->IsFrmSelected() )
	{
		SfxItemSet aSet( pWrtShell->GetAttrPool(), RES_URL, RES_URL );
		pWrtShell->GetFlyFrmAttr( aSet );
		const SwFmtURL& rURL = (SwFmtURL&)aSet.Get( RES_URL );
		if( rURL.GetMap() )
		{
			pImageMap = new ImageMap( *rURL.GetMap() );
			AddFormat( SOT_FORMATSTR_ID_SVIM );
		}
		else if( rURL.GetURL().Len() )
		{
			pTargetURL = new INetImage( sGrfNm, rURL.GetURL(),
										rURL.GetTargetFrameName(),
										aEmptyStr, Size() );
			AddFormat( SOT_FORMATSTR_ID_INET_IMAGE );
		}
	}
=====================================================================
Found a 11 line (121 tokens) duplication in the following files: 
Starting at line 1384 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/fly.cxx
Starting at line 3217 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/wsfrm.cxx

				SwFrm *pFrm = Lower();
				while ( pFrm )
                {   nRemaining += (pFrm->Frm().*fnRect->fnGetHeight)();
					if( pFrm->IsTxtFrm() && ((SwTxtFrm*)pFrm)->IsUndersized() )
					// Dieser TxtFrm waere gern ein bisschen groesser
						nRemaining += ((SwTxtFrm*)pFrm)->GetParHeight()
                                      - (pFrm->Prt().*fnRect->fnGetHeight)();
					else if( pFrm->IsSctFrm() && ((SwSectionFrm*)pFrm)->IsUndersized() )
						nRemaining += ((SwSectionFrm*)pFrm)->Undersize();
					pFrm = pFrm->GetNext();
				}
=====================================================================
Found a 18 line (121 tokens) duplication in the following files: 
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap3.cxx
Starting at line 659 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap3.cxx

void SAL_CALL Svx3DSphereObject::setPropertyValue( const OUString& aPropertyName, const uno::Any& aValue )
	throw( beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
	OGuard aGuard( Application::GetSolarMutex() );

	if(mpObj.is() && aPropertyName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_3D_TRANSFORM_MATRIX)))
	{
		// Transformationsmatrix in das Objekt packen
		HOMOGEN_MATRIX_TO_OBJECT
	}
	else if(mpObj.is() && aPropertyName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_3D_POS)))
	{
		// Position in das Objekt packen
		drawing::Position3D aUnoPos;
		if( aValue >>= aUnoPos )
		{
			basegfx::B3DPoint aPos(aUnoPos.PositionX, aUnoPos.PositionY, aUnoPos.PositionZ);
			((E3dSphereObj*)mpObj.get())->SetCenter(aPos);
=====================================================================
Found a 17 line (121 tokens) duplication in the following files: 
Starting at line 1918 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 5663 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

        0x53, 0x00, 0x70, 0x00, 0x69, 0x00, 0x6E, 0x00,
        0x42, 0x00, 0x75, 0x00, 0x74, 0x00, 0x74, 0x00,
        0x6F, 0x00, 0x6E, 0x00, 0x31, 0x00, 0x00, 0x00,
        0x00, 0x00
    };

    {
        SvStorageStreamRef xStor2( rObj->OpenSotStream( C2S("\3OCXNAME")));
        xStor2->Write(aOCXNAME,sizeof(aOCXNAME));
        DBG_ASSERT((xStor2.Is() && (SVSTREAM_OK == xStor2->GetError())),"damn");
    }

    SvStorageStreamRef xContents( rObj->OpenSotStream( C2S("contents")));
    return WriteContents(xContents, rPropSet, rSize);
}

sal_Bool OCX_SpinButton::WriteContents(
=====================================================================
Found a 30 line (121 tokens) duplication in the following files: 
Starting at line 382 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dbregister.cxx
Starting at line 690 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/optpath.cxx

IMPL_LINK( SvxPathTabPage, HeaderSelect_Impl, HeaderBar*, pBar )
{
	if ( pBar && pBar->GetCurItemId() != ITEMID_TYPE )
		return 0;

	HeaderBarItemBits nBits	= pHeaderBar->GetItemBits(ITEMID_TYPE);
	BOOL bUp = ( ( nBits & HIB_UPARROW ) == HIB_UPARROW );
	SvSortMode eMode = SortAscending;

	if ( bUp )
	{
		nBits &= ~HIB_UPARROW;
		nBits |= HIB_DOWNARROW;
		eMode = SortDescending;
	}
	else
	{
		nBits &= ~HIB_DOWNARROW;
		nBits |= HIB_UPARROW;
	}
	pHeaderBar->SetItemBits( ITEMID_TYPE, nBits );
	SvTreeList* pModel = pPathBox->GetModel();
	pModel->SetSortMode( eMode );
	pModel->Resort();
	return 1;
}

// -----------------------------------------------------------------------

IMPL_LINK( SvxPathTabPage, HeaderEndDrag_Impl, HeaderBar*, pBar )
=====================================================================
Found a 18 line (121 tokens) duplication in the following files: 
Starting at line 4775 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4356 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	0xa302, 0x6000, 0x8000,
	0x4000, 0x0001, 0x8000,
	0x4000, 0x0001, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartOrTextRect[] = 
{
	{ { 3100, 3100 }, { 18500, 18500 } }
};
static const mso_CustomShape msoFlowChartOr =
{
	(SvxMSDffVertPair*)mso_sptFlowChartOrVert, sizeof( mso_sptFlowChartOrVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartOrSegm, sizeof( mso_sptFlowChartOrSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartOrTextRect, sizeof( mso_sptFlowChartOrTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptEllipseGluePoints, sizeof( mso_sptEllipseGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 18 line (121 tokens) duplication in the following files: 
Starting at line 4744 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4326 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	0xa302, 0x6000, 0x8000,
	0x4000, 0x0001, 0x8000,
	0x4000, 0x0001, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartSummingJunctionTextRect[] = 
{
	{ { 3100, 3100 }, { 18500, 18500 } }
};
static const mso_CustomShape msoFlowChartSummingJunction =
{
	(SvxMSDffVertPair*)mso_sptFlowChartSummingJunctionVert, sizeof( mso_sptFlowChartSummingJunctionVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartSummingJunctionSegm, sizeof( mso_sptFlowChartSummingJunctionSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartSummingJunctionTextRect, sizeof( mso_sptFlowChartSummingJunctionTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptEllipseGluePoints, sizeof( mso_sptEllipseGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 22 line (121 tokens) duplication in the following files: 
Starting at line 2676 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2397 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0xe MSO_I, 0x16 MSO_I }, { 0xa MSO_I, 0x16 MSO_I }, { 0x18 MSO_I, 10800 }, { 0x1a MSO_I, 10800 },

	{ 0x18 MSO_I, 0xc MSO_I }, { 0x1a MSO_I, 0x1c MSO_I },

	{ 0x18 MSO_I, 0x16 MSO_I }, { 0x1a MSO_I, 0x1e MSO_I }
};
static const sal_uInt16 mso_sptActionButtonSoundSegm[] =
{
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,

	0x4000, 0x0005, 0x6001, 0x8000,
	0x4000, 0x0001, 0x8000,
	0x4000, 0x0001, 0x8000,
	0x4000, 0x0001, 0x8000
};
static const SvxMSDffCalculationData mso_sptActionButtonSoundCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 20 line (121 tokens) duplication in the following files: 
Starting at line 800 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptUpArrowVert[] =	// adjustment1: x 0 - 21600
{														// adjustment2: y 0 - 10800
	{ 0 MSO_I, 21600 },	{ 0 MSO_I, 1 MSO_I }, { 0, 1 MSO_I }, { 10800, 0 },
	{ 21600, 1 MSO_I }, { 2 MSO_I, 1 MSO_I }, { 2 MSO_I, 21600 }
};
static const sal_uInt16 mso_sptUpArrowSegm[] =
{
	0x4000, 0x0006, 0x6001,	0x8000
};
static const sal_Int32 mso_sptUpArrowDefault[] =
{
	2, 5400, 5400
};
static const SvxMSDffTextRectangles mso_sptUpArrowTextRect[] =
{
	{ { 0 MSO_I, 7 MSO_I }, { 2 MSO_I, 21600 } }
};
static const mso_CustomShape msoUpArrow =
=====================================================================
Found a 20 line (121 tokens) duplication in the following files: 
Starting at line 734 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 688 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptLeftArrowVert[] =	// adjustment1: x 0 - 21600
{														// adjustment2: y 0 - 10800
	{ 21600, 0 MSO_I }, { 1 MSO_I, 0 MSO_I }, { 1 MSO_I, 0 }, { 0, 10800 },
	{ 1 MSO_I, 21600 }, { 1 MSO_I, 2 MSO_I }, { 21600, 2 MSO_I }
};
static const sal_uInt16 mso_sptLeftArrowSegm[] =
{
	0x4000, 0x0006, 0x6001,	0x8000
};
static const sal_Int32 mso_sptLeftArrowDefault[] =
{
	2, 5400, 5400
};
static const SvxMSDffTextRectangles mso_sptLeftArrowTextRect[] =
{
	{ { 7 MSO_I, 0 MSO_I }, { 21600, 2 MSO_I } }
};
static const mso_CustomShape msoLeftArrow =
=====================================================================
Found a 23 line (121 tokens) duplication in the following files: 
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx

        Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY );
        URLToDispatchMap::iterator pIter = m_aListenerMap.begin();
        while ( pIter != m_aListenerMap.end() )
        {
            com::sun::star::util::URL aTargetURL;
            aTargetURL.Complete = pIter->first;
            if ( m_pImpl->m_xUrlTransformer.is() )
				m_pImpl->m_xUrlTransformer->parseStrict( aTargetURL );
            
            Reference< XDispatch > xDispatch( pIter->second );
            if ( xDispatch.is() )
            {
                // We already have a dispatch object => we have to requery.
                // Release old dispatch object and remove it as listener
                try
                {
                    xDispatch->removeStatusListener( xStatusListener, aTargetURL );
                }
                catch ( Exception& )
                {
                }
            }
            pIter->second.clear();
=====================================================================
Found a 11 line (121 tokens) duplication in the following files: 
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/sgfbram.cxx
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/sgfbram.cxx

	rInfo.Size    =SWAPLONG (rInfo.Size    );
	rInfo.Width   =SWAPLONG (rInfo.Width   );
	rInfo.Hight   =SWAPLONG (rInfo.Hight   );
	rInfo.Planes  =SWAPSHORT(rInfo.Planes  );
	rInfo.PixBits =SWAPSHORT(rInfo.PixBits );
	rInfo.Compress=SWAPLONG (rInfo.Compress);
	rInfo.ImgSize =SWAPLONG (rInfo.ImgSize );
	rInfo.xDpmm   =SWAPLONG (rInfo.xDpmm   );
	rInfo.yDpmm   =SWAPLONG (rInfo.yDpmm   );
	rInfo.ColUsed =SWAPLONG (rInfo.ColUsed );
	rInfo.ColMust =SWAPLONG (rInfo.ColMust );
=====================================================================
Found a 27 line (121 tokens) duplication in the following files: 
Starting at line 1714 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl1.cxx
Starting at line 1971 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

			long nBottom = GetBoundingRect(pEntry).Bottom();
			if( nBottom > nHeight )
				return FALSE;
			if( nBottom > nDeepest )
				nDeepest = nBottom;
		}
		aVerSBar.Hide();
		aOutputSize.Width() += nVerSBarWidth;
		aVirtOutputSize.Height() = nDeepest;
		aVerSBar.SetThumbPos( 0 );
		Range aRange;
		aRange.Max() = nDeepest - 1;
		aVerSBar.SetRange( aRange  );
		if( aHorSBar.IsVisible() )
		{
			Size aSize( aHorSBar.GetSizePixel());
			aSize.Width() += nVerSBarWidth;
			aHorSBar.SetSizePixel( aSize );
		}
		return TRUE;
	}
	return FALSE;
}


// blendet Scrollbars aus, wenn sie nicht mehr benoetigt werden
void SvImpIconView::CheckScrollBars()
=====================================================================
Found a 25 line (121 tokens) duplication in the following files: 
Starting at line 1676 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl1.cxx
Starting at line 1933 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

			long nRight = GetBoundingRect(pEntry).Right();
			if( nRight > nWidth )
				return FALSE;
			if( nRight > nMostRight )
				nMostRight = nRight;
		}
		aHorSBar.Hide();
		aOutputSize.Height() += nHorSBarHeight;
		aVirtOutputSize.Width() = nMostRight;
		aHorSBar.SetThumbPos( 0 );
		Range aRange;
		aRange.Max() = nMostRight - 1;
		aHorSBar.SetRange( aRange  );
		if( aVerSBar.IsVisible() )
		{
			Size aSize( aVerSBar.GetSizePixel());
			aSize.Height() += nHorSBarHeight;
			aVerSBar.SetSizePixel( aSize );
		}
		return TRUE;
	}
	return FALSE;
}

BOOL SvImpIconView::CheckVerScrollBar()
=====================================================================
Found a 22 line (121 tokens) duplication in the following files: 
Starting at line 736 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/testiadapter.cxx
Starting at line 610 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

							   TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
{
	bBool = _aData.Bool;
	cChar = _aData.Char;
	nByte = _aData.Byte;
	nShort = _aData.Short;
	nUShort = _aData.UShort;
	nLong = _aData.Long;
	nULong = _aData.ULong;
	nHyper = _aData.Hyper;
	nUHyper = _aData.UHyper;
	fFloat = _aData.Float;
	fDouble = _aData.Double;
	eEnum = _aData.Enum;
	rStr = _aData.String;
	xTest = _aData.Interface;
	rAny = _aData.Any;
	rSequence = _aData.Sequence;
	rStruct = _aStructData;
	return _aStructData;
}
=====================================================================
Found a 22 line (121 tokens) duplication in the following files: 
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/pastedlg.cxx
Starting at line 378 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/pastedlg.cxx

	SvPasteDlg*	pDlg = new SvPasteDlg( pParent );
	String aSourceName, aTypeName;
	ULONG nSelFormat = 0;
	SvGlobalName aEmptyNm;

	pDlg->ObjectLB().SetUpdateMode( FALSE );

	DataFlavorExVector::iterator aIter( ((DataFlavorExVector&)rFormats).begin() ),
								 aEnd( ((DataFlavorExVector&)rFormats).end() );
	while( aIter != aEnd )
	{
		::com::sun::star::datatransfer::DataFlavor aFlavor( *aIter );
		SotFormatStringId nFormat = (*aIter++).mnSotId;

		String*	pName = (String*) aSupplementTable.Get( nFormat );
		String aName;

		// if there is an "Embed Source" or and "Embedded Object" on the
		// Clipboard we read the Description and the Source of this object
		// from an accompanied "Object Descriptor" format on the clipboard
		// Remember: these formats mostly appear together on the clipboard
		if ( !pName )
=====================================================================
Found a 7 line (121 tokens) duplication in the following files: 
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/objuno.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/forms/gridcolumnproptranslator.cxx

            virtual ~OMergedPropertySetInfo();

            // XPropertySetInfo
            virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(  ) throw (::com::sun::star::uno::RuntimeException);
            virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName( const ::rtl::OUString& aName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
            virtual ::sal_Bool SAL_CALL hasPropertyByName( const ::rtl::OUString& Name ) throw (::com::sun::star::uno::RuntimeException);
        };
=====================================================================
Found a 24 line (121 tokens) duplication in the following files: 
Starting at line 1627 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docfile.cxx
Starting at line 1979 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docfile.cxx

                }
                catch ( ::com::sun::star::ucb::CommandAbortedException& )
                {
                    eError = ERRCODE_ABORT;
                }
                catch ( ::com::sun::star::ucb::CommandFailedException& )
                {
                    eError = ERRCODE_ABORT;
                }
                catch ( ::com::sun::star::ucb::InteractiveIOException& r )
                {
                    if ( r.Code == IOErrorCode_ACCESS_DENIED )
                        eError = ERRCODE_IO_ACCESSDENIED;
                    else if ( r.Code == IOErrorCode_NOT_EXISTING )
                        eError = ERRCODE_IO_NOTEXISTS;
                    else if ( r.Code == IOErrorCode_CANT_READ )
                        eError = ERRCODE_IO_CANTREAD;
                    else
                        eError = ERRCODE_IO_GENERAL;
                }
                catch ( ::com::sun::star::uno::Exception& )
                {
                    eError = ERRCODE_IO_GENERAL;
                }
=====================================================================
Found a 33 line (121 tokens) duplication in the following files: 
Starting at line 1148 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/dispatch.cxx
Starting at line 1195 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/dispatch.cxx

		nMode = pImp->nStandardMode;

/*
    // at the moment not implemented
    // via Bindings/Interceptor? (dann ist der Returnwert nicht exakt)
	sal_Bool bViaBindings = SFX_USE_BINDINGS == ( nMode & SFX_USE_BINDINGS );
	nMode &= ~sal_uInt16(SFX_USE_BINDINGS);
    if ( bViaBindings && GetBindings() )
        return GetBindings()->Execute( nSlot, rArgs, nMode )
				? EXECUTE_POSSIBLE
				: EXECUTE_NO;
*/
	// sonst via Dispatcher
	if ( IsLocked(nSlot) )
		return 0;
	SfxShell *pShell = 0;
	SfxCallMode eCall = SFX_CALLMODE_SYNCHRON;
	sal_uInt16 nRet = EXECUTE_NO;
	const SfxSlot *pSlot = 0;
	if ( GetShellAndSlot_Impl( nSlot, &pShell, &pSlot, sal_False, sal_False ) )
	{
		// Ausf"uhrbarkeit vorher testen
		if ( pSlot->IsMode( SFX_SLOT_FASTCALL ) ||
			pShell->CanExecuteSlot_Impl( *pSlot ) )
				nRet = EXECUTE_POSSIBLE;

		if ( nMode == EXECUTEMODE_ASYNCHRON )
			eCall = SFX_CALLMODE_ASYNCHRON;
		else if ( nMode == EXECUTEMODE_DIALOGASYNCHRON && pSlot->IsMode( SFX_SLOT_HASDIALOG ) )
			eCall = SFX_CALLMODE_ASYNCHRON;
		else if ( pSlot->GetMode() & SFX_SLOT_ASYNCHRON )
			eCall = SFX_CALLMODE_ASYNCHRON;
		sal_Bool bDone = sal_False;
=====================================================================
Found a 28 line (121 tokens) duplication in the following files: 
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/bastyp/minarray.cxx
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/bastyp/minarray.cxx
Starting at line 604 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/bastyp/minarray.cxx

USHORT WordArr::Remove( USHORT nPos, USHORT nLen )
{
	DBG_MEMTEST();
	// nLen adjustieren, damit nicht ueber das Ende hinaus geloescht wird
	nLen = Min( (USHORT)(nUsed-nPos), nLen );

	// einfache Aufgaben erfordern einfache Loesungen!
	if ( nLen == 0 )
		return 0;

	// bleibt vielleicht keiner uebrig
	if ( (nUsed-nLen) == 0 )
	{
		delete [] pData;
		pData = 0;
		nUsed = 0;
		nUnused = 0;
		return nLen;
	}

	// feststellen, ob das Array dadurch physikalisch schrumpft...
	if ( (nUnused+nLen) >= nGrow )
	{
		// auf die naechste Grow-Grenze aufgerundet verkleinern
		USHORT nNewUsed = nUsed-nLen;
		USHORT nNewSize = ((nNewUsed+nGrow-1)/nGrow) * nGrow;
		DBG_ASSERT( nNewUsed <= nNewSize && nNewUsed+nGrow > nNewSize,
					"shrink size computation failed" );
=====================================================================
Found a 33 line (121 tokens) duplication in the following files: 
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx

                               "ReadThroughComponent : parsing \"%s\"", aString.GetBuffer() );
#endif

	// finally, parser the stream
	try
	{
		xParser->parseStream( aParserInput );
	}
	catch( xml::sax::SAXParseException& r )
	{
		if( bEncrypted )
			return ERRCODE_SFX_WRONGPASSWORD;

#if OSL_DEBUG_LEVEL > 1
		ByteString aError( "SAX parse exception catched while importing:\n" );
		aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US );
		DBG_ERROR( aError.GetBuffer() );
#endif

		String sErr( String::CreateFromInt32( r.LineNumber ));
		sErr += ',';
		sErr += String::CreateFromInt32( r.ColumnNumber );

		if( rStreamName.Len() )
		{
			return *new TwoStringErrorInfo(
							(bMustBeSuccessfull ? ERR_FORMAT_FILE_ROWCOL
										   	 	: WARN_FORMAT_FILE_ROWCOL),
					    	rStreamName, sErr,
							ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR );
		}
		else
		{
=====================================================================
Found a 14 line (121 tokens) duplication in the following files: 
Starting at line 706 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 1019 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx

		Size aParentSize = GetParent()->GetOutputSizePixel();
		Size aSize( nSizeX, nHeight );

		if ( aSize.Height() > aParentSize.Height() )
			aSize.Height() = aParentSize.Height();
		if ( aPos.Y() + aSize.Height() > aParentSize.Height() )
			aPos.Y() = aParentSize.Height() - aSize.Height();

		pFilterBox->SetSizePixel( aSize );
		pFilterBox->Show();					// Show muss vor SetUpdateMode kommen !!!
		pFilterBox->SetUpdateMode(FALSE);

		pFilterFloat->SetOutputSizePixel( aSize );
		pFilterFloat->StartPopupMode( aCellRect, FLOATWIN_POPUPMODE_DOWN|FLOATWIN_POPUPMODE_GRABFOCUS);
=====================================================================
Found a 31 line (121 tokens) duplication in the following files: 
Starting at line 720 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fudraw.cxx
Starting at line 672 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fupoor.cxx

						mpView->MarkPoint(*pHdl);
					}
		
					if(0L == rHdlList.GetFocusHdl())
					{
						// restore point with focus
						SdrHdl* pNewOne = 0L;

						for(sal_uInt32 a(0); !pNewOne && a < rHdlList.GetHdlCount(); a++)
						{
							SdrHdl* pAct = rHdlList.GetHdl(a);
							
							if(pAct 
								&& pAct->GetKind() == HDL_POLY 
								&& pAct->GetPolyNum() == nPol
								&& pAct->GetPointNum() == nPnt)
							{
								pNewOne = pAct;
							}
						}

						if(pNewOne)
						{
							((SdrHdlList&)rHdlList).SetFocusHdl(pNewOne);
						}
					}

					bReturn = TRUE;
				}
			}
		}
=====================================================================
Found a 61 line (121 tokens) duplication in the following files: 
Starting at line 709 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx
Starting at line 1240 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx

		FT_Op,				//   30 Concatenation
		FT_FuncFix0,		//   31 Not applicable
		FT_FuncFix0,		//   32 Error
		FT_FuncFix1,		//   33 Betrag ABS()
		FT_FuncFix1,		//   34 Ganzzahl INT()
		FT_FuncFix1,		//   35 Quadratwurzel
		FT_FuncFix1,		//   36 Zehnerlogarithmus
		FT_FuncFix1,		//   37 Natuerlicher Logarithmus
		FT_FuncFix0,		//   38 PI
		FT_FuncFix1,		//   39 Sinus
		FT_FuncFix1,		//   40 Cosinus
		FT_FuncFix1,		//   41 Tangens
		FT_FuncFix2,		//   42 Arcus-Tangens 2 (4.Quadrant)
		FT_FuncFix1,		//   43 Arcus-Tangens (2.Quadrant)
		FT_FuncFix1,		//   44 Arcus-Sinus
		FT_FuncFix1,		//   45 Arcus-Cosinus
		FT_FuncFix1,		//   46 Exponentialfunktion
		FT_FuncFix2,		//   47 Modulo
		FT_FuncVar,			//   48 Auswahl
		FT_FuncFix1,		//   49 Is not applicable?
		FT_FuncFix1,		//   50 Is Error?
		FT_FuncFix0,		//   51 FALSE
		FT_FuncFix0,		//   52 TRUE
		FT_FuncFix0,		//   53 Zufallszahl
		FT_FuncFix3,		//   54 Datum
		FT_FuncFix0,		//   55 Heute
		FT_FuncFix3,		//   56 Payment
		FT_FuncFix3,		//   57 Present Value
		FT_FuncFix3,		//   58 Future Value
		FT_FuncFix3,		//   59 If ... then ... else ...
		FT_FuncFix1,		//   60 Tag des Monats
		FT_FuncFix1,		//   61 Monat
		FT_FuncFix1,		//   62 Jahr
		FT_FuncFix2,		//   63 Runden
		FT_FuncFix3,		//   64 Zeit
		FT_FuncFix1,		//   65 Stunde
		FT_FuncFix1,		//   66 Minute
		FT_FuncFix1,		//   67 Sekunde
		FT_FuncFix1,		//   68 Ist Zahl?
		FT_FuncFix1,		//   69 Ist Text?
		FT_FuncFix1,		//   70 Len()
		FT_FuncFix1,		//   71 Val()
		FT_FuncFix2,		//   72 String()
		FT_FuncFix3,		//   73 Mid()
		FT_FuncFix1,		//   74 Char()
		FT_FuncFix1,		//   75 Ascii()
		FT_FuncFix3,		//   76 Find()
		FT_FuncFix1,		//   77 Datevalue
		FT_FuncFix1,		//   78 Timevalue
		FT_FuncFix1,		//   79 Cellpointer
		FT_FuncVar,			//   80 Sum()
		FT_FuncVar,			//   81 Avg()
		FT_FuncVar,			//   82 Cnt()
		FT_FuncVar,			//   83 Min()
		FT_FuncVar,			//   84 Max()
		FT_FuncFix3,		//   85 Vlookup()
		FT_FuncFix2,		//   86 Npv()
		FT_FuncVar,			//   87 Var()
		FT_FuncVar,			//   88 Std()
		FT_FuncFix2,		//   89 Irr()
		FT_FuncFix3,		//   90 Hlookup()
=====================================================================
Found a 12 line (121 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/xechart.cxx
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/xichart.cxx

using ::com::sun::star::chart2::XRegressionCurveContainer;
using ::com::sun::star::chart2::XAxis;
using ::com::sun::star::chart2::XScaling;
using ::com::sun::star::chart2::ScaleData;
using ::com::sun::star::chart2::IncrementData;
using ::com::sun::star::chart2::SubIncrement;
using ::com::sun::star::chart2::XLegend;
using ::com::sun::star::chart2::XTitled;
using ::com::sun::star::chart2::XTitle;
using ::com::sun::star::chart2::XFormattedString;

using ::com::sun::star::chart2::data::XDataProvider;
=====================================================================
Found a 23 line (121 tokens) duplication in the following files: 
Starting at line 1104 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/cell2.cxx
Starting at line 1187 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/cell2.cxx

    EndListeningTo( pDocument );

    BOOL bRefChanged = FALSE;
    ScToken* t;
    ScRangeData* pShared = NULL;

    pCode->Reset();
    for( t = pCode->GetNextReferenceOrName(); t; t = pCode->GetNextReferenceOrName() )
    {
        if( t->GetOpCode() == ocName )
        {
            ScRangeData* pName = pDocument->GetRangeName()->FindIndex( t->GetIndex() );
            if (pName)
            {
                if (pName->IsModified())
                    bRefChanged = TRUE;
                if (pName->HasType(RT_SHAREDMOD))
                    pShared = pName;
            }
        }
        else if( t->GetType() != svIndex )
        {
            t->CalcAbsIfRel( aPos );
=====================================================================
Found a 19 line (121 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/backtrace.c
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/diagnose.c

static void osl_diagnose_backtrace_Impl (oslDebugMessageFunc f)
{
	jmp_buf        ctx;
	long           fpval;
	struct frame * fp;
	int            i;

#if defined(SPARC)
	asm("ta 3");
#endif /* SPARC */
	setjmp (ctx);

	fpval = ((long*)(ctx))[FRAME_PTR_OFFSET];
	fp = (struct frame*)((char*)(fpval) + STACK_BIAS);

	for (i = 0; (i < FRAME_OFFSET) && (fp != 0); i++)
		fp = (struct frame*)((char*)(fp->fr_savfp) + STACK_BIAS);

	for (i = 0; (fp != 0) && (fp->fr_savpc != 0); i++)
=====================================================================
Found a 33 line (121 tokens) duplication in the following files: 
Starting at line 785 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/keyimpl.cxx
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/keyimpl.cxx
Starting at line 988 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/keyimpl.cxx

    if (valueType != RG_VALUETYPE_UNICODELIST)
    {
        pValueList = NULL;
        *pLen = 0;
        rtl_freeMemory(pBuffer);
        return REG_INVALID_VALUE;
    }

    readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);

    rtl_freeMemory(pBuffer);

    pBuffer = (sal_uInt8*)rtl_allocateMemory(valueSize);

    if ( rValue.readAt(VALUE_HEADEROFFSET, pBuffer, valueSize, readBytes) )
    {
        pValueList = NULL;
        *pLen = 0;
        rtl_freeMemory(pBuffer);
        return REG_INVALID_VALUE;
    }
    if (readBytes != valueSize)
    {
        pValueList = NULL;
        *pLen = 0;
        rtl_freeMemory(pBuffer);
        return REG_INVALID_VALUE;
    }

    sal_uInt32 len = 0;
    readUINT32(pBuffer, len);

    *pLen = len;
=====================================================================
Found a 7 line (121 tokens) duplication in the following files: 
Starting at line 1429 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

     41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0,  0,  0,  0,  0, // 112-127
//    p   q   r   s   t   u   v   w   x   y   z

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
=====================================================================
Found a 6 line (121 tokens) duplication in the following files: 
Starting at line 1354 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1371 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,// 24e0 - 24ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24f0 - 24ff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2500 - 250f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2510 - 251f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2520 - 252f
=====================================================================
Found a 6 line (121 tokens) duplication in the following files: 
Starting at line 1161 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,                            // /
=====================================================================
Found a 4 line (121 tokens) duplication in the following files: 
Starting at line 1110 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1119 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b00 - 0b0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b10 - 0b1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b20 - 0b2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,17,// 0b30 - 0b3f
=====================================================================
Found a 5 line (121 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1109 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a70 - 0a7f
     0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a80 - 0a8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a90 - 0a9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0aa0 - 0aaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 0ab0 - 0abf
=====================================================================
Found a 7 line (121 tokens) duplication in the following files: 
Starting at line 651 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

     41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,  0,  0,  0,  0,  0, // 112-127
//    p   q   r   s   t   u   v   w   x   y   z

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
=====================================================================
Found a 4 line (121 tokens) duplication in the following files: 
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1840 - 184f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1850 - 185f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1860 - 186f
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
=====================================================================
Found a 4 line (121 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 8, 8, 0, 5, 5, 5, 5, 5, 5, 5, 5, 0, 5, 5,// 0c80 - 0c8f
     5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0c90 - 0c9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 5, 5, 5, 5, 5, 5,// 0ca0 - 0caf
     5, 5, 5, 5, 0, 5, 5, 5, 5, 5, 0, 0, 0, 0, 8, 6,// 0cb0 - 0cbf
=====================================================================
Found a 25 line (121 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 722 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

	b[j] -= b[icol]*save;
      }
    }
  }

  for (j = n-1; j >= 0; j--)
  {
    if ( indxr[j] != indxc[j] )
    {
      for (k = 0; k < n; k++)
      {
	save = a[k][indxr[j]];
	a[k][indxr[j]] = a[k][indxc[j]];
	a[k][indxc[j]] = save;
      }
    }
  }

  delete[] ipiv;
  delete[] indxr;
  delete[] indxc;
  return 1;
}
//---------------------------------------------------------------------------
int mgcLinearSystemD::SolveTri (int n, double* a, double* b, double* c,
=====================================================================
Found a 4 line (121 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 668 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e40 - 2e4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e50 - 2e5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e60 - 2e6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e70 - 2e7f
=====================================================================
Found a 5 line (121 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp
Starting at line 1362 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2450 - 245f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 2460 - 246f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 2470 - 247f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,// 2480 - 248f
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
=====================================================================
Found a 17 line (121 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesconfiguration.cxx
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/statusbarconfiguration.cxx

SV_IMPL_PTRARR( StatusBarDescriptor, StatusBarItemDescriptorPtr);

static Reference< XParser > GetSaxParser(
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XParser >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	return Reference< XDocumentHandler >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

sal_Bool StatusBarConfiguration::LoadStatusBar( 
=====================================================================
Found a 6 line (121 tokens) duplication in the following files: 
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/uicommanddescription.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdiclist.cxx

    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw (::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw (::com::sun::star::uno::RuntimeException);

    // XNameReplace
    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 30 line (121 tokens) duplication in the following files: 
Starting at line 784 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/windowstateconfiguration.cxx
Starting at line 978 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/windowstateconfiguration.cxx

                            nMask |= WINDOWSTATE_MASK_DOCKINGAREA;
                        }
                    }
                }
                break;

                case PROPERTY_POS:
                case PROPERTY_DOCKPOS:
                {
                    OUString aString;
                    if ( a >>= aString )
                    {
                        sal_Int32 nToken( 0 );
                        OUString aXStr = aString.getToken( 0, ',', nToken );
                        if ( nToken > 0 )
                        {
                            com::sun::star::awt::Point aPos;
                            aPos.X = aXStr.toInt32();
                            aPos.Y = aString.getToken( 0, ',', nToken ).toInt32();
                            
                            if ( i == PROPERTY_POS )
                            {
                                aWindowStateInfo.aPos = aPos;
                                nMask |= WINDOWSTATE_MASK_POS;
                            }
                            else
                            {
                                aWindowStateInfo.aDockPos = aPos;
                                nMask |= WINDOWSTATE_MASK_DOCKPOS;
                            }
=====================================================================
Found a 6 line (121 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uicategorydescription.cxx
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdiclist.cxx

    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw (::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw (::com::sun::star::uno::RuntimeException);

    // XNameReplace
    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 26 line (121 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesconfiguration.cxx
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/statusbarconfiguration.cxx
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxconfiguration.cxx

SV_IMPL_PTRARR( ToolBoxLayoutDescriptor, ToolBoxLayoutItemDescriptorPtr);

static Reference< XParser > GetSaxParser(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	// #110897#
	// Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	return Reference< XParser >( xServiceFactory->createInstance(
		::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	// #110897#
	// Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	return Reference< XDocumentHandler >( xServiceFactory->createInstance(
		::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

// #110897#
sal_Bool ToolBoxConfiguration::LoadToolBox( 
=====================================================================
Found a 11 line (121 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Currency.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormattedField.cxx

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
=====================================================================
Found a 4 line (121 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 651 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c40 - 2c4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c50 - 2c5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c60 - 2c6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c70 - 2c7f
=====================================================================
Found a 22 line (121 tokens) duplication in the following files: 
Starting at line 236 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

			if( i == 1 || m_bLink && i != 5 )
				continue;
			
			cppu::OInterfaceContainerHelper* pICH = 
				m_pStatCL->getContainer(m_aInterceptedURL[i]);
			uno::Sequence<uno::Reference<uno::XInterface> > aSeq;
			if(pICH)
				aSeq = pICH->getElements();
			if(!aSeq.getLength())
				continue;
			
			frame::FeatureStateEvent aStateEvent;
			aStateEvent.IsEnabled = sal_True;
			aStateEvent.Requery = sal_False;			
			if(i == 0)
			{
				
				aStateEvent.FeatureURL.Complete = m_aInterceptedURL[0];
				aStateEvent.FeatureDescriptor = rtl::OUString(
					RTL_CONSTASCII_USTRINGPARAM("Update"));
				aStateEvent.State <<= (rtl::OUString(
					RTL_CONSTASCII_USTRINGPARAM("($1) ")) + 
=====================================================================
Found a 17 line (121 tokens) duplication in the following files: 
Starting at line 410 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx

void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::XStorage >& xStorage,
							const ::rtl::OUString& sEntName,
							const uno::Sequence< beans::PropertyValue >& /* lArguments */,
							const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ )
		throw ( lang::IllegalArgumentException,
				embed::WrongStateException,
				io::IOException,
				uno::Exception,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	CheckInit();

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
=====================================================================
Found a 14 line (121 tokens) duplication in the following files: 
Starting at line 297 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/querydesign/querycontroller.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/tabledesign/TableController.cxx

}


using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::ui;
=====================================================================
Found a 22 line (121 tokens) duplication in the following files: 
Starting at line 364 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_di.cxx
Starting at line 610 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

							   TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
{
	bBool = _aData.Bool;
	cChar = _aData.Char;
	nByte = _aData.Byte;
	nShort = _aData.Short;
	nUShort = _aData.UShort;
	nLong = _aData.Long;
	nULong = _aData.ULong;
	nHyper = _aData.Hyper;
	nUHyper = _aData.UHyper;
	fFloat = _aData.Float;
	fDouble = _aData.Double;
	eEnum = _aData.Enum;
	rStr = _aData.String;
	xTest = _aData.Interface;
	rAny = _aData.Any;
	rSequence = _aData.Sequence;
	rStruct = _aStructData;
	return _aStructData;
}
=====================================================================
Found a 31 line (121 tokens) duplication in the following files: 
Starting at line 2220 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/implrenderer.cxx
Starting at line 2400 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/implrenderer.cxx

                                                        pAct->GetColor() ));

                        // crop bitmap to given source rectangle (no
                        // need to copy and convert the whole bitmap)
                        const Rectangle aCropRect( pAct->GetSrcPoint(),
                                                   pAct->GetSrcSize() );
                        aBmp.Crop( aCropRect );

                        ActionSharedPtr pBmpAction(
                            internal::BitmapActionFactory::createBitmapAction(
                                aBmp,
                                getState( rStates ).mapModeTransform * 
                                ::vcl::unotools::b2DPointFromPoint( pAct->GetDestPoint() ),
                                getState( rStates ).mapModeTransform * 
                                ::vcl::unotools::b2DSizeFromSize( pAct->GetDestSize() ),
                                rCanvas,
                                getState( rStates ) ) );

                        if( pBmpAction )
                        {
                            maActions.push_back(
                                MtfAction(
                                    pBmpAction,
                                    io_rCurrActionIndex ) );
                            
                            io_rCurrActionIndex += pBmpAction->getActionCount()-1;
                        }
                    }
                    break;

                    case META_GRADIENTEX_ACTION:
=====================================================================
Found a 25 line (121 tokens) duplication in the following files: 
Starting at line 784 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CTable.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DNoException.cxx

				--m_nFilePos;
			break;
		case IResultSetHelper::FIRST:
			m_nFilePos = 1;
			break;
		case IResultSetHelper::LAST:
			m_nFilePos = nNumberOfRecords;
			break;
		case IResultSetHelper::RELATIVE:
			m_nFilePos = (((sal_Int32)m_nFilePos) + nOffset < 0) ? 0L
							: (sal_uInt32)(((sal_Int32)m_nFilePos) + nOffset);
			break;
		case IResultSetHelper::ABSOLUTE:
		case IResultSetHelper::BOOKMARK:
			m_nFilePos = (sal_uInt32)nOffset;
			break;
	}

	if (m_nFilePos > (sal_Int32)nNumberOfRecords)
		m_nFilePos = (sal_Int32)nNumberOfRecords + 1;

	if (m_nFilePos == 0 || m_nFilePos == (sal_Int32)nNumberOfRecords + 1)
		goto Error;
	else
	{
=====================================================================
Found a 11 line (121 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/NamedPropertyValuesContainer.cxx
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/windowstateconfiguration.cxx

        virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) 
            throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
        
        virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() 
            throw (::com::sun::star::uno::RuntimeException);
        
        virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) 
            throw (::com::sun::star::uno::RuntimeException);

        // XNameContainer
        virtual void SAL_CALL removeByName( const ::rtl::OUString& sName )
=====================================================================
Found a 22 line (121 tokens) duplication in the following files: 
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppumaker.cxx
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunomaker.cxx

			sal_Bool ret = sal_False;
            sal_Int32 nIndex = 0;
            do
			{
				typeName = tOption.getToken(0, ';', nIndex);

                sal_Int32 nPos = typeName.lastIndexOf( '.' );
                tmpName = typeName.copy( nPos != -1 ? nPos+1 : 0 );
				if (tmpName == "*")
				{
					// produce this type and his scope, but the scope is not recursively  generated.
					if (typeName.equals("*"))
					{
						tmpName = "/";
					} else
					{
						tmpName = typeName.copy(0, typeName.lastIndexOf('.')).replace('.', '/');
						if (tmpName.getLength() == 0) 
							tmpName = "/";
						else
							tmpName.replace('.', '/');
					}
=====================================================================
Found a 23 line (121 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/codemaker/global.cxx
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdbmaker.cxx

	OStringBuffer nameBuffer( path.getLength() );
	
	sal_Int32 nIndex = 0;
    do
	{
		nameBuffer.append(fileName.getToken( 0, token, nIndex ).getStr());
		if ( nIndex == -1 ) break;

		if (nameBuffer.getLength() == 0 || OString(".") == nameBuffer.getStr())
		{
			nameBuffer.append(token);
			continue;
		}

#ifdef SAL_UNX
	    if (mkdir((char*)nameBuffer.getStr(), 0777) == -1)
#else
	   	if (mkdir((char*)nameBuffer.getStr()) == -1)
#endif
		{
			if ( errno == ENOENT )
				return OString();
		} else
=====================================================================
Found a 22 line (121 tokens) duplication in the following files: 
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbamaker.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppumaker.cxx

			OString typeName, tmpName;
            sal_Int32 nIndex = 0;
            do
			{
				typeName = tOption.getToken(0, ';', nIndex);

                sal_Int32 nPos = typeName.lastIndexOf( '.' );
                tmpName = typeName.copy( nPos != -1 ? nPos+1 : 0 );
				if (tmpName == "*")
				{
					// produce this type and his scope
					if (typeName.equals("*"))
					{
						tmpName = "/";
					} else
					{
						tmpName = typeName.copy(0, typeName.lastIndexOf('.')).replace('.', '/');
						if (tmpName.getLength() == 0) 
							tmpName = "/";
						else
							tmpName.replace('.', '/');
					}
=====================================================================
Found a 19 line (121 tokens) duplication in the following files: 
Starting at line 390 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/jni_uno/jni_data.cxx
Starting at line 415 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/jni_uno/jni_data.cxx
Starting at line 716 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/jni_uno/jni_data.cxx
Starting at line 1013 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/jni_uno/jni_data.cxx

	case typelib_TypeClass_SEQUENCE:
    {
        JLocalAutoRef jo_out_holder( jni );
        if (out_param)
        {
            jo_out_holder.reset(
                jni->GetObjectArrayElement( (jobjectArray) java_data.l, 0 ) );
            jni.ensure_no_exception();
            java_data.l = jo_out_holder.get();
        }
        if (0 == java_data.l)
        {
            OUStringBuffer buf( 128 );
            buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("[map_to_uno():") );
            buf.append( OUString::unacquired( &type->pTypeName ) );
            buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("] null-ref given!") );
            buf.append( jni.get_stack_trace() );
            throw BridgeRuntimeError( buf.makeStringAndClear() );
        }
=====================================================================
Found a 23 line (121 tokens) duplication in the following files: 
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx

		pThis = gpreg[0];
        }
    
        pThis = static_cast< char * >(pThis) - nVtableOffset;
        bridges::cpp_uno::shared::CppInterfaceProxy * pCppI
		  = bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(
			pThis);

	typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
	
	OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" );
	if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("illegal vtable index!"),
            (XInterface *)pThis );
	}
	
	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
=====================================================================
Found a 6 line (121 tokens) duplication in the following files: 
Starting at line 352 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx
Starting at line 364 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/parser_i/idoc/cx_dsapi.cxx

	const INT16 A_nAtTagDefStatus[C_nStatusSize] =
	// 	0	1	2	3	4	5	6	7	8	9  10  11  12  13  14  15
	{faw,err,err,err,err,err,err,err,err,faw,faw,faw,faw,faw,err,err,
	 err,err,err,err,err,err,err,err,err,err,faw,err,err,err,err,err, // ... 31
	 faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd,awd,awd,
	 awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,faw,awd,awd,awd, // ... 63
=====================================================================
Found a 25 line (120 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/ure/source/uretest/cppmain.cc
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/ure/source/uretest/cppserver.cc

      CppServer::getSupportedServiceNames, ::cppu::createSingleComponentFactory,
      0, 0 },
    { 0, 0, 0, 0, 0, 0 } };

}

extern "C" ::sal_Bool SAL_CALL component_writeInfo(
    void * serviceManager, void * registryKey)
{
    return ::cppu::component_writeInfoHelper(
        serviceManager, registryKey, entries);
}

extern "C" void * SAL_CALL component_getFactory(
    char const * implName, void * serviceManager, void * registryKey)
{
    return ::cppu::component_getFactoryHelper(
        implName, serviceManager, registryKey, entries);
}

extern "C" void SAL_CALL component_getImplementationEnvironment(
    char const ** envTypeName, ::uno_Environment **)
{
    *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
=====================================================================
Found a 26 line (120 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

                           OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-position") ) );
    readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
                  OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );

    sal_Int16 nState = 0;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ) ) >>= nState)
    {
        switch (nState)
        {
        case 0:
            addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checked") ),
                          OUString( RTL_CONSTASCII_USTRINGPARAM("false") ) );
            break;
        case 1:
            addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checked") ),
                          OUString( RTL_CONSTASCII_USTRINGPARAM("true") ) );
            break;
        default:
            OSL_ENSURE( 0, "### unexpected radio state!" );
            break;
        }
    }
    readEvents();
}
//__________________________________________________________________________________________________
void ElementDescriptor::readGroupBoxModel( StyleBag * all_styles )
=====================================================================
Found a 27 line (120 tokens) duplication in the following files: 
Starting at line 900 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/app/salinst.cxx
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/app/salinst.cxx

LRESULT CALLBACK SalComWndProcW( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam )
{
	int bDef = TRUE;
	LRESULT nRet = 0;
#ifdef __MINGW32__
	jmp_buf jmpbuf;
	__SEHandler han;
	if (__builtin_setjmp(jmpbuf) == 0)
	{
		han.Set(jmpbuf, NULL, (__SEHandler::PF)EXCEPTION_EXECUTE_HANDLER);
#else
	__try
	{
#endif
		nRet = SalComWndProc( hWnd, nMsg, wParam, lParam, bDef );
	}
#ifdef __MINGW32__
	han.Reset();
#else
    __except(WinSalInstance::WorkaroundExceptionHandlingInUSER32Lib(GetExceptionCode(), GetExceptionInformation()))
	{
	}
#endif
	if ( bDef )
	{
		if ( !ImplHandleGlobalMsg( hWnd, nMsg, wParam, lParam, nRet ) )
			nRet = DefWindowProcW( hWnd, nMsg, wParam, lParam );
=====================================================================
Found a 37 line (120 tokens) duplication in the following files: 
Starting at line 361 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_datasupplier.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

	rtl::Reference< ::ucbhelper::ResultSet > xResultSet = getResultSet().get();
	if ( xResultSet.is() )
	{
		// Callbacks follow!
		aGuard.clear();

		if ( nOldCount < m_pImpl->m_aResults.size() )
			xResultSet->rowCountChanged(
									nOldCount, m_pImpl->m_aResults.size() );

		if ( m_pImpl->m_bCountFinal )
			xResultSet->rowCountFinal();
	}

	return bFound;
}

//=========================================================================
// virtual
sal_uInt32 DataSupplier::totalCount()
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( m_pImpl->m_bCountFinal )
		return m_pImpl->m_aResults.size();

	sal_uInt32 nOldCount = m_pImpl->m_aResults.size();

	// @@@ Obtain data and put it into result list...
/*
	while ( m_pImpl->m_aFolder.next( m_pImpl->m_aIterator ) )
		m_pImpl->m_aResults.push_back(
						new ResultListEntry( *m_pImpl->m_aIterator ) );
*/
	m_pImpl->m_bCountFinal = sal_True;

	rtl::Reference< ::ucbhelper::ResultSet > xResultSet = getResultSet().get();
=====================================================================
Found a 25 line (120 tokens) duplication in the following files: 
Starting at line 713 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                ContentProvider* pProvider,
                const rtl::OUString& rContentId )
{
	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
        = new ::ucbhelper::PropertyValueSet( rSMgr );

	sal_Int32 nCount = rProperties.getLength();
	if ( nCount )
	{
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
		sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
		for ( sal_Int32 n = 0; n < nCount; ++n )
		{
            const beans::Property& rProp = pProps[ n ];

			// Process Core properties.

            if ( rProp.Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
			{
                xRow->appendString ( rProp, rData.getContentType() );
=====================================================================
Found a 38 line (120 tokens) duplication in the following files: 
Starting at line 1981 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 2176 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

        }
    }

    //////////////////////////////////////////////////////////////////////
    // 5) Destroy source ( when moving only ) .
    //////////////////////////////////////////////////////////////////////

    if ( rInfo.MoveData )
    {
        xSource->destroy( sal_True, xEnv );

        // Remove all persistent data of source and its children.
        if ( !xSource->removeData() )
        {
            uno::Any aProps
                = uno::makeAny(
                         beans::PropertyValue(
                             rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                               "Uri")),
                             -1,
                             uno::makeAny(
                                 xSource->m_xIdentifier->
                                              getContentIdentifier()),
                             beans::PropertyState_DIRECT_VALUE));
            ucbhelper::cancelCommandExecution(
                ucb::IOErrorCode_CANT_WRITE,
                uno::Sequence< uno::Any >(&aProps, 1),
                xEnv,
                rtl::OUString::createFromAscii(
                    "Cannot remove persistent data of source object!" ),
                this );
            // Unreachable
        }

        // Remove own and all children's Additional Core Properties.
        xSource->removeAdditionalPropertySet( sal_True );
    }
}
=====================================================================
Found a 25 line (120 tokens) duplication in the following files: 
Starting at line 1066 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 713 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx

            const rtl::Reference< ::ucbhelper::ContentProviderImplHelper >& rProvider,
            const rtl::OUString& rContentId )
{
	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
                                = new ::ucbhelper::PropertyValueSet( rSMgr );

	sal_Int32 nCount = rProperties.getLength();
	if ( nCount )
	{
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
		sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
		for ( sal_Int32 n = 0; n < nCount; ++n )
		{
            const beans::Property& rProp = pProps[ n ];

			// Process Core properties.

            if ( rProp.Name.equalsAsciiL(
					RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
            {
				xRow->appendString ( rProp, rData->m_sContentType );
=====================================================================
Found a 36 line (120 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/sstring.cxx
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/sstring.cxx

	UniString* pString;

	do
	{
		if ( (nCurrent == nLower) || (nCurrent == nUpper) )
			return nLower;
		pString = GetObject( nCurrent );
		StringCompare nResult =  pStr->CompareTo( *pString );
		if ( nResult == COMPARE_LESS )
		{
			nUpper = nCurrent;
			nCurrent = (nCurrent + nLower) /2;
		}
		else if ( nResult == COMPARE_GREATER )
		{
			nLower = nCurrent;
			nCurrent = (nUpper + nCurrent) /2;
		}
		else if ( nResult == COMPARE_EQUAL )
			return nCurrent;
		if ( nRem == nCurrent )
			return nCurrent;
		nRem = nCurrent;
	}
	while ( !bFound );
	return nRet;
}

/**************************************************************************
*
*	Sortiert einen UniString in die Liste ein und gibt die Position,
*	an der einsortiert wurde, zurueck
*
**************************************************************************/

ULONG SUniStringList::PutString( UniString* pStr )
=====================================================================
Found a 11 line (120 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx
Starting at line 559 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cppobj.cxx

void Test_Impl::setValues( sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
						   sal_Int16 nShort, sal_uInt16 nUShort,
						   sal_Int32 nLong, sal_uInt32 nULong,
						   sal_Int64 nHyper, sal_uInt64 nUHyper,
						   float fFloat, double fDouble,
						   TestEnum eEnum, const ::rtl::OUString& rStr,
						   const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xTest,
						   const ::com::sun::star::uno::Any& rAny,
						   const ::com::sun::star::uno::Sequence<TestElement >& rSequence,
						   const TestData& rStruct )
	throw(com::sun::star::uno::RuntimeException)
=====================================================================
Found a 12 line (120 tokens) duplication in the following files: 
Starting at line 627 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/modcfg.cxx
Starting at line 779 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/modcfg.cxx

		InsCaptionOpt* pOLEDrawOpt = 0;
		if(pCapOptions)
		{
			pWriterTableOpt = pCapOptions->Find(TABLE_CAP, 0);
			pWriterFrameOpt = pCapOptions->Find(FRAME_CAP, 0);
			pWriterGraphicOpt = pCapOptions->Find(GRAPHIC_CAP, 0);
			pOLECalcOpt = pCapOptions->Find(OLE_CAP, &aGlobalNames[GLOB_NAME_CALC]);
			pOLEImpressOpt = pCapOptions->Find(OLE_CAP, &aGlobalNames[GLOB_NAME_IMPRESS]);
			pOLEDrawOpt = pCapOptions->Find(OLE_CAP, &aGlobalNames[GLOB_NAME_DRAW   ]);
			pOLEFormulaOpt = pCapOptions->Find(OLE_CAP, &aGlobalNames[GLOB_NAME_MATH   ]);
			pOLEChartOpt = pCapOptions->Find(OLE_CAP, &aGlobalNames[GLOB_NAME_CHART  ]);
		}
=====================================================================
Found a 24 line (120 tokens) duplication in the following files: 
Starting at line 1329 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/wrtrtf.cxx
Starting at line 1358 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/wrtrtf.cxx

		pEndPos->nContent.GetIndex() == nCntntPos)
	{
		// zur Zeit umspannt das SwBookmark keinen Bereich also kann
		// es hier vollstaendig ausgegeben werden.

		// erst die SWG spezifischen Daten:
		if (
             pBookmark->GetShortName().Len() ||
			 pBookmark->GetKeyCode().GetCode()
           )
		{
			OutComment( *this, sRTF_BKMKKEY );
			OutULong( ( pBookmark->GetKeyCode().GetCode() |
					 pBookmark->GetKeyCode().GetModifier() ));
			if( !pBookmark->GetShortName().Len() )
				Strm() << "  " ;
			else
			{
				Strm() << ' ';
				OutRTF_AsByteString( *this, pBookmark->GetShortName(), eDefaultEncoding );
			}
			Strm() << '}';
		}
		OutComment( *this, sRTF_BKMKEND ) << ' ';
=====================================================================
Found a 20 line (120 tokens) duplication in the following files: 
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl1.cxx
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl1.cxx

void SwDoc::SetRowBackground( const SwCursor& rCursor, const SvxBrushItem &rNew )
{
	SwTableNode* pTblNd = rCursor.GetPoint()->nNode.GetNode().FindTableNode();
	if( pTblNd )
	{
		SvPtrarr aRowArr( 25, 50 );	//Zum sammeln Lines.
		::lcl_CollectLines( aRowArr, rCursor, true );

		if( aRowArr.Count() )
		{
			if( DoesUndo() )
			{
				ClearRedo();
				AppendUndo( new SwUndoAttrTbl( *pTblNd ));
			}

			SvPtrarr aFmtCmp( Max( BYTE(255), BYTE(aRowArr.Count()) ), 255 );

			for( USHORT i = 0; i < aRowArr.Count(); ++i )
                ::lcl_ProcessRowAttr( aFmtCmp, (SwTableLine*)aRowArr[i], rNew );
=====================================================================
Found a 13 line (120 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/layctrl.cxx
Starting at line 764 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/layctrl.cxx

	DrawText( Point( ( aSize.Width() - aTextSize.Width() ) / 2, aSize.Height() - nTextHeight + 2 ), aText );

	DrawRect( Rectangle( 0, aSize.Height()-nTextHeight+2, (aSize.Width()-aTextSize.Width())/2-1, aSize.Height() ) );
	DrawRect( Rectangle( (aSize.Width()-aTextSize.Width())/2+aTextSize.Width(), aSize.Height()-nTextHeight+2, aSize.Width(), aSize.Height() ) );

	SetLineColor( aLineColor );
	SetFillColor();
	DrawRect( Rectangle( Point(0,0), aSize ) );
}

// -----------------------------------------------------------------------

void ColumnsWindow::PopupModeEnd()
=====================================================================
Found a 16 line (120 tokens) duplication in the following files: 
Starting at line 516 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx
Starting at line 673 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx

	if (xFact.GetNumerator()!=xFact.GetDenominator() || yFact.GetNumerator()!=yFact.GetDenominator()) {
		FASTBOOL bXMirr=(xFact.GetNumerator()<0) != (xFact.GetDenominator()<0);
		FASTBOOL bYMirr=(yFact.GetNumerator()<0) != (yFact.GetDenominator()<0);
		if (bXMirr || bYMirr) {
			Point aRef1(GetSnapRect().Center());
			if (bXMirr) {
				Point aRef2(aRef1);
				aRef2.Y()++;
				NbcMirrorGluePoints(aRef1,aRef2);
			}
			if (bYMirr) {
				Point aRef2(aRef1);
				aRef2.X()++;
				NbcMirrorGluePoints(aRef1,aRef2);
			}
		}
=====================================================================
Found a 27 line (120 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdocirc.cxx
Starting at line 462 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoedge.cxx

	bool bIsLineDraft(0 != (rInfoRec.nPaintMode & SDRPAINTMODE_DRAFTLINE));

	// prepare ItemSet of this object
	const SfxItemSet& rSet = GetObjectItemSet();

	// perepare ItemSet to avoid old XOut line drawing
	SfxItemSet aEmptySet(*rSet.GetPool());
	aEmptySet.Put(XLineStyleItem(XLINE_NONE));
	aEmptySet.Put(XFillStyleItem(XFILL_NONE));

	// #b4899532# if not filled but fill draft, avoid object being invisible in using
	// a hair linestyle and COL_LIGHTGRAY
    SfxItemSet aItemSet(rSet);
	if(bIsFillDraft && XLINE_NONE == ((const XLineStyleItem&)(rSet.Get(XATTR_LINESTYLE))).GetValue())
	{
		ImpPrepareLocalItemSetForDraftLine(aItemSet);
	}

	// #103692# prepare ItemSet for shadow fill attributes
    SfxItemSet aShadowSet(aItemSet);

	// prepare line geometry
	::std::auto_ptr< SdrLineGeometry > pLineGeometry( ImpPrepareLineGeometry(rXOut, aItemSet, bIsLineDraft) );

	// Shadows
	if(!bHideContour && ImpSetShadowAttributes(aItemSet, aShadowSet))
	{
=====================================================================
Found a 16 line (120 tokens) duplication in the following files: 
Starting at line 1989 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx
Starting at line 673 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx

	if (xFact.GetNumerator()!=xFact.GetDenominator() || yFact.GetNumerator()!=yFact.GetDenominator()) {
		FASTBOOL bXMirr=(xFact.GetNumerator()<0) != (xFact.GetDenominator()<0);
		FASTBOOL bYMirr=(yFact.GetNumerator()<0) != (yFact.GetDenominator()<0);
		if (bXMirr || bYMirr) {
			Point aRef1(GetSnapRect().Center());
			if (bXMirr) {
				Point aRef2(aRef1);
				aRef2.Y()++;
				NbcMirrorGluePoints(aRef1,aRef2);
			}
			if (bYMirr) {
				Point aRef2(aRef1);
				aRef2.X()++;
				NbcMirrorGluePoints(aRef1,aRef2);
			}
		}
=====================================================================
Found a 16 line (120 tokens) duplication in the following files: 
Starting at line 2532 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2255 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x24 MSO_I, 0x26 MSO_I },	{ 0x28 MSO_I, 0x2a MSO_I }, { 10800, 0x2a MSO_I },							// ccp
	{ 0x18 MSO_I, 0x2a MSO_I },																				// p
	{ 0x2c MSO_I, 0x2a MSO_I }, { 0xa MSO_I, 0x26 MSO_I }, { 0xa MSO_I,	0x10 MSO_I }						// ccp
};
static const sal_uInt16 mso_sptActionButtonReturnSegm[] =
{
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0002, 0x2001, 0x0001, 0x2001, 0x0006,0x2001, 0x0001, 0x2001, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptActionButtonReturnCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 16 line (120 tokens) duplication in the following files: 
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/unoevent.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoevent.cxx

using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;

using ::com::sun::star::container::NoSuchElementException;
using ::com::sun::star::container::XNameReplace;
using ::com::sun::star::lang::IllegalArgumentException;
using ::com::sun::star::lang::WrappedTargetException;
using ::com::sun::star::lang::XServiceInfo;
using ::com::sun::star::beans::PropertyValue;
using ::cppu::WeakImplHelper2;
using ::rtl::OUString;
using ::rtl::OUStringBuffer;


const sal_Char sAPI_ServiceName[] = "com.sun.star.container.XNameReplace";
const sal_Char sAPI_SwFrameEventDescriptor[] = "SwFrameEventDescriptor";
=====================================================================
Found a 26 line (120 tokens) duplication in the following files: 
Starting at line 2228 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zforscan.cxx
Starting at line 2397 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zforscan.cxx

                                    if ( bTimePart && Is100SecZero( i, bDecSep ) )
                                    {
                                        bDecSep = TRUE;
                                        nTypeArray[i] = NF_SYMBOLTYPE_DIGIT;
                                        String& rStr = sStrArray[i];
                                        i++;
                                        nPos = nPos + sStrArray[i].Len();
                                        nCounter++;
                                        while (i < nAnzStrings &&
                                            sStrArray[i].GetChar(0) == '0')
                                        {
                                            rStr += sStrArray[i];
                                            nPos = nPos + sStrArray[i].Len();
                                            nTypeArray[i] = NF_SYMBOLTYPE_EMPTY;
                                            nAnzResStrings--;
                                            nCounter++;
                                            i++;
                                        }
                                    }
                                    else
                                        return nPos;
                                }
                                break;
                                case '#':
                                case '?':
                                    return nPos;
=====================================================================
Found a 20 line (120 tokens) duplication in the following files: 
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/poolio.cxx
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/poolio.cxx

	if ( !bPersistentRefCounts )
	{

		// "uber alle Which-Werte iterieren
		SfxPoolItemArray_Impl** ppItemArr = pImp->ppPoolItems;
		for( USHORT nArrCnt = GetSize_Impl(); nArrCnt; --nArrCnt, ++ppItemArr )
		{
			// ist "uberhaupt ein Item mit dem Which-Wert da?
			if ( *ppItemArr )
			{
				// "uber alle Items mit dieser Which-Id iterieren
				SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr)->GetData();
				for( USHORT n = (*ppItemArr)->Count(); n; --n, ++ppHtArr )
					if (*ppHtArr)
					{
                        #ifdef DBG_UTIL
						const SfxPoolItem &rItem = **ppHtArr;
						DBG_ASSERT( !rItem.ISA(SfxSetItem) ||
									0 != &((const SfxSetItem&)rItem).GetItemSet(),
									"SetItem without ItemSet" );
=====================================================================
Found a 18 line (120 tokens) duplication in the following files: 
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/colctrl.cxx
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/color.cxx

		double dHue = 0.0;

		if( c[0] == cMax )
		{
			dHue = (double)( c[1] - c[2] ) / (double)cDelta;
		}
		else if( c[1] == cMax )
		{
			dHue = 2.0 + (double)( c[2] - c[0] ) / (double)cDelta;
		}
		else if ( c[2] == cMax )
		{
			dHue = 4.0 + (double)( c[0] - c[1] ) / (double)cDelta;
		}
		dHue *= 60.0;

		if( dHue < 0.0 )
			dHue += 360.0;
=====================================================================
Found a 15 line (120 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/addresstemplate.cxx
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/addresstemplate.cxx

		~AssignmentPersistentData();

		// IAssigmentData overridables
		virtual ::rtl::OUString getDatasourceName() const;
		virtual ::rtl::OUString getCommand() const;
		virtual sal_Int32		getCommandType() const;

		virtual sal_Bool		hasFieldAssignment(const ::rtl::OUString& _rLogicalName);
		virtual ::rtl::OUString getFieldAssignment(const ::rtl::OUString& _rLogicalName);
		virtual void			setFieldAssignment(const ::rtl::OUString& _rLogicalName, const ::rtl::OUString& _rAssignment);
		virtual void			clearFieldAssignment(const ::rtl::OUString& _rLogicalName);

		virtual void	setDatasourceName(const ::rtl::OUString& _rName);
		virtual void	setCommand(const ::rtl::OUString& _rCommand);
	};
=====================================================================
Found a 21 line (120 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/colorcfg.cxx
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/extcolorcfg.cxx

                                                            const ExtendedColorConfigValue& rValue );

    const rtl::OUString&            GetLoadedScheme() const {return m_sLoadedScheme;}

    uno::Sequence< ::rtl::OUString> GetSchemeNames();

    sal_Bool                        AddScheme(const rtl::OUString& rNode);
    sal_Bool                        RemoveScheme(const rtl::OUString& rNode);
    void                            SetModified(){ConfigItem::SetModified();}
    void                            ClearModified(){ConfigItem::ClearModified();}
    void                            SettingsChanged();

	static void						DisableBroadcast();
	static void						EnableBroadcast();
	static sal_Bool					IsEnableBroadcast();

    static void                     LockBroadcast();
    static void                     UnlockBroadcast();

    // #100822#
    DECL_LINK( DataChangedEventListener, VclWindowEvent* );
=====================================================================
Found a 7 line (120 tokens) duplication in the following files: 
Starting at line 1306 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/javavm/javavm.cxx
Starting at line 1566 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/javavm/javavm.cxx

            jmethodID jmGetProps= pJNIEnv->GetStaticMethodID( jcSystem, "getProperties","()Ljava/util/Properties;");
            if(pJNIEnv->ExceptionOccurred()) throw css::uno::RuntimeException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("JNI:GetStaticMethodID java.lang.System.getProperties")), 0);
            jobject joProperties= pJNIEnv->CallStaticObjectMethod( jcSystem, jmGetProps);
            if(pJNIEnv->ExceptionOccurred()) throw css::uno::RuntimeException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("JNI:CallStaticObjectMethod java.lang.System.getProperties")), 0);
            // prepare java.util.Properties.remove
            jclass jcProperties= pJNIEnv->FindClass("java/util/Properties");
            if(pJNIEnv->ExceptionOccurred()) throw css::uno::RuntimeException(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("JNI:FindClass java/util/Properties")), 0);
=====================================================================
Found a 18 line (120 tokens) duplication in the following files: 
Starting at line 471 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx
Starting at line 1995 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx

        pStateSet->AddState( AccessibleStateType::ENABLED );
        pStateSet->AddState( AccessibleStateType::FOCUSABLE );
        if (pWin->HasFocus())
            pStateSet->AddState( AccessibleStateType::FOCUSED );
        if (pWin->IsActive())
            pStateSet->AddState( AccessibleStateType::ACTIVE );
        if (pWin->IsVisible())
            pStateSet->AddState( AccessibleStateType::SHOWING );
        if (pWin->IsReallyVisible())
            pStateSet->AddState( AccessibleStateType::VISIBLE );
        if (COL_TRANSPARENT != pWin->GetBackground().GetColor().GetColor())
            pStateSet->AddState( AccessibleStateType::OPAQUE );
    }

	return xStateSet;
}

Locale SAL_CALL SmEditAccessible::getLocale(  )
=====================================================================
Found a 17 line (120 tokens) duplication in the following files: 
Starting at line 2658 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/workwin.cxx
Starting at line 2688 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/workwin.cxx

			SfxChildWinFactArr_Impl &rFactories = *pFactories;
			for ( USHORT nFactory = 0; nFactory < rFactories.Count(); ++nFactory )
			{
				pFact = rFactories[nFactory];
				if ( pFact->nId == pCW->nSaveId )
				{
					pCW->aInfo   = pFact->aInfo;
					SfxChildWindow::InitializeChildWinFactory_Impl(
												pCW->nSaveId, pCW->aInfo);
					pCW->bCreate = pCW->aInfo.bVisible;
					USHORT nFlags = pFact->aInfo.nFlags;
					if ( nFlags & SFX_CHILDWIN_TASK )
						pCW->aInfo.nFlags |= SFX_CHILDWIN_TASK;
					if ( nFlags & SFX_CHILDWIN_CANTGETFOCUS )
						pCW->aInfo.nFlags |= SFX_CHILDWIN_CANTGETFOCUS;
                    if ( nFlags & SFX_CHILDWIN_FORCEDOCK )
                        pCW->aInfo.nFlags |= SFX_CHILDWIN_FORCEDOCK;
=====================================================================
Found a 27 line (120 tokens) duplication in the following files: 
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linkmgr2.cxx
Starting at line 182 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linkmgr2.cxx

	::so3::MakeLnkName( sCmd, &rServer, rTopic, rItem );

	pLink->SetObjType( OBJECT_CLIENT_DDE );
	pLink->SetName( sCmd );
	return Insert( pLink );
}


BOOL SvLinkManager::InsertDDELink( SvBaseLink * pLink )
{
	DBG_ASSERT( OBJECT_CLIENT_SO & pLink->GetObjType(), "no OBJECT_CLIENT_SO" )
	if( !( OBJECT_CLIENT_SO & pLink->GetObjType() ) )
		return FALSE;

	if( pLink->GetObjType() == OBJECT_CLIENT_SO )
		pLink->SetObjType( OBJECT_CLIENT_DDE );

	return Insert( pLink );
}


// erfrage die Strings fuer den Dialog
BOOL SvLinkManager::GetDisplayNames( const SvBaseLink * pLink,
										String* pType,
										String* pFile,
										String* pLinkStr,
										String* pFilter ) const
=====================================================================
Found a 30 line (120 tokens) duplication in the following files: 
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/sddetect.cxx
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/smdetect.cxx

	        if ( bIsStorage )
			{
                //TODO/LATER: factor this out!
                uno::Reference < embed::XStorage > xStorage = aMedium.GetStorage();
				if ( aMedium.GetLastStorageCreationState() != ERRCODE_NONE )
				{
					// error during storage creation means _here_ that the medium
					// is broken, but we can not handle it in medium since unpossibility
					// to create a storage does not _always_ means that the medium is broken
					aMedium.SetError( aMedium.GetLastStorageCreationState() );
					if ( xInteraction.is() )
					{
						OUString empty;
						try
						{
							InteractiveAppException xException( empty,
															REFERENCE< XInterface >(),
															InteractionClassification_ERROR,
															aMedium.GetError() );

							REFERENCE< XInteractionRequest > xRequest(
								new ucbhelper::SimpleInteractionRequest( makeAny( xException ),
																 	 ucbhelper::CONTINUATION_APPROVE ) );
							xInteraction->handle( xRequest );
						}
						catch ( Exception & ) {};
					}
				}
				else
				{
=====================================================================
Found a 15 line (120 tokens) duplication in the following files: 
Starting at line 1439 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/eppt.cxx
Starting at line 1895 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/eppt.cxx

    aPropOpt.AddOpt( ESCHER_Prop_fNoLineDrawDash, 0x80000 );
    aPropOpt.AddOpt( ESCHER_Prop_bWMode, ESCHER_wDontShow );
    aPropOpt.AddOpt( ESCHER_Prop_fBackground, 0x10001 );
    aPropOpt.Commit( *mpStrm );
    mpPptEscherEx->CloseContainer();    // ESCHER_SpContainer

    aSolverContainer.WriteSolver( *mpStrm );

    mpPptEscherEx->CloseContainer();    // ESCHER_DgContainer
    mpPptEscherEx->CloseContainer();    // EPP_Drawing
    mpPptEscherEx->AddAtom( 32, EPP_ColorSchemeAtom, 0, 1 );
    *mpStrm << (sal_uInt32)0xffffff << (sal_uInt32)0x000000 << (sal_uInt32)0x808080 << (sal_uInt32)0x000000 << (sal_uInt32)0x99cc00 << (sal_uInt32)0xcc3333 << (sal_uInt32)0xffcccc << (sal_uInt32)0xb2b2b2;
    mpPptEscherEx->CloseContainer();    // EPP_Notes
    return TRUE;
};
=====================================================================
Found a 21 line (120 tokens) duplication in the following files: 
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/viewfun5.cxx
Starting at line 1048 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview3.cxx

            		xObj = mpDocSh->GetEmbeddedObjectContainer().InsertEmbeddedObject( xStm, aName );
				}
				else
				{
					try
					{
						uno::Reference< embed::XStorage > xTmpStor = ::comphelper::OStorageHelper::GetTemporaryStorage();
						uno::Reference < embed::XEmbedObjectClipboardCreator > xClipboardCreator(
							::comphelper::getProcessServiceFactory()->createInstance(
                           		::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.embed.MSOLEObjectSystemCreator")) ),
							uno::UNO_QUERY_THROW );

						embed::InsertedObjectInfo aInfo = xClipboardCreator->createInstanceInitFromClipboard(
																xTmpStor,
																::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "DummyName" ) ),
																uno::Sequence< beans::PropertyValue >() );

						// TODO/LATER: in future InsertedObjectInfo will be used to get container related information
						// for example whether the object should be an iconified one
						xObj = aInfo.Object;
						if ( xObj.is() )
=====================================================================
Found a 21 line (120 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/viewfun5.cxx
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/viewfun5.cxx

                if ( xObj.is() )
				{
					// try to get the replacement image from the clipboard
					Graphic aGraphic;
					ULONG nGrFormat = 0;
					if( aDataHelper.GetGraphic( SOT_FORMATSTR_ID_SVXB, aGraphic ) )
						nGrFormat = SOT_FORMATSTR_ID_SVXB;
					else if( aDataHelper.GetGraphic( FORMAT_GDIMETAFILE, aGraphic ) )
						nGrFormat = SOT_FORMAT_GDIMETAFILE;
					else if( aDataHelper.GetGraphic( FORMAT_BITMAP, aGraphic ) )
						nGrFormat = SOT_FORMAT_BITMAP;
					
					// insert replacement image ( if there is one ) into the object helper
					if ( nGrFormat )
					{
						datatransfer::DataFlavor aDataFlavor;
						SotExchange::GetFormatDataFlavor( nGrFormat, aDataFlavor );
                    	PasteObject( aPos, xObj, &aObjDesc.maSize, &aGraphic, aDataFlavor.MimeType, aObjDesc.mnViewAspect );
					}
					else
                    	PasteObject( aPos, xObj, &aObjDesc.maSize );
=====================================================================
Found a 9 line (120 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/addruno.cxx
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/addruno.cxx

            {MAP_CHAR_LEN(SC_UNONAME_ADDRESS),  0,  &getCppuType((table::CellAddress*)0), 0, 0 },
            {MAP_CHAR_LEN(SC_UNONAME_PERSREPR), 0,  &getCppuType((rtl::OUString*)0),    0, 0 },
            {MAP_CHAR_LEN(SC_UNONAME_REFSHEET), 0,  &getCppuType((sal_Int32*)0),        0, 0 },
            {MAP_CHAR_LEN(SC_UNONAME_UIREPR),   0,  &getCppuType((rtl::OUString*)0),    0, 0 },
            {0,0,0,0,0,0}
        };
        static uno::Reference<beans::XPropertySetInfo> aRef(new SfxItemPropertySetInfo( aPropertyMap ));
        return aRef;
    }
=====================================================================
Found a 23 line (120 tokens) duplication in the following files: 
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldrani.cxx
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldrani.cxx
Starting at line 660 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldrani.cxx

SvXMLImportContext *ScXMLSourceQueryContext::CreateChildContext( USHORT nPrefix,
											const ::rtl::OUString& rLName,
											const ::com::sun::star::uno::Reference<
									  	::com::sun::star::xml::sax::XAttributeList>& xAttrList )
{
	SvXMLImportContext *pContext = 0;

	if ( nPrefix == XML_NAMESPACE_FORM )
	{
        if (IsXMLToken(rLName, XML_CONNECTION_RESOURCE) && (sDBName.getLength() == 0))
        {
			pContext = new ScXMLConResContext( GetScImport(), nPrefix,
													  	rLName, xAttrList, pDatabaseRangeContext);
        }
    }

    if( !pContext )
		pContext = new SvXMLImportContext( GetImport(), nPrefix, rLName );

	return pContext;
}

void ScXMLSourceQueryContext::EndElement()
=====================================================================
Found a 28 line (120 tokens) duplication in the following files: 
Starting at line 901 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx
Starting at line 1337 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx

					USHORT	fBottom	= ( pPattern->Frame & 0xF000 ) / 0x1000;

					if( fLeft > 1 )
						nLeft = 50;
					else if( fLeft > 0 )
						nLeft = 20;

					if( fTop > 1 )
						nTop = 50;
					else if( fTop > 0 )
						nTop = 20;

					if( fRight > 1 )
						nRight = 50;
					else if( fRight > 0 )
						nRight = 20;

					if( fBottom > 1 )
						nBottom = 50;
					else if( fBottom > 0 )
						nBottom = 20;

					Color	ColorLeft( COL_BLACK );
					Color	ColorTop( COL_BLACK );
					Color	ColorRight( COL_BLACK );
					Color	ColorBottom( COL_BLACK );

					USHORT	cLeft	= ( pPattern->FrameColor & 0x000F );
=====================================================================
Found a 29 line (120 tokens) duplication in the following files: 
Starting at line 1419 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabres.cxx
Starting at line 1516 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabres.cxx

    {
        // Calculate at least automatic if no subtotals are selected,
        // show only own values if there's no child dimension (innermost).
        if ( !nUserSubCount || !bHasChild )
            nUserSubCount = 1;

        long nMemberMeasure = nMeasure;
        long nSubSize = pResultData->GetCountForMeasure(nMeasure);

        if ( pDataRoot )
        {
            ScDPSubTotalState aSubState;        // initial state

            for (long nUserPos=0; nUserPos<nUserSubCount; nUserPos++)   // including hidden "automatic"
            {
                if ( bHasChild && nUserSubCount > 1 )
                {
                    aSubState.nRowSubTotalFunc = nUserPos;
                    aSubState.eRowForce = lcl_GetForceFunc( pParentLevel, nUserPos );
                }

                for ( long nSubCount=0; nSubCount<nSubSize; nSubCount++ )
                {
                    if ( nMeasure == SC_DPMEASURE_ALL )
                        nMemberMeasure = nSubCount;
                    else if ( pResultData->GetColStartMeasure() == SC_DPMEASURE_ALL )
                        nMemberMeasure = SC_DPMEASURE_ALL;

                    pDataRoot->UpdateRunningTotals( pRefMember, nMemberMeasure,
=====================================================================
Found a 37 line (120 tokens) duplication in the following files: 
Starting at line 842 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_SocketAddr.cxx

			::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("123.345.67.89"), IP_PORT_MYPORT2 );
			
			CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
		}
		CPPUNIT_TEST_SUITE( ctors );
		CPPUNIT_TEST( ctors_none );
		CPPUNIT_TEST( ctors_none_000 );
		CPPUNIT_TEST( ctors_copy );
		CPPUNIT_TEST( ctors_copy_no_001 );
		CPPUNIT_TEST( ctors_copy_no_002 );
		CPPUNIT_TEST( ctors_copy_handle_001 );
		CPPUNIT_TEST( ctors_copy_handle_002 );
		CPPUNIT_TEST( ctors_hostname_port_001 );
		CPPUNIT_TEST( ctors_hostname_port_002 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class ctors


	/** testing the method:
		inline sal_Bool is() const;		
	*/

	class is : public CppUnit::TestFixture
	{
	public:
		void is_001()
		{
			::osl::SocketAddr saSocketAddr;
	
			CPPUNIT_ASSERT_MESSAGE("test for is() function: create an unknown type socket, it should be True when call is.", 
									sal_True == saSocketAddr.is( ) );
		}
		// refer to setPort_003()
		void is_002()
		{
			::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_INVAL );
=====================================================================
Found a 17 line (120 tokens) duplication in the following files: 
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngsvcmgr.cxx
Starting at line 935 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngsvcmgr.cxx
Starting at line 988 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/lngsvcmgr.cxx

					Reference< XThesaurus > xSvc( xFactory->createInstance(),
												  UNO_QUERY );
					if (xSvc.is())
					{
						OUString 			aImplName;
						Sequence< INT16 > 	aLanguages;
						Reference< XServiceInfo > xInfo( xSvc, UNO_QUERY );
						if (xInfo.is())
							aImplName = xInfo->getImplementationName();
						DBG_ASSERT( aImplName.getLength(),
								"empty implementation name" );
						Reference< XSupportedLocales > xSuppLoc( xSvc, UNO_QUERY );
						DBG_ASSERT( xSuppLoc.is(), "interfaces not supported" );
						if (xSuppLoc.is()) {
                            Sequence<Locale> aLocaleSequence(xSuppLoc->getLocales());
							aLanguages = LocaleSeqToLangSeq( aLocaleSequence );
                        }
=====================================================================
Found a 30 line (120 tokens) duplication in the following files: 
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sspellimp.cxx

	}

	return aSuppLocales;
}


sal_Bool SAL_CALL SpellChecker::hasLocale(const Locale& rLocale)
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );

	BOOL bRes = FALSE;
	if (!aSuppLocales.getLength())
		getLocales();
	INT32 nLen = aSuppLocales.getLength();
	for (INT32 i = 0;  i < nLen;  ++i)
	{
		const Locale *pLocale = aSuppLocales.getConstArray();
		if (rLocale == pLocale[i])
		{
			bRes = TRUE;
			break;
		}
	}
	return bRes;
}


INT16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rLocale )
{
=====================================================================
Found a 14 line (120 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/languageguessing/guesslang.cxx
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/languageguessing/guesslang.cxx

    vector<Guess> gs = guesser.GetUnavailableLanguages();
    aRes.realloc(gs.size());

    com::sun::star::lang::Locale *pRes = aRes.getArray();

    for(size_t i = 0; i < gs.size() ; i++ ){
        com::sun::star::lang::Locale current_aRes;
        current_aRes.Language   = OUString(RTL_CONSTASCII_USTRINGPARAM(gs[i].GetLanguage().c_str()));
        current_aRes.Country    = OUString(RTL_CONSTASCII_USTRINGPARAM(gs[i].GetCountry().c_str()));
        pRes[i] = current_aRes;
    }

    return aRes;
}
=====================================================================
Found a 22 line (120 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/datatest.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/marktest.cxx

public:
    virtual void SAL_CALL testInvariant(
		const OUString& TestName,
		const Reference < XInterface >& TestObject)
		throw (	IllegalArgumentException,
				RuntimeException) ;

    virtual sal_Int32 SAL_CALL  test(	const OUString& TestName,
    					const Reference < XInterface >& TestObject,
    					sal_Int32 hTestHandle)
		throw (	IllegalArgumentException, RuntimeException);
    virtual sal_Bool SAL_CALL testPassed(void)
		throw (	RuntimeException);
    virtual Sequence< OUString > SAL_CALL getErrors(void)
		throw (RuntimeException);
    virtual Sequence< Any > SAL_CALL getErrorExceptions(void)
		throw (RuntimeException);
    virtual Sequence< OUString > SAL_CALL getWarnings(void)
		throw (RuntimeException);

private:
	void testSimple( const Reference< XOutputStream > &r, const Reference < XInputStream > &rInput );
=====================================================================
Found a 19 line (120 tokens) duplication in the following files: 
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 803 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 30 line (120 tokens) duplication in the following files: 
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/popupmenucontrollerfactory.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/toolbarcontrollerfactory.cxx

sal_Bool ConfigurationAccess_ToolbarControllerFactory::impl_getElementProps( const Any& aElement, rtl::OUString& aCommand, rtl::OUString& aModule, rtl::OUString& aServiceSpecifier ) const
{
    Reference< XPropertySet > xPropertySet;
    aElement >>= xPropertySet;

    if ( xPropertySet.is() )
    {
        try
        {
            xPropertySet->getPropertyValue( m_aPropCommand ) >>= aCommand;
            xPropertySet->getPropertyValue( m_aPropModule ) >>= aModule;
            xPropertySet->getPropertyValue( m_aPropController ) >>= aServiceSpecifier;
        }
        catch ( com::sun::star::beans::UnknownPropertyException& )
        {
            return sal_False;
        }
        catch ( com::sun::star::lang::WrappedTargetException& )
        {
            return sal_False;
        }
    }

    return sal_True;
}

//*****************************************************************************************************************
//	XInterface, XTypeProvider, XServiceInfo
//*****************************************************************************************************************
DEFINE_XINTERFACE_4                    (    ToolbarControllerFactory                                                      ,
=====================================================================
Found a 28 line (120 tokens) duplication in the following files: 
Starting at line 817 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/windowstateconfiguration.cxx
Starting at line 1008 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/windowstateconfiguration.cxx

                        }
                    }
                }
                break;

                case PROPERTY_SIZE:
                case PROPERTY_DOCKSIZE:
                {
                    OUString aString;
                    if ( a >>= aString )
                    {
                        sal_Int32 nToken( 0 );
                        OUString aStr = aString.getToken( 0, ',', nToken );
                        if ( nToken > 0 )
                        {
                            com::sun::star::awt::Size aSize;
                            aSize.Width  = aStr.toInt32();
                            aSize.Height = aString.getToken( 0, ',', nToken ).toInt32();
                            if ( i == PROPERTY_SIZE )
                            {
                                aWindowStateInfo.aSize = aSize;
                                nMask |= WINDOWSTATE_MASK_SIZE;
                            }
                            else
                            {
                                aWindowStateInfo.aDockSize = aSize;
                                nMask |= WINDOWSTATE_MASK_DOCKSIZE;
                            }
=====================================================================
Found a 14 line (120 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Grid.cxx
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ImageControl.cxx

namespace frm
{
//.........................................................................
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::ui::dialogs;
=====================================================================
Found a 8 line (120 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,    0,    0,    0,    6,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
=====================================================================
Found a 38 line (120 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/unloading/unloadTest.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/unloading/unloadTest.cxx

	Reference<XInterface> xint= fac->createInstanceWithContext( sService, context);


	OUString sModule(
        RTL_CONSTASCII_USTRINGPARAM("oleautobridge.uno" SAL_DLLEXTENSION));
	oslModule hMod= osl_loadModule( sModule.pData, 0);
	osl_unloadModule( hMod);

	rtl_unloadUnusedModules( NULL);
	OUString sFactoryFunc( RTL_CONSTASCII_USTRINGPARAM("component_getFactory"));
	void* pSymbol= osl_getSymbol( hMod,sFactoryFunc.pData);
	// true, instance alive
	sal_Bool bTest1= pSymbol ? sal_True : sal_False;

	xint=0;
	rtl_unloadUnusedModules( NULL);
	pSymbol= osl_getSymbol( hMod,sFactoryFunc.pData);
	sal_Bool bTest2= pSymbol ? sal_False : sal_True;

	Reference<XComponent> xcomp( context, UNO_QUERY);
	xcomp->dispose();

//	for (int i=0; i < 10; i++)
//	{	
//		Reference<XSimpleRegistry> xreg= createSimpleRegistry();
//		xreg->open( OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")),
//							   sal_False, sal_False );
//		Reference< XComponentContext > context= bootstrap_InitialComponentContext(xreg);	
//		Reference<XComponent> xcomp( context, UNO_QUERY);
//		xcomp->dispose();
//
//	}

//	return sal_True;
	return bTest1 && bTest2;
}

sal_Bool test4()
=====================================================================
Found a 16 line (120 tokens) duplication in the following files: 
Starting at line 946 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 2024 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	// TODO: The object must be at least in Running state;
	if ( !m_bIsLink || m_nObjectState == -1 || !m_pOleComponent )
=====================================================================
Found a 29 line (120 tokens) duplication in the following files: 
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/registry/configuration/dp_configuration.cxx
Starting at line 299 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/registry/package/dp_package.cxx

}

// XPackageRegistry
//______________________________________________________________________________
Sequence< Reference<deployment::XPackageTypeInfo> >
BackendImpl::getSupportedPackageTypes() throw (RuntimeException)
{
    return m_typeInfos;
}



// PackageRegistryBackend
//______________________________________________________________________________
Reference<deployment::XPackage> BackendImpl::bindPackage_(
    OUString const & url, OUString const & mediaType_,
    Reference<XCommandEnvironment> const & xCmdEnv )
{
    OUString mediaType( mediaType_ );
    if (mediaType.getLength() == 0)
    {
        // detect media-type:
        ::ucbhelper::Content ucbContent;
        if (create_ucb_content( &ucbContent, url, xCmdEnv ))
        {
            const OUString title( ucbContent.getPropertyValue(
                                      StrTitle::get() ).get<OUString>() );
            if (title.endsWithIgnoreAsciiCaseAsciiL(
                    RTL_CONSTASCII_STRINGPARAM(".oxt") ) ||
=====================================================================
Found a 11 line (120 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/querydesign/JoinController.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/tabledesign/TableController.cxx

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::ui;
=====================================================================
Found a 21 line (120 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/AntiEnvGuard/AntiEnvGuard.test.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/EnvGuard/EnvGuard.test.cxx

        current_EnvDcp = uno::Environment::getCurrent(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(UNO_LB_UNO))).getTypeName();
    }


	if (current_EnvDcp == ref)
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));

	else
    {
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE\n"));
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t        got: \""));
        s_message += current_EnvDcp;
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\"\n"));
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t   expected: \""));
        s_message += ref;
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\"\n"));
    }
}

SAL_IMPLEMENT_MAIN_WITH_ARGS(/*argc*/, argv)
{
=====================================================================
Found a 22 line (120 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LFolderList.cxx
Starting at line 611 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ETable.cxx

						(*_rRow)[i]->setNull();
					}
				}	break;
				case DataType::DOUBLE:
				case DataType::INTEGER:
				case DataType::DECIMAL:				// #99178# OJ
				case DataType::NUMERIC:
				{
					sal_Unicode cDecimalDelimiter = pConnection->getDecimalDelimiter();
					sal_Unicode cThousandDelimiter = pConnection->getThousandDelimiter();
					String aStrConverted;

					OSL_ENSURE(cDecimalDelimiter && nType != DataType::INTEGER ||
							   !cDecimalDelimiter && nType == DataType::INTEGER,
							   "FalscherTyp");

					// In Standard-Notation (DezimalPUNKT ohne Tausender-Komma) umwandeln:
					for (xub_StrLen j = 0; j < aStr.Len(); ++j)
					{
						if (cDecimalDelimiter && aStr.GetChar(j) == cDecimalDelimiter)
							aStrConverted += '.';
						else if ( aStr.GetChar(j) == '.' ) // special case, if decimal seperator isn't '.' we have to vut the string after it
=====================================================================
Found a 22 line (120 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/AreaWrapper.cxx
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/PageBackground.cxx

    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
         ::chart::LineProperties::AddPropertiesToVector( aProperties );
        ::chart::FillProperties::AddPropertiesToVector( aProperties );
        ::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}
=====================================================================
Found a 31 line (120 tokens) duplication in the following files: 
Starting at line 225 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

		}
		if (pReturnTypeDescr)
		{
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		}
	}
}


//==================================================================================================
extern "C" void cpp_vtable_call(
    int nFunctionIndex, int nVtableOffset, void** pCallStack,
    void * pReturnValue )
{
	OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" );
	
	// pCallStack: ret adr, [ret *], this, params
    void * pThis;
	if( nFunctionIndex & 0x80000000 )
	{
		nFunctionIndex &= 0x7fffffff;
        pThis = pCallStack[2];
	}
	else
    {
        pThis = pCallStack[1];
    }
    pThis = static_cast< char * >(pThis) - nVtableOffset;
	bridges::cpp_uno::shared::CppInterfaceProxy * pCppI
        = bridges::cpp_uno::shared::CppInterfaceProxy::castInterfaceToProxy(
            pThis);
=====================================================================
Found a 9 line (120 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/except.cxx

	pRTTI[  0 ] = reinterpret_cast< void * >(rttiSize * sizeof (void *));
	pRTTI[  1 ] = NULL;
	pRTTI[  2 ] = (void*)(7*sizeof(void*));
	pRTTI[  3 ] = (void*)aHash.getHash()[0];
	pRTTI[  4 ] = (void*)aHash.getHash()[1];
	pRTTI[  5 ] = (void*)aHash.getHash()[2];
	pRTTI[  6 ] = (void*)aHash.getHash()[3];
	pRTTI[  7 ] = NULL;
	pRTTI[  8 ] = NULL;
=====================================================================
Found a 22 line (120 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/uno/dlgcont.cxx
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/uno/scriptcont.cxx

namespace basic
{

using namespace com::sun::star::document;
using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::uno;
using namespace com::sun::star::ucb;
using namespace com::sun::star::lang;
using namespace com::sun::star::script;
using namespace com::sun::star::xml::sax;
using namespace com::sun::star;
using namespace cppu;
using namespace rtl;
using namespace osl;

using com::sun::star::uno::Reference;

//============================================================================
// Implementation class SfxScriptLibraryContainer

const sal_Char* SAL_CALL SfxScriptLibraryContainer::getInfoFileName() const { return "script"; }
=====================================================================
Found a 50 line (120 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/msgedit.cxx
Starting at line 393 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/msgedit.cxx

	if ( pCurrentTestCase )
		pThisEntry = aEditTree.InsertEntry( aMsg, pCurrentTestCase, FALSE, LIST_APPEND, pTTDebugData );
	else if ( pCurrentRun )
	{
		pThisEntry = aEditTree.InsertEntry( aMsg, pCurrentRun, FALSE, LIST_APPEND, pTTDebugData );
		aEditTree.ShowEntry( pThisEntry );
	}
	else
	{
		AddRun( aMsg, aDebugData );
		pThisEntry = aEditTree.InsertEntry( aMsg, pCurrentRun, FALSE, LIST_APPEND, pTTDebugData );
		aEditTree.ShowEntry( pThisEntry );
	}

    while ( !aEditTree.IsEntryVisible( pThisEntry ) && ( pThisEntry = aEditTree.GetParent( pThisEntry ) ) != NULL )
		aEditTree.InvalidateEntry( pThisEntry );
}

/*
	SvLBoxEntry*	GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return SvLBox::GetEntry(pParent,nPos); }
	SvLBoxEntry*	GetEntry( ULONG nRootPos ) const { return SvLBox::GetEntry(nRootPos);}



	SvLBoxEntry*	FirstChild(SvLBoxEntry* pParent ) const { return (SvLBoxEntry*)(pModel->FirstChild(pParent)); }
	SvLBoxEntry*	NextSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->NextSibling( pEntry )); }
	SvLBoxEntry*	PrevSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->PrevSibling( pEntry )); }

	SvLBoxEntry*	FirstSelected() const { return (SvLBoxEntry*)SvListView::FirstSelected(); }
	SvLBoxEntry*	NextSelected( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(SvListView::NextSelected(pEntry)); }
	SvLBoxEntry*	PrevSelected( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(SvListView::PrevSelected(pEntry)); }
	SvLBoxEntry*	LastSelected() const { return (SvLBoxEntry*)(SvListView::LastSelected()); }

	SvLBoxEntry*	GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(pParent,nPos)); }
	SvLBoxEntry*	GetEntry( ULONG nRootPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(nRootPos)); }

	SvLBoxEntry*	GetParent( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetParent(pEntry)); }
	SvLBoxEntry*	GetRootLevelParent(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetRootLevelParent( pEntry ));}

	BOOL			IsInChildList( SvListEntry* pParent, SvListEntry* pChild) const;
	SvListEntry*	GetEntry( SvListEntry* pParent, ULONG nPos ) const;
	SvListEntry*	GetEntry( ULONG nRootPos ) const;
	SvListEntry*	GetEntryAtAbsPos( ULONG nAbsPos ) const;
	SvListEntry*	GetParent( SvListEntry* pEntry ) const;
	SvListEntry*	GetRootLevelParent( SvListEntry* pEntry ) const;
*/

//#define CHECK( pMemo ) if ( pMemo && !aEditTree.GetViewData( pMemo ) ) pMemo = NULL
#define CHECK( pMemo ) if ( pMemo && !aEditTree.GetModel()->IsInChildList( NULL, pMemo ) ) pMemo = NULL
void MsgEdit::Delete()
=====================================================================
Found a 9 line (120 tokens) duplication in the following files: 
Starting at line 3936 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 3974 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

		case M_GetSizeX:
			if ( pControl->GetType() == WINDOW_DOCKINGWINDOW && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_FLOATINGWINDOW )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r FloatingWindows
			if ( pControl->GetType() == WINDOW_TABCONTROL && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_TABDIALOG )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r TabDialoge
			if ( pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_BORDERWINDOW )
				pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r Border
            if ( (nParams & PARAM_BOOL_1) && bBool1 )
                pControl = pControl->GetWindow( WINDOW_OVERLAP );
=====================================================================
Found a 16 line (119 tokens) duplication in the following files: 
Starting at line 6238 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6544 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x30,0x30,0x20,0x40,0x00,

        7, // 0x3C '<'
        0x00,0x04,0x08,0x10,0x20,0x40,0x20,0x10,0x08,0x04,0x00,0x00,

        7, // 0x3D '='
        0x00,0x00,0x00,0x00,0x7C,0x00,0x00,0x7C,0x00,0x00,0x00,0x00,

        7, // 0x3E '>'
        0x00,0x40,0x20,0x10,0x08,0x04,0x08,0x10,0x20,0x40,0x00,0x00,

        7, // 0x3F '?'
        0x00,0x38,0x44,0x04,0x04,0x08,0x10,0x10,0x00,0x10,0x00,0x00,

        7, // 0x40 '@'
        0x00,0x38,0x44,0x44,0x5C,0x54,0x4C,0x40,0x38,0x00,0x00,0x00,
=====================================================================
Found a 21 line (119 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr  = m_wrap_mode_y(y >> image_subpixel_shift);
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                               ry_inv) >> 
                                   image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = m_wrap_mode_x(x_lr_ini);
                    int x_hr = x_hr_ini;
                    const value_type* row_ptr = (const value_type*)base_type::source_image().row(y_lr);
                    do
                    {
                        const value_type* fg_ptr = row_ptr + (x_lr << 2);
=====================================================================
Found a 21 line (119 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgb.h

                fg[0] = fg[1] = fg[2] = image_filter_size / 2;

                int y_lr  = m_wrap_mode_y(y >> image_subpixel_shift);
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                               ry_inv) >> 
                                   image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = m_wrap_mode_x(x_lr_ini);
                    int x_hr = x_hr_ini;
                    const value_type* row_ptr = (const value_type*)base_type::source_image().row(y_lr);
                    do
                    {
                        const value_type* fg_ptr = row_ptr + x_lr * 3;
=====================================================================
Found a 21 line (119 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h

            int y2 = int(yt * subpixel_size);

            const double delta = 1/double(subpixel_size);
            double dx;
            double dy;

            // Calculate scale by X at x2,y2
            dx = xt + delta;
            dy = yt;
            m_trans_inv.transform(&dx, &dy);
            dx -= xe;
            dy -= ye;
            int sx2 = int(subpixel_size/sqrt(dx*dx + dy*dy)) >> subpixel_shift;

            // Calculate scale by Y at x2,y2
            dx = xt;
            dy = yt + delta;
            m_trans_inv.transform(&dx, &dy);
            dx -= xe;
            dy -= ye;
            int sy2 = int(subpixel_size/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
=====================================================================
Found a 20 line (119 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr = y >> image_subpixel_shift;
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                                base_type::m_ry_inv) >> 
                                    image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   base_type::m_rx_inv) >> 
                                       image_subpixel_shift;
                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + x_lr * 3;
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_primitives.h
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_primitives.h

        void outlined_ellipse(int x, int y, int rx, int ry)
        {
            ellipse_bresenham_interpolator ei(rx, ry);
            int dx = 0;
            int dy = -ry;

            do
            {
                dx += ei.dx();
                dy += ei.dy();

                m_ren->blend_pixel(x + dx, y + dy, m_line_color, cover_full);
                m_ren->blend_pixel(x + dx, y - dy, m_line_color, cover_full);
                m_ren->blend_pixel(x - dx, y - dy, m_line_color, cover_full);
                m_ren->blend_pixel(x - dx, y + dy, m_line_color, cover_full);
=====================================================================
Found a 32 line (119 tokens) duplication in the following files: 
Starting at line 425 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_gray.h
Starting at line 502 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgb.h

                            p[order_type::B] = colors->b;
                        }
                        else
                        {
                            copy_or_blend_pix(p, *colors, 255);
                        }
                        p = (value_type*)m_rbuf->next_row(p);
                        ++colors;
                    }
                    while(--len);
                }
                else
                {
                    do 
                    {
                        copy_or_blend_pix(p, *colors++, cover);
                        p = (value_type*)m_rbuf->next_row(p);
                    }
                    while(--len);
                }
            }
        }


        //--------------------------------------------------------------------
        void blend_opaque_color_hspan(int x, int y,
                                      unsigned len, 
                                      const color_type* colors,
                                      const int8u* covers,
                                      int8u cover)
        {
            value_type* p = (value_type*)m_rbuf->row(y) + x + x + x;
=====================================================================
Found a 22 line (119 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx

SAL_CALL XMLEncryption_NssImpl :: encrypt(
	const Reference< XXMLEncryptionTemplate >& aTemplate ,
	const Reference< XSecurityEnvironment >& aEnvironment
) throw( com::sun::star::xml::crypto::XMLEncryptionException, 
		 com::sun::star::uno::SecurityException )
{
	xmlSecKeysMngrPtr pMngr = NULL ;
	xmlSecEncCtxPtr pEncCtx = NULL ;
	xmlNodePtr pEncryptedData = NULL ;
	xmlNodePtr pContent = NULL ;

	if( !aTemplate.is() )
		throw RuntimeException() ;

	if( !aEnvironment.is() )
		throw RuntimeException() ;

	//Get Keys Manager
	Reference< XUnoTunnel > xSecTunnel( aEnvironment , UNO_QUERY ) ;
	if( !xSecTunnel.is() ) {
		 throw RuntimeException() ;
	}
=====================================================================
Found a 20 line (119 tokens) duplication in the following files: 
Starting at line 290 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpbody.cxx
Starting at line 1029 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpstyl.cxx

		case XML_TOK_MASTERPAGE_NOTES:
		{
			if( GetSdImport().IsImpress() )
			{
				// get notes page
				uno::Reference< presentation::XPresentationPage > xPresPage(GetLocalShapesContext(), uno::UNO_QUERY);
				if(xPresPage.is())
				{
					uno::Reference< drawing::XDrawPage > xNotesDrawPage(xPresPage->getNotesPage(), uno::UNO_QUERY);
					if(xNotesDrawPage.is())
					{
						uno::Reference< drawing::XShapes > xNewShapes(xNotesDrawPage, uno::UNO_QUERY);
						if(xNewShapes.is())
						{
							// presentation:notes inside master-page context
							pContext = new SdXMLNotesContext( GetSdImport(), nPrefix, rLocalName, xAttrList, xNewShapes);
						}
					}
				}
			}
=====================================================================
Found a 17 line (119 tokens) duplication in the following files: 
Starting at line 1289 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dockmgr.cxx
Starting at line 1420 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dockmgr.cxx

                maMaxOutSize    = mpFloatWin->GetMaxOutputSizePixel();

                Window* pRealParent = GetWindow()->GetWindow( WINDOW_PARENT ); //mpWindowImpl->mpRealParent;
                GetWindow()->mpWindowImpl->mpBorderWindow = NULL;
                if ( mpOldBorderWin )
                {
                    GetWindow()->SetParent( mpOldBorderWin );
                    ((ImplBorderWindow*)mpOldBorderWin)->GetBorder( 
                        GetWindow()->mpWindowImpl->mnLeftBorder, GetWindow()->mpWindowImpl->mnTopBorder,
                        GetWindow()->mpWindowImpl->mnRightBorder, GetWindow()->mpWindowImpl->mnBottomBorder );
                    mpOldBorderWin->Resize();
                }
                GetWindow()->mpWindowImpl->mpBorderWindow = mpOldBorderWin;
                GetWindow()->SetParent( pRealParent );
                GetWindow()->mpWindowImpl->mpRealParent = pRealParent;

                delete static_cast<ImplDockFloatWin2*>(mpFloatWin);
=====================================================================
Found a 20 line (119 tokens) duplication in the following files: 
Starting at line 710 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev.cxx
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev.cxx

			mpGraphics = pVirDev->mpVirDev->GetGraphics();
            // if needed retry after releasing least recently used virtual device graphics
			while ( !mpGraphics )
			{
				if ( !pSVData->maGDIData.mpLastVirGraphics )
					break;
				pSVData->maGDIData.mpLastVirGraphics->ImplReleaseGraphics();
				mpGraphics = pVirDev->mpVirDev->GetGraphics();
			}
            // update global LRU list of virtual device graphics
			if ( mpGraphics )
			{
				mpNextGraphics = pSVData->maGDIData.mpFirstVirGraphics;
				pSVData->maGDIData.mpFirstVirGraphics = const_cast<OutputDevice*>(this);
				if ( mpNextGraphics )
					mpNextGraphics->mpPrevGraphics = const_cast<OutputDevice*>(this);
				if ( !pSVData->maGDIData.mpLastVirGraphics )
					pSVData->maGDIData.mpLastVirGraphics = const_cast<OutputDevice*>(this);
			}
		}
=====================================================================
Found a 22 line (119 tokens) duplication in the following files: 
Starting at line 1949 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 2099 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

	if ( rInfo.SourceURL.getLength() <= aId.getLength() )
	{
		if ( aId.compareTo(
				rInfo.SourceURL, rInfo.SourceURL.getLength() ) == 0 )
        {
            uno::Any aProps
                = uno::makeAny(beans::PropertyValue(
                                      rtl::OUString(
                                          RTL_CONSTASCII_USTRINGPARAM("Uri")),
                                      -1,
                                      uno::makeAny( rInfo.SourceURL ),
                                      beans::PropertyState_DIRECT_VALUE));
            ucbhelper::cancelCommandExecution(
                ucb::IOErrorCode_RECURSIVE,
                uno::Sequence< uno::Any >(&aProps, 1),
                xEnv,
                rtl::OUString::createFromAscii(
                    "Target is equal to or is a child of source!" ),
                this );
            // Unreachable
        }
	}
=====================================================================
Found a 27 line (119 tokens) duplication in the following files: 
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

			cAry[1] |= 0x08;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[1] |= 0x04;
=====================================================================
Found a 27 line (119 tokens) duplication in the following files: 
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

			cAry[1] |= 0x08;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[1] |= 0x04;
=====================================================================
Found a 27 line (119 tokens) duplication in the following files: 
Starting at line 507 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

			cAry[1] |= 0x80;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[1] |= 0x40;
=====================================================================
Found a 27 line (119 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 507 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

			cAry[0] |= 0x80;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[0] |= 0x40;
=====================================================================
Found a 27 line (119 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

			cAry[1] |= 0x08;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[1] |= 0x04;
=====================================================================
Found a 27 line (119 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

			cAry[0] |= 0x08;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[0] |= 0x04;
=====================================================================
Found a 27 line (119 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

			cAry[1] |= 0x80;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[1] |= 0x40;
=====================================================================
Found a 16 line (119 tokens) duplication in the following files: 
Starting at line 1533 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dialog/uiregionsw.cxx
Starting at line 2330 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dialog/uiregionsw.cxx

	DBG_ASSERT(pFact, "Dialogdiet fail!"); //CHINA001
	AddTabPage(TP_COLUMN,	SwColumnPage::Create,  	 0);
	AddTabPage(TP_BACKGROUND, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0 ); //CHINA001 AddTabPage(TP_BACKGROUND,SvxBackgroundTabPage::Create, 	0);
	AddTabPage(TP_SECTION_FTNENDNOTES, SwSectionFtnEndTabPage::Create, 0);
    AddTabPage(TP_SECTION_INDENTS, SwSectionIndentTabPage::Create, 0);

	SvxHtmlOptions* pHtmlOpt = SvxHtmlOptions::Get();
	long nHtmlMode = pHtmlOpt->GetExportMode();
	BOOL bWeb = 0 != PTR_CAST( SwWebDocShell, rSh.GetView().GetDocShell() );
	if(bWeb)
	{
		RemoveTabPage(TP_SECTION_FTNENDNOTES);
        RemoveTabPage(TP_SECTION_INDENTS);
        if( HTML_CFG_NS40 != nHtmlMode && HTML_CFG_WRITER != nHtmlMode)
			RemoveTabPage(TP_COLUMN);
	}
=====================================================================
Found a 28 line (119 tokens) duplication in the following files: 
Starting at line 1504 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmconfigitem.cxx
Starting at line 1565 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmconfigitem.cxx

    SwAddressIterator aIter(sAddress);
    while(aIter.HasMore())
    {        
        SwMergeAddressItem aItem = aIter.Next();
        if(aItem.bIsColumn)
        {
            String sConvertedColumn = aItem.sText;
            for(USHORT nColumn = 0; 
                    nColumn < rHeaders.Count() && nColumn < aAssignment.getLength(); 
                                                                                ++nColumn)
            {
                if(rHeaders.GetString(nColumn) == aItem.sText && 
                    pAssignment[nColumn].getLength())
                {
                    sConvertedColumn = pAssignment[nColumn];
                    break;
                }            
            }
            //find out if the column exists in the data base
            if(!xCols->hasByName(sConvertedColumn))
            {
                bResult = false;
                break;
            }    
        }
    }
    return bResult;
}
=====================================================================
Found a 19 line (119 tokens) duplication in the following files: 
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		EDGERADIUS_PROPERTIES
		FILL_PROPERTIES
		LINE_PROPERTIES
		LINE_PROPERTIES_START_END
		SHAPE_DESCRIPTOR_PROPERTIES
		MISC_OBJ_PROPERTIES
		LINKTARGET_PROPERTIES
		SHADOW_PROPERTIES
		TEXT_PROPERTIES
		// #FontWork#
		FONTWORK_PROPERTIES
		CUSTOMSHAPE_PROPERTIES
		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return aCirclePropertyMap_Impl;
=====================================================================
Found a 10 line (119 tokens) duplication in the following files: 
Starting at line 2272 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoedge.cxx
Starting at line 2592 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

	long nMulY = (RECT_EMPTY == rRect.Bottom()) ? 0 : rRect.Bottom() - rRect.Top();
	
	long nDivY = aOld.Bottom()  - aOld.Top();
	if ( nDivX == 0 ) { nMulX = 1; nDivX = 1; }
	if ( nDivY == 0 ) { nMulY = 1; nDivY = 1; }
	Fraction aX(nMulX,nDivX);
	Fraction aY(nMulY,nDivY);
	NbcResize(aOld.TopLeft(), aX, aY);
	NbcMove(Size(rRect.Left() - aOld.Left(), rRect.Top() - aOld.Top()));
}
=====================================================================
Found a 5 line (119 tokens) duplication in the following files: 
Starting at line 1241 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedxv.cxx
Starting at line 1341 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedxv.cxx

            	    Rectangle aR(pWin->LogicToPixel(pTextEditOutlinerView->GetOutputArea()));
			        if (aPixPos.X()<aR.Left  ()) aPixPos.X()=aR.Left  ();
            	    if (aPixPos.X()>aR.Right ()) aPixPos.X()=aR.Right ();
	                if (aPixPos.Y()<aR.Top   ()) aPixPos.Y()=aR.Top   ();
    	            if (aPixPos.Y()>aR.Bottom()) aPixPos.Y()=aR.Bottom();
=====================================================================
Found a 24 line (119 tokens) duplication in the following files: 
Starting at line 1741 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4807 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

	rPropSet->setPropertyValue( WW8_ASCII2STR("TriState"), aTmp);

    aTmp <<= ImportSpecEffect( nSpecialEffect );
    rPropSet->setPropertyValue( WW8_ASCII2STR("VisualEffect"), aTmp);

	if (pValue && !bSetInDialog)
	{
		INT16 nTmp=pValue[0]-0x30;
		aTmp <<= nTmp;
		rPropSet->setPropertyValue( WW8_ASCII2STR("DefaultState"), aTmp);
	}

	if (pCaption)
	{
        aTmp <<= lclCreateOUString( pCaption, nCaptionLen );
		rPropSet->setPropertyValue( WW8_ASCII2STR("Label"), aTmp);
	}

    // #i40279# always centered vertically
    aTmp <<= ::com::sun::star::style::VerticalAlignment_MIDDLE;
    rPropSet->setPropertyValue( WW8_ASCII2STR("VerticalAlign"), aTmp );

    aFontData.Import(rPropSet);
	return(sal_True);
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 2018 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2268 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2416 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx
Starting at line 2486 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const SvxMSDffCalculationData mso_sptActionButtonMovieCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
	{ 0x6000, DFF_Prop_geoLeft, DFF_Prop_adjustValue, 0 },
	{ 0x6000, DFF_Prop_geoTop, DFF_Prop_adjustValue, 0 },
	{ 0xa000, DFF_Prop_geoRight, 0, DFF_Prop_adjustValue },
	{ 0xa000, DFF_Prop_geoBottom, 0, DFF_Prop_adjustValue },
	{ 0x8000, 10800, 0, DFF_Prop_adjustValue },
	{ 0x2001, 0x0405, 1, 10800 },							// scaling	 6
	{ 0x6000, DFF_Prop_geoRight, DFF_Prop_geoLeft, 10800 },	// lr center 7
	{ 0x6000, DFF_Prop_geoBottom, DFF_Prop_geoTop, 10800 },	// ul center 8

	{ 0x4001, -8050, 0x0406, 1 },	// 9
	{ 0x6000, 0x0409, 0x0407, 0 },	// a
	{ 0x4001, -4020, 0x0406, 1 },	// b
=====================================================================
Found a 16 line (119 tokens) duplication in the following files: 
Starting at line 1966 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1710 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFoldedCornerVert[] =	// adjustment1 : x 10800 - 21600
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 0 MSO_I }, { 0 MSO_I, 21600 },
	{ 0, 21600 }, { 0 MSO_I, 21600 }, { 3 MSO_I, 0 MSO_I }, { 8 MSO_I, 9 MSO_I },
	{ 10 MSO_I, 11 MSO_I }, { 21600, 0 MSO_I }
};
static const sal_uInt16 mso_sptFoldedCornerSegm[] =
{
	0x4000, 0x0004, 0x6001, 0x8000,
	0x4000, 0x0001, 0x2001, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptFoldedCornerCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 1560 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1386 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptDownArrowCalloutVert[] =
{
	{ 0, 0 MSO_I }, { 0, 0 }, { 21600, 0 }, { 21600, 0 MSO_I },
	{ 5 MSO_I, 0 MSO_I }, { 5 MSO_I, 2 MSO_I }, { 4 MSO_I, 2 MSO_I }, { 10800, 21600 }, 
	{ 1 MSO_I, 2 MSO_I }, { 3 MSO_I, 2 MSO_I }, { 3 MSO_I, 0 MSO_I }
};
static const sal_uInt16 mso_sptDownArrowCalloutSegm[] =
{
	0x4000, 0x000a, 0x6001,	0x8000
};
static const SvxMSDffCalculationData mso_sptDownArrowCalloutCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 1511 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1347 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptUpArrowCalloutVert[] =
{
	{ 21600, 0 MSO_I }, { 21600, 21600 }, { 0, 21600 }, { 0, 0 MSO_I },
	{ 3 MSO_I, 0 MSO_I }, { 3 MSO_I, 2 MSO_I }, { 1 MSO_I, 2 MSO_I }, { 10800, 0 },
	{ 4 MSO_I, 2 MSO_I }, { 5 MSO_I, 2 MSO_I }, { 5 MSO_I, 0 MSO_I }
};
static const sal_uInt16 mso_sptUpArrowCalloutSegm[] =
{
	0x4000, 0x000a, 0x6001,	0x8000
};
static const SvxMSDffCalculationData mso_sptUpArrowCalloutCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1308 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptLeftArrowCalloutVert[] =	// adjustment1 : x 0 - 21600, adjustment2 : y 0 - 10800
{																// adjustment3 : x 0 - 21600, adjustment4 : y 0 - 10800
	{ 0 MSO_I, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0 MSO_I, 21600 },
	{ 0 MSO_I, 5 MSO_I }, { 2 MSO_I, 5 MSO_I }, { 2 MSO_I, 4 MSO_I }, { 0, 10800 },
	{ 2 MSO_I, 1 MSO_I }, { 2 MSO_I, 3 MSO_I }, { 0 MSO_I, 3 MSO_I }
};
static const sal_uInt16 mso_sptLeftArrowCalloutSegm[] =
{
	0x4000, 0x000a, 0x6001,	0x8000
};
static const SvxMSDffCalculationData mso_sptLeftArrowCalloutCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 1413 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1269 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptRightArrowCalloutVert[] =	// adjustment1 : x 0 - 21000
{																// adjustment2 : y 0 - 10800
	{ 0, 0 }, { 0 MSO_I, 0 }, { 0 MSO_I, 3 MSO_I }, { 2 MSO_I, 3 MSO_I },
	{ 2 MSO_I, 1 MSO_I }, { 21600, 10800 }, { 2 MSO_I, 4 MSO_I }, { 2 MSO_I, 5 MSO_I },
	{ 0 MSO_I, 5 MSO_I }, { 0 MSO_I, 21600 }, { 0, 21600 }
};
static const sal_uInt16 mso_sptRightArrowCalloutSegm[] =
{
	0x4000, 0x000a, 0x6001,	0x8000
};
static const SvxMSDffCalculationData mso_sptRightArrowCalloutCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 23 line (119 tokens) duplication in the following files: 
Starting at line 534 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx
Starting at line 623 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx

        Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY );
        URLToDispatchMap::iterator pIter = m_aListenerMap.begin();
        while ( pIter != m_aListenerMap.end() )
        {
            Reference< XURLTransformer > xURLTransformer = getURLTransformer();
            com::sun::star::util::URL aTargetURL;
            aTargetURL.Complete = pIter->first;
            xURLTransformer->parseStrict( aTargetURL );

            Reference< XDispatch > xDispatch( pIter->second );
            if ( xDispatch.is() )
            {
                // We already have a dispatch object => we have to requery.
                // Release old dispatch object and remove it as listener
                try
                {
                    xDispatch->removeStatusListener( xStatusListener, aTargetURL );
                }
                catch ( Exception& )
                {
                }
            }
            pIter->second.clear();
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/valueacc.cxx
Starting at line 798 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/valueacc.cxx

void ValueItemAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValue, const uno::Any& rNewValue )
{
    if( nEventId )
    {
        ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >                  aTmpListeners( mxEventListeners );
        ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::const_iterator  aIter( aTmpListeners.begin() );
        accessibility::AccessibleEventObject                                                        aEvtObject;

        aEvtObject.EventId = nEventId;
        aEvtObject.Source = static_cast<uno::XWeak*>(this);
        aEvtObject.NewValue = rNewValue;
	    aEvtObject.OldValue = rOldValue;

		while( aIter != aTmpListeners.end() )
        {
=====================================================================
Found a 22 line (119 tokens) duplication in the following files: 
Starting at line 780 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/plugin.cxx
Starting at line 833 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/inplace/plugin.cxx

		xStm->SetVersion( pStor->GetVersion() );
		xStm->SetBufferSize( 8192 );

		*xStm << (BYTE)PLUGIN_VERS;
		*xStm << nPlugInMode;
		*xStm << aCmdList;
		if( pURL )
		{
			*xStm << (BYTE)TRUE;
            String aURL = pURL->GetMainURL( INetURLObject::NO_DECODE );
            if( aURL.Len() )
                aURL = so3::StaticBaseUrl::AbsToRel( aURL );
			xStm->WriteByteString( aURL, RTL_TEXTENCODING_ASCII_US );
		}
		else
			*xStm << (BYTE)FALSE;
		xStm->WriteByteString( GetMimeType(), RTL_TEXTENCODING_ASCII_US );

		return xStm->GetError() == ERRCODE_NONE;
	}
	return FALSE;
}
=====================================================================
Found a 17 line (119 tokens) duplication in the following files: 
Starting at line 808 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/drawview.cxx
Starting at line 831 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/drawview.cxx

void ScDrawView::StoreCaptionDimensions()
{
    SdrObject* pObj = NULL;
    const SdrMarkList&	rMarkList	= GetMarkedObjectList();

    if( rMarkList.GetMarkCount() == 1 )
        pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();

    if ( pObj && pObj->GetLayer() == SC_LAYER_INTERN && pObj->ISA(SdrCaptionObj) )
    {
        ScAddress aTabPos;
        ScDrawObjData* pData = ScDrawLayer::GetObjData( pObj );
        if( pData )
            aTabPos = pData->aStt;
        ScPostIt aNote(pDoc);
        if(pDoc->GetNote( aTabPos.Col(), aTabPos.Row(), aTabPos.Tab(), aNote ))
        {
=====================================================================
Found a 20 line (119 tokens) duplication in the following files: 
Starting at line 598 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undodat.cxx
Starting at line 727 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undodat.cxx

	pDoc->SetOutlineTable( nTab, pUndoTable );

	//	Original Spalten-/Zeilenstatus

	if (pUndoDoc && pUndoTable)
	{
		SCCOLROW nStartCol;
		SCCOLROW nStartRow;
		SCCOLROW nEndCol;
		SCCOLROW nEndRow;
		pUndoTable->GetColArray()->GetRange( nStartCol, nEndCol );
		pUndoTable->GetRowArray()->GetRange( nStartRow, nEndRow );

        pUndoDoc->CopyToDocument( static_cast<SCCOL>(nStartCol), 0, nTab,
                static_cast<SCCOL>(nEndCol), MAXROW, nTab, IDF_NONE, FALSE,
                pDoc);
		pUndoDoc->CopyToDocument( 0, nStartRow, nTab, MAXCOL, nEndRow, nTab, IDF_NONE, FALSE, pDoc );

		pViewShell->UpdateScrollBars();
	}
=====================================================================
Found a 21 line (119 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/anyrefdg.cxx
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/anyrefdg.cxx

void lcl_InvalidateWindows()
{
	TypeId aType(TYPE(ScDocShell));
	ScDocShell* pDocShell = (ScDocShell*)SfxObjectShell::GetFirst(&aType);
	while( pDocShell )
	{
		SfxViewFrame* pFrame = SfxViewFrame::GetFirst( pDocShell );
		while( pFrame )
		{
			//	#71577# enable everything except InPlace, including bean frames
            if ( !pFrame->GetFrame()->IsInPlace() )
			{
				SfxViewShell* p = pFrame->GetViewShell();
				ScTabViewShell* pViewSh = PTR_CAST(ScTabViewShell,p);
				if(pViewSh!=NULL)
				{
					Window *pWin=pViewSh->GetWindow();
					if(pWin)
					{
						Window *pParent=pWin->GetParent();
						if(pParent)
=====================================================================
Found a 17 line (119 tokens) duplication in the following files: 
Starting at line 817 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column3.cxx
Starting at line 863 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column3.cxx

					{
						BOOL bDoIns = FALSE;
						USHORT nMask = nFlags & ( IDF_DATETIME | IDF_VALUE );
						if ( nMask == (IDF_DATETIME | IDF_VALUE) )
							bDoIns = TRUE;
						else if ( nMask )
						{
							ULONG nNumIndex = (ULONG)((SfxUInt32Item*) GetAttr(
									pItems[nIndex].nRow, ATTR_VALUE_FORMAT ))->GetValue();
							short nTyp = pDocument->GetFormatTable()->GetType(nNumIndex);
							if (nTyp == NUMBERFORMAT_DATE || nTyp == NUMBERFORMAT_TIME || nTyp == NUMBERFORMAT_DATETIME)
								bDoIns = (nFlags & IDF_DATETIME)!=0;
							else
								bDoIns = (nFlags & IDF_VALUE)!=0;
						}

						if (bDoIns)
=====================================================================
Found a 16 line (119 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column2.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column2.cxx

BOOL lcl_RemoveThis( ScDocument* pDocument, SCCOL nCol, SCROW nRow, SCTAB nTab )
{
	ScDBCollection* pDBColl = pDocument->GetDBCollection();
	if ( pDBColl )
	{
		USHORT nCount = pDBColl->GetCount();
		for (USHORT i=0; i<nCount; i++)
		{
			ScDBData* pData = (*pDBColl)[i];
			if ( pData->IsStripData() &&
					pData->HasImportParam() && !pData->HasImportSelection() )
			{
				ScRange aDBRange;
				pData->GetArea(aDBRange);
				if ( nTab == aDBRange.aStart.Tab() &&
					 nCol >= aDBRange.aStart.Col() && nCol <= aDBRange.aEnd.Col() &&
=====================================================================
Found a 22 line (119 tokens) duplication in the following files: 
Starting at line 1216 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx
Starting at line 1460 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx

                new OUStringBuffer(kSInt32Max), sal_False }
#endif
	};


    sal_Bool res = sal_True;
    sal_Int32 i;

    for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
    {
        arrTestCase[i].input1->append( 
                    arrTestCase[i].input2 );
        sal_Bool lastRes = 
            ( arrTestCase[i].input1->getStr()== *(arrTestCase[i].expVal) && 
              arrTestCase[i].input1->getLength() == arrTestCase[i].expVal->getLength()  );

        c_rtl_tres_state
        (
            hRtlTestResult,
            lastRes,
            arrTestCase[i].comments,
            createName( pMeth, "append( sal_Bool b)_004", i )
=====================================================================
Found a 40 line (119 tokens) duplication in the following files: 
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_DatagramSocket.cxx
Starting at line 3681 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

			::osl::SocketAddr saListenSocketAddr2( aHostIp2, IP_PORT_MYPORT10 );
			::osl::DatagramSocket dsSocket;
			
			dsSocket.enableNonBlockingMode( sal_True );

			sal_Char pReadBuffer[30];
			//sal_Int32 nRecv1 = dsSocket.recvFrom( pReadBuffer, 30, &saListenSocketAddr1 );
			
			// will block ?
			CloseSocketThread myThread( dsSocket );
			myThread.create();
			sal_Int32 nRecv2 = dsSocket.recvFrom( pReadBuffer, 30, &saListenSocketAddr1 );
			myThread.join();
			//t_print("#nRecv1 is %d nRecv2 is %d\n", nRecv1, nRecv2 );
			CPPUNIT_ASSERT_MESSAGE( "DatagramSocket sendTo should fail: nSend <= 0.", 
				 nRecv2 == -1 );	
		}	
		
		CPPUNIT_TEST_SUITE( sendTo_recvFrom );
		CPPUNIT_TEST( sr_001 );
		CPPUNIT_TEST( sr_002 );
		CPPUNIT_TEST( sr_003 );
		CPPUNIT_TEST( sr_004 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class sendTo_recvFrom
	
// -----------------------------------------------------------------------------

CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_DatagramSocket::ctors, "osl_DatagramSocket"); 
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_DatagramSocket::sendTo_recvFrom, "osl_DatagramSocket"); 

} // namespace osl_DatagramSocket


// -----------------------------------------------------------------------------

// this macro creates an empty function, which will called by the RegisterAllFunctions()
// to let the user the possibility to also register some functions by hand.
NOADDITIONAL;
=====================================================================
Found a 28 line (119 tokens) duplication in the following files: 
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_ConnectorSocket.cxx
Starting at line 3239 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

			::osl::SocketAddr saPeerSocketAddr( aHostIp2, IP_PORT_FTP );
			::osl::StreamSocket ssConnection;
			
			/// launch server socket 
			asAcceptorSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True);
			sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket bind address failed.", sal_True == bOK1 );
			sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket listen failed.",  sal_True == bOK2 );
			
			//asAcceptorSocket.enableNonBlockingMode( sal_True );
			//oslSocketResult eResultAccept = asAcceptorSocket.acceptConnection(ssConnection); /// waiting for incoming connection...
			//CPPUNIT_ASSERT_MESSAGE( "accept failed.",  osl_Socket_Ok == eResultAccept );
			/// launch client socket 
			oslSocketResult eResult = csConnectorSocket.connect( saTargetSocketAddr, pTimeout );   /// connecting to server...
			CPPUNIT_ASSERT_MESSAGE( "connect failed.",  osl_Socket_Ok == eResult );

			/// get peer information
			csConnectorSocket.getPeerAddr( saPeerSocketAddr );/// connected.
			
			CPPUNIT_ASSERT_MESSAGE( "test for connect function: try to create a connection with remote host. and check the setup address.", 
									( sal_True == compareSocketAddr( saPeerSocketAddr, saLocalSocketAddr ) ) &&
									( osl_Socket_Ok == eResult ));
		}
		//non-blocking mode connect?
		void connect_002()
		{
			::osl::SocketAddr saLocalSocketAddr( aHostIp1, IP_PORT_MYPORT3 );
=====================================================================
Found a 31 line (119 tokens) duplication in the following files: 
Starting at line 4043 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 4796 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx

		::osl::FileBase::RC      nError1, nError2;
		sal_uInt64 nCount_write, nCount_read;
		
	    public:
		// initialization
		void setUp( )
		{
			// create a tempfile in $TEMP/tmpdir/tmpname.
			createTestDirectory( aTmpName3 );
			createTestFile( aTmpName4 );
			
			//write chars into the file. 
			::osl::File testFile( aTmpName4 );
			
			nError1 = testFile.open( OpenFlag_Write );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
			nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
 			nError1 = testFile.close( );
			CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
		}

		void tearDown( )
		{
			// remove the tempfile in $TEMP/tmpdir/tmpname.
			deleteTestFile( aTmpName4 );
			deleteTestDirectory( aTmpName3 );
		}

		// test code.
		void move_001( )
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/file_url.cxx
Starting at line 521 of /local/ooo-build/ooo-build/src/oog680-m3/sal/rtl/source/uri.cxx

       { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Uric */
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
         0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* !"#$%&'()*+,-./*/
         1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, /*0123456789:;<=>?*/
=====================================================================
Found a 26 line (119 tokens) duplication in the following files: 
Starting at line 443 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/zippackage/ZipPackageStream.cxx
Starting at line 476 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/zippackage/ZipPackageStream.cxx

			return rZipPackage.getZipFile().getInputStream( aEntry, xEncryptionData, bIsEncrypted );
		}
		else if ( GetOwnSeekStream().is() )
		{
			if ( !m_aSharedMutexRef.Is() )
				m_aSharedMutexRef = new SotMutexHolder();
			return new WrapStreamForShare( GetOwnSeekStream(), m_aSharedMutexRef );
		}
		else
			return Reference < io::XInputStream > ();
	}
	catch (ZipException &)//rException)
	{
		VOS_ENSURE( 0,"ZipException thrown");//rException.Message);
		return Reference < io::XInputStream > ();
	}
	catch (Exception &)
	{
		VOS_ENSURE( 0, "Exception is thrown during stream wrapping!\n");
		return Reference < io::XInputStream > ();
	}
}

// XDataSinkEncrSupport
//--------------------------------------------------------------------------
Reference< io::XInputStream > SAL_CALL ZipPackageStream::getDataStream()
=====================================================================
Found a 9 line (119 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 19 line (119 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx
Starting at line 562 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx

    virtual Reference < XInputStream > SAL_CALL getInputStream(void)
		throw (RuntimeException);

public: // XConnectable
    virtual void SAL_CALL setPredecessor(const Reference < XConnectable > & aPredecessor)
		throw (RuntimeException);
    virtual Reference < XConnectable > SAL_CALL getPredecessor(void)
		throw (RuntimeException);
    virtual void SAL_CALL setSuccessor(const Reference < XConnectable > & aSuccessor)
		throw (RuntimeException);
    virtual Reference < XConnectable > SAL_CALL getSuccessor(void) throw (RuntimeException);

public: // XServiceInfo
    OUString                     SAL_CALL getImplementationName() throw ();
    Sequence< OUString >         SAL_CALL getSupportedServiceNames(void) throw ();
    sal_Bool                         SAL_CALL  supportsService(const OUString& ServiceName) throw ();

private:
	void checkMarksAndFlush();
=====================================================================
Found a 19 line (119 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx

	virtual Reference < XOutputStream > SAL_CALL getOutputStream(void) throw (RuntimeException);

public: // XConnectable
    virtual void SAL_CALL setPredecessor(const Reference < XConnectable >& aPredecessor)
		throw (RuntimeException);
	virtual Reference < XConnectable > SAL_CALL getPredecessor(void)
		throw (RuntimeException);
	virtual void SAL_CALL setSuccessor(const Reference < XConnectable >& aSuccessor)
		throw (RuntimeException);
    virtual Reference < XConnectable > SAL_CALL getSuccessor(void)
		throw (RuntimeException);

public: // XServiceInfo
    OUString                     SAL_CALL getImplementationName() throw ();
    Sequence< OUString >         SAL_CALL getSupportedServiceNames(void) throw ();
    sal_Bool                     SAL_CALL supportsService(const OUString& ServiceName) throw ();

protected:
	Reference < XConnectable > 	m_succ;
=====================================================================
Found a 25 line (119 tokens) duplication in the following files: 
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/astunion.cxx
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/astunion.cxx

	pDecl = NULL;

	while ( iter != end ) 
	{
		pDecl = *iter;
		if ( pDecl->getNodeType() == NT_union_branch ) 
		{
			pB = (AstUnionBranch*)pDecl;
			if ( !pB ) 
			{
				++iter;
				continue;
			}
			if ( pB->getLabel() != NULL &&
				 pB->getLabel()->getLabelKind() == UL_label &&
				 pB->getLabel()->getLabelValue()->compare(pLabel->getLabelValue()) ) 
			{
				idlc()->error()->error2(EIDL_MULTIPLE_BRANCH, this, pBranch);
				return pBranch;
			}
		}
	    ++iter;
	}
	return NULL;
}	
=====================================================================
Found a 5 line (119 tokens) duplication in the following files: 
Starting at line 1554 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 1338 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1392 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10, 0, 0, 0, 0, 0,10,10,10,10,10,10,10,// 2610 - 261f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2620 - 262f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2630 - 263f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2640 - 264f
=====================================================================
Found a 60 line (119 tokens) duplication in the following files: 
Starting at line 1161 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
        0, // POINTER_AIRBRUSH
        0, // POINTER_TEXT_VERTICAL
        0, // POINTER_PIVOT_DELETE
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1136 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c00 - 0c0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c10 - 0c1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c20 - 0c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,// 0c30 - 0c3f
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 1078 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0980 - 098f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0990 - 099f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 09a0 - 09af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 09b0 - 09bf
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 1078 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1085 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0900 - 090f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0910 - 091f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0920 - 092f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 0930 - 093f
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0980 - 098f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0990 - 099f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 09a0 - 09af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 09b0 - 09bf
=====================================================================
Found a 5 line (119 tokens) duplication in the following files: 
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
=====================================================================
Found a 5 line (119 tokens) duplication in the following files: 
Starting at line 567 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,27,27,27,27, 0,27,27,27,27, 0, 0,27,27,27,27,// 2700 - 270f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2710 - 271f
    27,27,27,27,27,27,27,27, 0,27,27,27,27,27,27,27,// 2720 - 272f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2730 - 273f
    27,27,27,27,27,27,27,27,27,27,27,27, 0,27, 0,27,// 2740 - 274f
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 897 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 16 line (119 tokens) duplication in the following files: 
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/search/textsearch.cxx
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/search/textsearch.cxx

	sres2 = (this->*fnBackward)( in_str, startPos, endPos );

        for( int k = 0; k < sres2.startOffset.getLength(); k++ )
        {
            if (sres2.startOffset[k])
                sres2.startOffset[k] = offset[sres2.startOffset[k]-1]+1;
            if (sres2.endOffset[k])
                sres2.endOffset[k] = offset[sres2.endOffset[k]-1]+1;
        }

	// pick last and long one
	if ( sres.subRegExpressions == 0 )
	    return sres2;
	if ( sres2.subRegExpressions == 1 )
	{
	    if ( sres.startOffset[0] < sres2.startOffset[0] )
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1280 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f80 - 1f8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1f90 - 1f9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1fa0 - 1faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,// 1fb0 - 1fbf
=====================================================================
Found a 4 line (119 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27, 0,27,27,27, 0,27, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4c0 - a4cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4d0 - a4df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4e0 - a4ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff
=====================================================================
Found a 7 line (119 tokens) duplication in the following files: 
Starting at line 306 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp

     5,     6,     7,     8,     9,    10,    11,    12,     0,     0,
    13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
     0,     0,    23,     0,    24,    25,    26,     0,    27,     0,
     0,     0,    81,     1,     2,     3,     4,     5,     6,     7,
     8,     9,    10,    11,    12,     0,     0,    13,    14,    15,
    16,    17,    18,    19,    20,    21,    22,     0,     0,    23,
     0,    24,    25,    26,     0,    27,     0,     0,     0,    97,
=====================================================================
Found a 10 line (119 tokens) duplication in the following files: 
Starting at line 1132 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ipict/ipict.cxx
Starting at line 1364 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ipict/ipict.cxx

		*pPict >> nUSHORT;
		if      (nUSHORT <=    1) aActFont.SetFamily(FAMILY_SWISS);
		else if (nUSHORT <=   12) aActFont.SetFamily(FAMILY_DECORATIVE);
		else if (nUSHORT <=   20) aActFont.SetFamily(FAMILY_ROMAN);
		else if (nUSHORT ==   21) aActFont.SetFamily(FAMILY_SWISS);
		else if (nUSHORT ==   22) aActFont.SetFamily(FAMILY_MODERN);
		else if (nUSHORT <= 1023) aActFont.SetFamily(FAMILY_SWISS);
		else                      aActFont.SetFamily(FAMILY_ROMAN);
		if (nUSHORT==23) aActFont.SetCharSet( RTL_TEXTENCODING_SYMBOL);
		else aActFont.SetCharSet( gsl_getSystemTextEncoding() );
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epbm/dlgepbm.cxx
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epgm/dlgepgm.cxx
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eppm/dlgeppm.cxx

				ModalDialog			( rPara.pWindow, ResId( DLG_EXPORT_EPPM, *rPara.pResMgr ) ),
				rFltCallPara		( rPara ),
				aGrpFormat			( this, ResId( GRP_FORMAT, *rPara.pResMgr ) ),
				aRBRaw				( this, ResId( RB_RAW, *rPara.pResMgr ) ),
				aRBASCII			( this, ResId( RB_ASCII, *rPara.pResMgr ) ),
				aBtnOK				( this, ResId( BTN_OK, *rPara.pResMgr ) ),
				aBtnCancel			( this, ResId( BTN_CANCEL, *rPara.pResMgr ) ),
				aBtnHelp			( this, ResId( BTN_HELP, *rPara.pResMgr ) ),
				pMgr				( rPara.pResMgr )
{
	FreeResource();

	// Config-Parameter lesen

	String	aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/PPM" ) );
=====================================================================
Found a 22 line (119 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/eventsconfiguration.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesconfiguration.cxx

static Reference< XParser > GetSaxParser(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	//Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	//return Reference< XParser >( xServiceManager->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
	return Reference< XParser >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	//Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	//return Reference< XDocumentHandler >( xServiceManager->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
	return Reference< XDocumentHandler >( xServiceFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )), UNO_QUERY) ;
}

// #110897#
sal_Bool ImagesConfiguration::LoadImages( 
=====================================================================
Found a 14 line (119 tokens) duplication in the following files: 
Starting at line 2523 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx
Starting at line 2906 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx

            rUIElement.m_aDockedData.m_aPos.X() = nPosX;
        }
        else
        {
            sal_Int32 nMaxDockingAreaHeight = std::max( sal_Int32( 0 ),
                                                        sal_Int32( nMaxLeftRightDockAreaSize ));

            sal_Int32 nPosY( std::max( sal_Int32( aTrackingRect.Top()), sal_Int32( nTopDockingAreaSize )));
            if (( nPosY + aTrackingRect.getHeight()) > ( nTopDockingAreaSize + nMaxDockingAreaHeight ))
                nPosY = std::min( nPosY,
                                std::max( sal_Int32( nTopDockingAreaSize + ( nMaxDockingAreaHeight - aTrackingRect.getHeight() )),
                                        sal_Int32( nTopDockingAreaSize )));

            sal_Int32 nSize = std::min( nMaxDockingAreaHeight, static_cast<sal_Int32>(aTrackingRect.getHeight()) );
=====================================================================
Found a 24 line (119 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/eventsconfiguration.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/imagesconfiguration.cxx

static Reference< XParser > GetSaxParser(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	// #110897#
	// Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	return Reference< XParser >( xServiceFactory->createInstance(
		::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Parser" )), UNO_QUERY);
}

static Reference< XDocumentHandler > GetSaxWriter(
	// #110897#
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
	)
{
	// #110897#
	//Reference< XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
	return Reference< XDocumentHandler >( xServiceFactory->createInstance(
		::rtl::OUString::createFromAscii( "com.sun.star.xml.sax.Writer" )),  UNO_QUERY) ;
}

// #110897#
sal_Bool ImagesConfiguration::LoadImages( 
=====================================================================
Found a 9 line (119 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 22 line (119 tokens) duplication in the following files: 
Starting at line 1283 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1660 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx

                const BYTE* 				pData = pA->GetData();
				String						aSkipComment;

				if( pA->GetComment().CompareIgnoreCaseToAscii( "XGRAD_SEQ_BEGIN" ) == COMPARE_EQUAL )
				{
					const MetaGradientExAction*	pGradAction = NULL;
					sal_Bool					bDone = sal_False;

					while( !bDone && ( ++i < nCount ) )
					{
						pAction = rMtf.GetAction( i );

						if( pAction->GetType() == META_GRADIENTEX_ACTION )
							pGradAction = (const MetaGradientExAction*) pAction;
						else if( ( pAction->GetType() == META_COMMENT_ACTION ) && 
								 ( ( (const MetaCommentAction*) pAction )->GetComment().CompareIgnoreCaseToAscii( "XGRAD_SEQ_END" ) == COMPARE_EQUAL ) )
						{
							bDone = sal_True;
						}
					}

					if( pGradAction )
=====================================================================
Found a 9 line (119 tokens) duplication in the following files: 
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olecomponent.cxx
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xdialogcreator.cxx

				sal_uInt8* pBuf = (sal_uInt8*)( aMetafile.getArray() );
				*( (long* )pBuf ) = 0x9ac6cdd7L;
				*( (short* )( pBuf+6 )) = ( SHORT ) 0;
				*( (short* )( pBuf+8 )) = ( SHORT ) 0;
				*( (short* )( pBuf+10 )) = ( SHORT ) pMF->xExt;
				*( (short* )( pBuf+12 )) = ( SHORT ) pMF->yExt;
				*( (short* )( pBuf+14 )) = ( USHORT ) 2540;

				if ( nBufSize && nBufSize == GetMetaFileBitsEx( pMF->hMF, nBufSize, pBuf+22 ) )
=====================================================================
Found a 13 line (119 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CDriver.cxx
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDriver.cxx
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/EDriver.cxx

::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >  SAL_CALL connectivity::flat::ODriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
	return *(new ODriver(_rxFactory));
}
// --------------------------------------------------------------------------------
Reference< XConnection > SAL_CALL ODriver::connect( const ::rtl::OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	if (ODriver_BASE::rBHelper.bDisposed)
       throw DisposedException();

	if ( ! acceptsURL(url) )
		return NULL;
=====================================================================
Found a 20 line (119 tokens) duplication in the following files: 
Starting at line 1958 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 2113 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

												  const ::rtl::OUString& table,
												  const ::rtl::OUString& columnNamePattern )
{
	// Create elements used in the array
	HRESULT hr = S_OK;
	SAFEARRAYBOUND rgsabound[1];
	SAFEARRAY *psa = NULL;
	OLEVariant varCriteria[4];

	// Create SafeArray Bounds and initialize the array
	rgsabound[0].lLbound   = 0;
	rgsabound[0].cElements = sizeof varCriteria / sizeof varCriteria[0];
	psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

	sal_Int32 nPos=0;
	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schema.getLength() && schema.toChar() != '%')
=====================================================================
Found a 43 line (119 tokens) duplication in the following files: 
Starting at line 421 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgupdate.cxx

	::flush(cout);
}

// -----------------------------------------------------------------------------
// ---------------------------------- M A I N ----------------------------------
// -----------------------------------------------------------------------------

#if (defined UNX) || (defined OS2)
int main( int argc, char * argv[] )
#else
int _cdecl main( int argc, char * argv[] )
#endif
{
	TimeValue aTimeout;
	aTimeout.Seconds = 5;
	aTimeout.Nanosec = 0;

	// cout << "    Please insert Text: ";
	// cout.flush();
	// OString aTxt = input("Der Text", 0);
	// cout << endl << "You inserted: " << aTxt.getStr() << endl;
	// 
	// cout << "Please insert Password: ";
	// cout.flush();
	// OString aPasswd = input("", '*');
	// cout << endl << "You inserted: " << aPasswd.getStr() << endl;

	try
	{
		OUString const sServiceRegistry = OUString::createFromAscii( argc > 1 ? argv[1] : "applicat.rdb" );
		Reference< XMultiServiceFactory > xORB = createRegistryServiceFactory(
			sServiceRegistry,
			::rtl::OUString()
			);
		if (!xORB.is())
		{
			::flush(cout);
			cerr << "Could not create the service factory !\n\n";
			return 1;
		}
		cout << "Service factory created !\n---------------------------------------------------------------" << endl;

		Sequence< Any > aCPArgs;
=====================================================================
Found a 27 line (119 tokens) duplication in the following files: 
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
=====================================================================
Found a 9 line (119 tokens) duplication in the following files: 
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 626 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

    * p++ = 0x9061e0bc;
    * p++ = 0x3c600000 | (((unsigned long)cpp_vtable_call) >> 16);
    * p++ = 0x60630000 | (((unsigned long)cpp_vtable_call) & 0x0000FFFF);
    * p++ = 0x7c6903a6;
    * p++ = 0x3c600000 | (((unsigned long)functionIndex) >> 16);
    * p++ = 0x60630000 | (((unsigned long)functionIndex) & 0x0000FFFF);
    * p++ = 0x3c800000 | (((unsigned long)vtableOffset) >> 16);
    * p++ = 0x60840000 | (((unsigned long)vtableOffset) & 0x0000FFFF);
    * p++ = 0x38a1e0c0;
=====================================================================
Found a 25 line (119 tokens) duplication in the following files: 
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx

	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if ( pUnoExc )
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); // has to destruct the any
=====================================================================
Found a 19 line (119 tokens) duplication in the following files: 
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 322 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
			{
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );
			
                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[1] ),
                        &pInterface, pTD, cpp_acquire );
=====================================================================
Found a 13 line (119 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/jurt/source/pipe/com_sun_star_lib_connections_pipe_PipeConnection.c

static void ThrowException(JNIEnv * env, char const * type, char const * msg) {
    jclass c;
    (*env)->ExceptionClear(env);
    c = (*env)->FindClass(env, type);
    if (c == NULL) {
        (*env)->ExceptionClear(env);
        (*env)->FatalError(env, "JNI FindClass failed");
    }
    if ((*env)->ThrowNew(env, c, msg) != 0) {
        (*env)->ExceptionClear(env);
        (*env)->FatalError(env, "JNI ThrowNew failed");
    }
}
=====================================================================
Found a 22 line (119 tokens) duplication in the following files: 
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxobj.cxx
Starting at line 600 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxobj.cxx

void SbxObject::VCPtrInsert( SbxVariable* pVar )
{
	SbxArray* pArray = NULL;
	if( pVar )
	{
		switch( pVar->GetClass() )
		{
			case SbxCLASS_VARIABLE:
			case SbxCLASS_PROPERTY: pArray = pProps;	break;
			case SbxCLASS_METHOD: 	pArray = pMethods;	break;
			case SbxCLASS_OBJECT: 	pArray = pObjs;		break;
			default:
				DBG_ASSERT( !this, "Ungueltige SBX-Klasse" );
		}
	}
	if( pArray )
	{
		StartListening( pVar->GetBroadcaster(), TRUE );
		pArray->Put( pVar, pArray->Count() );
		if( pVar->GetParent() != this )
			pVar->SetParent( this );
		SetModified( TRUE );
=====================================================================
Found a 15 line (119 tokens) duplication in the following files: 
Starting at line 477 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside2.cxx
Starting at line 539 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside2.cxx

	if ( aCurPath.Len() )
		xFP->setDisplayDirectory ( aCurPath );

	//xFP->setTitle( String( IDEResId( RID_STR_SAVE ) ) );

    Reference< XFilterManager > xFltMgr(xFP, UNO_QUERY);
	xFltMgr->appendFilter( String( RTL_CONSTASCII_USTRINGPARAM( "BASIC" ) ), String( RTL_CONSTASCII_USTRINGPARAM( "*.bas" ) ) );
	xFltMgr->appendFilter( String( IDEResId( RID_STR_FILTER_ALLFILES ) ), String( RTL_CONSTASCII_USTRINGPARAM( FILTERMASK_ALL ) ) );
	xFltMgr->setCurrentFilter( String( RTL_CONSTASCII_USTRINGPARAM( "BASIC" ) ) );

    if( xFP->execute() == RET_OK )
	{
		Sequence< ::rtl::OUString > aPaths = xFP->getFiles();
		aCurPath = aPaths[0];
		SfxMedium aMedium( aCurPath, STREAM_WRITE | STREAM_SHARE_DENYWRITE | STREAM_TRUNC, TRUE, FALSE );
=====================================================================
Found a 8 line (119 tokens) duplication in the following files: 
Starting at line 3937 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 4000 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

				if ( pControl->GetType() == WINDOW_DOCKINGWINDOW && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_FLOATINGWINDOW )
					pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r FloatingWindows
				if ( pControl->GetType() == WINDOW_TABCONTROL && pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_TABDIALOG )
					pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r TabDialoge
				if ( pControl->GET_REAL_PARENT() && pControl->GET_REAL_PARENT()->GetType() == WINDOW_BORDERWINDOW )
					pControl = pControl->GET_REAL_PARENT();		// Sonderbehandlung f�r Border
                if ( (nParams & PARAM_BOOL_1) && bBool1 )
                    pControl = pControl->GetWindow( WINDOW_OVERLAP );
=====================================================================
Found a 32 line (118 tokens) duplication in the following files: 
Starting at line 20176 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 20655 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

     case OOXML_ATTRIBUTE_wordprocessingml_color:
        {
          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_HexColor(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
     case OOXML_ATTRIBUTE_wordprocessingml_themeColor:
        {
          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_ThemeColor(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
     case OOXML_ATTRIBUTE_wordprocessingml_themeTint:
        {
          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_UcharHexNumber(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
     case OOXML_ATTRIBUTE_wordprocessingml_themeShade:
        {
          OOXMLValue::Pointer_t pVal(new OOXMLValue_wordprocessingml_ST_UcharHexNumber(rValue));
          newProperty(nToken, pVal);

          bResult = true;
        }
      break;
=====================================================================
Found a 21 line (118 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_gray.h
Starting at line 282 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr  = m_wrap_mode_y(y >> image_subpixel_shift);
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                               ry_inv) >> 
                                   image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = m_wrap_mode_x(x_lr_ini);
                    int x_hr = x_hr_ini;
                    const value_type* row_ptr = (const value_type*)base_type::source_image().row(y_lr);
                    do
                    {
                        const value_type* fg_ptr = row_ptr + (x_lr << 2);
=====================================================================
Found a 20 line (118 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h

            base_type(alloc, src, color_type(0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
            calc_type fg;
            color_type* span = base_type::allocator().span();
=====================================================================
Found a 20 line (118 tokens) duplication in the following files: 
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr = y >> image_subpixel_shift;
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                                base_type::m_ry_inv) >> 
                                    image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   base_type::m_rx_inv) >> 
                                       image_subpixel_shift;
                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + (x_lr << 2);
=====================================================================
Found a 10 line (118 tokens) duplication in the following files: 
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 763 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                    if(fg[3] < 0) fg[3] = 0;

                    if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                    if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                    if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                    if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
                }
                else
                {
                    if(x_lr < start1 || y_lr < start1 ||
=====================================================================
Found a 17 line (118 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartOASISTContext.cxx
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/NotesTContext.cxx

	OSL_ENSURE( pActions, "go no actions" );

	Reference< XAttributeList > xAttrList( rAttrList );
	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
=====================================================================
Found a 6 line (118 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_mask.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/pivotdel_curs.h

   0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
=====================================================================
Found a 6 line (118 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawfreehand_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawtext_mask.h

static char drawtext_mask_bits[] = {
   0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00,
   0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00,
   0x80, 0x03, 0x00, 0x00, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0x01, 0x00,
   0xff, 0xff, 0x01, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00,
   0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0xc3, 0x1f, 0x00,
=====================================================================
Found a 6 line (118 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_mask.h

   0xf8, 0x7f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 34 line (118 tokens) duplication in the following files: 
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchydata.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/provider/provconf.cxx

                rtl::OUStringBuffer & rBuffer, const rtl::OUString & rIn )
{
    sal_Int32 nCount = rIn.getLength();
    for ( sal_Int32 n = 0; n < nCount; ++n )
    {
        const sal_Unicode c = rIn.getStr()[ n ];
        switch ( c )
        {
            case '&':
                rBuffer.appendAscii( "&amp;" );
                break;

            case '"':
                rBuffer.appendAscii( "&quot;" );
                break;

            case '\'':
                rBuffer.appendAscii( "&apos;" );
                break;

            case '<':
                rBuffer.appendAscii( "&lt;" );
                break;

            case '>':
                rBuffer.appendAscii( "&gt;" );
                break;

            default:
                rBuffer.append( c );
                break;
        }
    }
}
=====================================================================
Found a 19 line (118 tokens) duplication in the following files: 
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/urltest.cxx
Starting at line 612 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/urltest.cxx

				"vnd.sun.star.cmd:log[out]" };
		for (std::size_t i = 0; i < sizeof aTest / sizeof aTest[0]; ++i)
		{
			INetURLObject aUrl(aTest[i]);
			if (aUrl.HasError())
				printf("BAD %s\n", aTest[i]);
			else if (aUrl.GetMainURL(INetURLObject::DECODE_TO_IURI).
                         equalsAscii(aTest[i]) != sal_True)
			{
				String sTest(aUrl.GetMainURL(INetURLObject::DECODE_TO_IURI));
				printf("BAD %s -> %s\n",
					   aTest[i],
					   ByteString(sTest, RTL_TEXTENCODING_ASCII_US).GetBuffer());
			}
		}
	}

	if (true)
	{
=====================================================================
Found a 22 line (118 tokens) duplication in the following files: 
Starting at line 946 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 990 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

                aSynAbsURIRef.appendAscii(RTL_CONSTASCII_STRINGPARAM("//"));
				rtl::OUStringBuffer aSynAuthority;
				while (pPos < pEnd
					   && *pPos != '/' && *pPos != '?'
					   && *pPos != nFragmentDelimiter)
				{
					EscapeType eEscapeType;
					sal_uInt32 nUTF32 = getUTF32(pPos, pEnd, bOctets,
												 cEscapePrefix, eMechanism,
												 eCharset, eEscapeType);
					appendUCS4(aSynAuthority, nUTF32, eEscapeType, bOctets,
							   PART_AUTHORITY, cEscapePrefix, eCharset,
							   false);
				}
				if (aSynAuthority.getLength() == 0)
				{
					setInvalid();
					return false;
				}
				m_aHost.set(aSynAbsURIRef,
							aSynAuthority.makeStringAndClear(),
							aSynAbsURIRef.getLength());
=====================================================================
Found a 19 line (118 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/flddok.cxx
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/fldvar.cxx

			nTypeId = TYP_INPUTFLD;
		nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
		aTypeLB.SetEntryData(nPos, (void*)nTypeId);
        aNumFormatLB.SetAutomaticLanguage(pCurField->IsAutomaticLanguage());
        SwWrtShell *pSh = GetWrtShell();
        if(!pSh)
            pSh = ::GetActiveWrtShell();
        if(pSh)
        {        
            const SvNumberformat* pFormat = pSh->GetNumberFormatter()->GetEntry(pCurField->GetFormat());
            if(pFormat)
                aNumFormatLB.SetLanguage(pFormat->GetLanguage());
        }
    }

	// alte Pos selektieren
	RestorePos(&aTypeLB);

	aTypeLB.SetDoubleClickHdl		(LINK(this, SwFldVarPage, InsertHdl));
=====================================================================
Found a 11 line (118 tokens) duplication in the following files: 
Starting at line 1103 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww1/w1filter.cxx
Starting at line 1545 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww1/w1filter.cxx

	W1_DOP& rDOP = GetDOP();
	rOut.GetPageDesc().SetLandscape(rDOP.fWideGet());
	SwFmtFrmSize aSz(rFmt.GetFrmSize());
	aSz.SetWidth(rDOP.xaPageGet());
	aSz.SetHeight(rDOP.yaPageGet());
	rFmt.SetAttr(aSz);
	SvxLRSpaceItem aLR(rDOP.dxaLeftGet()+rDOP.dxaGutterGet(),
     rDOP.dxaRightGet(), 0, 0, RES_LR_SPACE);
	rFmt.SetAttr(aLR);
    SvxULSpaceItem aUL(rDOP.dyaTopGet(), rDOP.dyaBottomGet(), RES_UL_SPACE);
	rFmt.SetAttr(aUL);
=====================================================================
Found a 17 line (118 tokens) duplication in the following files: 
Starting at line 1099 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx
Starting at line 421 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unosect.cxx

    uno::Reference<lang::XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
    SwXTextRange* pRange = 0;
    OTextCursorHelper* pCursor = 0;
    if(xRangeTunnel.is())
    {
        pRange = (SwXTextRange*)xRangeTunnel->getSomething(
                                SwXTextRange::getUnoTunnelId());
        pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
                                OTextCursorHelper::getUnoTunnelId());
    }

    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);
=====================================================================
Found a 18 line (118 tokens) duplication in the following files: 
Starting at line 1097 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx
Starting at line 1490 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx

	if(!bIsDescriptor)
		throw uno::RuntimeException();

	uno::Reference<XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}

	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;

	if(pDoc )
	{
=====================================================================
Found a 17 line (118 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoftn.cxx
Starting at line 1099 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx

	uno::Reference<XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}

	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);
=====================================================================
Found a 14 line (118 tokens) duplication in the following files: 
Starting at line 1389 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unofield.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoftn.cxx

	if(!m_bIsDescriptor)
		throw uno::RuntimeException();
	uno::Reference<lang::XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}
	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;
	if(pDoc)
=====================================================================
Found a 21 line (118 tokens) duplication in the following files: 
Starting at line 1631 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx
Starting at line 1790 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx

BOOL lcl_RejectRedline( SwRedlineTbl& rArr, USHORT& rPos,
						BOOL bCallDelete,
						const SwPosition* pSttRng = 0,
						const SwPosition* pEndRng = 0 )
{
	BOOL bRet = TRUE;
	SwRedline* pRedl = rArr[ rPos ];
	SwPosition *pRStt = 0, *pREnd = 0;
	SwComparePosition eCmp = POS_OUTSIDE;
	if( pSttRng && pEndRng )
	{
		pRStt = pRedl->Start();
		pREnd = pRedl->End();
		eCmp = ComparePosition( *pSttRng, *pEndRng, *pRStt, *pREnd );
	}

	pRedl->InvalidateRange();

	switch( pRedl->GetType() )
	{
	case IDocumentRedlineAccess::REDLINE_INSERT:
=====================================================================
Found a 18 line (118 tokens) duplication in the following files: 
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 395 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		SPECIAL_3DLATHEANDEXTRUDEOBJ_PROPERTIES

		SPECIAL_3DBACKSCALE_PROPERTIES
		MISC_3D_OBJ_PROPERTIES
		FILL_PROPERTIES
		LINE_PROPERTIES
		LINE_PROPERTIES_START_END
		SHAPE_DESCRIPTOR_PROPERTIES
		MISC_OBJ_PROPERTIES
		LINKTARGET_PROPERTIES
		SHADOW_PROPERTIES
		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return a3DExtrudeObjectPropertyMap_Impl;
=====================================================================
Found a 18 line (118 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		FILL_PROPERTIES
		LINE_PROPERTIES
		LINE_PROPERTIES_START_END
		SHAPE_DESCRIPTOR_PROPERTIES
		MISC_OBJ_PROPERTIES
		LINKTARGET_PROPERTIES
		SHADOW_PROPERTIES
		TEXT_PROPERTIES
		// #FontWork#
		FONTWORK_PROPERTIES
		CUSTOMSHAPE_PROPERTIES
		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return aPolyPolygonBezierPropertyMap_Impl;
=====================================================================
Found a 18 line (118 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		EDGERADIUS_PROPERTIES
		FILL_PROPERTIES
		LINE_PROPERTIES
		LINE_PROPERTIES_START_END
		SHAPE_DESCRIPTOR_PROPERTIES
		MISC_OBJ_PROPERTIES
		LINKTARGET_PROPERTIES
		SHADOW_PROPERTIES
		TEXT_PROPERTIES
		// #FontWork#
		FONTWORK_PROPERTIES
		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return aDimensioningPropertyMap_Impl;
=====================================================================
Found a 18 line (118 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		FILL_PROPERTIES
		LINE_PROPERTIES
		LINE_PROPERTIES_START_END
		SHAPE_DESCRIPTOR_PROPERTIES
		MISC_OBJ_PROPERTIES
		LINKTARGET_PROPERTIES
		SHADOW_PROPERTIES
		TEXT_PROPERTIES
		// #FontWork#
		FONTWORK_PROPERTIES
		CUSTOMSHAPE_PROPERTIES
		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return aPolyPolygonPropertyMap_Impl;
=====================================================================
Found a 20 line (118 tokens) duplication in the following files: 
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdorect.cxx
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

void SdrTextObj::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const
{
	FASTBOOL bNoTextFrame=!IsTextFrame();
	rInfo.bResizeFreeAllowed=bNoTextFrame || aGeo.nDrehWink%9000==0;
	rInfo.bResizePropAllowed=TRUE;
	rInfo.bRotateFreeAllowed=TRUE;
	rInfo.bRotate90Allowed  =TRUE;
	rInfo.bMirrorFreeAllowed=bNoTextFrame;
	rInfo.bMirror45Allowed  =bNoTextFrame;
	rInfo.bMirror90Allowed  =bNoTextFrame;

	// allow transparence
	rInfo.bTransparenceAllowed = TRUE;

	// gradient depends on fillstyle
	XFillStyle eFillStyle = ((XFillStyleItem&)(GetObjectItem(XATTR_FILLSTYLE))).GetValue();
	rInfo.bGradientAllowed = (eFillStyle == XFILL_GRADIENT);
	rInfo.bShearAllowed     =bNoTextFrame;
	rInfo.bEdgeRadiusAllowed=TRUE;
	FASTBOOL bCanConv=ImpCanConvTextToCurve();
=====================================================================
Found a 15 line (118 tokens) duplication in the following files: 
Starting at line 518 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxtr.cxx

	FASTBOOL bXMirr=(xFact.GetNumerator()<0) != (xFact.GetDenominator()<0);
	FASTBOOL bYMirr=(yFact.GetNumerator()<0) != (yFact.GetDenominator()<0);
	if (bXMirr || bYMirr) {
		Point aRef1(GetSnapRect().Center());
		if (bXMirr) {
			Point aRef2(aRef1);
			aRef2.Y()++;
			NbcMirrorGluePoints(aRef1,aRef2);
		}
		if (bYMirr) {
			Point aRef2(aRef1);
			aRef2.X()++;
			NbcMirrorGluePoints(aRef1,aRef2);
		}
	}
=====================================================================
Found a 16 line (118 tokens) duplication in the following files: 
Starting at line 3480 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx
Starting at line 2211 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

void SdrTextObj::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& /*rPolyPolygon*/)
{
	// break up matrix
	basegfx::B2DTuple aScale;
	basegfx::B2DTuple aTranslate;
	double fRotate, fShearX;
	rMatrix.decompose(aScale, aTranslate, fRotate, fShearX);

	// #i75086# Old DrawingLayer (GeoStat and geometry) does not support holding negative scalings
	// in X and Y which equal a 180 degree rotation. Recognize it and react accordingly
	if(basegfx::fTools::less(aScale.getX(), 0.0) && basegfx::fTools::less(aScale.getY(), 0.0))
	{
		aScale.setX(fabs(aScale.getX()));
		aScale.setY(fabs(aScale.getY()));
		fRotate = fmod(fRotate + F_PI, F_2PI);
	}
=====================================================================
Found a 15 line (118 tokens) duplication in the following files: 
Starting at line 1991 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxtr.cxx

	FASTBOOL bXMirr=(xFact.GetNumerator()<0) != (xFact.GetDenominator()<0);
	FASTBOOL bYMirr=(yFact.GetNumerator()<0) != (yFact.GetDenominator()<0);
	if (bXMirr || bYMirr) {
		Point aRef1(GetSnapRect().Center());
		if (bXMirr) {
			Point aRef2(aRef1);
			aRef2.Y()++;
			NbcMirrorGluePoints(aRef1,aRef2);
		}
		if (bYMirr) {
			Point aRef2(aRef1);
			aRef2.X()++;
			NbcMirrorGluePoints(aRef1,aRef2);
		}
	}
=====================================================================
Found a 16 line (118 tokens) duplication in the following files: 
Starting at line 3700 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3480 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdobj.cxx

void SdrObject::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& /*rPolyPolygon*/)
{
	// break up matrix
	basegfx::B2DTuple aScale;
	basegfx::B2DTuple aTranslate;
	double fRotate, fShearX;
	rMatrix.decompose(aScale, aTranslate, fRotate, fShearX);

	// #i75086# Old DrawingLayer (GeoStat and geometry) does not support holding negative scalings
	// in X and Y which equal a 180 degree rotation. Recognize it and react accordingly
	if(basegfx::fTools::less(aScale.getX(), 0.0) && basegfx::fTools::less(aScale.getY(), 0.0))
	{
		aScale.setX(fabs(aScale.getX()));
		aScale.setY(fabs(aScale.getY()));
		fRotate = fmod(fRotate + F_PI, F_2PI);
	}
=====================================================================
Found a 28 line (118 tokens) duplication in the following files: 
Starting at line 1535 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx
Starting at line 1644 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx

				for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
				{
					const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b);

					if(rPageWindow.GetPaintWindow().OutputToWindow())
					{
						if(rPageWindow.GetOverlayManager())
						{
							basegfx::B2DPoint aPosition(aPos.X(), aPos.Y());

							::sdr::overlay::OverlayObject* pNewOverlayObject = CreateOverlayObject(
								aPosition, 
								eColIndex,
								eKindOfMarker);

							// OVERLAYMANAGER
							if(pNewOverlayObject)
							{
								rPageWindow.GetOverlayManager()->add(*pNewOverlayObject);
								maOverlayGroup.append(*pNewOverlayObject);
							}
						}
					}
				}
			}
		}
	}
}
=====================================================================
Found a 15 line (118 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/mnuctrls/SmartTagCtl.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/smartmenu/stmenu.cxx

        const rtl::OUString aSmartTagCaption2 = aSmartTagCaption + C2U(": ") + aRangeText;
        nSubMenuPos = 0;
        pSbMenu->InsertItem( nMenuId++, aSmartTagCaption2, MIB_NOSELECT, nSubMenuPos++ );
        pSbMenu->InsertSeparator( nSubMenuPos++ );

        // Add subitem for every action reference for the current smart tag type:
        for ( USHORT i = 0; i < rActionComponents.getLength(); ++i )
        {
            xAction = rActionComponents[i];

            for ( sal_Int32 k = 0; k < xAction->getActionCount( aSmartTagType, xController ); ++k )
            {
                const sal_uInt32 nActionID = xAction->getActionID( aSmartTagType, k, xController  );
                rtl::OUString aActionCaption = xAction->getActionCaptionFromID( nActionID,
                                                                                aApplicationName,
=====================================================================
Found a 19 line (118 tokens) duplication in the following files: 
Starting at line 1031 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmctrler.cxx
Starting at line 1059 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmctrler.cxx

        m_bDetachEvents = sal_False;
        for (sal_Int32 i = nControls; i > 0;)
        {
            Reference< XControl > xControl = pControls[--i];
            if (xControl.is())
            {
                Reference< XPropertySet >  xSet(xControl->getModel(), UNO_QUERY);
                if (xSet.is() && ::comphelper::hasProperty(FM_PROP_BOUNDFIELD, xSet))
                {
                    // does the model use a bound field ?
                    Reference< XPropertySet >  xField;
                    xSet->getPropertyValue(FM_PROP_BOUNDFIELD) >>= xField;

                    // is it a autofield?
                    if  (   xField.is()
                        &&  ::comphelper::hasProperty( FM_PROP_AUTOINCREMENT, xField )
                        &&  ::comphelper::getBOOL( xField->getPropertyValue(FM_PROP_AUTOINCREMENT ) )
                        )
                    {
=====================================================================
Found a 27 line (118 tokens) duplication in the following files: 
Starting at line 1877 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/swpossizetabpage.cxx
Starting at line 1402 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/frmdlg/frmpage.cxx

            String sEntry(aFramePosString.GetString(eStrId));
			if (_rLB.GetEntryPos(sEntry) == LISTBOX_ENTRY_NOTFOUND)
            {
				// bei zeichengebundenen Rahmen keine doppelten Eintraege einfuegen
                _rLB.InsertEntry(sEntry);
            }
            // OD 12.11.2003 #i22341# - add condition to handle map <aVCharMap>
            // that is ambigous in the alignment.
            if ( _pMap[i].nAlign == _nAlign &&
                 ( !(_pMap == aVCharMap) || _pMap[i].nLBRelations & nLBRelations ) )
            {
				sSelEntry = sEntry;
            }
		}
	}

    _rLB.SelectEntry(sSelEntry);
    if (!_rLB.GetSelectEntryCount())
        _rLB.SelectEntry(sOldEntry);

    if (!_rLB.GetSelectEntryCount())
        _rLB.SelectEntryPos(0);

    PosHdl(&_rLB);

    return GetMapPos(_pMap, _rLB);
}
=====================================================================
Found a 17 line (118 tokens) duplication in the following files: 
Starting at line 496 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/_contdlg.cxx
Starting at line 321 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/imapdlg.cxx

	SfxModelessDialog::Resize();

	Size aMinSize( GetMinOutputSizePixel() );
	Size aNewSize( GetOutputSizePixel() );

	if ( aNewSize.Height() >= aMinSize.Height() )
	{
        Size    _aSize( aStbStatus.GetSizePixel() );
        Point   aPoint( 0, aNewSize.Height() - _aSize.Height() );

		// StatusBar positionieren
        aStbStatus.SetPosSizePixel( aPoint, Size( aNewSize.Width(), _aSize.Height() ) );
		aStbStatus.Show();

		// EditWindow positionieren
        _aSize.Width() = aNewSize.Width() - 18;
        _aSize.Height() = aPoint.Y() - pIMapWnd->GetPosPixel().Y() - 6;
=====================================================================
Found a 16 line (118 tokens) duplication in the following files: 
Starting at line 3422 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3078 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptLeftBracketGluePoints, sizeof( mso_sptLeftBracketGluePoints ) / sizeof( SvxMSDffVertPair )
};
static const SvxMSDffVertPair mso_sptRightBracketVert[] =	// adj value 0 -> 10800
{
	{ 0, 0 }, { 10800, 0 }, { 21600, 3 MSO_I }, { 21600, 1 MSO_I },
	{ 21600, 2 MSO_I }, { 21600, 4 MSO_I }, { 10800, 21600 }, { 0, 21600 }
};
static const SvxMSDffTextRectangles mso_sptRightBracketTextRect[] =
{
	{ { 0, 3 MSO_I }, { 15150, 4 MSO_I } }
};
static const SvxMSDffVertPair mso_sptRightBracketGluePoints[] =
{
	{ 0, 0 }, { 0, 21600 }, { 21600, 10800 }
};
static const mso_CustomShape msoRightBracket =
=====================================================================
Found a 14 line (118 tokens) duplication in the following files: 
Starting at line 458 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/newhelp.cxx
Starting at line 503 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/newhelp.cxx

					SfxContentHelper::GetHelpTreeViewContents( aTmpURL );

				const ::rtl::OUString* pEntries  = aList.getConstArray();
				UINT32 i, nCount = aList.getLength();
				for ( i = 0; i < nCount; ++i )
				{
					String aRow( pEntries[i] );
					String aTitle, aURL;
					xub_StrLen nIdx = 0;
					aTitle = aRow.GetToken( 0, '\t', nIdx );
					aURL = aRow.GetToken( 0, '\t', nIdx );
					sal_Unicode cFolder = aRow.GetToken( 0, '\t', nIdx ).GetChar(0);
					sal_Bool bIsFolder = ( '1' == cFolder );
					SvLBoxEntry* pEntry = NULL;
=====================================================================
Found a 23 line (118 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/registerextensions.cxx

}



static std::_tstring GetMsiProperty( MSIHANDLE handle, const std::_tstring& sProperty )
{
    std::_tstring result;
    TCHAR szDummy[1] = TEXT("");
    DWORD nChars = 0;

    if ( MsiGetProperty( handle, sProperty.c_str(), szDummy, &nChars ) == ERROR_MORE_DATA )
    {
        DWORD nBytes = ++nChars * sizeof(TCHAR);
        LPTSTR buffer = reinterpret_cast<LPTSTR>(_alloca(nBytes));
        ZeroMemory( buffer, nBytes );
        MsiGetProperty(handle, sProperty.c_str(), buffer, &nChars);
        result = buffer;
    }

    return result;
}

static BOOL ExecuteCommand( LPCTSTR lpCommand, BOOL bSync )
=====================================================================
Found a 25 line (118 tokens) duplication in the following files: 
Starting at line 795 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/notes/EditWindow.cxx
Starting at line 833 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/edit.cxx

        String     aMark (C2S("<?>"));
        USHORT     nCounts    = pEditEngine->GetParagraphCount();

        do
        {
            USHORT Fnd = Text.Search(aMark, 0);

            while ((Fnd < Max) && (Fnd != STRING_NOTFOUND))
            {
                Pos = Fnd;
                Fnd = Text.Search(aMark, Fnd + 1);
            }

            if (Pos == STRING_NOTFOUND)
            {
                eSelection.nStartPara--;
                Text = pEditEngine->GetText( eSelection.nStartPara );
                Max = Text.Len();
            }
        }
        while ((eSelection.nStartPara < nCounts) &&
            (Pos == STRING_NOTFOUND));

        if (Pos != STRING_NOTFOUND)
        {
=====================================================================
Found a 20 line (118 tokens) duplication in the following files: 
Starting at line 2250 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/eppt/pptexanimations.cxx
Starting at line 533 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/ppt/pptinanimations.cxx

					Any aTarget, aEmpty;
					Reference< XEnumerationAccess > xEnumerationAccess( xNode, UNO_QUERY );
					if( xEnumerationAccess.is() )
					{
						Reference< XEnumeration > xEnumeration( xEnumerationAccess->createEnumeration(), UNO_QUERY );
						if( xEnumeration.is() )
						{
							while( xEnumeration->hasMoreElements() )
							{
								Reference< XAnimate > xChildNode( xEnumeration->nextElement(), UNO_QUERY );
								if( xChildNode.is() )
								{
									double fChildBegin = 0.0;
									double fChildDuration = 0.0;
									xChildNode->getBegin() >>= fChildBegin;
									xChildNode->getDuration() >>= fChildDuration;

									fChildDuration += fChildBegin;
									if( fChildDuration > fDuration )
										fDuration = fChildDuration;
=====================================================================
Found a 30 line (118 tokens) duplication in the following files: 
Starting at line 2484 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx
Starting at line 3261 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx

									else
										DBG_ERROR("pData == 0");
								}
								else
								{
									ULONG nFormat = pPattern->GetNumberFormat(
																pFormatter, pCondSet );
									String aString;
									Color* pColor;
									ScCellFormat::GetString( pCell,
															 nFormat,aString, &pColor,
															 *pFormatter,
															 bShowNullValues,
															 bShowFormulas,
															 ftCheck );

									pEngine->SetText(aString);
									if ( pColor && !bSyntaxMode && !( bUseStyleColor && bForceAutoColor ) )
										lcl_SetEditColor( *pEngine, *pColor );
								}

								if ( bSyntaxMode )
									SetEditSyntaxColor( *pEngine, pCell );
								else if ( bUseStyleColor && bForceAutoColor )
									lcl_SetEditColor( *pEngine, COL_AUTO );		//! or have a flag at EditEngine
							}
							else
								DBG_ERROR("pCell == NULL");

							pEngine->SetUpdateMode( TRUE );		// after SetText, before CalcTextWidth/GetTextHeight
=====================================================================
Found a 26 line (118 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/mediash.cxx
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/MediaObjectBar.cxx

			SdrMarkList* pMarkList = new SdrMarkList( mpView->GetMarkedObjectList() );
			bool		 bDisable = true;

			if( 1 == pMarkList->GetMarkCount() )
			{
				SdrObject* pObj =pMarkList->GetMark( 0 )->GetMarkedSdrObj();

				if( pObj && pObj->ISA( SdrMediaObj ) )
				{
					::avmedia::MediaItem aItem( SID_AVMEDIA_TOOLBOX );
					
					static_cast< sdr::contact::ViewContactOfSdrMediaObj& >( pObj->GetViewContact() ).updateMediaItem( aItem );
					rSet.Put( aItem );
					bDisable = false;
				}
			}

			if( bDisable )
				rSet.DisableItem( SID_AVMEDIA_TOOLBOX );
			
			delete pMarkList;
		}

		nWhich = aIter.NextWhich();
	}
}
=====================================================================
Found a 23 line (118 tokens) duplication in the following files: 
Starting at line 575 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/filtdlg.cxx
Starting at line 444 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/pfiltdlg.cxx

				*rEntry.pStr	= EMPTY_STRING;
				rEntry.nVal		= SC_NONEMPTYFIELDS;
				rEntry.bQueryByString = FALSE;
			}
			else
			{
				*rEntry.pStr	= aStrVal;
				rEntry.nVal		= 0;
				rEntry.bQueryByString = TRUE;
			}

            rEntry.nField	= nField ? (theQueryData.nCol1 +
                    static_cast<SCCOL>(nField) - 1) : static_cast<SCCOL>(0);
			rEntry.eOp	  	= eOp;
		}
	}

	theParam.GetEntry(1).eConnect = (nConnect1 != LISTBOX_ENTRY_NOTFOUND)
									? (ScQueryConnect)nConnect1
									: SC_AND;
	theParam.GetEntry(2).eConnect = (nConnect2 != LISTBOX_ENTRY_NOTFOUND)
									? (ScQueryConnect)nConnect2
									: SC_AND;
=====================================================================
Found a 18 line (118 tokens) duplication in the following files: 
Starting at line 834 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1382 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	nMatrixFlag(MM_NONE)
{
	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
				nID = pChangeTrackingImportHelper->GetIDFromString(sValue);
		}
	}
}
=====================================================================
Found a 15 line (118 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen5.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuins2.cxx

                uno::makeAny( aRangeString ), beans::PropertyState_DIRECT_VALUE );
            aArgs[1] = beans::PropertyValue(
                ::rtl::OUString::createFromAscii("HasCategories"), -1,
                uno::makeAny( bHasCategories ), beans::PropertyState_DIRECT_VALUE );
            aArgs[2] = beans::PropertyValue(
                ::rtl::OUString::createFromAscii("FirstCellAsLabel"), -1,
                uno::makeAny( bFirstCellAsLabel ), beans::PropertyState_DIRECT_VALUE );
            aArgs[3] = beans::PropertyValue(
                ::rtl::OUString::createFromAscii("DataRowSource"), -1,
                uno::makeAny( eDataRowSource ), beans::PropertyState_DIRECT_VALUE );
            xReceiver->setArguments( aArgs );

            // don't create chart listener here (range may be modified in chart dialog)
        }
    }
=====================================================================
Found a 22 line (118 tokens) duplication in the following files: 
Starting at line 493 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx
Starting at line 1031 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

         new OUString(aUStr1)
        },
        {"simple compare, str1 to str1",0,new OUString(aUStr1), 
         new OUString(aUStr1)
        },
        {"simple compare, nullString to nullString",0,new OUString(), 
         new OUString()
        },
        {"simple compare, nullString to str2",-1,new OUString(), 
         new OUString(aUStr2)
        },
        {"simple compare, str1 to nullString",+1,new OUString(aUStr1), 
         new OUString()
        }
    };

    sal_Bool res = sal_True;
	sal_Int32 i;

    for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
    {
        sal_Int32 cmpRes = arrTestCase[i].input1->reverseCompareTo
=====================================================================
Found a 50 line (118 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_DatagramSocket.cxx
Starting at line 3510 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

namespace osl_DatagramSocket
{

	/** testing the methods:
		inline DatagramSocket(oslAddrFamily Family= osl_Socket_FamilyInet, 
							  oslProtocol	Protocol= osl_Socket_ProtocolIp,
							  oslSocketType	Type= osl_Socket_TypeDgram);
	*/

	class ctors : public CppUnit::TestFixture
	{
	public:
		
		void ctors_001()
		{
			/// Socket constructor.
			::osl::DatagramSocket dsSocket;
	
			CPPUNIT_ASSERT_MESSAGE( "test for ctors_001 constructor function: check if the datagram socket was created successfully.", 
									osl_Socket_TypeDgram ==  dsSocket.getType( ) );
		}
	
		
		CPPUNIT_TEST_SUITE( ctors );
		CPPUNIT_TEST( ctors_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class ctors
	
/**thread do sendTo, refer to http://www.coding-zone.co.uk/cpp/articles/140101networkprogrammingv.shtml
*/
class TalkerThread : public Thread
{
protected:
	::osl::SocketAddr saTargetSocketAddr;
	::osl::DatagramSocket dsSocket;
	
	void SAL_CALL run( )
	{
		dsSocket.sendTo( saTargetSocketAddr, pTestString1, strlen( pTestString1 ) + 1 ); // "test socket"
		dsSocket.shutdown();
	}

	void SAL_CALL onTerminated( )
	{		
	}

public:	
	TalkerThread( ): 
		saTargetSocketAddr( aHostIp1, IP_PORT_MYPORT9 )
=====================================================================
Found a 17 line (118 tokens) duplication in the following files: 
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/ohierarchyholder.cxx
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/ohierarchyholder.cxx

	::osl::MutexGuard aGuard( m_aMutex );

	if ( !aListPath.size() )
		throw uno::RuntimeException();

	::rtl::OUString aNextName = *(aListPath.begin());
	aListPath.erase( aListPath.begin() );

	uno::Reference< embed::XExtendedStorageStream > xResult;

	uno::Reference< embed::XStorage > xOwnStor = m_xOwnStorage.is() ? m_xOwnStorage
				: uno::Reference< embed::XStorage >( m_xWeakOwnStorage.get(), uno::UNO_QUERY );
	if ( !xOwnStor.is() )
		throw uno::RuntimeException();

	if ( !aListPath.size() )
	{
=====================================================================
Found a 26 line (118 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/workben/sspellimp.cxx

using namespace utl;
using namespace osl;
using namespace rtl;
using namespace com::sun::star;
using namespace com::sun::star::beans;
using namespace com::sun::star::lang;
using namespace com::sun::star::uno;
using namespace com::sun::star::linguistic2;
using namespace linguistic;


///////////////////////////////////////////////////////////////////////////

BOOL operator == ( const Locale &rL1, const Locale &rL2 )
{
	return	rL1.Language ==  rL2.Language	&&
			rL1.Country  ==  rL2.Country	&&
			rL1.Variant  ==  rL2.Variant;
}

///////////////////////////////////////////////////////////////////////////


SpellChecker::SpellChecker() :
	aEvtListeners	( GetLinguMutex() )
{
=====================================================================
Found a 21 line (118 tokens) duplication in the following files: 
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/lingutil/dictmgr.cxx
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

      if (dp) {
         *stringp = dp+1;
         int nc = (int)((unsigned long)dp - (unsigned long)mp);
         rv = (char *) malloc(nc+1);
         memcpy(rv,mp,nc);
         *(rv+nc) = '\0';
         return rv;
      } else {
        rv = (char *) malloc(n+1);
        memcpy(rv, mp, n);
        *(rv+n) = '\0';
        *stringp = mp + n;
        return rv;
      }
   }
   return NULL;
 }

 
 // replaces strdup with ansi version
 char * mystrdup(const char * s)
=====================================================================
Found a 27 line (118 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/testcomponent.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/testcomponent.cxx

	Reference< XMultiServiceFactory > xSMgr =
		createRegistryServiceFactory( OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")) );

	Reference < XImplementationRegistration > xReg;
	Reference < XSimpleRegistry > xSimpleReg;

	try
	{
		// Create registration service
		Reference < XInterface > x = xSMgr->createInstance(
			OUString::createFromAscii( "com.sun.star.registry.ImplementationRegistration" ) );
		xReg = Reference<  XImplementationRegistration > ( x , UNO_QUERY );
	}
	catch( Exception & ) {
		printf( "Couldn't create ImplementationRegistration service\n" );
		exit(1);
	}

	sal_Char szBuf[1024];
	OString sTestName;

	try
	{
		// Load dll for the tested component
		for( int n = 2 ; n <argc ; n ++ ) {
#ifdef SAL_W32
			OUString aDllName = OStringToOUString( argv[n] , RTL_TEXTENCODING_ASCII_US );
=====================================================================
Found a 4 line (118 tokens) duplication in the following files: 
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 28 line (118 tokens) duplication in the following files: 
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx

ignoreProlongedSoundMark_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
  throw(RuntimeException)
{
    // Create a string buffer which can hold nCount + 1 characters.
    // The reference count is 0 now.
    rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h  
    sal_Unicode * dst = newStr->buffer;
    const sal_Unicode * src = inStr.getStr() + startPos;

    sal_Int32 *p = 0;
	sal_Int32 position = 0;

    if (useOffset) {
        // Allocate nCount length to offset argument.
        offset.realloc( nCount );
        p = offset.getArray();
        position = startPos;
    }

    // 
    sal_Unicode previousChar = *src ++;
    sal_Unicode currentChar;

    // Conversion
    while (-- nCount > 0) {
        currentChar = *src ++;

        if (currentChar == 0x30fc || // KATAKANA-HIRAGANA PROLONGED SOUND MARK
=====================================================================
Found a 17 line (118 tokens) duplication in the following files: 
Starting at line 1029 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1062 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

				else if( pAcc->GetScanlineFormat() == BMP_FORMAT_24BIT_TC_RGB )
				{
					Scanline	pLine0, pLine1, pTmp0, pTmp1;
					long		nOff;

					for( nY = nStartY, nYDst = 0L; nY <= nEndY; nY++, nYDst++ )
					{
						nTmpY = pMapIY[ nY ]; nTmpFY = pMapFY[ nY ];
						pLine0 = pAcc->GetScanline( nTmpY );
						pLine1 = pAcc->GetScanline( ++nTmpY );

						for( nX = nStartX, nXDst = 0L; nX <= nEndX; nX++ )
						{
							nOff = 3L * ( nTmpX = pMapIX[ nX ] );
							nTmpFX = pMapFX[ nX ];

							pTmp1 = ( pTmp0 = pLine0 + nOff ) + 3L;
=====================================================================
Found a 25 line (118 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/dlgeos2.cxx
Starting at line 328 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/filter/dlgexpor.cxx

	SetText( aTitle );

	// reading config-parameter
    sal_Int32   nMode = pConfigItem->ReadInt32( String( ResId( KEY_MODE, *pMgr ) ), 0 );

	::com::sun::star::awt::Size aDefault( 10000, 10000 );
	::com::sun::star::awt::Size aSize;
    aSize = pConfigItem->ReadSize( String( ResId( KEY_SIZE, *pMgr ) ), aDefault );

	aMtfSizeX.SetDefaultUnit( FUNIT_MM );
	aMtfSizeY.SetDefaultUnit( FUNIT_MM );
	aMtfSizeX.SetValue( aSize.Width );
	aMtfSizeY.SetValue( aSize.Height );

	switch ( rPara.eFieldUnit )
	{
//		case FUNIT_NONE :
//		case FUNIT_KM :
//		case FUNIT_PERCENT :
//		case FUNIT_CUSTOM :
//		case FUNIT_MILE :
//		case FUNIT_FOOT :
		case FUNIT_MM :
		case FUNIT_CM :
		case FUNIT_M :
=====================================================================
Found a 19 line (118 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/constitemcontainer.cxx
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/itemcontainer.cxx

void ItemContainer::copyItemContainer( const std::vector< Sequence< PropertyValue > >& rSourceVector, const ShareableMutex& rMutex )
{
    for ( sal_uInt32 i = 0; i < rSourceVector.size(); i++ )
    {
        sal_Int32 nContainerIndex = -1;
        Sequence< PropertyValue > aPropSeq( rSourceVector[i] );
        Reference< XIndexAccess > xIndexAccess;
        for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
        {
            if ( aPropSeq[j].Name.equalsAscii( "ItemDescriptorContainer" ))
            {
                aPropSeq[j].Value >>= xIndexAccess;
                nContainerIndex = j;
                break;
            }
        }
        
        if ( xIndexAccess.is() && nContainerIndex >= 0 )
            aPropSeq[nContainerIndex].Value <<= deepCopyContainer( xIndexAccess, rMutex );
=====================================================================
Found a 36 line (118 tokens) duplication in the following files: 
Starting at line 426 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

    m_xContainerFactory( rFactory )
{
}


OReadMenuHandler::~OReadMenuHandler()
{
}


void SAL_CALL OReadMenuHandler::startDocument(void)
	throw ( SAXException, RuntimeException )
{
}


void SAL_CALL OReadMenuHandler::endDocument(void)
	throw( SAXException, RuntimeException)
{
}


void SAL_CALL OReadMenuHandler::startElement(
	const OUString& aName, const Reference< XAttributeList > &xAttrList )
throw( SAXException, RuntimeException )
{
	if ( m_bMenuPopupMode )
	{
		++m_nElementDepth;
		m_xReader->startElement( aName, xAttrList );
	}
	else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUPOPUP )))
	{
		++m_nElementDepth;
		m_bMenuPopupMode = sal_True;
		m_xReader = Reference< XDocumentHandler >( new OReadMenuPopupHandler( m_xMenuContainer, m_xContainerFactory ));
=====================================================================
Found a 16 line (118 tokens) duplication in the following files: 
Starting at line 5260 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx
Starting at line 5283 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx

sal_Bool SAL_CALL LayoutManager::isElementDocked( const ::rtl::OUString& aName )
throw (RuntimeException)
{
    UIElementVector::const_iterator pIter;

    ReadGuard aReadLock( m_aLock );
    for ( pIter = m_aUIElements.begin(); pIter != m_aUIElements.end(); pIter++ )
    {
        if ( pIter->m_aName == aName && pIter->m_xUIElement.is() )
        {
            Reference< css::awt::XWindow > xWindow( pIter->m_xUIElement->getRealInterface(), UNO_QUERY );
            if ( xWindow.is() )
            {
                Reference< css::awt::XDockableWindow > xDockWindow( xWindow, UNO_QUERY );
                if ( xDockWindow.is() )
                    return !xDockWindow->isFloating();
=====================================================================
Found a 10 line (118 tokens) duplication in the following files: 
Starting at line 760 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx
Starting at line 3257 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/layoutmanager/layoutmanager.cxx

        try
        {
            if ( xTopDockingWindow.is() )
                xTopDockingWindow->setPosSize( 0, 0, 0, 0, css::awt::PosSize::POSSIZE );
            if ( xLeftDockingWindow.is() )
                xLeftDockingWindow->setPosSize( 0, 0, 0, 0, css::awt::PosSize::POSSIZE );
            if ( xRightDockingWindow.is() )
                xRightDockingWindow->setPosSize( 0, 0, 0, 0, css::awt::PosSize::POSSIZE );
            if ( xBottomDockingWindow.is() )
                xBottomDockingWindow->setPosSize( 0, 0, 0, 0, css::awt::PosSize::POSSIZE );
=====================================================================
Found a 17 line (118 tokens) duplication in the following files: 
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/marktest.cxx

public:
    virtual void testInvariant(const UString& TestName, const XInterfaceRef& TestObject)
    															THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual INT32 test(	const UString& TestName,
    					const XInterfaceRef& TestObject,
    					INT32 hTestHandle) 						THROWS( (	IllegalArgumentException,
    																		UsrSystemException) );

    virtual BOOL testPassed(void) 								THROWS( (	UsrSystemException) );
    virtual Sequence< UString > getErrors(void) 				THROWS( (UsrSystemException) );
    virtual Sequence< UsrAny > getErrorExceptions(void) 		THROWS( (UsrSystemException) );
    virtual Sequence< UString > getWarnings(void) 				THROWS( (UsrSystemException) );

private:
	void testSimple( const XOutputStreamRef &r, const XInputStreamRef &rInput );
=====================================================================
Found a 5 line (118 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_mask.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 24 line (118 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/borland/tempnam.c
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/microsft/tempnam.c

   *q++ = buf[2]; *q++ = buf[3];

   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';

   return(p);
}



d_access( name, flag )
char *name;
int  flag;
{
   extern char *DirSepStr;
   char *p;
   int r;

   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
   r = access( name, flag );
   p = name+strlen(name)-1;
   if(*p != '/' && *p != '\\') strcat( p, DirSepStr );

   return( r );
}
=====================================================================
Found a 14 line (118 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/querycomposer.cxx

using namespace dbaccess;
using namespace dbtools;
using namespace comphelper;
using namespace connectivity;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::i18n;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::script;
using namespace ::cppu;
=====================================================================
Found a 18 line (118 tokens) duplication in the following files: 
Starting at line 1043 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx

								const ::rtl::OUString& procedureNamePattern)
								throw(SQLException, RuntimeException)
{
	const ::rtl::OUString *pSchemaPat = NULL;

	if(schemaPattern.toChar() != '%')
		pSchemaPat = &schemaPattern;
	else
		pSchemaPat = NULL;

	m_bFreeHandle = sal_True;
	::rtl::OString aPKQ,aPKO,aPKN,aCOL;

	aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding);
	aPKO = ::rtl::OUStringToOString(schemaPattern,m_nTextEncoding);

	const char	*pPKQ = catalog.hasValue() && aPKQ.getLength() ? aPKQ.getStr()	: NULL,
				*pPKO = pSchemaPat && pSchemaPat->getLength() ? aPKO.getStr() : NULL,
=====================================================================
Found a 9 line (118 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HStorageMap.cxx
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HStorageMap.cxx

            OSL_ENSURE(_xStorage.is(),"Storage is NULL!");
			TStorages& rMap = lcl_getStorageMap();
			// check if the storage is already in our map
			TStorages::iterator aFind = ::std::find_if(rMap.begin(),rMap.end(),
										::std::compose1(
											::std::bind2nd(::std::equal_to<Reference<XStorage> >(),_xStorage)
											,::std::compose1(::std::select1st<TStorageURLPair>(),::std::compose1(::std::select1st<TStorages::mapped_type>(),::std::select2nd<TStorages::value_type>())))
					);
			if ( aFind != rMap.end() )
=====================================================================
Found a 12 line (118 tokens) duplication in the following files: 
Starting at line 1665 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 1709 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schema.getLength() && schema.toChar() != '%')
		varCriteria[nPos].setString(schema);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

	varCriteria[nPos].setString(table);
	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME
=====================================================================
Found a 25 line (118 tokens) duplication in the following files: 
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi_timetest.cxx
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/memory/memorytests.cxx

		}
	}
	catch(std::exception& e)
	{
		e.what();	// silence warnings
	}
}

// -----------------------------------------------------------------------------
Sequence<Any> createSequence(const OUString &sUser, const OUString &sPasswd)
{
	Sequence< Any > aCPArgs;
		
	if (sUser.getLength() > 0)
	{
		aCPArgs.realloc(1);
		aCPArgs[0] <<= configmgr::createPropertyValue(ASCII("user"), sUser);
	}
	if (sPasswd.getLength() > 0)
	{
		aCPArgs.realloc(2);
		aCPArgs[1] <<= configmgr::createPropertyValue(ASCII("password"), sPasswd);
	}
	return aCPArgs;
}
=====================================================================
Found a 23 line (118 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx
Starting at line 502 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx

	catch (configuration::ConstraintViolation& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.illegalArgument(2);
	}
	catch (configuration::WrappedUnoException& ex)
	{
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot insert into Set: ") );
		throw WrappedTargetException( sMessage += ex.extractMessage(), xContext, ex.getAnyUnoException() );
	}
	catch (configuration::Exception& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.unhandled();
	}

}

//-----------------------------------------------------------------------------------
void implRemoveByName(NodeTreeSetAccess& rNode, const OUString& sName ) 
=====================================================================
Found a 15 line (118 tokens) duplication in the following files: 
Starting at line 886 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propagg.cxx
Starting at line 911 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propagg.cxx

void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const ::rtl::OUString& _rPropertyName)
		throw( ::com::sun::star::beans::UnknownPropertyException,  ::com::sun::star::uno::RuntimeException)
{
	OPropertyArrayAggregationHelper& rPH = static_cast< OPropertyArrayAggregationHelper& >( getInfoHelper() );
	sal_Int32 nHandle = rPH.getHandleByName(_rPropertyName);
	if (nHandle == -1)
	{
		throw  ::com::sun::star::beans::UnknownPropertyException();
	}

	::rtl::OUString aPropName;
	sal_Int32	nOriginalHandle = -1;
	if (rPH.fillAggregatePropertyInfoByHandle(&aPropName, &nOriginalHandle, nHandle))
	{
		if (m_xAggregateState.is())
=====================================================================
Found a 17 line (118 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/misc/configurationhelper.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/misc/configurationhelper.cxx

                                           const css::uno::Any&                              aValue  )
{
    css::uno::Reference< css::container::XHierarchicalNameAccess > xAccess(xCFG, css::uno::UNO_QUERY_THROW);

    css::uno::Reference< css::beans::XPropertySet > xProps;
    xAccess->getByHierarchicalName(sRelPath) >>= xProps;
    if (!xProps.is())
    {
        ::rtl::OUStringBuffer sMsg(256);
        sMsg.appendAscii("The requested path \"");
        sMsg.append     (sRelPath               );
        sMsg.appendAscii("\" does not exists."  );

        throw css::container::NoSuchElementException(
                    sMsg.makeStringAndClear(),
                    css::uno::Reference< css::uno::XInterface >());
    }
=====================================================================
Found a 30 line (118 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/except.cxx

                rtti = iFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 25 line (118 tokens) duplication in the following files: 
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
#endif
					pUnoArgs[nPos], pParamTypeDescr,
                    pThis->getBridge()->getUno2Cpp() );
				
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
	}

	try
	{
		OSL_ENSURE( !( (pCppStack - pCppStackStart ) & 3), "UNALIGNED STACK !!! (Please DO panic)" );
		callVirtualMethod(
			pAdjustedThisPtr, aVtableSlot.index,
			pCppReturn, pReturnTypeDescr->eTypeClass,
=====================================================================
Found a 30 line (118 tokens) duplication in the following files: 
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx

                rtti = iiFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 24 line (118 tokens) duplication in the following files: 
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx
Starting at line 299 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

	bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
  	// max space for: [complex ret ptr], values|ptr ...
  	char * pCppStack		=
  		(char *)alloca( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
  	char * pCppStackStart	= pCppStack;
	
        // need to know parameter types for callVirtualMethod so generate a signature string
        char * pParamType = (char *) alloca(nParams+2);
        char * pPT = pParamType;

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
=====================================================================
Found a 30 line (118 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx

                rtti = iiFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 24 line (118 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)(
        pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException(
            &aUnoExc, pThis->getBridge()->getUno2Cpp() );
=====================================================================
Found a 30 line (118 tokens) duplication in the following files: 
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx

                rtti = iiFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 22 line (118 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
=====================================================================
Found a 30 line (118 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx

                rtti = iiFind->second;
            }
        }
    }
    else
    {
        rtti = iFind->second;
    }
    
    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 22 line (118 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
=====================================================================
Found a 18 line (118 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 819 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx

		    nRes = *p->puInt64; break;

		// from here the values has to be checked
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			aTmp.nUShort = *p->pUShort; goto ref;
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
        case SbxBYREF | SbxSALINT64:
			aTmp.nInt64 = *p->pnInt64; goto ref;
=====================================================================
Found a 9 line (118 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/moduldlg.cxx
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/moduldlg.cxx

            BasicEntryDescriptor aDesc( GetEntryDescriptor( pEntry ) );
            ScriptDocument aDocument( aDesc.GetDocument() );
            ::rtl::OUString aOULibName( aDesc.GetLibName() );
			// allow MOVE mode only for libraries, which are not readonly
            Reference< script::XLibraryContainer2 > xModLibContainer( aDocument.getLibraryContainer( E_SCRIPTS ), UNO_QUERY );
            Reference< script::XLibraryContainer2 > xDlgLibContainer( aDocument.getLibraryContainer( E_DIALOGS ), UNO_QUERY );
            if ( !( ( xModLibContainer.is() && xModLibContainer->hasByName( aOULibName ) && xModLibContainer->isLibraryReadOnly( aOULibName ) ) ||
                    ( xDlgLibContainer.is() && xDlgLibContainer->hasByName( aOULibName ) && xDlgLibContainer->isLibraryReadOnly( aOULibName ) ) ) )
            {
=====================================================================
Found a 30 line (118 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/animations/source/animcore/factreg.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/TextInputStream/TextInputStream.cxx

	},
	{ 0, 0, 0, 0, 0, 0 }
};

extern "C"
{
sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
{
	return g_moduleCount.canUnload( &g_moduleCount , pTime );
}

//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	return component_writeInfoHelper( pServiceManager, pRegistryKey, g_entries );
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
	return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
}
}
=====================================================================
Found a 15 line (117 tokens) duplication in the following files: 
Starting at line 466 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/qa/cppunittests/odiapi/testProperty.cxx
Starting at line 503 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/qa/cppunittests/odiapi/testProperty.cxx

    void testDumpPropertyPoolAfterGarbageCollection()
    {
        PropertyPool::Pointer_t pool = createPropertyPool();
	
        PropertyBag_Pointer_t pb1 = createPropertyBag();
        pb1->insert(createIntegerProperty(NS_fo::LN_font_weight, 12));
        pb1->insert(createStringProperty(NS_style::LN_font_face, "Times"));
        pb1->insert(createIntegerProperty(NS_fo::LN_line_height, 20));
        PropertyPoolHandle_Pointer_t ph1 = pool->insert(pb1);

        {
            PropertyBag_Pointer_t pb2 = createPropertyBag();
            pb2->insert(createIntegerProperty(NS_fo::LN_font_weight, 12));
            pb2->insert(createStringProperty(NS_style::LN_font_face, "Roman"));
            PropertyPoolHandle_Pointer_t ph2 = pool->insert(pb2);
=====================================================================
Found a 13 line (117 tokens) duplication in the following files: 
Starting at line 3131 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 3437 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        0x00,0x00,0x00,0x00,0x18,0x18,0x18,0xff,0x18,0x18,0x18,0x00,0x00,0x00,0x00,0x00,

        8, // 0x2c ','
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x18,0x30,0x20,0x00,

        8, // 0x2d '-'
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

        8, // 0x2e '.'
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,

        8, // 0x2f '/'
        0x00,0x03,0x03,0x06,0x06,0x0c,0x0c,0x18,0x18,0x30,0x30,0x60,0x60,0x00,0x00,0x00,
=====================================================================
Found a 20 line (117 tokens) duplication in the following files: 
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            const value_type *fg_ptr;
            color_type* span = base_type::allocator().span();
            const int16* weight_array = base_type::filter().weight_array() + 
                                        ((base_type::filter().diameter()/2 - 1) << 
                                          image_subpixel_shift);
            do
            {
                int x_hr;
                int y_hr;

                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                unsigned x1 = m_wrap_mode_x(x_lr);
                unsigned x2 = ++m_wrap_mode_x;
=====================================================================
Found a 10 line (117 tokens) duplication in the following files: 
Starting at line 606 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 834 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        if(fg[3] < 0) fg[3] = 0;

                        if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                        if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                        if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                        if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
                    }
                }

                span->r = fg[order_type::R];
=====================================================================
Found a 25 line (117 tokens) duplication in the following files: 
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx

	{ XML_NAMESPACE_FO, XML_MARGIN_BOTTOM, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_TOP, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_RIGHT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_SHADOW, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS },
	{ XML_NAMESPACE_FO, XML_KEEP_WITH_NEXT, XML_OPTACTION_KEEP_WITH_NEXT, 
=====================================================================
Found a 27 line (117 tokens) duplication in the following files: 
Starting at line 2194 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/xmlnumfi.cxx
Starting at line 2243 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/xmlnumfi.cxx

	if ( rCondition.copy( 0, nValLen ) == sValue )
	{
		//!	test for valid conditions
		//!	test for default conditions

		OUString sRealCond = rCondition.copy( nValLen, rCondition.getLength() - nValLen );
		sal_Bool bDefaultCond = sal_False;

		//!	collect all conditions first and adjust default to >=0, >0 or <0 depending on count
		//!	allow blanks in conditions
		sal_Bool bFirstCond = ( aConditions.getLength() == 0 );
		if ( bFirstCond && aMyConditions.size() == 1 && sRealCond.compareToAscii( ">=0" ) == 0 )
			bDefaultCond = sal_True;

		if ( nType == XML_TOK_STYLES_TEXT_STYLE && nIndex == 2 )
		{
			//	The third condition in a number format with a text part can only be
			//	"all other numbers", the condition string must be empty.
			bDefaultCond = sal_True;
		}

		if (!bDefaultCond)
		{
            sal_Int32 nPos = sRealCond.indexOf( '.' );
            if ( nPos >= 0 )
            {   // #i8026# #103991# localize decimal separator
                const String& rDecSep = rData.getNumDecimalSep();
=====================================================================
Found a 34 line (117 tokens) duplication in the following files: 
Starting at line 472 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/implncvt.cxx
Starting at line 545 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/implncvt.cxx

					mnFloat1Points = 2;
				}
				else
				{
					mnFloat1Points = 0;
					fLenghtDone = fDistance;
				}
				if ( mfDashDotLenght > 0.0 )
				{										// Ein Dash oder Dot wurde erzeugt
					mfDashDotLenght -= fLenghtDone;
					if ( mfDashDotLenght == 0.0 )
					{									// Komplett erzeugt
						if ( mnDashCount )
							mnDashCount--;
						else
							mnDotCount--;

						if ( ! ( mnDashCount | mnDotCount ) )
						{
							mnDashCount = maLineInfo.GetDashCount();
							mnDotCount = maLineInfo.GetDotCount();
						}
						mfDistanceLenght = maLineInfo.GetDistance();
					}
				}
				else
				{										// Das erzeugte Polygon muessen wir ignorieren
					mfDistanceLenght -= fLenghtDone;
					if ( mfDistanceLenght ==  0.0 )
						mfDashDotLenght = ( mnDashCount ) ? maLineInfo.GetDashLen() : maLineInfo.GetDotLen();
					continue;
				}
			}
			maPolygon.SetSize( 2 );
=====================================================================
Found a 28 line (117 tokens) duplication in the following files: 
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/fixed.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/group.cxx

void GroupBox::ImplInitSettings( BOOL bFont,
								 BOOL bForeground, BOOL bBackground )
{
	const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();

	if ( bFont )
	{
		Font aFont = rStyleSettings.GetGroupFont();
		if ( IsControlFont() )
			aFont.Merge( GetControlFont() );
		SetZoomedPointFont( aFont );
	}

	if ( bForeground || bFont )
	{
		Color aColor;
		if ( IsControlForeground() )
			aColor = GetControlForeground();
		else
			aColor = rStyleSettings.GetGroupTextColor();
		SetTextColor( aColor );
		SetTextFillColor();
	}

	if ( bBackground )
	{
		Window* pParent = GetParent();
		if ( (pParent->IsChildTransparentModeEnabled() ||
=====================================================================
Found a 6 line (117 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/stdtabcontrollermodel.cxx
Starting at line 655 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrolmodel.cxx

void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream >& OutStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
	::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );

	::com::sun::star::uno::Reference< ::com::sun::star::io::XMarkableStream > xMark( OutStream, ::com::sun::star::uno::UNO_QUERY );
	DBG_ASSERT( xMark.is(), "write: no ::com::sun::star::io::XMarkableStream!" );
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/sysui/source/win32/misc/WinImplHelper.cxx
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/sysui/source/win32/misc/WinImplHelper.cxx

void SAL_CALL ListboxSetSelectedItem( HWND hwnd, const Any& aPosition, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
    throw( IllegalArgumentException )
{
    OSL_ASSERT( IsWindow( hwnd ) );

     if ( !aPosition.hasValue( ) || 
         ( (aPosition.getValueType( ) != getCppuType((sal_Int32*)0)) &&
           (aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
           (aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
         throw IllegalArgumentException(
            OUString::createFromAscii( "invalid value type or any has no value" ),
            rXInterface,
            aArgPos );

    sal_Int32 nPos;
    aPosition >>= nPos;
=====================================================================
Found a 15 line (117 tokens) duplication in the following files: 
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/viewtab.cxx
Starting at line 557 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/viewtab.cxx

            long nRightDiff = aLongULSpace.GetLower() - (long)(nPageHeight - aSectRect.Bottom() + rPrtRect.Top());
			//change the LRSpaceItem of the section accordingly
            const SwSection* pCurrSect = rSh.GetCurrSection();
            const SwSectionFmt* pSectFmt = pCurrSect->GetFmt();
            SvxLRSpaceItem aLR = pSectFmt->GetLRSpace();
            aLR.SetLeft(aLR.GetLeft() + nLeftDiff);
            aLR.SetRight(aLR.GetRight() + nRightDiff);
            SfxItemSet aSet(rSh.GetAttrPool(), RES_LR_SPACE, RES_LR_SPACE, RES_COL, RES_COL, 0L);
            aSet.Put(aLR);
			//change the first/last column
			if(bSect)
			{
                SwFmtCol aCols( pSectFmt->GetCol() );
                long nDiffWidth = nLeftDiff + nRightDiff;
                ::ResizeFrameCols(aCols, aSectRect.Height(), aSectRect.Height() - nDiffWidth, nLeftDiff );
=====================================================================
Found a 13 line (117 tokens) duplication in the following files: 
Starting at line 1659 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx
Starting at line 1681 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx

void AddressMultiLineEdit::MoveCurrentItem(sal_uInt16 nMove)
{
    ExtTextEngine* pTextEngine = GetTextEngine();
    ExtTextView* pTextView = GetTextView();
    const TextSelection& rSelection = pTextView->GetSelection();
    const TextCharAttrib* pBeginAttrib = pTextEngine->FindCharAttrib( rSelection.GetStart(), TEXTATTR_PROTECTED );
    const TextCharAttrib* pEndAttrib = pTextEngine->FindCharAttrib( rSelection.GetEnd(), TEXTATTR_PROTECTED );
    if(pBeginAttrib && 
            (pBeginAttrib->GetStart() <= rSelection.GetStart().GetIndex() 
                            && pBeginAttrib->GetEnd() >= rSelection.GetEnd().GetIndex()))
    {
        //current item has been found
        ULONG nPara = rSelection.GetStart().GetPara();
=====================================================================
Found a 15 line (117 tokens) duplication in the following files: 
Starting at line 2971 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4711 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

			return;
		}
        const uno::Sequence< uno::Any >* pRowArray = rArray.getConstArray();
        for(sal_uInt16 nRow = 0; nRow < nRowCount; nRow++)
		{
            const uno::Sequence< uno::Any >& rColSeq = pRowArray[nRow];
            if(rColSeq.getLength() != nColCount)
			{
				throw uno::RuntimeException();
			}
            const uno::Any * pColArray = rColSeq.getConstArray();
            uno::Reference< table::XCell > xCellRef;
            for(sal_uInt16 nCol = 0; nCol < nColCount; nCol++)
			{
                SwXCell * pXCell = lcl_CreateXCell(pFmt,
=====================================================================
Found a 27 line (117 tokens) duplication in the following files: 
Starting at line 378 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoparagraph.cxx
Starting at line 4235 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx

        const uno::Sequence< ::rtl::OUString >& rPropertyNames )
            throw (uno::RuntimeException)
{
    vos::OGuard aGuard(Application::GetSolarMutex());
    uno::Sequence< uno::Any > aValues;

    // workaround for bad designed API
    try
    {
        aValues = GetPropertyValues_Impl( rPropertyNames );
    }
    catch (beans::UnknownPropertyException &)
    {
        throw uno::RuntimeException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property exception caught" ) ), static_cast < cppu::OWeakObject * > ( this ) );
    }
    catch (lang::WrappedTargetException &)
    {
        throw uno::RuntimeException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "WrappedTargetException caught" ) ), static_cast < cppu::OWeakObject * > ( this ) );
    }

    return aValues;
}

/*-- 19.05.2006 11:24:10---------------------------------------------------

  -----------------------------------------------------------------------*/
void SwXAutoStyle::addPropertiesChangeListener(
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 2145 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoframe.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoftn.cxx

	if(!m_bIsDescriptor)
		throw uno::RuntimeException();
	uno::Reference<lang::XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}
	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;
	if(pDoc)
	{
		SwUnoInternalPaM aPam(*pDoc);
=====================================================================
Found a 11 line (117 tokens) duplication in the following files: 
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/inftxt.cxx
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/inftxt.cxx

							  const xub_StrLen nIdx, const xub_StrLen nLen )
	: SwTxtInfo( rNew ),
      pKanaComp(((SwTxtSizeInfo&)rNew).GetpKanaComp()),
	  pVsh(((SwTxtSizeInfo&)rNew).GetVsh()),
	  pOut(((SwTxtSizeInfo&)rNew).GetOut()),
      pRef(((SwTxtSizeInfo&)rNew).GetRefDev()),
	  pFnt(((SwTxtSizeInfo&)rNew).GetFont()),
      pUnderFnt(((SwTxtSizeInfo&)rNew).GetUnderFnt()),
	  pFrm( rNew.pFrm ),
	  pOpt(&rNew.GetOpt()),
	  pTxt(&rTxt),
=====================================================================
Found a 23 line (117 tokens) duplication in the following files: 
Starting at line 1376 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/tblsel.cxx
Starting at line 1412 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/tblsel.cxx

		if( nSttPos < nSEndPos )
		{
			// dann ist der vorder Teil der Line leer und braucht
			// nicht mit Blanks aufgefuellt werden.
			if( pUndo )
				for( USHORT i = nSttPos; i < nSEndPos; ++i )
					pUndo->SaveCollection( *aPosArr[ i ].pSelBox );

			USHORT nCnt = nSEndPos - nSttPos;
			aPosArr.Remove( nSttPos, nCnt );
			nESttPos -= nCnt;
			n -= nCnt;
		}
		if( nESttPos < n )
		{
			// dann ist der vorder Teil der Line leer und braucht
			// nicht mit Blanks aufgefuellt werden.
			if( pUndo )
				for( USHORT i = nESttPos; i < n; ++i )
					pUndo->SaveCollection( *aPosArr[ i ].pSelBox );

			USHORT nCnt = n - nESttPos;
			aPosArr.Remove( nESttPos, nCnt );
=====================================================================
Found a 12 line (117 tokens) duplication in the following files: 
Starting at line 2111 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/crstrvl.cxx
Starting at line 922 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/editsh.cxx

	const SwTxtNode* pTxtNd;
	const SwCharFmts* pFmts = GetDoc()->GetCharFmts();
	for( USHORT n = pFmts->Count(); 1 < n; )
	{
		SwClientIter aIter( *(*pFmts)[  --n ] );

		for( SwClient* pFnd = aIter.First(TYPE( SwTxtINetFmt ));
				pFnd; pFnd = aIter.Next() )
			if( 0 != ( pTxtNd = ((SwTxtINetFmt*)pFnd)->GetpTxtNode()) &&
				pTxtNd->GetNodes().IsDocNodes() )
			{
				SwTxtINetFmt& rAttr = *(SwTxtINetFmt*)pFnd;
=====================================================================
Found a 31 line (117 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unopage.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshcol.cxx

void SvxShapeCollection::release() throw()
{
	uno::Reference< uno::XInterface > x( xDelegator );
	if (! x.is())
	{
		if (osl_decrementInterlockedCount( &m_refCount ) == 0)
		{
			if (! mrBHelper.bDisposed)
			{
				uno::Reference< uno::XInterface > xHoldAlive( (uno::XWeak*)this );
				// First dispose
				try
				{
					dispose();
				}
				catch(::com::sun::star::uno::Exception&)
				{
					// release should not throw exceptions
				}

				// only the alive ref holds the object
				OSL_ASSERT( m_refCount == 1 );
				// destroy the object if xHoldAlive decrement the refcount to 0
				return;
			}
		}
		// restore the reference count
		osl_incrementInterlockedCount( &m_refCount );
	}
	OWeakAggObject::release();
}
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 1597 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 1918 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2438 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

        0x6C, 0x00, 0x65, 0x00, 0x42, 0x00, 0x75, 0x00,
        0x74, 0x00, 0x74, 0x00, 0x6F, 0x00, 0x6E, 0x00,
        0x31, 0x00, 0x00, 0x00, 0x00, 0x00
    };

    {
    SvStorageStreamRef xStor2( rObj->OpenSotStream( C2S("\3OCXNAME")));
    xStor2->Write(aOCXNAME,sizeof(aOCXNAME));
    DBG_ASSERT((xStor2.Is() && (SVSTREAM_OK == xStor2->GetError())),"damn");
    }

    SvStorageStreamRef xContents( rObj->OpenSotStream( C2S("contents")));

    return WriteContents(xContents,rPropSet,rSize);
}

sal_Bool OCX_ToggleButton::WriteContents(SvStorageStreamRef &rContents,
=====================================================================
Found a 12 line (117 tokens) duplication in the following files: 
Starting at line 425 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tphatch.cxx
Starting at line 497 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tphatch.cxx

		switch( aMtrAngle.GetValue() )
		{
			case 135: aCtlAngle.SetActualRP( RP_LT ); break;
			case  90: aCtlAngle.SetActualRP( RP_MT ); break;
			case  45: aCtlAngle.SetActualRP( RP_RT ); break;
			case 180: aCtlAngle.SetActualRP( RP_LM ); break;
			case   0: aCtlAngle.SetActualRP( RP_RM ); break;
			case 225: aCtlAngle.SetActualRP( RP_LB ); break;
			case 270: aCtlAngle.SetActualRP( RP_MB ); break;
			case 315: aCtlAngle.SetActualRP( RP_RB ); break;
			default:  aCtlAngle.SetActualRP( RP_MM ); break;
		}
=====================================================================
Found a 14 line (117 tokens) duplication in the following files: 
Starting at line 639 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx
Starting at line 658 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx

    : InsertObjectDialog_Impl( pParent, SVX_RES( MD_INSERT_OBJECT_APPLET ), uno::Reference < embed::XStorage >() ),
    aFtClassfile( this, SVX_RES( FT_CLASSFILE ) ),
    aEdClassfile( this, SVX_RES( ED_CLASSFILE ) ),
    aFtClasslocation( this, SVX_RES( FT_CLASSLOCATION ) ),
    aEdClasslocation( this, SVX_RES( ED_CLASSLOCATION ) ),
    aBtnClass( this, SVX_RES( BTN_CLASS ) ),
    aGbClass( this, SVX_RES( GB_CLASS ) ),
    aEdAppletOptions( this, SVX_RES( ED_APPLET_OPTIONS ) ),
    aGbAppletOptions( this, SVX_RES( GB_APPLET_OPTIONS ) ),
    aOKButton1( this, SVX_RES( 1 ) ),
    aCancelButton1( this, SVX_RES( 1 ) ),
    aHelpButton1( this, SVX_RES( 1 ) ),
    m_pURL(0)
{
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx
Starting at line 1781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salprn.cxx

    if( mpInfoPrinter->maPortName.EqualsIgnoreCaseAscii( "FILE:" ) && !(pFileName && pFileName->Len()) )
    {

        Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
        if( xFactory.is() )
        {
            Reference< XFilePicker > xFilePicker( xFactory->createInstance(
                OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ),
                UNO_QUERY );
            DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

            Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
            Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
            if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
            {
                Sequence< Any > aServiceType( 1 );
                aServiceType[0] <<= TemplateDescription::FILESAVE_SIMPLE;
=====================================================================
Found a 13 line (117 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dbregister.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/optpath.cxx

	pHeaderBar->SetEndDragHdl( LINK( this, SvxPathTabPage, HeaderEndDrag_Impl ) );
	Size aSz;
	aSz.Width() = TAB_WIDTH1;
	pHeaderBar->InsertItem( ITEMID_TYPE, aTypeText.GetText(),
							LogicToPixel( aSz, MapMode( MAP_APPFONT ) ).Width(),
							HIB_LEFT | HIB_VCENTER | HIB_CLICKABLE | HIB_UPARROW );
	aSz.Width() = TAB_WIDTH2;
	pHeaderBar->InsertItem( ITEMID_PATH, aPathText.GetText(),
							LogicToPixel( aSz, MapMode( MAP_APPFONT ) ).Width(),
							HIB_LEFT | HIB_VCENTER );

	static long nTabs[] = {3, 0, TAB_WIDTH1, TAB_WIDTH1 + TAB_WIDTH2 };
	Size aHeadSize = pHeaderBar->GetSizePixel();
=====================================================================
Found a 13 line (117 tokens) duplication in the following files: 
Starting at line 2097 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2182 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2286 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2448 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2629 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffCalculationData mso_sptActionButtonDocumentCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, { DFF_Prop_adjustValue, 0, 0 } },
	{ 0x6000, { DFF_Prop_geoLeft, DFF_Prop_adjustValue, 0 } },
	{ 0x6000, { DFF_Prop_geoTop, DFF_Prop_adjustValue, 0 } },
	{ 0xa000, { DFF_Prop_geoRight, 0, DFF_Prop_adjustValue } },
	{ 0xa000, { DFF_Prop_geoBottom, 0, DFF_Prop_adjustValue } },
	{ 0x8000, { 10800, 0, DFF_Prop_adjustValue } },
	{ 0x2001, { 0x0405, 1, 10800 } },			// scaling	 6
	{ 0x2001, { DFF_Prop_geoRight, 1, 2 } },	// lr center 7
	{ 0x2001, { DFF_Prop_geoBottom, 1, 2 } },	// ul center 8

	{ 0x4001, { -6350, 0x0406, 1 } },	// 9
=====================================================================
Found a 26 line (117 tokens) duplication in the following files: 
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx

                try
                {
                    xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );
                }
                catch ( Exception& )
                {
                }
                pIter->second = xDispatch;

                Listener aListener( aTargetURL, xDispatch );
                aDispatchVector.push_back( aListener );
                ++pIter;
            }
        }
    }

    // Call without locked mutex as we are called back from dispatch implementation
    if ( xStatusListener.is() )
    {
        try
        {
            for ( sal_uInt32 i = 0; i < aDispatchVector.size(); i++ )
            {
                Listener& rListener = aDispatchVector[i];
                if ( rListener.xDispatch.is() )
                    rListener.xDispatch->addStatusListener( xStatusListener, rListener.aURL );
=====================================================================
Found a 10 line (117 tokens) duplication in the following files: 
Starting at line 1017 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/emfwr.cxx
Starting at line 1628 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/wmfwr.cxx

					const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
					
					GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
					Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
					const Size		aSrcSize( aTmpMtf.GetPrefSize() );
					const Point		aDestPt( pA->GetPoint() );
					const Size		aDestSize( pA->GetSize() );
					const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
					const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
					long			nMoveX, nMoveY;
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/insdlg.cxx
Starting at line 1781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salprn.cxx

    if( mpInfoPrinter->maPortName.EqualsIgnoreCaseAscii( "FILE:" ) && !(pFileName && pFileName->Len()) )
    {

        Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
        if( xFactory.is() )
        {
            Reference< XFilePicker > xFilePicker( xFactory->createInstance(
                OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ) ),
                UNO_QUERY );
            DBG_ASSERT( xFilePicker.is(), "could not get FilePicker service" );

            Reference< XInitialization > xInit( xFilePicker, UNO_QUERY );
            Reference< XFilterManager > xFilterMgr( xFilePicker, UNO_QUERY );
            if( xInit.is() && xFilePicker.is() && xFilterMgr.is() )
            {
                Sequence< Any > aServiceType( 1 );
                aServiceType[0] <<= TemplateDescription::FILESAVE_SIMPLE;
=====================================================================
Found a 12 line (117 tokens) duplication in the following files: 
Starting at line 578 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/macropg.cxx
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/macropg.cxx

    rListBox.SetSelectHdl( STATIC_LINK( this, _SvxMacroTabPage, SelectEvent_Impl ));

    rListBox.SetSelectionMode( SINGLE_SELECTION );
    rListBox.SetTabs( &nTabs[0], MAP_APPFONT );
    Size aSize( nTabs[ 2 ], 0 );
    rHeaderBar.InsertItem( ITEMID_EVENT, *mpImpl->pStrEvent, LogicToPixel( aSize, MapMode( MAP_APPFONT ) ).Width() );
    aSize.Width() = 1764;        // don't know what, so 42^2 is best to use...
    rHeaderBar.InsertItem( ITMEID_ASSMACRO, *mpImpl->pAssignedMacro, LogicToPixel( aSize, MapMode( MAP_APPFONT ) ).Width() );
    rListBox.SetSpaceBetweenEntries( 0 );

    mpImpl->pEventLB->Show();
    mpImpl->pEventLB->ConnectElements();
=====================================================================
Found a 30 line (117 tokens) duplication in the following files: 
Starting at line 156 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/linkmgr2.cxx
Starting at line 153 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/solink/linkmgr2.cxx

	pLink->pLinkMgr = this;
	aLinkTbl.Insert( pTmp, aLinkTbl.Count() );
	return TRUE;
}


BOOL SvLinkManager::InsertLink( SvBaseLink * pLink,
								USHORT nObjType,
								USHORT nUpdateMode,
								const String* pName )
{
	// unbedingt zuerst
	pLink->SetObjType( nObjType );
	if( pName )
		pLink->SetName( *pName );
	pLink->SetUpdateMode( nUpdateMode );
	return Insert( pLink );
}


BOOL SvLinkManager::InsertDDELink( SvBaseLink * pLink,
									const String& rServer,
									const String& rTopic,
									const String& rItem )
{
	if( !( OBJECT_CLIENT_SO & pLink->GetObjType() ) )
		return FALSE;

	String sCmd;
	::so3::MakeLnkName( sCmd, &rServer, rTopic, rItem );
=====================================================================
Found a 20 line (117 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
Starting at line 63 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/postuninstall.cxx

static std::_tstring GetMsiProperty( MSIHANDLE handle, const std::_tstring& sProperty )
{
	std::_tstring	result;
	TCHAR	szDummy[1] = TEXT("");
	DWORD	nChars = 0;

	if ( MsiGetProperty( handle, sProperty.c_str(), szDummy, &nChars ) == ERROR_MORE_DATA )
	{
        DWORD nBytes = ++nChars * sizeof(TCHAR);
        LPTSTR buffer = reinterpret_cast<LPTSTR>(_alloca(nBytes));
        ZeroMemory( buffer, nBytes );
        MsiGetProperty(handle, sProperty.c_str(), buffer, &nChars);
        result = buffer;            
	}

	return	result;
}


static BOOL ExecuteCommand( LPCTSTR lpCommand, BOOL bSync )
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 1028 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 1065 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

	case WID_PAGE_PREVIEWBITMAP :
		{
			SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
			if ( pDoc )
			{
				::sd::DrawDocShell* pDocShell = pDoc->GetDocSh();
				if ( pDocShell )
				{
					sal_uInt16 nPgNum = 0;
					sal_uInt16 nPageCount = pDoc->GetSdPageCount( PK_STANDARD );
					sal_uInt16 nPageNumber = (sal_uInt16)( ( GetPage()->GetPageNum() - 1 ) >> 1 );
					while( nPgNum < nPageCount )
					{
						pDoc->SetSelected( pDoc->GetSdPage( nPgNum, PK_STANDARD ), nPgNum == nPageNumber );
						nPgNum++;
					}
					GDIMetaFile* pMetaFile = pDocShell->GetPreviewMetaFile();
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 750 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/app/sdmod2.cxx
Starting at line 773 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/UnoDocumentSettings.cxx

                        pDoc->SetSummationOfParagraphs( bIsSummationOfParagraphs );
			            SdDrawDocument* pDocument = pDocSh->GetDoc();
			            SdrOutliner& rOutl = pDocument->GetDrawOutliner( FALSE );
			            nCntrl = rOutl.GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION;
			            rOutl.SetControlWord( nCntrl | nSum );
			            ::sd::Outliner* pOutl = pDocument->GetOutliner( FALSE );
			            if( pOutl )
			            {
				            nCntrl = pOutl->GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION;
				            pOutl->SetControlWord( nCntrl | nSum );
			            }
			            pOutl = pDocument->GetInternalOutliner( FALSE );
			            if( pOutl )
			            {
				            nCntrl = pOutl->GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION;
				            pOutl->SetControlWord( nCntrl | nSum );
			            }
=====================================================================
Found a 11 line (117 tokens) duplication in the following files: 
Starting at line 312 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/drawdoc4.cxx
Starting at line 265 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/stlpool.cxx

	mpDoc->getDefaultFonts( aLatinFont, aCJKFont, aCTLFont );

	// Font fuer Titel und Gliederung
	SvxFontItem aSvxFontItem( aLatinFont.GetFamily(), aLatinFont.GetName(), aLatinFont.GetStyleName(), aLatinFont.GetPitch(),
		                      aLatinFont.GetCharSet(), EE_CHAR_FONTINFO );

	SvxFontItem aSvxFontItemCJK( aCJKFont.GetFamily(), aCJKFont.GetName(), aCJKFont.GetStyleName(), aCJKFont.GetPitch(),
		                         aCJKFont.GetCharSet(), EE_CHAR_FONTINFO_CJK );

	SvxFontItem aSvxFontItemCTL( aCTLFont.GetFamily(), aCTLFont.GetName(), aCTLFont.GetStyleName(), aCTLFont.GetPitch(),
		                         aCTLFont.GetCharSet(), EE_CHAR_FONTINFO_CTL );
=====================================================================
Found a 12 line (117 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/CustomAnimationPreset.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/animations/CustomAnimationList.cxx

using namespace ::com::sun::star;
using namespace ::com::sun::star::animations;
using namespace ::com::sun::star::presentation;

using ::rtl::OUString;
using ::com::sun::star::uno::UNO_QUERY;
using ::com::sun::star::uno::UNO_QUERY_THROW;
using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Exception;
using ::com::sun::star::uno::XInterface;
=====================================================================
Found a 22 line (117 tokens) duplication in the following files: 
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin2.cxx
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/pivotsh.cxx

				AbstractScPivotFilterDlg* pDlg = pFact->CreateScPivotFilterDlg( pViewShell->GetDialogParent(), 
																				aArgSet, nSrcTab,
																				RID_SCDLG_PIVOTFILTER);
				DBG_ASSERT(pDlg, "Dialog create fail!");//CHINA001

                if( pDlg->Execute() == RET_OK )
                {
                    ScSheetSourceDesc aNewDesc;
                    if( pDesc )
                        aNewDesc = *pDesc;

                    const ScQueryItem& rQueryItem = pDlg->GetOutputItem();
                    aNewDesc.aQueryParam = rQueryItem.GetQueryData();

                    ScDPObject aNewObj( *pDPObj );
                    aNewObj.SetSheetDesc( aNewDesc );
                    ScDBDocFunc aFunc( *pViewData->GetDocShell() );
                    aFunc.DataPilotUpdate( pDPObj, &aNewObj, TRUE, FALSE );
                    pViewData->GetView()->CursorPosChanged();       // shells may be switched
                }
                delete pDlg;
            }
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 1169 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/styleuno.cxx
Starting at line 1501 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/styleuno.cxx

		ScDocument* pDoc = pDocShell->GetDocument();
		if ( eFamily == SFX_STYLE_FAMILY_PARA )
		{
			//	row heights

			VirtualDevice aVDev;
			Point aLogic = aVDev.LogicToPixel( Point(1000,1000), MAP_TWIP );
			double nPPTX = aLogic.X() / 1000.0;
			double nPPTY = aLogic.Y() / 1000.0;
			Fraction aZoom(1,1);
			pDoc->StyleSheetChanged( pStyle, sal_False, &aVDev, nPPTX, nPPTY, aZoom, aZoom );

			pDocShell->PostPaint( 0,0,0, MAXCOL,MAXROW,MAXTAB, PAINT_GRID|PAINT_LEFT );
			pDocShell->SetDocumentModified();
		}
		else
		{
=====================================================================
Found a 14 line (117 tokens) duplication in the following files: 
Starting at line 925 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/fielduno.cxx
Starting at line 969 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/fielduno.cxx

	ScEditEngineDefaulter* pEditEngine = ((ScHeaderFooterEditSource*)pEditSource)->GetEditEngine();
	ScUnoEditEngine aTempEngine(pEditEngine);

	TypeId aTypeId = NULL;
	switch (nType)
	{
		case SC_SERVICE_PAGEFIELD:	aTypeId = TYPE(SvxPageField);	 break;
		case SC_SERVICE_PAGESFIELD:	aTypeId = TYPE(SvxPagesField);	 break;
		case SC_SERVICE_DATEFIELD:	aTypeId = TYPE(SvxDateField);	 break;
		case SC_SERVICE_TIMEFIELD:	aTypeId = TYPE(SvxTimeField);	 break;
		case SC_SERVICE_TITLEFIELD:	aTypeId = TYPE(SvxFileField);	 break;
		case SC_SERVICE_FILEFIELD:	aTypeId = TYPE(SvxExtFileField); break;
		case SC_SERVICE_SHEETFIELD:	aTypeId = TYPE(SvxTableField);	 break;
	}
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 558 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldpimp.cxx
Starting at line 627 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldrani.cxx

	pDatabaseRangeContext(pTempDatabaseRangeContext)
{
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	const SvXMLTokenMap& rAttrTokenMap = GetScImport().GetDatabaseRangeSourceQueryAttrTokenMap();
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix = GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName );
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		switch( rAttrTokenMap.Get( nPrefix, aLocalName ) )
		{
			case XML_TOK_SOURCE_QUERY_ATTR_DATABASE_NAME :
			{
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 502 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldpimp.cxx
Starting at line 559 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldrani.cxx

	pDatabaseRangeContext(pTempDatabaseRangeContext)
{
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	const SvXMLTokenMap& rAttrTokenMap = GetScImport().GetDatabaseRangeSourceTableAttrTokenMap();
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix = GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName );
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		switch( rAttrTokenMap.Get( nPrefix, aLocalName ) )
		{
			case XML_TOK_SOURCE_TABLE_ATTR_DATABASE_NAME :
			{
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldpimp.cxx
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldrani.cxx

	pDatabaseRangeContext(pTempDatabaseRangeContext)
{
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	const SvXMLTokenMap& rAttrTokenMap = GetScImport().GetDatabaseRangeSourceSQLAttrTokenMap();
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix = GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName );
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		switch( rAttrTokenMap.Get( nPrefix, aLocalName ) )
		{
			case XML_TOK_SOURCE_SQL_ATTR_DATABASE_NAME :
			{
=====================================================================
Found a 12 line (117 tokens) duplication in the following files: 
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/biffdump.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/biffdump.cxx

	__AddHexNibble( r, ( UINT8 ) ( nVal >> 28 ) );
	__AddHexNibble( r, ( UINT8 ) ( nVal >> 24 ) );
	__AddHexNibble( r, ( UINT8 ) ( nVal >> 20 ) );
	__AddHexNibble( r, ( UINT8 ) ( nVal >> 16 ) );
	__AddHexNibble( r, ( UINT8 ) ( nVal >> 12 ) );
	__AddHexNibble( r, ( UINT8 ) ( nVal >> 8 ) );
	__AddHexNibble( r, ( UINT8 ) ( nVal >> 4 ) );
	__AddHexNibble( r, ( UINT8 ) nVal );
}


static void __AddHex( ByteString& r, INT32 nVal )
=====================================================================
Found a 31 line (117 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 425 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

							fy = fx * fy / ScGetGGT(fx, fy);
						}
						SetError(nErr);
					}
					else
						SetError(errIllegalArgument);
				}
				break;
				case svMatrix :
				{
					ScMatrixRef pMat = PopMatrix();
					if (pMat)
					{
                        SCSIZE nC, nR;
                        pMat->GetDimensions(nC, nR);
						if (nC == 0 || nR == 0)
							SetError(errIllegalArgument);
						else
						{
							if (!pMat->IsValue(0))
							{
								SetIllegalArgument();
								return;
							}
							fx = pMat->GetDouble(0);
							if (fx < 0.0)
							{
								fx *= -1.0;
								fSign *= -1.0;
							}
							fy = fx * fy / ScGetGGT(fx, fy);
=====================================================================
Found a 14 line (117 tokens) duplication in the following files: 
Starting at line 1411 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpobject.cxx
Starting at line 1893 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpobject.cxx

        rData.mnUsedHier = nHierarchy;

		uno::Reference<uno::XInterface> xHier = ScUnoHelpFunctions::AnyToInterface(
									xHiers->getByIndex(nHierarchy) );

		uno::Reference<sheet::XLevelsSupplier> xHierSupp( xHier, uno::UNO_QUERY );
		if ( xHierSupp.is() )
		{
			uno::Reference<container::XIndexAccess> xLevels = new ScNameToIndexAccess( xHierSupp->getLevels() );
			uno::Reference<uno::XInterface> xLevel =
				ScUnoHelpFunctions::AnyToInterface( xLevels->getByIndex( 0 ) );
			uno::Reference<beans::XPropertySet> xLevProp( xLevel, uno::UNO_QUERY );
			if ( xLevProp.is() )
            {
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx
Starting at line 622 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/cipher/rtl_cipher.cxx

            pArgBuffer[0] = 1;

            t_print(T_VERBOSE, "Key: %s\n", createHex(pKeyBuffer, nKeyLen).getStr());
            t_print(T_VERBOSE, "Arg: %s\n", createHex(pArgBuffer, nArgLen).getStr());

            rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, pArgBuffer, nArgLen);
            CPPUNIT_ASSERT_MESSAGE("wrong init", aError == rtl_Cipher_E_None);

            t_print(T_VERBOSE, "Key: %s\n", createHex(pKeyBuffer, nKeyLen).getStr());
            t_print(T_VERBOSE, "Arg: %s\n", createHex(pArgBuffer, nArgLen).getStr());

            delete [] pArgBuffer;
            delete [] pKeyBuffer;

            rtl_cipher_destroy(aCipher);
        }
    void init_004()
=====================================================================
Found a 40 line (117 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_AcceptorSocket.cxx
Starting at line 3339 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

namespace osl_AcceptorSocket
{

	/** testing the methods:
		inline AcceptorSocket(oslAddrFamily Family = osl_Socket_FamilyInet, 
							  oslProtocol	Protocol = osl_Socket_ProtocolIp,
							  oslSocketType	Type = osl_Socket_TypeStream);
	*/

	class ctors : public CppUnit::TestFixture
	{
	public:
		
		void ctors_001()
		{
			/// Socket constructor.
			::osl::AcceptorSocket asSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
	
			CPPUNIT_ASSERT_MESSAGE( "test for ctors_001 constructor function: check if the acceptor socket was created successfully.", 
									osl_Socket_TypeStream ==  asSocket.getType( ) );
		}
		
		CPPUNIT_TEST_SUITE( ctors );
		CPPUNIT_TEST( ctors_001 );
		CPPUNIT_TEST_SUITE_END();
		
	}; // class ctors
	
#if 0
	class operator_assign : public CppUnit::TestFixture
	{
	public:
		
		void assign_001()
		{
#if defined(LINUX)
			::osl::AcceptorSocket asSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
			::osl::AcceptorSocket asSocketAssign( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
			asSocket.setOption( osl_Socket_OptionReuseAddr, 1);
			::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_MYPORT4 );			
=====================================================================
Found a 14 line (117 tokens) duplication in the following files: 
Starting at line 1110 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/parseAFM.cxx
Starting at line 1134 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/parseAFM.cxx

                case KERNPAIRXAMT:
                    if (!(pcount < fi->numOfPairs))
                    {
                        reallocFontMetrics( (void**)&(fi->pkd), &(fi->numOfPairs), 
                                            enlargeCount(fi->numOfPairs), sizeof(PairKernData) );
                    }
                    if (pcount < fi->numOfPairs)
                    {
                        keyword = token(fp,tokenlen);
                        fi->pkd[pos].name1 = strdup( keyword );
                        keyword = token(fp,tokenlen);
                        fi->pkd[pos].name2 = strdup( keyword );
                        keyword = token(fp,tokenlen);
                        fi->pkd[pos++].xamt = atoi(keyword);
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 803 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/zippackage/ZipPackage.cxx
Starting at line 884 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/zippackage/ZipPackage.cxx

		return sal_True;
	else 
	{
		nStreamIndex = aName.lastIndexOf ( '/' );
		bool bFolder = nStreamIndex == nIndex-1;
		if ( nStreamIndex != -1 )
		{
			sDirName = aName.copy ( 0, nStreamIndex);
			aIter = aRecent.find ( sDirName );
			if ( aIter != aRecent.end() )
			{
				if ( bFolder )
				{
					sal_Int32 nDirIndex = aName.lastIndexOf ( '/', nStreamIndex );
					sTemp = aName.copy ( nDirIndex == -1 ? 0 : nDirIndex+1, nStreamIndex-nDirIndex-1 );
					if ( sTemp == (*aIter).second->getName() )
						return sal_True;
=====================================================================
Found a 20 line (117 tokens) duplication in the following files: 
Starting at line 1609 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx
Starting at line 1633 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx

                        if (*result) strcat(result, "\n");
                     	st = pSMgr->suggest_morph_for_spelling_error(wspace);
                     	if (st) {
                        	strcat(result, st);
                        	free(st);
                     	}		     
                        mkallsmall(wspace);
                        st = pSMgr->suggest_morph_for_spelling_error(wspace);
                        if (st) {
                          if (*result) strcat(result, "\n");
                          strcat(result, st);
                          free(st);
                        }
		                mkinitcap(wspace);
		                st = pSMgr->suggest_morph_for_spelling_error(wspace);
                        if (st) {
                          if (*result) strcat(result, "\n");
                          strcat(result, st);
                          free(st);
                        }
=====================================================================
Found a 20 line (117 tokens) duplication in the following files: 
Starting at line 1378 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx
Starting at line 1402 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx

                        if (*result) strcat(result, "\n");
                     	st = pSMgr->suggest_morph(wspace);
                     	if (st) {
                        	strcat(result, st);
                        	free(st);
                     	}		     
                        mkallsmall(wspace);
                        st = pSMgr->suggest_morph(wspace);
                        if (st) {
                          if (*result) strcat(result, "\n");
                          strcat(result, st);
                          free(st);
                        }
		                mkinitcap(wspace);
		                st = pSMgr->suggest_morph(wspace);
                        if (st) {
                          if (*result) strcat(result, "\n");
                          strcat(result, st);
                          free(st);
                        }
=====================================================================
Found a 11 line (117 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acc_pipe.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acc_socket.cxx

		virtual void SAL_CALL write( const ::com::sun::star::uno::Sequence< sal_Int8 >& aData )
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException);
		virtual void SAL_CALL flush(  ) throw(
			::com::sun::star::io::IOException,
			::com::sun::star::uno::RuntimeException);
		virtual void SAL_CALL close(  )
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException);
		virtual ::rtl::OUString SAL_CALL getDescription(  )
			throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 21 line (117 tokens) duplication in the following files: 
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h
Starting at line 650 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h

	{ 0x30dc, 0x30dd },	// 0x30db KATAKANA LETTER HO --> KATAKANA LETTER BO or KATAKANA LETTER PO
	{ 0x0000, 0x0000 },	// 0x30dc KATAKANA LETTER BO
	{ 0x0000, 0x0000 },	// 0x30dd KATAKANA LETTER PO
	{ 0x0000, 0x0000 },	// 0x30de KATAKANA LETTER MA
	{ 0x0000, 0x0000 },	// 0x30df KATAKANA LETTER MI
	{ 0x0000, 0x0000 },	// 0x30e0 KATAKANA LETTER MU
	{ 0x0000, 0x0000 },	// 0x30e1 KATAKANA LETTER ME
	{ 0x0000, 0x0000 },	// 0x30e2 KATAKANA LETTER MO
	{ 0x0000, 0x0000 },	// 0x30e3 KATAKANA LETTER SMALL YA
	{ 0x0000, 0x0000 },	// 0x30e4 KATAKANA LETTER YA
	{ 0x0000, 0x0000 },	// 0x30e5 KATAKANA LETTER SMALL YU
	{ 0x0000, 0x0000 },	// 0x30e6 KATAKANA LETTER YU
	{ 0x0000, 0x0000 },	// 0x30e7 KATAKANA LETTER SMALL YO
	{ 0x0000, 0x0000 },	// 0x30e8 KATAKANA LETTER YO
	{ 0x0000, 0x0000 },	// 0x30e9 KATAKANA LETTER RA
	{ 0x0000, 0x0000 },	// 0x30ea KATAKANA LETTER RI
	{ 0x0000, 0x0000 },	// 0x30eb KATAKANA LETTER RU
	{ 0x0000, 0x0000 },	// 0x30ec KATAKANA LETTER RE
	{ 0x0000, 0x0000 },	// 0x30ed KATAKANA LETTER RO
	{ 0x0000, 0x0000 },	// 0x30ee KATAKANA LETTER SMALL WA
	{ 0x30f7, 0x0000 },	// 0x30ef KATAKANA LETTER WA --> KATAKANA LETTER VA
=====================================================================
Found a 4 line (117 tokens) duplication in the following files: 
Starting at line 1462 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1481 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a450 - a45f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a460 - a46f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a470 - a47f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a480 - a48f
=====================================================================
Found a 4 line (117 tokens) duplication in the following files: 
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1246 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1780 - 178f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1790 - 179f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 17a0 - 17af
     0, 0, 0, 0, 0, 0, 0,17,17,17,17,17,17,17, 0, 0,// 17b0 - 17bf
=====================================================================
Found a 20 line (117 tokens) duplication in the following files: 
Starting at line 1119 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 799 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0c0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
=====================================================================
Found a 4 line (117 tokens) duplication in the following files: 
Starting at line 1102 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1136 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c00 - 0c0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c10 - 0c1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c20 - 0c2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17,17,// 0c30 - 0c3f
=====================================================================
Found a 5 line (117 tokens) duplication in the following files: 
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0d40 - 0d4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d50 - 0d5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d60 - 0d6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d80 - 0d8f
=====================================================================
Found a 4 line (117 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1102 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a00 - 0a0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a10 - 0a1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a20 - 0a2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 0a30 - 0a3f
=====================================================================
Found a 5 line (117 tokens) duplication in the following files: 
Starting at line 620 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0440 - 044f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0450 - 045f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0460 - 046f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0470 - 047f
     0, 0, 0,17,17,17,17, 0,17,17, 0, 0, 0, 0, 0, 0,// 0480 - 048f
=====================================================================
Found a 4 line (117 tokens) duplication in the following files: 
Starting at line 608 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 753 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3340 - 334f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3350 - 335f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3360 - 336f
    27,27,27,27,27,27,27, 0, 0, 0, 0,27,27,27,27,27,// 3370 - 337f
=====================================================================
Found a 5 line (117 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0440 - 044f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0450 - 045f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0460 - 046f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0470 - 047f
     0, 0, 0,17,17,17,17, 0,17,17, 0, 0, 0, 0, 0, 0,// 0480 - 048f
=====================================================================
Found a 4 line (117 tokens) duplication in the following files: 
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1840 - 184f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1850 - 185f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1860 - 186f
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
=====================================================================
Found a 5 line (117 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0440 - 044f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0450 - 045f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0460 - 046f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0470 - 047f
     0, 0, 0,17,17,17,17, 0,17,17, 0, 0, 0, 0, 0, 0,// 0480 - 048f
=====================================================================
Found a 5 line (117 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x6a, 0x1F78}, {0x6a, 0x1F79}, {0x6a, 0x1F7C}, {0x6a, 0x1F7D}, {0xec, 0x0137}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 1ff8 - 1fff

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2100 - 2107
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2108 - 210f
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 2110 - 2117
=====================================================================
Found a 4 line (117 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0980 - 098f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0990 - 099f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 09a0 - 09af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 09b0 - 09bf
=====================================================================
Found a 8 line (117 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/renderer.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unogallery/unogalitem.cxx

		aAny <<= uno::Reference< gallery::XGalleryItem >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XPropertySet >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XPropertyState >*)0) )
		aAny <<= uno::Reference< beans::XPropertyState >(this);
	else if( rType == ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0) )
		aAny <<= uno::Reference< beans::XMultiPropertySet >(this);
	else
=====================================================================
Found a 13 line (117 tokens) duplication in the following files: 
Starting at line 1014 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1112 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

							aCol0 = pAcc->GetPixel( nTmpY--, --nTmpX );
							cR1 = MAP( aCol0.GetRed(), aCol1.GetRed(), nTmpFX );
							cG1 = MAP( aCol0.GetGreen(), aCol1.GetGreen(), nTmpFX );
							cB1 = MAP( aCol0.GetBlue(), aCol1.GetBlue(), nTmpFX );

							aColRes.SetRed( MAP( cR0, cR1, nTmpFY ) );
							aColRes.SetGreen( MAP( cG0, cG1, nTmpFY ) );
							aColRes.SetBlue( MAP( cB0, cB1, nTmpFY ) );
							pWAcc->SetPixel( nYDst, nXDst++, aColRes );
						}
					}
				}
			}
=====================================================================
Found a 34 line (117 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itiff/ccidecom.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itiff/ccidecom.cxx

	{ 1728, 0x0065, 13 },
	{ 1792, 0x0008, 11 },
	{ 1856, 0x000c, 11 },
	{ 1920, 0x000d, 11 },
	{ 1984, 0x0012, 12 },
	{ 2048, 0x0013, 12 },
	{ 2112, 0x0014, 12 },
	{ 2176, 0x0015, 12 },
	{ 2240, 0x0016, 12 },
	{ 2304, 0x0017, 12 },
	{ 2368, 0x001c, 12 },
	{ 2432, 0x001d, 12 },
	{ 2496, 0x001e, 12 },
	{ 2560, 0x001f, 12 },
	{ 9999, 0x0001, 12 }	//	EOL
};


//---------------------------- 2D-Mode --------------------------------

#define CCI2DMODE_UNCOMP   0
#define CCI2DMODE_PASS     1
#define CCI2DMODE_HORZ     2
#define CCI2DMODE_VERT_L3  3
#define CCI2DMODE_VERT_L2  4
#define CCI2DMODE_VERT_L1  5
#define CCI2DMODE_VERT_0   6
#define CCI2DMODE_VERT_R1  7
#define CCI2DMODE_VERT_R2  8
#define CCI2DMODE_VERT_R3  9

#define CCI2DModeTableSize 10

const CCIHuffmanTableEntry CCI2DModeTable[CCI2DModeTableSize]={
=====================================================================
Found a 18 line (117 tokens) duplication in the following files: 
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uicategorydescription.cxx
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/windowstateconfiguration.cxx

            throw(css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException );

        // XElementAccess
        virtual ::com::sun::star::uno::Type SAL_CALL getElementType() 
            throw (::com::sun::star::uno::RuntimeException);
        
        virtual sal_Bool SAL_CALL hasElements() 
            throw (::com::sun::star::uno::RuntimeException);

        // container.XContainerListener
        virtual void SAL_CALL     elementInserted( const ContainerEvent& aEvent ) throw(RuntimeException);
        virtual void SAL_CALL     elementRemoved ( const ContainerEvent& aEvent ) throw(RuntimeException);
        virtual void SAL_CALL     elementReplaced( const ContainerEvent& aEvent ) throw(RuntimeException);

        // lang.XEventListener
        virtual void SAL_CALL disposing( const EventObject& aEvent ) throw(RuntimeException);
    
    protected:
=====================================================================
Found a 22 line (117 tokens) duplication in the following files: 
Starting at line 3488 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/autorecovery.cxx
Starting at line 3554 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/autorecovery.cxx

void AutoRecovery::impl_forgetProgress(const AutoRecovery::TDocumentInfo&               rInfo    ,
                                             ::comphelper::MediaDescriptor&             rArgs    ,
                                       const css::uno::Reference< css::frame::XFrame >& xNewFrame)
{
    // external well known frame must be preferred (because it was created by ourself
    // for loading documents into this frame)!
    // But if no frame exists ... we can try to locate it using any frame bound to the provided
    // document. Of course we must live without any frame in case the document does not exists at this
    // point. But this state shouldnt occure. In such case xNewFrame should be valid ... hopefully .-)
    css::uno::Reference< css::frame::XFrame > xFrame = xNewFrame;
    if (
        (!xFrame.is()       ) &&
        (rInfo.Document.is())
       )
    {
        css::uno::Reference< css::frame::XController > xController = rInfo.Document->getCurrentController();
        if (xController.is())
            xFrame = xController->getFrame();
    }

    // stop progress interception on corresponding frame.
    css::uno::Reference< css::beans::XPropertySet > xFrameProps(xFrame, css::uno::UNO_QUERY);
=====================================================================
Found a 18 line (117 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menuconfiguration.cxx
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menuconfiguration.cxx

		throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
	}
}

PopupMenu* MenuConfiguration::CreateBookmarkMenu(
	::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
	const ::rtl::OUString& aURL )
throw ( ::com::sun::star::lang::WrappedTargetException )
{
	if ( aURL == BOOKMARK_NEWMENU )
		return new BmkMenu( rFrame, BmkMenu::BMK_NEWMENU );
	else if ( aURL == BOOKMARK_WIZARDMENU )
		return new BmkMenu( rFrame, BmkMenu::BMK_WIZARDMENU );
	else
		return NULL;
}

void MenuConfiguration::StoreMenuBarConfigurationToXML( 
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/win32/misc/WinImplHelper.cxx
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/win32/misc/WinImplHelper.cxx

void SAL_CALL ListboxSetSelectedItem( HWND hwnd, const Any& aPosition, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
    throw( IllegalArgumentException )
{
    OSL_ASSERT( IsWindow( hwnd ) );

     if ( !aPosition.hasValue( ) || 
         ( (aPosition.getValueType( ) != getCppuType((sal_Int32*)0)) &&
           (aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
           (aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
         throw IllegalArgumentException(
            OUString::createFromAscii( "invalid value type or any has no value" ),
            rXInterface,
            aArgPos );

    sal_Int32 nPos;
    aPosition >>= nPos;
=====================================================================
Found a 10 line (117 tokens) duplication in the following files: 
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx
Starting at line 1628 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/wmfwr.cxx

					const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
					
					GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
					Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
					const Size		aSrcSize( aTmpMtf.GetPrefSize() );
					const Point		aDestPt( pA->GetPoint() );
					const Size		aDestSize( pA->GetSize() );
					const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
					const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
					long			nMoveX, nMoveY;
=====================================================================
Found a 4 line (117 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0980 - 098f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0990 - 099f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 09a0 - 09af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 09b0 - 09bf
=====================================================================
Found a 10 line (117 tokens) duplication in the following files: 
Starting at line 1231 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1628 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/wmfwr.cxx

					const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
					
					GDIMetaFile		aTmpMtf( pA->GetGDIMetaFile() );
					Point			aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
					const Size		aSrcSize( aTmpMtf.GetPrefSize() );
					const Point		aDestPt( pA->GetPoint() );
					const Size		aDestSize( pA->GetSize() );
					const double	fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
					const double	fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
					long			nMoveX, nMoveY;
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/visobj.cxx
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olevisual.cxx

sal_Int32 SAL_CALL OleEmbeddedObject::getMapUnit( sal_Int64 nAspect )
		throw ( uno::Exception,
				uno::RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object is not loaded!\n" ),
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/workben/testmoz/main.cxx
Starting at line 137 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/workben/testmoz/mozthread.cxx

using namespace comphelper;
using namespace cppu;
using namespace rtl;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::registry;
using namespace com::sun::star::ucb;
using namespace com::sun::star::beans;

//using namespace com::sun::star;
using namespace connectivity;
using namespace com::sun::star::sdb;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
using namespace ::com::sun::star::container;
using namespace com::sun::star::registry;
=====================================================================
Found a 34 line (117 tokens) duplication in the following files: 
Starting at line 677 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx

	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 level ) throw(SQLException, RuntimeException)
=====================================================================
Found a 16 line (117 tokens) duplication in the following files: 
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/nodeimplobj.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/nodeimplobj.cxx

void DeferredGroupNodeImpl::revertCommit(data::Accessor const& _aAccessor, SubtreeChange& rChanges)
{
	OSL_ENSURE(!rChanges.isSetNodeChange(),"ERROR: Change type SET does not match group");

	for(SubtreeChange::MutatingChildIterator it = rChanges.begin_changes(), stop = rChanges.end_changes();
		it != stop;
		++it)
	{
		Name aValueName = makeNodeName(it->getNodeName(), Name::NoValidate());

        MemberChanges::iterator itStoredChange = m_aChanges.find(aValueName);

        if (itStoredChange != m_aChanges.end())
        {
            OSL_ENSURE( it->ISA(ValueChange) , "Unexpected type of element change");
			if (!it->ISA(ValueChange)) continue;
=====================================================================
Found a 10 line (117 tokens) duplication in the following files: 
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/streaming/otransactedfilestream.cxx
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/opostponedtruncationstream.cxx

	if ( bDeleteIfNotCommited )
		bDelete = !xFileAccess->exists( aURL );

	uno::Reference< io::XStream > xOrigStream = xFileAccess->openFileReadWrite( aURL );
	uno::Reference< io::XTruncate > xOrigTruncate( xOrigStream, uno::UNO_QUERY_THROW );
	uno::Reference< io::XSeekable > xOrigSeekable( xOrigStream, uno::UNO_QUERY_THROW );
	uno::Reference< io::XInputStream > xOrigInStream = xOrigStream->getInputStream();
	uno::Reference< io::XOutputStream > xOrigOutStream = xOrigStream->getOutputStream();
	if ( !xOrigInStream.is() || !xOrigOutStream.is() )
		throw uno::RuntimeException();
=====================================================================
Found a 23 line (117 tokens) duplication in the following files: 
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataPoint.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/CandleStickChartType.cxx

        || nHandle == PROP_CANDLESTICKCHARTTYPE_BLACK_DAY )
    {
        uno::Any aOldValue;
        Reference< util::XModifyBroadcaster > xBroadcaster;
        this->getFastPropertyValue( aOldValue, nHandle );
        if( aOldValue.hasValue() &&
            (aOldValue >>= xBroadcaster) &&
            xBroadcaster.is())
        {
            ModifyListenerHelper::removeListener( xBroadcaster, m_xModifyEventForwarder );
        }

        OSL_ASSERT( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
        if( rValue.hasValue() &&
            (rValue >>= xBroadcaster) &&
            xBroadcaster.is())
        {
            ModifyListenerHelper::addListener( xBroadcaster, m_xModifyEventForwarder );
        }
    }

    ::property::OPropertySet::setFastPropertyValue_NoBroadcast( nHandle, rValue );
}
=====================================================================
Found a 7 line (117 tokens) duplication in the following files: 
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/filter/XMLFilter.cxx
Starting at line 537 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx

	PropertyMapEntry aImportInfoMap[] =
	{
		// #80365# necessary properties for XML progress bar at load time
		{ MAP_LEN( "ProgressRange" ),	0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
		{ MAP_LEN( "ProgressMax" ),		0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
		{ MAP_LEN( "ProgressCurrent" ),	0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
		{ MAP_LEN( "Preview" ),			0, &::getCppuType((const sal_Bool*)0),  ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
=====================================================================
Found a 17 line (117 tokens) duplication in the following files: 
Starting at line 806 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx
Starting at line 840 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx

                (double(v)*2.0)/maSteps;
            return T( static_cast<value_type>(maColor1.r+(maColor2.r-maColor1.r)*w),
                      static_cast<value_type>(maColor1.g+(maColor2.g-maColor1.g)*w),
                      static_cast<value_type>(maColor1.b+(maColor2.b-maColor1.b)*w),
                      static_cast<value_type>(maColor1.a+(maColor2.a-maColor1.a)*w));
        }

        unsigned int maSteps;
        const T      maColor1;
        const T      maColor2;
    };

	//////////////////////////////////////////////////////////////////////////////////
	// color_generator_adaptor
	//////////////////////////////////////////////////////////////////////////////////

    template<typename T> struct color_generator_adaptor
=====================================================================
Found a 18 line (117 tokens) duplication in the following files: 
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx

	nr_gpr++;

	// stack space
	// parameters
	void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
	void ** pCppArgs = pUnoArgs + nParams;
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pUnoArgs + (2 * nParams));
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
	
	sal_Int32 nTempIndizes = 0;

	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
=====================================================================
Found a 22 line (117 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/runtime/stdobj1.cxx
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/runtime/stdobj1.cxx
Starting at line 531 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/runtime/stdobj1.cxx

void SbStdClipboard::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
								 const SfxHint& rHint, const TypeId& rHintType )
{
	const SbxHint* pHint = PTR_CAST( SbxHint, &rHint );

	if( pHint )
	{
		if( pHint->GetId() == SBX_HINT_INFOWANTED )
		{
			SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType );
			return;
		}

		SbxVariable* pVar 	= pHint->GetVar();
		SbxArray*    pPar_ 	= pVar->GetParameters();
		USHORT       nWhich	= (USHORT)pVar->GetUserData();
		BOOL		 bWrite = pHint->GetId() == SBX_HINT_DATACHANGED;

		// Methods
		switch( nWhich )
		{
			case METH_CLEAR:			MethClear( pVar, pPar_, bWrite ); return;
=====================================================================
Found a 13 line (117 tokens) duplication in the following files: 
Starting at line 706 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/jstest.cxx
Starting at line 723 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/jstest.cxx

	{ TT_IDENTIFIER },
	{ TT_IDENTIFIER, TT_WHITESPACE, TT_OPERATOR, TT_OPERATOR, TT_WHITESPACE, TT_IDENTIFIER },
	{ TT_OPERATOR, TT_OPERATOR, TT_WHITESPACE, TT_IDENTIFIER, TT_WHITESPACE, TT_OPERATOR, TT_OPERATOR, TT_WHITESPACE, TT_KEYWORD, TT_WHITESPACE, TT_OPERATOR, TT_OPERATOR },
	{ TT_IDENTIFIER, TT_WHITESPACE, TT_COMMENT },
	{ TT_IDENTIFIER, TT_WHITESPACE, TT_COMMENT },
	{ TT_IDENTIFIER, TT_WHITESPACE, TT_OPERATOR, TT_OPERATOR, TT_WHITESPACE, TT_IDENTIFIER, TT_WHITESPACE, TT_COMMENT },
	{ TT_IDENTIFIER, TT_WHITESPACE, TT_COMMENT },
	{ TT_IDENTIFIER, TT_WHITESPACE, TT_COMMENT },
	{ TT_IDENTIFIER, TT_WHITESPACE, TT_OPERATOR, TT_OPERATOR, TT_WHITESPACE, TT_IDENTIFIER },
	{ TT_KEYWORD, TT_WHITESPACE, TT_COMMENT }
};

TokenTypes test3TTBasic[][12] = { { TT_IDENTIFIER, TT_WHITESPACE, TT_IDENTIFIER, TT_WHITESPACE, TT_IDENTIFIER, TT_WHITESPACE, TT_KEYWORD },
=====================================================================
Found a 22 line (117 tokens) duplication in the following files: 
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/localizationmgr.cxx
Starting at line 597 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/localizationmgr.cxx

						const Locale& rDefaultLocale = xSourceStringResolver->getDefaultLocale();

						const Locale* pLocales = aLocaleSeq.getConstArray();
						sal_Int32 i;
						for ( i = 0; i < nPropStringCount; ++i )
						{
							::rtl::OUString aSourceIdStr = pPropStrings[i];
							::rtl::OUString aPureSourceIdStr = aSourceIdStr.copy( 1 );

							sal_Int32 nUniqueId = xStringResourceManager->getUniqueNumericId();
							::rtl::OUString aPureIdStr = ::rtl::OUString::valueOf( nUniqueId );
							aPureIdStr += aIdStrBase;

							// Set Id for all locales
							for( sal_Int32 iLocale = 0 ; iLocale < nLocaleCount ; iLocale++ )
							{
								const Locale& rLocale = pLocales[ iLocale ];

								::rtl::OUString aResStr;
								try
								{
									aResStr = xSourceStringResolver->resolveStringForLocale
=====================================================================
Found a 16 line (116 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlCell.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlColumn.cxx

    DBG_CTOR( rpt_OXMLRowColumn,NULL);

    const SvXMLNamespaceMap& rMap = rImport.GetNamespaceMap();
	const SvXMLTokenMap& rTokenMap = rImport.GetColumnTokenMap();

	const sal_Int16 nLength = (_xAttrList.is()) ? _xAttrList->getLength() : 0;
	for(sal_Int16 i = 0; i < nLength; ++i)
	{
		OUString sLocalName;
		const rtl::OUString sAttrName = _xAttrList->getNameByIndex( i );
		const sal_uInt16 nPrefix = rMap.GetKeyByAttrName( sAttrName,&sLocalName );
		rtl::OUString sValue = _xAttrList->getValueByIndex( i );

		switch( rTokenMap.Get( nPrefix, sLocalName ) )
		{
			case XML_TOK_COLUMN_STYLE_NAME:
=====================================================================
Found a 18 line (116 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 387 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

            base_type(alloc, src, back_color, inter, &filter) 
        {}

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
            calc_type fg[3];
            calc_type src_alpha;
            value_type back_r = base_type::background_color().r;
            value_type back_g = base_type::background_color().g;
            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            const value_type *fg_ptr;

            color_type* span = base_type::allocator().span();
=====================================================================
Found a 13 line (116 tokens) duplication in the following files: 
Starting at line 431 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 923 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

                value_type* p = (value_type*)m_rbuf->span_ptr(x, y, len);
                calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8;
                if(alpha == base_mask)
                {
                    pixel_type v;
                    ((value_type*)&v)[order_type::R] = c.r;
                    ((value_type*)&v)[order_type::G] = c.g;
                    ((value_type*)&v)[order_type::B] = c.b;
                    ((value_type*)&v)[order_type::A] = c.a;
                    do
                    {
                        *(pixel_type*)p = v;
                        p += 4;
=====================================================================
Found a 16 line (116 tokens) duplication in the following files: 
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx
Starting at line 97 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartPlotAreaOOoTContext.cxx

void XMLAxisOOoContext::StartElement(
    const Reference< xml::sax::XAttributeList >& rAttrList )
{
	OUString aLocation, aMacroName;
	Reference< xml::sax::XAttributeList > xAttrList( rAttrList );
	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, &aLocalName );

        if( nPrefix == XML_NAMESPACE_CHART &&
            IsXMLToken( aLocalName, XML_CLASS ) )
=====================================================================
Found a 6 line (116 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_mask.h

   0xf8, 0x7f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 37 line (116 tokens) duplication in the following files: 
Starting at line 616 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/window2.cxx
Starting at line 682 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/window2.cxx

    Polygon aPoly( ImplLogicToDevicePixel( rPoly ) );

    SalGraphics* pGraphics;

    if ( nFlags & SHOWTRACK_WINDOW )
    {
        if ( !IsDeviceOutputNecessary() )
            return;

        // we need a graphics
        if ( !mpGraphics )
        {
            if ( !ImplGetGraphics() )
                return;
        }

        if ( mbInitClipRegion )
            ImplInitClipRegion();

        if ( mbOutputClipped )
            return;

        pGraphics = mpGraphics;
    }
    else
    {
        pGraphics = ImplGetFrameGraphics();

        if ( nFlags & SHOWTRACK_CLIP )
        {
            Point aPoint( mnOutOffX, mnOutOffY );
            Region aRegion( Rectangle( aPoint,
                                       Size( mnOutWidth, mnOutHeight ) ) );
            ImplClipBoundaries( aRegion, FALSE, FALSE );
            ImplSelectClipRegion( pGraphics, aRegion, this );
        }
    }
=====================================================================
Found a 16 line (116 tokens) duplication in the following files: 
Starting at line 670 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impimage.cxx
Starting at line 697 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impimage.cxx

				else if( pAcc->GetScanlineFormat() == BMP_FORMAT_8BIT_PAL &&
						pMsk->GetScanlineFormat() == BMP_FORMAT_1BIT_MSB_PAL )
				{
					// optimized version
					const BYTE cAccTest = aAccWhite.GetIndex();
					const BYTE cMskTest = aMskWhite.GetIndex();

					for( long nY = nTop; nY < nBottom; nY++ )
					{
						Scanline pAccScan = pAcc->GetScanline( nY );
						Scanline pMskScan = pMsk->GetScanline( nY );

						for( long nX = nCurLeft; nX < nCurRight; nX++ )
						{
							if( ( cMskTest == ( pMskScan[ nX >> 3 ] & ( 1 << ( 7 - ( nX & 7 ) ) ) ? 1 : 0 ) ) ||
								( cAccTest == pAccScan[ nX ] ) )
=====================================================================
Found a 31 line (116 tokens) duplication in the following files: 
Starting at line 242 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/app/salinst.cxx
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/salinst.cxx

SalYieldMutex::SalYieldMutex()
{
	mnCount 	= 0;
	mnThreadId	= 0;
}

void SalYieldMutex::acquire()
{
	OMutex::acquire();
	mnThreadId = NAMESPACE_VOS(OThread)::getCurrentIdentifier();
	mnCount++;
}

void SalYieldMutex::release()
{
	if ( mnThreadId == NAMESPACE_VOS(OThread)::getCurrentIdentifier() )
	{
		if ( mnCount == 1 )
			mnThreadId = 0;
		mnCount--;
	}
	OMutex::release();
}

sal_Bool SalYieldMutex::tryToAcquire()
{
	if ( OMutex::tryToAcquire() )
	{
		mnThreadId = NAMESPACE_VOS(OThread)::getCurrentIdentifier();
		mnCount++;
		return True;
=====================================================================
Found a 14 line (116 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/dom/attributesmap.cxx
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/dom/attributesmap.cxx

    Reference< XNode > SAL_CALL CAttributesMap::removeNamedItem(const OUString& name) throw (RuntimeException)
    {
        Reference< XNode > aNode;
        xmlNodePtr pNode = m_pElement->m_aNodePtr;
        if (pNode != NULL)
        {
            OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8);
            xmlChar* xName = (xmlChar*)o1.getStr();
            xmlAttrPtr cur = pNode->properties;
            while (cur != NULL)
            {
                if( strcmp((char*)xName, (char*)cur->name) == 0)
                {
                    aNode = Reference< XNode >(static_cast< CNode* >(CNode::get((xmlNodePtr)cur)));
=====================================================================
Found a 36 line (116 tokens) duplication in the following files: 
Starting at line 622 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 650 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

        ucb::TransferInfo aInfo;
        if ( !( aCommand.Argument >>= aInfo ) )
		{
            OSL_ENSURE( sal_False, "Wrong argument type!" );
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
		}

        transfer( aInfo, Environment );
	}
	else
	{
		//////////////////////////////////////////////////////////////////
		// Unsupported command
		//////////////////////////////////////////////////////////////////

        ucbhelper::cancelCommandExecution(
            uno::makeAny( ucb::UnsupportedCommandException(
                                rtl::OUString(),
                                static_cast< cppu::OWeakObject * >( this ) ) ),
            Environment );
        // Unreachable
    }

	return aRet;
}

//=========================================================================
// virtual
void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
=====================================================================
Found a 30 line (116 tokens) duplication in the following files: 
Starting at line 584 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 595 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

		sal_Bool bDeletePhysical = sal_False;
		aCommand.Argument >>= bDeletePhysical;
        destroy( bDeletePhysical, Environment );

		// Remove own and all children's persistent data.
        if ( !removeData() )
        {
            uno::Any aProps
                = uno::makeAny(
                         beans::PropertyValue(
                             rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                               "Uri")),
                             -1,
                             uno::makeAny(m_xIdentifier->
                                              getContentIdentifier()),
                             beans::PropertyState_DIRECT_VALUE));
            ucbhelper::cancelCommandExecution(
                ucb::IOErrorCode_CANT_WRITE,
                uno::Sequence< uno::Any >(&aProps, 1),
                Environment,
                rtl::OUString::createFromAscii(
                    "Cannot remove persistent data!" ),
                this );
            // Unreachable
        }

		// Remove own and all children's Additional Core Properties.
		removeAdditionalPropertySet( sal_True );
	}
    else if ( aCommand.Name.equalsAsciiL(
=====================================================================
Found a 25 line (116 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/directory.cxx
Starting at line 156 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

DataSupplier::DataSupplier(
            const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
            const rtl::Reference< Content >& rContent,
            sal_Int32 nOpenMode )
: m_pImpl( new DataSupplier_Impl( rxSMgr, rContent, nOpenMode ) )
{
}

//=========================================================================
// virtual
DataSupplier::~DataSupplier()
{
	delete m_pImpl;
}

//=========================================================================
// virtual
rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        rtl::OUString aId = m_pImpl->m_aResults[ nIndex ]->aId;
		if ( aId.getLength() )
=====================================================================
Found a 27 line (116 tokens) duplication in the following files: 
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/gen.cxx

			cAry[1] |= 0x80;
			nNum ^= 0xFFFFFFFF;
		}
		if ( nNum )
		{
			cAry[i] = (unsigned char)(nNum & 0xFF);
			nNum >>= 8;
			i++;

			if ( nNum )
			{
				cAry[i] = (unsigned char)(nNum & 0xFF);
				nNum >>= 8;
				i++;

				if ( nNum )
				{
					cAry[i] = (unsigned char)(nNum & 0xFF);
					nNum >>= 8;
					i++;

					if ( nNum )
					{
						cAry[i] = (unsigned char)(nNum & 0xFF);
						nNum >>= 8;
						i++;
						cAry[1] |= 0x40;
=====================================================================
Found a 21 line (116 tokens) duplication in the following files: 
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/flddok.cxx
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/fldfunc.cxx

    aListItemsLB.SetSelectHdl(aListEnableLk);

	if( !IsRefresh() )
	{
		String sUserData = GetUserData();
		if(sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
		{
			String sVal = sUserData.GetToken(1, ';');
			USHORT nVal = sVal.ToInt32();
			if(nVal != USHRT_MAX)
			{
				for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
					if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
					{
						aTypeLB.SelectEntryPos(i);
						break;
					}
			}
		}
	}
	TypeHdl(0);
=====================================================================
Found a 22 line (116 tokens) duplication in the following files: 
Starting at line 3624 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx
Starting at line 4235 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx

        const uno::Sequence< ::rtl::OUString >& rPropertyNames )
            throw (uno::RuntimeException)
{
    vos::OGuard aGuard(Application::GetSolarMutex());
    uno::Sequence< uno::Any > aValues;

    // workaround for bad designed API
    try
    {
        aValues = GetPropertyValues_Impl( rPropertyNames );
    }
    catch (beans::UnknownPropertyException &)
    {
        throw uno::RuntimeException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property exception caught" ) ), static_cast < cppu::OWeakObject * > ( this ) );
    }
    catch (lang::WrappedTargetException &)
    {
        throw uno::RuntimeException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "WrappedTargetException caught" ) ), static_cast < cppu::OWeakObject * > ( this ) );
    }

    return aValues;
}
=====================================================================
Found a 19 line (116 tokens) duplication in the following files: 
Starting at line 1191 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/EnhancedPDFExportHelper.cxx
Starting at line 1433 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/EnhancedPDFExportHelper.cxx

        SwFieldType* pType = mrSh.GetFldType( RES_GETREFFLD, aEmptyStr );
        SwClientIter aIter( *pType );
        const SwClient * pFirst = aIter.GoStart();
        while( pFirst )
        {
            if( ((SwFmtFld*)pFirst)->GetTxtFld() &&
                ((SwFmtFld*)pFirst)->IsFldInDoc())
            {
                const SwTxtNode* pTNd =
                    (SwTxtNode*)((SwFmtFld*)pFirst)->GetTxtFld()->GetpTxtNode();
               ASSERT( 0 != pTNd, "Enhanced pdf export - text node is missing" )

                // 1. Check if the whole paragraph is hidden
                // 2. Move to the field
                // 3. Check for hidden text attribute
                if ( !pTNd->IsHidden() &&
                      mrSh.GotoFld( *(SwFmtFld*)pFirst ) &&
                     !mrSh.SelectHiddenRange() )
                {
=====================================================================
Found a 24 line (116 tokens) duplication in the following files: 
Starting at line 1942 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/poolfmt.cxx
Starting at line 2037 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/poolfmt.cxx

            aFmt.SetBulletFont(  &numfunc::GetDefBulletFont() );
            // <--

			static const USHORT aAbsSpace[ MAXLEVEL ] =
				{
//				cm: 0,4  0,8  1,2  1,6  2,0   2,4   2,8   3,2   3,6   4,0
					227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
				};
#ifdef USE_MEASUREMENT
			static const USHORT aAbsSpaceInch[ MAXLEVEL ] =
				{
					227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
				};
			const USHORT* pArr = MEASURE_METRIC ==
								GetAppLocaleData().getMeasurementSystemEnum()
									? aAbsSpace
									: aAbsSpaceInch;
#else
			const USHORT* pArr = aAbsSpace;
#endif

			aFmt.SetFirstLineOffset( - (*pArr) );
			for( n = 0; n < MAXLEVEL; ++n, ++pArr )
			{
=====================================================================
Found a 15 line (116 tokens) duplication in the following files: 
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		MISC_3D_OBJ_PROPERTIES
		FILL_PROPERTIES
		LINE_PROPERTIES
		LINE_PROPERTIES_START_END
		SHAPE_DESCRIPTOR_PROPERTIES
		MISC_OBJ_PROPERTIES
		LINKTARGET_PROPERTIES
		SHADOW_PROPERTIES
		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return a3DPolygonObjectPropertyMap_Impl;
=====================================================================
Found a 36 line (116 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/txencbox.cxx
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/txencbox.cxx

        rtl_TextEncoding nEnc = rtl_TextEncoding( aEncs[j] );
        if ( nExcludeInfoFlags )
        {
            if ( !rtl_getTextEncodingInfo( nEnc, &aInfo ) )
                bInsert = FALSE;
            else
            {
                if ( (aInfo.Flags & nExcludeInfoFlags) == 0 )
                {
                    if ( (nExcludeInfoFlags & RTL_TEXTENCODING_INFO_UNICODE) &&
                            ((nEnc == RTL_TEXTENCODING_UCS2) ||
                            nEnc == RTL_TEXTENCODING_UCS4) )
                        bInsert = FALSE;    // InfoFlags don't work for Unicode :-(
                }
                else if ( (aInfo.Flags & nButIncludeInfoFlags) == 0 )
                    bInsert = FALSE;
            }
        }
        if ( bInsert )
        {
            if ( bExcludeImportSubsets )
            {
                switch ( nEnc )
                {
                    // subsets of RTL_TEXTENCODING_GB_18030
                    case RTL_TEXTENCODING_GB_2312 :
                    case RTL_TEXTENCODING_GBK :
                    case RTL_TEXTENCODING_MS_936 :
                        bInsert = FALSE;
                    break;
                }
            }
            // CharsetMap offers a RTL_TEXTENCODING_DONTKNOW for internal use,
            // makes no sense here and would result in an empty string as list
            // entry.
            if ( bInsert && nEnc != RTL_TEXTENCODING_DONTKNOW )
=====================================================================
Found a 25 line (116 tokens) duplication in the following files: 
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/hyperlabel.cxx
Starting at line 963 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/roadmap.cxx

	void ORoadmapIDHyperLabel::DataChanged( const DataChangedEvent& rDCEvt )
	{
		const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
		FixedText::DataChanged( rDCEvt );
		if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS	)	||
			( rDCEvt.GetType() == DATACHANGED_DISPLAY	))	&&
			( rDCEvt.GetFlags() & SETTINGS_STYLE		))
		{
			const Color& rGBColor = GetControlBackground();
			if (rGBColor == COL_TRANSPARENT)
				SetTextColor( rStyleSettings.GetFieldTextColor( ) );
			else
			{
				SetControlBackground(rStyleSettings.GetHighlightColor());
				SetTextColor( rStyleSettings.GetHighlightTextColor( ) );
			}
			Invalidate();
		}
	}




//.........................................................................
}	// namespace svt
=====================================================================
Found a 26 line (116 tokens) duplication in the following files: 
Starting at line 820 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx

	eErrCode = find (e, *m_pNode[0]);
	if (eErrCode != store_E_None)
		return eErrCode;

	// Find 'Source' Index.
	sal_uInt16 i = m_pNode[0]->find(e), n = m_pNode[0]->usageCount();
	if (!(i < n))
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Check for exact match.
	if (!(e.compare (m_pNode[0]->m_pData[i]) == entry::COMPARE_EQUAL))
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Existing 'Source' entry. Check address.
	e = m_pNode[0]->m_pData[i];
	if (e.m_aLink.m_nAddr == STORE_PAGE_NULL)
	{
		// Page not present.
		return store_E_NotExists;
	}
=====================================================================
Found a 22 line (116 tokens) duplication in the following files: 
Starting at line 611 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/linkdlg2.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/linkdlg.cxx

    Links().Clear();
	pLinkMgr = pNewMgr;

	if( pLinkMgr )
	{
		SvBaseLinks& rLnks = (SvBaseLinks&)pLinkMgr->GetLinks();
		for( USHORT n = 0; n < rLnks.Count(); ++n )
		{
			SvBaseLinkRef* pLinkRef = rLnks[ n ];
			if( !pLinkRef->Is() )
			{
				rLnks.Remove( n, 1 );
				--n;
				continue;
			}
			if( (*pLinkRef)->IsVisible() )
				InsertEntry( **pLinkRef );
		}

		if( rLnks.Count() )
		{
            SvLBoxEntry* pEntry = Links().GetEntry( 0 );
=====================================================================
Found a 22 line (116 tokens) duplication in the following files: 
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/shlxthandler/shlxthdl.cxx
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/shlxthandler/shlxthdl.cxx

        std::string iid = ClsidToString(IID_IExtractImage);
        std::string tmp;
    
        for (size_t i = 0; i < OOFileExtensionTableSize; i++)
        {
            tmp = SHELLEX_IID_ENTRY;
    
            SubstitutePlaceholder(tmp, EXTENSION_PLACEHOLDER, OOFileExtensionTable[i].ExtensionAnsi);
            SubstitutePlaceholder(tmp, GUID_PLACEHOLDER, iid);
    
            DeleteRegistryKey(HKEY_CLASSES_ROOT, tmp.c_str());
    
            // if there are no further subkey below .ext\\shellex
            // delete the whole subkey    
            tmp = SHELLEX_ENTRY;    
            SubstitutePlaceholder(tmp, EXTENSION_PLACEHOLDER, OOFileExtensionTable[i].ExtensionAnsi);
    
            bool HasSubKeys = true;
            if (HasSubkeysRegistryKey(HKEY_CLASSES_ROOT, tmp.c_str(), HasSubKeys) && !HasSubKeys)
                DeleteRegistryKey(HKEY_CLASSES_ROOT, tmp.c_str());
        }    
        return UnregisterComComponent(CLSID_THUMBVIEWER_HANDLER);
=====================================================================
Found a 25 line (116 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/basedlgs.cxx
Starting at line 481 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/basedlgs.cxx

long SfxFloatingWindow::Notify( NotifyEvent& rEvt )

/*      [Beschreibung]

	Wenn ein ModelessDialog aktiviert wird, wird sein ViewFrame aktiviert.
	Notwendig ist das bei PlugInFrames.
*/

{
	if ( rEvt.GetType() == EVENT_GETFOCUS )
	{
        pBindings->SetActiveFrame( pImp->pMgr->GetFrame() );
        pImp->pMgr->Activate_Impl();
        Window* pWindow = rEvt.GetWindow();
        ULONG nHelpId  = 0;
        while ( !nHelpId && pWindow )
        {
            nHelpId = pWindow->GetHelpId();
            pWindow = pWindow->GetParent();
        }

        if ( nHelpId )
            SfxHelp::OpenHelpAgent( pBindings->GetDispatcher_Impl()->GetFrame()->GetFrame(), nHelpId );
	}
	else if ( rEvt.GetType() == EVENT_LOSEFOCUS )
=====================================================================
Found a 19 line (116 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/bastyp/helper.cxx
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/ucbhelper.cxx

sal_Bool UCBContentHelper::Transfer_Impl( const String& rSource, const String& rDest, sal_Bool bMoveData, sal_Int32 nNameClash )
{
	sal_Bool bRet = sal_True, bKillSource = sal_False;
    INetURLObject aSourceObj( rSource );
    DBG_ASSERT( aSourceObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" );

    INetURLObject aDestObj( rDest );
    DBG_ASSERT( aDestObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" );
	if ( bMoveData && aSourceObj.GetProtocol() != aDestObj.GetProtocol() )
	{
		bMoveData = sal_False;
		bKillSource = sal_True;
	}
	String aName = aDestObj.getName();
	aDestObj.removeSegment();
	aDestObj.setFinalSlash();

	try
	{
=====================================================================
Found a 27 line (116 tokens) duplication in the following files: 
Starting at line 557 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/slidvish.cxx
Starting at line 799 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/slidvish.cxx

			Rectangle	aZoomRect, aFullRect;
			SdPage* 	pPage;
			USHORT		nPageCnt = GetDoc()->GetSdPageCount(PK_STANDARD);
			USHORT		nPageNum = 0;
			BOOL		bHasSelection = FALSE;

			while ( nPageNum < nPageCnt )
			{
				const Rectangle aRect( pSlideView->GetPageArea( nPageNum ) );

                pPage = GetDoc()->GetSdPage( nPageNum, PK_STANDARD );

				if( pPage->IsSelected() )
				{
					bHasSelection = TRUE;
					aZoomRect.Union( aRect );

                    if( rReq.GetSlot() == SID_SIZE_PAGE )
						break;
				}

                aFullRect.Union( aRect );
				nPageNum++;
			}

            if ( !bHasSelection )
				aZoomRect = aFullRect;
=====================================================================
Found a 30 line (116 tokens) duplication in the following files: 
Starting at line 1126 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlnvsh.cxx
Starting at line 1024 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/slidvish.cxx

		USHORT nCount = GetDoc()->GetSdPageCount(PK_STANDARD);

		while (i < nCount && bDisable)
		{
			SdPage* pPage = GetDoc()->GetSdPage(i, PK_STANDARD);

			if (pPage->IsSelected())
			{
				SdrObject* pObj = pPage->GetPresObj(PRESOBJ_OUTLINE);

				if (pObj && !pObj->IsEmptyPresObj())
				{
					bDisable = FALSE;
				}
			}

			i++;
		}

		if (bDisable)
		{
			rSet.DisableItem(SID_EXPAND_PAGE);
		}
	}

	if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_SUMMARY_PAGE))
	{
		BOOL bDisable = TRUE;
		USHORT i = 0;
		USHORT nCount = GetDoc()->GetSdPageCount(PK_STANDARD);
=====================================================================
Found a 22 line (116 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drtxtob1.cxx
Starting at line 267 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drtxtob1.cxx

                    const SvxULSpaceItem& rItem = (const SvxULSpaceItem&) aEditAttr.Get( EE_PARA_ULSPACE );
					SvxULSpaceItem* pNewItem = (SvxULSpaceItem*) rItem.Clone();
					long nUpper = pNewItem->GetUpper();

					if( nSlot == SID_PARASPACE_INCREASE )
						nUpper += 100;
					else
					{
						nUpper -= 100;
						nUpper = Max( (long) nUpper, 0L );
					}
					pNewItem->SetUpper( (USHORT) nUpper );

					long nLower = pNewItem->GetLower();
					if( nSlot == SID_PARASPACE_INCREASE )
						nLower += 100;
					else
					{
						nLower -= 100;
						nLower = Max( (long) nLower, 0L );
					}
					pNewItem->SetLower( (USHORT) nLower );
=====================================================================
Found a 26 line (116 tokens) duplication in the following files: 
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unosrch.cxx
Starting at line 267 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unosrch.cxx

		if( xShapes.is() && xShapes->getCount() > 0 )
		{
			pContext = new SearchContext_impl( xShapes );
			xShape = pContext->firstShape();
		}
		else
		{
			xShapes = NULL;
		}
	}
	else
	{
		xShape = mpShape;
	}
	while( xShape.is() )
	{
		// find in xShape
		uno::Reference< text::XText >  xText(xShape, uno::UNO_QUERY);
		uno::Reference< text::XTextRange >  xRange(xText, uno::UNO_QUERY);
		uno::Reference< text::XTextRange >  xFound;

		while( xRange.is() )
		{
			xFound = Search( xRange, pDescr );
			if( !xFound.is() )
				break;
=====================================================================
Found a 17 line (116 tokens) duplication in the following files: 
Starting at line 377 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cursuno.cxx
Starting at line 399 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cursuno.cxx

void SAL_CALL ScCellCursorObj::gotoPrevious() throw(uno::RuntimeException)
{
	ScUnoGuard aGuard;
	const ScRangeList& rRanges = GetRangeList();
	DBG_ASSERT( rRanges.Count() == 1, "Range? Ranges?" );
	ScRange aOneRange(*rRanges.GetObject(0));

	aOneRange.Justify();
	ScAddress aCursor(aOneRange.aStart);		//	bei Block immer den Start nehmen

	ScMarkData aMark;	// not used with bMarked=FALSE
	SCCOL nNewX = aCursor.Col();
	SCROW nNewY = aCursor.Row();
	SCTAB nTab  = aCursor.Tab();
	ScDocShell* pDocSh = GetDocShell();
	if ( pDocSh )
		pDocSh->GetDocument()->GetNextPos( nNewX,nNewY, nTab, -1,0, FALSE,TRUE, aMark );
=====================================================================
Found a 30 line (116 tokens) duplication in the following files: 
Starting at line 1175 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 1263 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

				pDoc->PutCell( aPos, pNewCell );

				++nDocCol;
			}
		}
		else
			bError = TRUE;							// wrong size

		++nDocRow;
	}

	BOOL bHeight = rDocShell.AdjustRowHeight( nStartRow, nEndRow, nTab );

	if ( pUndoDoc )
	{
		ScMarkData aDestMark;
		aDestMark.SelectOneTable( nTab );
		rDocShell.GetUndoManager()->AddUndoAction(
			new ScUndoPaste( &rDocShell,
				nStartCol, nStartRow, nTab, nEndCol, nEndRow, nTab, aDestMark,
				pUndoDoc, NULL, IDF_CONTENTS, NULL,NULL,NULL,NULL, FALSE ) );
	}

	if (!bHeight)
		rDocShell.PostPaint( rRange, PAINT_GRID );		// AdjustRowHeight may have painted already

	rDocShell.SetDocumentModified();

	return !bError;
}
=====================================================================
Found a 16 line (116 tokens) duplication in the following files: 
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx
Starting at line 648 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx

		ScDocument* pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
		if (bColumns)
		{
			pUndoDoc->InitUndo( pDoc, nTab, nTab, TRUE, FALSE );
            pDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab,
                    static_cast<SCCOL>(nEnd), MAXROW, nTab, IDF_NONE, FALSE,
                    pUndoDoc );
		}
		else
		{
			pUndoDoc->InitUndo( pDoc, nTab, nTab, FALSE, TRUE );
			pDoc->CopyToDocument( 0, nStart, nTab, MAXCOL, nEnd, nTab, IDF_NONE, FALSE, pUndoDoc );
		}

		rDocShell.GetUndoManager()->AddUndoAction(
			new ScUndoDoOutline( &rDocShell,
=====================================================================
Found a 20 line (116 tokens) duplication in the following files: 
Starting at line 1448 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 875 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_SocketAddr.cxx

		CPPUNIT_TEST( getFamilyOfSocketAddr_001 );		
		CPPUNIT_TEST_SUITE_END( );
		
	}; // class getFamilyOfSocketAddr
	
// -----------------------------------------------------------------------------


CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::ctors, "osl_SocketAddr"); 
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::is, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::getHostname, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::getPort, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::setPort, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::setAddr, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::getAddr, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::operator_equal, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::getSocketAddrHandle, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::getLocalHostname, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::resolveHostname, "osl_SocketAddr");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::gettheServicePort, "osl_SocketAddr");
=====================================================================
Found a 23 line (116 tokens) duplication in the following files: 
Starting at line 3518 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 3826 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_006_Int32 : public CppUnit::TestFixture
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
        {
=====================================================================
Found a 29 line (116 tokens) duplication in the following files: 
Starting at line 408 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/hyphdsp.cxx
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/hyphdsp.cxx

									nChkIndex, rProperties );

                    pEntry->aFlags.nLastTriedSvcIndex = (INT16) i;
					++i;

                    // if language is not supported by the services
                    // remove it from the list.
                    if (rHyph.is()  &&  !rHyph->hasLocale( rLocale ))
                        aSvcList.Remove( nLanguage );
				}
			}
		}	// if (xEntry.is())
	}

	if (bWordModified  &&  xRes.is())
		xRes = RebuildHyphensAndControlChars( rWord, xRes );

    if (xRes.is()  &&  xRes->getWord() != rWord)
    {
        xRes = new HyphenatedWord( rWord, nLanguage, xRes->getHyphenationPos(),
                                   xRes->getHyphenatedWord(),
                                   xRes->getHyphenPos() );
    }

	return xRes;
}


Reference< XPossibleHyphens > SAL_CALL
=====================================================================
Found a 13 line (116 tokens) duplication in the following files: 
Starting at line 1544 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 1960 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

            TESTAFF(rv->astr, pseudoroot, rv->alen))) {
                st[i] = ch;
                continue;
	}

            // check non_compound flag in suffix and prefix
            if ((rv) && !hu_mov_rule &&
                ((pfx && ((PfxEntry*)pfx)->getCont() &&
                    TESTAFF(((PfxEntry*)pfx)->getCont(), compoundforbidflag, 
                        ((PfxEntry*)pfx)->getContLen())) ||
                (sfx && ((SfxEntry*)sfx)->getCont() &&
                    TESTAFF(((SfxEntry*)sfx)->getCont(), compoundforbidflag, 
                        ((SfxEntry*)sfx)->getContLen())))) {
=====================================================================
Found a 6 line (116 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_mask.h

   0xf8, 0x7f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 18 line (116 tokens) duplication in the following files: 
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 804 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 6 line (116 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_mask.h

   0xf8, 0x7f, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 18 line (116 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 804 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 22 line (116 tokens) duplication in the following files: 
Starting at line 737 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/actimpr.cxx
Starting at line 770 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/actimpr.cxx

	if ( ( nPoints > 1 ) && ImplCreateShape( rtl::OUString::createFromAscii("com.sun.star.drawing.PolyLineShape") ) )
	{
		drawing::PointSequenceSequence aRetval;

		// Polygone innerhalb vrobereiten
		aRetval.realloc( 1 );

		// Zeiger auf aeussere Arrays holen
		drawing::PointSequence* pOuterSequence = aRetval.getArray();

		// Platz in Arrays schaffen
		pOuterSequence->realloc((sal_Int32)nPoints);

		// Pointer auf arrays holen
		awt::Point* pInnerSequence = pOuterSequence->getArray();

		for( sal_uInt16 n = 0; n < nPoints; n++ )
			*pInnerSequence++ = awt::Point( rPoly[ n ].X(), rPoly[n].Y() );

		uno::Any aParam;
		aParam <<= aRetval;
		maXPropSet->setPropertyValue( rtl::OUString::createFromAscii("PolyPolygon"), aParam );
=====================================================================
Found a 24 line (116 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/cfgview.cxx
Starting at line 745 of /local/ooo-build/ooo-build/src/oog680-m3/framework/test/typecfg/cfgview.cxx

    sFiltersFramesetHTML.appendAscii( MODULFILTERS_HTML                                                                                     );
    sFiltersFramesetHTML.appendAscii( "\" title=\"List\">\n"                                                                                );
    sFiltersFramesetHTML.appendAscii( "\t\t\t<frame name=\""                                                                                );  // generate frame "properties"
    sFiltersFramesetHTML.appendAscii( TARGET_PROPERTIES                                                                                     );
    sFiltersFramesetHTML.appendAscii( "\" src=\""                                                                                           );
    sFiltersFramesetHTML.appendAscii( FILTERPROPERTIES_HTML                                                                                 );
    sFiltersFramesetHTML.appendAscii( "\" title=\"Properties\">\n"                                                                          );
    sFiltersFramesetHTML.appendAscii( "\t\t</frameset>\n"                                                                                   );  // close frameset cols
    sFiltersFramesetHTML.appendAscii( "</html>\n"                                                                                           );  // close html

    impl_writeFile( FRAMESET_FILTERS_HTML, U2B(sFiltersFramesetHTML.makeStringAndClear()) );

	//-------------------------------------------------------------------------------------------------------------
	// generate filter list (names and links only!)
	// use same loop to generate filter property list!
	OUStringBuffer sAllFiltersHTML( 10000 );
	OUStringBuffer sFilterPropHTML( 10000 );

	sAllFiltersHTML.appendAscii( "<html>\n\t<head>\n\t\t<title>\n\t\t\tAll Filters\n\t\t</title>\n\t</head>\n\t<body>\n"										);	// open html
	sAllFiltersHTML.appendAscii( "\t\t<table border=0><tr><td bgcolor=#ff8040><strong>Nr.</strong></td><td bgcolor=#ff8040><strong>Filter</strong></td></tr>\n"	);	// open table

	sFilterPropHTML.appendAscii( "<html>\n\t<head>\n\t\t<title>\n\t\t\tFilterProperties\n\t\t</title>\n\t</head>\n\t<body>\n"									);	// open html

    css::uno::Sequence< ::rtl::OUString > lWriter ;
=====================================================================
Found a 12 line (116 tokens) duplication in the following files: 
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/menubarfactory.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/statusbarfactory.cxx

    sal_Bool                             bPersistent( sal_True );

    for ( sal_Int32 n = 0; n < Args.getLength(); n++ )
    {
        if ( Args[n].Name.equalsAscii( "ConfigurationSource" ))
            Args[n].Value >>= xConfigSource;
        else if ( Args[n].Name.equalsAscii( "Frame" ))
            Args[n].Value >>= xFrame;
        else if ( Args[n].Name.equalsAscii( "ResourceURL" ))
            Args[n].Value >>= aResourceURL;
        else if ( Args[n].Name.equalsAscii( "Persistent" ))
            Args[n].Value >>= bPersistent;
=====================================================================
Found a 17 line (116 tokens) duplication in the following files: 
Starting at line 1094 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 1459 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx

sal_Bool SAL_CALL ModuleUIConfigurationManager::isDefaultSettings( const ::rtl::OUString& ResourceURL )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
    sal_Int16 nElementType = RetrieveTypeFromResourceURL( ResourceURL );
    
    if (( nElementType == ::com::sun::star::ui::UIElementType::UNKNOWN ) || 
        ( nElementType >= ::com::sun::star::ui::UIElementType::COUNT   ))
        throw IllegalArgumentException();
    else
    {
        ResetableGuard aGuard( m_aLock );
        
        if ( m_bDisposed )
            throw DisposedException();

        UIElementData* pDataSettings = impl_findUIElementData( ResourceURL, nElementType, false );
        if ( pDataSettings && pDataSettings->bDefaultNode )
=====================================================================
Found a 23 line (116 tokens) duplication in the following files: 
Starting at line 1042 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/recentfilesmenucontroller.cxx

			for ( sal_uInt32 i = 0; i < m_aRecentFilesItems.size(); i++ )
			{
				char menuShortCut[5] = "~n: ";

				::rtl::OUString aMenuShortCut;
				if ( i <= 9 )
				{
					if ( i == 9 )
						aMenuShortCut = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "1~0: " ));
					else
					{
						menuShortCut[1] = (char)( '1' + i );
						aMenuShortCut = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( menuShortCut ));
					}
				}
				else
				{
					aMenuShortCut = rtl::OUString::valueOf((sal_Int32)( i + 1 ));
					aMenuShortCut += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": " ));
				}

				// Abbreviate URL
                rtl::OUString	aURLString( aCmdPrefix + rtl::OUString::valueOf( sal_Int32( i )));
=====================================================================
Found a 19 line (116 tokens) duplication in the following files: 
Starting at line 104 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/SalAquaFolderPicker.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFolderPicker.cxx

using namespace ::rtl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;

//------------------------------------------------------------------------
// helper functions
//------------------------------------------------------------------------

namespace
{
	// controling event notifications    
	uno::Sequence<rtl::OUString> SAL_CALL FolderPicker_getSupportedServiceNames()
	{
		uno::Sequence<rtl::OUString> aRet(3);
        aRet[0] = rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.FolderPicker" );
		aRet[1] = rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.SystemFolderPicker" );
		aRet[2] = rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.GtkFolderPicker" );
=====================================================================
Found a 4 line (116 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4db0 - 4dbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4dc0 - 4dcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4dd0 - 4ddf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 4de0 - 4def
=====================================================================
Found a 26 line (116 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfuno.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx

extern "C"
{
//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */ )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================

void singlecomponent_writeInfo( Reference< XRegistryKey >& xNewKey, const Sequence< OUString > & rSNL )
{
	const OUString * pArray = rSNL.getConstArray();
	for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
		xNewKey->createKey( pArray[nPos] );
}

sal_Bool SAL_CALL component_writeInfo(
	void * /* pServiceManager */, void * pRegistryKey )
{
	if (pRegistryKey)
	{
		try
		{
			Reference< XRegistryKey > xNewKey(
				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( XMLFilterDialogComponent_getImplementationName() ) ); 
=====================================================================
Found a 16 line (116 tokens) duplication in the following files: 
Starting at line 1083 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/feed/updatefeed.cxx
Starting at line 1671 of /local/ooo-build/ooo-build/src/oog680-m3/uui/source/iahndl.cxx

                    aRec(xContainer->find(rRequest.ServerName, xIH));
                if (aRec.UserList.getLength() != 0)
                {
                    if (xSupplyAuthentication->canSetUserName())
                        xSupplyAuthentication->
                            setUserName(aRec.UserList[0].UserName.getStr());
                    if (xSupplyAuthentication->canSetPassword())
                    {
                        OSL_ENSURE(aRec.UserList[0].Passwords.getLength() != 0,
                                   "empty password list");
                        xSupplyAuthentication->
                            setPassword(
				aRec.UserList[0].Passwords[0].getStr());
                    }
                    if (aRec.UserList[0].Passwords.getLength() > 1)
                        if (rRequest.HasRealm)
=====================================================================
Found a 20 line (116 tokens) duplication in the following files: 
Starting at line 1286 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 1259 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

					( nWriteFlags & SVGWRITER_WRITE_FILL ) )
				{
					const MetaGradientExAction*	pGradAction = NULL;
					sal_Bool					bDone = sal_False;

					while( !bDone && ( ++i < nCount ) )
					{
						pAction = rMtf.GetAction( i );

						if( pAction->GetType() == META_GRADIENTEX_ACTION )
							pGradAction = (const MetaGradientExAction*) pAction;
						else if( ( pAction->GetType() == META_COMMENT_ACTION ) && 
								 ( ( (const MetaCommentAction*) pAction )->GetComment().CompareIgnoreCaseToAscii( "XGRAD_SEQ_END" ) == COMPARE_EQUAL ) )
						{
							bDone = sal_True;
						}
					}

					if( pGradAction )
						ImplWriteGradientEx( pGradAction->GetPolyPolygon(), pGradAction->GetGradient(), pStyle, nWriteFlags );
=====================================================================
Found a 4 line (116 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_mask.h
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h

	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // 00-0F
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // 10-1F
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // 20-2F
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // 30-3F
=====================================================================
Found a 27 line (116 tokens) duplication in the following files: 
Starting at line 29 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/mac/arlib.c
Starting at line 29 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/msdos/arlib.c

PUBLIC time_t
seek_arch(name, lib)
char*	name;
char*	lib;
{
   static	int	warned = FALSE;

   if (!warned && !(Glob_attr&A_SILENT))
   	warned = TRUE,
   	Warning("Can't extract library member timestamp;\n\
   	using library timestamp instead.");
   return (Do_stat(lib, NULL, NULL, TRUE));
}

PUBLIC int
touch_arch(name, lib)
char*	name;
char*	lib;
{
   static	int	warned = FALSE;

   if (!warned && !(Glob_attr&A_SILENT))
   	warned = TRUE,
   	Warning("Can't update library member timestamp;\n\
   	touching library instead.");
   return (Do_touch(lib, NULL, NULL));
}
=====================================================================
Found a 20 line (116 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/DriverSettings.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/DriverSettings.cxx

        case DST_ORACLE_JDBC:
			_rDetailsIds.push_back(DSID_JDBCDRIVERCLASS);
			_rDetailsIds.push_back(DSID_SQL92CHECK);
			_rDetailsIds.push_back(DSID_AUTOINCREMENTVALUE);
			_rDetailsIds.push_back(DSID_AUTORETRIEVEVALUE);
			_rDetailsIds.push_back(DSID_AUTORETRIEVEENABLED);
			_rDetailsIds.push_back(DSID_IGNOREDRIVER_PRIV);
			_rDetailsIds.push_back(DSID_PARAMETERNAMESUBST);
			_rDetailsIds.push_back(DSID_SUPPRESSVERSIONCL);
			_rDetailsIds.push_back(DSID_ENABLEOUTERJOIN);
			_rDetailsIds.push_back(DSID_CATALOG);
			_rDetailsIds.push_back(DSID_SCHEMA);
			_rDetailsIds.push_back(DSID_APPEND_TABLE_ALIAS);
			_rDetailsIds.push_back(DSID_AS_BEFORE_CORRNAME);
			_rDetailsIds.push_back(DSID_BOOLEANCOMPARISON);
			_rDetailsIds.push_back(DSID_INDEXAPPENDIX);
			_rDetailsIds.push_back(DSID_DOSLINEENDS);
			break;

        case DST_USERDEFINE1:	/// first user defined driver
=====================================================================
Found a 24 line (116 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/shared/registrationhelper.cxx
Starting at line 234 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/inc/componentmodule.cxx

		const ::rtl::OUString* pImplNames = s_pImplementationNames->getConstArray();
		for (sal_Int32 i=0; i<nLen; ++i, ++pImplNames)
		{
			if (pImplNames->equals(_rImplementationName))
			{
				removeElementAt(*s_pImplementationNames, i);
				removeElementAt(*s_pSupportedServices, i);
				removeElementAt(*s_pCreationFunctionPointers, i);
				removeElementAt(*s_pFactoryFunctionPointers, i);
				break;
			}
		}

		if (s_pImplementationNames->getLength() == 0)
		{
			delete s_pImplementationNames; s_pImplementationNames = NULL;
			delete s_pSupportedServices; s_pSupportedServices = NULL;
			delete s_pCreationFunctionPointers; s_pCreationFunctionPointers = NULL;
			delete s_pFactoryFunctionPointers; s_pFactoryFunctionPointers = NULL;
		}
	}

	//--------------------------------------------------------------------------
	sal_Bool OModule::writeComponentInfos(
=====================================================================
Found a 16 line (116 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/component_context.cxx
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno.cxx

			buf.append( val2str( pVal, ((typelib_TypeDescription *)pCompType->pBaseTypeDescription)->pWeakRef,mode ) );
			if (nDescr)
				buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(", ") );
		}
		
		typelib_TypeDescriptionReference ** ppTypeRefs = pCompType->ppTypeRefs;
		sal_Int32 * pMemberOffsets = pCompType->pMemberOffsets;
		rtl_uString ** ppMemberNames = pCompType->ppMemberNames;
		
		for ( sal_Int32 nPos = 0; nPos < nDescr; ++nPos )
		{
			buf.append( ppMemberNames[nPos] );
			buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(" = ") );
			typelib_TypeDescription * pMemberType = 0;
			TYPELIB_DANGER_GET( &pMemberType, ppTypeRefs[nPos] );
			buf.append( val2str( (char *)pVal + pMemberOffsets[nPos], pMemberType->pWeakRef, mode ) );
=====================================================================
Found a 19 line (116 tokens) duplication in the following files: 
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/EnvGuard/EnvGuard.test.cxx
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/EnvGuard/EnvGuard.test.cxx

        envGuard.clear();
        current_EnvDcp = uno::Environment::getCurrent(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(UNO_LB_UNO))).getTypeName();
    }


	if (current_EnvDcp == ref)
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));

	else
    {
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE\n"));
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t        got: \""));
        s_message += current_EnvDcp;
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\"\n"));
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t   expected: \""));
        s_message += ref;
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\"\n"));
    }
}
=====================================================================
Found a 19 line (116 tokens) duplication in the following files: 
Starting at line 156 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/ChainablePropertySet.cxx
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/MasterPropertySet.cxx

void SAL_CALL MasterPropertySet::setPropertyValues( const Sequence< ::rtl::OUString >& aPropertyNames, const Sequence< Any >& aValues ) 
	throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
    // acquire mutex in c-tor and releases it in the d-tor (exception safe!).
    std::auto_ptr< vos::OGuard > pMutexGuard;
    if (mpMutex)
        pMutexGuard.reset( new vos::OGuard(mpMutex) );

    const sal_Int32 nCount = aPropertyNames.getLength();

	if( nCount != aValues.getLength() )
		throw IllegalArgumentException();

	if( nCount )
	{
		_preSetValues();

		const Any * pAny = aValues.getConstArray();
		const OUString * pString = aPropertyNames.getConstArray();
=====================================================================
Found a 16 line (116 tokens) duplication in the following files: 
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/misc/instancelocker.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/hatchwindow/documentcloser.cxx

uno::Reference< uno::XInterface > SAL_CALL ODocumentCloser::impl_staticCreateSelfInstance(
								const uno::Reference< lang::XMultiServiceFactory >& xServiceManager )
{
    uno::Reference< uno::XComponentContext > xContext;
    uno::Reference< beans::XPropertySet > xPropSet( xServiceManager, uno::UNO_QUERY );
    if ( xPropSet.is() )
        xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ) ) ) >>= xContext;

    if ( !xContext.is() )
    {
        throw uno::RuntimeException(
            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Unable to obtain component context from service manager!" ) ),
            uno::Reference< uno::XInterface >() );
    }

    return static_cast< cppu::OWeakObject * >( new ODocumentCloser( xContext ) );
=====================================================================
Found a 21 line (116 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppumaker.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javamaker.cxx

			sal_Bool ret = sal_False;
            do
			{
				typeName = tOption.getToken(0, ';', nIndex);
                
                sal_Int32 nPos = typeName.lastIndexOf( '.' );
				tmpName = typeName.copy( nPos != -1 ? nPos+1 : 0 );
				if (tmpName == "*")
				{
					// produce this type and his scope.
					if (typeName.equals("*"))
					{
						tmpName = "/";
					} else
					{
						tmpName = typeName.copy(0, typeName.lastIndexOf('.')).replace('.', '/');
						if (tmpName.getLength() == 0) 
							tmpName = "/";
						else
							tmpName.replace('.', '/');
					}
=====================================================================
Found a 30 line (116 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/CandleStickChartType.cxx
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ColumnChartType.cxx
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/LineChartType.cxx
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/PieChartType.cxx

        uno::makeAny( sal_False );
}

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 28 line (116 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx
Starting at line 237 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

            if (bOverFlowUsed) ovrflw++;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										pCppStack, pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
	}
=====================================================================
Found a 13 line (116 tokens) duplication in the following files: 
Starting at line 771 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/jstest.cxx
Starting at line 788 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/jstest.cxx

	{ 0 },
	{ 0, 5, 6, 7, 8, 9 },
	{ 0, 1, 2, 3, 8, 10, 11, 12, 13, 16, 17, 18 },
	{ 0, 6, 7 },
	{ 0, 5, 6 },
	{ 0, 5, 6, 7, 8, 9, 14, 15 },
	{ 0, 5, 6 },
	{ 0, 5, 6 },
	{ 0, 5, 6, 7, 8, 9 },
	{ 0, 4, 5 }
};

UINT16 test3PosBasic[][12] = { { 0, 4, 5, 15, 16, 19, 20 },
=====================================================================
Found a 26 line (116 tokens) duplication in the following files: 
Starting at line 431 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/accessiblemenubasecomponent.cxx
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessibletabpage.cxx

	Reference< XAccessible > xChild;
	for ( sal_uInt32 i = 0, nCount = getAccessibleChildCount(); i < nCount; ++i )
	{
		Reference< XAccessible > xAcc = getAccessibleChild( i );
		if ( xAcc.is() )
		{			
			Reference< XAccessibleComponent > xComp( xAcc->getAccessibleContext(), UNO_QUERY );				
			if ( xComp.is() )
			{
				Rectangle aRect = VCLRectangle( xComp->getBounds() );
				Point aPos = VCLPoint( rPoint );
				if ( aRect.IsInside( aPos ) )
				{
					xChild = xAcc;
					break;
				}
			}
		}
	}

	return xChild;
}

// -----------------------------------------------------------------------------

void VCLXAccessibleTabPage::grabFocus(  ) throw (RuntimeException)
=====================================================================
Found a 14 line (115 tokens) duplication in the following files: 
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/odsl/ODSLParser.cxx
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/xxml/StorageXXmlReader.cxx

		std::auto_ptr<xxml::XXmlReader> reader=xxml::XXmlReader::createXXmlReader(handler);
		TimeValue t1; osl_getSystemTime(&t1);

        rtl::OUString settings = rtl::OUString::createFromAscii("settings.xml");
		reader->read(xStorage, settings);
        rtl::OUString meta = rtl::OUString::createFromAscii("meta.xml");
		reader->read(xStorage, meta);
        rtl::OUString styles = rtl::OUString::createFromAscii("styles.xml");
		reader->read(xStorage, styles);
        rtl::OUString content = rtl::OUString::createFromAscii("content.xml");
		reader->read(xStorage, content);

		TimeValue t2; osl_getSystemTime(&t2);
		printf("Events=%i time=%lis time/event=%0.10fs\n", handler.events, t2.Seconds-t1.Seconds, (double)(t2.Seconds-t1.Seconds)/(double)handler.events);
=====================================================================
Found a 27 line (115 tokens) duplication in the following files: 
Starting at line 32323 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 32422 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

OOXMLContext::Pointer_t OOXMLContext_wordprocessingml_CT_ParaRPr::elementFromRefs(TokenEnum_t nToken)
{
    TokenEnum_t tmpToken;
    tmpToken = nToken; // prevent warning
    
    {       
        OOXMLContext::Pointer_t pSubContext = OOXMLContext::Pointer_t
            ( new OOXMLContext_wordprocessingml_EG_ParaRPrTrackChanges(*this));
        OOXMLContext::Pointer_t pContext(pSubContext->element(nToken));

        if (pContext.get() != NULL)
            return pContext;
     }
    
    {       
        OOXMLContext::Pointer_t pSubContext = OOXMLContext::Pointer_t
            ( new OOXMLContext_wordprocessingml_EG_RPrBase(*this));
        OOXMLContext::Pointer_t pContext(pSubContext->element(nToken));

        if (pContext.get() != NULL)
            return pContext;
     }
    
    return OOXMLContext::Pointer_t();
}
    
OOXMLContext::Pointer_t
=====================================================================
Found a 27 line (115 tokens) duplication in the following files: 
Starting at line 13653 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 31141 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

OOXMLContext::Pointer_t OOXMLContext_wordprocessingml_CT_R::elementFromRefs(TokenEnum_t nToken)
{
    TokenEnum_t tmpToken;
    tmpToken = nToken; // prevent warning
    
    {       
        OOXMLContext::Pointer_t pSubContext = OOXMLContext::Pointer_t
            ( new OOXMLContext_wordprocessingml_EG_RPr(*this));
        OOXMLContext::Pointer_t pContext(pSubContext->element(nToken));

        if (pContext.get() != NULL)
            return pContext;
     }
    
    {       
        OOXMLContext::Pointer_t pSubContext = OOXMLContext::Pointer_t
            ( new OOXMLContext_wordprocessingml_EG_RunInnerContent(*this));
        OOXMLContext::Pointer_t pContext(pSubContext->element(nToken));

        if (pContext.get() != NULL)
            return pContext;
     }
    
    return OOXMLContext::Pointer_t();
}
    
OOXMLContext::Pointer_t
=====================================================================
Found a 8 line (115 tokens) duplication in the following files: 
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h
Starting at line 553 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];

                span->r = fg[order_type::R];
=====================================================================
Found a 21 line (115 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr = y >> image_subpixel_shift;
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                               ry_inv) >> 
                                   image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + x_lr * 3;
=====================================================================
Found a 26 line (115 tokens) duplication in the following files: 
Starting at line 513 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_gray.h
Starting at line 595 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgb.h

                        p[order_type::B] = colors->b;
                        p = (value_type*)m_rbuf->next_row(p);
                        ++colors;
                    }
                    while(--len);
                }
                else
                {
                    do 
                    {
                        copy_or_blend_opaque_pix(p, *colors++, cover);
                        p = (value_type*)m_rbuf->next_row(p);
                    }
                    while(--len);
                }
            }
        }

        //--------------------------------------------------------------------
        template<class Function> void for_each_pixel(Function f)
        {
            unsigned y;
            for(y = 0; y < height(); ++y)
            {
                unsigned len = width();
                value_type* p = (value_type*)m_rbuf->row(y);
=====================================================================
Found a 14 line (115 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/signer.cxx
Starting at line 31 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/signer.cxx

using namespace ::rtl ;
using namespace ::cppu ;
using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::io ;
using namespace ::com::sun::star::ucb ;
using namespace ::com::sun::star::beans ;
using namespace ::com::sun::star::document ;
using namespace ::com::sun::star::lang ;
using namespace ::com::sun::star::xml::wrapper ;
using namespace ::com::sun::star::xml::crypto ;


int SAL_CALL main( int argc, char **argv )
{
=====================================================================
Found a 25 line (115 tokens) duplication in the following files: 
Starting at line 719 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx
Starting at line 858 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOOo.cxx

	{ XML_NAMESPACE_STYLE, XML_SHADOW, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS },
	{ XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_ATACTION_COPY,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INCHS2INS,
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_DIAGONAL_BL_TR, XML_ATACTION_INCHS2INS,
=====================================================================
Found a 25 line (115 tokens) duplication in the following files: 
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx

	{ XML_NAMESPACE_FO, XML_MARGIN_BOTTOM, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_TOP, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_PADDING_RIGHT, XML_ATACTION_IN2INCH, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_SHADOW, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS },
	{ XML_NAMESPACE_FO, XML_KEEP_WITH_NEXT, XML_OPTACTION_KEEP_WITH_NEXT, 
=====================================================================
Found a 15 line (115 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/FormPropOASISTContext.cxx
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/NotesTContext.cxx

	XMLMutableAttributeList *pMutableAttrList = 0;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
			const OUString& rAttrValue = xAttrList->getValueByIndex( i );
=====================================================================
Found a 19 line (115 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
Starting at line 424 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtparai.cxx

	rIgnoreLeadingSpace( rIgnLeadSpace )
{
	OUString sShow;
	const SvXMLTokenMap& rTokenMap =
		GetImport().GetTextImport()->GetTextHyperlinkAttrTokenMap();

	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		const OUString& rValue = xAttrList->getValueByIndex( i );

		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetImport().GetNamespaceMap().GetKeyByAttrName( rAttrName,
															&aLocalName );
		switch( rTokenMap.Get( nPrefix, aLocalName ) )
		{
		case XML_TOK_TEXT_HYPERLINK_HREF:
=====================================================================
Found a 37 line (115 tokens) duplication in the following files: 
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/datetime/datetime.cxx
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/datetime/datetime.cxx

    aTime -= rTime;
    USHORT nHours = aTime.GetHour();
    if ( aTime.GetTime() > 0 )
    {
        while ( nHours >= 24 )
        {
            Date::operator++();
            nHours -= 24;
        }
        aTime.SetHour( nHours );
    }
    else if ( aTime.GetTime() != 0 )
    {
        while ( nHours >= 24 )
        {
            Date::operator--();
            nHours -= 24;
        }
        Date::operator--();
        aTime = Time( 24, 0, 0 )+aTime;
    }
    Time::operator=( aTime );

    return *this;
}

/*************************************************************************
|*
|*    DateTime::operator+()
|*
|*    Beschreibung      DATETIME.SDW
|*    Ersterstellung    TH 02.10.96
|*    Letzte Aenderung  TH 02.10.96
|*
*************************************************************************/

DateTime operator +( const DateTime& rDateTime, long nDays )
=====================================================================
Found a 22 line (115 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/source/result/emacsTestResult.cxx
Starting at line 335 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/source/result/testshlTestResult.cxx

testshlTestResult::printFailureLine( Outputter &stream, TestFailure *_pFailure, std::string const& _sNodeName)
{
	std::string aName;
	aName += _sNodeName;
	aName += ".";
	aName += _pFailure->failedTestName();

	SourceLine aLine = _pFailure->sourceLine();
	sal_Int32 nLine = -1;
	std::string sFilename;
	if (aLine.isValid())
	{
		nLine = aLine.lineNumber();
		sFilename = aLine.fileName();
	}
	
	Exception  *pExp  = _pFailure->thrownException();
	std::string sWhat;
	if (pExp)
	{
		sWhat = pExp->what();
	}
=====================================================================
Found a 14 line (115 tokens) duplication in the following files: 
Starting at line 1812 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/unotxvw.cxx
Starting at line 1834 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/unotxvw.cxx

uno::Reference< text::XTextRange >  SwXTextViewCursor::getEnd(void) throw( uno::RuntimeException )
{
	::vos::OGuard aGuard(Application::GetSolarMutex());
	uno::Reference< text::XTextRange >  xRet;
	if(pView)
	{
        if (!IsTextSelection())
            throw  uno::RuntimeException( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "no text selection" ) ), static_cast < cppu::OWeakObject * > ( this ) );

		SwWrtShell& rSh = pView->GetWrtShell();
		SwPaM* pShellCrsr = rSh.GetCrsr();
		SwDoc* pDoc = pView->GetDocShell()->GetDoc();
		xRet = SwXTextRange::CreateTextRangeFromPosition(pDoc,
										*pShellCrsr->End(), 0);
=====================================================================
Found a 10 line (115 tokens) duplication in the following files: 
Starting at line 1683 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx
Starting at line 1797 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmaddressblockpage.cxx

    ExtTextEngine* pTextEngine = GetTextEngine();
    ExtTextView* pTextView = GetTextView();
    const TextSelection& rSelection = pTextView->GetSelection();
    const TextCharAttrib* pBeginAttrib = pTextEngine->FindCharAttrib( rSelection.GetStart(), TEXTATTR_PROTECTED );
    const TextCharAttrib* pEndAttrib = pTextEngine->FindCharAttrib( rSelection.GetEnd(), TEXTATTR_PROTECTED );
    if(pBeginAttrib && 
            (pBeginAttrib->GetStart() <= rSelection.GetStart().GetIndex() 
                            && pBeginAttrib->GetEnd() >= rSelection.GetEnd().GetIndex()))
    {
        ULONG nPara = rSelection.GetStart().GetPara();
=====================================================================
Found a 13 line (115 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edattr.cxx
Starting at line 245 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/edit/edattr.cxx

		ULONG nSttNd = PCURCRSR->GetMark()->nNode.GetIndex(),
			  nEndNd = PCURCRSR->GetPoint()->nNode.GetIndex();
		xub_StrLen nSttCnt = PCURCRSR->GetMark()->nContent.GetIndex(),
				   nEndCnt = PCURCRSR->GetPoint()->nContent.GetIndex();

		if( nSttNd > nEndNd || ( nSttNd == nEndNd && nSttCnt > nEndCnt ))
		{
			ULONG nTmp = nSttNd; nSttNd = nEndNd; nEndNd = nTmp;
			nTmp = nSttCnt; nSttCnt = nEndCnt; nEndCnt = (xub_StrLen)nTmp;
		}

		if( nEndNd - nSttNd >= getMaxLookup() )
		{
=====================================================================
Found a 22 line (115 tokens) duplication in the following files: 
Starting at line 1826 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx
Starting at line 1891 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx

BOOL SwDoc::InsertRow( const SwSelBoxes& rBoxes, USHORT nCnt, BOOL bBehind )
{
	// uebers SwDoc fuer Undo !!
	ASSERT( rBoxes.Count(), "keine gueltige Box-Liste" );
	SwTableNode* pTblNd = (SwTableNode*)rBoxes[0]->GetSttNd()->FindTableNode();
	if( !pTblNd )
		return FALSE;

	SwTable& rTbl = pTblNd->GetTable();
	if( rTbl.ISA( SwDDETable ))
		return FALSE;

#ifdef DEL_TABLE_REDLINES
	lcl_DelRedlines aDelRedl( *pTblNd, TRUE );
#endif

	SwTableSortBoxes aTmpLst( 0, 5 );
	SwUndoTblNdsChg* pUndo = 0;
	if( DoesUndo() )
	{
		DoUndo( FALSE );
		pUndo = new SwUndoTblNdsChg( UNDO_TABLE_INSROW,rBoxes, *pTblNd,
=====================================================================
Found a 16 line (115 tokens) duplication in the following files: 
Starting at line 892 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docbm.cxx
Starting at line 1040 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docbm.cxx

			SwPosition* pPos = 0;
			switch( aSave.GetType() )
			{
			case 0x8000:
				pPos = (SwPosition*)&rBkmks[ aSave.GetCount() ]->GetPos();
				break;
			case 0x8001:
				pPos = (SwPosition*)rBkmks[ aSave.GetCount() ]->GetOtherPos();
				break;
			case 0x1001:
				pPos = (SwPosition*)rRedlTbl[ aSave.GetCount() ]->GetPoint();
				break;
			case 0x1000:
				pPos = (SwPosition*)rRedlTbl[ aSave.GetCount() ]->GetMark();
				break;
			case 0x2000:
=====================================================================
Found a 9 line (115 tokens) duplication in the following files: 
Starting at line 1597 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unoedit/unotext.cxx
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unoedit/unotext2.cxx

		maTypeSequence.realloc( 10 ); // !DANGER! keep this updated
		uno::Type* pTypes = maTypeSequence.getArray();

		*pTypes++ = ::getCppuType(( const uno::Reference< text::XTextRange >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< beans::XPropertySet >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< beans::XMultiPropertySet >*)0);
//		*pTypes++ = ::getCppuType(( const uno::Reference< beans::XTolerantMultiPropertySet >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< beans::XPropertyState >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< text::XTextRangeCompare >*)0);
=====================================================================
Found a 31 line (115 tokens) duplication in the following files: 
Starting at line 857 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdpntv.cxx
Starting at line 1064 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdpntv.cxx

			if(pOut && OUTDEV_WINDOW == pOut->GetOutDevType() && !bDisableIntersect)
			{
				Window* pWindow = (Window*)pOut;

				if(pWindow->IsInPaint())
				{
					if(!pWindow->GetPaintRegion().IsEmpty())
					{
						aOptimizedRepaintRegion.Intersect(pWindow->GetPaintRegion());

#ifdef DBG_UTIL
						// #i74769# test-paint repaint region
						static bool bDoPaintForVisualControl(false);
						if(bDoPaintForVisualControl)
						{
							RegionHandle aRegionHandle(aOptimizedRepaintRegion.BeginEnumRects());
							Rectangle aRegionRectangle;
							
							while(aOptimizedRepaintRegion.GetEnumRects(aRegionHandle, aRegionRectangle))
							{
								pWindow->SetLineColor(COL_LIGHTGREEN);
								pWindow->SetFillColor();
								pWindow->DrawRect(aRegionRectangle);
							}

							aOptimizedRepaintRegion.EndEnumRects(aRegionHandle);
						}
#endif
					}
				}
			}
=====================================================================
Found a 22 line (115 tokens) duplication in the following files: 
Starting at line 1033 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedtv2.cxx
Starting at line 556 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/poly2.cxx

        case GPC_DIFF:
        {
            // take selected poly 2..n (is in Polygon B), merge them, flipdirections
            // and merge with poly 1
			aMergePolyPolygonA = basegfx::tools::removeAllIntersections(aMergePolyPolygonA);
			aMergePolyPolygonA = basegfx::tools::removeNeutralPolygons(aMergePolyPolygonA, sal_True);
			aMergePolyPolygonB = basegfx::tools::removeAllIntersections(aMergePolyPolygonB);
			aMergePolyPolygonB = basegfx::tools::removeNeutralPolygons(aMergePolyPolygonB, sal_True);
        	aMergePolyPolygonB.flip();
            aMergePolyPolygonA.append(aMergePolyPolygonB);
			aMergePolyPolygonA = basegfx::tools::removeAllIntersections(aMergePolyPolygonA);
			aMergePolyPolygonA = basegfx::tools::removeNeutralPolygons(aMergePolyPolygonA, sal_True);

            // #72995# one more call to resolve self intersections which
            // may have been built by substracting (see bug)
            //aMergePolyPolygonA.Merge(FALSE);
			aMergePolyPolygonA = basegfx::tools::removeAllIntersections(aMergePolyPolygonA);
			aMergePolyPolygonA = basegfx::tools::removeNeutralPolygons(aMergePolyPolygonA, sal_True);
            break;
        }

        case GPC_XOR:
=====================================================================
Found a 10 line (115 tokens) duplication in the following files: 
Starting at line 1213 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit4.cxx
Starting at line 1415 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit4.cxx

					pParaPortion->GetLines().Insert( pNew, m );
				}
#ifdef DBG_UTIL
				USHORT nTest;
                int nTPLen = 0, nTxtLen = 0;
				for ( nTest = pParaPortion->GetTextPortions().Count(); nTest; )
					nTPLen += pParaPortion->GetTextPortions().GetObject( --nTest )->GetLen();
				for ( nTest = pParaPortion->GetLines().Count(); nTest; )
					nTxtLen += pParaPortion->GetLines().GetObject( --nTest )->GetLen();
				DBG_ASSERT( ( nTPLen == pParaPortion->GetNode()->Len() ) && ( nTxtLen == pParaPortion->GetNode()->Len() ), "InsertBinTextObject: ParaPortion not completely formatted!" );
=====================================================================
Found a 22 line (115 tokens) duplication in the following files: 
Starting at line 3490 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 655 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/num.cxx

									pActNum->Get( i ).GetFirstLineOffset();

						aNumFmt.SetAbsLSpace( USHORT(nValue + nTmp));
					}
				}
				else
				{
					aNumFmt.SetAbsLSpace( (short)nValue - aNumFmt.GetFirstLineOffset());
				}
			}
			else if(pFld == &aDistNumMF)
			{
				aNumFmt.SetCharTextDistance( (short)nValue );
			}
			else if(pFld == &aIndentMF)
			{
				//jetzt muss mit dem FirstLineOffset auch der AbsLSpace veraendert werden
				long nDiff = nValue + aNumFmt.GetFirstLineOffset();
				long nAbsLSpace = aNumFmt.GetAbsLSpace();
				aNumFmt.SetAbsLSpace(USHORT(nAbsLSpace + nDiff));
				aNumFmt.SetFirstLineOffset( -(short)nValue );
			}
=====================================================================
Found a 33 line (115 tokens) duplication in the following files: 
Starting at line 583 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/enhwmf.cxx
Starting at line 704 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/winwmf.cxx

				aLineInfo.SetWidth( nWidth );

			BOOL bTransparent = FALSE;
			UINT16 nDashCount = 0;
			UINT16 nDotCount = 0;
			switch( nStyle )
			{
				case PS_DASHDOTDOT :
					nDotCount++;
				case PS_DASHDOT :
					nDashCount++;
				case PS_DOT :
					nDotCount++;
				break;
				case PS_DASH :
					nDashCount++;
				break;
				case PS_NULL :
					bTransparent = TRUE;
					aLineInfo.SetStyle( LINE_NONE );
				break;
				default :
				case PS_INSIDEFRAME :
				case PS_SOLID :
					aLineInfo.SetStyle( LINE_SOLID );
			}
			if ( nDashCount | nDotCount )
			{
				aLineInfo.SetStyle( LINE_DASH );
				aLineInfo.SetDashCount( nDashCount );
				aLineInfo.SetDotCount( nDotCount );
			}
			pOut->CreateObject( GDI_PEN, new WinMtfLineStyle( ReadColor(), aLineInfo, bTransparent ) );
=====================================================================
Found a 23 line (115 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/enhwmf.cxx
Starting at line 1110 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/enhwmf.cxx

			case EMR_POLYPOLYGON16 :
			{
				UINT16*	pnPoints;
				Point*	pPtAry;

				UINT32	i, nPoly, nGesPoints;
				pWMF->SeekRel( 0x10 );
				// Anzahl der Polygone:
				*pWMF >> nPoly >> nGesPoints;
				if (nGesPoints < SAL_MAX_UINT32 / sizeof(Point))
				{
					// Anzahl der Punkte eines jeden Polygons holen, Gesammtzahl der Punkte ermitteln:
					pnPoints = new UINT16[ nPoly ];
					for ( i = 0; i < nPoly; i++ )
					{
						*pWMF >> nPoints;
						pnPoints[ i ] = (UINT16)nPoints;
					}
					// Polygonpunkte holen:
					pPtAry  = (Point*) new char[ nGesPoints * sizeof(Point) ];
					for ( i = 0; i < nGesPoints; i++ )
					{
						*pWMF >> nX16 >> nY16;
=====================================================================
Found a 25 line (115 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/uriproc/component.cxx
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/ure/source/uretest/cpptest.cc

      CppTest::getSupportedServiceNames, cppu::createSingleComponentFactory, 0,
      0 },
    { 0, 0, 0, 0, 0, 0 } };

}

extern "C" sal_Bool SAL_CALL component_writeInfo(
    void * serviceManager, void * registryKey)
{
    return cppu::component_writeInfoHelper(
        serviceManager, registryKey, entries);
}

extern "C" void * SAL_CALL component_getFactory(
    char const * implName, void * serviceManager, void * registryKey)
{
    return cppu::component_getFactoryHelper(
        implName, serviceManager, registryKey, entries);
}

extern "C" void SAL_CALL component_getImplementationEnvironment(
    char const ** envTypeName, uno_Environment **)
{
    *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
=====================================================================
Found a 13 line (115 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx

			  &::getCppuType( (uno::Reference<XInterface> *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "BaseURI", sizeof("BaseURI")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamRelPath", sizeof("StreamRelPath")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamName", sizeof("StreamName")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		// properties for insert modes
		{ "StyleInsertModeFamilies", sizeof("StyleInsertModeFamilies")-1, 0,
=====================================================================
Found a 12 line (115 tokens) duplication in the following files: 
Starting at line 786 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx
Starting at line 829 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx

::com::sun::star::accessibility::TextSegment SAL_CALL SmGraphicAccessible::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
	vos::OGuard aGuard(Application::GetSolarMutex());
    String aTxt( GetAccessibleText_Impl() );
    xub_StrLen nIdx = (xub_StrLen) nIndex;
    //!! nIndex is allowed to be the string length
    if (!(/*0 <= nIdx  &&*/  nIdx <= aTxt.Len()))
        throw IndexOutOfBoundsException();

    ::com::sun::star::accessibility::TextSegment aResult;
    aResult.SegmentStart = -1;
    aResult.SegmentEnd = -1;
=====================================================================
Found a 20 line (115 tokens) duplication in the following files: 
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/statbar/stbitem.cxx
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/toolbox/tbxitem.cxx

			sal_Int64 nHandle = xObj->getSomething( aSeq );
			if ( nHandle )
                pObjShell = reinterpret_cast< SfxObjectShell* >( sal::static_int_cast< sal_IntPtr >( nHandle ));
		}
    }

    SfxModule*     pModule   = pObjShell ? pObjShell->GetModule() : NULL;
    SfxSlotPool*   pSlotPool = 0;

    if ( pModule )
        pSlotPool = pModule->GetSlotPool();
    else
        pSlotPool = &(SfxSlotPool::GetSlotPool( NULL ));

    const SfxSlot* pSlot = pSlotPool->GetUnoSlot( aTargetURL.Path );
    if ( pSlot )
    {
        USHORT nSlotId = pSlot->GetSlotId();
        if ( nSlotId > 0 )
            return SfxToolBoxControl::CreateControl( nSlotId, nID, pToolbox, pModule );
=====================================================================
Found a 17 line (115 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/patch/swappatchfiles.cxx
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx

std::_tstring GetMsiProperty( MSIHANDLE handle, const std::_tstring& sProperty )
{
	std::_tstring	result;
	TCHAR	szDummy[1] = TEXT("");
	DWORD	nChars = 0;

	if ( MsiGetProperty( handle, sProperty.c_str(), szDummy, &nChars ) == ERROR_MORE_DATA )
	{
        DWORD nBytes = ++nChars * sizeof(TCHAR);
        LPTSTR buffer = reinterpret_cast<LPTSTR>(_alloca(nBytes));
        ZeroMemory( buffer, nBytes );
        MsiGetProperty(handle, sProperty.c_str(), buffer, &nChars);
        result = buffer;            
	}

	return	result;
}
=====================================================================
Found a 7 line (115 tokens) duplication in the following files: 
Starting at line 537 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx

		PropertyMapEntry aExportInfoMap[] =
		{
			// #82003#
			{ MAP_LEN( "ProgressRange" ),	0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
			{ MAP_LEN( "ProgressMax" ),		0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
			{ MAP_LEN( "ProgressCurrent" ),	0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
			{ MAP_LEN( "UsePrettyPrinting"),0, &::getBooleanCppuType(),				::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
=====================================================================
Found a 24 line (115 tokens) duplication in the following files: 
Starting at line 1919 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx
Starting at line 2236 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx

void SAL_CALL ScChart2EmptyDataSequence::setPropertyValue(
        const ::rtl::OUString& rPropertyName, const uno::Any& rValue)
            throw( beans::UnknownPropertyException,
                    beans::PropertyVetoException,
                    lang::IllegalArgumentException,
                    lang::WrappedTargetException, uno::RuntimeException)
{
    if ( rPropertyName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SC_UNONAME_ROLE)))
    {
        if ( !(rValue >>= m_aRole))
            throw lang::IllegalArgumentException();
    }
    else if ( rPropertyName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SC_UNONAME_ISHIDDEN)))
    {
        if ( !(rValue >>= m_bHidden))
            throw lang::IllegalArgumentException();
    }
    else
        throw beans::UnknownPropertyException();
    // TODO: support optional properties
}


uno::Any SAL_CALL ScChart2EmptyDataSequence::getPropertyValue(
=====================================================================
Found a 10 line (115 tokens) duplication in the following files: 
Starting at line 1038 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/dbdocfun.cxx
Starting at line 1677 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

				SCCOLROW nOutEndRow;
				pTable->GetColArray()->GetRange( nOutStartCol, nOutEndCol );
				pTable->GetRowArray()->GetRange( nOutStartRow, nOutEndRow );

				pUndoDoc->InitUndo( pDoc, nTab, nTab, TRUE, TRUE );
				pDoc->CopyToDocument( static_cast<SCCOL>(nOutStartCol), 0, nTab, static_cast<SCCOL>(nOutEndCol), MAXROW, nTab, IDF_NONE, FALSE, pUndoDoc );
				pDoc->CopyToDocument( 0, nOutStartRow, nTab, MAXCOL, nOutEndRow, nTab, IDF_NONE, FALSE, pUndoDoc );
			}
			else
				pUndoDoc->InitUndo( pDoc, nTab, nTab, FALSE, TRUE );
=====================================================================
Found a 15 line (115 tokens) duplication in the following files: 
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 905 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
				nID = pChangeTrackingImportHelper->GetIDFromString(sValue);
		}
	}
=====================================================================
Found a 58 line (115 tokens) duplication in the following files: 
Starting at line 974 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx
Starting at line 1505 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/lotus/lotform.cxx

		ocAmpersand,		//   30	Concatenation
		ocNotAvail,			//   31 Not available
		ocNoName,			//   32 Error
		ocAbs,				//   33 Betrag ABS()
		ocInt,				//   34 Ganzzahl INT()
		ocSqrt,				//   35 Quadratwurzel
		ocLog10,			//   36 Zehnerlogarithmus
		ocLn,				//   37 Natuerlicher Logarithmus
		ocPi,				//   38 PI
		ocSin,				//   39 Sinus
		ocCos,				//   40 Cosinus
		ocTan,				//   41 Tangens
		ocArcTan2,			//   42 Arcus-Tangens 2 (4.Quadrant)
		ocArcTan,			//   43 Arcus-Tangens (2.Quadrant)
		ocArcSin,			//   44 Arcus-Sinus
		ocArcCos,			//   45 Arcus-Cosinus
		ocExp,				//   46 Exponentialfunktion
		ocMod,				//   47 Modulo
		ocChose,			//   48 Auswahl
		ocIsNA,				//   49 Is not available?
		ocIsError,			//   50 Is Error?
		ocFalse,			//   51 FALSE
		ocTrue,				//   52 TRUE
		ocRandom,			//   53 Zufallszahl
		ocGetDate,			//   54 Datum
		ocGetActDate,		//   55 Heute
		ocRMZ,				//   56 Payment
		ocBW,				//   57 Present Value
		ocZW,				//   58 Future Value
		ocIf,				//   59 If ... then ... else ...
		ocGetDay,			//   60 Tag des Monats
		ocGetMonth,			//   61 Monat
		ocGetYear,			//   62 Jahr
		ocRound,			//   63 Runden
		ocGetTime,			//   64 Zeit
		ocGetHour,			//   65 Stunde
		ocGetMin,			//   66 Minute
		ocGetSec,			//   67 Sekunde
		ocIsValue,			//   68 Ist Zahl?
		ocIsString,			//   69 Ist Text?
		ocLen,				//   70 Len()
		ocValue,			//   71 Val()
		ocFixed,			//   72 String()	ocFixed ersatzweise + Spezialfall
		ocMid,				//   73 Mid()
		ocChar,				//   74 Char()
		ocCode,				//   75 Ascii()
		ocFind,				//   76 Find()
		ocGetDateValue,		//   77 Datevalue
		ocGetTimeValue,		//   78 Timevalue
		ocNoName,			//   79 Cellpointer
		ocSum,				//   80 Sum()
		ocAverage,			//   81 Avg()
		ocCount,			//   82 Cnt()
		ocMin,				//   83 Min()
		ocMax,				//   84 Max()
		ocVLookup,			//   85 Vlookup()
		ocNBW,				//   86 Npv()
		ocVar,				//   87 Var()
=====================================================================
Found a 17 line (115 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/filtopt.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/printopt.cxx

	ConfigItem( OUString::createFromAscii( CFGPATH_PRINT ) )
{
	Sequence<OUString> aNames = GetPropertyNames();
	Sequence<Any> aValues = GetProperties(aNames);
//	EnableNotification(aNames);
	const Any* pValues = aValues.getConstArray();
	DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
	if(aValues.getLength() == aNames.getLength())
	{
		for(int nProp = 0; nProp < aNames.getLength(); nProp++)
		{
			DBG_ASSERT(pValues[nProp].hasValue(), "property value missing")
			if(pValues[nProp].hasValue())
			{
				switch(nProp)
				{
					case SCPRINTOPT_EMPTYPAGES:
=====================================================================
Found a 16 line (115 tokens) duplication in the following files: 
Starting at line 612 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/global2.cxx
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/global2.cxx

			pSubTotals[i] = new SCCOL	[r.nSubTotals[i]];
			pFunctions[i] = new ScSubTotalFunc	[r.nSubTotals[i]];

			for (SCCOL j=0; j<r.nSubTotals[i]; j++)
			{
				pSubTotals[i][j] = r.pSubTotals[i][j];
				pFunctions[i][j] = r.pFunctions[i][j];
			}
		}
		else
		{
			nSubTotals[i] = 0;
			pSubTotals[i] = NULL;
			pFunctions[i] = NULL;
		}
	}
=====================================================================
Found a 42 line (115 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/util.c
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/util.c

	if ( pszAddr == 0 )
	{
		return sal_False;
	}

	
	/*
	 * All we need is ... a network file descriptor.
	 * Normally, this is a very socket.
	 */
	
	so = socket(AF_INET, SOCK_DGRAM, 0);	

	
	/*
	 * The first thing we have to do, get the interface configuration.
	 * It is a list of attached/configured interfaces
	 */
	
	ifc.ifc_len = sizeof(buff);
	ifc.ifc_buf = buff;
	if ( ioctl(so, SIOCGIFCONF, &ifc) < 0 )
	{
/*		fprintf(stderr, "SIOCGIFCONF: %s\n", strerror(errno));*/
		close(so);
		return sal_False;
	}

	close(so);
	
	/*
	 *  For each of the interfaces in the interface list,
	 *  try to get the hardware address
	 */

	ifr = ifc.ifc_req;
	for ( i = ifc.ifc_len / sizeof(struct ifreq) ; --i >= 0 ; ifr++ )
	{
		int nRet=0;
		nRet = osl_getHWAddr(ifr->ifr_name,hard_addr);
		if ( nRet  > 0 )
		{
=====================================================================
Found a 31 line (115 tokens) duplication in the following files: 
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sprophelp.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/thesaurus/libnth/ntprophelp.cxx

	PropertyHelper_Thes::propertyChange( const PropertyChangeEvent& rEvt ) 
		throw(RuntimeException)
{
	MutexGuard	aGuard( GetLinguMutex() );

	if (GetPropSet().is()  &&  rEvt.Source == GetPropSet())
	{
		INT16 nLngSvcFlags = 0;
		BOOL bSCWA = FALSE,	// SPELL_CORRECT_WORDS_AGAIN ?
			 bSWWA = FALSE;	// SPELL_WRONG_WORDS_AGAIN ?

		BOOL *pbVal = NULL;
		switch (rEvt.PropertyHandle)
		{
			case UPH_IS_IGNORE_CONTROL_CHARACTERS :
			{
				pbVal = &bIsIgnoreControlCharacters; 
				break;
			}
			case UPH_IS_GERMAN_PRE_REFORM		  :
			{
				pbVal = &bIsGermanPreReform; 
				bSCWA = bSWWA = TRUE;
				break;
			}
			case UPH_IS_USE_DICTIONARY_LIST		  :
			{
				pbVal = &bIsUseDictionaryList; 
				bSCWA = bSWWA = TRUE;
				break;
			}
=====================================================================
Found a 5 line (115 tokens) duplication in the following files: 
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0440 - 044f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0450 - 045f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0460 - 046f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0470 - 047f
     0, 0, 0,17,17,17,17, 0,17,17, 0, 0, 0, 0, 0, 0,// 0480 - 048f
=====================================================================
Found a 8 line (115 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 6800 - 6fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7000 - 77ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7800 - 7fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 8000 - 87ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 8800 - 8fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 9000 - 97ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 9800 - 9fff
    0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, // a000 - a7ff
=====================================================================
Found a 5 line (115 tokens) duplication in the following files: 
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,// fa20 - fa2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa30 - fa3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa40 - fa4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa50 - fa5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fa60 - fa6f
=====================================================================
Found a 4 line (115 tokens) duplication in the following files: 
Starting at line 805 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 877 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd90 - fd9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fda0 - fdaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fdb0 - fdbf
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// fdc0 - fdcf
=====================================================================
Found a 4 line (115 tokens) duplication in the following files: 
Starting at line 793 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27, 0,27,27,27, 0,27, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4c0 - a4cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4d0 - a4df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4e0 - a4ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff
=====================================================================
Found a 5 line (115 tokens) duplication in the following files: 
Starting at line 789 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 864 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbd0 - fbdf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbe0 - fbef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbf0 - fbff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd00 - fd0f
=====================================================================
Found a 4 line (115 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27, 0,27,27,27, 0,27, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4c0 - a4cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4d0 - a4df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4e0 - a4ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff
=====================================================================
Found a 4 line (115 tokens) duplication in the following files: 
Starting at line 360 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1840 - 184f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1850 - 185f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1860 - 186f
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
=====================================================================
Found a 4 line (115 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27, 0,27,27,27, 0,27, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4c0 - a4cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4d0 - a4df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4e0 - a4ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff
=====================================================================
Found a 4 line (115 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 477 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e00 - 1e0f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e10 - 1e1f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e20 - 1e2f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e30 - 1e3f
=====================================================================
Found a 4 line (115 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1110 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a80 - 0a8f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0a90 - 0a9f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0aa0 - 0aaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0,// 0ab0 - 0abf
=====================================================================
Found a 14 line (115 tokens) duplication in the following files: 
Starting at line 1037 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx
Starting at line 1135 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx

                aPropValue.Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "ServiceManager" ));
                aPropValue.Value = makeAny( m_xServiceManager );
                aPropertyVector.push_back( makeAny( aPropValue ));
                aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ParentWindow" ));
                aPropValue.Value = makeAny( xToolbarWindow );
                aPropertyVector.push_back( makeAny( aPropValue ));
                if ( nWidth > 0 )
                {
                    aPropValue.Name     = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Width" ));
                    aPropValue.Value    = makeAny( nWidth );
                    aPropertyVector.push_back( makeAny( aPropValue ));
                }

                Sequence< Any > aArgs( comphelper::containerToSequence( aPropertyVector ));
=====================================================================
Found a 29 line (115 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/resourceprovider.cxx
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/resourceprovider.cxx

    OUString getResString( sal_Int16 aId )
    {
        String   aResString;
        OUString aResOUString;

        const ::vos::OGuard aGuard( Application::GetSolarMutex() );

        try
        {
            OSL_ASSERT( m_ResMgr && m_OtherResMgr );
            
            // translate the control id to a resource id
            sal_Int16 aResId = CtrlIdToResId( aId );
            if ( aResId > -1 )
                aResString = String( ResId( aResId, *m_ResMgr ) );
	    else
	    {
                aResId = OtherCtrlIdToResId( aId );
                if ( aResId > -1 )
                    aResString = String( ResId( aResId, *m_OtherResMgr ) );
	    }
	    if ( aResId > -1 )
                aResOUString = OUString( aResString );                
        }
        catch(...)
        {
        }

        return aResOUString;
=====================================================================
Found a 4 line (115 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27, 0,27,27,27, 0,27, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4c0 - a4cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4d0 - a4df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4e0 - a4ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff
=====================================================================
Found a 20 line (115 tokens) duplication in the following files: 
Starting at line 1483 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1988 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

				uno::Exception,
				uno::RuntimeException )
{
	// TODO: use lObjArgs

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_nObjectState == -1 )
	{
		// the object is still not loaded
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object persistence is not initialized!\n" ),
										uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
=====================================================================
Found a 24 line (115 tokens) duplication in the following files: 
Starting at line 1121 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1247 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OCommonEmbeddedObject::storeAsEntry" );

	// TODO: use lObjArgs

	::osl::ResettableMutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_nObjectState == -1 )
	{
		// the object is still not loaded
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Can't store object without persistence!\n" ),
										uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	// for now support of this interface is required to allow breaking of links and converting them to normal embedded
	// objects, so the persist name must be handled correctly ( althowgh no real persist entry is used )
	// OSL_ENSURE( !m_bIsLink, "This method implementation must not be used for links!\n" );
	if ( m_bIsLink )
=====================================================================
Found a 8 line (115 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_mask.h
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 6800 - 6fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7000 - 77ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7800 - 7fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 8000 - 87ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 8800 - 8fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 9000 - 97ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 9800 - 9fff
    0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, // a000 - a7ff
=====================================================================
Found a 17 line (115 tokens) duplication in the following files: 
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/testcppu.cxx
Starting at line 377 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/testcppu.cxx

	Test3 sz3;
	a3.nInt8 = 2;
	a3.nFloat = (float)2;
	a3.nDouble = 2;
	a3.nInt16 = 2;
	a3.aString = OUString::createFromAscii("2");
	a3.nuInt16 = 2;
	a3.nInt64 = 2;
	a3.nInt32 = 2;
	a3.nuInt64 = 2;
	a3.nuInt32 = 2;
	a3.eType = TypeClass_STRUCT;
	a3.wChar = L'2';
	a3.td.nInt16 = 2;
	a3.td.dDouble = 2;
	a3.bBool = sal_True;
	a3.aAny = makeAny( (sal_Int32)2 );
=====================================================================
Found a 12 line (115 tokens) duplication in the following files: 
Starting at line 2176 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx
Starting at line 2227 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/parse/sqlnode.cxx

            OSQLParseNode* pRight = pSearchCondition->getChild(2)->removeAt((sal_uInt32)0);
            OSQLParseNode* pNode    = MakeORNode(pLeft,pRight);

            OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
            pNewRule->append(pNode);
            pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));

            OSQLParseNode::eraseBraces(pLeft);
            OSQLParseNode::eraseBraces(pRight);

            pNode = MakeANDNode(pSearchCondition->getChild(0)->removeAt(1),pNewRule);
=====================================================================
Found a 21 line (115 tokens) duplication in the following files: 
Starting at line 971 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx
Starting at line 511 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/kab/KStatement.cxx
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

::cppu::IPropertyArrayHelper* OStatement_Base::createArrayHelper( ) const
{
	Sequence< Property > aProps(10);
	Property* pProperties = aProps.getArray();
	sal_Int32 nPos = 0;
	DECL_PROP0(CURSORNAME,	::rtl::OUString);
	DECL_BOOL_PROP0(ESCAPEPROCESSING);
	DECL_PROP0(FETCHDIRECTION,sal_Int32);
	DECL_PROP0(FETCHSIZE,	sal_Int32);
	DECL_PROP0(MAXFIELDSIZE,sal_Int32);
	DECL_PROP0(MAXROWS,		sal_Int32);
	DECL_PROP0(QUERYTIMEOUT,sal_Int32);
	DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
	DECL_PROP0(RESULTSETTYPE,sal_Int32);
	DECL_BOOL_PROP0(USEBOOKMARKS);

	return new ::cppu::OPropertyArrayHelper(aProps);
}

// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
=====================================================================
Found a 20 line (115 tokens) duplication in the following files: 
Starting at line 373 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 664 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

		static const char * cSignature = "(I)Ljava/lang/String;";
		static const char * cMethodName = "getString";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			jstring out = (jstring)t.pEnv->CallObjectMethod( object, mID, columnIndex );
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			aStr = JavaString2String(t.pEnv,out);
			// und aufraeumen
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return 	aStr;
}
// -------------------------------------------------------------------------


::com::sun::star::util::Time SAL_CALL java_sql_ResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
=====================================================================
Found a 21 line (115 tokens) duplication in the following files: 
Starting at line 573 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NStatement.cxx
Starting at line 971 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx

::cppu::IPropertyArrayHelper* java_sql_Statement_Base::createArrayHelper( ) const
{
	Sequence< Property > aProps(10);
	Property* pProperties = aProps.getArray();
	sal_Int32 nPos = 0;
	DECL_PROP0(CURSORNAME,	::rtl::OUString);
	DECL_BOOL_PROP0(ESCAPEPROCESSING);
	DECL_PROP0(FETCHDIRECTION,sal_Int32);
	DECL_PROP0(FETCHSIZE,	sal_Int32);
	DECL_PROP0(MAXFIELDSIZE,sal_Int32);
	DECL_PROP0(MAXROWS,		sal_Int32);
	DECL_PROP0(QUERYTIMEOUT,sal_Int32);
	DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
	DECL_PROP0(RESULTSETTYPE,sal_Int32);
	DECL_BOOL_PROP0(USEBOOKMARKS);

	return new ::cppu::OPropertyArrayHelper(aProps);
}

// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper & java_sql_Statement_Base::getInfoHelper()
=====================================================================
Found a 11 line (115 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BTables.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BTables.cxx

					aSql += ::rtl::OUString::createFromAscii(" UNIQUE (");
					for( sal_Int32 column=0; column<xColumns->getCount(); ++column )
					{
						if(::cppu::extractInterface(xColProp,xColumns->getByIndex(column)) && xColProp.is())
							aSql += aQuote + getString(xColProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))) + aQuote
										+ ::rtl::OUString::createFromAscii(",");
					}

					aSql = aSql.replaceAt(aSql.getLength()-1,1,::rtl::OUString::createFromAscii(")"));
				}
                else if(nKeyType == KeyType::FOREIGN)
=====================================================================
Found a 12 line (115 tokens) duplication in the following files: 
Starting at line 1094 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/VSeriesPlotter.cxx
Starting at line 1121 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/VSeriesPlotter.cxx

    ::rtl::math::setInf(&rfMaxY, true);

    ::std::vector< ::std::vector< VDataSeriesGroup > >::const_iterator       aZSlotIter = m_aZSlots.begin();
    const ::std::vector< ::std::vector< VDataSeriesGroup > >::const_iterator  aZSlotEnd = m_aZSlots.end();
    for( ; aZSlotIter != aZSlotEnd; aZSlotIter++ )
    {
        ::std::vector< VDataSeriesGroup >::const_iterator      aXSlotIter = aZSlotIter->begin();
        const ::std::vector< VDataSeriesGroup >::const_iterator aXSlotEnd = aZSlotIter->end();
        for( ; aXSlotIter != aXSlotEnd; aXSlotIter++ )
        {
            double fLocalMinimum, fLocalMaximum;
            aXSlotIter->getMinimumAndMaximiumYInContinuousXRange( fLocalMinimum, fLocalMaximum, fMinX, fMaxX, nAxisIndex );
=====================================================================
Found a 26 line (115 tokens) duplication in the following files: 
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/ScaleAutomatism.cxx
Starting at line 699 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/ScaleAutomatism.cxx

            bAutoDistance = true;
    }

    //---------------------------------------------------------------
    //fill explicit sub increment
    sal_Int32 nSubCount = m_aSourceScale.IncrementData.SubIncrements.getLength();
    rExplicitIncrement.SubIncrements.realloc(nSubCount);
    for( sal_Int32 nN=0; nN<nSubCount; nN++ )
    {
        const SubIncrement&     rSubIncrement         = m_aSourceScale.IncrementData.SubIncrements[nN];
        ExplicitSubIncrement&   rExplicitSubIncrement = rExplicitIncrement.SubIncrements[nN];

        if(!(rSubIncrement.IntervalCount>>=rExplicitSubIncrement.IntervalCount))
        {
            //scaling dependent
            //@todo autocalculate IntervalCount dependent on MainIncrement and scaling
            rExplicitSubIncrement.IntervalCount = 2;
        }
        lcl_ensureMaximumSubIncrementCount( rExplicitSubIncrement.IntervalCount );
        if(!(rSubIncrement.PostEquidistant>>=rExplicitSubIncrement.PostEquidistant))
        {
            //scaling dependent
            rExplicitSubIncrement.PostEquidistant = sal_False;
        }
    }
}
=====================================================================
Found a 7 line (115 tokens) duplication in the following files: 
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/filter/XMLFilter.cxx
Starting at line 882 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx

		PropertyMapEntry aExportInfoMap[] =
		{
			// #82003#
			{ MAP_LEN( "ProgressRange" ),	0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
			{ MAP_LEN( "ProgressMax" ),		0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
			{ MAP_LEN( "ProgressCurrent" ),	0, &::getCppuType((const sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
			{ MAP_LEN( "UsePrettyPrinting"),0, &::getBooleanCppuType(),				::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
=====================================================================
Found a 17 line (115 tokens) duplication in the following files: 
Starting at line 1385 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper.cxx
Starting at line 552 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvasbitmaphelper.cxx
Starting at line 1144 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper.cxx

        aLayout.ScanLineBytes = rBmpSize.Width*4;
        aLayout.ScanLineStride = aLayout.ScanLineBytes;
        aLayout.PlaneStride = 0;
        aLayout.ColorSpace.set( mpDevice ); 
        aLayout.NumComponents = 4;
        aLayout.ComponentMasks.realloc(4);
        aLayout.ComponentMasks[0] = 0x00FF0000;
        aLayout.ComponentMasks[1] = 0x0000FF00;
        aLayout.ComponentMasks[2] = 0x000000FF;
        aLayout.ComponentMasks[3] = 0xFF000000;
        aLayout.Palette.clear();
        aLayout.Endianness = rendering::Endianness::LITTLE;
        aLayout.Format = rendering::IntegerBitmapFormat::CHUNKY_32BIT;
        aLayout.IsMsbFirst = sal_False;

        return aLayout;
    }
=====================================================================
Found a 25 line (115 tokens) duplication in the following files: 
Starting at line 449 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp.cxx
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			free( pCppArgs[nIndex] );
#endif
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
=====================================================================
Found a 30 line (115 tokens) duplication in the following files: 
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno.cxx

		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
=====================================================================
Found a 25 line (115 tokens) duplication in the following files: 
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (cppu_relatesToInterface( pParamTypeDescr ))
			{
				uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
										*(void **)pCppStack, pParamTypeDescr,
										&pThis->pBridge->aCpp2Uno );
				pTempIndizes[nTempIndizes] = nPos; // has to be reconverted
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				pUnoArgs[nPos] = *(void **)pCppStack;
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
=====================================================================
Found a 25 line (115 tokens) duplication in the following files: 
Starting at line 454 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			free( pCppArgs[nIndex] );
#endif
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
=====================================================================
Found a 30 line (115 tokens) duplication in the following files: 
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx

		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nVtableCall)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nVtableCall)
=====================================================================
Found a 25 line (115 tokens) duplication in the following files: 
Starting at line 483 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			free( pCppArgs[nIndex] );
#endif
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
=====================================================================
Found a 26 line (115 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 264 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

			((long*)pRegisterReturn)[1] = iret2;
                        // fall thru on purpose
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = iret;
			break;

		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
		        *(unsigned short*)pRegisterReturn = (unsigned short)iret;
			break;

		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
		        *(unsigned char*)pRegisterReturn = (unsigned char)iret;
			break;

		case typelib_TypeClass_FLOAT:
		        *(float*)pRegisterReturn = (float)dret;
			break;

		case typelib_TypeClass_DOUBLE:
			*(double*)pRegisterReturn = dret;
			break;
=====================================================================
Found a 30 line (115 tokens) duplication in the following files: 
Starting at line 398 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno.cxx

		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nVtableCall)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				gpreg, fpreg, ovrflw, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nVtableCall)
=====================================================================
Found a 37 line (115 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

    int nf = 0; //number of fpr regsiters used
       
    // gpreg:  [ret *], this, [gpr params]
    // fpreg:  [fpr params]
    // ovrflw: [gpr or fpr params (properly aligned)]

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	if (pReturnTypeRef)
		TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	
	void * pUnoReturn = 0;
	void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pUnoReturn = pRegisterReturn; // direct way for simple types
		}
		else // complex return via ptr (pCppReturn)
		{
			pCppReturn = *(void **)gpreg;
            gpreg++;
            ng++;
			
			pUnoReturn = (bridges::cpp_uno::shared::relatesToInterfaceType( pReturnTypeDescr )
						  ? alloca( pReturnTypeDescr->nSize )
						  : pCppReturn); // direct way
		}
	}
	// pop this
    gpreg++; 
    ng++;

	// stack space
	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int64), "### unexpected size!" );
=====================================================================
Found a 25 line (115 tokens) duplication in the following files: 
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

			free( pCppArgs[nIndex] );
#endif
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return value
		if (pCppReturn && pUnoReturn != pCppReturn)
		{
			uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
									pThis->getBridge()->getCpp2Uno() );
			uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
		}
	}
 	catch (...)
 	{
  		// fill uno exception
		fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() );
        
		// temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], cpp_release );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
=====================================================================
Found a 21 line (115 tokens) duplication in the following files: 
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx

			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];

			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData(
                pCppArgs[nIndex], pParamTypeDescr,
                reinterpret_cast< uno_ReleaseFunc >(cpp_release) );
=====================================================================
Found a 21 line (115 tokens) duplication in the following files: 
Starting at line 647 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
Starting at line 721 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessibletabpage.cxx
Starting at line 377 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessibletextcomponent.cxx
Starting at line 576 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
Starting at line 864 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx

        Reference< datatransfer::clipboard::XClipboard > xClipboard = pWin->GetClipboard();
		if ( xClipboard.is() )
		{
            ::rtl::OUString sText( getTextRange(nStartIndex, nEndIndex) );

			::vcl::unohelper::TextDataObject* pDataObj = new ::vcl::unohelper::TextDataObject( sText );
			const sal_uInt32 nRef = Application::ReleaseSolarMutex();
			xClipboard->setContents( pDataObj, NULL );

			Reference< datatransfer::clipboard::XFlushableClipboard > xFlushableClipboard( xClipboard, uno::UNO_QUERY );
			if( xFlushableClipboard.is() )
				xFlushableClipboard->flushClipboard();

			Application::AcquireSolarMutex( nRef );

			bReturn = sal_True;
		}
	}

    return bReturn;
}
=====================================================================
Found a 25 line (114 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlservices.cxx
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/ui/misc/rptuiservices.cxx

    { &GeometryHandler::create, &GeometryHandler::getImplementationName_Static, &GeometryHandler::getSupportedServiceNames_static,
		&cppu::createSingleComponentFactory, 0, 0 },
	{ 0, 0, 0, 0, 0, 0 } 
};
}

extern "C" void * SAL_CALL component_getFactory(
    char const * implName, void * serviceManager, void * registryKey)
{
    return cppu::component_getFactoryHelper(
        implName, serviceManager, registryKey, entries);
}

extern "C" void SAL_CALL component_getImplementationEnvironment(
    char const ** envTypeName, uno_Environment **)
{
    *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

extern "C" sal_Bool SAL_CALL component_writeInfo(
    void * serviceManager, void * registryKey)
{
    return cppu::component_writeInfoHelper(
        serviceManager, registryKey, entries);
}
=====================================================================
Found a 21 line (114 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;

                int y_lr = y >> image_subpixel_shift;
                int y_hr = ((image_subpixel_mask - (y & image_subpixel_mask)) * 
                               ry_inv) >> 
                                   image_subpixel_shift;
                int total_weight = 0;
                int x_lr_ini = x >> image_subpixel_shift;
                int x_hr_ini = ((image_subpixel_mask - (x & image_subpixel_mask)) * 
                                   rx_inv) >> 
                                       image_subpixel_shift;

                do
                {
                    int weight_y = weight_array[y_hr];
                    int x_lr = x_lr_ini;
                    int x_hr = x_hr_ini;
                    if(y_lr >= 0 && y_lr <= maxy)
                    {
                        const value_type* fg_ptr = (const value_type*)
                            base_type::source_image().row(y_lr) + (x_lr << 2);
=====================================================================
Found a 22 line (114 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_gray.h
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            const value_type *fg_ptr;

            color_type* span = base_type::allocator().span();

            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            do
            {
                int x_hr;
                int y_hr;
                
                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;
=====================================================================
Found a 19 line (114 tokens) duplication in the following files: 
Starting at line 417 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
Starting at line 982 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx

void ElementDescriptor::readFixedLineModel( StyleBag * all_styles )
    SAL_THROW( (Exception) )
{
    // collect styles
    Style aStyle( 0x2 | 0x8 | 0x20 );
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
        aStyle._set |= 0x2;
    if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
        aStyle._set |= 0x20;
    if (readFontProps( this, aStyle ))
        aStyle._set |= 0x8;
    if (aStyle._set)
    {
        addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
                      all_styles->getStyleId( aStyle ) );
    }
    
    // collect elements
    readDefaults();
=====================================================================
Found a 19 line (114 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartOASISTContext.cxx
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ControlOASISTContext.cxx

	Reference< XAttributeList > xControlAttrList( pControlMutableAttrList );

	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
			if( !pMutableAttrList )
			{
				pMutableAttrList = 
					new XMLMutableAttributeList( rAttrList );
=====================================================================
Found a 5 line (114 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

static char ass_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 11 line (114 tokens) duplication in the following files: 
Starting at line 1309 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx
Starting at line 1326 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

					const BitmapColor	aCol( pReadAcc->GetPixel( nY, nX ) );
					const ULONG			nD = nVCLDitherLut[ nModY + ( nX & 0x0FUL ) ];
					const ULONG			nR = ( nVCLLut[ aCol.GetRed() ] + nD ) >> 16UL;
					const ULONG			nG = ( nVCLLut[ aCol.GetGreen() ] + nD ) >> 16UL;
					const ULONG			nB = ( nVCLLut[ aCol.GetBlue() ] + nD ) >> 16UL;

					aIndex.SetIndex( (BYTE) ( nVCLRLut[ nR ] + nVCLGLut[ nG ] + nVCLBLut[ nB ] ) );
					pWriteAcc->SetPixel( nY, nX, aIndex );
				}
			}
		}
=====================================================================
Found a 18 line (114 tokens) duplication in the following files: 
Starting at line 871 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx
Starting at line 991 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/field.cxx

    ComboBox::DataChanged( rDCEvt );

    if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_LOCALE) )
    {
        String sOldDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sOldThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        if ( IsDefaultLocale() )
            ImplGetLocaleDataWrapper().setLocale( GetSettings().GetLocale() );
        String sNewDecSep = ImplGetLocaleDataWrapper().getNumDecimalSep();
        String sNewThSep = ImplGetLocaleDataWrapper().getNumThousandSep();
        ImplUpdateSeparators( sOldDecSep, sNewDecSep, sOldThSep, sNewThSep, this );
        ReformatAll();
    }
}

// -----------------------------------------------------------------------

void NumericBox::Modify()
=====================================================================
Found a 29 line (114 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/streaming/streamwrap.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/java/streamwrap.cxx

	m_pSvStream->setPos(Pos_Absolut,nPos);
	checkError();

	return nAvailable;
}

//------------------------------------------------------------------------------
void SAL_CALL OInputStreamWrapper::closeInput() throw( stario::NotConnectedException, staruno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	if (m_bSvStreamOwner)
		delete m_pSvStream;

	m_pSvStream = NULL;
}

//------------------------------------------------------------------------------
void OInputStreamWrapper::checkConnected() const
{
	if (!m_pSvStream)
		throw stario::NotConnectedException(::rtl::OUString(), const_cast<staruno::XWeak*>(static_cast<const staruno::XWeak*>(this)));
}

//------------------------------------------------------------------------------
void OInputStreamWrapper::checkError() const
{
	checkConnected();
=====================================================================
Found a 30 line (114 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx
Starting at line 374 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

									m_pImpl->m_xContent->getProvider().get(),
									queryContentIdentifierString( nIndex ) );
		m_pImpl->m_aResults[ nIndex ]->xRow = xRow;
		return xRow;
	}

	return uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
		m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::close()
{
}

//=========================================================================
// virtual
void DataSupplier::validate()
	throw( ucb::ResultSetException )
{
=====================================================================
Found a 19 line (114 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/DateTimeHelper.cxx
Starting at line 236 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/DateTimeHelper.cxx

            oslDateTime aDateTime;
            aDateTime.NanoSeconds = 0;
            aDateTime.Seconds     = sal::static_int_cast< sal_uInt16 >(seconds);
                // 0-59
            aDateTime.Minutes     = sal::static_int_cast< sal_uInt16 >(minutes);
                // 0-59
            aDateTime.Hours       = sal::static_int_cast< sal_uInt16 >(hours);
                // 0-23
            aDateTime.Day         = sal::static_int_cast< sal_uInt16 >(day);
                // 1-31
            aDateTime.DayOfWeek   = 0; //dayofweek;  // 0-6, 0 = Sunday
            aDateTime.Month       = sal::static_int_cast< sal_uInt16 >(month);
                // 1-12
            aDateTime.Year        = sal::static_int_cast< sal_uInt16 >(year);

            TimeValue aTimeValue;
            if ( osl_getTimeValueFromDateTime( &aDateTime,
                                                &aTimeValue ) )
            {
=====================================================================
Found a 34 line (114 tokens) duplication in the following files: 
Starting at line 1100 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 567 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

							rProvider->getAdditionalPropertySet( rContentId,
																 sal_False ),
                            uno::UNO_QUERY );
					bTriedToGetAdditonalPropSet = sal_True;
				}

				if ( xAdditionalPropSet.is() )
				{
					if ( !xRow->appendPropertySetValue(
												xAdditionalPropSet,
												rProp ) )
					{
						// Append empty entry.
						xRow->appendVoid( rProp );
					}
				}
				else
				{
					// Append empty entry.
					xRow->appendVoid( rProp );
				}
			}
		}
	}
	else
	{
		// Append all Core Properties.
		xRow->appendString (
            beans::Property( rtl::OUString::createFromAscii( "ContentType" ),
					  -1,
                      getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                      beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY ),
			rData.aContentType );
=====================================================================
Found a 30 line (114 tokens) duplication in the following files: 
Starting at line 460 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 374 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

									m_pImpl->m_xContent->getProvider().get(),
									queryContentIdentifierString( nIndex ) );
		m_pImpl->m_aResults[ nIndex ]->xRow = xRow;
		return xRow;
	}

	return uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
		m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::close()
{
}

//=========================================================================
// virtual
void DataSupplier::validate()
	throw( ucb::ResultSetException )
{
=====================================================================
Found a 35 line (114 tokens) duplication in the following files: 
Starting at line 1125 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1006 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

							rProvider->getAdditionalPropertySet( rContentId,
																 sal_False ),
                            uno::UNO_QUERY );
					bTriedToGetAdditonalPropSet = sal_True;
				}

				if ( xAdditionalPropSet.is() )
				{
					if ( !xRow->appendPropertySetValue(
												xAdditionalPropSet,
												rProp ) )
					{
						// Append empty entry.
						xRow->appendVoid( rProp );
					}
				}
				else
				{
					// Append empty entry.
					xRow->appendVoid( rProp );
				}
			}
		}
	}
	else
	{
		// Append all Core Properties.
		xRow->appendString (
            beans::Property(
                rtl::OUString::createFromAscii( "ContentType" ),
                -1,
                getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                beans::PropertyAttribute::BOUND
                    | beans::PropertyAttribute::READONLY ),
			rData.aContentType );
=====================================================================
Found a 19 line (114 tokens) duplication in the following files: 
Starting at line 4420 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 4500 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

bool INetURLObject::setBase(rtl::OUString const & rTheBase, sal_Int32 nIndex,
							bool bIgnoreFinalSlash,
							EncodeMechanism eMechanism,
							rtl_TextEncoding eCharset)
{
	SubString aSegment(getSegment(nIndex, bIgnoreFinalSlash));
	if (!aSegment.isPresent())
		return false;

	sal_Unicode const * pPathBegin
		= m_aAbsURIRef.getStr() + m_aPath.getBegin();
	sal_Unicode const * pPathEnd = pPathBegin + m_aPath.getLength();
	sal_Unicode const * pSegBegin
		= m_aAbsURIRef.getStr() + aSegment.getBegin();
	sal_Unicode const * pSegEnd = pSegBegin + aSegment.getLength();

    if (pSegBegin < pSegEnd && *pSegBegin == '/')
        ++pSegBegin;
	sal_Unicode const * pExtension = 0;
=====================================================================
Found a 10 line (114 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrolbase.cxx
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrolbase.cxx

::com::sun::star::awt::Size UnoControlBase::Impl_getPreferredSize()
{
	::com::sun::star::awt::Size aSz;
	::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >  xP = ImplGetCompatiblePeer( sal_True );
	DBG_ASSERT( xP.is(), "Layout: No Peer!" );
	if ( xP.is() )
	{
		::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains >  xL( xP, ::com::sun::star::uno::UNO_QUERY );
		if ( xL.is() )
			aSz = xL->getPreferredSize();
=====================================================================
Found a 29 line (114 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/source/result/optionhelper.cxx
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/testshl2/workben/test_filter.cxx

void split( const rtl::OString& opt,
			const rtl::OString& _sSeparator,
			OStringList& optLine )
{
	optLine.clear();
	// const sal_Int32 cSetLen = cSet.getLength();
	sal_Int32 index = 0;
	sal_Int32 oldIndex = 0;
	
	// sal_Int32 i;
	// sal_Int32 j = 0;
	while ( opt.getLength() > 0)
	{
		// for ( i = 0; i < cSetLen; i++ ) 
		// {
		index = opt.indexOf( _sSeparator, oldIndex);
		if( index != -1 ) 
		{
			optLine.push_back( opt.copy( oldIndex, index - oldIndex ) );
			oldIndex = index + _sSeparator.getLength();
		}
		// }
		else // if (index == -1)
		{
			optLine.push_back( opt.copy( oldIndex ) );
			break;
		}
	}
} ///< split
=====================================================================
Found a 29 line (114 tokens) duplication in the following files: 
Starting at line 977 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/wrtsh/select.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/wrtsh/wrtundo.cxx

    DoUndo(bSaveDoesUndo);

	BOOL bCreateXSelection = FALSE;
	const FASTBOOL bFrmSelected = IsFrmSelected() || IsObjSelected();
	if ( IsSelection() )
	{
		if ( bFrmSelected )
			UnSelectFrm();

		// Funktionspointer fuer das Aufheben der Selektion setzen
		// bei Cursor setzen
		fnKillSel = &SwWrtShell::ResetSelect;
		fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
		bCreateXSelection = TRUE;
	}
	else if ( bFrmSelected )
	{
		EnterSelFrmMode();
		bCreateXSelection = TRUE;
	}
	else if( (CNT_GRF | CNT_OLE ) & GetCntType() )
	{
		SelectObj( GetCharRect().Pos() );
		EnterSelFrmMode();
		bCreateXSelection = TRUE;
	}

	if( bCreateXSelection )
		SwTransferable::CreateSelection( *this );
=====================================================================
Found a 19 line (114 tokens) duplication in the following files: 
Starting at line 3539 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,    0xE082,         0,         0,
    // F080
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F090
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0a0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0b0
             0,         0,         0,         0,
             0,         0,         0,         0,
=====================================================================
Found a 21 line (114 tokens) duplication in the following files: 
Starting at line 3250 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4979 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

		if(bFirstRowAsLabel && ColumnDesc.getLength() >= nColCount - bFirstColumnAsLabel ? 1 : 0)
		{
			sal_uInt16 nStart = bFirstColumnAsLabel ? 1 : 0;
			for(sal_uInt16 i = nStart; i < nColCount; i++)
			{
				uno::Reference< table::XCell >  xCell = getCellByPosition(i, 0);
				if(!xCell.is())
				{
					throw uno::RuntimeException();
					break;
				}
				uno::Reference< text::XText >  xText(xCell, uno::UNO_QUERY);

				xText->setString(pArray[i - nStart]);
			}
		}
		else
		{
			DBG_ERROR("Wo kommen die Labels her?")
		}
	}
=====================================================================
Found a 13 line (114 tokens) duplication in the following files: 
Starting at line 2415 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx
Starting at line 2585 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx

	throw( lang::IndexOutOfBoundsException, lang::WrappedTargetException,
 		uno::RuntimeException)
{
	vos::OGuard aGuard(Application::GetSolarMutex());
	const sal_Bool bDescriptor = rParent.IsDescriptor();
	SwSectionFmt* pSectFmt = rParent.GetFmt();
	if(!pSectFmt && !bDescriptor)
		throw uno::RuntimeException();
	SwTOXBase* pTOXBase = bDescriptor ? &rParent.GetProperties_Impl()->GetTOXBase() :
			(SwTOXBaseSection*)pSectFmt->GetSection();
	if(nIndex < 0 ||
	(nIndex > pTOXBase->GetTOXForm().GetFormMax()))
		throw lang::IndexOutOfBoundsException();
=====================================================================
Found a 15 line (114 tokens) duplication in the following files: 
Starting at line 1389 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unofield.cxx
Starting at line 2145 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoframe.cxx

	if(!IsDescriptor())
		throw uno::RuntimeException();
	uno::Reference<lang::XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}

	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;
	if(pDoc)
=====================================================================
Found a 18 line (114 tokens) duplication in the following files: 
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/undraw.cxx
Starting at line 504 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/undraw.cxx

	pObjArr->pObj->SetUserCall( 0 );

	::lcl_SaveAnchor( pFmt, pObjArr->nNodeIdx );

	// alle Uno-Objecte sollten sich jetzt abmelden
	::lcl_SendRemoveToUno( *pFmt );

	// aus dem Array austragen
	SwDoc* pDoc = pFmt->GetDoc();
	SwSpzFrmFmts& rFlyFmts = *(SwSpzFrmFmts*)pDoc->GetSpzFrmFmts();
	rFlyFmts.Remove( rFlyFmts.GetPos( pFmt ));

	for( USHORT n = 1; n < nSize; ++n )
	{
		SwUndoGroupObjImpl& rSave = *( pObjArr + n );

		::lcl_RestoreAnchor( rSave.pFmt, rSave.nNodeIdx );
		rFlyFmts.Insert( rSave.pFmt, rFlyFmts.Count() );
=====================================================================
Found a 21 line (114 tokens) duplication in the following files: 
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl1.cxx
Starting at line 863 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl1.cxx

							 const SvxBorderLine* pBorderLine )
{
	SwCntntNode* pCntNd = rCursor.GetPoint()->nNode.GetNode().GetCntntNode();
	SwTableNode* pTblNd = pCntNd ? pCntNd->FindTableNode() : 0;
	if( !pTblNd )
		return ;

	SwLayoutFrm *pStart, *pEnd;
	::lcl_GetStartEndCell( rCursor, pStart, pEnd );

	SwSelUnions aUnions;
	::MakeSelUnions( aUnions, pStart, pEnd );

	if( aUnions.Count() )
	{
		SwTable& rTable = pTblNd->GetTable();
		if( DoesUndo() )
		{
			ClearRedo();
			AppendUndo( new SwUndoAttrTbl( *pTblNd ));
		}
=====================================================================
Found a 21 line (114 tokens) duplication in the following files: 
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/fontworkgallery.cxx
Starting at line 395 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/fontworkgallery.cxx

    Window* /*pParentWindow*/ ) :

	SfxPopupWindow( nId, 
                    rFrame,
                    SVX_RES( RID_SVXFLOAT_FONTWORK_ALIGNMENT )),
	maImgAlgin1( SVX_RES( IMG_FONTWORK_ALIGN_LEFT_16 ) ),
	maImgAlgin2( SVX_RES( IMG_FONTWORK_ALIGN_CENTER_16 ) ),
	maImgAlgin3( SVX_RES( IMG_FONTWORK_ALIGN_RIGHT_16 ) ),
	maImgAlgin4( SVX_RES( IMG_FONTWORK_ALIGN_WORD_16 ) ),
	maImgAlgin5( SVX_RES( IMG_FONTWORK_ALIGN_STRETCH_16 ) ),
	maImgAlgin1h( SVX_RES( IMG_FONTWORK_ALIGN_LEFT_16_H ) ),
	maImgAlgin2h( SVX_RES( IMG_FONTWORK_ALIGN_CENTER_16_H ) ),
	maImgAlgin3h( SVX_RES( IMG_FONTWORK_ALIGN_RIGHT_16_H ) ),
	maImgAlgin4h( SVX_RES( IMG_FONTWORK_ALIGN_WORD_16_H ) ),
	maImgAlgin5h( SVX_RES( IMG_FONTWORK_ALIGN_STRETCH_16_H ) ),
	mxFrame( rFrame ),
	mbPopupMode( true )
{
	SetHelpId( HID_WIN_FONTWORK_ALIGN );
    implInit();
}
=====================================================================
Found a 19 line (114 tokens) duplication in the following files: 
Starting at line 710 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx
Starting at line 1805 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx

	aTsbTile.Hide();
	aTsbStretch.Hide();
	aTsbScale.Hide();
	aTsbOriginal.Hide();
	aFtXSize.Hide();
	aMtrFldXSize.Hide();
	aFtYSize.Hide();
	aMtrFldYSize.Hide();
    aFlSize.Hide();
	aRbtRow.Hide();
	aRbtColumn.Hide();
	aMtrFldOffset.Hide();
    aFlOffset.Hide();
	aCtlPosition.Hide();
	aFtXOffset.Hide();
	aMtrFldXOffset.Hide();
	aFtYOffset.Hide();
	aMtrFldYOffset.Hide();
    aFlPosition.Hide();
=====================================================================
Found a 21 line (114 tokens) duplication in the following files: 
Starting at line 2681 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 1054 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/misc/outline.cxx

USHORT lcl_DrawGraphic(VirtualDevice* pVDev, const SwNumFmt &rFmt, USHORT nXStart,
						USHORT nYStart, USHORT nDivision)
{
	const SvxBrushItem* pBrushItem = rFmt.GetBrush();
	USHORT nRet = 0;
	if(pBrushItem)
	{
		const Graphic* pGrf = pBrushItem->GetGraphic();
		if(pGrf)
		{
			Size aGSize( rFmt.GetGraphicSize());
			aGSize.Width() /= nDivision;
			nRet = (USHORT)aGSize.Width();
			aGSize.Height() /= nDivision;
			pGrf->Draw( pVDev, Point(nXStart,nYStart),
					pVDev->PixelToLogic( aGSize ) );
		}
	}
	return nRet;

}
=====================================================================
Found a 20 line (114 tokens) duplication in the following files: 
Starting at line 926 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/autocdlg.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/optfltr.cxx

void OfaMSFilterTabPage2::MSFltrSimpleTable::SetTabs()
{
	SvxSimpleTable::SetTabs();
	USHORT nAdjust = SV_LBOXTAB_ADJUST_RIGHT|SV_LBOXTAB_ADJUST_LEFT|SV_LBOXTAB_ADJUST_CENTER|SV_LBOXTAB_ADJUST_NUMERIC|SV_LBOXTAB_FORCE;

	if( aTabs.Count() > 1 )
	{
		SvLBoxTab* pTab = (SvLBoxTab*)aTabs.GetObject(1);
		pTab->nFlags &= ~nAdjust;
		pTab->nFlags |= SV_LBOXTAB_PUSHABLE|SV_LBOXTAB_ADJUST_CENTER|SV_LBOXTAB_FORCE;
	}
	if( aTabs.Count() > 2 )
	{
		SvLBoxTab* pTab = (SvLBoxTab*)aTabs.GetObject(2);
		pTab->nFlags &= ~nAdjust;
		pTab->nFlags |= SV_LBOXTAB_PUSHABLE|SV_LBOXTAB_ADJUST_CENTER|SV_LBOXTAB_FORCE;
	}
}

void OfaMSFilterTabPage2::MSFltrSimpleTable::HBarClick()
=====================================================================
Found a 25 line (114 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/smdetect.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/swdetect.cxx

                        if ( ( aWrap.TargetException >>= aZipException ) && ( aTypeName.Len() || aPreselectedFilterName.Len() ) )
						{
							if ( xInteraction.is() )
							{
                                // the package is a broken one
       							aDocumentTitle = aMedium.GetURLObject().getName(
															INetURLObject::LAST_SEGMENT,
															true,
															INetURLObject::DECODE_WITH_CHARSET );

								if ( !bRepairPackage )
								{
									// ask the user whether he wants to try to repair
            						RequestPackageReparation* pRequest = new RequestPackageReparation( aDocumentTitle );
            						uno::Reference< task::XInteractionRequest > xRequest ( pRequest );
            						xInteraction->handle( xRequest );
            						bRepairAllowed = pRequest->isApproved();
								}

								if ( !bRepairAllowed )
								{
									// repair either not allowed or not successful
	        						NotifyBrokenPackage* pNotifyRequest = new NotifyBrokenPackage( aDocumentTitle );
            						uno::Reference< task::XInteractionRequest > xRequest ( pNotifyRequest );
           							xInteraction->handle( xRequest );
=====================================================================
Found a 22 line (114 tokens) duplication in the following files: 
Starting at line 2461 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/sfxbasemodel.cxx
Starting at line 2487 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/sfxbasemodel.cxx

	if ( impl_isDisposed() )
		return;

    ::cppu::OInterfaceContainerHelper* pIC = m_pData->m_aInterfaceContainer.getContainer( ::getCppuType((const uno::Reference< XMODIFYLISTENER >*)0) );
	if( pIC )

	{
        lang::EventObject aEvent( (frame::XModel *)this );
        ::cppu::OInterfaceIteratorHelper aIt( *pIC );
		while( aIt.hasMoreElements() )
        {
            try
            {
                ((XMODIFYLISTENER *)aIt.next())->modified( aEvent );
            }
            catch( uno::RuntimeException& )
            {
                aIt.remove();
            }
        }
	}
}
=====================================================================
Found a 13 line (114 tokens) duplication in the following files: 
Starting at line 2622 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/bindings.cxx
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/statcach.cxx

            ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >  xDisp = xProv->queryDispatch( aURL, ::rtl::OUString(), 0 );
            if ( xDisp.is() )
            {
                // test the dispatch object if it is just a wrapper for a SfxDispatcher
				::com::sun::star::uno::Reference< ::com::sun::star::lang::XUnoTunnel > xTunnel( xDisp, ::com::sun::star::uno::UNO_QUERY );
                SfxOfficeDispatch* pDisp = NULL;
                if ( xTunnel.is() )
                {
                    sal_Int64 nImplementation = xTunnel->getSomething(SfxOfficeDispatch::impl_getStaticIdentifier());
                    pDisp = reinterpret_cast< SfxOfficeDispatch* >(sal::static_int_cast< sal_IntPtr >( nImplementation ));
                }

                if ( pDisp )
=====================================================================
Found a 20 line (114 tokens) duplication in the following files: 
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/viewshe2.cxx
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/viewshe2.cxx

        mpContentWindow->SetVisibleXY(-1, fY);

        Rectangle aVisArea = GetDocSh()->GetVisArea(ASPECT_CONTENT);
        Point aVisAreaPos = GetActiveWindow()->PixelToLogic( Point(0,0) );
        aVisArea.SetPos(aVisAreaPos);
        GetDocSh()->SetVisArea(aVisArea);

        Size aVisSizePixel = GetActiveWindow()->GetOutputSizePixel();
        Rectangle aVisAreaWin = GetActiveWindow()->PixelToLogic( Rectangle( Point(0,0), aVisSizePixel) );
        VisAreaChanged(aVisAreaWin);

        if (pView)
        {
            pView->VisAreaChanged(GetActiveWindow());
        }

        if (pOLV)
            pOLV->ShowCursor();

		if (mbHasRulers)
=====================================================================
Found a 25 line (114 tokens) duplication in the following files: 
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/sddetect.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/swdetect.cxx

                        if ( ( aWrap.TargetException >>= aZipException ) && ( aTypeName.Len() || aPreselectedFilterName.Len() ) )
						{
							if ( xInteraction.is() )
							{
                                // the package is a broken one
       							aDocumentTitle = aMedium.GetURLObject().getName(
															INetURLObject::LAST_SEGMENT,
															true,
															INetURLObject::DECODE_WITH_CHARSET );

								if ( !bRepairPackage )
								{
									// ask the user whether he wants to try to repair
            						RequestPackageReparation* pRequest = new RequestPackageReparation( aDocumentTitle );
            						uno::Reference< task::XInteractionRequest > xRequest ( pRequest );
            						xInteraction->handle( xRequest );
            						bRepairAllowed = pRequest->isApproved();
								}

								if ( !bRepairAllowed )
								{
									// repair either not allowed or not successful
	        						NotifyBrokenPackage* pNotifyRequest = new NotifyBrokenPackage( aDocumentTitle );
            						uno::Reference< task::XInteractionRequest > xRequest ( pNotifyRequest );
           							xInteraction->handle( xRequest );
=====================================================================
Found a 26 line (114 tokens) duplication in the following files: 
Starting at line 672 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fupoor.cxx
Starting at line 700 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/graphctl.cxx

						pView->MarkPoint(*pHdl);
					}

					if(0L == rHdlList.GetFocusHdl())
					{
						// restore point with focus
						SdrHdl* pNewOne = 0L;

						for(sal_uInt32 a(0); !pNewOne && a < rHdlList.GetHdlCount(); a++)
						{
							SdrHdl* pAct = rHdlList.GetHdl(a);

							if(pAct
								&& pAct->GetKind() == HDL_POLY
								&& pAct->GetPolyNum() == nPol
								&& pAct->GetPointNum() == nPnt)
							{
								pNewOne = pAct;
							}
						}

						if(pNewOne)
						{
							((SdrHdlList&)rHdlList).SetFocusHdl(pNewOne);
						}
					}
=====================================================================
Found a 20 line (114 tokens) duplication in the following files: 
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconcs.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/ribbar/concustomshape.cxx

void ConstCustomShape::SetAttributes( SdrObject* pObj )
{
	sal_Bool bAttributesAppliedFromGallery = sal_False;

	if ( GalleryExplorer::GetSdrObjCount( GALLERY_THEME_POWERPOINT ) )
	{
		std::vector< rtl::OUString > aObjList;
		if ( GalleryExplorer::FillObjListTitle( GALLERY_THEME_POWERPOINT, aObjList ) )
		{
			sal_uInt16 i;
			for ( i = 0; i < aObjList.size(); i++ )
			{
				if ( aObjList[ i ].equalsIgnoreAsciiCase( aCustomShape ) )
				{
					FmFormModel aFormModel;
					SfxItemPool& rPool = aFormModel.GetItemPool();
					rPool.FreezeIdRanges();
					if ( GalleryExplorer::GetSdrObj( GALLERY_THEME_POWERPOINT, i, &aFormModel ) )
					{
						const SdrObject* pSourceObj = aFormModel.GetPage( 0 )->GetObj( 0 );
=====================================================================
Found a 9 line (114 tokens) duplication in the following files: 
Starting at line 1402 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/sdpage.cxx
Starting at line 1423 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/sdpage.cxx

	case 8: // vertical title, shape
	{
		Size aSize( rRectangle[0].GetSize().Height(), rRectangle[1].BottomLeft().Y() - rRectangle[0].TopLeft().Y() );
		rRectangle[0].SetSize( aSize );
		rRectangle[0].SetPos( aTitleRect.TopRight() - Point( aSize.Width(), 0 ) );

		Size aPageSize ( rPage.GetSize() );
		aPageSize.Height() -= rPage.GetUppBorder() + rPage.GetLwrBorder();
		aSize.Height() = rRectangle[0].GetSize().Height();
=====================================================================
Found a 22 line (114 tokens) duplication in the following files: 
Starting at line 755 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx
Starting at line 867 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

BOOL ScDBFunc::HasSelectionForNumGroup( ScDPNumGroupInfo& rOldInfo )
{
    // determine if the numeric group dialog has to be shown for the current selection

    BOOL bFound = FALSE;

    SCCOL nCurX = GetViewData()->GetCurX();
    SCROW nCurY = GetViewData()->GetCurY();
    SCTAB nTab = GetViewData()->GetTabNo();
    ScDocument* pDoc = GetViewData()->GetDocument();

    ScDPObject* pDPObj = pDoc->GetDPAtCursor( nCurX, nCurY, nTab );
    if ( pDPObj )
    {
        StrCollection aEntries;
        long nSelectDimension = -1;
        GetSelectedMemberList( aEntries, nSelectDimension );

        if ( aEntries.GetCount() > 0 )
        {
            BOOL bIsDataLayout;
            String aDimName = pDPObj->GetDimName( nSelectDimension, bIsDataLayout );
=====================================================================
Found a 25 line (114 tokens) duplication in the following files: 
Starting at line 413 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/swdetect.cxx

                        if ( ( aWrap.TargetException >>= aZipException ) && ( aTypeName.Len() || aPreselectedFilterName.Len() ) )
						{
							if ( xInteraction.is() )
							{
                                // the package is a broken one
       							aDocumentTitle = aMedium.GetURLObject().getName(
															INetURLObject::LAST_SEGMENT,
															true,
															INetURLObject::DECODE_WITH_CHARSET );

								if ( !bRepairPackage )
								{
									// ask the user whether he wants to try to repair
            						RequestPackageReparation* pRequest = new RequestPackageReparation( aDocumentTitle );
            						uno::Reference< task::XInteractionRequest > xRequest ( pRequest );
            						xInteraction->handle( xRequest );
            						bRepairAllowed = pRequest->isApproved();
								}

								if ( !bRepairAllowed )
								{
									// repair either not allowed or not successful
	        						NotifyBrokenPackage* pNotifyRequest = new NotifyBrokenPackage( aDocumentTitle );
            						uno::Reference< task::XInteractionRequest > xRequest ( pNotifyRequest );
           							xInteraction->handle( xRequest );
=====================================================================
Found a 20 line (114 tokens) duplication in the following files: 
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuconcustomshape.cxx
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconcs.cxx

void FuConstructCustomShape::SetAttributes( SdrObject* pObj )
{
	sal_Bool bAttributesAppliedFromGallery = sal_False;

	if ( GalleryExplorer::GetSdrObjCount( GALLERY_THEME_POWERPOINT ) )
	{
		std::vector< rtl::OUString > aObjList;
		if ( GalleryExplorer::FillObjListTitle( GALLERY_THEME_POWERPOINT, aObjList ) )
		{
			sal_uInt16 i;
			for ( i = 0; i < aObjList.size(); i++ )
			{
				if ( aObjList[ i ].equalsIgnoreAsciiCase( aCustomShape ) )
				{
					FmFormModel aFormModel;
					SfxItemPool& rPool = aFormModel.GetItemPool();
					rPool.FreezeIdRanges();
					if ( GalleryExplorer::GetSdrObj( GALLERY_THEME_POWERPOINT, i, &aFormModel ) )
					{
						const SdrPage* pPage = aFormModel.GetPage( 0 );
=====================================================================
Found a 18 line (114 tokens) duplication in the following files: 
Starting at line 437 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx

BOOL ScOutlineDocFunc::HideMarkedOutlines( const ScRange& rRange, BOOL bRecord, BOOL bApi )
{
	BOOL bDone = FALSE;

	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	SCCOL nEndCol = rRange.aEnd.Col();
	SCROW nEndRow = rRange.aEnd.Row();
	SCTAB nTab = rRange.aStart.Tab();

	ScDocument* pDoc = rDocShell.GetDocument();

	if (bRecord && !pDoc->IsUndoEnabled())
		bRecord = FALSE;
	ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab );

	if (pTable)
	{
=====================================================================
Found a 35 line (114 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/attrdlg/scdlgfact.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dialog/swdlgfact.cxx

IMPL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl);

// AbstractTabDialog_Impl begin
void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
{
	pDlg->SetCurPageId( nId );
}

const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
{
	return pDlg->GetOutputItemSet();
}
//add by CHINA001
const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
{
	return pDlg->GetInputRanges( pItem );
}
//add by CHINA001
void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
	 pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractTabDialog_Impl::SetText( const XubString& rStr )
{
	pDlg->SetText( rStr );
}
String AbstractTabDialog_Impl::GetText() const
{
	return pDlg->GetText();
}

//add for AbstractTabDialog_Impl end

void    AbstractSwWordCountDialog_Impl::SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc)
=====================================================================
Found a 20 line (114 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/xelink.cxx
Starting at line 565 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/xelink.cxx

    explicit            XclExpLinkManagerImpl8( const XclExpRoot& rRoot );

    virtual void        FindExtSheet( sal_uInt16& rnExtSheet,
                            sal_uInt16& rnFirstXclTab, sal_uInt16& rnLastXclTab,
                            SCTAB nFirstScTab, SCTAB nLastScTab,
                            XclExpRefLogEntry* pRefLogEntry );
    virtual sal_uInt16  FindExtSheet( sal_Unicode cCode );

    virtual void        StoreCellRange( const SingleRefData& rRef1, const SingleRefData& rRef2 );

    virtual bool        InsertAddIn(
                            sal_uInt16& rnExtSheet, sal_uInt16& rnExtName,
                            const String& rName );
    virtual bool        InsertDde(
                            sal_uInt16& rnExtSheet, sal_uInt16& rnExtName,
                            const String& rApplic, const String& rTopic, const String& rItem );

    virtual void        Save( XclExpStream& rStrm );

private:
=====================================================================
Found a 14 line (114 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/dbcolect.cxx
Starting at line 530 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/dbcolect.cxx

    bAutoFilter         = rData.bAutoFilter;

	for (i=0; i<MAXSORT; i++)
	{
		bDoSort[i]		= rData.bDoSort[i];
		nSortField[i]	= rData.nSortField[i];
		bAscending[i]	= rData.bAscending[i];
	}
	for (i=0; i<MAXQUERY; i++)
	{
		bDoQuery[i]			= rData.bDoQuery[i];
		nQueryField[i]		= rData.nQueryField[i];
		eQueryOp[i]			= rData.eQueryOp[i];
		bQueryByString[i]	= rData.bQueryByString[i];
=====================================================================
Found a 12 line (114 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/cpp/complextoolbarcontrols/MyJob.h
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h

		throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);

	// XServiceInfo
    virtual ::rtl::OUString SAL_CALL getImplementationName(  )
		throw (::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
		throw (::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  )
		throw (::com::sun::star::uno::RuntimeException);
};

::rtl::OUString MyProtocolHandler_getImplementationName()
=====================================================================
Found a 5 line (114 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h

static char ase_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x1c,0x0e,
=====================================================================
Found a 19 line (114 tokens) duplication in the following files: 
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/controlmenucontroller.cxx
Starting at line 297 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx

    if ( xPopupMenu.is() && xDispatch.is() )
    {
        VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( xPopupMenu );
        if ( pPopupMenu )
        {
            css::util::URL               aTargetURL;
	        Sequence<PropertyValue>	     aArgs( 1 );
            Reference< XURLTransformer > xURLTransformer( xServiceManager->createInstance( 
                                                            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                        UNO_QUERY );

            {
                vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
                PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();

                aTargetURL.Complete = pVCLPopupMenu->GetItemCommand( rEvent.MenuId );
            }
            
            xURLTransformer->parseStrict( aTargetURL );
=====================================================================
Found a 17 line (114 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/dispatch/mailtodispatcher.cxx
Starting at line 299 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/dispatch/popupmenudispatcher.cxx
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/dispatch/servicehandler.cxx
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/dispatch/systemexec.cxx

css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL SystemExec::queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptor ) throw( css::uno::RuntimeException )
{
    sal_Int32 nCount = lDescriptor.getLength();
    css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > lDispatcher( nCount );
    for( sal_Int32 i=0; i<nCount; ++i )
    {
        lDispatcher[i] = this->queryDispatch(
                            lDescriptor[i].FeatureURL,
                            lDescriptor[i].FrameName,
                            lDescriptor[i].SearchFlags);
    }
    return lDispatcher;
}

//_________________________________________________________________________________________________________________

void SAL_CALL SystemExec::dispatch( const css::util::URL&                                  aURL       ,
=====================================================================
Found a 18 line (114 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1748 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmluconv.cxx

    sal_uInt8 nIndex (static_cast<sal_uInt8>((nBinaer & 0xFC0000) >> 18));
    sBuffer.setCharAt(0, aBase64EncodeTable [nIndex]);

    nIndex = static_cast<sal_uInt8>((nBinaer & 0x3F000) >> 12);
    sBuffer.setCharAt(1, aBase64EncodeTable [nIndex]);
    if (nLen == 1)
        return;

    nIndex = static_cast<sal_uInt8>((nBinaer & 0xFC0) >> 6);
    sBuffer.setCharAt(2, aBase64EncodeTable [nIndex]);
    if (nLen == 2)
        return;

    nIndex = static_cast<sal_uInt8>((nBinaer & 0x3F));
    sBuffer.setCharAt(3, aBase64EncodeTable [nIndex]);
}

void SvXMLUnitConverter::encodeBase64(rtl::OUStringBuffer& aStrBuffer, const uno::Sequence<sal_Int8>& aPass)
=====================================================================
Found a 19 line (114 tokens) duplication in the following files: 
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/fileaccess/source/FileAccess.cxx
Starting at line 781 of /local/ooo-build/ooo-build/src/oog680-m3/fileaccess/source/FileAccess.cxx

                    & ContentInfoAttribute::INSERT_WITH_INPUTSTREAM ) )
            {
                // Make sure the only required bootstrap property is
                // "Title",
                const Sequence< Property > & rProps = rCurr.Properties;
                if ( rProps.getLength() != 1 )
                    continue;

                if ( !rProps[ 0 ].Name.equalsAsciiL(
                        RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
                    continue;

                Sequence<rtl::OUString> aNames(1);
                rtl::OUString* pNames = aNames.getArray();
                pNames[0] = rtl::OUString(
                                RTL_CONSTASCII_USTRINGPARAM( "Title" ) );
                Sequence< Any > aValues(1);
                Any* pValues = aValues.getArray();
                pValues[0] = makeAny( rtl::OUString( rTitle ) );
=====================================================================
Found a 24 line (114 tokens) duplication in the following files: 
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

	  m_bLink( bLink )
{
	m_aInterceptedURL[0] = rtl::OUString(
		RTL_CONSTASCII_USTRINGPARAM(".uno:Save"));
	m_aInterceptedURL[1] = rtl::OUString(
		RTL_CONSTASCII_USTRINGPARAM(".uno:SaveAll"));
	m_aInterceptedURL[2] = rtl::OUString(
		RTL_CONSTASCII_USTRINGPARAM(".uno:CloseDoc"));	
	m_aInterceptedURL[3] = rtl::OUString(
		RTL_CONSTASCII_USTRINGPARAM(".uno:CloseWin"));	
	m_aInterceptedURL[4] = rtl::OUString(
		RTL_CONSTASCII_USTRINGPARAM(".uno:CloseFrame"));	
	m_aInterceptedURL[5] = rtl::OUString(
		RTL_CONSTASCII_USTRINGPARAM(".uno:SaveAs"));
}


Interceptor::~Interceptor()
{
	if( m_pDisposeEventListeners )
		delete m_pDisposeEventListeners;

	if(m_pStatCL)
		delete m_pStatCL;
=====================================================================
Found a 38 line (114 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/myucp_resultset.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_resultset.cxx

					  const rtl::Reference< Content >& rxContent,
					  const OpenCommandArgument2& rCommand,
					  const Reference< XCommandEnvironment >& rxEnv )
: ResultSetImplHelper( rxSMgr, rCommand ),
  m_xContent( rxContent ),
  m_xEnv( rxEnv )
{
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
	m_xResultSet2 = m_xResultSet1;
}
=====================================================================
Found a 13 line (114 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/FilteredContainer.cxx
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/viewcontainer.cxx

using namespace dbtools;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::container;
using namespace ::osl;
using namespace ::comphelper;
using namespace ::cppu;
using namespace ::connectivity::sdbcx;
=====================================================================
Found a 25 line (114 tokens) duplication in the following files: 
Starting at line 418 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlservices.cxx

    { &ORptStylesImportHelper::create, &ORptStylesImportHelper::getImplementationName_Static, &ORptStylesImportHelper::getSupportedServiceNames_Static,
		&cppu::createSingleComponentFactory, 0, 0 },
	{ 0, 0, 0, 0, 0, 0 } 
};
}

extern "C" void * SAL_CALL component_getFactory(
    char const * implName, void * serviceManager, void * registryKey)
{
    return cppu::component_getFactoryHelper(
        implName, serviceManager, registryKey, entries);
}

extern "C" void SAL_CALL component_getImplementationEnvironment(
    char const ** envTypeName, uno_Environment **)
{
    *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

extern "C" sal_Bool SAL_CALL component_writeInfo(
    void * serviceManager, void * registryKey)
{
    return cppu::component_writeInfoHelper(
        serviceManager, registryKey, entries);
}
=====================================================================
Found a 17 line (114 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/AntiEnvGuard/AntiEnvGuard.test.cxx
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/EnvGuard/EnvGuard.test.cxx

        current_EnvDcp = uno::Environment::getCurrent(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(UNO_LB_UNO))).getTypeName();
    }

	if (current_EnvDcp == ref)
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));

	else
    {
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE\n"));
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t        got: \""));
        s_message += current_EnvDcp;
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\"\n"));
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t   expected: \""));
        s_message += ref;
		s_message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\"\n"));
    }
}
=====================================================================
Found a 15 line (114 tokens) duplication in the following files: 
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BUser.cxx
Starting at line 254 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HUser.cxx

void SAL_CALL OHSQLUser::grantPrivileges( const ::rtl::OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
    if ( objType != PrivilegeObject::TABLE )
        ::dbtools::throwSQLException( "Privilege not granted: Only table privileges can be granted", "01007", *this );

	::osl::MutexGuard aGuard(m_aMutex);

	::rtl::OUString sPrivs = getPrivilegeString(objPrivileges);
	if(sPrivs.getLength())
	{
		::rtl::OUString sGrant;
		sGrant += ::rtl::OUString::createFromAscii("GRANT ");
		sGrant += sPrivs;
		sGrant += ::rtl::OUString::createFromAscii(" ON ");
		Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData();
=====================================================================
Found a 12 line (114 tokens) duplication in the following files: 
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BTables.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BViews.cxx

    Reference< XInterface > xObject( getObject( _nPos ) );
    sal_Bool bIsNew = connectivity::sdbcx::ODescriptor::isNew( xObject );
	if (!bIsNew)
	{
		OAdabasConnection* pConnection = static_cast<OAdabasCatalog&>(m_rParent).getConnection();
        Reference< XStatement > xStmt = pConnection->createStatement(  );

		::rtl::OUString aName,aSchema;
		sal_Int32 nLen = _sElementName.indexOf('.');
		aSchema = _sElementName.copy(0,nLen);
		aName	= _sElementName.copy(nLen+1);
		::rtl::OUString aSql = ::rtl::OUString::createFromAscii("DROP VIEW");
=====================================================================
Found a 21 line (114 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FValue.cxx
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FValue.cxx

				break;
			case DataType::BIT:
			case DataType::BOOLEAN:
				m_aValue.m_bBool	= _rRH.m_aValue.m_bBool;
				break;
			case DataType::TINYINT:
				if ( _rRH.m_bSigned )
					m_aValue.m_nInt8	= _rRH.m_aValue.m_nInt8;
				else
					m_aValue.m_nInt16	= _rRH.m_aValue.m_nInt16;
				break;
			case DataType::SMALLINT:
				if ( _rRH.m_bSigned )
					m_aValue.m_nInt16	= _rRH.m_aValue.m_nInt16;
				else
					m_aValue.m_nInt32	= _rRH.m_aValue.m_nInt32;
				break;
			case DataType::INTEGER:
				if ( _rRH.m_bSigned )
					m_aValue.m_nInt32	= _rRH.m_aValue.m_nInt32;
				else
=====================================================================
Found a 12 line (114 tokens) duplication in the following files: 
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/genericpropertyset.cxx
Starting at line 382 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/unoimap.cxx

Any SAL_CALL SvUnoImageMapObject::queryAggregation( const Type & rType )
	throw(RuntimeException)
{
	Any aAny;

	if( rType == ::getCppuType((const Reference< XServiceInfo >*)0) )
		aAny <<= Reference< XServiceInfo >(this);
	else if( rType == ::getCppuType((const Reference< XTypeProvider >*)0) )
		aAny <<= Reference< XTypeProvider >(this);
	else if( rType == ::getCppuType((const Reference< XPropertySet >*)0) )
		aAny <<= Reference< XPropertySet >(this);
	else if( rType == ::getCppuType((const Reference< XEventsSupplier >*)0) )
=====================================================================
Found a 31 line (114 tokens) duplication in the following files: 
Starting at line 2735 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 1709 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

	return ret;
}

//*************************************************************************
// scopedName
//*************************************************************************
OString scopedName(const OString& scope, const OString& type,
				   sal_Bool bNoNameSpace)
{
    sal_Int32 nPos = type.lastIndexOf( '/' );
	if (nPos == -1)
		return type;

	if (bNoNameSpace)
		return type.copy(nPos+1);

	OStringBuffer tmpBuf(type.getLength()*2);
    nPos = 0;
    do
	{
		tmpBuf.append("::");
		tmpBuf.append(type.getToken(0, '/', nPos));
	} while( nPos != -1 );

	return tmpBuf.makeStringAndClear();
}

//*************************************************************************
// shortScopedName
//*************************************************************************
OString scope(const OString& scope, const OString& type )
=====================================================================
Found a 29 line (114 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/CandleStickChartType.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/NetChartType.cxx

}

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

} // anonymous namespace

namespace chart
{
=====================================================================
Found a 25 line (114 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/AreaChartTypeTemplate.cxx

        uno::makeAny( sal_Int32( 2 ) );
}

const uno::Sequence< Property > & lcl_GetPropertySequence()
{
    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}
=====================================================================
Found a 22 line (114 tokens) duplication in the following files: 
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx

	}
}

//================================================================================================== 
static void cpp_call(
	bridges::cpp_uno::shared::UnoInterfaceProxy * pThis,
    bridges::cpp_uno::shared::VtableSlot aVtableSlot,
	typelib_TypeDescriptionReference * pReturnTypeRef,
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
{
  	// max space for: [complex ret ptr], values|ptr ...
  	char * pCppStack		=
  		(char *)alloca( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
  	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
=====================================================================
Found a 16 line (113 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlFormatCondition.cxx
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlImage.cxx
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/filter/xml/xmlReportElement.cxx

	const SvXMLTokenMap& rTokenMap = rImport.GetReportElementElemTokenMap();

	static const ::rtl::OUString s_sTRUE = ::xmloff::token::GetXMLToken(XML_TRUE);
	const sal_Int16 nLength = (_xAttrList.is()) ? _xAttrList->getLength() : 0;
	try
	{
		for(sal_Int16 i = 0; i < nLength; ++i)
		{
			OUString sLocalName;
			const rtl::OUString sAttrName = _xAttrList->getNameByIndex( i );
			const sal_uInt16 nPrefix = rMap.GetKeyByAttrName( sAttrName,&sLocalName );
			rtl::OUString sValue = _xAttrList->getValueByIndex( i );

			switch( rTokenMap.Get( nPrefix, sLocalName ) )
			{
				case XML_TOK_PRINT_ONLY_WHEN_GROUP_CHANGE: 
=====================================================================
Found a 19 line (113 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 399 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

            base_type(alloc, src, back_color, inter, &filter) 
        {}


        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);

            calc_type fg[4];
            value_type back_r = base_type::background_color().r;
            value_type back_g = base_type::background_color().g;
            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            const value_type *fg_ptr;

            color_type* span = base_type::allocator().span();
=====================================================================
Found a 13 line (113 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_conv_clip_polygon.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_conv_clip_polyline.h

            conv_adaptor_vpgen<VertexSource, vpgen_clip_polyline>(vs) {}

        void clip_box(double x1, double y1, double x2, double y2)
        {
            base_type::vpgen().clip_box(x1, y1, x2, y2);
        }

        double x1() const { return base_type::vpgen().x1(); }
        double y1() const { return base_type::vpgen().y1(); }
        double x2() const { return base_type::vpgen().x2(); }
        double y2() const { return base_type::vpgen().y2(); }

        typedef conv_clip_polyline<VertexSource> source_type;
=====================================================================
Found a 25 line (113 tokens) duplication in the following files: 
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/csfit/decrypter.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/decrypter.cxx

			xManager->createInstanceWithContext( OUString::createFromAscii( "com.sun.star.xml.xsec.XMLElementWrapper" ) , xContext ) ;
		OSL_ENSURE( tplElement.is() ,
			"Decryptor - "
			"Cannot get service instance of \"xsec.XMLElementWrapper\"" ) ;

		Reference< XXMLElementWrapper > xTplElement( tplElement , UNO_QUERY ) ;
		OSL_ENSURE( xTplElement.is() ,
			"Decryptor - "
			"Cannot get interface of \"XXMLElementWrapper\" from service \"xsec.XMLElementWrapper\"" ) ;

		Reference< XUnoTunnel > xTplEleTunnel( xTplElement , UNO_QUERY ) ;
		OSL_ENSURE( xTplEleTunnel.is() ,
			"Decryptor - "
			"Cannot get interface of \"XUnoTunnel\" from service \"xsec.XMLElementWrapper\"" ) ;

		XMLElementWrapper_XmlSecImpl* pTplElement = ( XMLElementWrapper_XmlSecImpl* )xTplEleTunnel->getSomething( XMLElementWrapper_XmlSecImpl::getUnoTunnelImplementationId() ) ;
		OSL_ENSURE( pTplElement != NULL ,
			"Decryptor - "
			"Cannot get implementation of \"xsec.XMLElementWrapper\"" ) ;

		pTplElement->setNativeElement( tplNode ) ;

		//Build XML Encryption template
		Reference< XInterface > enctpl =
			xManager->createInstanceWithContext( OUString::createFromAscii("com.sun.star.xml.xsec.XMLEncryptionTemplate"), xContext ) ;
=====================================================================
Found a 23 line (113 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/GradientStyle.cxx
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/TransGradientStyle.cxx

									  	  rStrName );
				
				aStrValue = aOut.makeStringAndClear();
				rExport.AddAttribute( XML_NAMESPACE_DRAW, XML_STYLE, aStrValue );
				
				// Center x/y
				if( aGradient.Style != awt::GradientStyle_LINEAR &&
					aGradient.Style != awt::GradientStyle_AXIAL   )
				{
					SvXMLUnitConverter::convertPercent( aOut, aGradient.XOffset );
					aStrValue = aOut.makeStringAndClear();
					rExport.AddAttribute( XML_NAMESPACE_DRAW, XML_CX, aStrValue );
					
					SvXMLUnitConverter::convertPercent( aOut, aGradient.YOffset );
					aStrValue = aOut.makeStringAndClear();
					rExport.AddAttribute( XML_NAMESPACE_DRAW, XML_CY, aStrValue );
				}
				

				Color aColor;

				// Transparency start
				aColor.SetColor( aGradient.StartColor );
=====================================================================
Found a 17 line (113 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximp3dscene.cxx
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpgrp.cxx

SvXMLImportContext* SdXMLGroupShapeContext::CreateChildContext( USHORT nPrefix,
	const OUString& rLocalName,
	const uno::Reference< xml::sax::XAttributeList>& xAttrList )
{
	SvXMLImportContext* pContext = 0L;
	
	// #i68101#
	if( nPrefix == XML_NAMESPACE_SVG &&	
		(IsXMLToken( rLocalName, XML_TITLE ) || IsXMLToken( rLocalName, XML_DESC ) ) )
	{
		pContext = new SdXMLDescriptionContext( GetImport(), nPrefix, rLocalName, xAttrList, mxShape );
	}
	else if( nPrefix == XML_NAMESPACE_OFFICE && IsXMLToken( rLocalName, XML_EVENT_LISTENERS ) )
	{
		pContext = new SdXMLEventsContext( GetImport(), nPrefix, rLocalName, xAttrList, mxShape );
	}
	else if( nPrefix == XML_NAMESPACE_DRAW && IsXMLToken( rLocalName, XML_GLUE_POINT ) )
=====================================================================
Found a 16 line (113 tokens) duplication in the following files: 
Starting at line 604 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bmpfast.cxx
Starting at line 880 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bmpfast.cxx

    const BitmapBuffer& rMsk = *rMskRA.ImplGetBitmapBuffer();

    const ULONG nSrcFormat = rSrc.mnFormat & ~BMP_FORMAT_TOP_DOWN;
    const ULONG nDstFormat = rDst.mnFormat & ~BMP_FORMAT_TOP_DOWN;

    // accelerated conversions for 16bit colormasks with non-565 format are not yet implemented
    if( nSrcFormat & (BMP_FORMAT_16BIT_TC_LSB_MASK | BMP_FORMAT_16BIT_TC_MSB_MASK) )
        if( rSrc.maColorMask.GetRedMask()  != 0xF800
        ||  rSrc.maColorMask.GetGreenMask()!= 0x07E0
        ||  rSrc.maColorMask.GetBlueMask() != 0x001F)
            return false;
    if( nDstFormat & (BMP_FORMAT_16BIT_TC_LSB_MASK | BMP_FORMAT_16BIT_TC_MSB_MASK) )
        if( rDst.maColorMask.GetRedMask()  != 0xF800
        ||  rDst.maColorMask.GetGreenMask()!= 0x07E0
        ||  rDst.maColorMask.GetBlueMask() != 0x001F)
            return false;
=====================================================================
Found a 21 line (113 tokens) duplication in the following files: 
Starting at line 1059 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/config/configitem.cxx
Starting at line 1160 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/config/configitem.cxx

sal_Bool ConfigItem::ReplaceSetProperties(
	const OUString& rNode, Sequence< PropertyValue > rValues)
{
	ValueCounter_Impl aCounter(pImpl->nInValueChange);
    sal_Bool bRet = sal_True;
    Reference<XHierarchicalNameAccess> xHierarchyAccess = GetTree();
    if(xHierarchyAccess.is())
	{
		Reference<XChangesBatch> xBatch(xHierarchyAccess, UNO_QUERY);
		try
		{
			Reference<XNameContainer> xCont;
			if(rNode.getLength())
			{
				Any aNode = xHierarchyAccess->getByHierarchicalName(rNode);
				aNode >>= xCont;
			}
			else
				xCont = Reference<XNameContainer> (xHierarchyAccess, UNO_QUERY);
			if(!xCont.is())
				return sal_False;
=====================================================================
Found a 36 line (113 tokens) duplication in the following files: 
Starting at line 576 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 288 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

                                    rtl::OUString(),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet <<= setPropertyValues( aProperties, Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "getPropertySetInfo" ) ) )
    {
		//////////////////////////////////////////////////////////////////
		// getPropertySetInfo
		//////////////////////////////////////////////////////////////////

		// Note: Implemented by base class.
		aRet <<= getPropertySetInfo( Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "getCommandInfo" ) ) )
    {
		//////////////////////////////////////////////////////////////////
		// getCommandInfo
		//////////////////////////////////////////////////////////////////

		// Note: Implemented by base class.
		aRet <<= getCommandInfo( Environment );
	}
#ifdef IMPLEMENT_COMMAND_OPEN
    else if ( aCommand.Name.equalsAsciiL(
				RTL_CONSTASCII_STRINGPARAM( "open" ) ) )
    {
        ucb::OpenCommandArgument2 aOpenCommand;
      	if ( !( aCommand.Argument >>= aOpenCommand ) )
		{
=====================================================================
Found a 34 line (113 tokens) duplication in the following files: 
Starting at line 799 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 1100 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

							pProvider->getAdditionalPropertySet( rContentId,
																 sal_False ),
                            uno::UNO_QUERY );
					bTriedToGetAdditonalPropSet = sal_True;
				}

				if ( xAdditionalPropSet.is() )
				{
					if ( !xRow->appendPropertySetValue(
												xAdditionalPropSet,
												rProp ) )
					{
						// Append empty entry.
						xRow->appendVoid( rProp );
					}
				}
				else
				{
					// Append empty entry.
					xRow->appendVoid( rProp );
				}
			}
		}
	}
	else
	{
		// Append all Core Properties.
		xRow->appendString (
            beans::Property( rtl::OUString::createFromAscii( "ContentType" ),
					  -1,
                      getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                      beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY ),
            rData.getContentType() );
=====================================================================
Found a 19 line (113 tokens) duplication in the following files: 
Starting at line 712 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 1322 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

    const ContentProperties& rData,
    const rtl::Reference< ::ucbhelper::ContentProviderImplHelper >& rProvider,
    const rtl::OUString& rContentId )
{
  	// Note: Empty sequence means "get values of all supported properties".

    rtl::Reference< ::ucbhelper::PropertyValueSet > xRow
    	= new ::ucbhelper::PropertyValueSet( rSMgr );

    sal_Int32 nCount = rProperties.getLength();
    if ( nCount )
    {
        uno::Reference< beans::XPropertySet > xAdditionalPropSet;
      	sal_Bool bTriedToGetAdditonalPropSet = sal_False;

        const beans::Property* pProps = rProperties.getConstArray();
      	for ( sal_Int32 n = 0; n < nCount; ++n )
        {
            const beans::Property& rProp = pProps[ n ];
=====================================================================
Found a 39 line (113 tokens) duplication in the following files: 
Starting at line 351 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 576 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

                                        "No properties!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet <<= setPropertyValues( aProperties, Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "getPropertySetInfo" ) ) )
	{
		//////////////////////////////////////////////////////////////////
		// getPropertySetInfo
		//////////////////////////////////////////////////////////////////

		// Note: Implemented by base class.
		aRet <<= getPropertySetInfo( Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "getCommandInfo" ) ) )
	{
		//////////////////////////////////////////////////////////////////
		// getCommandInfo
		//////////////////////////////////////////////////////////////////

		// Note: Implemented by base class.
		aRet <<= getCommandInfo( Environment );
	}
    else if ( aCommand.Name.equalsAsciiL(
                RTL_CONSTASCII_STRINGPARAM( "open" ) ) )
	{
		//////////////////////////////////////////////////////////////////
        // open
		//////////////////////////////////////////////////////////////////

        ucb::OpenCommandArgument2 aOpenCommand;
        if ( !( aCommand.Argument >>= aOpenCommand ) )
		{
=====================================================================
Found a 34 line (113 tokens) duplication in the following files: 
Starting at line 1125 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 799 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx

							rProvider->getAdditionalPropertySet( rContentId,
																 sal_False ),
                            uno::UNO_QUERY );
					bTriedToGetAdditonalPropSet = sal_True;
				}

				if ( xAdditionalPropSet.is() )
				{
					if ( !xRow->appendPropertySetValue(
												xAdditionalPropSet,
												rProp ) )
					{
						// Append empty entry.
						xRow->appendVoid( rProp );
					}
				}
				else
				{
					// Append empty entry.
					xRow->appendVoid( rProp );
				}
			}
		}
	}
	else
	{
		// Append all Core Properties.
		xRow->appendString (
            beans::Property( rtl::OUString::createFromAscii( "ContentType" ),
					  -1,
                      getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
                      beans::PropertyAttribute::BOUND
                        | beans::PropertyAttribute::READONLY ),
			rData->m_sContentType );
=====================================================================
Found a 25 line (113 tokens) duplication in the following files: 
Starting at line 930 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/filrset.cxx
Starting at line 625 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpresultsetbase.cxx

void SAL_CALL ResultSetBase::removePropertyChangeListener(
	const rtl::OUString& aPropertyName,
	const uno::Reference< beans::XPropertyChangeListener >& aListener )
	throw( beans::UnknownPropertyException,
		   lang::WrappedTargetException,
		   uno::RuntimeException)
{
	if( aPropertyName == rtl::OUString::createFromAscii( "IsRowCountFinal" ) &&
		m_pIsFinalListeners )
	{
		osl::MutexGuard aGuard( m_aMutex );
		m_pIsFinalListeners->removeInterface( aListener );
	}
	else if ( aPropertyName == rtl::OUString::createFromAscii( "RowCount" ) &&
			  m_pRowCountListeners )
	{
		osl::MutexGuard aGuard( m_aMutex );
		m_pRowCountListeners->removeInterface( aListener );
	}
	else
		throw beans::UnknownPropertyException();
}


void SAL_CALL ResultSetBase::addVetoableChangeListener(
=====================================================================
Found a 18 line (113 tokens) duplication in the following files: 
Starting at line 1091 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/bigint.cxx
Starting at line 1124 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/bigint.cxx

sal_Bool operator >(const BigInt& rVal1, const BigInt& rVal2 )
{
    if ( rVal1.bIsBig || rVal2.bIsBig )
    {
        BigInt nA, nB;
        nA.MakeBigInt( rVal1 );
        nB.MakeBigInt( rVal2 );
        if ( nA.bIsNeg == nB.bIsNeg )
        {
            if ( nA.nLen == nB.nLen )
            {
                int i;
                for ( i = nA.nLen - 1; i > 0 && nA.nNum[i] == nB.nNum[i]; i-- )
                {
                }

                if ( nA.bIsNeg )
                    return nA.nNum[i] < nB.nNum[i];
=====================================================================
Found a 18 line (113 tokens) duplication in the following files: 
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/unx.cxx
Starting at line 362 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/unx.cxx

DirEntry DirEntry::GetDevice() const
{
  DBG_CHKTHIS( DirEntry, ImpCheckDirEntry );

	DirEntry aPath( *this );
	aPath.ToAbs();

	struct stat buf;
	while (stat (ByteString(aPath.GetFull(), osl_getThreadTextEncoding()).GetBuffer(), &buf))
	{
		if (aPath.Level() <= 1)
			return String();
		aPath = aPath [1];
	}
	mymnttab &rMnt = mymnt::get();
	return ((buf.st_dev == rMnt.mountdevice ||
				GetMountEntry(buf.st_dev, &rMnt)) ? 
				    String( rMnt.mountpoint, osl_getThreadTextEncoding()) : 
=====================================================================
Found a 10 line (113 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrolbase.cxx
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrolbase.cxx

::com::sun::star::awt::Size UnoControlBase::Impl_calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize )
{
	::com::sun::star::awt::Size aSz;
	::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >  xP = ImplGetCompatiblePeer( sal_True );
	DBG_ASSERT( xP.is(), "Layout: No Peer!" );
	if ( xP.is() )
	{
		::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains > xL( xP, ::com::sun::star::uno::UNO_QUERY );
		if ( xL.is() )
			aSz = xL->calcAdjustedSize( rNewSize );
=====================================================================
Found a 18 line (113 tokens) duplication in the following files: 
Starting at line 408 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/index/swuiidxmrk.cxx
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/index/swuiidxmrk.cxx

	{
		sal_uInt16 nCnt = pSh->GetCrsrCnt();
		if (nCnt < 2)
		{
			bSelected = !pSh->HasSelection();
			aOrgStr = pSh->GetView().GetSelectionTextParam(sal_True, sal_False);
			aEntryED.SetText(aOrgStr);

			//alle gleichen Eintraege aufzunehmen darf nur im Body und auch da nur
			//bei vorhandener einfacher Selektion erlaubt werden
			const sal_uInt16 nFrmType = pSh->GetFrmType(0,sal_True);
			aApplyToAllCB.Show();
			aSearchCaseSensitiveCB.Show();
			aSearchCaseWordOnlyCB.Show();
			aApplyToAllCB.Enable(0 != aOrgStr.Len() &&
				0 == (nFrmType & ( FRMTYPE_HEADER | FRMTYPE_FOOTER | FRMTYPE_FLY_ANY )));
			SearchTypeHdl(&aApplyToAllCB);
		}
=====================================================================
Found a 17 line (113 tokens) duplication in the following files: 
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mailmergechildwindow.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/envelp/syncbtn.cxx

	pWindow = new SwSyncBtnDlg( pBindings, this, pParent);

	if (!pInfo->aSize.Width() || !pInfo->aSize.Height())
	{
        SwView* pActiveView = ::GetActiveView();
        if(pActiveView)
        {
            const SwEditWin &rEditWin = pActiveView->GetEditWin();
            pWindow->SetPosPixel(rEditWin.OutputToScreenPixel(Point(0, 0)));
        }
        else
            pWindow->SetPosPixel(pParent->OutputToScreenPixel(Point(0, 0)));
		pInfo->aPos = pWindow->GetPosPixel();
		pInfo->aSize = pWindow->GetSizePixel();
	}

	((SwSyncBtnDlg *)pWindow)->Initialize(pInfo);
=====================================================================
Found a 14 line (113 tokens) duplication in the following files: 
Starting at line 952 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx
Starting at line 975 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/dbmgr.cxx

    uno::Reference< XColumnsSupplier> xColsSupp = SwNewDBMgr::GetColumnSupplier(xConnection, rTableName);
	if(xColsSupp.is())
	{
        uno::Reference<XNameAccess> xCols = xColsSupp->getColumns();
        const Sequence<rtl::OUString> aColNames = xCols->getElementNames();
        const rtl::OUString* pColNames = aColNames.getConstArray();
		for(int nCol = 0; nCol < aColNames.getLength(); nCol++)
		{
			pListBox->InsertEntry(pColNames[nCol]);
		}
        ::comphelper::disposeComponent( xColsSupp );
    }
	return(TRUE);
}
=====================================================================
Found a 18 line (113 tokens) duplication in the following files: 
Starting at line 714 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx
Starting at line 843 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx

		const OUString& rStyleName,
		sal_Int32 nWidth, sal_Int32 nHeight )
{
    // this method will modify the document directly -> lock SolarMutex
	vos::OGuard aGuard(Application::GetSolarMutex());

	uno::Reference < XPropertySet > xPropSet;
	uno::Reference<XUnoTunnel> xCrsrTunnel( GetCursor(), UNO_QUERY );
	ASSERT( xCrsrTunnel.is(), "missing XUnoTunnel for Cursor" );
	OTextCursorHelper *pTxtCrsr =
				(OTextCursorHelper*)xCrsrTunnel->getSomething(
											OTextCursorHelper::getUnoTunnelId() );
	ASSERT( pTxtCrsr, "SwXTextCursor missing" );
	SwDoc *pDoc = pTxtCrsr->GetDoc();

	SfxItemSet aItemSet( pDoc->GetAttrPool(), RES_FRMATR_BEGIN,
						 RES_FRMATR_END );
    lcl_putHeightAndWidth( aItemSet, nHeight, nWidth);
=====================================================================
Found a 23 line (113 tokens) duplication in the following files: 
Starting at line 558 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx
Starting at line 727 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx

	SwHoriOrient eHoriOri = HORI_NONE;

	// Eine neue Command-List anlegen
	if( pAppletImpl )
		delete pAppletImpl;
	pAppletImpl = new SwApplet_Impl( pDoc->GetAttrPool(), RES_FRMATR_BEGIN, RES_FRMATR_END-1 );

	const HTMLOptions *pOptions = GetOptions();
	for( USHORT i = pOptions->Count(); i; )
	{
		const HTMLOption *pOption = (*pOptions)[--i];
		switch( pOption->GetToken() )
		{
		case HTML_O_ID:
			aId = pOption->GetString();
			break;
		case HTML_O_STYLE:
			aStyle = pOption->GetString();
			break;
		case HTML_O_CLASS:
			aClass = pOption->GetString();
			break;
		case HTML_O_CODEBASE:
=====================================================================
Found a 16 line (113 tokens) duplication in the following files: 
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoftn.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unorefmk.cxx

void SwXReferenceMark::attachToRange(const uno::Reference< text::XTextRange > & xTextRange)
				throw( lang::IllegalArgumentException, uno::RuntimeException )
{
	if(!m_bIsDescriptor)
		throw uno::RuntimeException();
	uno::Reference<lang::XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}
	SwDoc* pDocument = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;
=====================================================================
Found a 24 line (113 tokens) duplication in the following files: 
Starting at line 2046 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accmap.cxx
Starting at line 2077 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accmap.cxx

    mpPreview->InvalidateSelection( GetShell()->GetLayout()->GetPageByPageNum( nSelPage ) );

	uno::Reference < XAccessible > xOldAcc;
	uno::Reference < XAccessible > xAcc;
	{
		vos::OGuard aGuard( maMutex );

		xOldAcc = mxCursorContext;

		const SwPageFrm *pSelPage = mpPreview->GetSelPage();
		if( pSelPage && mpFrmMap )
		{
			SwAccessibleContextMap_Impl::iterator aIter =
				mpFrmMap->find( pSelPage );
			if( aIter != mpFrmMap->end() )
				xAcc = (*aIter).second;
		}
	}

	if( xOldAcc.is() && xOldAcc != xAcc )
		InvalidateCursorPosition( xOldAcc );
	if( xAcc.is() )
		InvalidateCursorPosition( xAcc );
}
=====================================================================
Found a 13 line (113 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		LINKTARGET_PROPERTIES
		SHADOW_PROPERTIES
		TEXT_PROPERTIES
		// #FontWork#
		FONTWORK_PROPERTIES
		CUSTOMSHAPE_PROPERTIES
		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return aTextShapePropertyMap_Impl;
=====================================================================
Found a 16 line (113 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx

			aEndPos = basegfx::B2DPoint(aRange.getMinX(), aRange.getMinY());

			if(rG.aGradient.GetBorder())
			{
				basegfx::B2DVector aFullVec(aStartPos - aEndPos);
				const double fLen = (aFullVec.getLength() * (100.0 - (double)rG.aGradient.GetBorder())) / 100.0;
				aFullVec.normalize();
				aStartPos = aEndPos + (aFullVec * fLen);
			}
			
			if(rG.aGradient.GetAngle())
			{
				const double fAngle = (double)rG.aGradient.GetAngle() * (F_PI180 / 10.0);
				basegfx::B2DHomMatrix aTransformation;

				aTransformation.translate(-aEndPos.getX(), -aEndPos.getY());
=====================================================================
Found a 19 line (113 tokens) duplication in the following files: 
Starting at line 1305 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/page.cxx
Starting at line 1336 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/page.cxx

	nWhich = GetWhich( SID_ATTR_PAGE_FOOTERSET );

	if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
	{
		const SvxSetItem& rSetItem =
			(const SvxSetItem&)rSet.Get( nWhich, FALSE );
		const SfxItemSet& rTmpSet = rSetItem.GetItemSet();
		const SfxBoolItem& rOn =
			(const SfxBoolItem&)rTmpSet.Get( GetWhich( SID_ATTR_PAGE_ON ) );

		if ( rOn.GetValue() )
		{
			nWhich = GetWhich( SID_ATTR_BRUSH );

			if ( rTmpSet.GetItemState( nWhich ) == SFX_ITEM_SET )
			{
				const SvxBrushItem& rItem =
					(const SvxBrushItem&)rTmpSet.Get( nWhich );
				aBspWin.SetFtColor( rItem.GetColor() );
=====================================================================
Found a 18 line (113 tokens) duplication in the following files: 
Starting at line 803 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/hdft.cxx
Starting at line 1399 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/page.cxx

	const SvxSetItem* pSetItem = 0;

	// Kopfzeilen-Attribute auswerten

	if ( SFX_ITEM_SET ==
		 rSet.GetItemState( GetWhich( SID_ATTR_PAGE_HEADERSET ),
							FALSE, (const SfxPoolItem**)&pSetItem ) )
	{
		const SfxItemSet& rHeaderSet = pSetItem->GetItemSet();
		const SfxBoolItem& rHeaderOn =
			(const SfxBoolItem&)rHeaderSet.Get( GetWhich( SID_ATTR_PAGE_ON ) );

		if ( rHeaderOn.GetValue() )
		{
			const SvxSizeItem& rSize = (const SvxSizeItem&)
				rHeaderSet.Get( GetWhich( SID_ATTR_PAGE_SIZE ) );
			const SvxULSpaceItem& rUL = (const SvxULSpaceItem&)
				rHeaderSet.Get( GetWhich( SID_ATTR_ULSPACE ) );
=====================================================================
Found a 18 line (113 tokens) duplication in the following files: 
Starting at line 658 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/hdft.cxx
Starting at line 688 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/hdft.cxx

	nWhich = GetWhich( SID_ATTR_PAGE_FOOTERSET );

	if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
	{
		const SvxSetItem& rSetItem =
			(const SvxSetItem&)rSet.Get( nWhich, FALSE );
		const SfxItemSet& rTmpSet = rSetItem.GetItemSet();
		const SfxBoolItem& rOn =
			(const SfxBoolItem&)rTmpSet.Get( GetWhich( SID_ATTR_PAGE_ON ) );

		if ( rOn.GetValue() )
		{
			nWhich = GetWhich( SID_ATTR_BRUSH );

			if ( rTmpSet.GetItemState( nWhich ) == SFX_ITEM_SET )
			{
				const SvxBrushItem& rItem = (const SvxBrushItem&)rTmpSet.Get( nWhich );
				aBspWin.SetFtColor( rItem.GetColor() );
=====================================================================
Found a 19 line (113 tokens) duplication in the following files: 
Starting at line 1179 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc1/inettype.cxx
Starting at line 1224 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc1/inettype.cxx

	rType = UniString(pToken, sal::static_int_cast< xub_StrLen >(p - pToken));
	if (bDowncase)
		rType.ToLowerAscii();

	p = INetMIME::skipLinearWhiteSpaceComment(p, pEnd);
	if (p == pEnd || *p++ != '/')
		return false;

	p = INetMIME::skipLinearWhiteSpaceComment(p, pEnd);
	pToken = p;
	bDowncase = false;
	while (p != pEnd && INetMIME::isTokenChar(*p))
	{
		bDowncase = bDowncase || INetMIME::isUpperCase(*p);
		++p;
	}
	if (p == pToken)
		return false;
	rSubType = UniString(
=====================================================================
Found a 22 line (113 tokens) duplication in the following files: 
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/transfer.cxx
Starting at line 317 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/transfer.cxx

            else if( SotExchange::GetFormatDataFlavor( SOT_FORMATSTR_ID_WMF, aSubstFlavor ) &&
                     TransferableDataHelper::IsEqual( aSubstFlavor, rFlavor ) &&
                     SotExchange::GetFormatDataFlavor( FORMAT_GDIMETAFILE, aSubstFlavor ) )
            {
			    GetData( aSubstFlavor );

			    if( maAny.hasValue() )
			    {
				    Sequence< sal_Int8 > aSeq;

				    if( maAny >>= aSeq )
				    {
					    SvMemoryStream*	pSrcStm = new SvMemoryStream( (char*) aSeq.getConstArray(), aSeq.getLength(), STREAM_WRITE | STREAM_TRUNC );
					    GDIMetaFile		aMtf;

					    *pSrcStm >> aMtf;
					    delete pSrcStm;

					    Graphic			aGraphic( aMtf );
					    SvMemoryStream	aDstStm( 65535, 65535 );

					    if( GraphicConverter::Export( aDstStm, aGraphic, CVT_WMF ) == ERRCODE_NONE )
=====================================================================
Found a 22 line (113 tokens) duplication in the following files: 
Starting at line 3124 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/edit/texteng.cxx
Starting at line 1859 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit2.cxx

        String aText( *pParaPortion->GetNode() );

        //
        // Bidi functions from icu 2.0
        //
        UErrorCode nError = U_ZERO_ERROR;
        UBiDi* pBidi = ubidi_openSized( aText.Len(), 0, &nError );
        nError = U_ZERO_ERROR;

        ubidi_setPara( pBidi, aText.GetBuffer(), aText.Len(), nDefaultDir, NULL, &nError );
        nError = U_ZERO_ERROR;

        long nCount = ubidi_countRuns( pBidi, &nError );

        int32_t nStart = 0;
        int32_t nEnd;
        UBiDiLevel nCurrDir;

        for ( USHORT nIdx = 0; nIdx < nCount; ++nIdx )
        {
            ubidi_getLogicalRun( pBidi, nStart, &nEnd, &nCurrDir );
            rInfos.Insert( WritingDirectionInfo( nCurrDir, (USHORT)nStart, (USHORT)nEnd ), rInfos.Count() );
=====================================================================
Found a 12 line (113 tokens) duplication in the following files: 
Starting at line 1115 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/headbar.cxx
Starting at line 321 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/fmcomp/fmgridcl.cxx

	sal_uInt16 nItemId = GetItemId( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ) );
	if ( nItemId )
	{
		if ( rHEvt.GetMode() & (HELPMODE_QUICK | HELPMODE_BALLOON) )
		{
			Rectangle aItemRect = GetItemRect( nItemId );
			Point aPt = OutputToScreenPixel( aItemRect.TopLeft() );
			aItemRect.Left()   = aPt.X();
			aItemRect.Top()    = aPt.Y();
			aPt = OutputToScreenPixel( aItemRect.BottomRight() );
			aItemRect.Right()  = aPt.X();
			aItemRect.Bottom() = aPt.Y();
=====================================================================
Found a 11 line (113 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/cjkoptions.cxx
Starting at line 297 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/ctloptions.cxx

        pNames[5] = ASCII_STR("CTLSequenceCheckingTypeAndReplace");
        EnableNotification( rPropertyNames );
    }
    Sequence< Any > aValues = GetProperties( rPropertyNames );
    Sequence< sal_Bool > aROStates = GetReadOnlyStates( rPropertyNames );
    const Any* pValues = aValues.getConstArray();
    const sal_Bool* pROStates = aROStates.getConstArray();
    DBG_ASSERT( aValues.getLength() == rPropertyNames.getLength(), "GetProperties failed" );
    DBG_ASSERT( aROStates.getLength() == rPropertyNames.getLength(), "GetReadOnlyStates failed" );
    if ( aValues.getLength() == rPropertyNames.getLength() && aROStates.getLength() == rPropertyNames.getLength() )
	{
=====================================================================
Found a 19 line (113 tokens) duplication in the following files: 
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx
Starting at line 1847 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx

awt::Size SAL_CALL SmEditAccessible::getSize(  )
    throw (RuntimeException)
{
	vos::OGuard aGuard(Application::GetSolarMutex());
    if (!pWin)
        throw RuntimeException();
    DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(),
            "mismatch of window parent and accessible parent" );

    Size aSz( pWin->GetSizePixel() );
#if OSL_DEBUG_LEVEL > 1
    awt::Rectangle aRect( lcl_GetBounds( pWin ) );
    Size aSz2( aRect.Width, aRect.Height );
    DBG_ASSERT( aSz == aSz2, "mismatch in width" );
#endif
    return awt::Size( aSz.Width(), aSz.Height() );
}

void SAL_CALL SmEditAccessible::grabFocus(  )
=====================================================================
Found a 25 line (113 tokens) duplication in the following files: 
Starting at line 408 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/shapes/drawshape.cxx
Starting at line 468 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/shapes/drawshape.cxx

            mnCurrMtfLoadFlags( MTF_LOAD_NONE ),
            maCurrentShapeUnitBounds(),
            mnPriority( nPrio ), // TODO(F1): When ZOrder someday becomes usable: make this ( getAPIShapePrio( xShape ) ),
            maBounds( getAPIShapeBounds( xShape ) ),
            mpAttributeLayer(),
            mpIntrinsicAnimationActivity(),
            mnAttributeTransformationState(0),
            mnAttributeClipState(0),
            mnAttributeAlphaState(0),
            mnAttributePositionState(0),
            mnAttributeContentState(0),
            maViewShapes(),
            mxComponentContext( rContext.mxComponentContext ),
            maHyperlinkIndices(),
            maHyperlinkRegions(),
            maSubsetting(),
            mnIsAnimatedCount(0),
            mnAnimationLoopCount(0),
            meCycleMode(CYCLE_LOOP),
            mbIsVisible( true ),
            mbForceUpdate( false ),
            mbAttributeLayerRevoked( false ),
            mbDrawingLayerAnim( false )
        {
            ENSURE_AND_THROW( rGraphic.IsAnimated(),
=====================================================================
Found a 19 line (113 tokens) duplication in the following files: 
Starting at line 1614 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/sfxbasemodel.cxx
Starting at line 1649 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/sfxbasemodel.cxx

void SAL_CALL SfxBaseModel::load(   const uno::Sequence< beans::PropertyValue >& seqArguments )
		throw (::com::sun::star::frame::DoubleInitializationException,
               ::com::sun::star::io::IOException,
			   ::com::sun::star::uno::RuntimeException,
			   ::com::sun::star::uno::Exception)
{
	// object already disposed?
    ::vos::OGuard aGuard( Application::GetSolarMutex() );
	if ( impl_isDisposed() )
        throw lang::DisposedException();

	// the object shell should exist always
	DBG_ASSERT( m_pData->m_pObjectShell.Is(), "Model is useless without an ObjectShell" );

	if ( m_pData->m_pObjectShell.Is() )
	{
		if( m_pData->m_pObjectShell->GetMedium() )
			// if a Medium is present, the document is already initialized
			throw DOUBLEINITIALIZATIONEXCEPTION();
=====================================================================
Found a 17 line (113 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviewsc.cxx
Starting at line 694 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/drwbassh.cxx

				SdrObject* pSelected = pSdrView->GetMarkedObjectByIndex(0L);
				OSL_ENSURE(pSelected, "DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
				String aTitle(pSelected->GetTitle());
				String aDescription(pSelected->GetDescription());

				SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
				OSL_ENSURE(pFact, "Dialogdiet fail!");
				AbstractSvxObjectTitleDescDialog* pDlg = pFact->CreateSvxObjectTitleDescDialog(NULL, aTitle, aDescription, RID_SVXDLG_OBJECT_TITLE_DESC);
				OSL_ENSURE(pDlg, "Dialogdiet fail!");
				
				if(RET_OK == pDlg->Execute())
				{
					pDlg->GetTitle(aTitle);
					pDlg->GetDescription(aDescription);

					pSelected->SetTitle(aTitle);
					pSelected->SetDescription(aDescription);
=====================================================================
Found a 19 line (113 tokens) duplication in the following files: 
Starting at line 1054 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/PrintManager.cxx
Starting at line 1250 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/PrintManager.cxx

        eOrientation = ORIENTATION_LANDSCAPE;

	if ( !rInfo.mrPrinter.SetOrientation(eOrientation) &&
		(!rInfo.mpPrintOpts || rInfo.mpPrintOpts->GetOptionsPrint().IsWarningOrientation()) )
	{
		// eine Warnung anzeigen
		WarningBox aWarnBox(
            rInfo.mrViewShell.GetActiveWindow(),
            (WinBits)(WB_OK_CANCEL | WB_DEF_CANCEL),
            String(SdResId(STR_WARN_PRINTFORMAT_FAILURE)));
		nDlgResult = aWarnBox.Execute();
	}

	if ( nDlgResult == RET_OK )
	{
		const MapMode   aOldMap( rInfo.mrPrinter.GetMapMode() );
		MapMode         aMap( aOldMap );
		Point           aPageOfs( rInfo.mrPrinter.GetPageOffset() );
		DrawView* pPrintView;
=====================================================================
Found a 33 line (113 tokens) duplication in the following files: 
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/dlg/sddlgfact.cxx
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgfact.cxx

    return 0L;
}

//////////////////////////////////////////////////////////////////////////

void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
{
	pDlg->SetCurPageId( nId );
}

const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
{
	return pDlg->GetOutputItemSet();
}
//add by CHINA001
const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
{
	return pDlg->GetInputRanges( pItem );
}
//add by CHINA001
void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
	 pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractTabDialog_Impl::SetText( const XubString& rStr )
{
	pDlg->SetText( rStr );
}
String AbstractTabDialog_Impl::GetText() const
{
	return pDlg->GetText();
}
=====================================================================
Found a 11 line (113 tokens) duplication in the following files: 
Starting at line 527 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/shapeuno.cxx
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/shapeuno.cxx

                                        aPoint.Y = nPos;
                                        xShape->setPosition(aPoint);
                                        pDocSh->SetModified();
                                    }
                                    else if (ScDrawLayer::GetAnchor(pObj) == SCA_CELL)
                                    {
                                        awt::Size aUnoSize;
                                        awt::Point aCaptionPoint;
                                        ScRange aRange;
                                        awt::Point aUnoPoint(lcl_GetRelativePos( xShape, pDoc, nTab, aRange, aUnoSize, aCaptionPoint ));
                                        Rectangle aRect(pDoc->GetMMRect( aRange.aStart.Col(), aRange.aStart.Row(), aRange.aEnd.Col(), aRange.aEnd.Row(), aRange.aStart.Tab() ));
=====================================================================
Found a 17 line (113 tokens) duplication in the following files: 
Starting at line 1346 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undodat.cxx
Starting at line 1418 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undodat.cxx

		pRedoDBData->GetArea( nTable, nCol1, nRow1, nCol2, nRow2 );
		ScUndoUtil::MarkSimpleBlock( pDocShell, nCol1, nRow1, nTable, nCol2, nRow2, nTable );
	}

// erack! it's broadcasted
//	pDoc->SetDirty();

	SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
	if ( nVisTab != nTab )
		pViewShell->SetTabNo( nTab );

	if (bMoveCells)
		pDocShell->PostPaint( 0,0,nTab, MAXCOL,MAXROW,nTab, PAINT_GRID );
	else
		pDocShell->PostPaint( aImportParam.nCol1,aImportParam.nRow1,nTab,
								nEndCol,nEndRow,nTab, PAINT_GRID );
	pDocShell->PostDataChanged();
=====================================================================
Found a 28 line (113 tokens) duplication in the following files: 
Starting at line 1384 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleText.cxx
Starting at line 1022 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/textuno.cxx

SvxTextForwarder* ScCellTextData::GetTextForwarder()
{
	if (!pEditEngine)
	{
		if ( pDocShell )
		{
			ScDocument* pDoc = pDocShell->GetDocument();
			pEditEngine = pDoc->CreateFieldEditEngine();
		}
		else
		{
			SfxItemPool* pEnginePool = EditEngine::CreatePool();
			pEnginePool->FreezeIdRanges();
			pEditEngine = new ScFieldEditEngine( pEnginePool, NULL, TRUE );
		}
		//	currently, GetPortions doesn't work if UpdateMode is FALSE,
		//	this will be fixed (in EditEngine) by src600
//		pEditEngine->SetUpdateMode( FALSE );
		pEditEngine->EnableUndo( FALSE );
		if (pDocShell)
			pEditEngine->SetRefDevice(pDocShell->GetRefDevice());
		else
			pEditEngine->SetRefMapMode( MAP_100TH_MM );
		pForwarder = new SvxEditEngineForwarder(*pEditEngine);
	}

	if (bDataValid)
		return pForwarder;
=====================================================================
Found a 17 line (113 tokens) duplication in the following files: 
Starting at line 479 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlwrap.cxx
Starting at line 729 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx

	uno::Reference< container::XChild > xChild( xModelComp, uno::UNO_QUERY );
	if( xChild.is() )
	{
		uno::Reference< beans::XPropertySet > xParentSet( xChild->getParent(), uno::UNO_QUERY );
		if( xParentSet.is() )
		{
			uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xParentSet->getPropertySetInfo() );
			OUString sPropName( RTL_CONSTASCII_USTRINGPARAM("BuildId" ) );
			if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(sPropName) )
			{
				xInfoSet->setPropertyValue( sPropName, xParentSet->getPropertyValue(sPropName) );
			}
		}
	}

	// try to get an XStatusIndicator from the Medium
	uno::Reference<task::XStatusIndicator> xStatusIndicator;
=====================================================================
Found a 29 line (113 tokens) duplication in the following files: 
Starting at line 3611 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3676 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

void ScInterpreter::ScPearson() 
{
	if ( !MustHaveParamCount( GetByte(), 2 ) )
		return;
	ScMatrixRef pMat1 = GetMatrix();
	ScMatrixRef pMat2 = GetMatrix();
	if (!pMat1 || !pMat2)
	{
		SetIllegalParameter();
		return;
	}
	SCSIZE nC1, nC2;
	SCSIZE nR1, nR2;
	pMat1->GetDimensions(nC1, nR1);
	pMat2->GetDimensions(nC2, nR2);
	if (nR1 != nR2 || nC1 != nC2)
	{
		SetIllegalParameter();
		return;
	}
    /* #i78250#
     * (sum((X-MeanX)(Y-MeanY)))/N equals (SumXY)/N-MeanX*MeanY mathematically,
     * but the latter produces wrong results if the absolute values are high,
     * for example above 10^8
     */
	double fCount           = 0.0;
	double fSumX            = 0.0;
	double fSumY            = 0.0;
	double fSumDeltaXDeltaY = 0.0; // sum of (ValX-MeanX)*(ValY-MeanY)
=====================================================================
Found a 34 line (113 tokens) duplication in the following files: 
Starting at line 4083 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 4250 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

            break;
			default:
			{
				fVal = GetDouble();
				bIsString = FALSE;
			}
		}
        SCCOL nCol1;
        SCROW nRow1;
        SCTAB nTab1;
        SCCOL nCol2;
        SCROW nRow2;
        SCTAB nTab2;
		switch ( GetStackType() )
		{
			case svDoubleRef :
				PopDoubleRef( nCol1, nRow1, nTab1, nCol2, nRow2, nTab2 );
			break;
			case svSingleRef :
				PopSingleRef( nCol1, nRow1, nTab1 );
				nCol2 = nCol1;
				nRow2 = nRow1;
				nTab2 = nTab1;
			break;
			default:
				SetIllegalParameter();
				return ;
		}
		if ( nTab1 != nTab2 )
		{
			SetIllegalParameter();
			return;
		}
		if (nParamCount != 3)
=====================================================================
Found a 22 line (113 tokens) duplication in the following files: 
Starting at line 1101 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx
Starting at line 1256 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx

USHORT ScDetectiveFunc::InsertErrorLevel( SCCOL nCol, SCROW nRow, ScDetectiveData& rData,
											USHORT nLevel )
{
	ScBaseCell* pCell;
	pDoc->GetCell( nCol, nRow, nTab, pCell );
	if (!pCell)
		return DET_INS_EMPTY;
	if (pCell->GetCellType() != CELLTYPE_FORMULA)
		return DET_INS_EMPTY;

	ScFormulaCell* pFCell = (ScFormulaCell*)pCell;
	if (pFCell->IsRunning())
		return DET_INS_CIRCULAR;

	if (pFCell->GetDirty())
		pFCell->Interpret();				// nach SetRunning geht's nicht mehr!
	pFCell->SetRunning(TRUE);

	USHORT nResult = DET_INS_EMPTY;

	ScDetectiveRefIter aIter( (ScFormulaCell*) pCell );
    ScRange aRef;
=====================================================================
Found a 18 line (113 tokens) duplication in the following files: 
Starting at line 1680 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx
Starting at line 1722 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx
Starting at line 1764 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx

                    const uno::Sequence<rtl::OUString>* pRowArr = pRowSeq->getConstArray();
                    long nMaxColCount = 0;
                    long nCol, nRow;
                    for (nRow=0; nRow<nRowCount; nRow++)
                    {
                        long nTmp = pRowArr[nRow].getLength();
                        if ( nTmp > nMaxColCount )
                            nMaxColCount = nTmp;
                    }
                    if ( nMaxColCount && nRowCount )
                    {
                        pMatrix = new ScMatrix(
                                static_cast<SCSIZE>(nMaxColCount),
                                static_cast<SCSIZE>(nRowCount) );
                        for (nRow=0; nRow<nRowCount; nRow++)
                        {
                            long nColCount = pRowArr[nRow].getLength();
                            const rtl::OUString* pColArr = pRowArr[nRow].getConstArray();
=====================================================================
Found a 20 line (113 tokens) duplication in the following files: 
Starting at line 1516 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column3.cxx
Starting at line 1541 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column3.cxx

			ScBaseCell* pCell = pItems[nDownIndex].pCell;
			CellType eType = pCell->GetCellType();
			if (eType == CELLTYPE_STRING || eType == CELLTYPE_EDIT)		// nur Strings interessieren
			{
				if (eType == CELLTYPE_STRING)
					((ScStringCell*)pCell)->GetString(aString);
				else
					((ScEditCell*)pCell)->GetString(aString);

				TypedStrData* pData = new TypedStrData(aString);
				if ( !rStrings.Insert( pData ) )
					delete pData;											// doppelt
				else if ( bLimit && rStrings.GetCount() >= DATENT_MAX )
					break;													// Maximum erreicht
				bFound = TRUE;

				if ( bLimit )
					if (++nCells >= DATENT_SEARCH)
						break;									// genug gesucht
			}
=====================================================================
Found a 8 line (113 tokens) duplication in the following files: 
Starting at line 454 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx
Starting at line 1151 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/textenc/rtl_textcvt.cxx

                0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x2019,
                0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
                0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
                0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
                0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
                0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
                0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
                0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
=====================================================================
Found a 22 line (113 tokens) duplication in the following files: 
Starting at line 549 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/socket.c
Starting at line 519 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/socket.cxx

	oslSocketAddr pAddr = __osl_createSocketAddr();
	switch( family )
	{
	case osl_Socket_FamilyInet:
	{
		struct sockaddr_in* pInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr);

		pInetAddr->sin_family = FAMILY_TO_NATIVE(osl_Socket_FamilyInet);
		pInetAddr->sin_addr.s_addr = nAddr;
		pInetAddr->sin_port = (sal_uInt16)(port&0xffff);
		break;
   	}   	
	default:
		pAddr->m_sockaddr.sa_family = FAMILY_TO_NATIVE(family);
	}
	return pAddr;
}

static oslSocketAddr __osl_createSocketAddrFromSystem( struct sockaddr *pSystemSockAddr )
{
	oslSocketAddr pAddr = __osl_createSocketAddr();
	memcpy( &(pAddr->m_sockaddr), pSystemSockAddr, sizeof( sockaddr ) );
=====================================================================
Found a 23 line (113 tokens) duplication in the following files: 
Starting at line 538 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx
Starting at line 646 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx

                    switch( nSubTableFormat )
                    {
                        case 0:
                        {
                            // Grab the # of kern pairs but skip over the:
                            //   searchRange
                            //   entrySelector
                            //   rangeShift
                            sal_uInt16 nPairs = getUInt16BE( pTable );
                            pTable += 6;

                            for( int n = 0; n < nPairs; n++ )
                            {
                                sal_uInt16 nLeftGlyph   = getUInt16BE( pTable );
                                sal_uInt16 nRightGlyph  = getUInt16BE( pTable );
                                sal_Int16  nKern         = (sal_Int16)getUInt16BE( pTable );

                                left = aGlyphMap.find( nLeftGlyph );
                                right = aGlyphMap.find( nRightGlyph );
                                if( left != aGlyphMap.end() && right != aGlyphMap.end() )
                                {
                                    aPair.first     = left->second;
                                    aPair.second    = right->second;
=====================================================================
Found a 34 line (113 tokens) duplication in the following files: 
Starting at line 3314 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 5037 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 1067 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx

			throw container::NoSuchElementException(); // TODO:
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( container::NoSuchElementException& )
	{
		throw;
	}
	catch( container::ElementExistException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't copy raw stream" ),
=====================================================================
Found a 27 line (113 tokens) duplication in the following files: 
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/libhnj/hyphen.c
Starting at line 701 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/libhnj/hyphen.c

	}

      /* KBH: we need this to make sure we keep looking in a word */
      /* for patterns even if the current character is not known in state 0 */
      /* since patterns for hyphenation may occur anywhere in the word */
      try_next_letter: ;

    }
#ifdef VERBOSE
  for (i = 0; i < j; i++)
    putchar (hyphens[i]);
  putchar ('\n');
#endif

  for (i = 0; i < j - 4; i++)
#if 0
    if (hyphens[i + 1] & 1)
      hyphens[i] = '-';
#else
    hyphens[i] = hyphens[i + 1];
#endif
  hyphens[0] = '0';
  for (; i < word_size; i++)
    hyphens[i] = '0';
  hyphens[word_size] = '\0';

  if (prep_word != prep_word_buf) {
=====================================================================
Found a 16 line (113 tokens) duplication in the following files: 
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx
Starting at line 562 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx

    virtual Reference < XInputStream > SAL_CALL getInputStream(void)
		throw (RuntimeException);

public: // XConnectable
    virtual void SAL_CALL setPredecessor(const Reference < XConnectable > & aPredecessor)
		throw (RuntimeException);
    virtual Reference < XConnectable > SAL_CALL getPredecessor(void)
		throw (RuntimeException);
    virtual void SAL_CALL setSuccessor(const Reference < XConnectable > & aSuccessor)
		throw (RuntimeException);
    virtual Reference < XConnectable > SAL_CALL getSuccessor(void) throw (RuntimeException);

public: // XServiceInfo
    OUString                     SAL_CALL getImplementationName() throw ();
    Sequence< OUString >         SAL_CALL getSupportedServiceNames(void) throw ();
    sal_Bool                         SAL_CALL  supportsService(const OUString& ServiceName) throw ();
=====================================================================
Found a 4 line (113 tokens) duplication in the following files: 
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1262 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 6 line (113 tokens) duplication in the following files: 
Starting at line 1114 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0bc0 - 0bcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bd0 - 0bdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0be0 - 0bef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bf0 - 0bff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c00 - 0c0f
=====================================================================
Found a 57 line (113 tokens) duplication in the following files: 
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 642 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/window/salframe.cxx

        kThemePointingHandCursor, // POINTER_REFHAND
        0, // POINTER_PEN
        0, // POINTER_MAGNIFY
        0, // POINTER_FILL
        0, // POINTER_ROTATE
        0, // POINTER_HSHEAR
        0, // POINTER_VSHEAR
        0, // POINTER_MIRROR
        0, // POINTER_CROOK
        0, // POINTER_CROP
        0, // POINTER_MOVEPOINT
        0, // POINTER_MOVEBEZIERWEIGHT
        0, // POINTER_MOVEDATA
        0, // POINTER_COPYDATA
        0, // POINTER_LINKDATA
        0, // POINTER_MOVEDATALINK
        0, // POINTER_COPYDATALINK
        0, // POINTER_MOVEFILE
        0, // POINTER_COPYFILE
        0, // POINTER_LINKFILE
        0, // POINTER_MOVEFILELINK
        0, // POINTER_COPYFILELINK
        0, // POINTER_MOVEFILES
        0, // POINTER_COPYFILES
        0, // POINTER_NOTALLOWED
        0, // POINTER_DRAW_LINE
        0, // POINTER_DRAW_RECT
        0, // POINTER_DRAW_POLYGON
        0, // POINTER_DRAW_BEZIER
        0, // POINTER_DRAW_ARC
        0, // POINTER_DRAW_PIE
        0, // POINTER_DRAW_CIRCLECUT
        0, // POINTER_DRAW_ELLIPSE
        0, // POINTER_DRAW_FREEHAND
        0, // POINTER_DRAW_CONNECT
        0, // POINTER_DRAW_TEXT
        0, // POINTER_DRAW_CAPTION
        0, // POINTER_CHART
        0, // POINTER_DETECTIVE
        0, // POINTER_PIVOT_COL
        0, // POINTER_PIVOT_ROW
        0, // POINTER_PIVOT_FIELD
        0, // POINTER_CHAIN
        0, // POINTER_CHAIN_NOTALLOWED
        0, // POINTER_TIMEEVENT_MOVE
        0, // POINTER_TIMEEVENT_SIZE
        0, // POINTER_AUTOSCROLL_N
        0, // POINTER_AUTOSCROLL_S
        0, // POINTER_AUTOSCROLL_W
        0, // POINTER_AUTOSCROLL_E
        0, // POINTER_AUTOSCROLL_NW
        0, // POINTER_AUTOSCROLL_NE
        0, // POINTER_AUTOSCROLL_SW
        0, // POINTER_AUTOSCROLL_SE
        0, // POINTER_AUTOSCROLL_NS
        0, // POINTER_AUTOSCROLL_WE
        0, // POINTER_AUTOSCROLL_NSWE
=====================================================================
Found a 4 line (113 tokens) duplication in the following files: 
Starting at line 729 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 736 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3240 - 324f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3250 - 325f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3260 - 326f
    27,27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0,27,// 3270 - 327f
=====================================================================
Found a 4 line (113 tokens) duplication in the following files: 
Starting at line 608 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 759 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33a0 - 33af
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33b0 - 33bf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 33c0 - 33cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0, 0,// 33d0 - 33df
=====================================================================
Found a 4 line (113 tokens) duplication in the following files: 
Starting at line 576 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 736 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3240 - 324f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3250 - 325f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3260 - 326f
    27,27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0,27,// 3270 - 327f
=====================================================================
Found a 4 line (113 tokens) duplication in the following files: 
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 908 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,23,20,21,23,22, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// ff60 - ff6f
     4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// ff70 - ff7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// ff80 - ff8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4,// ff90 - ff9f
=====================================================================
Found a 5 line (113 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18b0 - 18bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18c0 - 18cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18d0 - 18df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18e0 - 18ef
=====================================================================
Found a 5 line (113 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
=====================================================================
Found a 9 line (113 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 22 line (113 tokens) duplication in the following files: 
Starting at line 1619 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx
Starting at line 1745 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx

			return;

		aIntTexSLine.Load(aIntTexSLeft.GetDoubleValue(), aIntTexSRight.GetDoubleValue(), nXLineDelta);
		aIntTexTLine.Load(aIntTexTLeft.GetDoubleValue(), aIntTexTRight.GetDoubleValue(), nXLineDelta);
		aIntDepthLine.Load(aIntDepthLeft.GetDoubleValue(), aIntDepthRight.GetDoubleValue(), nXLineDelta);

		// #96837#
		if(mbPTCorrection)
		{
			aRealDepthLine.Load(aRealDepthLeft.GetDoubleValue(), aRealDepthRight.GetDoubleValue(), nXLineDelta);
		}

		while(nXLineDelta--)
		{
			// Werte vorbereiten
			sal_uInt32 nDepth = aIntDepthLine.GetUINT32Value();

			// Punkt ausgeben
			if(IsVisibleAndScissor(nXLineStart, nYPos, nDepth))
			{
				// Texturkoordinateninterpolation?
				Color aCol = rCol;
=====================================================================
Found a 20 line (113 tokens) duplication in the following files: 
Starting at line 584 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/addonstoolbarmanager.cxx
Starting at line 2062 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx

IMPL_LINK( ToolBarManager, DataChanged, DataChangedEvent*, pDataChangedEvent  )
{
	if ((( pDataChangedEvent->GetType() == DATACHANGED_SETTINGS	)	||
		(  pDataChangedEvent->GetType() == DATACHANGED_DISPLAY	))	&&
        ( pDataChangedEvent->GetFlags() & SETTINGS_STYLE		))
	{
		// Check if we need to get new images for normal/high contrast mode
		CheckAndUpdateImages();
	}

    for ( USHORT nPos = 0; nPos < m_pToolBar->GetItemCount(); ++nPos )
	{
        const USHORT nId = m_pToolBar->GetItemId(nPos);
        Window* pWindow = m_pToolBar->GetItemWindow( nId );
        if ( pWindow )
        {
            const DataChangedEvent& rDCEvt( *pDataChangedEvent );
            pWindow->DataChanged( rDCEvt );
        }
    }
=====================================================================
Found a 29 line (113 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/generic/fpicker.cxx
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/office/fps_office.cxx

		SvtFolderPicker::impl_getStaticSupportedServiceNames,
		cppu::createSingleComponentFactory, 0, 0
	},
	{ 0, 0, 0, 0, 0, 0 }
};

extern "C"
{
SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment (
	const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo (
	void * pServiceManager, void * pRegistryKey)
{
	return cppu::component_writeInfoHelper (
		pServiceManager, pRegistryKey, g_entries);
}

SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory (
	const sal_Char * pImplementationName, void * pServiceManager, void * pRegistryKey)
{
	return cppu::component_getFactoryHelper (
		pImplementationName, pServiceManager, pRegistryKey, g_entries);
}

} // extern "C"
=====================================================================
Found a 23 line (113 tokens) duplication in the following files: 
Starting at line 294 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/richtext/richtextcontrol.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/solar/component/navbarcontrol.cxx

                pPeer->release();

            // announce the peer to the base class
            setPeer( pPeer );

            // initialize ourself (and thus the peer) with the model properties
    		updateFromModel();

            Reference< XView >  xPeerView( getPeer(), UNO_QUERY );
            if ( xPeerView.is() )
            {
			    xPeerView->setZoom( maComponentInfos.nZoomX, maComponentInfos.nZoomY );
			    xPeerView->setGraphics( mxGraphics );
            }

            // a lot of initial settings from our component infos
	        setPosSize( maComponentInfos.nX, maComponentInfos.nY, maComponentInfos.nWidth, maComponentInfos.nHeight, PosSize::POSSIZE );

            pPeer->setVisible   ( maComponentInfos.bVisible && !mbDesignMode );
            pPeer->setEnable    ( maComponentInfos.bEnable                   );
            pPeer->setDesignMode( mbDesignMode                               );

            peerCreated();
=====================================================================
Found a 15 line (113 tokens) duplication in the following files: 
Starting at line 2256 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/DatabaseForm.cxx
Starting at line 2336 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/DatabaseForm.cxx

		aURL.Complete = aURLStr;
		xTransformer->parseStrict(aURL);

		Reference< XDispatch >  xDisp = Reference< XDispatchProvider > (xFrame,UNO_QUERY)->queryDispatch(aURL, aTargetName,
			FrameSearchFlag::SELF | FrameSearchFlag::PARENT | FrameSearchFlag::CHILDREN |
			FrameSearchFlag::SIBLINGS | FrameSearchFlag::CREATE | FrameSearchFlag::TASKS);

		if (xDisp.is())
		{
			Sequence<PropertyValue> aArgs(2);
			aArgs.getArray()[0].Name = ::rtl::OUString::createFromAscii("Referer");
			aArgs.getArray()[0].Value <<= aReferer;

			// build a sequence from the to-be-submitted string
			ByteString aSystemEncodedData(aData.getStr(), (sal_uInt16)aData.getLength(), osl_getThreadTextEncoding());
=====================================================================
Found a 39 line (113 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatecheckjob.cxx
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/feed/updatefeed.cxx

        UpdateInformationProvider::getServiceNames,
        cppu::createSingleComponentFactory,
        NULL,
        0
    },
	{ NULL, NULL, NULL, NULL, NULL, 0 }
} ;

//------------------------------------------------------------------------------

extern "C" void SAL_CALL 
component_getImplementationEnvironment( const sal_Char **aEnvTypeName, uno_Environment **) 
{
    *aEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}

//------------------------------------------------------------------------------

extern "C" sal_Bool SAL_CALL 
component_writeInfo(void *pServiceManager, void *pRegistryKey) 
{
    return cppu::component_writeInfoHelper(
        pServiceManager,
        pRegistryKey,
        kImplementations_entries
    );
}

//------------------------------------------------------------------------------

extern "C" void *
component_getFactory(const sal_Char *pszImplementationName, void *pServiceManager, void *pRegistryKey) 
{
    return cppu::component_getFactoryHelper(
        pszImplementationName,
        pServiceManager,
        pRegistryKey,
        kImplementations_entries) ;
}
=====================================================================
Found a 34 line (113 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/propctrlr/formmetadata.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/ui/inspection/metadata.cxx

    using namespace ::com::sun::star;

	//========================================================================
	//= OPropertyInfoImpl
	//========================================================================
	struct OPropertyInfoImpl
	{
		String			sName;
		String			sTranslation;
		sal_uInt32      nHelpId;
		sal_Int32       nId;
		sal_uInt16      nPos;
        sal_uInt32      nUIFlags;

		OPropertyInfoImpl(
						const ::rtl::OUString&		rName,
						sal_Int32					_nId,
						const String&				aTranslation,
						sal_uInt16					nPosId,
						sal_uInt32					nHelpId,
                        sal_uInt32                  _nUIFlags);
	};

	//------------------------------------------------------------------------
	OPropertyInfoImpl::OPropertyInfoImpl(const ::rtl::OUString& _rName, sal_Int32 _nId,
								   const String& aString, sal_uInt16 nP, sal_uInt32 nHid, sal_uInt32 _nUIFlags)
	   :sName(_rName)
	   ,sTranslation(aString)
	   ,nHelpId(nHid)
	   ,nId(_nId)
	   ,nPos(nP)
       ,nUIFlags(_nUIFlags)
	{
	}
=====================================================================
Found a 23 line (113 tokens) duplication in the following files: 
Starting at line 1121 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1512 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OCommonEmbeddedObject::storeOwn" );

	// during switching from Activated to Running and from Running to Loaded states the object will
	// ask container to store the object, the container has to make decision
	// to do so or not

	::osl::ResettableMutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_nObjectState == -1 )
	{
		// the object is still not loaded
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Can't store object without persistence!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	if ( m_bReadOnly )
=====================================================================
Found a 15 line (113 tokens) duplication in the following files: 
Starting at line 474 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx
Starting at line 637 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx

    try 
    {
        Reference < XMultiServiceFactory > xFactory = ::comphelper::getProcessServiceFactory();
        // get configuration provider
        Reference< XMultiServiceFactory > theConfigProvider = Reference< XMultiServiceFactory >(
        xFactory->createInstance(sConfigSrvc), UNO_QUERY_THROW);
        Sequence< Any > theArgs(1);
        NamedValue v(OUString::createFromAscii("NodePath"), 
            makeAny(OUString::createFromAscii("org.openoffice.Setup/Office")));
        theArgs[0] <<= v;
        Reference< XPropertySet > pset = Reference< XPropertySet >(
            theConfigProvider->createInstanceWithArguments(sAccessSrvc, theArgs), UNO_QUERY_THROW);
        Any result = pset->getPropertyValue(OUString::createFromAscii("LicenseAcceptDate"));

        OUString aAcceptDate;
=====================================================================
Found a 25 line (113 tokens) duplication in the following files: 
Starting at line 3316 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/browser/unodatbr.cxx
Starting at line 665 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/tablespage.cxx

		SvLBoxString* pLeftTextItem = static_cast<SvLBoxString*>(pLHS->GetFirstItem(SV_ITEM_ID_LBOXSTRING));
		SvLBoxString* pRightTextItem = static_cast<SvLBoxString*>(pRHS->GetFirstItem(SV_ITEM_ID_LBOXSTRING));
		DBG_ASSERT(pLeftTextItem && pRightTextItem, "SbaTableQueryBrowser::OnTreeEntryCompare: invalid text items!");

		String sLeftText = pLeftTextItem->GetText();
		String sRightText = pRightTextItem->GetText();

		sal_Int32 nCompareResult = 0;	// equal by default

		if (m_xCollator.is())
		{
			try
			{
				nCompareResult = m_xCollator->compareString(sLeftText, sRightText);
			}
			catch(Exception&)
			{
			}
		}
		else
			// default behaviour if we do not have a collator -> do the simple string compare
			nCompareResult = sLeftText.CompareTo(sRightText);

		return nCompareResult;
	}
=====================================================================
Found a 13 line (113 tokens) duplication in the following files: 
Starting at line 469 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx

		if(sTableName.indexOf('.',0) != -1)
		{
			::rtl::OUString aCatlog,aSchema,aTable;
			::dbtools::qualifiedNameComponents(m_xMetaData,sTableName,aCatlog,aSchema,aTable,::dbtools::eInDataManipulation);
			sTableName = ::dbtools::composeTableName( m_xMetaData, aCatlog, aSchema, aTable, sal_True, ::dbtools::eInDataManipulation );
		}
		else
			sTableName = ::dbtools::quoteName(aQuote,sTableName);

		aAppendOrder =  sTableName;
		aAppendOrder += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("."));
		aAppendOrder += ::dbtools::quoteName(aQuote,sRealName);
	}
=====================================================================
Found a 15 line (113 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MConfigAccess.cxx
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MConfigAccess.cxx

			::rtl::OUString sPreferredName;

			Reference< XMultiServiceFactory > xFactory = getMozabServiceFactory();
			OSL_ENSURE( xFactory.is(), "getPreferredProfileName: invalid service factory!" );
			if ( xFactory.is() )
			{
				try
				{
					Reference< XPropertySet > xDriverNode = createDriverConfigNode( xFactory );
					Reference< XPropertySet > xMozPrefsNode;
					if ( xDriverNode.is() )
						xDriverNode->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("MozillaPreferences" )) ) >>= xMozPrefsNode;
					OSL_ENSURE( xMozPrefsNode.is(), "getPreferredProfileName: could not access the node for the mozilla preferences!" );
					if ( xMozPrefsNode.is() )
						xMozPrefsNode->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ProfileName" )) ) >>= sPreferredName;
=====================================================================
Found a 18 line (113 tokens) duplication in the following files: 
Starting at line 785 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JConnection.cxx
Starting at line 554 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx

		static const char * cSignature = "()Ljava/sql/SQLWarning;";
		static const char * cMethodName = "getWarnings";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = 			t.pEnv->CallObjectMethod( object, mID);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	if( out )
	{
		java_sql_SQLWarning_BASE		warn_base( t.pEnv, out );
		return makeAny(
            static_cast< starsdbc::SQLException >(
                java_sql_SQLWarning(warn_base,*(::cppu::OWeakObject*)this)));
=====================================================================
Found a 13 line (113 tokens) duplication in the following files: 
Starting at line 2038 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DTable.cxx
Starting at line 2109 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DTable.cxx

void ODbaseTable::dropColumn(sal_Int32 _nPos)
{
	String sTempName = createTempFile();

	ODbaseTable* pNewTable = new ODbaseTable(m_pTables,static_cast<ODbaseConnection*>(m_pConnection));
	Reference< XPropertySet > xHold = pNewTable;
	pNewTable->setPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME),makeAny(::rtl::OUString(sTempName)));
	{
		Reference<XAppend> xAppend(pNewTable->getColumns(),UNO_QUERY);
		sal_Bool bCase = getConnection()->getMetaData()->storesMixedCaseQuotedIdentifiers();
		// copy the structure
		for(sal_Int32 i=0;i < m_pColumns->getCount();++i)
		{
=====================================================================
Found a 25 line (113 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/PieChartTypeTemplate.cxx

        uno::makeAny( sal_False );
}

const uno::Sequence< Property > & lcl_GetPropertySequence()
{
    static uno::Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}
=====================================================================
Found a 36 line (113 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_textlayout.cxx
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/textlayout.cxx

{
    namespace
    {
        void setupLayoutMode( OutputDevice& rOutDev,
                              sal_Int8		nTextDirection )	
        {
            // TODO(P3): avoid if already correctly set
            ULONG nLayoutMode;
            switch( nTextDirection )
            {
                default:
                    nLayoutMode = 0;
                    break;
                case rendering::TextDirection::WEAK_LEFT_TO_RIGHT:
                    nLayoutMode = TEXT_LAYOUT_BIDI_LTR;
                    break;
                case rendering::TextDirection::STRONG_LEFT_TO_RIGHT:
                    nLayoutMode = TEXT_LAYOUT_BIDI_LTR | TEXT_LAYOUT_BIDI_STRONG;
                    break;
                case rendering::TextDirection::WEAK_RIGHT_TO_LEFT:
                    nLayoutMode = TEXT_LAYOUT_BIDI_RTL;
                    break;
                case rendering::TextDirection::STRONG_RIGHT_TO_LEFT:
                    nLayoutMode = TEXT_LAYOUT_BIDI_RTL | TEXT_LAYOUT_BIDI_STRONG;
                    break;
            }

            // set calculated layout mode. Origin is always the left edge,
            // as required at the API spec
            rOutDev.SetLayoutMode( nLayoutMode | TEXT_LAYOUT_TEXTORIGIN_LEFT );
        }
    }

    TextLayout::TextLayout( const rendering::StringContext& aText,
                            sal_Int8                        nDirection,
                            sal_Int64                       nRandomSeed,
=====================================================================
Found a 53 line (113 tokens) duplication in the following files: 
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx

				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			else // direct way
			{
				*(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
				// no longer needed
				TYPELIB_DANGER_RELEASE( pParamTypeDescr );
			}
		}
		pCppStack += sizeof(sal_Int32); // standard parameter length
  	}

// seems that EH registration for callVirtualMethod is not really
// necessary

// 	static unsigned long* pFrameInfo = NULL;

// 	if( ! pFrameInfo )
// 	{
// 		pFrameInfo = new unsigned long[ 7 ];
// 		pFrameInfo[ 0 ] = 0x40000000 | (((unsigned long)__Crun::ex_rethrow_q) >> 2);
// 		pFrameInfo[ 1 ] = 0x01000000;
// 		pFrameInfo[ 2 ] = (unsigned long)callVirtualMethodExceptionHandler;
// 		pFrameInfo[ 3 ] = 0;
//     		pFrameInfo[ 4 ] = (unsigned long)pFrameInfo - (unsigned long)callVirtualMethodExceptionHandler;
// 		pFrameInfo[ 5 ] = 0;
// 		pFrameInfo[ 6 ] = 0;
// 		_ex_register( pFrameInfo+2, 1 );
// 	}

 	try
  	{
		int nStackLongs = (pCppStack - pCppStackStart)/sizeof(sal_Int32);
		if( nStackLongs & 1 )
			// stack has to be 8 byte aligned
			nStackLongs++;

		callVirtualMethod(
			pAdjustedThisPtr,
			aVtableSlot.index,
			pCppReturn,
			pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart,
			nStackLongs
			);

		// NO exception occured...
		*ppUnoExc = 0;

		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
=====================================================================
Found a 19 line (113 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/uno/namecont.cxx
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/eventcontainer.cxx

void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aElement ) 
	throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException)
{
	Type aAnyType = aElement.getValueType();
	if( mType != aAnyType )
		throw IllegalArgumentException();

	NameContainerNameMap::iterator aIt = mHashMap.find( aName );
	if( aIt == mHashMap.end() )
	{
		throw NoSuchElementException();
	}
	sal_Int32 iHashResult = (*aIt).second;
	Any aOldElement = mValues.getConstArray()[ iHashResult ];
	mValues.getArray()[ iHashResult ] = aElement;

	// Fire event
	ContainerEvent aEvent;		
	aEvent.Source = *this;
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 469 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
            int fg[4];
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
            calc_type fg[4];
=====================================================================
Found a 7 line (112 tokens) duplication in the following files: 
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 834 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        if(fg[3] < 0) fg[3] = 0;

                        if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                        if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                        if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                        if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
                    }
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

            calc_type fg[4];

            const value_type *fg_ptr;
            color_type* span = base_type::allocator().span();

            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            do
            {
                base_type::interpolator().coordinates(&x, &y);

                x >>= image_subpixel_shift;
                y >>= image_subpixel_shift;

                if(x >= 0    && y >= 0 &&
                   x <= maxx && y <= maxy) 
                {
                    fg_ptr = (const value_type*)base_type::source_image().row(y) + (x << 2);
=====================================================================
Found a 26 line (112 tokens) duplication in the following files: 
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/encrypter.cxx
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/standalone/mscsfit/signer.cxx

		SecurityOperationStatus m_nStatus = xTemplate->getStatus();
		
		if (m_nStatus == SecurityOperationStatus_OPERATION_SUCCEEDED)
		{
			fprintf( stdout, "Operation succeeds.\n") ;
		}
		else
		{
			fprintf( stdout, "Operation fails.\n") ;
		}
	} catch( Exception& e ) {
		fprintf( stderr , "Error Message: %s\n" , OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() ) ;
		goto done ;
	}

	dstFile = fopen( argv[2], "w" ) ;
	if( dstFile == NULL ) {
		fprintf( stderr , "### Can not open file %s\n", argv[2] ) ;
		goto done ;
	}

	//Save result
	xmlDocDump( dstFile, doc ) ;

done:
	if( uri != NULL )
=====================================================================
Found a 5 line (112 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

 0x7e,0x7c,0x00,0x00,0x78,0x7c,0x00,0x00,0x70,0x38,0x00,0x00,0xc0,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 13 line (112 tokens) duplication in the following files: 
Starting at line 6833 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 6849 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

                      (eUnderline == UNDERLINE_BOLDDASHDOTDOT) )
            {
                sal_Int32 nDashLength = 4*nLineHeight;
                sal_Int32 nVoidLength = 2*nLineHeight;
                aLine.append( "[ " );
                m_aPages.back().appendMappedLength( nDashLength, aLine, false );
                aLine.append( ' ' );
                m_aPages.back().appendMappedLength( nVoidLength, aLine, false );
                aLine.append( ' ' );
                m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false );
                aLine.append( ' ' );
                m_aPages.back().appendMappedLength( nVoidLength, aLine, false );
                aLine.append( ' ' );
=====================================================================
Found a 22 line (112 tokens) duplication in the following files: 
Starting at line 5288 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev3.cxx
Starting at line 5433 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev3.cxx

    DBG_TRACE( "OutputDevice::SetTextLineColor()" );
    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );

    Color aColor( rColor );

    if ( mnDrawMode & ( DRAWMODE_BLACKTEXT | DRAWMODE_WHITETEXT |
                        DRAWMODE_GRAYTEXT | DRAWMODE_GHOSTEDTEXT |
                        DRAWMODE_SETTINGSTEXT ) )
    {
        if ( mnDrawMode & DRAWMODE_BLACKTEXT )
            aColor = Color( COL_BLACK );
        else if ( mnDrawMode & DRAWMODE_WHITETEXT )
            aColor = Color( COL_WHITE );
        else if ( mnDrawMode & DRAWMODE_GRAYTEXT )
        {
            const UINT8 cLum = aColor.GetLuminance();
            aColor = Color( cLum, cLum, cLum );
        }
        else if ( mnDrawMode & DRAWMODE_SETTINGSTEXT )
            aColor = GetSettings().GetStyleSettings().GetFontColor();

        if( (mnDrawMode & DRAWMODE_GHOSTEDTEXT)
=====================================================================
Found a 20 line (112 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx

				BitmapColor aCol;
				BitmapColor	aMskWhite( pMskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );

				for( long nY = nStartY; nY <= nEndY; nY++ )
				{
					const sal_Int32* pTmp = (sal_Int32*) pData + ( nY - nStartY ) * nScanSize + nOffset;

					for( long nX = nStartX; nX <= nEndX; nX++ )
					{
						const sal_Int32	nIndex = *pTmp++;
						const Color&	rCol = mpPal[ nIndex ];

						// 0: Transparent; >0: Non-Transparent
						if( !rCol.GetTransparency() )
						{
							pMskAcc->SetPixel( nY, nX, aMskWhite );
							mbTrans = TRUE;
						}
						else
						{
=====================================================================
Found a 23 line (112 tokens) duplication in the following files: 
Starting at line 2912 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx
Starting at line 3832 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx

void CheckBox::StateChanged( StateChangedType nType )
{
    Button::StateChanged( nType );

    if ( nType == STATE_CHANGE_STATE )
    {
        if ( IsReallyVisible() && IsUpdateMode() )
            Invalidate( maStateRect );
    }
    else if ( (nType == STATE_CHANGE_ENABLE) ||
              (nType == STATE_CHANGE_TEXT) ||
              (nType == STATE_CHANGE_IMAGE) ||
              (nType == STATE_CHANGE_DATA) ||
              (nType == STATE_CHANGE_UPDATEMODE) )
    {
        if ( IsUpdateMode() )
            Invalidate();
    }
    else if ( nType == STATE_CHANGE_STYLE )
    {
        SetStyle( ImplInitStyle( GetWindow( WINDOW_PREV ), GetStyle() ) );

        if ( (GetPrevStyle() & CHECKBOX_VIEW_STYLE) !=
=====================================================================
Found a 30 line (112 tokens) duplication in the following files: 
Starting at line 1393 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 789 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

                    }
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}

	if ( nChanged > 0 )
=====================================================================
Found a 37 line (112 tokens) duplication in the following files: 
Starting at line 1365 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 749 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

		}
#endif
		else
		{
			// @@@ Note: If your data source supports adding/removing
			//     properties, you should implement the interface
			//     XPropertyContainer by yourself and supply your own
			//     logic here. The base class uses the service
			//     "com.sun.star.ucb.Store" to maintain Additional Core
			//     properties. But using server functionality is preferred!

			// Not a Core Property! Maybe it's an Additional Core Property?!

			if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
			{
				xAdditionalPropSet = getAdditionalPropertySet( sal_False );
				bTriedToGetAdditonalPropSet = sal_True;
			}

			if ( xAdditionalPropSet.is() )
			{
				try
				{
                    uno::Any aOldValue
                        = xAdditionalPropSet->getPropertyValue( rValue.Name );
					if ( aOldValue != rValue.Value )
					{
						xAdditionalPropSet->setPropertyValue(
												rValue.Name, rValue.Value );

						aEvent.PropertyName = rValue.Name;
						aEvent.OldValue		= aOldValue;
						aEvent.NewValue     = rValue.Value;

						aChanges.getArray()[ nChanged ] = aEvent;
						nChanged++;
					}
=====================================================================
Found a 30 line (112 tokens) duplication in the following files: 
Starting at line 1441 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 789 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

                    }
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}

	if ( nChanged > 0 )
=====================================================================
Found a 37 line (112 tokens) duplication in the following files: 
Starting at line 1413 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 749 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

		}
#endif
		else
		{
			// @@@ Note: If your data source supports adding/removing
			//     properties, you should implement the interface
			//     XPropertyContainer by yourself and supply your own
			//     logic here. The base class uses the service
			//     "com.sun.star.ucb.Store" to maintain Additional Core
			//     properties. But using server functionality is preferred!

			// Not a Core Property! Maybe it's an Additional Core Property?!

			if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
			{
				xAdditionalPropSet = getAdditionalPropertySet( sal_False );
				bTriedToGetAdditonalPropSet = sal_True;
			}

			if ( xAdditionalPropSet.is() )
			{
				try
				{
                    uno::Any aOldValue
                        = xAdditionalPropSet->getPropertyValue( rValue.Name );
					if ( aOldValue != rValue.Value )
					{
						xAdditionalPropSet->setPropertyValue(
												rValue.Name, rValue.Value );

						aEvent.PropertyName = rValue.Name;
						aEvent.OldValue		= aOldValue;
						aEvent.NewValue     = rValue.Value;

						aChanges.getArray()[ nChanged ] = aEvent;
						nChanged++;
					}
=====================================================================
Found a 30 line (112 tokens) duplication in the following files: 
Starting at line 1024 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 1441 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

					}
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}

	if ( bExchange )
=====================================================================
Found a 29 line (112 tokens) duplication in the following files: 
Starting at line 985 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 1413 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

		}
		else
		{
			// Not a Core Property! Maybe it's an Additional Core Property?!

			if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
			{
				xAdditionalPropSet = getAdditionalPropertySet( sal_False );
				bTriedToGetAdditonalPropSet = sal_True;
			}

			if ( xAdditionalPropSet.is() )
			{
				try
				{
                    uno::Any aOldValue
                        = xAdditionalPropSet->getPropertyValue( rValue.Name );
					if ( aOldValue != rValue.Value )
					{
						xAdditionalPropSet->setPropertyValue(
												rValue.Name, rValue.Value );

						aEvent.PropertyName = rValue.Name;
						aEvent.OldValue		= aOldValue;
						aEvent.NewValue     = rValue.Value;

						aChanges.getArray()[ nChanged ] = aEvent;
						nChanged++;
					}
=====================================================================
Found a 30 line (112 tokens) duplication in the following files: 
Starting at line 1422 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1024 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx

                    }
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}

	if ( nChanged > 0 )
=====================================================================
Found a 36 line (112 tokens) duplication in the following files: 
Starting at line 1394 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 985 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx

		}
		else
		{
			// @@@ Note: If your data source supports adding/removing
			//     properties, you should implement the interface
			//     XPropertyContainer by yourself and supply your own
			//     logic here. The base class uses the service
			//     "com.sun.star.ucb.Store" to maintain Additional Core
			//     properties. But using server functionality is preferred!

			// Not a Core Property! Maybe it's an Additional Core Property?!

			if ( !bTriedToGetAdditonalPropSet && !xAdditionalPropSet.is() )
			{
				xAdditionalPropSet = getAdditionalPropertySet( sal_False );
				bTriedToGetAdditonalPropSet = sal_True;
			}

			if ( xAdditionalPropSet.is() )
			{
				try
				{
                    uno::Any aOldValue
                        = xAdditionalPropSet->getPropertyValue( rValue.Name );
					if ( aOldValue != rValue.Value )
					{
						xAdditionalPropSet->setPropertyValue(
												rValue.Name, rValue.Value );

						aEvent.PropertyName = rValue.Name;
						aEvent.OldValue		= aOldValue;
						aEvent.NewValue     = rValue.Value;

						aChanges.getArray()[ nChanged ] = aEvent;
						nChanged++;
					}
=====================================================================
Found a 26 line (112 tokens) duplication in the following files: 
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/solar/solar.c
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/solar.c

    printf( "can not write address %p\n", p );

  return 0;
}

struct Description
{
  int	bBigEndian;
  int	bStackGrowsDown;
  int	nStackAlignment;
  int	nAlignment[3];	/* 2,4,8 */
};

void Description_Ctor( struct Description* pThis )
{
  pThis->bBigEndian			= IsBigEndian();
  pThis->bStackGrowsDown	= IsStackGrowingDown();
  pThis->nStackAlignment	= GetStackAlignment();

  if ( sizeof(short) != 2 )
	abort();
  pThis->nAlignment[0] = GetAlignment( t_short );
  if ( sizeof(int) != 4 )
	abort();
  pThis->nAlignment[1] = GetAlignment( t_int );
  if ( sizeof(double) != 8 )
=====================================================================
Found a 26 line (112 tokens) duplication in the following files: 
Starting at line 1200 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 1409 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

				sal_Unicode const * pLanguageBegin = p;
				bool bDowncaseLanguage = false;
				int nLetters = 0;
				for (; p != pEnd; ++p)
					if (isAlpha(*p))
					{
						if (++nLetters > 8)
							break;
						bDowncaseLanguage = bDowncaseLanguage
							                || isUpperCase(*p);
					}
					else if (*p == '-')
					{
						if (nLetters == 0)
							break;
						nLetters = 0;
					}
					else
						break;
				if (nLetters == 0 || nLetters > 8)
					break;
				if (pParameters)
				{
					aLanguage = ByteString(
                        pLanguageBegin,
                        static_cast< xub_StrLen >(p - pLanguageBegin),
=====================================================================
Found a 11 line (112 tokens) duplication in the following files: 
Starting at line 1999 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrols.cxx
Starting at line 2406 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrols.cxx

void UnoComboBoxControl::addItems( const uno::Sequence< ::rtl::OUString>& aItems, sal_Int16 nPos ) throw(uno::RuntimeException)
{
	uno::Any aVal = ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_STRINGITEMLIST ) );
	uno::Sequence< ::rtl::OUString> aSeq;
	aVal >>= aSeq;
	sal_uInt16 nNewItems = (sal_uInt16)aItems.getLength();
	sal_uInt16 nOldLen = (sal_uInt16)aSeq.getLength();
	sal_uInt16 nNewLen = nOldLen + nNewItems;

	uno::Sequence< ::rtl::OUString> aNewSeq( nNewLen );
	::rtl::OUString* pNewData = aNewSeq.getArray();
=====================================================================
Found a 12 line (112 tokens) duplication in the following files: 
Starting at line 1214 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/viewtab.cxx
Starting at line 1244 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/viewtab.cxx

                    SvxLRSpaceItem aDistLR(SID_RULER_BORDER_DISTANCE);
                    aDistLR.SetLeft((USHORT)rBox.GetDistance(BOX_LINE_LEFT ));
                    aDistLR.SetRight((USHORT)rBox.GetDistance(BOX_LINE_RIGHT));

                    //add the border distance of the paragraph
                    SfxItemSet aCoreSet1( GetPool(),
                                            RES_BOX, RES_BOX,
                                            0 );
                    rSh.GetAttr( aCoreSet1 );
                    const SvxBoxItem& rParaBox = (const SvxBoxItem&)aCoreSet1.Get(RES_BOX);
                    aDistLR.SetLeft(aDistLR.GetLeft() + (USHORT)rParaBox.GetDistance(BOX_LINE_LEFT ));
                    aDistLR.SetRight(aDistLR.GetRight() + (USHORT)rParaBox.GetDistance(BOX_LINE_RIGHT));
=====================================================================
Found a 7 line (112 tokens) duplication in the following files: 
Starting at line 627 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmoutputpage.cxx
Starting at line 696 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mmoutputpage.cxx

            long nNewRBXPos = m_aSendAllRB.GetPosPixel().Y() + m_nRBOffset;

            Point aPos(m_aFromRB.GetPosPixel());aPos.Y() = nNewRBXPos;                 m_aFromRB.SetPosPixel(aPos);
            aPos = m_aToFT.GetPosPixel();       aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aToFT.SetPosPixel(aPos);
            aPos = m_aFromNF.GetPosPixel();     aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aFromNF.SetPosPixel(aPos);
            aPos = m_aToNF.GetPosPixel();       aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aToNF.SetPosPixel(aPos);
        }
=====================================================================
Found a 13 line (112 tokens) duplication in the following files: 
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/wrtxml.cxx

			  &::getCppuType((Sequence<sal_Int8>*)0),
#endif
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "BaseURI", sizeof("BaseURI")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamRelPath", sizeof("StreamRelPath")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamName", sizeof("StreamName")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "AutoTextMode", sizeof("AutoTextMode")-1, 0,
=====================================================================
Found a 21 line (112 tokens) duplication in the following files: 
Starting at line 759 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx
Starting at line 4887 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

			pOption->GetEnum( nType, aHTMLSpacerTypeTable );
			break;
		case HTML_O_ALIGN:
			eVertOri =
				(SwVertOrient)pOption->GetEnum( aHTMLImgVAlignTable,
												eVertOri );
			eHoriOri =
				(SwHoriOrient)pOption->GetEnum( aHTMLImgHAlignTable,
												eHoriOri );
			break;
		case HTML_O_WIDTH:
			// erstmal nur als Pixelwerte merken!
			bPrcWidth = (pOption->GetString().Search('%') != STRING_NOTFOUND);
			aSize.Width() = (long)pOption->GetNumber();
			break;
		case HTML_O_HEIGHT:
			// erstmal nur als Pixelwerte merken!
			bPrcHeight = (pOption->GetString().Search('%') != STRING_NOTFOUND);
			aSize.Height() = (long)pOption->GetNumber();
			break;
		case HTML_O_SIZE:
=====================================================================
Found a 16 line (112 tokens) duplication in the following files: 
Starting at line 439 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/pam.cxx
Starting at line 454 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/crsr/pam.cxx

SwPaM::SwPaM( const SwNode& rMk, const SwNode& rPt,
				long nMkOffset, long nPtOffset, SwPaM* pRing )
	: Ring( pRing ), aBound1( rMk ), aBound2( rPt ), bIsInFrontOfLabel(FALSE)
{
	if( nMkOffset )
		aBound1.nNode += nMkOffset;
	if( nPtOffset )
		aBound2.nNode += nPtOffset;

	aBound1.nContent.Assign( aBound1.nNode.GetNode().GetCntntNode(), 0 );
	aBound2.nContent.Assign( aBound2.nNode.GetNode().GetCntntNode(), 0 );
	pMark = &aBound1;
	pPoint = &aBound2;
}

SwPaM::SwPaM( const SwNodeIndex& rMk, xub_StrLen nMkCntnt,
=====================================================================
Found a 7 line (112 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdglue.cxx
Starting at line 400 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdglue.cxx

			long x=aPt.X(),y=aPt.Y(); // Groesse erstmal fest auf 7 Pixel
			rOut.DrawLine(Point(x-2,y-3),Point(x+3,y+2));
			rOut.DrawLine(Point(x-3,y-2),Point(x+2,y+3));
			rOut.DrawLine(Point(x-3,y+2),Point(x+2,y-3));
			rOut.DrawLine(Point(x-2,y+3),Point(x+3,y-2));
		
			if (!pGP->IsPercent()) 
=====================================================================
Found a 16 line (112 tokens) duplication in the following files: 
Starting at line 1681 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit4.cxx
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/textconv.cxx

    SfxItemSet aNewSet( pEditView->GetEmptyItemSet() );
    aNewSet.Put( SvxLanguageItem( nLang, nLangWhichId ) );

    // new font to be set?
    DBG_ASSERT( pFont, "target font missing?" );
    if (pFont)
    {
        // set new font attribute
        SvxFontItem aFontItem = (SvxFontItem&) aNewSet.Get( nFontWhichId );
        aFontItem.GetFamilyName()   = pFont->GetName();
        aFontItem.GetFamily()       = pFont->GetFamily();
        aFontItem.GetStyleName()    = pFont->GetStyleName();
        aFontItem.GetPitch()        = pFont->GetPitch();
        aFontItem.GetCharSet()      = pFont->GetCharSet();
        aNewSet.Put( aFontItem );
    }
=====================================================================
Found a 25 line (112 tokens) duplication in the following files: 
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dbregister.cxx
Starting at line 407 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/optpath.cxx

    }

    String aUserData = GetUserData();
	if ( aUserData.Len() )
	{
		// Spaltenbreite restaurieren
		pHeaderBar->SetItemSize( ITEMID_TYPE, aUserData.GetToken(0).ToInt32() );
		HeaderEndDrag_Impl( NULL );
		// Sortierrichtung restaurieren
		BOOL bUp = (BOOL)(USHORT)aUserData.GetToken(1).ToInt32();
		HeaderBarItemBits nBits	= pHeaderBar->GetItemBits(ITEMID_TYPE);

		if ( bUp )
		{
			nBits &= ~HIB_UPARROW;
			nBits |= HIB_DOWNARROW;
		}
		else
		{
			nBits &= ~HIB_DOWNARROW;
			nBits |= HIB_UPARROW;
		}
		pHeaderBar->SetItemBits( ITEMID_TYPE, nBits );
		HeaderSelect_Impl( NULL );
	}
=====================================================================
Found a 13 line (112 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/wrtxml.cxx

			  &::getCppuType((Sequence<sal_Int8>*)0),
#endif
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "BaseURI", sizeof("BaseURI")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamRelPath", sizeof("StreamRelPath")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamName", sizeof("StreamName")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "AutoTextMode", sizeof("AutoTextMode")-1, 0,
=====================================================================
Found a 21 line (112 tokens) duplication in the following files: 
Starting at line 2336 of /local/ooo-build/ooo-build/src/oog680-m3/sot/source/sdstor/ucbstorage.cxx
Starting at line 601 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/ucbhelper.cxx

		Sequence< ContentInfo > aInfo = xCreator->queryCreatableContentsInfo();
		sal_Int32 nCount = aInfo.getLength();
		if ( nCount == 0 )
			return sal_False;

		for ( sal_Int32 i = 0; i < nCount; ++i )
		{
			// Simply look for the first KIND_FOLDER...
			const ContentInfo & rCurr = aInfo[i];
			if ( rCurr.Attributes & ContentInfoAttribute::KIND_FOLDER )
			{
				// Make sure the only required bootstrap property is "Title",
				const Sequence< Property > & rProps = rCurr.Properties;
				if ( rProps.getLength() != 1 )
					continue;

				if ( !rProps[ 0 ].Name.equalsAsciiL(
						RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
					continue;

				Sequence<OUString> aNames(1);
=====================================================================
Found a 23 line (112 tokens) duplication in the following files: 
Starting at line 246 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/childwin.cxx
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/childwin.cxx

			SfxChildWinFactArr_Impl &rFactories = *pFactories;
			for ( sal_uInt16 nFactory = 0; nFactory < rFactories.Count(); ++nFactory )
			{
				pFact = rFactories[nFactory];
				if ( pFact->nId == nId )
				{
					SfxChildWinInfo& rFactInfo = pFact->aInfo;
					if ( rInfo.bVisible )
					{
						if ( pBindings )
							pBindings->ENTERREGISTRATIONS();
						SfxChildWinInfo aInfo = rFactInfo;
                        Application::SetSystemWindowMode( SYSTEMWINDOW_MODE_NOAUTOMODE );
						pChild = pFact->pCtor( pParent, nId, pBindings, &aInfo );
                        Application::SetSystemWindowMode( nOldMode );
						if ( pBindings )
							pBindings->LEAVEREGISTRATIONS();
					}

					break;
				}
			}
		}
=====================================================================
Found a 32 line (112 tokens) duplication in the following files: 
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/dlg/sddlgfact.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dialog/swdlgfact.cxx

void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
{
	pDlg->SetCurPageId( nId );
}

const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
{
	return pDlg->GetOutputItemSet();
}
//add by CHINA001
const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
{
	return pDlg->GetInputRanges( pItem );
}
//add by CHINA001
void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
	 pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractTabDialog_Impl::SetText( const XubString& rStr )
{
	pDlg->SetText( rStr );
}
String AbstractTabDialog_Impl::GetText() const
{
	return pDlg->GetText();
}

//add for AbstractTabDialog_Impl end

void    AbstractSwWordCountDialog_Impl::SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc)
=====================================================================
Found a 14 line (112 tokens) duplication in the following files: 
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
Starting at line 488 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/accessibility/AccessibleShape.cxx

    for (sal_Int32 i=0; i<nChildCount; ++i)
    {
        Reference<XAccessible> xChild (getAccessibleChild (i));
        if (xChild.is())
        {
            Reference<XAccessibleComponent> xChildComponent (
                xChild->getAccessibleContext(), uno::UNO_QUERY);
            if (xChildComponent.is())
            {
                awt::Rectangle aBBox (xChildComponent->getBounds());
                if ( (aPoint.X >= aBBox.X)
                    && (aPoint.Y >= aBBox.Y)
                    && (aPoint.X < aBBox.X+aBBox.Width)
                    && (aPoint.Y < aBBox.Y+aBBox.Height) )
=====================================================================
Found a 24 line (112 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/textdlgs.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/dlg/dlgchar.cxx

void SdCharDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
{
	SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
	switch( nId )
	{
		case RID_SVXPAGE_CHAR_NAME:
		{
			SvxFontListItem aItem(*( (const SvxFontListItem*)
				( rDocShell.GetItem( SID_ATTR_CHAR_FONTLIST) ) ) );

			aSet.Put (SvxFontListItem( aItem.GetFontList(), SID_ATTR_CHAR_FONTLIST));
			rPage.PageCreated(aSet);
		}
		break;

		case RID_SVXPAGE_CHAR_EFFECTS:
			aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
			rPage.PageCreated(aSet);
			break;

		default:
		break;
	}
}
=====================================================================
Found a 21 line (112 tokens) duplication in the following files: 
Starting at line 527 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/autofmt.cxx
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/tautofmt.cxx

static void lcl_SetFontProperties(
        Font& rFont,
        const SvxFontItem& rFontItem,
        const SvxWeightItem& rWeightItem,
        const SvxPostureItem& rPostureItem )
{
    rFont.SetFamily     ( rFontItem.GetFamily() );
    rFont.SetName       ( rFontItem.GetFamilyName() );
    rFont.SetStyleName  ( rFontItem.GetStyleName() );
    rFont.SetCharSet    ( rFontItem.GetCharSet() );
    rFont.SetPitch      ( rFontItem.GetPitch() );
    rFont.SetWeight     ( (FontWeight)rWeightItem.GetValue() );
    rFont.SetItalic     ( (FontItalic)rPostureItem.GetValue() );
}

#define SETONALLFONTS( MethodName, Value )                  \
rFont.MethodName( Value );                                  \
rCJKFont.MethodName( Value );                               \
rCTLFont.MethodName( Value );

void AutoFmtPreview::MakeFonts( BYTE nIndex, Font& rFont, Font& rCJKFont, Font& rCTLFont )
=====================================================================
Found a 16 line (112 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/dwfunctr.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/funcpage.cxx

void ScFuncPage::InitLRUList()
{
	const ScAppOptions& rAppOpt = SC_MOD()->GetAppOptions();
	USHORT nLRUFuncCount = Min( rAppOpt.GetLRUFuncListCount(), (USHORT)LRU_MAX );
	USHORT*	pLRUListIds = rAppOpt.GetLRUFuncList();

	USHORT i;
	for ( i=0; i<LRU_MAX; i++ )
		aLRUList[i] = NULL;

	if ( pLRUListIds )
	{
		ScFunctionMgr* pFuncMgr = ScGlobal::GetStarCalcFunctionMgr();
		for ( i=0; i<nLRUFuncCount; i++ )
			aLRUList[i] = pFuncMgr->Get( pLRUListIds[i] );
	}
=====================================================================
Found a 31 line (112 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/attrdlg/scdlgfact.cxx
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/dlg/sddlgfact.cxx

void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
{
	pDlg->SetCurPageId( nId );
}
const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
{
	return pDlg->GetOutputItemSet();
}
const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
{
	return pDlg->GetInputRanges( pItem );
}
void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
	 pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractTabDialog_Impl::SetText( const XubString& rStr )
{
	pDlg->SetText( rStr );
}
String AbstractTabDialog_Impl::GetText() const
{
	return pDlg->GetText();
}
//add for AbstractTabDialog_Impl end

// --------------------------------------------------------------------

// AbstractBulletDialog_Impl begin
void AbstractBulletDialog_Impl::SetCurPageId( USHORT nId )
=====================================================================
Found a 6 line (112 tokens) duplication in the following files: 
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlwrap.cxx
Starting at line 798 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlwrap.cxx

	comphelper::PropertyMapEntry aExportInfoMap[] =
	{
		{ MAP_LEN( "ProgressRange" ), 0, &::getCppuType((sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
		{ MAP_LEN( "ProgressMax" ), 0, &::getCppuType((sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
		{ MAP_LEN( "ProgressCurrent" ), 0, &::getCppuType((sal_Int32*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
		{ MAP_LEN( "WrittenNumberStyles" ), 0, &::getCppuType((uno::Sequence<sal_Int32>*)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
=====================================================================
Found a 26 line (112 tokens) duplication in the following files: 
Starting at line 601 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform.cxx
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/excform8.cxx

                ExcRelToScRel8( nRowLast, nColLast, aCRD.Ref2, bRangeName );

				if( IsComplColRange( nColFirst, nColLast ) )
					SetComplCol( aCRD );
				else if( IsComplRowRange( nRowFirst, nRowLast ) )
					SetComplRow( aCRD );

				switch ( nOp )
				{
					case 0x4B:
					case 0x6B:
					case 0x2B: // Deleted Area Refernce			[323 273]
						// no information which part is deleted, set all
						rSRef1.SetColDeleted( TRUE );
						rSRef1.SetRowDeleted( TRUE );
						rSRef2.SetColDeleted( TRUE );
						rSRef2.SetRowDeleted( TRUE );
				}

				aStack << aPool.Store( aCRD );
			}
				break;
			case 0x46:
			case 0x66:
			case 0x26: // Constant Reference Subexpression		[321 271]
				aExtensions.push_back( EXTENSION_MEMAREA );
=====================================================================
Found a 33 line (112 tokens) duplication in the following files: 
Starting at line 3207 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/biffdump.cxx
Starting at line 3243 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/biffdump.cxx

					switch( nNewType )
					{
						case 0x0001:
                            __AddRK( t, rIn.ReadInt32() );
							PRINT();
						break;
						case 0x0002:
							ADDDOUBLE();
							PRINT();
						break;
						case 0x0003:
							AddUNICODEString( t, rIn );
							PRINT();
						break;
						case 0x0004:
							if( Read2( rIn ) )
								ADDTEXT( "true" );
							else
								ADDTEXT( "false" );
							PRINT();
						break;
						case 0x0005:
						{
							PRINT();
							UINT16 nLen;
							rIn >> nLen;
							FormulaDump( nLen, FT_CellFormula );
							IGNORE( 1 );
						}
						break;
					}
				}
				if( rIn.GetRecLeft() > 0 )
=====================================================================
Found a 15 line (112 tokens) duplication in the following files: 
Starting at line 3654 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 3810 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

	if (fCount < 3.0)
		SetNoValue();
	else
	{
		double fMeanX = fSumX / fCount;
		double fMeanY = fSumY / fCount;
		for (SCSIZE i = 0; i < nC1; i++)
        {
            for (SCSIZE j = 0; j < nR1; j++)
            {
                if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j))
                {
                    double fValX = pMat1->GetDouble(i,j);
                    double fValY = pMat2->GetDouble(i,j);
                    fSumDeltaXDeltaY += (fValX - fMeanX) * (fValY - fMeanY);
=====================================================================
Found a 18 line (112 tokens) duplication in the following files: 
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/autoform.cxx
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/tblafmt.cxx

    if( nVer >= AUTOFORMAT_DATA_ID_680DR14 )
    {
        READ( aTLBR, SvxLineItem, rVersions.nLineVersion)
        READ( aBLTR, SvxLineItem, rVersions.nLineVersion)
    }

	READ( aBackground,  SvxBrushItem		, rVersions.nBrushVersion)

	pNew = aAdjust.Create(rStream, rVersions.nAdjustVersion );
	SetAdjust( *(SvxAdjustItem*)pNew );
	delete pNew;

    READ( aHorJustify,  SvxHorJustifyItem , rVersions.nHorJustifyVersion)
    READ( aVerJustify,  SvxVerJustifyItem   , rVersions.nVerJustifyVersion)
    READ( aOrientation, SvxOrientationItem  , rVersions.nOrientationVersion)
    READ( aMargin, SvxMarginItem       , rVersions.nMarginVersion)

	pNew = aLinebreak.Create(rStream, rVersions.nBoolVersion );
=====================================================================
Found a 17 line (112 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/appoptio.cxx
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/docoptio.cxx

	SetDate( nDateDay, nDateMonth, nDateYear );

	aNames = GetLayoutPropertyNames();
	aValues = aLayoutItem.GetProperties(aNames);
	aLayoutItem.EnableNotification(aNames);
	pValues = aValues.getConstArray();
	DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
	if(aValues.getLength() == aNames.getLength())
	{
		for(int nProp = 0; nProp < aNames.getLength(); nProp++)
		{
			DBG_ASSERT(pValues[nProp].hasValue(), "property value missing")
			if(pValues[nProp].hasValue())
			{
				switch(nProp)
				{
					case SCDOCLAYOUTOPT_TABSTOP:
=====================================================================
Found a 17 line (112 tokens) duplication in the following files: 
Starting at line 683 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabsrc.cxx
Starting at line 721 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabsrc.cxx

			ScDPDimension* pDim = GetDimensionsObject()->getByIndex( nRowDims[i] );
			long nHierarchy = pDim->getUsedHierarchy();
			if ( nHierarchy >= pDim->GetHierarchiesObject()->getCount() )
				nHierarchy = 0;
			ScDPLevels* pLevels = pDim->GetHierarchiesObject()->getByIndex(nHierarchy)->GetLevelsObject();
			long nCount = pLevels->getCount();

			//!	Test
			if ( pDim->getIsDataLayoutDimension() && nDataDimCount < 2 )
				nCount = 0;
			//!	Test

			for (long j=0; j<nCount; j++)
			{
			    ScDPLevel* pLevel = pLevels->getByIndex(j);
			    pLevel->EvaluateSortOrder();
			    pLevel->SetEnableLayout( TRUE );            // enable layout flags for row fields
=====================================================================
Found a 15 line (112 tokens) duplication in the following files: 
Starting at line 752 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpobject.cxx
Starting at line 1324 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpobject.cxx

		xHier = ScUnoHelpFunctions::AnyToInterface( xHiers->getByIndex(rElemDesc.nHierarchy) );
	DBG_ASSERT( xHier.is(), "hierarchy not found" );
	if ( !xHier.is() ) return;

	long nLevCount = 0;
	uno::Reference<container::XIndexAccess> xLevels;
	uno::Reference<sheet::XLevelsSupplier> xLevSupp( xHier, uno::UNO_QUERY );
	if ( xLevSupp.is() )
	{
		uno::Reference<container::XNameAccess> xLevsName = xLevSupp->getLevels();
		xLevels = new ScNameToIndexAccess( xLevsName );
		nLevCount = xLevels->getCount();
	}
	uno::Reference<uno::XInterface> xLevel;
	if ( rElemDesc.nLevel < nLevCount )
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 1534 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/attarray.cxx
Starting at line 1571 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/attarray.cxx

BOOL ScAttrArray::RemoveFlags( SCROW nStartRow, SCROW nEndRow, INT16 nFlags )
{
	const ScPatternAttr* pOldPattern;

	INT16	nOldValue;
	SCSIZE	nIndex;
	SCROW	nRow;
	SCROW	nThisRow;
	BOOL	bChanged = FALSE;

	Search( nStartRow, nIndex );
	nThisRow = (nIndex>0) ? pData[nIndex-1].nRow+1 : 0;
	if (nThisRow < nStartRow) nThisRow = nStartRow;

	while ( nThisRow <= nEndRow )
	{
		pOldPattern = pData[nIndex].pPattern;
		nOldValue = ((const ScMergeFlagAttr*) &pOldPattern->GetItem( ATTR_MERGE_FLAG ))->GetValue();
		if ( (nOldValue & ~nFlags) != nOldValue )
=====================================================================
Found a 32 line (112 tokens) duplication in the following files: 
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertiso2022cn.c
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertiso2022jp.c

        b0208 = ((ImplUnicodeToIso2022JpContext *) pContext)->m_b0208;
    }

    for (; nConverted < nSrcChars; ++nConverted)
    {
        sal_Bool bUndefined = sal_True;
        sal_uInt32 nChar = *pSrcBuf++;
        if (nHighSurrogate == 0)
        {
            if (ImplIsHighSurrogate(nChar))
            {
                nHighSurrogate = (sal_Unicode) nChar;
                continue;
            }
        }
        else if (ImplIsLowSurrogate(nChar))
            nChar = ImplCombineSurrogates(nHighSurrogate, nChar);
        else
        {
            bUndefined = sal_False;
            goto bad_input;
        }

        if (ImplIsLowSurrogate(nChar) || ImplIsNoncharacter(nChar))
        {
            bUndefined = sal_False;
            goto bad_input;
        }

        if (nChar == 0x0A || nChar == 0x0D) /* LF, CR */
        {
            if (b0208)
=====================================================================
Found a 21 line (112 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/converteuctw.c
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertiso2022cn.c

            else
            {
                sal_Int32 nOffset = pCns116431992PlaneOffsets[nChar >> 16];
                sal_uInt32 nFirst;
                sal_uInt32 nLast;
                sal_uInt32 nPlane;
                if (nOffset == -1)
                    goto bad_input;
                nOffset
                    = pCns116431992PageOffsets[nOffset
                                                   + ((nChar & 0xFF00) >> 8)];
                if (nOffset == -1)
                    goto bad_input;
                nFirst = pCns116431992Data[nOffset++];
                nLast = pCns116431992Data[nOffset++];
                nChar &= 0xFF;
                if (nChar < nFirst || nChar > nLast)
                    goto bad_input;
                nOffset += 3 * (nChar - nFirst);
                nPlane = pCns116431992Data[nOffset++];
                if (nPlane != 2)
=====================================================================
Found a 20 line (112 tokens) duplication in the following files: 
Starting at line 585 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/digest/rtl_digest.cxx
Starting at line 613 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/digest/rtl_digest.cxx
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/digest/rtl_digest.cxx
Starting at line 668 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/digest/rtl_digest.cxx

            rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 );
            
            rtl::OString aMsg = sSampleString;
            const sal_uInt8 *pData = (const sal_uInt8*)aMsg.getStr();
            sal_uInt32	     nSize = ( aMsg.getLength() );
            
            rtlDigestError aError = rtl_digest_init(handle, pData, nSize);

            CPPUNIT_ASSERT_MESSAGE("init(handle, pData, nSize)", aError == rtl_Digest_E_None);

            rtl_digest_update( handle, pData, nSize );

            sal_uInt32     nKeyLen = rtl_digest_queryLength( handle );
            sal_uInt8     *pKeyBuffer = new sal_uInt8[ nKeyLen ];

            rtl_digest_get( handle, pKeyBuffer, nKeyLen );
            rtl::OString aSum = createHex(pKeyBuffer, nKeyLen);
            delete [] pKeyBuffer;
            
            t_print("SHA1 Sum: %s\n", aSum.getStr());
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/sockethelper.cxx

::rtl::OUString	getIPbyName( rtl::OString const& str_name )
{
	::rtl::OUString	aUString;
	struct hostent *hptr;
	//first	search /ets/hosts, then	search from dns
	hptr = gethostbyname( str_name.getStr()); 
	if ( hptr != NULL )
	{
		struct in_addr ** addrptr;
		addrptr	= (struct in_addr **) hptr->h_addr_list	;
		//if there are more than one IPs on the	same machine, we select	one 
		for (; *addrptr; addrptr++)
		{
			t_print("#Local IP Address: %s\n", inet_ntoa(**addrptr));	
			aUString = ::rtl::OUString::createFromAscii( (sal_Char *) (inet_ntoa(**addrptr)) );
		}
	}
	return aUString;
}
=====================================================================
Found a 22 line (112 tokens) duplication in the following files: 
Starting at line 1986 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 2394 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 2781 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 3283 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 3518 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    class  append_005 : public CppUnit::TestFixture
    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }

        void append_001()
=====================================================================
Found a 28 line (112 tokens) duplication in the following files: 
Starting at line 2486 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c
Starting at line 2689 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

                                wcscpy(wcsPath + dwPathLen++, L"\\");
                            }

                            if (*strPath)
                            {
                                wcscpy(wcsPath + dwPathLen, strPath);
                                dwPathLen += wcslen(strPath);
                            }
                            else
                            {
                                CHAR szPath[MAX_PATH];
                                int n;

                                if ((n = WideCharToMultiByte(
                                         CP_ACP,0, wcsPath, -1, szPath,
                                         MAX_PATH, NULL, NULL))
                                    > 0)
                                {
                                    strcpy(szPath + n, SVERSION_USER);
                                    if (access(szPath, 0) >= 0)
                                    {
                                        dwPathLen += MultiByteToWideChar(
                                            CP_ACP, 0, SVERSION_USER, -1,
                                            wcsPath + dwPathLen,
                                            MAX_PATH - dwPathLen );
                                    }
                                }
                            }
=====================================================================
Found a 21 line (112 tokens) duplication in the following files: 
Starting at line 1512 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/profile.c
Starting at line 1596 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/w32/profile.c

static const sal_Char* stripBlanks(const sal_Char* String, sal_uInt32* pLen)
{
	if ( (pLen != NULL) && ( *pLen != 0 ) )
	{
		while ((String[*pLen - 1] == ' ') || (String[*pLen - 1] == '\t'))
			(*pLen)--;

		while ((*String == ' ') || (*String == '\t'))
		{
			String++;
			(*pLen)--;
		}
	}
	else
		while ((*String == ' ') || (*String == '\t'))
			String++;

	return (String);
}

static const sal_Char* addLine(osl_TProfileImpl* pProfile, const sal_Char* Line)
=====================================================================
Found a 33 line (112 tokens) duplication in the following files: 
Starting at line 221 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno_callable.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno_runtime.cxx

    (ternaryfunc) 0,
    (reprfunc) 0,
    (getattrofunc)0,
    (setattrofunc)0,
    NULL,
    0,
    NULL,
    (traverseproc)0,
    (inquiry)0,
    (richcmpfunc)0,
    0,
    (getiterfunc)0,
    (iternextfunc)0,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    (descrgetfunc)0,
    (descrsetfunc)0,
    0,
    (initproc)0,
    (allocfunc)0,
    (newfunc)0,
    (freefunc)0,
    (inquiry)0,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    (destructor)0
};
=====================================================================
Found a 30 line (112 tokens) duplication in the following files: 
Starting at line 69 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/helper/strhelper.cxx
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/helper/strhelper.cxx

inline void CopyUntil( sal_Unicode*& pTo, const sal_Unicode*& pFrom, sal_Unicode cUntil, int bIncludeUntil = 0 )
{
    do
    {
        if( *pFrom == '\\' )
        {
            pFrom++;
            if( *pFrom )
            {
                *pTo = *pFrom;
                pTo++;
            }
        }
        else if( bIncludeUntil || ! isProtect( *pFrom ) )
        {
            *pTo = *pFrom;
            pTo++;
        }
        pFrom++;
    } while( *pFrom && *pFrom != cUntil );
    // copy the terminating character unless zero or protector
    if( ! isProtect( *pFrom ) || bIncludeUntil )
    {
        *pTo = *pFrom;
        if( *pTo )
            pTo++;
    }
    if( *pFrom )
        pFrom++;
}
=====================================================================
Found a 16 line (112 tokens) duplication in the following files: 
Starting at line 4582 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 4604 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

::rtl::OUString SAL_CALL OStorage::getTypeByID(  const ::rtl::OUString& sID  )
		throw ( container::NoSuchElementException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< beans::StringPair > aSeq = getRelationshipByID( sID );
	for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ )
		if ( aSeq[nInd].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Type" ) ) )
=====================================================================
Found a 34 line (112 tokens) duplication in the following files: 
Starting at line 3314 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 3403 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

		m_pImpl->m_bBroadcastModified = sal_True;
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( container::NoSuchElementException& )
	{
		throw;
	}
	catch( container::ElementExistException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't move element!" ),
=====================================================================
Found a 34 line (112 tokens) duplication in the following files: 
Starting at line 3230 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 982 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx

			throw io::IOException(); // TODO: error handling
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( container::NoSuchElementException& )
	{
		throw;
	}
	catch( container::ElementExistException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't copy raw stream" ),
=====================================================================
Found a 16 line (112 tokens) duplication in the following files: 
Starting at line 2420 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 2442 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

::rtl::OUString SAL_CALL OWriteStream::getTypeByID(  const ::rtl::OUString& sID  )
		throw ( container::NoSuchElementException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

	if ( !m_pImpl )
		throw lang::DisposedException();

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< beans::StringPair > aSeq = getRelationshipByID( sID );
	for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ )
		if ( aSeq[nInd].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Type" ) ) )
=====================================================================
Found a 27 line (112 tokens) duplication in the following files: 
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/odk/source/unoapploader/unx/unoapploader.c
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/odk/source/unoapploader/win/unoapploader.c

    (void) nCmdShow; /* unused */

    /* get the path of the UNO installation */
    path = getPath();

    if ( path != NULL )
    {
        /* get the value of the PATH environment variable */
        value = getenv( ENVVARNAME );

        /* 
         * add the UNO installation path to the PATH environment variable;
         * note that this only affects the environment variable of the current 
         * process, the command processor's environment is not changed
         */
        size = strlen( ENVVARNAME ) + strlen( "=" ) + strlen( path ) + 1;
		if ( value != NULL )
            size += strlen( PATHSEPARATOR ) + strlen( value );
		envstr = (char*) malloc( size );
        strcpy( envstr, ENVVARNAME );
        strcat( envstr, "=" );
        strcat( envstr, path );
		if ( value != NULL )
		{
            strcat( envstr, PATHSEPARATOR );
            strcat( envstr, value );
		}
=====================================================================
Found a 18 line (112 tokens) duplication in the following files: 
Starting at line 777 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 804 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 9 line (112 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 24 line (112 tokens) duplication in the following files: 
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

	    if ( (float)fabs(a[j][k]) >= big )
	    {
	      big = (float)fabs(a[j][k]);
	      irow = j;
	      icol = k;
	    }
	  }
	  else if ( ipiv[k] > 1 )
	  {
	    delete[] ipiv;
	    delete[] indxr;
	    delete[] indxc;
	    return 0;
	  }
	}
      }
    }
    ipiv[icol]++;

    if ( irow != icol )
    {
      float* rowptr = a[irow];
      a[irow] = a[icol];
      a[icol] = rowptr;
=====================================================================
Found a 20 line (112 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

  int i, j, k;
  int irow = 0;
  int icol = 0;
  float big, pivinv, save;

  for (j = 0; j < n; j++)
    ipiv[j] = 0;

  for (i = 0; i < n; i++)
  {
    big = 0;
    for (j = 0; j < n; j++)
    {
      if ( ipiv[j] != 1 )
      {
	for (k = 0; k < n; k++)
	{
	  if ( ipiv[k] == 0 )
	  {
	    if ( (float)fabs(a[j][k]) >= big )
=====================================================================
Found a 7 line (112 tokens) duplication in the following files: 
Starting at line 455 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx

       13,   13,   22,   23,   24,   25,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
=====================================================================
Found a 21 line (112 tokens) duplication in the following files: 
Starting at line 3610 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 3666 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

        switch (hbox->style.anchor_type)
        {
            case CHAR_ANCHOR:
                padd(ascii("text:anchor-type"), sXML_CDATA, ascii("as-char"));
                break;
            case PARA_ANCHOR:
                padd(ascii("text:anchor-type"), sXML_CDATA, ascii("paragraph"));
                break;
            case PAGE_ANCHOR:
            case PAPER_ANCHOR:
            {
                // os unused
                // HWPInfo *hwpinfo = hwpfile.GetHWPInfo();
                padd(ascii("text:anchor-type"), sXML_CDATA, ascii("page"));
                padd(ascii("text:anchor-page-number"), sXML_CDATA,
                    ascii(Int2Str(hbox->pgno +1, "%d", buf)));
                break;
            }
        }
        if( hbox->style.anchor_type != CHAR_ANCHOR )
        {
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 1944 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/epict.cxx
Starting at line 1457 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/wmfwr.cxx

				}
				break;

				case META_MAPMODE_ACTION:
				{
					const MetaMapModeAction* pA = (const MetaMapModeAction*) pMA;

					if (aSrcMapMode!=pA->GetMapMode())
					{
						if( pA->GetMapMode().GetMapUnit() == MAP_RELATIVE )
						{
							MapMode aMM = pA->GetMapMode();
							Fraction aScaleX = aMM.GetScaleX();
							Fraction aScaleY = aMM.GetScaleY();

							Point aOrigin = aSrcMapMode.GetOrigin();
							BigInt aX( aOrigin.X() );
							aX *= BigInt( aScaleX.GetDenominator() );
							if( aOrigin.X() >= 0 )
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 452 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/addonstoolbarmanager.cxx
Starting at line 1150 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx

            }

            // Request a item window from the toolbar controller and set it at the VCL toolbar
            Reference< XToolbarController > xTbxController( xController, UNO_QUERY );
            if ( xTbxController.is() && xToolbarWindow.is() )
            {
                Reference< XWindow > xWindow = xTbxController->createItemWindow( xToolbarWindow );
                if ( xWindow.is() )
                {
                    Window* pItemWin = VCLUnoHelper::GetWindow( xWindow );
                    if ( pItemWin )
                    {
                        WindowType nType = pItemWin->GetType();
                        if ( nType == WINDOW_LISTBOX || nType == WINDOW_MULTILISTBOX || nType == WINDOW_COMBOBOX )
                            pItemWin->SetAccessibleName( m_pToolBar->GetItemText( nId ) );
				        m_pToolBar->SetItemWindow( nId, pItemWin );
                    }
                }
            }
=====================================================================
Found a 15 line (112 tokens) duplication in the following files: 
Starting at line 1495 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 1581 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx

                                            strncat( mystr, Language_codes[k].pCountry, 2);
                                        }

                                        aXMLFile.write( ValueNodeStart, strlen( ValueNodeStart ), nWritten );
                                        aXMLFile.write( mystr, strlen( mystr ), nWritten );
                                        aXMLFile.write( ValueNodeMid, strlen( ValueNodeMid ), nWritten );
                                        aXMLFile.write( aLabel.getStr(), aLabel.getLength(), nWritten );
                                        aXMLFile.write( ValueNodeEnd, strlen( ValueNodeEnd ), nWritten );
                                    }
                                }

                                if ( !bLabels )
                                    aXMLFile.write( ValueNodeEmpty, strlen( ValueNodeEmpty ), nWritten );

                                aXMLFile.write( PropNodeEnd, strlen( PropNodeEnd ), nWritten );
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/FPentry.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/FPentry.cxx

using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry;
using namespace ::cppu;
using ::com::sun::star::ui::dialogs::XFilePicker;
using ::com::sun::star::ui::dialogs::XFolderPicker;

//------------------------------------------------
// 
//------------------------------------------------

static Reference< XInterface > SAL_CALL createFileInstance( 
	const Reference< XMultiServiceFactory >& rServiceManager )
{
	return Reference< XInterface >( 
		static_cast< XFilePicker* >( 
			new SalGtkFilePicker( rServiceManager ) ) );
=====================================================================
Found a 31 line (112 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cppToUno/testcppuno.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/unoTocomCalls/Test/Test.cpp

int main(int argc, char* argv[])
{
	HRESULT hr;
	if( FAILED( hr=CoInitialize(NULL)))
	{
		_tprintf(_T("CoInitialize failed \n"));
		return -1;
	}

	
	_Module.Init( ObjectMap, GetModuleHandle( NULL));

	if( FAILED(hr=doTest()))
	{
		_com_error err( hr);
		const TCHAR * errMsg= err.ErrorMessage();
		MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
	}


	_Module.Term();
	CoUninitialize();

	
	return 0;
}


HRESULT doTest()
{
	HRESULT hr= S_OK;
=====================================================================
Found a 28 line (112 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/OleConverterVar1/convTest.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cppToUno/testcppuno.cxx

																   sal_Int32 * parMultidimensionalIndex);



int __cdecl _tmain( int argc, _TCHAR * argv[] )
{
	HRESULT hr;
	if( FAILED( hr=CoInitialize(NULL)))
	{
		_tprintf(_T("CoInitialize failed \n"));
		return -1;
	}

	
	_Module.Init( ObjectMap, GetModuleHandle( NULL));

	if( FAILED(hr=doTest()))
	{
		_com_error err( hr);
		const TCHAR * errMsg= err.ErrorMessage();
		MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
	}


	_Module.Term();
	CoUninitialize();
	return 0;
}
=====================================================================
Found a 39 line (112 tokens) duplication in the following files: 
Starting at line 1157 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/feed/updatefeed.cxx
Starting at line 1034 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/ui/updatecheckui.cxx

        getServiceNames,
        cppu::createSingleComponentFactory,
        NULL,
        0
    },
	{ NULL, NULL, NULL, NULL, NULL, 0 }
} ;

//------------------------------------------------------------------------------

extern "C" void SAL_CALL
component_getImplementationEnvironment( const sal_Char **aEnvTypeName, uno_Environment **)
{
    *aEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}

//------------------------------------------------------------------------------

extern "C" sal_Bool SAL_CALL
component_writeInfo(void *pServiceManager, void *pRegistryKey)
{
    return cppu::component_writeInfoHelper(
        pServiceManager,
        pRegistryKey,
        kImplementations_entries
    );
}

//------------------------------------------------------------------------------

extern "C" void *
component_getFactory(const sal_Char *pszImplementationName, void *pServiceManager, void *pRegistryKey)
{
    return cppu::component_getFactoryHelper(
        pszImplementationName,
        pServiceManager,
        pRegistryKey,
        kImplementations_entries) ;
}
=====================================================================
Found a 15 line (112 tokens) duplication in the following files: 
Starting at line 1083 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/feed/updatefeed.cxx
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

                    aRec(xContainer->find(rRequest.ServerName, this));
                if (aRec.UserList.getLength() != 0)
                {
                    if (xSupplyAuthentication->canSetUserName())
                        xSupplyAuthentication->
                            setUserName(aRec.UserList[0].UserName.getStr());
                    if (xSupplyAuthentication->canSetPassword())
                    {
                        OSL_ENSURE(aRec.UserList[0].Passwords.getLength() != 0,
                                   "empty password list");
                        xSupplyAuthentication->
                            setPassword(aRec.UserList[0].Passwords[0].getStr());
                    }
                    if (aRec.UserList[0].Passwords.getLength() > 1)
                        if (rRequest.HasRealm)
=====================================================================
Found a 39 line (112 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatecheckjob.cxx
Starting at line 1034 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/ui/updatecheckui.cxx

        getServiceNames,
        cppu::createSingleComponentFactory,
        NULL,
        0
    },
	{ NULL, NULL, NULL, NULL, NULL, 0 }
} ;

//------------------------------------------------------------------------------

extern "C" void SAL_CALL
component_getImplementationEnvironment( const sal_Char **aEnvTypeName, uno_Environment **)
{
    *aEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}

//------------------------------------------------------------------------------

extern "C" sal_Bool SAL_CALL
component_writeInfo(void *pServiceManager, void *pRegistryKey)
{
    return cppu::component_writeInfoHelper(
        pServiceManager,
        pRegistryKey,
        kImplementations_entries
    );
}

//------------------------------------------------------------------------------

extern "C" void *
component_getFactory(const sal_Char *pszImplementationName, void *pServiceManager, void *pRegistryKey)
{
    return cppu::component_getFactoryHelper(
        pszImplementationName,
        pServiceManager,
        pRegistryKey,
        kImplementations_entries) ;
}
=====================================================================
Found a 5 line (112 tokens) duplication in the following files: 
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

 0x7e,0x7c,0x00,0x00,0x78,0x7c,0x00,0x00,0x70,0x38,0x00,0x00,0xc0,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 6 line (112 tokens) duplication in the following files: 
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/documentdefinition.cxx
Starting at line 156 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoole2.cxx

	Fraction GetScaleHeight() { return m_aScaleHeight; }

	// XStateChangeListener
    virtual void SAL_CALL changingState( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL stateChanged( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 22 line (112 tokens) duplication in the following files: 
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/loader/loader.test.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/loader/loader.test.cxx

			uno::Reference<registry::XRegistryKey>(new MyKey)
			);

		rtl::OUString envDcp_purpose(cppu::EnvDcp::getPurpose(g_envDcp));
		if (envDcp_purpose == servicePurpose)
			result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("passed\n"));

		else 
		{
			result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FAILED - got: \""));
			result += envDcp_purpose;
			result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\"\n"));
		}
	}
	catch(uno::Exception & exception) {
		result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FAILED - got: \""));
		result += exception.Message;
		result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\"\n"));
	}

	return result;
}
=====================================================================
Found a 17 line (112 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/source/uno/lbenv.cxx
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/source/uno/lbenv.cxx

    OSL_ENSURE( pEnv && ppInterface && pOId && pTypeDescr && freeProxy,
                "### null ptr!" );
    OUString const & rOId = OUString::unacquired( &pOId );
    
    uno_DefaultEnvironment * that =
        static_cast< uno_DefaultEnvironment * >( pEnv );
    ::osl::ClearableMutexGuard guard( that->mutex );
    
    // try to insert dummy 0:
    std::pair<OId2ObjectMap::iterator, bool> const insertion(
        that->aOId2ObjectMap.insert( OId2ObjectMap::value_type( rOId, 0 ) ) );
    if (insertion.second)
    {
        ObjectEntry * pOEntry = new ObjectEntry( rOId );
        insertion.first->second = pOEntry;
        ++pOEntry->nRef; // another register call on object
        pOEntry->append( that, *ppInterface, pTypeDescr, freeProxy );
=====================================================================
Found a 15 line (112 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 1955 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("Struct2b", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
}

void Test::testPoly() {
=====================================================================
Found a 18 line (112 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/polypolyaction.cxx
Starting at line 274 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/polypolyaction.cxx

                                        const rendering::Texture& 	rTexture ); 

                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
                                     const Subset&					rSubset ) const;

                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix&	rTransformation,
                                                       const Subset&					rSubset ) const;

                virtual sal_Int32 getActionCount() const;

            private:
                using Action::render;
                virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive,
                                     const ::basegfx::B2DHomMatrix&                 rTransformation ) const;

                const uno::Reference< rendering::XPolyPolygon2D >	mxPolyPoly;
                const ::Rectangle									maBounds;
=====================================================================
Found a 18 line (112 tokens) duplication in the following files: 
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HTables.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YTables.cxx

		if(bIsView) // here we have a view
			aSql += ::rtl::OUString::createFromAscii("VIEW ");
		else
			aSql += ::rtl::OUString::createFromAscii("TABLE ");

		::rtl::OUString sComposedName(
		    ::dbtools::composeTableName( m_xMetaData, sCatalog, sSchema, sTable, sal_True, ::dbtools::eInDataManipulation ) );
		aSql += sComposedName;
		Reference< XStatement > xStmt = xConnection->createStatement(  );
		if ( xStmt.is() )
		{
			xStmt->execute(aSql);
			::comphelper::disposeComponent(xStmt);
		}
		// if no exception was thrown we must delete it from the views
		if ( bIsView )
		{
			OViews* pViews = static_cast<OViews*>(static_cast<OMySQLCatalog&>(m_rParent).getPrivateViews());
=====================================================================
Found a 12 line (112 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
Starting at line 956 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

		aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::CHAR));
		aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
		aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));

		aRows.push_back(aRow);
=====================================================================
Found a 24 line (112 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunooptions.cxx
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/rdbmaker/source/rdbmaker/rdboptions.cxx

					if (av[i][2] == '\0')
					{
						if (i < ac - 1 && av[i+1][0] != '-')
						{
							i++;
							s = av[i];
						} else
						{
							OString tmp("'-O', please check");
							if (i <= ac - 1)
							{
								tmp += " your input '" + OString(av[i+1]) + "'";
							}
							
							throw IllegalArgument(tmp);
						}
					} else
					{
						s = av[i] + 2;
					}
					
					m_options["-O"] = OString(s);
					break;
				case 'X':
=====================================================================
Found a 7 line (112 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
Starting at line 234 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx

    virtual ~WrappedUpDownProperty();

    ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                            throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);

    uno::Reference< chart2::XChartTypeTemplate > getNewTemplate( sal_Bool bNewValue, const rtl::OUString& rCurrentTemplate, const Reference< lang::XMultiServiceFactory >& xFactory ) const;
};
=====================================================================
Found a 22 line (112 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/WrappedPropertySet.cxx

void SAL_CALL WrappedPropertySet::setPropertyValues( const Sequence< OUString >& rNameSeq, const Sequence< Any >& rValueSeq )
                                    throw (beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
    bool bUnknownProperty = false;
    sal_Int32 nMinCount = std::min( rValueSeq.getLength(), rNameSeq.getLength() );
    for(sal_Int32 nN=0; nN<nMinCount; nN++)
    {
        ::rtl::OUString aPropertyName( rNameSeq[nN] );
        try
        {
            this->setPropertyValue( aPropertyName, rValueSeq[nN] );
        }
        catch( beans::UnknownPropertyException& ex )
        {
            ASSERT_EXCEPTION( ex );
            bUnknownProperty = true;
        }
    }
    //todo: store unknown properties elsewhere
//    if( bUnknownProperty )
//        throw beans::UnknownPropertyException();
}
=====================================================================
Found a 19 line (112 tokens) duplication in the following files: 
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

	void ** pCppArgs  = (void **)malloc( 3 * sizeof(void *) * nParams );
#else
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
#endif
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut
            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 33 line (112 tokens) duplication in the following files: 
Starting at line 378 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

        nFunctionIndex, nVtableOffset, pCallStack, (sal_Int64*)nRegReturn );
    
	switch( aType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			__asm__( "movl %1, %%edx\n\t"
					 "movl %0, %%eax\n"
					 : : "m"(nRegReturn[0]), "m"(nRegReturn[1]) );
			break;
		case typelib_TypeClass_FLOAT:
			__asm__( "flds %0\n\t"
					 "fstp %%st(0)\n\t"
					 "flds %0\n"
					 : : "m"(*(float *)nRegReturn) );
			break;
		case typelib_TypeClass_DOUBLE:
			__asm__( "fldl %0\n\t"
					 "fstp %%st(0)\n\t"
					 "fldl %0\n"
					 : : "m"(*(double *)nRegReturn) );
			break;
// 		case typelib_TypeClass_UNSIGNED_SHORT:
// 		case typelib_TypeClass_SHORT:
// 			__asm__( "movswl %0, %%eax\n"
// 					 : : "m"(nRegReturn) );
// 		break;
		default:
			__asm__( "movl %0, %%eax\n"
					 : : "m"(nRegReturn[0]) );
			break;
	}
}
=====================================================================
Found a 24 line (112 tokens) duplication in the following files: 
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );
	
	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
=====================================================================
Found a 17 line (112 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 24 line (112 tokens) duplication in the following files: 
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );
	
	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
=====================================================================
Found a 18 line (112 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx

	INSERT_INT64( &pAdjustedThisPtr, nGPR, pGPR, pStack );

	// Args
	void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
	// Indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// Type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 24 line (112 tokens) duplication in the following files: 
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );
	
	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
=====================================================================
Found a 32 line (112 tokens) duplication in the following files: 
Starting at line 394 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx

                            *pPT++ = 'C';
                            break;
		          case typelib_TypeClass_FLOAT:
                            *pPT++ = 'F';
			    break;
		        case typelib_TypeClass_DOUBLE:
			    *pPT++ = 'D';
			    pCppStack += sizeof(sal_Int32); // extra long
			    break;
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			    *pPT++ = 'H';
			    pCppStack += sizeof(sal_Int32); // extra long
			}

			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			if (! rParam.bIn) // is pure out
			{
				// cpp out is constructed mem, uno out is not!
				uno_constructData(
					*(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
					pParamTypeDescr );
				pTempIndizes[nTempIndizes] = nPos; // default constructed for cpp call
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (cppu_relatesToInterface( pParamTypeDescr ))
=====================================================================
Found a 24 line (112 tokens) duplication in the following files: 
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
=====================================================================
Found a 17 line (112 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 24 line (112 tokens) duplication in the following files: 
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 244 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx

	pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
	::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );

	// destruct uno exception
	::uno_any_destruct( pUnoExc, 0 );
    // avoiding locked counts
    static RTTI * s_rtti = 0;
    if (! s_rtti)
    {
        MutexGuard guard( Mutex::getGlobalMutex() );
        if (! s_rtti)
        {
#ifdef LEAK_STATIC_DATA
            s_rtti = new RTTI();
#else
            static RTTI rtti_data;
            s_rtti = &rtti_data;
#endif
        }
    }
	rtti = (type_info *)s_rtti->getRTTI( (typelib_CompoundTypeDescription *) pTypeDescr );
    TYPELIB_DANGER_RELEASE( pTypeDescr );
    OSL_ENSURE( rtti, "### no rtti for throwing exception!" );
    if (! rtti)
=====================================================================
Found a 17 line (112 tokens) duplication in the following files: 
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 23 line (112 tokens) duplication in the following files: 
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxlng.cxx

void ImpPutLong( SbxValues* p, INT32 n )
{
	SbxValues aTmp;

start:
	switch( p->eType )
	{
		// Ab hier muss getestet werden
		case SbxCHAR:
			aTmp.pChar = &p->nChar; goto direct;
		case SbxBYTE:
			aTmp.pByte = &p->nByte; goto direct;
		case SbxINTEGER:
		case SbxBOOL:
			aTmp.pInteger = &p->nInteger; goto direct;
		case SbxULONG64:
			aTmp.pULong64 = &p->nULong64; goto direct;
		case SbxLONG64:
		case SbxCURRENCY:
			aTmp.pLong64 = &p->nLong64; goto direct;
		case SbxULONG:
			aTmp.pULong = &p->nULong; goto direct;
		case SbxSALUINT64:
=====================================================================
Found a 12 line (112 tokens) duplication in the following files: 
Starting at line 1381 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx
Starting at line 1409 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx

    for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
    {
        Polygon2D aTestPoly(4);
        aTestPoly[0] = someCurves[i].p0;
        aTestPoly[1] = someCurves[i].p1;
        aTestPoly[2] = someCurves[i].p2;
        aTestPoly[3] = someCurves[i].p3;
        
        aTestPoly[0].x += convHull_xOffset;
        aTestPoly[1].x += convHull_xOffset;
        aTestPoly[2].x += convHull_xOffset;
        aTestPoly[3].x += convHull_xOffset;
=====================================================================
Found a 35 line (111 tokens) duplication in the following files: 
Starting at line 16429 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 16957 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

               ( new OOXMLContext_math_CT_SPrePr(*this));
         }
             break;
     case OOXML_ELEMENT_math_sub:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_math_CT_OMathArg(*this));
         }
             break;
     case OOXML_ELEMENT_math_sup:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_math_CT_OMathArg(*this));
         }
             break;
     case OOXML_ELEMENT_math_e:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_math_CT_OMathArg(*this));
         }
             break;
     case OOXML_TOKENS_END:
         break;
     default:
         pResult = elementFromRefs(nToken);
              break;
     }

    if (pResult.get() != NULL)
        pResult->setToken(nToken);

    return pResult;
}
     
bool OOXMLContext_math_CT_SPre::lcl_attribute(TokenEnum_t /*nToken*/, const rtl::OUString & /*rValue*/)
=====================================================================
Found a 13 line (111 tokens) duplication in the following files: 
Starting at line 2519 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 2825 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        0x00,0x00,0x00,0x00,0x00,0x30,0x30,0xfc,0x30,0x30,0x00,0x00,0x00,0x00,0x00,

        7, // 0x2c ','
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x30,0x60,0x00,

        7, // 0x2d '-'
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfc,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

        7, // 0x2e '.'
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,

        7, // 0x2f '/'
        0x00,0x00,0x0c,0x0c,0x18,0x18,0x30,0x30,0x60,0x60,0xc0,0xc0,0x00,0x00,0x00,
=====================================================================
Found a 19 line (111 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, 0),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
            calc_type fg[4];
=====================================================================
Found a 6 line (111 tokens) duplication in the following files: 
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 553 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
                if(fg[order_type::R] > fg[order_type::A]) fg[order_type::R] = fg[order_type::A];
                if(fg[order_type::G] > fg[order_type::A]) fg[order_type::G] = fg[order_type::A];
                if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
=====================================================================
Found a 12 line (111 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/pspgraphics.h
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salgdi.h

                                        const SalBitmap& rMaskBitmap );
    virtual void			drawMask( const SalTwoRect* pPosAry,
                                      const SalBitmap& rSalBitmap,
                                      SalColor nMaskColor );
    virtual SalBitmap*		getBitmap( long nX, long nY, long nWidth, long nHeight );
    virtual SalColor		getPixel( long nX, long nY );
    virtual void			invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
    virtual void			invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );

    virtual BOOL			drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );

    virtual bool 			drawAlphaBitmap( const SalTwoRect&,
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/dom/characterdata.cxx
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/dom/characterdata.cxx

    void SAL_CALL CCharacterData::replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg)
        throw (DOMException)
    {
        if (m_aNodePtr != NULL)
        {
            // get current data
            OString aData((const sal_Char*)xmlNodeGetContent(m_aNodePtr));
            OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8);
            if (offset > tmp.getLength() || offset < 0 || count < 0){
                DOMException e;
                e.Code = DOMExceptionType_INDEX_SIZE_ERR;
                throw e;
            } 
            if ((offset+count) > tmp.getLength())
                count = tmp.getLength() - offset;

            OUString tmp2 = tmp.copy(0, offset);
            tmp2 += arg;
=====================================================================
Found a 35 line (111 tokens) duplication in the following files: 
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/filinpstr.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/inputstream.cxx

										  SAL_STATIC_CAST( io::XInputStream*,this ),
										  SAL_STATIC_CAST( io::XSeekable*,this ) );
	return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}


void SAL_CALL
XInputStream_impl::acquire(
	void )
	throw()
{
	OWeakObject::acquire();
}


void SAL_CALL
XInputStream_impl::release(
	void )
	throw()
{
	OWeakObject::release();
}



sal_Int32 SAL_CALL
XInputStream_impl::readBytes(
			     uno::Sequence< sal_Int8 >& aData,
			     sal_Int32 nBytesToRead )
	throw( io::NotConnectedException,
		   io::BufferSizeExceededException,
		   io::IOException,
		   uno::RuntimeException)
{
	if( ! m_bIsOpen )
=====================================================================
Found a 21 line (111 tokens) duplication in the following files: 
Starting at line 913 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 983 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

			case INET_PROT_VND_SUN_STAR_PKG:
			{
				if (pEnd - pPos < 2 || *pPos++ != '/' || *pPos++ != '/')
				{
					setInvalid();
					return false;
				}
                aSynAbsURIRef.appendAscii(RTL_CONSTASCII_STRINGPARAM("//"));
				rtl::OUStringBuffer aSynAuthority;
				while (pPos < pEnd
					   && *pPos != '/' && *pPos != '?'
					   && *pPos != nFragmentDelimiter)
				{
					EscapeType eEscapeType;
					sal_uInt32 nUTF32 = getUTF32(pPos, pEnd, bOctets,
												 cEscapePrefix, eMechanism,
												 eCharset, eEscapeType);
					appendUCS4(aSynAuthority, nUTF32, eEscapeType, bOctets,
							   PART_AUTHORITY, cEscapePrefix, eCharset,
							   false);
				}
=====================================================================
Found a 14 line (111 tokens) duplication in the following files: 
Starting at line 665 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/view/scrrect.cxx
Starting at line 925 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/view/scrrect.cxx

                        for( USHORT nI = pStripes->Count(); nI; )
						{
                            if( pScroll->IsVertical() )
                            {
                                long nWidth = (*pStripes)[--nI].GetHeight();
                                aRect.Left( (*pStripes)[nI].GetY() -nWidth +1 );
                                aRect.Width( nWidth );
                            }
                            else
                            {
                                aRect.Top( (*pStripes)[--nI].GetY() );
                                aRect.Height( (*pStripes)[nI].GetHeight() );
                            }
							if( rRect.IsOver( aRect ) )
=====================================================================
Found a 22 line (111 tokens) duplication in the following files: 
Starting at line 583 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoobj.cxx
Starting at line 2003 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx

            rValue >>= uDescName;
            String sDescName;
			SwStyleNameMapper::FillUIName(uDescName, sDescName, GET_POOLID_PAGEDESC, sal_True );
            if(!pNewDesc->GetPageDesc() || pNewDesc->GetPageDesc()->GetName() != sDescName)
            {
                sal_uInt16 nCount = pDoc->GetPageDescCnt();
                sal_Bool bPut = sal_False;
                if(sDescName.Len())
                {
                    SwPageDesc* pPageDesc = ::GetPageDescByName_Impl(*pDoc, sDescName);
                    if(pPageDesc)
                    {
                        pPageDesc->Add( pNewDesc );
                        bPut = sal_True;
                    }
                    else
                    {
                        throw lang::IllegalArgumentException();
                    }
                }
                if(!bPut)
                {
=====================================================================
Found a 16 line (111 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/fields/fldlst.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/fields/fldlst.cxx

		if( RES_SETEXPFLD == nType || RES_INPUTFLD == nType )
		{
			SwClientIter aIter( *pFldType );
			for( SwFmtFld* pFld = (SwFmtFld*)aIter.First( TYPE(SwFmtFld) );
					pFld; pFld = (SwFmtFld*)aIter.Next() )
			{
				const SwTxtFld* pTxtFld = pFld->GetTxtFld();

				//	nur InputFields und interaktive SetExpFlds bearbeiten
				if( !pTxtFld || ( RES_SETEXPFLD == nType &&
					!((SwSetExpField*)pFld->GetFld())->GetInputFlag()))
					continue;

				const SwTxtNode& rTxtNode = pTxtFld->GetTxtNode();
				if( rTxtNode.GetNodes().IsDocNodes() )
				{
=====================================================================
Found a 17 line (111 tokens) duplication in the following files: 
Starting at line 2154 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx
Starting at line 2210 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/docnode/ndtbl.cxx

			if( bNewTxtNd )
			{
				const SwNodeIndex aTmpIdx( *pTblNd->EndOfSectionNode(), 1 );
				GetNodes().MakeTxtNode( aTmpIdx,
							GetTxtCollFromPool( RES_POOLCOLL_STANDARD ) );
			}

            // save the cursors (UNO and otherwise)
            SwPaM aSavePaM( SwNodeIndex( *pTblNd->EndOfSectionNode() ) );
            if( ! aSavePaM.Move( fnMoveForward, fnGoNode ) )
            {
                *aSavePaM.GetMark() = SwPosition( *pTblNd );
                aSavePaM.Move( fnMoveBackward, fnGoNode );
            }
            ::PaMCorrAbs( SwNodeIndex( *pTblNd ),
                          SwNodeIndex( *pTblNd->EndOfSectionNode() ),
                          *aSavePaM.GetMark() );
=====================================================================
Found a 19 line (111 tokens) duplication in the following files: 
Starting at line 434 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx
Starting at line 480 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtrans.cxx

void CrookStretchPoly(XPolygon& rPoly, const Point& rCenter, const Point& rRad, FASTBOOL bVert, const Rectangle rRefRect)
{
	double nSin,nCos;
	USHORT nPointAnz=rPoly.GetPointCount();
	USHORT i=0;
	while (i<nPointAnz) {
		Point* pPnt=&rPoly[i];
		Point* pC1=NULL;
		Point* pC2=NULL;
		if (i+1<nPointAnz && rPoly.IsControl(i)) { // Kontrollpunkt links
			pC1=pPnt;
			i++;
			pPnt=&rPoly[i];
		}
		i++;
		if (i<nPointAnz && rPoly.IsControl(i)) { // Kontrollpunkt rechts
			pC2=&rPoly[i];
			i++;
		}
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 2239 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2910 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

	*rContents << sal_uInt8(0x00);

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("BackgroundColor"));
    if (aTmp.hasValue())
	    aTmp >>= mnBackColor;
	*rContents << ExportColor(mnBackColor);
	pBlockFlags[0] |= 0x02;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("TextColor"));
    if (aTmp.hasValue())
	    aTmp >>= mnForeColor;
	*rContents << ExportColor(mnForeColor);
	pBlockFlags[0] |= 0x04;

    aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("Border"));
    sal_Int16 nBorder = sal_Int16();
    aTmp >>= nBorder;
    nSpecialEffect = ExportBorder(nBorder,nBorderStyle);
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 2874 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmshimp.cxx
Starting at line 2941 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmshimp.cxx

	m_bFilterMode = sal_False;

	FmXFormView* pXView = m_pShell->GetFormView()->GetImpl();

	// if the active controller is our external one we have to use the trigger controller
	Reference< XControlContainer> xContainer;
	if (getActiveController() == m_xExternalViewController)
	{
		DBG_ASSERT(m_xExtViewTriggerController.is(), "FmXFormShell::startFiltering : inconsistent : active external controller, but noone triggered this !");
		xContainer = m_xExtViewTriggerController->getContainer();
	}
	else
		xContainer = getActiveController()->getContainer();

	FmWinRecList::iterator i = pXView->findWindow(xContainer);
	if (i != pXView->getWindowList().end())
	{
		const ::std::vector< Reference< XFormController> >& rControllerList = (*i)->GetList();
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 1527 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmctrler.cxx
Starting at line 1555 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmctrler.cxx

    OSL_ENSURE( xControl.is(), "FmXFormController::removeFromEventAttacher: invalid control - how did you reach this?" );
    if ( !xControl.is() )
        return; /* throw IllegalArgumentException(); */

    // abmelden beim Eventattacher
    Reference< XFormComponent >  xComp(xControl->getModel(), UNO_QUERY);
    if ( xComp.is() && m_xModelAsIndex.is() )
    {
        // Und die Position des ControlModel darin suchen
        sal_uInt32 nPos = m_xModelAsIndex->getCount();
        Reference< XFormComponent > xTemp;
        for( ; nPos; )
        {
            m_xModelAsIndex->getByIndex(--nPos) >>= xTemp;
            if ((XFormComponent*)xComp.get() == (XFormComponent*)xTemp.get())
            {
                Reference< XInterface >  xIfc(xControl, UNO_QUERY);
                m_xModelAsManager->detach( nPos, xIfc );
=====================================================================
Found a 28 line (111 tokens) duplication in the following files: 
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgfact.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dialog/swdlgfact.cxx

void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
{
	pDlg->SetCurPageId( nId );
}

const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
{
	return pDlg->GetOutputItemSet();
}
//add by CHINA001
const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
{
	return pDlg->GetInputRanges( pItem );
}
//add by CHINA001
void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
	 pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractTabDialog_Impl::SetText( const XubString& rStr )
{
	pDlg->SetText( rStr );
}
String AbstractTabDialog_Impl::GetText() const
{
	return pDlg->GetText();
}
=====================================================================
Found a 15 line (111 tokens) duplication in the following files: 
Starting at line 835 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 771 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptLeftRightArrowVert[] =	// adjustment1: x 0 - 10800
{															// adjustment2: y 0 - 10800
	{ 0, 10800 }, { 0 MSO_I, 0 }, { 0 MSO_I, 1 MSO_I },	{ 2 MSO_I, 1 MSO_I },
	{ 2 MSO_I, 0 }, { 21600, 10800 }, { 2 MSO_I, 21600 }, { 2 MSO_I, 3 MSO_I },
	{ 0 MSO_I, 3 MSO_I }, { 0 MSO_I, 21600 }
};
static const sal_uInt16 mso_sptLeftRightArrowSegm[] =
{
	0x4000, 0x0009, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptDoubleArrowCalc[] =
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 10 line (111 tokens) duplication in the following files: 
Starting at line 667 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
Starting at line 682 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx

					if ( ( *aIter > fDistance ) && ( *aIter < fLastDistance ) )
					{
						Point& rPt0 = rPoly[ i - 1 ];
						sal_Int32 fX = rPoint.X() - rPt0.X();
						sal_Int32 fY = rPoint.Y() - rPt0.Y();
						double fd = ( 1.0 / ( fDistance - fLastDistance ) ) * ( *aIter - fLastDistance );
						rPoly.Insert( i, Point( (sal_Int32)( rPt0.X() + fX * fd ), (sal_Int32)( rPt0.Y() + fY * fd ) ) );
						fDistance = *aIter;
					}
				}
=====================================================================
Found a 20 line (111 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 519 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx

void StatusbarController::bindListener()
{
    std::vector< Listener > aDispatchVector;
    Reference< XStatusListener > xStatusListener;

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );

        if ( !m_bInitialized )
            return;

        // Collect all registered command URL's and store them temporary
        Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
        if ( m_xServiceManager.is() && xDispatchProvider.is() )
        {
            xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY );
            URLToDispatchMap::iterator pIter = m_aListenerMap.begin();
            while ( pIter != m_aListenerMap.end() )
            {
                Reference< XURLTransformer > xURLTransformer = getURLTransformer();
=====================================================================
Found a 19 line (111 tokens) duplication in the following files: 
Starting at line 545 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/svhtml/htmlout.cxx
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/svrtf/rtfout.cxx

SvStream& RTFOutFuncs::Out_Hex( SvStream& rStream, ULONG nHex, BYTE nLen )
{
	sal_Char aNToABuf[] = "0000000000000000";

	DBG_ASSERT( nLen < sizeof(aNToABuf), "zu viele Stellen" );
	if( nLen >= sizeof(aNToABuf) )
		nLen = (sizeof(aNToABuf)-1);

	// Pointer an das Bufferende setzen
	sal_Char* pStr = aNToABuf + (sizeof(aNToABuf)-1);
	for( BYTE n = 0; n < nLen; ++n )
	{
		*(--pStr) = (sal_Char)(nHex & 0xf ) + 48;
		if( *pStr > '9' )
			*pStr += 39;
		nHex >>= 4;
	}
	return rStream << pStr;
}
=====================================================================
Found a 22 line (111 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items/macitem.cxx
Starting at line 299 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/fmtatr2.cxx

	const SvxMacroTableDtor& rOther = *pOther;

	// Anzahl unterschiedlich => auf jeden Fall ungleich
	if( rOwn.Count() != rOther.Count() )
		return FALSE;

	// einzeln vergleichen; wegen Performance ist die Reihenfolge wichtig
	for( USHORT nNo = 0; nNo < rOwn.Count(); ++nNo )
	{
		const SvxMacro *pOwnMac = rOwn.GetObject(nNo);
		const SvxMacro *pOtherMac = rOther.GetObject(nNo);
		if ( 	rOwn.GetKey(pOwnMac) != rOther.GetKey(pOtherMac)  ||
				pOwnMac->GetLibName() != pOtherMac->GetLibName() ||
				pOwnMac->GetMacName() != pOtherMac->GetMacName() )
			return FALSE;
	}
	return TRUE;
}



SfxPoolItem* SwFmtINetFmt::Clone( SfxItemPool* ) const
=====================================================================
Found a 10 line (111 tokens) duplication in the following files: 
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/shlxthandler/propsheets/document_statistic.cxx
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/win32/shlxthandler/propsheets/document_statistic.cxx

void calc_document_statistic_reader::fill_description_section(
    CMetaInfoReader *meta_info_accessor,statistic_group_list_t* group_list)
{
    statistic_item_list_t il;
    
    il.push_back(statistic_item(GetResString(IDS_TITLE),       meta_info_accessor->getTagData( META_INFO_TITLE ),       READONLY));
    il.push_back(statistic_item(GetResString(IDS_COMMENTS),    meta_info_accessor->getTagData( META_INFO_DESCRIPTION ), READONLY));
    il.push_back(statistic_item(GetResString(IDS_SUBJECT),     meta_info_accessor->getTagData( META_INFO_SUBJECT ),     READONLY));
    il.push_back(statistic_item(GetResString(IDS_KEYWORDS),    meta_info_accessor->getTagData(META_INFO_KEYWORDS ),    READONLY));    
    il.push_back(statistic_item(GetResString(IDS_TABLES),      meta_info_accessor->getTagAttribute( META_INFO_DOCUMENT_STATISTIC,META_INFO_TABLES) ,  READONLY));
=====================================================================
Found a 27 line (111 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/backends/gconfbe/gconfbecdef.cxx
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/backends/kdebe/kdebecdef.cxx
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/backends/localebe/localebecdef.cxx

        LocaleBackend::getBackendServiceNames,
        cppu::createSingleComponentFactory,
        NULL,
        0
    },
    { NULL, NULL, NULL, NULL, NULL, 0 }
} ;

//------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
    const sal_Char **aEnvTypeName, uno_Environment ** /*aEnvironment*/) {
    
    *aEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}

//------------------------------------------------------------------------------

extern "C" sal_Bool SAL_CALL component_writeInfo(void * /*pServiceManager*/, void *pRegistryKey) {
    
    using namespace ::com::sun::star::registry;
    if (pRegistryKey)
    {
        try
        {
            uno::Reference< XRegistryKey > xImplKey = static_cast< XRegistryKey* >( pRegistryKey )->createKey(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + LocaleBackend::getBackendName()
=====================================================================
Found a 10 line (111 tokens) duplication in the following files: 
Starting at line 1453 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/cfg.cxx
Starting at line 942 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/selector.cxx

									SVX_CFGFUNCTION_SCRIPT, 123, aInfo );

							Image aImage = GetImage( children[n], Reference< XComponentContext >(), sal_False, BMP_COLOR_NORMAL );
							SvLBoxEntry* pNewEntry =
								pFunctionListBox->InsertEntry( children[n]->getName(), NULL );
							pFunctionListBox->SetExpandedEntryBmp(pNewEntry, aImage, BMP_COLOR_NORMAL);
							pFunctionListBox->SetCollapsedEntryBmp(pNewEntry, aImage, BMP_COLOR_NORMAL);
							aImage = GetImage( children[n], Reference< XComponentContext >(), sal_False, BMP_COLOR_HIGHCONTRAST );
							pFunctionListBox->SetExpandedEntryBmp(pNewEntry, aImage, BMP_COLOR_HIGHCONTRAST);
							pFunctionListBox->SetCollapsedEntryBmp(pNewEntry, aImage, BMP_COLOR_HIGHCONTRAST);
=====================================================================
Found a 13 line (111 tokens) duplication in the following files: 
Starting at line 1834 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/appuno.cxx
Starting at line 765 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/control/macrconf.cxx

				SbxVariable *pCompVar = pAppMgr->GetLib(0)->Find( DEFINE_CONST_UNICODE("ThisComponent"), SbxCLASS_PROPERTY );
                ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >  xInterface ( pSh->GetModel() , ::com::sun::star::uno::UNO_QUERY );
                ::com::sun::star::uno::Any aAny;
                aAny <<= xInterface;
				if ( pCompVar )
				{
                    xOldVar = pCompVar->GetObject();
					pCompVar->PutObject( GetSbUnoObject( DEFINE_CONST_UNICODE("ThisComponent"), aAny ) );
				}
                else
                {
                    SbxObjectRef xUnoObj = GetSbUnoObject( DEFINE_CONST_UNICODE("ThisComponent"), aAny );
                    xUnoObj->SetFlag( SBX_DONTSTORE );
=====================================================================
Found a 19 line (111 tokens) duplication in the following files: 
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview2.cxx
Starting at line 265 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/sdview2.cxx

	if( GetMarkedObjectCount() == 1 )
	{
		SdrObject* pObj = GetMarkedObjectByIndex( 0 );

        if( pObj && pObj->ISA( SdrOle2Obj ) && ( (SdrOle2Obj*) pObj )->GetObjRef().is() )
		{
			// If object has no persistence it must be copied as part of the document
			try
			{
				uno::Reference< embed::XEmbedPersist > xPersObj( ((SdrOle2Obj*)pObj)->GetObjRef(), uno::UNO_QUERY );
				if ( xPersObj.is() && xPersObj->hasEntry() )
	 				pSdrOleObj = (SdrOle2Obj*) pObj;
			}
			catch( uno::Exception& )
			{}
		}
	}

	if( mpDocSh )
=====================================================================
Found a 13 line (111 tokens) duplication in the following files: 
Starting at line 2566 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/pptin.cxx
Starting at line 2596 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/pptin.cxx

											if (Abs(aLogicRect.Right()	- aOutlineRect.Right())  > MAX_USER_MOVE ||
												Abs(aLogicRect.Top()	- aOutlineRect.Top())	 > MAX_USER_MOVE ||
												Abs(aLogicRect.Bottom() - aOutlineRect.Bottom()) > MAX_USER_MOVE ||
													aLogicSize.Width()	/ aOutlineSize.Width()	 < 0.48 		 ||
													aLogicSize.Width()	/ aOutlineSize.Width()	 > 0.5)
											{
												pPresObj->SetUserCall( NULL );
											}
										}
										else if ( pSlideLayout->eLayout == PPT_LAYOUT_2ROWSANDTITLE )
										{	// Lage im Outlinebereich unten
											if (Abs(aLogicRect.Left()	- aOutlineRect.Left())	 > MAX_USER_MOVE ||
												Abs(aLogicRect.Bottom() - aOutlineRect.Bottom()) > MAX_USER_MOVE ||
=====================================================================
Found a 32 line (111 tokens) duplication in the following files: 
Starting at line 605 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/tabvwsh4.cxx
Starting at line 640 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/tabvwsh4.cxx

	GetViewData()->ReadUserData(rData);
	SetTabNo( GetViewData()->GetTabNo(), TRUE );

	if ( GetViewData()->IsPagebreakMode() )
		SetCurSubShell( GetCurObjectSelectionType(), TRUE );

	Window* pNewWin = GetActiveWin();
	if (pNewWin && pNewWin != pOldWin)
	{
		SetWindow( pNewWin );		//! ist diese ViewShell immer aktiv???
		if (bFocus)
			pNewWin->GrabFocus();
		WindowChanged();			// Drawing-Layer (z.B. #56771#)
	}

	if (GetViewData()->GetHSplitMode() == SC_SPLIT_FIX ||
		GetViewData()->GetVSplitMode() == SC_SPLIT_FIX)
	{
		InvalidateSplit();
	}

	ZoomChanged();

	TestHintWindow();

	//!	if ViewData has more tables than document, remove tables in ViewData
}


//------------------------------------------------------------------

void ScTabViewShell::TestFunction( USHORT /* nPar */ )
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 4488 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin2.cxx

	BOOL bRet = FALSE;
	BOOL bTimer = FALSE;
	Point aPos = rMEvt.GetPosPixel();

	SCsCOL nDx = 0;
	SCsROW nDy = 0;
	if ( aPos.X() < 0 )
		nDx = -1;
	if ( aPos.Y() < 0 )
		nDy = -1;
	Size aSize = GetOutputSizePixel();
	if ( aPos.X() >= aSize.Width() )
		nDx = 1;
	if ( aPos.Y() >= aSize.Height() )
		nDy = 1;
	if ( nDx != 0 || nDy != 0 )
	{
		if (bDragRect)
=====================================================================
Found a 23 line (111 tokens) duplication in the following files: 
Starting at line 757 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/fielduno.cxx
Starting at line 1439 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/fielduno.cxx

uno::Any SAL_CALL ScHeaderFieldObj::getPropertyValue( const rtl::OUString& aPropertyName )
				throw(beans::UnknownPropertyException, lang::WrappedTargetException,
						uno::RuntimeException)
{
	ScUnoGuard aGuard;

	//!	Properties?
	uno::Any aRet;
	String aNameString(aPropertyName);

	// anchor type is always "as character", text wrap always "none"

	if ( aNameString.EqualsAscii( SC_UNONAME_ANCTYPE ) )
		aRet <<= text::TextContentAnchorType_AS_CHARACTER;
	else if ( aNameString.EqualsAscii( SC_UNONAME_ANCTYPES ) )
	{
		uno::Sequence<text::TextContentAnchorType> aSeq(1);
		aSeq[0] = text::TextContentAnchorType_AS_CHARACTER;
		aRet <<= aSeq;
	}
	else if ( aNameString.EqualsAscii( SC_UNONAME_TEXTWRAP ) )
		aRet <<= text::WrapTextMode_NONE;
	else if ( nType == SC_SERVICE_FILEFIELD && aNameString.EqualsAscii( SC_UNONAME_FILEFORM ) )
=====================================================================
Found a 6 line (111 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

		{MAP_CHAR_LEN(SC_UNONAME_PROTECT),  SC_WID_UNO_PROTECT,	&getBooleanCppuType(),					0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((table::CellVertJustify*)0), 0, 0 },
		{MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
		{MAP_CHAR_LEN(SC_UNONAME_SHOWBORD), SC_WID_UNO_SHOWBORD,&getBooleanCppuType(),					0, 0 },
=====================================================================
Found a 28 line (111 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/attrdlg/scdlgfact.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgfact.cxx

void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
{
	pDlg->SetCurPageId( nId );
}

const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
{
	return pDlg->GetOutputItemSet();
}
//add by CHINA001
const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
{
	return pDlg->GetInputRanges( pItem );
}
//add by CHINA001
void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
	 pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractTabDialog_Impl::SetText( const XubString& rStr )
{
	pDlg->SetText( rStr );
}
String AbstractTabDialog_Impl::GetText() const
{
	return pDlg->GetText();
}
=====================================================================
Found a 13 line (111 tokens) duplication in the following files: 
Starting at line 562 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx

        if (!aRef.Ref2.IsColRel())
            rBuffer.append(sal_Unicode('$'));
        if ( aRef.Ref2.IsColDeleted() )
            rBuffer.append(ScGlobal::GetRscString(STR_NO_REF_TABLE));
        else
            MakeColStr( rBuffer, aRef.Ref2.nCol );
        if (!aRef.Ref2.IsRowRel())
            rBuffer.append(sal_Unicode('$'));
        if ( aRef.Ref2.IsRowDeleted() )
            rBuffer.append(ScGlobal::GetRscString(STR_NO_REF_TABLE));
        else
            MakeRowStr( rBuffer, aRef.Ref2.nRow );
    }
=====================================================================
Found a 20 line (111 tokens) duplication in the following files: 
Starting at line 1478 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column2.cxx
Starting at line 1553 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/column2.cxx

				EditTextObject* pNewData = pEngine->CreateTextObject();
				pOldCell->SetData( pNewData, pEngine->GetEditTextObjectPool() );
				delete pNewData;
			}
			else											// String erzeugen
			{
				String aText = ScEditUtil::GetSpaceDelimitedString( *pEngine );
				ScBaseCell* pNewCell = new ScStringCell( aText );
				SvtBroadcaster* pBC = pOldCell->GetBroadcaster();
				pNewCell->SetBroadcaster( pBC );
				pOldCell->ForgetBroadcaster();
				if (pOldCell->GetNotePtr())
					pNewCell->SetNote( *pOldCell->GetNotePtr() );
				pItems[i].pCell = pNewCell;
				delete pOldCell;
			}
		}

	delete pEngine;
}
=====================================================================
Found a 15 line (111 tokens) duplication in the following files: 
Starting at line 3048 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 3100 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

		void shutdown_003()
		{
			::osl::AcceptorSocket asSocket( osl_Socket_FamilyInet, osl_Socket_ProtocolIp, osl_Socket_TypeStream );
			::osl::SocketAddr saLocalSocketAddr( aHostIp1, IP_PORT_MYPORT9);
			asSocket.setOption( osl_Socket_OptionReuseAddr, 1 );
			CPPUNIT_ASSERT_MESSAGE("shutdown_002: bind fail", asSocket.bind( saLocalSocketAddr ) == sal_True);
			CPPUNIT_ASSERT_MESSAGE("shutdown_002: listen fail", asSocket.listen( 1 ) == sal_True );
			sal_Char pReadBuffer[40];
			SendClientThread mySendThread;
			mySendThread.create();
			
			asSocket.enableNonBlockingMode( sal_False );
			::osl::StreamSocket ssConnectionSocket;
			oslSocketResult eResult = asSocket.acceptConnection( ssConnectionSocket );
			CPPUNIT_ASSERT_MESSAGE("shutdown_002: acceptConnection fail", eResult == osl_Socket_Ok );
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 688 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/file/osl_File.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

        return getIPbyName( hostname );	
}

/** construct error message
*/
inline ::rtl::OUString outputError( const ::rtl::OUString & returnVal, const ::rtl::OUString & rightVal, const sal_Char * msg = "")
{	
	::rtl::OUString aUString;
	if ( returnVal.equals( rightVal ) )
		return aUString;
	aUString += ::rtl::OUString::createFromAscii(msg);
	aUString += ::rtl::OUString::createFromAscii(": the returned value is '");
	aUString += returnVal;
	aUString += ::rtl::OUString::createFromAscii("', but the value should be '");
	aUString += rightVal;
	aUString += ::rtl::OUString::createFromAscii("'.");
	return aUString;
}
=====================================================================
Found a 22 line (111 tokens) duplication in the following files: 
Starting at line 3519 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 15299 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }
        
        void append_001()
        {
=====================================================================
Found a 25 line (111 tokens) duplication in the following files: 
Starting at line 291 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/checksingleton.cxx
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/registry/tools/regcompare.cxx

					fprintf(stdout, "%s", prepareHelp().getStr());
					bRet = sal_False;
				} else
				{
					int rargc=0;
					char* rargv[512];
					char  buffer[512];

					while ( fscanf(cmdFile, "%s", buffer) != EOF )
					{
						rargv[rargc]= strdup(buffer);
						rargc++;
					}
					fclose(cmdFile);
					
					bRet = initOptions(rargc, rargv, bCmdFile);
					
					for (long j=0; j < rargc; j++) 
					{
						free(rargv[j]);
					}
				}
			} else
			{
				fprintf(stdout, "%s: unknown option '%s'\n", m_program.getStr(), av[i]);
=====================================================================
Found a 16 line (111 tokens) duplication in the following files: 
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/sft.c
Starting at line 302 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/sft.c

    sal_uInt32 t;
    assert(ptr != 0);


    if (bigendian) {
        t = (ptr+offset)[0] << 24 | (ptr+offset)[1] << 16 |
            (ptr+offset)[2] << 8  | (ptr+offset)[3];
    } else {
        t = (ptr+offset)[3] << 24 | (ptr+offset)[2] << 16 |
            (ptr+offset)[1] << 8  | (ptr+offset)[0];
    }

    return t;
}

_inline void PutInt16(sal_Int16 val, sal_uInt8 *ptr, size_t offset, int bigendian)
=====================================================================
Found a 15 line (111 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx

        int numsug = 0;

        // first handle smart quotes (single and double)
	OUStringBuffer rBuf(rWord);
        sal_Int32 n = rBuf.getLength();
        sal_Unicode c;
	for (sal_Int32 ix=0; ix < n; ix++) {
	     c = rBuf.charAt(ix);
             if ((c == 0x201C) || (c == 0x201D)) rBuf.setCharAt(ix,(sal_Unicode)0x0022);
             if ((c == 0x2018) || (c == 0x2019)) rBuf.setCharAt(ix,(sal_Unicode)0x0027);
        }
        OUString nWord(rBuf.makeStringAndClear());

	if (n)
	{
=====================================================================
Found a 20 line (111 tokens) duplication in the following files: 
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h
Starting at line 578 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/widthfolding_data.h

	{ 0x0000, 0x0000 },	// 0x3093 HIRAGANA LETTER N
	{ 0x0000, 0x0000 },	// 0x3094 HIRAGANA LETTER VU
	{ 0x0000, 0x0000 },	// 0x3095
	{ 0x0000, 0x0000 },	// 0x3096
	{ 0x0000, 0x0000 },	// 0x3097
	{ 0x0000, 0x0000 },	// 0x3098
	{ 0x0000, 0x0000 },	// 0x3099 COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309a COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309b KATAKANA-HIRAGANA VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309c KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
	{ 0x0000, 0x0000 },	// 0x309d HIRAGANA ITERATION MARK
	{ 0x0000, 0x0000 },	// 0x309e HIRAGANA VOICED ITERATION MARK
	{ 0x0000, 0x0000 },	// 0x309f
	{ 0x0000, 0x0000 },	// 0x30a0
	{ 0x0000, 0x0000 },	// 0x30a1 KATAKANA LETTER SMALL A
	{ 0x0000, 0x0000 },	// 0x30a2 KATAKANA LETTER A
	{ 0x0000, 0x0000 },	// 0x30a3 KATAKANA LETTER SMALL I
	{ 0x0000, 0x0000 },	// 0x30a4 KATAKANA LETTER I
	{ 0x0000, 0x0000 },	// 0x30a5 KATAKANA LETTER SMALL U
	{ 0x30f4, 0x0000 },	// 0x30a6 KATAKANA LETTER U --> KATAKANA LETTER VU
=====================================================================
Found a 4 line (111 tokens) duplication in the following files: 
Starting at line 1519 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1534 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13, 0,13, 0,13,13,13,13,13,13,13,13,13,13,// fe70 - fe7f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fe80 - fe8f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fe90 - fe9f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fea0 - feaf
=====================================================================
Found a 6 line (111 tokens) duplication in the following files: 
Starting at line 1102 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1131 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,// 0bc0 - 0bcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bd0 - 0bdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0be0 - 0bef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0bf0 - 0bff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0c00 - 0c0f
=====================================================================
Found a 4 line (111 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1072 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17,17,17,17,17,17,17,17,17,17,17, 0, 0, 0, 0, 0,// 0740 - 074f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0750 - 075f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0760 - 076f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0770 - 077f
=====================================================================
Found a 5 line (111 tokens) duplication in the following files: 
Starting at line 1021 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 4 line (111 tokens) duplication in the following files: 
Starting at line 877 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 892 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe70 - fe7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe80 - fe8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe90 - fe9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
=====================================================================
Found a 5 line (111 tokens) duplication in the following files: 
Starting at line 846 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1255 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10,10,10,10,10,10,10,10,18,18,18,18, 0,// 1800 - 180f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1810 - 181f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1820 - 182f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1830 - 183f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1840 - 184f
=====================================================================
Found a 5 line (111 tokens) duplication in the following files: 
Starting at line 823 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 864 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbd0 - fbdf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbe0 - fbef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fbf0 - fbff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd00 - fd0f
=====================================================================
Found a 59 line (111 tokens) duplication in the following files: 
Starting at line 668 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 3521 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlatr.cxx

/* RES_PARATR_DROP */				OutHTML_CSS1Attr,
/* RES_PARATR_REGISTER */        	0, // neu:  Registerhaltigkeit
/* RES_PARATR_NUMRULE */      	    0, // Dummy:
/* RES_PARATR_SCRIPTSPACE */   	    0, // Dummy:
/* RES_PARATR_HANGINGPUNCTUATION */	0, // Dummy:
/* RES_PARATR_DUMMY1 */        	    0, // Dummy:
/* RES_PARATR_DUMMY2 */        	    0, // Dummy:
/* RES_PARATR_DUMMY3 */        	    0, // Dummy:
/* RES_PARATR_DUMMY4 */        	    0, // Dummy:
/* RES_PARATR_DUMMY5 */        	    0, // Dummy:
/* RES_PARATR_DUMMY6 */        	    0, // Dummy:
/* RES_PARATR_DUMMY7 */        	    0, // Dummy:
/* RES_PARATR_DUMMY8 */        	    0, // Dummy:


/* RES_FILL_ORDER	*/				0,
/* RES_FRM_SIZE	*/					0,
/* RES_PAPER_BIN	*/              0,
/* RES_LR_SPACE	*/                  0,
/* RES_UL_SPACE	*/                  0,
/* RES_PAGEDESC */					0,
/* RES_BREAK */						0,
/* RES_CNTNT */						0,
/* RES_HEADER */		   			0,
/* RES_FOOTER */		   			0,
/* RES_PRINT */						0,
/* RES_OPAQUE */					0,
/* RES_PROTECT */					0,
/* RES_SURROUND */					0,
/* RES_VERT_ORIENT */				0,
/* RES_HORI_ORIENT */				0,
/* RES_ANCHOR */					0,
/* RES_BACKGROUND */				0,
/* RES_BOX	*/                      0,
/* RES_SHADOW */					0,
/* RES_FRMMACRO */					0,
/* RES_COL */						0,
/* RES_KEEP */						0,
/* RES_URL */        	    		0,
/* RES_EDIT_IN_READONLY */        	0,
/* RES_LAYOUT_SPLIT */ 	    		0,
/* RES_FRMATR_DUMMY1 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY2 */        	    0, // Dummy:
/* RES_AUTO_STYLE */        	    0, // Dummy:
/* RES_FRMATR_DUMMY4 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY5 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY6 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY7 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY8 */        	    0, // Dummy:
/* RES_FRMATR_DUMMY9 */        	    0, // Dummy:
/* RES_FOLLOW_TEXT_FLOW */          0,
/* RES_WRAP_INFLUENCE_ON_OBJPOS */  0,
/* RES_FRMATR_DUMMY2 */             0, // Dummy:
/* RES_AUTO_STYLE */                0, // Dummy:
/* RES_FRMATR_DUMMY4 */             0, // Dummy:
/* RES_FRMATR_DUMMY5 */             0, // Dummy:

/* RES_GRFATR_MIRRORGRF	*/			0,
/* RES_GRFATR_CROPGRF	*/			0,
=====================================================================
Found a 4 line (111 tokens) duplication in the following files: 
Starting at line 569 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2400 - 240f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 2410 - 241f
    27,27,27,27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2420 - 242f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2430 - 243f
=====================================================================
Found a 4 line (111 tokens) duplication in the following files: 
Starting at line 566 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 608 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,24,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25c0 - 25cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25d0 - 25df
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25e0 - 25ef
    27,27,27,27,27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0,// 25f0 - 25ff
=====================================================================
Found a 4 line (111 tokens) duplication in the following files: 
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 360 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1120 - 112f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1130 - 113f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1140 - 114f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 5,// 1150 - 115f
=====================================================================
Found a 4 line (111 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
=====================================================================
Found a 6 line (111 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 475 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 18f0 - 18ff

     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e00 - 1e0f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e10 - 1e1f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e20 - 1e2f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 1e30 - 1e3f
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 471 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 921 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

    const double tolerance = 1e-06;
    for (i = 0; i < n; i++)
    {
      if ( fabs(A[i][i]) <= tolerance )
	return 0;
      Ainv[i][col] /= A[i][i];
    }

    // back substitution
    for (i = n-2; i >= 0; i--)
    {
      for (j = i+1; j < n; j++)
	Ainv[i][col] -= A[j][i]*Ainv[j][col];
    }
  }

  return 1;
}
=====================================================================
Found a 6 line (111 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     1, 2, 1, 2, 1, 2, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0,// 04f0 - 04ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0500 - 050f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0510 - 051f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0520 - 052f
     0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,// 0530 - 053f
=====================================================================
Found a 17 line (111 tokens) duplication in the following files: 
Starting at line 1867 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 1896 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx

				short						nOrientation;
				Point						aPt( pA->GetPoint() );

				if( aGDIFont.GetAlign() != ALIGN_BASELINE )
				{
					VirtualDevice aVDev;
					if( aGDIFont.GetAlign() == ALIGN_TOP )
						aPt.Y()+=(long)aVDev.GetFontMetric(aGDIFont).GetAscent();
					else
						aPt.Y()-=(long)aVDev.GetFontMetric(aGDIFont).GetDescent();
				}

				METSetMix(eGDIRasterOp);
				METSetColor(aGDIFont.GetColor());
				METSetBackgroundColor(aGDIFont.GetFillColor());
				METSetChrCellSize(aGDIFont.GetSize());
				METSetChrAngle( nOrientation = aGDIFont.GetOrientation() );
=====================================================================
Found a 36 line (111 tokens) duplication in the following files: 
Starting at line 505 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxdocumenthandler.cxx
Starting at line 649 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxdocumenthandler.cxx

	const OUString& /*aTarget*/, const OUString& /*aData*/ )
throw(	SAXException, RuntimeException )
{
}

void SAL_CALL OReadToolBoxDocumentHandler::setDocumentLocator(
	const Reference< XLocator > &xLocator)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );

	m_xLocator = xLocator;
}

::rtl::OUString OReadToolBoxDocumentHandler::getErrorLineString()
{
	ResetableGuard aGuard( m_aLock );

	char buffer[32];

	if ( m_xLocator.is() )
	{
		snprintf( buffer, sizeof(buffer), "Line: %ld - ", m_xLocator->getLineNumber() );
		return OUString::createFromAscii( buffer );
	}
	else
		return OUString();
}


//_________________________________________________________________________________________________________________
//	OWriteToolBoxDocumentHandler
//_________________________________________________________________________________________________________________

OWriteToolBoxDocumentHandler::OWriteToolBoxDocumentHandler( 
    const Reference< XIndexAccess >& rItemAccess,
=====================================================================
Found a 29 line (111 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/toolboxdocumenthandler.cxx
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/toolboxdocumenthandler.cxx

                        }                                

				m_bToolBarStartFound = sal_True;
			}
			break;

			case TB_ELEMENT_TOOLBARITEM:
			{
				if ( !m_bToolBarStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element 'toolbar:toolbaritem' must be embeded into element 'toolbar:toolbar'!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				if ( m_bToolBarSeparatorStartFound ||
					 m_bToolBarBreakStartFound ||
					 m_bToolBarSpaceStartFound ||
					 m_bToolBarItemStartFound )
				{
					OUString aErrorMessage = getErrorLineString();
					aErrorMessage += OUString( RTL_CONSTASCII_USTRINGPARAM( "Element toolbar:toolbaritem is not a container!" ));
					throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
				}

				OUString aAttribute;
				sal_Bool bAttributeURL	= sal_False;

				m_bToolBarItemStartFound = sal_True;
=====================================================================
Found a 36 line (111 tokens) duplication in the following files: 
Starting at line 428 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/statusbardocumenthandler.cxx
Starting at line 519 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/statusbardocumenthandler.cxx

	const OUString& /*aTarget*/, const OUString& /*aData*/ )
throw(	SAXException, RuntimeException )
{
}

void SAL_CALL OReadStatusBarDocumentHandler::setDocumentLocator(
	const Reference< XLocator > &xLocator)
throw(	SAXException, RuntimeException )
{
	ResetableGuard aGuard( m_aLock );
	
	m_xLocator = xLocator;
}

::rtl::OUString OReadStatusBarDocumentHandler::getErrorLineString()
{
	ResetableGuard aGuard( m_aLock );
	
	char buffer[32];

	if ( m_xLocator.is() )
	{
		snprintf( buffer, sizeof(buffer), "Line: %ld - ", m_xLocator->getLineNumber() );
		return OUString::createFromAscii( buffer );
	}
	else
		return OUString();
}


//_________________________________________________________________________________________________________________
//	OWriteStatusBarDocumentHandler
//_________________________________________________________________________________________________________________

OWriteStatusBarDocumentHandler::OWriteStatusBarDocumentHandler(
    const Reference< XIndexAccess >& aStatusBarItems,
=====================================================================
Found a 15 line (111 tokens) duplication in the following files: 
Starting at line 944 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 1751 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx

bool WriteMenuBarXML( osl::File& rFile, Menu* pMenu, MODULES eModule, int nLevel )
{
   OUString aCmd( RTL_CONSTASCII_USTRINGPARAM( ".uno:" ));

    for ( unsigned short n = 0; n < pMenu->GetItemCount(); n++ )
    {
        unsigned short nId = pMenu->GetItemId( n );
        if ( pMenu->GetItemType( n ) != MENUITEM_SEPARATOR )
        {
            OUString aLabel( pMenu->GetItemText( nId ));
            OUString aCommand( pMenu->GetItemCommand( nId ));
            bool     bHasUnoCommand( aCommand.getLength() > 0 && ( aCommand.indexOf( aCmd ) == 0 ));

            if ( pMenu->GetPopupMenu( nId ) != 0 )
            {
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFolderPicker.cxx
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkPicker.cxx

void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const rtl::OUString& aDirectory ) 
	throw( lang::IllegalArgumentException, uno::RuntimeException )
{
	OSL_ASSERT( m_pDialog != NULL );
	::vos::OGuard aGuard( Application::GetSolarMutex() );

	OString aTxt = unicodetouri(aDirectory);

	if( aTxt.lastIndexOf('/') == aTxt.getLength() - 1 )
		aTxt = aTxt.copy( 0, aTxt.getLength() - 1 );

	OSL_TRACE( "setting path to %s\n", aTxt.getStr() );

	gtk_file_chooser_set_current_folder_uri( GTK_FILE_CHOOSER( m_pDialog ),
						 aTxt.getStr() );
}

rtl::OUString SAL_CALL SalGtkPicker::implgetDisplayDirectory() throw( uno::RuntimeException )
=====================================================================
Found a 6 line (111 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     1, 2, 1, 2, 1, 2, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0,// 04f0 - 04ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0500 - 050f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0510 - 051f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0520 - 052f
     0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,// 0530 - 053f
=====================================================================
Found a 19 line (111 tokens) duplication in the following files: 
Starting at line 587 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 428 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

HRESULT CSOActiveX::CallDispatch1PBool( OLECHAR* sUrl, OLECHAR* sArgName, BOOL sArgVal )
{
	CComPtr<IDispatch> pdispURL;
	HRESULT hr = GetUrlStruct( sUrl, pdispURL );
	if( !SUCCEEDED( hr ) ) return hr;

	CComPtr<IDispatch> pdispXDispatch;
	CComVariant aArgs[3];
	aArgs[2] = CComVariant( pdispURL );
	aArgs[1] = CComVariant( L"" );
	aArgs[0] = CComVariant( (int)0 );
	hr = GetIDispByFunc( mpDispFrame, 
						 L"queryDispatch", 
						 aArgs, 
						 3, 
						 pdispXDispatch );
	if( !SUCCEEDED( hr ) ) return hr;

	SAFEARRAY FAR* pPropVals = SafeArrayCreateVector( VT_DISPATCH, 0, 1 );
=====================================================================
Found a 16 line (111 tokens) duplication in the following files: 
Starting at line 677 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/ed_ipersiststr.cxx
Starting at line 853 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/ed_ipersiststr.cxx

				hr = m_pExtStream->Seek( aZero, STREAM_SEEK_SET, &nNewPos );
				if ( SUCCEEDED( hr ) )
				{
					SIZEL aSize;
					hr = m_pDocHolder->GetExtent( &aSize );

					if ( SUCCEEDED( hr ) )
					{
						sal_uInt32 nWritten;
						sal_Int8 aInf[EXT_STREAM_LENGTH];
						*((sal_Int32*)aInf) = 0;
						*((sal_Int32*)&aInf[4]) = 0;
						*((sal_Int32*)&aInf[8]) = aSize.cx;
						*((sal_Int32*)&aInf[12]) = aSize.cy;

						hr = m_pExtStream->Write( (void*)aInf, EXT_STREAM_LENGTH, &nWritten );
=====================================================================
Found a 17 line (111 tokens) duplication in the following files: 
Starting at line 590 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/bmp.cxx
Starting at line 619 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/bmp.cxx

    sal_uInt32 nWidth	= readLE32( pData+4 );
    sal_uInt32 nHeight	= readLE32( pData+8 );

    const sal_uInt8* pBMData = pData + readLE32( pData );
    sal_uInt32 nScanlineSize = nWidth*3;
    // adjust scan lines to begin on %4 boundaries
    if( nScanlineSize & 3 )
    {
        nScanlineSize &= 0xfffffffc;
        nScanlineSize += 4;
    }

    for( int y = 0; y < (int)nHeight; y++ )
    {
        const sal_uInt8* pScanline = pBMData + (nHeight-1-(sal_uInt32)y)*nScanlineSize;
        for( int x = 0; x < (int)nWidth; x++ )
        {
=====================================================================
Found a 12 line (111 tokens) duplication in the following files: 
Starting at line 236 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/app/AppControllerDnD.cxx
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/TableCopyHelper.cxx

using namespace ::svx;
//	using namespace ::svtools;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::task;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::ucb;
=====================================================================
Found a 13 line (111 tokens) duplication in the following files: 
Starting at line 536 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
Starting at line 1511 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/SingleSelectQueryComposer.cxx

		OSL_ENSURE(xColumn->getPropertySetInfo()->hasPropertyByName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AggregateFunction"))),"Property AggregateFunctionnot available!");

		::rtl::OUString sRealName,sTableName;
		xColumn->getPropertyValue(PROPERTY_REALNAME)	>>= sRealName;
		xColumn->getPropertyValue(PROPERTY_TABLENAME)	>>= sTableName;
		if(sTableName.indexOf('.',0) != -1)
		{
			::rtl::OUString aCatlog,aSchema,aTable;
			::dbtools::qualifiedNameComponents(m_xMetaData,sTableName,aCatlog,aSchema,aTable,::dbtools::eInDataManipulation);
			sTableName = ::dbtools::composeTableName( m_xMetaData, aCatlog, aSchema, aTable, sal_True, ::dbtools::eInDataManipulation );
		}
		else
			sTableName = ::dbtools::quoteName(aQuote,sTableName);
=====================================================================
Found a 52 line (111 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/source/typelib/static_types.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/source/typelib/typelib.cxx

using namespace osl;


//------------------------------------------------------------------------
//------------------------------------------------------------------------
#ifdef SAL_W32
#pragma pack(push, 8)
#elif defined(SAL_OS2)
#pragma pack(8)
#endif

/**
 * The double member determin the alignment.
 * Under Os2 and MS-Windows the Alignment is min( 8, sizeof( type ) ).
 * The aligment of a strukture is min( 8, sizeof( max basic type ) ), the greatest basic type
 * determine the aligment.
 */
struct AlignSize_Impl
{
	sal_Int16	nInt16;
	double		dDouble;
};

#ifdef SAL_W32
#pragma pack(pop)
#elif defined(SAL_OS2)
#pragma pack()
#endif

// the value of the maximal alignment
static sal_Int32 nMaxAlignment = (sal_Int32)( (sal_Size)(&((AlignSize_Impl *) 16)->dDouble) - 16);

static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
	SAL_THROW( () )
{
	if( nRequestedAlignment > nMaxAlignment )
		nRequestedAlignment = nMaxAlignment;
	return nRequestedAlignment;
}

/**
 * Calculate the new size of the struktur.
 */
static inline sal_Int32 newAlignedSize(
	sal_Int32 OldSize, sal_Int32 ElementSize, sal_Int32 NeededAlignment )
	SAL_THROW( () )
{
	NeededAlignment = adjustAlignment( NeededAlignment );
	return (OldSize + NeededAlignment -1) / NeededAlignment * NeededAlignment + ElementSize;
}

static inline sal_Bool reallyWeak( typelib_TypeClass eTypeClass )
=====================================================================
Found a 19 line (111 tokens) duplication in the following files: 
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx
Starting at line 728 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/PreparedStatement.cxx

void SAL_CALL java_sql_PreparedStatement::clearBatch(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
    SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
	if( t.pEnv ){
		createStatement(t.pEnv);

		// temporaere Variable initialisieren
		static const char * cSignature = "()V";
		static const char * cMethodName = "clearBatch";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			t.pEnv->CallVoidMethod( object, mID);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
		} //mID
	} //t.pEnv
}
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 1777 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx
Starting at line 1821 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/Awrapado.cxx

												  const ::rtl::OUString& tableNamePattern )
{
	HRESULT hr = S_OK;
	SAFEARRAYBOUND rgsabound[1];
	SAFEARRAY *psa = NULL;
	OLEVariant varCriteria[5];

	// Create SafeArray Bounds and initialize the array
	rgsabound[0].lLbound   = 0;
	rgsabound[0].cElements = sizeof varCriteria / sizeof varCriteria[0];
	psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

	sal_Int32 nPos=0;
	if(catalog.hasValue())
		varCriteria[nPos].setString(::comphelper::getString(catalog));

	hr = SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
	if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
=====================================================================
Found a 19 line (111 tokens) duplication in the following files: 
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx

		throwFunctionSequenceException(*this);
}
// -------------------------------------------------------------------------

sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const ::rtl::OUString& columnName ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed );


	Reference< XResultSetMetaData > xMeta = getMetaData();
	sal_Int32 nLen = xMeta->getColumnCount();
	sal_Int32 i = 1;
	for(;i<=nLen;++i)
		if(xMeta->isCaseSensitive(i) ? columnName == xMeta->getColumnName(i) :
			columnName.equalsIgnoreAsciiCase(xMeta->getColumnName(i)))
			break;
	return i;
}
=====================================================================
Found a 21 line (111 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgadmin.cxx
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/apitest/cfgapi.cxx

	_rUnoValue <<= _rAsciiString.getStr();
}

//=============================================================================
void test_read_access(Reference< XInterface >& xIface, Reference< XMultiServiceFactory > &xMSF);
//=============================================================================
struct prompt_and_wait
{
	char const* myText;
	prompt_and_wait(char const* text = "") : myText(text) {}
	~prompt_and_wait() 
	{
		cout << myText << ">" << endl;
		int const mx = int( (+0u - +1u) >> 1);

		char c=0; 
		if (cin.get(c) && c != '\n')
			cin.ignore(mx,'\n'); 
	}
}; 
static prompt_and_wait exit_prompt("Quitting\nQ");
=====================================================================
Found a 35 line (111 tokens) duplication in the following files: 
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/backendhelper/componentdf.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/platformbe/componentdefn.cxx

        SystemIntegrationManager::getServiceNames,
        cppu::createSingleComponentFactory,
        NULL,
        0
    },
	{ NULL, NULL, NULL, NULL, NULL, 0 }
} ;
//------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /* ppEnv */
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//------------------------------------------------------------------------------

extern "C" sal_Bool SAL_CALL component_writeInfo(void *aServiceManager,
                                                 void *aRegistryKey) {
    return cppu::component_writeInfoHelper(aServiceManager, 
                                           aRegistryKey,
                                           kImplementations_entries) ;
}
//------------------------------------------------------------------------------

extern "C" void *component_getFactory(const sal_Char *aImplementationName,
                                      void *aServiceManager,
                                      void *aRegistryKey) {
    return cppu::component_getFactoryHelper(aImplementationName,
                                            aServiceManager,
                                            aRegistryKey,
                                            kImplementations_entries) ;
}
=====================================================================
Found a 32 line (111 tokens) duplication in the following files: 
Starting at line 1303 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

OString	IdlType::checkSpecialIdlType(const OString& type)
{
	OString baseType(type);

	RegistryTypeReaderLoader & rReaderLoader = getRegistryTypeReaderLoader();

	RegistryKey 	key;
	sal_uInt8*		pBuffer=NULL;
	RTTypeClass 	typeClass;
	sal_Bool 		isTypeDef = (m_typeMgr.getTypeClass(baseType) == RT_TYPE_TYPEDEF);
	TypeReader		reader;

	while (isTypeDef)
	{
		reader = m_typeMgr.getTypeReader(baseType);

		if (reader.isValid())
		{
			typeClass = reader.getTypeClass();

			if (typeClass == RT_TYPE_TYPEDEF)
				baseType = reader.getSuperTypeName();
			else
				isTypeDef = sal_False;
		} else
		{
			break;
		}
	}

	return baseType;
}
=====================================================================
Found a 25 line (111 tokens) duplication in the following files: 
Starting at line 578 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx

		VtableSlot aVtableSlot(
				getVtableSlot(
					reinterpret_cast<
					typelib_InterfaceMethodTypeDescription const * >(
						pMemberDescr)));
		
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->getBridge()->getUnoEnv()->getRegisteredInterface)(
=====================================================================
Found a 17 line (111 tokens) duplication in the following files: 
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx

	OSL_ENSURE( sizeof(void *) == sizeof(sal_Int32), "### unexpected size!" );
	// args
	void ** pCppArgs  = (void **)alloca( 3 * sizeof(void *) * nParams );
	// indizes of values this have to be converted (interface conversion cpp<=>uno)
	sal_Int32 * pTempIndizes = (sal_Int32 *)(pCppArgs + nParams);
	// type descriptions for reconversions
	typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
	
	sal_Int32 nTempIndizes   = 0;
	
	for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
	{
		const typelib_MethodParameter & rParam = pParams[nPos];
		typelib_TypeDescription * pParamTypeDescr = 0;
		TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
		
		if (!rParam.bOut && cppu_isSimpleType( pParamTypeDescr ))
=====================================================================
Found a 25 line (111 tokens) duplication in the following files: 
Starting at line 362 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx

		VtableSlot aVtableSlot(
				getVtableSlot(
					reinterpret_cast<
					typelib_InterfaceMethodTypeDescription const * >(
						pMemberDescr)));
		
		switch (aVtableSlot.index)
		{
			// standard calls
		case 1: // acquire uno interface
			(*pUnoI->acquire)( pUnoI );
			*ppException = 0;
			break;
		case 2: // release uno interface
			(*pUnoI->release)( pUnoI );
			*ppException = 0;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
			if (pTD)
			{
                uno_Interface * pInterface = 0;
                (*pThis->getBridge()->getUnoEnv()->getRegisteredInterface)(
=====================================================================
Found a 24 line (111 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx

  	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion

	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
                   ? alloca( pReturnTypeDescr->nSize )
                   : pUnoReturn); // direct way
			pCppStack += sizeof(void *);
		}
	}
	// push this
    void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
        + aVtableSlot.offset;
	*(void**)pCppStack = pAdjustedThisPtr;
	pCppStack += sizeof( void* );
=====================================================================
Found a 17 line (111 tokens) duplication in the following files: 
Starting at line 1608 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx
Starting at line 1657 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx

    safeParamsBase_xOffset = curr_Offset;
    for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
    {
        Bezier c( someCurves[i] );
        
        c.p0.x += safeParamsBase_xOffset;
        c.p1.x += safeParamsBase_xOffset;
        c.p2.x += safeParamsBase_xOffset;
        c.p3.x += safeParamsBase_xOffset;

        Polygon2D poly(4);
        poly[0] = c.p0;
        poly[1] = c.p1;
        poly[2] = c.p2;
        poly[3] = c.p3;

        double t1, t2;
=====================================================================
Found a 16 line (111 tokens) duplication in the following files: 
Starting at line 1057 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside2b.cxx
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/brkpnts.cxx

		aMarker = pImages->GetImage( IMGID_STEPMARKER );

	Size aMarkerSz( aMarker.GetSizePixel() );
	aMarkerSz = PixelToLogic( aMarkerSz );
	Point aMarkerOff( 0, 0 );
	aMarkerOff.X() = ( aOutSz.Width() - aMarkerSz.Width() ) / 2;
	aMarkerOff.Y() = ( nLineHeight - aMarkerSz.Height() ) / 2;

	ULONG nY = nMarkerPos*nLineHeight - nCurYOffset;
	Point aPos( 0, nY );
	aPos += aMarkerOff;
	if ( bShow )
		DrawImage( aPos, aMarker );
	else
		Invalidate( Rectangle( aPos, aMarkerSz ) );
}
=====================================================================
Found a 16 line (111 tokens) duplication in the following files: 
Starting at line 187 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/viewer/mediaevent_impl.cxx
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/avmedia/source/viewer/mediaevent_impl.cxx

void SAL_CALL MediaEventListenersImpl::mouseMoved( const ::com::sun::star::awt::MouseEvent& e )
    throw (::com::sun::star::uno::RuntimeException)
{
    const ::osl::MutexGuard aGuard( maMutex );
    const ::vos::OGuard aAppGuard( Application::GetSolarMutex() );

    if( mpNotifyWindow )
    {
        MouseEvent aVCLMouseEvt( Point( e.X, e.Y ), 0, 0, e.Buttons, e.Modifiers );
        Application::PostMouseEvent( VCLEVENT_WINDOW_MOUSEMOVE, reinterpret_cast< ::Window* >( mpNotifyWindow ), &aVCLMouseEvt );
    }
}

// ---------------------------------------------------------------------

void SAL_CALL MediaEventListenersImpl::focusGained( const ::com::sun::star::awt::FocusEvent& /* e */ )
=====================================================================
Found a 18 line (111 tokens) duplication in the following files: 
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessiblemenuitem.cxx
Starting at line 647 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx

		Reference< datatransfer::clipboard::XClipboard > xClipboard = m_pStatusBar->GetClipboard();
		if ( xClipboard.is() )
		{
			::rtl::OUString sText( getTextRange( nStartIndex, nEndIndex ) );

			::vcl::unohelper::TextDataObject* pDataObj = new ::vcl::unohelper::TextDataObject( sText );
			const sal_uInt32 nRef = Application::ReleaseSolarMutex();
			xClipboard->setContents( pDataObj, NULL );

			Reference< datatransfer::clipboard::XFlushableClipboard > xFlushableClipboard( xClipboard, uno::UNO_QUERY );
			if( xFlushableClipboard.is() )
				xFlushableClipboard->flushClipboard();
			
			Application::AcquireSolarMutex( nRef );

			bReturn = sal_True;
		}
	}
=====================================================================
Found a 24 line (111 tokens) duplication in the following files: 
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessibletabbarpage.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/accessiblemenubasecomponent.cxx

void OAccessibleMenuBaseComponent::SetEnabled( sal_Bool bEnabled )
{
	if ( m_bEnabled != bEnabled )
	{
        Any aOldValue[2], aNewValue[2];
		if ( m_bEnabled )
        {
            aOldValue[0] <<= AccessibleStateType::SENSITIVE;
            aOldValue[1] <<= AccessibleStateType::ENABLED;
        }
		else
        {
            aNewValue[0] <<= AccessibleStateType::ENABLED;
            aNewValue[1] <<= AccessibleStateType::SENSITIVE;
        }
		m_bEnabled = bEnabled;
        NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue[0], aNewValue[0] );
        NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue[1], aNewValue[1] );
	}
}

// -----------------------------------------------------------------------------

void OAccessibleMenuBaseComponent::SetFocused( sal_Bool bFocused )
=====================================================================
Found a 28 line (111 tokens) duplication in the following files: 
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessibletabbar.cxx
Starting at line 489 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/accessibility/accessibledialogwindow.cxx

			aOldValue <<= AccessibleStateType::ACTIVE;
			NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
		}
		break;
		case VCLEVENT_WINDOW_GETFOCUS:
		{
			aNewValue <<= AccessibleStateType::FOCUSED;
			NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
		}
		break;
		case VCLEVENT_WINDOW_LOSEFOCUS:
		{
			aOldValue <<= AccessibleStateType::FOCUSED;
			NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
		}
		break;
		case VCLEVENT_WINDOW_SHOW:
		{
			aNewValue <<= AccessibleStateType::SHOWING;
			NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );							
		}
		break;
		case VCLEVENT_WINDOW_HIDE:
		{
			aOldValue <<= AccessibleStateType::SHOWING;
			NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );				
		}
		break;
=====================================================================
Found a 9 line (110 tokens) duplication in the following files: 
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/doctok/DocTokTestService.cxx
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/odsl/ODSLParser.cxx

	uno::Sequence<uno::Any> aUcbInitSequence(2);
	aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
	aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
	uno::Reference<lang::XMultiServiceFactory> xServiceFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW);
	uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
    if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
	{
		// construct an URL of the input file name
		rtl::OUString arg=aArguments[0];
=====================================================================
Found a 18 line (110 tokens) duplication in the following files: 
Starting at line 6220 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/doctok/resources.cxx
Starting at line 6702 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/doctok/resources.cxx

                rHandler.attribute(NS_rtf::LN_BPP, *pVal);
            }
            {
                WW8Value::Pointer_t pVal = createValue(get_brcTop());
                rHandler.attribute(NS_rtf::LN_BRCTOP, *pVal);
            }
            {
                WW8Value::Pointer_t pVal = createValue(get_brcLeft());
                rHandler.attribute(NS_rtf::LN_BRCLEFT, *pVal);
            }
            {
                WW8Value::Pointer_t pVal = createValue(get_brcBottom());
                rHandler.attribute(NS_rtf::LN_BRCBOTTOM, *pVal);
            }
            {
                WW8Value::Pointer_t pVal = createValue(get_brcRight());
                rHandler.attribute(NS_rtf::LN_BRCRIGHT, *pVal);
            }
=====================================================================
Found a 18 line (110 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 469 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 35 line (110 tokens) duplication in the following files: 
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 611 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

                        if(fg[order_type::B] > fg[order_type::A]) fg[order_type::B] = fg[order_type::A];
                    }
                }

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)fg[order_type::A];
                ++span;
                ++base_type::interpolator();

            } while(--len);

            return base_type::allocator().span();
        }
    };













    //================================================span_image_filter_rgba
    template<class ColorT,
             class Order, 
             class Interpolator,
             class Allocator = span_allocator<ColorT> > 
    class span_image_filter_rgba : 
=====================================================================
Found a 20 line (110 tokens) duplication in the following files: 
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_gray.h
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_gray.h

        void blend_solid_vspan(int x, int y,
                               unsigned len, 
                               const color_type& c,
                               const int8u* covers)
        {
            if (c.a)
            {
                value_type* p = (value_type*)m_rbuf->row(y) + x * Step + Offset;
                do 
                {
                    calc_type alpha = (calc_type(c.a) * (calc_type(*covers) + 1)) >> 8;
                    if(alpha == base_mask)
                    {
                        *p = c.v;
                    }
                    else
                    {
                        Blender::blend_pix(p, c.v, alpha, *covers);
                    }
                    p = (value_type*)m_rbuf->next_row(p);
=====================================================================
Found a 17 line (110 tokens) duplication in the following files: 
Starting at line 1754 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 1850 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

		pStyle->importFontStyle( xControlModel );
	}
	
	ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
	ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
							   OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
							   _xAttributes );
	ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
							  OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
							  _xAttributes );
	ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
                             OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
                             _xAttributes );
    ctx.importVerticalAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
                                     OUString( RTL_CONSTASCII_USTRINGPARAM("valign") ),
                                     _xAttributes );
    ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DefaultButton") ),
=====================================================================
Found a 16 line (110 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 1050 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

		OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFixedTextModel") ) );
	
	Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
	if (xStyle.is())
	{
		StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () );
		Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
		pStyle->importBackgroundColorStyle( xControlModel );
		pStyle->importTextColorStyle( xControlModel );
		pStyle->importTextLineColorStyle( xControlModel );
		pStyle->importBorderStyle( xControlModel );
		pStyle->importFontStyle( xControlModel );
	}
	
	ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
	ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
=====================================================================
Found a 20 line (110 tokens) duplication in the following files: 
Starting at line 610 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 636 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 661 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 686 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

	lRet = ::RegOpenKeyEx(hKey, CXMergeFilter::m_pszPXLImportCLSID, 0, KEY_ALL_ACCESS, &hDataKey);
	if (lRet != ERROR_SUCCESS)
		return _signalRegError(lRet, hKey, hDataKey);


	while ((lRet = ::RegEnumKeyEx(hDataKey, 0, szKeyName, &dwKeyName, 0, szClassName, &dwClassName, NULL))
				!= ERROR_NO_MORE_ITEMS)
	{
		lRet = ::RegDeleteKey(hDataKey, szKeyName);

		::lstrcpy(szKeyName, "\0");
		::lstrcpy(szClassName, "\0");

		dwClassName = _MAX_PATH;
		dwKeyName   = _MAX_PATH;
	}

	::RegCloseKey(hDataKey);  hDataKey = NULL;

	lRet = ::RegDeleteKey(hKey, CXMergeFilter::m_pszPXLImportCLSID);
=====================================================================
Found a 6 line (110 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawcaption_mask.h
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawfreehand_mask.h

static char drawfreehand_mask_bits[] = {
   0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00,
   0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00,
   0x80, 0x03, 0x00, 0x00, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0x01, 0x00,
   0xff, 0xff, 0x01, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00,
   0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x08,
=====================================================================
Found a 5 line (110 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/detective_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/detective_mask.h

 0xc0,0xff,0x07,0x00,0x80,0xff,0x03,0x00,0x80,0xff,0x03,0x00,0x00,0xff,0x07,
 0x00,0x00,0x7c,0x0e,0x00,0x00,0x00,0x1c,0x00,0x00,0x10,0x38,0x00,0x00,0x38,
 0x70,0x00,0x00,0x10,0x60,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (110 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

 0x7e,0x7c,0x00,0x00,0x78,0x7c,0x00,0x00,0x70,0x38,0x00,0x00,0xc0,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (110 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h

 0xc0,0x07,0x00,0x00,0xc0,0x07,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x03,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 15 line (110 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salobj.h
Starting at line 68 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salobj.h

    virtual ~WinSalObject();

	virtual void					ResetClipRegion();
	virtual USHORT					GetClipRegionType();
	virtual void					BeginSetClipRegion( ULONG nRects );
	virtual void					UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
	virtual void					EndSetClipRegion();
	virtual void					SetPosSize( long nX, long nY, long nWidth, long nHeight );
	virtual void					Show( BOOL bVisible );
	virtual void					Enable( BOOL nEnable );
	virtual void					GrabFocus();
	virtual void					SetBackground();
	virtual void					SetBackground( SalColor nSalColor );
	virtual const SystemEnvData*	GetSystemData() const;
};
=====================================================================
Found a 16 line (110 tokens) duplication in the following files: 
Starting at line 314 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salgdi.h
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salgdi.h

                                    const SalBitmap& rTransparentBitmap );
    virtual void		drawMask( const SalTwoRect* pPosAry,
                                  const SalBitmap& rSalBitmap,
                                  SalColor nMaskColor );

    virtual SalBitmap*	getBitmap( long nX, long nY, long nWidth, long nHeight );
    virtual SalColor	getPixel( long nX, long nY );

    // invert --> ClipRegion (only Windows or VirDevs)
    virtual void		invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
    virtual void		invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );

    virtual BOOL		drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );

    // native widget rendering methods that require mirroring
    virtual BOOL        hitTestNativeControl( ControlType nType, ControlPart nPart, const Region& rControlRegion,
=====================================================================
Found a 31 line (110 tokens) duplication in the following files: 
Starting at line 1079 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 1239 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

        psp::PrinterInfoManager::get();
        return;
    }
    
    if( nActiveJobs < 1 )
        doUpdate();
    else if( ! pPrinterUpdateTimer )
    {
        pPrinterUpdateTimer = new Timer();
        pPrinterUpdateTimer->SetTimeout( 500 );
        pPrinterUpdateTimer->SetTimeoutHdl( STATIC_LINK( NULL, vcl_sal::PrinterUpdate, UpdateTimerHdl ) );
        pPrinterUpdateTimer->Start();
    }
}

// -----------------------------------------------------------------------

void vcl_sal::PrinterUpdate::jobEnded()
{
    nActiveJobs--;
    if( nActiveJobs < 1 )
    {
        if( pPrinterUpdateTimer )
        {
            pPrinterUpdateTimer->Stop();
            delete pPrinterUpdateTimer;
            pPrinterUpdateTimer = NULL;
            doUpdate();
        }
    }
}
=====================================================================
Found a 10 line (110 tokens) duplication in the following files: 
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx
Starting at line 1221 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

		ImplCalcHatchValues( aRect, nWidth, rHatch.GetAngle() + 900, aPt1, aPt2, aInc, aEndPt1 );
		do
		{
			ImplDrawHatchLine( Line( aPt1, aPt2 ), rPolyPoly, pPtBuffer, bMtf );
			aPt1.X() += aInc.Width(); aPt1.Y() += aInc.Height();
			aPt2.X() += aInc.Width(); aPt2.Y() += aInc.Height();
		}
		while( ( aPt1.X() <= aEndPt1.X() ) && ( aPt1.Y() <= aEndPt1.Y() ) );

		if( rHatch.GetStyle() == HATCH_TRIPLE )
=====================================================================
Found a 26 line (110 tokens) duplication in the following files: 
Starting at line 1293 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/scrbar.cxx
Starting at line 907 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/slider.cxx

void Slider::StateChanged( StateChangedType nType )
{
	Control::StateChanged( nType );

	if ( nType == STATE_CHANGE_INITSHOW )
		ImplCalc( FALSE );
	else if ( nType == STATE_CHANGE_DATA )
	{
		if ( IsReallyVisible() && IsUpdateMode() )
			ImplCalc( TRUE );
	}
	else if ( nType == STATE_CHANGE_UPDATEMODE )
	{
		if ( IsReallyVisible() && IsUpdateMode() )
		{
			ImplCalc( FALSE );
			Invalidate();
		}
	}
	else if ( nType == STATE_CHANGE_ENABLE )
	{
		if ( IsReallyVisible() && IsUpdateMode() )
			Invalidate();
	}
	else if ( nType == STATE_CHANGE_STYLE )
	{
=====================================================================
Found a 28 line (110 tokens) duplication in the following files: 
Starting at line 1889 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx
Starting at line 789 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

                    }
				}
                catch ( beans::UnknownPropertyException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::WrappedTargetException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( beans::PropertyVetoException const & e )
				{
                    aRet[ n ] <<= e;
				}
                catch ( lang::IllegalArgumentException const & e )
				{
                    aRet[ n ] <<= e;
				}
			}
            else
            {
                aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
            }
		}
	}
=====================================================================
Found a 27 line (110 tokens) duplication in the following files: 
Starting at line 361 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_datasupplier.cxx
Starting at line 337 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx

    rtl::Reference< ::ucbhelper::ResultSet > xResultSet = getResultSet().get();
    if ( xResultSet.is() )
	{
		// Callbacks follow!
		aGuard.clear();

		if ( nOldCount < m_pImpl->m_aResults.size() )
			xResultSet->rowCountChanged(
									nOldCount, m_pImpl->m_aResults.size() );

		if ( m_pImpl->m_bCountFinal )
			xResultSet->rowCountFinal();
	}

	return bFound;
}

//=========================================================================
// virtual
sal_uInt32 DataSupplier::totalCount()
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( m_pImpl->m_bCountFinal )
		return m_pImpl->m_aResults.size();

	sal_uInt32 nOldCount = m_pImpl->m_aResults.size();
=====================================================================
Found a 28 line (110 tokens) duplication in the following files: 
Starting at line 1024 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 1889 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

                            }
                        }
                        catch ( beans::UnknownPropertyException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( lang::WrappedTargetException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( beans::PropertyVetoException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                        catch ( lang::IllegalArgumentException const & e )
                        {
                            aRet[ n ] <<= e;
                        }
                    }
                    else
                    {
                        aRet[ n ] <<= uno::Exception(
                                rtl::OUString::createFromAscii(
                                    "No property set for storing the value!" ),
                                static_cast< cppu::OWeakObject * >( this ) );
                    }
                }
            }
=====================================================================
Found a 30 line (110 tokens) duplication in the following files: 
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/directory.cxx
Starting at line 375 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

									queryContentIdentifierString( nIndex ) );
		m_pImpl->m_aResults[ nIndex ]->xRow = xRow;
		return xRow;
	}

	return uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
		m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::close()
{
}

//=========================================================================
// virtual
void DataSupplier::validate()
	throw( ucb::ResultSetException )
{
}
=====================================================================
Found a 29 line (110 tokens) duplication in the following files: 
Starting at line 2233 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/export.cxx
Starting at line 2280 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/export.cxx

						sOutput += "Title";
                        //if ( !sCur.EqualsIgnoreCaseAscii("en-US") ) {
						if ( ! Export::isSourceLanguage( sCur ) ) {
							sOutput += "[ ";
							sOutput += sCur;
							sOutput += " ] ";
						}
						sOutput += "= ";
                        ConvertMergeContent( sText );
						sOutput += sText;
						if ( bDefine )
							sOutput += ";\\\n";
						else if ( !bNextMustBeDefineEOL )
							sOutput += ";\n";
						else
							bAddSemikolon = TRUE;
						for ( USHORT j = 1; j < nLevel; j++ )
							sOutput += "\t";
						WriteToMerged( sOutput ,true );
					}
				}
				if ( bAddSemikolon ) {
					ByteString sOutput( ";" );
					WriteToMerged( sOutput ,false);
				}
			}
			// Merge Lists

			if ( pResData->bList ) {
=====================================================================
Found a 15 line (110 tokens) duplication in the following files: 
Starting at line 994 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindow.cxx
Starting at line 1015 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindow.cxx

        case VCLEVENT_WINDOW_DOCKING:
        {
        	if ( mxDockableWindowListener.is() )
        	{
                DockingData *pData = (DockingData*)rVclWindowEvent.GetData();

                if( pData )
                {
        		    ::com::sun::star::awt::DockingEvent aEvent;
        		    aEvent.Source = (::cppu::OWeakObject*)this;
                    aEvent.TrackingRectangle = AWTRectangle( pData->maTrackRect );
                    aEvent.MousePos.X = pData->maMousePos.X();
                    aEvent.MousePos.Y = pData->maMousePos.Y();
                    aEvent.bLiveMode = pData->mbLivemode;
                    aEvent.bInteractive = pData->mbInteractive;
=====================================================================
Found a 24 line (110 tokens) duplication in the following files: 
Starting at line 1602 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 1647 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    memset( pPieceGrpprls, 0, ( nGrpprl + 1 ) * sizeof(BYTE *) );
    nPieceGrpprls = nGrpprl;
    INT16 nAktGrpprl = 0;                       // lies Grpprls ein
    while( 1 )
    {
        *pStr >> clxt;
        nLeft--;
        if( 2 == clxt)                          // PLCFfpcd ?
            break;                              // PLCFfpcd gefunden
        UINT16 nLen;
        *pStr >> nLen;
        nLeft -= 2 + nLen;
        if( nLeft < 0 )
            return 0;                           // schiefgegangen
        if( 1 == clxt )                         // clxtGrpprl ?
        {
            BYTE* p = new BYTE[nLen+2];         // alloziere
            ShortToSVBT16(nLen, p);             // trage Laenge ein
            pStr->Read( p+2, nLen );            // lies grpprl
            pPieceGrpprls[nAktGrpprl++] = p;    // trage in Array ein
        }
        else
            pStr->SeekRel( nLen );              // ueberlies nicht-Grpprl
    }
=====================================================================
Found a 17 line (110 tokens) duplication in the following files: 
Starting at line 2404 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoobj.cxx
Starting at line 2457 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoobj.cxx

			Any *pAny = aRet.getArray();
			for ( sal_Int32 i = 0; i < nCount; i++)
			{
				pSaveMap = pMap;
				pMap = SfxItemPropertyMap::GetByName( pMap, pNames[i]);
				if(!pMap)
				{
					if(pNames[i].equalsAsciiL( SW_PROP_NAME(UNO_NAME_IS_SKIP_HIDDEN_TEXT)) ||
					   pNames[i].equalsAsciiL( SW_PROP_NAME(UNO_NAME_IS_SKIP_PROTECTED_TEXT)))
					{
						pMap = pSaveMap;
						continue;
					}
					else
						throw UnknownPropertyException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + pNames[i], static_cast < cppu::OWeakObject * > ( 0 ) );
				}
				if(pMap->nWID < RES_FRMATR_END)
=====================================================================
Found a 18 line (110 tokens) duplication in the following files: 
Starting at line 929 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/tblsel.cxx
Starting at line 2201 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/tblsel.cxx

	for ( USHORT i = 0; i < aUnions.Count(); ++i )
	{
		SwSelUnion *pUnion = aUnions[i];
		const SwTabFrm *pTable = pUnion->GetTable();

        // Skip any repeated headlines in the follow:
        const SwLayoutFrm* pRow = pTable->IsFollow() ?
                                  pTable->GetFirstNonHeadlineRow() :
                                  (const SwLayoutFrm*)pTable->Lower();

		while ( pRow )
		{
			if ( pRow->Frm().IsOver( pUnion->GetUnion() ) )
			{
				const SwLayoutFrm *pCell = pRow->FirstCell();

				while ( pCell && pRow->IsAnLower( pCell ) )
				{
=====================================================================
Found a 28 line (110 tokens) duplication in the following files: 
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unopage.cxx
Starting at line 116 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshcol.cxx

void SvxShapeCollection::dispose()
	throw(::com::sun::star::uno::RuntimeException)
{
	// An frequently programming error is to release the last
	// reference to this object in the disposing message.
	// Make it rubust, hold a self Reference.
	uno::Reference< lang::XComponent > xSelf( this );

	// Guard dispose against multible threading
	// Remark: It is an error to call dispose more than once
	sal_Bool bDoDispose = sal_False;
	{
	osl::MutexGuard aGuard( mrBHelper.rMutex );
	if( !mrBHelper.bDisposed && !mrBHelper.bInDispose )
	{
		// only one call go into this section
		mrBHelper.bInDispose = sal_True;
		bDoDispose = sal_True;
	}
	}

	// Do not hold the mutex because we are broadcasting
	if( bDoDispose )
	{
		// Create an event with this as sender
		try
		{
			uno::Reference< uno::XInterface > xSource( uno::Reference< uno::XInterface >::query( (lang::XComponent *)this ) );
=====================================================================
Found a 20 line (110 tokens) duplication in the following files: 
Starting at line 3718 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3167 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

	aGeo.nDrehWink = 0;
	aGeo.RecalcSinCos();
	aGeo.nShearWink = 0;
	aGeo.RecalcTan();

	// force metric to pool metric
	SfxMapUnit eMapUnit = pModel->GetItemPool().GetMetric(0);
	if(eMapUnit != SFX_MAPUNIT_100TH_MM)
	{
		switch(eMapUnit)
		{
			case SFX_MAPUNIT_TWIP :
			{
				// position
				aTranslate.setX(ImplMMToTwips(aTranslate.getX()));
				aTranslate.setY(ImplMMToTwips(aTranslate.getY()));

				// size
				aScale.setX(ImplMMToTwips(aScale.getX()));
				aScale.setY(ImplMMToTwips(aScale.getY()));
=====================================================================
Found a 29 line (110 tokens) duplication in the following files: 
Starting at line 679 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpbitmap.cxx
Starting at line 810 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpbitmap.cxx

				long nCount     = pBitmapList->Count();

				for( long i = 0; i < nCount && bDifferent; i++ )
                    if( aName == pBitmapList->GetBitmap( i )->GetName() )
						bDifferent = FALSE;

				if( bDifferent ) {
					nError = 0;
					break;
				}

				if( !pWarnBox )
				{
					pWarnBox = new WarningBox( DLGWIN,
											   WinBits( WB_OK_CANCEL ),
											   String( ResId( nError, rMgr ) ) );
					pWarnBox->SetHelpId( HID_WARN_NAME_DUPLICATE );
				}


				if( pWarnBox->Execute() != RET_OK )
					break;
			}
			//Rectangle aDlgRect( pDlg->GetPosPixel(), pDlg->GetSizePixel() );
			delete pDlg;
			delete pWarnBox;

			if( !nError )
			{
=====================================================================
Found a 23 line (110 tokens) duplication in the following files: 
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/docrecovery.cxx
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/docrecovery.cxx

void RecoveryCore::forgetAllRecoveryEntries()
{
    if (!m_xRealCore.is())
        return;

    css::util::URL aRemoveURL = impl_getParsedURL(RECOVERY_CMD_DO_ENTRY_CLEANUP);
    css::uno::Sequence< css::beans::PropertyValue > lRemoveArgs(2);
    lRemoveArgs[0].Name    = PROP_DISPATCHASYNCHRON;
    lRemoveArgs[0].Value <<= sal_False;
    lRemoveArgs[1].Name    = PROP_ENTRYID;
    // lRemoveArgs[1].Value will be changed during next loop ...

    // work on a copied list only ...
    // Reason: We will get notifications from the core for every
    // changed or removed element. And that will change our m_lURLs list.
    // That's not a good idea, if we use a stl iterator inbetween .-)
    TURLList lURLs = m_lURLs;
    TURLList::const_iterator pIt;
    for (  pIt  = lURLs.begin();
           pIt != lURLs.end()  ;
         ++pIt                 )
    {
        const TURLInfo& rInfo = *pIt;
=====================================================================
Found a 13 line (110 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/tbxcustomshapes.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/tbxalign.cxx

void SAL_CALL SvxTbxCtlAlign::updateImage() throw (::com::sun::star::uno::RuntimeException)
{
    // We should update the button image of our parent (toolbar). Use the stored
    // command to set the correct current image.
    ::vos::OGuard aGuard( Application::GetSolarMutex() );
    if ( m_aCommand.getLength() > 0 )
    {
        ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > xFrame( getFrameInterface());
        Image aImage = GetImage( xFrame, m_aCommand, hasBigImages(), isHighContrast() );
        if ( !!aImage )
            GetToolBox().SetItemImage( GetId(), aImage );
    }
}
=====================================================================
Found a 16 line (110 tokens) duplication in the following files: 
Starting at line 261 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx

void SAL_CALL ToolboxController::dispose() 
throw (::com::sun::star::uno::RuntimeException)
{
    Reference< XComponent > xThis( static_cast< OWeakObject* >(this), UNO_QUERY );

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        if ( m_bDisposed )
            throw DisposedException();
    }

    com::sun::star::lang::EventObject aEvent( xThis );
    m_aListenerContainer.disposeAndClear( aEvent );

    vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
    Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY );
=====================================================================
Found a 16 line (110 tokens) duplication in the following files: 
Starting at line 948 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/transfer.cxx
Starting at line 985 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/transfer.cxx

	if( xSelection.is() && !mxTerminateListener.is() )
	{
		const sal_uInt32 nRef = Application::ReleaseSolarMutex();

		try
		{
            TransferableHelper*                 pThis = const_cast< TransferableHelper* >( this );
			Reference< XMultiServiceFactory >   xFact( ::comphelper::getProcessServiceFactory() );

			if( xFact.is() )
			{
				Reference< XDesktop > xDesktop( xFact->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.frame.Desktop" ) ), UNO_QUERY );

				if( xDesktop.is() )
					xDesktop->addTerminateListener( pThis->mxTerminateListener = new TerminateListener( *pThis ) );
			}
=====================================================================
Found a 23 line (110 tokens) duplication in the following files: 
Starting at line 993 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/ctrlbox.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/control/stdmenu.cxx

		USHORT		nId = FONTSTYLEMENU_FIRSTID;
		FontWeight	eLastWeight = WEIGHT_DONTKNOW;
		FontItalic	eLastItalic = ITALIC_NONE;
		FontWidth	eLastWidth = WIDTH_DONTKNOW;
		BOOL		bNormal = FALSE;
		BOOL		bItalic = FALSE;
		BOOL		bBold = FALSE;
		BOOL		bBoldItalic = FALSE;
		BOOL		bInsert = FALSE;
		FontInfo	aInfo;
		while ( hFontInfo )
		{
			aInfo = pList->GetFontInfo( hFontInfo );

			FontWeight	eWeight = aInfo.GetWeight();
			FontItalic	eItalic = aInfo.GetItalic();
			FontWidth	eWidth = aInfo.GetWidthType();
			// Only if the attributes are different, we insert the
			// Font to avoid double Entries in different languages
			if ( (eWeight != eLastWeight) || (eItalic != eLastItalic) ||
				 (eWidth != eLastWidth) )
			{
				if ( bInsert )
=====================================================================
Found a 27 line (110 tokens) duplication in the following files: 
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/backends/desktopbe/desktopbecdef.cxx
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/backends/gconfbe/gconfbecdef.cxx

        GconfBackend::getBackendServiceNames,
        cppu::createSingleComponentFactory,
        NULL,
        0
    },
	{ NULL, NULL, NULL, NULL, NULL, 0 }
} ;
//------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
                                            const sal_Char **aEnvTypeName,
                                            uno_Environment **/*aEnvironment*/) {
    *aEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}

//------------------------------------------------------------------------------

extern "C" sal_Bool SAL_CALL component_writeInfo(void */*pServiceManager*/,
                                                 void *pRegistryKey) {
    
    using namespace ::com::sun::star::registry;
    if (pRegistryKey)
    {
        try
        {
            uno::Reference< XRegistryKey > xImplKey = static_cast< XRegistryKey* >( pRegistryKey )->createKey(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + GconfBackend::getBackendName()
=====================================================================
Found a 26 line (110 tokens) duplication in the following files: 
Starting at line 378 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
Starting at line 381 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/accessibility/AccessibleTreeNode.cxx

void SAL_CALL AccessibleTreeNode::addEventListener(
    const Reference<XAccessibleEventListener >& rxListener) 
    throw (RuntimeException)
{
	if (rxListener.is())
    {
        const osl::MutexGuard aGuard(maMutex);

        if (IsDisposed())
        {
            uno::Reference<uno::XInterface> x ((lang::XComponent *)this, uno::UNO_QUERY);
		    rxListener->disposing (lang::EventObject (x));
	    }
        else
        {
            if ( ! mnClientId)
                mnClientId = comphelper::AccessibleEventNotifier::registerClient();
            comphelper::AccessibleEventNotifier::addEventListener(mnClientId, rxListener);
        }
    }
}




void SAL_CALL AccessibleTreeNode::removeEventListener(
=====================================================================
Found a 14 line (110 tokens) duplication in the following files: 
Starting at line 4492 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 914 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin2.cxx

	BOOL bTimer = FALSE;
	Point aPos = rMEvt.GetPosPixel();
	SCsCOL nDx = 0;
	SCsROW nDy = 0;
	if ( aPos.X() < 0 ) nDx = -1;
	if ( aPos.Y() < 0 ) nDy = -1;
	Size aSize = GetOutputSizePixel();
	if ( aPos.X() >= aSize.Width() )
		nDx = 1;
	if ( aPos.Y() >= aSize.Height() )
		nDy = 1;
	if ( nDx != 0 || nDy != 0 )
	{
		if ( bPagebreakDrawn )			// weginvertieren
=====================================================================
Found a 17 line (110 tokens) duplication in the following files: 
Starting at line 1134 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx
Starting at line 1278 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

void ScDBFunc::UngroupDataPilot()
{
    ScDPObject* pDPObj = GetViewData()->GetDocument()->GetDPAtCursor( GetViewData()->GetCurX(),
                                        GetViewData()->GetCurY(), GetViewData()->GetTabNo() );
    if ( pDPObj )
    {
        StrCollection aEntries;
        long nSelectDimension = -1;
        GetSelectedMemberList( aEntries, nSelectDimension );

        if ( aEntries.GetCount() > 0 )
        {
            BOOL bIsDataLayout;
            String aDimName = pDPObj->GetDimName( nSelectDimension, bIsDataLayout );

            ScDPSaveData aData( *pDPObj->GetSaveData() );
            ScDPDimensionSaveData* pDimData = aData.GetDimensionData();     // created if not there
=====================================================================
Found a 15 line (110 tokens) duplication in the following files: 
Starting at line 676 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx
Starting at line 2772 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx

	if (bUndo)
	{
		SCTAB nStartTab = aMarkRange.aStart.Tab();
		SCTAB nTabCount = pDoc->GetTableCount();

		ScDocument* pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
		pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab );
		for (SCTAB i=0; i<nTabCount; i++)
			if (i != nStartTab && rMark.GetTableSelect(i))
				pUndoDoc->AddUndoTab( i, i );

		ScRange aCopyRange = aMarkRange;
		aCopyRange.aStart.SetTab(0);
		aCopyRange.aEnd.SetTab(nTabCount-1);
		pDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, TRUE, pUndoDoc, (ScMarkData*)&rMark );
=====================================================================
Found a 27 line (110 tokens) duplication in the following files: 
Starting at line 901 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx
Starting at line 1984 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx

		USHORT	fBottom	= ( nValue & 0xF000 ) >> 12;

		if( fLeft > 1 )
			nLeft = 50;
		else if( fLeft > 0 )
			nLeft = 20;

		if( fTop > 1 )
			nTop = 50;
		else if( fTop > 0 )
			nTop = 20;

		if( fRight > 1 )
			nRight = 50;
		else if( fRight > 0 )
			nRight = 20;

		if( fBottom > 1 )
			nBottom = 50;
		else if( fBottom > 0 )
			nBottom = 20;

		Color	ColorLeft( COL_BLACK );
		Color	ColorTop( COL_BLACK );
		Color	ColorRight( COL_BLACK );
		Color	ColorBottom( COL_BLACK );
		USHORT	nFrmColVal	= aFrameColor.pData[ nColorIndex ].Value;
=====================================================================
Found a 28 line (110 tokens) duplication in the following files: 
Starting at line 173 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/autoform.cxx
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/tblafmt.cxx

void SwAfVersions::Load( SvStream& rStream, USHORT nVer )
{
	rStream >> nFontVersion;
	rStream >> nFontHeightVersion;
	rStream >> nWeightVersion;
	rStream >> nPostureVersion;
	rStream >> nUnderlineVersion;
	rStream >> nCrossedOutVersion;
	rStream >> nContourVersion;
	rStream >> nShadowedVersion;
	rStream >> nColorVersion;
	rStream >> nBoxVersion;
    if ( nVer >= AUTOFORMAT_ID_680DR14 )
        rStream >> nLineVersion;
	rStream >> nBrushVersion;
	rStream >> nAdjustVersion;
	rStream >> nHorJustifyVersion;
	rStream >> nVerJustifyVersion;
	rStream >> nOrientationVersion;
	rStream >> nMarginVersion;
	rStream >> nBoolVersion;
	if ( nVer >= AUTOFORMAT_ID_504 )
	{
		rStream >> nInt32Version;
		rStream >> nRotateModeVersion;
	}
	rStream >> nNumFmtVersion;
}
=====================================================================
Found a 26 line (110 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/autoform.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/tblafmt.cxx

SwAfVersions::SwAfVersions() :
	nFontVersion(0),
	nFontHeightVersion(0),
	nWeightVersion(0),
	nPostureVersion(0),
	nUnderlineVersion(0),
	nCrossedOutVersion(0),
	nContourVersion(0),
	nShadowedVersion(0),
	nColorVersion(0),
	nBoxVersion(0),
    nLineVersion(0),
	nBrushVersion(0),
	nAdjustVersion(0),
	nHorJustifyVersion(0),
	nVerJustifyVersion(0),
	nOrientationVersion(0),
	nMarginVersion(0),
	nBoolVersion(0),
	nInt32Version(0),
	nRotateModeVersion(0),
	nNumFmtVersion(0)
{
}

void SwAfVersions::Load( SvStream& rStream, USHORT nVer )
=====================================================================
Found a 31 line (110 tokens) duplication in the following files: 
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/clipboardwben/testcopy/cbcpytest.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/clipboardwben/testpaste/cbptest.cxx

					PasteClipboardData2(hWnd);
					break;

				case IDM_EXIT:
				   DestroyWindow( hWnd );
				   break;

				default:
				   return DefWindowProc( hWnd, message, wParam, lParam );
			}
			break;

		case WM_PAINT:
			hdc = BeginPaint (hWnd, &ps);
			// ZU ERLEDIGEN: Hier beliebigen Code zum Zeichnen hinzuf�gen...
			RECT rt;
			GetClientRect( hWnd, &rt );
			
			if ( NULL != pTextBuff )
			{
				DrawText( hdc, pTextBuff, lData, &rt, DT_CENTER );
			}
			else
			{
				DrawText( hdc, szHello, strlen(szHello), &rt, DT_CENTER );
			}

			EndPaint( hWnd, &ps );
			break;

		case WM_DESTROY:
=====================================================================
Found a 29 line (110 tokens) duplication in the following files: 
Starting at line 558 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertiso2022cn.c
Starting at line 355 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertiso2022kr.c

        for (; nConverted < nSrcChars; ++nConverted)
        {
            sal_Bool bUndefined = sal_True;
            sal_uInt32 nChar = *pSrcBuf++;
            if (nHighSurrogate == 0)
            {
                if (ImplIsHighSurrogate(nChar))
                {
                    nHighSurrogate = (sal_Unicode) nChar;
                    continue;
                }
            }
            else if (ImplIsLowSurrogate(nChar))
                nChar = ImplCombineSurrogates(nHighSurrogate, nChar);
            else
            {
                bUndefined = sal_False;
                goto bad_input;
            }

            if (ImplIsLowSurrogate(nChar) || ImplIsNoncharacter(nChar))
            {
                bUndefined = sal_False;
                goto bad_input;
            }

            if (nChar == 0x0A || nChar == 0x0D) /* LF, CR */
            {
                if (eSet == IMPL_UNICODE_TO_ISO_2022_KR_SET_1001)
=====================================================================
Found a 18 line (110 tokens) duplication in the following files: 
Starting at line 3221 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx
Starting at line 3264 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx

bool PrintFontManager::getMetrics( fontID nFontID, sal_Unicode minCharacter, sal_Unicode maxCharacter, CharacterMetric* pArray, bool bVertical ) const
{
    PrintFont* pFont = getFont( nFontID );
    if( ! pFont )
        return false;

    if( ( pFont->m_nAscend == 0 && pFont->m_nDescend == 0 )
        || ! pFont->m_pMetrics || pFont->m_pMetrics->isEmpty()
        )
    {
        // might be a font not yet analyzed
        if( pFont->m_eType == fonttype::Type1 || pFont->m_eType == fonttype::Builtin )
            pFont->readAfmMetrics( getAfmFile( pFont ), m_pAtoms, false, false );
        else if( pFont->m_eType == fonttype::TrueType )
            analyzeTrueTypeFile( pFont );
    }

    for( sal_Unicode code = minCharacter; code <= maxCharacter; code++ )
=====================================================================
Found a 17 line (110 tokens) duplication in the following files: 
Starting at line 2676 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx
Starting at line 2709 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontmanager/fontmanager.cxx

                if( aBuiltinPSNames.find( pFont->m_nPSName ) != aBuiltinPSNames.end() )
                {
                    bool bInsert = true;
                    if( bUseOverrideMetrics )
                    {
                        // in override case only use the override fonts, not their counterparts
                        std::map<int,fontID>::const_iterator over = aOverridePSNames.find( pFont->m_nPSName );
                        if( over != aOverridePSNames.end() && over->second != it->first )
                            bInsert = false;
                    }
                    else
                    {
                        // do not insert override fonts in non override case
                        if( std::find( m_aOverrideFonts.begin(), m_aOverrideFonts.end(), it->first ) != m_aOverrideFonts.end() )
                            bInsert = false;
                    }
                    if( bInsert )
=====================================================================
Found a 8 line (110 tokens) duplication in the following files: 
Starting at line 2322 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 2333 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

			{
				m_pData->m_pTypeCollection = new ::cppu::OTypeCollection
								(	::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
								,	::getCppuType( ( const uno::Reference< embed::XStorage >* )NULL )
								,	::getCppuType( ( const uno::Reference< embed::XTransactedObject >* )NULL )
								,	::getCppuType( ( const uno::Reference< embed::XTransactionBroadcaster >* )NULL )
								,	::getCppuType( ( const uno::Reference< util::XModifiable >* )NULL )
								,	::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
=====================================================================
Found a 17 line (110 tokens) duplication in the following files: 
Starting at line 139 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/opipe.cxx

			   RuntimeException );

public: // XConnectable
    virtual void SAL_CALL setPredecessor(const Reference< XConnectable >& aPredecessor)
		throw( RuntimeException );
    virtual Reference< XConnectable > SAL_CALL getPredecessor(void) throw( RuntimeException );
    virtual void SAL_CALL setSuccessor(const Reference < XConnectable > & aSuccessor)
		throw( RuntimeException );
    virtual Reference < XConnectable > SAL_CALL getSuccessor(void) throw( RuntimeException ) ;


public: // XServiceInfo
    OUString                    SAL_CALL getImplementationName() throw(  );
    Sequence< OUString >         SAL_CALL getSupportedServiceNames(void) throw(  );
    sal_Bool                        SAL_CALL supportsService(const OUString& ServiceName) throw(  );

private:
=====================================================================
Found a 4 line (110 tokens) duplication in the following files: 
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 4 line (110 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x1c,0x0e,
=====================================================================
Found a 5 line (110 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

 0x7e,0x7c,0x00,0x00,0x78,0x7c,0x00,0x00,0x70,0x38,0x00,0x00,0xc0,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 4 line (110 tokens) duplication in the following files: 
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x1c,0x0e,
=====================================================================
Found a 5 line (110 tokens) duplication in the following files: 
Starting at line 937 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

 0x7e,0x7c,0x00,0x00,0x78,0x7c,0x00,0x00,0x70,0x38,0x00,0x00,0xc0,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 4 line (110 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x1c,0x0e,
=====================================================================
Found a 5 line (110 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

 0x7e,0x7c,0x00,0x00,0x78,0x7c,0x00,0x00,0x70,0x38,0x00,0x00,0xc0,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 3 line (110 tokens) duplication in the following files: 
Starting at line 438 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h
Starting at line 504 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/casefolding_data.h

    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // ffe8 - ffef
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff0 - fff7
    {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // fff8 - ffff
=====================================================================
Found a 5 line (110 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

 0x7e,0x7c,0x00,0x00,0x78,0x7c,0x00,0x00,0x70,0x38,0x00,0x00,0xc0,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 19 line (110 tokens) duplication in the following files: 
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 544 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

  double big, pivinv, save;

  for (j = 0; j < n; j++)
    ipiv[j] = 0;

  for (i = 0; i < n; i++)
  {
    big = 0;
    for (j = 0; j < n; j++)
    {
      if ( ipiv[j] != 1 )
      {
	for (k = 0; k < n; k++)
	{
	  if ( ipiv[k] == 0 )
	  {
	    if ( fabs(a[j][k]) >= big )
	    {
	      big = fabs(a[j][k]);
=====================================================================
Found a 21 line (110 tokens) duplication in the following files: 
Starting at line 1798 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eps/eps.cxx
Starting at line 1908 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eps/eps.cxx

					ImplWriteLine( "/Decode[0 1 0 1 0 1]" );
					*mpPS << "/ImageMatrix[";
					ImplWriteLong( nWidth );
					*mpPS << "0 0 ";
					ImplWriteLong( -nHeight );
					ImplWriteLong( 0 );
					ImplWriteLong( nHeight, PS_NONE );
					ImplWriteByte( ']', PS_RET );
					ImplWriteLine( "/DataSource currentfile" );
					ImplWriteLine( "/ASCIIHexDecode filter" );
					if ( mbCompression )
						ImplWriteLine( "/LZWDecode filter" );
					ImplWriteLine( ">>" );
					ImplWriteLine( "image" );
					if ( mbCompression )
					{
						StartCompression();
						for ( long y = 0; y < nHeight; y++ )
						{
							for ( long x = 0; x < nWidth; x++ )
							{
=====================================================================
Found a 13 line (110 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/menubarfactory.cxx
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/statusbarfactory.cxx

    Sequence< Any > aPropSeq( 4 );
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Frame" ));
    aPropValue.Value <<= xFrame;
    aPropSeq[0] <<= aPropValue;
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ConfigurationSource" ));
    aPropValue.Value <<= xCfgMgr;
    aPropSeq[1] <<= aPropValue;
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ResourceURL" ));
    aPropValue.Value <<= aResourceURL;
    aPropSeq[2] <<= aPropValue;
    aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Persistent" ));
    aPropValue.Value <<= bPersistent;
    aPropSeq[3] <<= aPropValue;
=====================================================================
Found a 19 line (110 tokens) duplication in the following files: 
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontmenucontroller.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx

void SAL_CALL FooterMenuController::select( const css::awt::MenuEvent& rEvent ) throw (RuntimeException)
{
    Reference< css::awt::XPopupMenu >   xPopupMenu;
    Reference< XDispatch >              xDispatch;
    Reference< XMultiServiceFactory >   xServiceManager;

    ResetableGuard aLock( m_aLock );
    xPopupMenu      = m_xPopupMenu;
    xDispatch       = m_xDispatch;
    xServiceManager = m_xServiceManager;
    aLock.unlock();

    if ( xPopupMenu.is() && xDispatch.is() )
    {
        VCLXPopupMenu* pPopupMenu = (VCLXPopupMenu *)VCLXPopupMenu::GetImplementation( xPopupMenu );
        if ( pPopupMenu )
        {
            css::util::URL               aTargetURL;
	        Sequence<PropertyValue>	     aArgs( 1 );
=====================================================================
Found a 21 line (110 tokens) duplication in the following files: 
Starting at line 1083 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 1469 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

void SAL_CALL ModuleImageManager::store() 
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException)
{
    ResetableGuard aGuard( m_aLock );

    if ( m_bDisposed )
        throw DisposedException();

    if ( m_bModified )
    {
        sal_Bool bWritten( sal_False );
        for ( sal_Int32 i = 0; i < ImageType_COUNT; i++ )
        {
            sal_Bool bSuccess = implts_storeUserImages( ImageType(i), m_xUserImageStorage, m_xUserBitmapsStorage );
            if ( bSuccess )
                bWritten = sal_True;
            m_bUserImageListModified[i] = false;
        }

        if ( bWritten && 
             m_xUserConfigStorage.is() &&  
=====================================================================
Found a 3 line (110 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/globalsettings.cxx
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xml/xmltxtexp.cxx

    virtual void SAL_CALL dispose(  ) throw (::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 11 line (110 tokens) duplication in the following files: 
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/uiconfigelementwrapperbase.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarwrapper.cxx

DEFINE_XTYPEPROVIDER_11 (   MenuBarWrapper                                  ,
                            ::com::sun::star::lang::XTypeProvider           ,
                            ::com::sun::star::ui::XUIElement                ,
                            ::com::sun::star::ui::XUIElementSettings        ,
                            ::com::sun::star::beans::XMultiPropertySet      ,
                            ::com::sun::star::beans::XFastPropertySet       ,
                            ::com::sun::star::beans::XPropertySet           ,
                            ::com::sun::star::lang::XInitialization         ,
                            ::com::sun::star::lang::XComponent              ,
                            ::com::sun::star::util::XUpdatable              ,
                            ::com::sun::star::ui::XUIConfigurationListener  ,
=====================================================================
Found a 19 line (110 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/dispatch/menudispatcher.cxx
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/dispatch/popupmenudispatcher.cxx

namespace framework{

using namespace ::com::sun::star				;
using namespace ::com::sun::star::awt			;
using namespace ::com::sun::star::beans			;
using namespace ::com::sun::star::container		;
using namespace ::com::sun::star::frame			;
using namespace ::com::sun::star::lang			;
using namespace ::com::sun::star::uno			;
using namespace ::com::sun::star::util			;
using namespace ::cppu							;
using namespace ::osl							;
using namespace ::rtl							;
using namespace ::vos							;

//_________________________________________________________________________________________________________________
//	non exported const
//_________________________________________________________________________________________________________________
const char*     PROTOCOL_VALUE      = "vnd.sun.star.popup:";
=====================================================================
Found a 16 line (110 tokens) duplication in the following files: 
Starting at line 806 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 730 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

			aNormSize.Width() = pDX[ nLen - 2 ] + mpVDev->GetTextWidth( rText.GetChar( sal::static_int_cast<USHORT>( nLen - 1 ) ) );

			if( nWidth && aNormSize.Width() && ( nWidth != aNormSize.Width() ) )
			{
				const double fFactor = (double) nWidth / aNormSize.Width();

				for( i = 0; i < ( nLen - 1 ); i++ )
					pDX[ i ] = FRound( pDX[ i ] * fFactor );
			}
		}

		FastString			aStyle;
		const Font&			rFont = mpVDev->GetFont();
		const FontMetric	aMetric( mpVDev->GetFontMetric() );
		Point				aBaseLinePos( rPos );
		SvXMLElementExport*	pTransform = NULL;
=====================================================================
Found a 29 line (110 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

void SAL_CALL
Interceptor::addEventListener( 
	const uno::Reference<lang::XEventListener >& Listener )
	throw( uno::RuntimeException )
{
	osl::MutexGuard aGuard( m_aMutex );
	
	if ( ! m_pDisposeEventListeners )
		m_pDisposeEventListeners =
			new cppu::OInterfaceContainerHelper( m_aMutex );
	
	m_pDisposeEventListeners->addInterface( Listener );
}


void SAL_CALL
Interceptor::removeEventListener( 
	const uno::Reference< lang::XEventListener >& Listener )
	throw( uno::RuntimeException )
{
	osl::MutexGuard aGuard( m_aMutex );
	
	if ( m_pDisposeEventListeners )
		m_pDisposeEventListeners->removeInterface( Listener );
}


void SAL_CALL Interceptor::dispose()
	throw(::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 13 line (110 tokens) duplication in the following files: 
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) UNOEmbeddedObjectCreator::createInstanceInitNew" );

	uno::Reference< uno::XInterface > xResult;

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											3 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											4 );
=====================================================================
Found a 20 line (110 tokens) duplication in the following files: 
Starting at line 681 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/embedobj.cxx
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/oleembed.cxx

void SAL_CALL OleEmbeddedObject::setUpdateMode( sal_Int32 nMode )
		throw ( embed::WrongStateException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object has no persistence!\n" ),
										uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	
	OSL_ENSURE( nMode == embed::EmbedUpdateModes::ALWAYS_UPDATE
					|| nMode == embed::EmbedUpdateModes::EXPLICIT_UPDATE,
				"Unknown update mode!\n" );
	m_nUpdateMode = nMode;
}

//----------------------------------------------
sal_Int64 SAL_CALL OleEmbeddedObject::getStatus( sal_Int64
=====================================================================
Found a 4 line (110 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x1c,0x0e,
=====================================================================
Found a 14 line (110 tokens) duplication in the following files: 
Starting at line 471 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx

sal_Bool FirstStartWizard::impl_isFirstStart()
{
    try {
        Reference < XMultiServiceFactory > xFactory = ::comphelper::getProcessServiceFactory();
        // get configuration provider
        Reference< XMultiServiceFactory > theConfigProvider = Reference< XMultiServiceFactory >(
        xFactory->createInstance(sConfigSrvc), UNO_QUERY_THROW);
        Sequence< Any > theArgs(1);
        NamedValue v(OUString::createFromAscii("NodePath"), 
            makeAny(OUString::createFromAscii("org.openoffice.Setup/Office")));
        theArgs[0] <<= v;
        Reference< XPropertySet > pset = Reference< XPropertySet >(
            theConfigProvider->createInstanceWithArguments(sAccessSrvc, theArgs), UNO_QUERY_THROW);
        Any result = pset->getPropertyValue(OUString::createFromAscii("FirstStartWizardCompleted"));
=====================================================================
Found a 17 line (110 tokens) duplication in the following files: 
Starting at line 102 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/DriverSettings.cxx
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/DriverSettings.cxx

		default:
			_rDetailsIds.push_back(DSID_ADDITIONALOPTIONS);
			_rDetailsIds.push_back(DSID_CHARSET);
			_rDetailsIds.push_back(DSID_SQL92CHECK);
			_rDetailsIds.push_back(DSID_USECATALOG);
			_rDetailsIds.push_back(DSID_AUTOINCREMENTVALUE);
			_rDetailsIds.push_back(DSID_AUTORETRIEVEVALUE);
			_rDetailsIds.push_back(DSID_AUTORETRIEVEENABLED);
			_rDetailsIds.push_back(DSID_PARAMETERNAMESUBST);
			_rDetailsIds.push_back(DSID_SUPPRESSVERSIONCL);
			_rDetailsIds.push_back(DSID_ENABLEOUTERJOIN);
			_rDetailsIds.push_back(DSID_CATALOG);
			_rDetailsIds.push_back(DSID_SCHEMA);
			_rDetailsIds.push_back(DSID_APPEND_TABLE_ALIAS);
			_rDetailsIds.push_back(DSID_AS_BEFORE_CORRNAME);
			_rDetailsIds.push_back(DSID_BOOLEANCOMPARISON);
			_rDetailsIds.push_back(DSID_INDEXAPPENDIX);
=====================================================================
Found a 3 line (110 tokens) duplication in the following files: 
Starting at line 307 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/documentdefinition.cxx
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/ipclient.cxx

    virtual void SAL_CALL changingState( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL stateChanged( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::uno::RuntimeException);
    virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 24 line (110 tokens) duplication in the following files: 
Starting at line 867 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx
Starting at line 907 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx

                                                const ::basegfx::B2DHomMatrix&	rTextTransform ) :
                mxFont( rState.xFont ),
                maStringContext( rText, nStartPos, nLen ),
                mpCanvas( rCanvas ),
                maState(),
                maTextLineInfo( tools::createTextLineInfo( rVDev, rState ) ),
                maLinesOverallSize(),
                mnLineWidth( getLineWidth( rVDev, rState, maStringContext ) ),
                mxTextLines(),
                maReliefOffset( rReliefOffset ),
                maReliefColor( rReliefColor ),
                maShadowOffset( rShadowOffset ),
                maShadowColor( rShadowColor ),
                maTextDirection( rState.textDirection )
            {
                initEffectLinePolyPolygon( maLinesOverallSize,
                                           mxTextLines,
                                           rCanvas,
                                           mnLineWidth,
                                           maTextLineInfo );

                init( maState, mxFont, 
                      rStartPoint, 
                      rState, rCanvas, rTextTransform );
=====================================================================
Found a 17 line (110 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CCatalog.cxx
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DCatalog.cxx
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LCatalog.cxx
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/ECatalog.cxx

void OFlatCatalog::refreshTables()
{
	TStringVector aVector;
	Sequence< ::rtl::OUString > aTypes;
	Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
		::rtl::OUString::createFromAscii("%"),::rtl::OUString::createFromAscii("%"),aTypes);

	if(xResult.is())
	{
		Reference< XRow > xRow(xResult,UNO_QUERY);
		while(xResult->next())
			aVector.push_back(xRow->getString(3));
	}
	if(m_pTables)
		m_pTables->reFill(aVector);
	else
		m_pTables = new OFlatTables(m_xMetaData,*this,m_aMutex,aVector);
=====================================================================
Found a 32 line (110 tokens) duplication in the following files: 
Starting at line 813 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 1062 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

	}
}
// -------------------------------------------------------------------------
void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
	switch(nHandle)
	{
		case PROPERTY_ID_QUERYTIMEOUT:
			rValue <<= getQueryTimeOut();
			break;
		case PROPERTY_ID_MAXFIELDSIZE:
			rValue <<= getMaxFieldSize();
			break;
		case PROPERTY_ID_MAXROWS:
			rValue <<= getMaxRows();
			break;
		case PROPERTY_ID_CURSORNAME:
			rValue <<= getCursorName();
			break;
		case PROPERTY_ID_RESULTSETCONCURRENCY:
			rValue <<= getResultSetConcurrency();
			break;
		case PROPERTY_ID_RESULTSETTYPE:
			rValue <<= getResultSetType();
			break;
		case PROPERTY_ID_FETCHDIRECTION:
			rValue <<= getFetchDirection();
			break;
		case PROPERTY_ID_FETCHSIZE:
			rValue <<= getFetchSize();
			break;
		case PROPERTY_ID_USEBOOKMARKS:
=====================================================================
Found a 22 line (110 tokens) duplication in the following files: 
Starting at line 1363 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FValue.cxx
Starting at line 1433 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/commontools/FValue.cxx

				nRet = dbtools::DBTypeConversion::toDouble(*(::com::sun::star::util::DateTime*)m_aValue.m_pValue);
				break;
			case DataType::BINARY:
			case DataType::VARBINARY:
			case DataType::LONGVARBINARY:
				OSL_ASSERT(!"getDouble() for this type is not allowed!");
				break;
			case DataType::BIT:
			case DataType::BOOLEAN:
				nRet = m_aValue.m_bBool;
				break;
			case DataType::TINYINT:
				if ( m_bSigned )
					nRet = m_aValue.m_nInt8;
				else
					nRet = m_aValue.m_nInt16;
				break;
			case DataType::SMALLINT:
				if ( m_bSigned )
					nRet = m_aValue.m_nInt16;
				else
					nRet = m_aValue.m_nInt32;
=====================================================================
Found a 13 line (110 tokens) duplication in the following files: 
Starting at line 2042 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/noderef.cxx
Starting at line 2058 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/noderef.cxx

bool isSetNode(Tree const& aTree, NodeRef const& aNode)
{
	OSL_PRECOND( !aNode.isValid() || !aTree.isEmpty(), "ERROR: Configuration: Tree operation requires a valid Tree");
	OSL_PRECOND( !aNode.isValid() || aTree.isValidNode(aNode), "WARNING: Configuration: NodeRef does not match Tree");

    view::ViewTreeAccess aView = aTree.getView();

    OSL_ASSERT( !aNode.isValid() || 
                aView.isGroupNode(aNode) || 
                aView.isSetNode(aNode) ||
                (aView.isValueNode(aNode) && isRootNode(aTree,aNode)) );

	return aNode.isValid() && aView.isSetNode(aNode);
=====================================================================
Found a 25 line (110 tokens) duplication in the following files: 
Starting at line 396 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/idlmaker/idltype.cxx

void IdlType::dumpNameSpace(FileStream& o, sal_Bool bOpen, sal_Bool bFull, const OString& type)
{
	OString typeName(type);
	sal_Bool bOneLine = sal_True;
	if (typeName.getLength() == 0)
	{
		typeName = m_typeName;
		bOneLine = sal_False;
	}

	if (typeName == "/")
		return;

	if (typeName.indexOf( '/' ) == -1 && !bFull)
		return;

	if (!bFull)
        typeName = typeName.copy( 0, typeName.lastIndexOf( '/' ) );

	if (bOpen)
	{
        sal_Int32 nIndex = 0;
		do
		{
			o << "module " << typeName.getToken(0, '/', nIndex);
=====================================================================
Found a 30 line (110 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/PageBackground.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/StockBar.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/Title.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/Wall.cxx

uno::Any Wall::GetDefaultValue( sal_Int32 nHandle ) const
    throw(beans::UnknownPropertyException)
{
    static tPropertyValueMap aStaticDefaults;

    // /--
    ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aStaticDefaults.size() )
    {
        // initialize defaults
        LineProperties::AddDefaultsToMap( aStaticDefaults );
        FillProperties::AddDefaultsToMap( aStaticDefaults );

        // initialize defaults
        // Note: this should be last to override defaults of the previously
        // added defaults
        lcl_AddDefaultsToMap( aStaticDefaults );
    }

    tPropertyValueMap::const_iterator aFound(
        aStaticDefaults.find( nHandle ));

    if( aFound == aStaticDefaults.end())
        return uno::Any();

    return (*aFound).second;
    // \--
}

::cppu::IPropertyArrayHelper & SAL_CALL Wall::getInfoHelper()
=====================================================================
Found a 21 line (110 tokens) duplication in the following files: 
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataPointStyle.cxx
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataSeriesStyle.cxx

using namespace ::com::sun::star;

using ::com::sun::star::uno::Reference;
using ::com::sun::star::beans::Property;
using ::osl::MutexGuard;

// ____________________________________________________________

namespace
{
const uno::Sequence< Property > & lcl_GetPropertySequence()
{
    static uno::Sequence< Property > aPropSeq;

    // /--
    ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        ::chart::DataSeriesProperties::AddPropertiesToVector( aProperties );
=====================================================================
Found a 20 line (110 tokens) duplication in the following files: 
Starting at line 422 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx

uno::Sequence< uno::Any > SAL_CALL UpDownBarWrapper::getPropertyDefaults( const uno::Sequence< ::rtl::OUString >& rNameSeq )
                    throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
    Sequence< Any > aRetSeq;
    if( rNameSeq.getLength() )
    {
        aRetSeq.realloc( rNameSeq.getLength() );
        for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++)
        {
            ::rtl::OUString aPropertyName( rNameSeq[nN] );
            aRetSeq[nN] = this->getPropertyDefault( aPropertyName );
        }
    }
    return aRetSeq;
}


// ================================================================================

Sequence< OUString > UpDownBarWrapper::getSupportedServiceNames_Static()
=====================================================================
Found a 18 line (110 tokens) duplication in the following files: 
Starting at line 324 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
            {
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );

                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[2] ),
=====================================================================
Found a 29 line (110 tokens) duplication in the following files: 
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp.cxx

        : : "m" (dret), "m" (iret), "m" (iret2)
    );


    switch( eReturnType )
	{
		case typelib_TypeClass_HYPER:
		case typelib_TypeClass_UNSIGNED_HYPER:
			((long*)pRegisterReturn)[1] = iret2;
                        // fall thru on purpose
		case typelib_TypeClass_LONG:
		case typelib_TypeClass_UNSIGNED_LONG:
		case typelib_TypeClass_ENUM:
			((long*)pRegisterReturn)[0] = iret;
			break;

		case typelib_TypeClass_CHAR:
		case typelib_TypeClass_SHORT:
		case typelib_TypeClass_UNSIGNED_SHORT:
		        *(unsigned short*)pRegisterReturn = (unsigned short)iret;
			break;

		case typelib_TypeClass_BOOLEAN:
		case typelib_TypeClass_BYTE:
		        *(unsigned char*)pRegisterReturn = (unsigned char)iret;
			break;

		case typelib_TypeClass_FLOAT:
		        *(float*)pRegisterReturn = (float)dret;
=====================================================================
Found a 18 line (110 tokens) duplication in the following files: 
Starting at line 312 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
            {
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );

                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[2] ),
=====================================================================
Found a 27 line (110 tokens) duplication in the following files: 
Starting at line 53 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

using namespace com::sun::star::uno;

namespace
{
//==================================================================================================
static typelib_TypeClass cpp2uno_call(
	 bridges::cpp_uno::shared::CppInterfaceProxy * pThis,
	const typelib_TypeDescription * pMemberTypeDescr,
	typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void ** pCallStack,
	sal_Int64 * pRegisterReturn /* space for register return */ )
{
	// pCallStack: [ret ptr], this, params
	char * pCppStack = (char *)pCallStack;

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	if (pReturnTypeRef)
		TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	
	void * pUnoReturn = 0;
	void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
=====================================================================
Found a 18 line (110 tokens) duplication in the following files: 
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

			eRet = typelib_TypeClass_VOID;
			break;
		case 0: // queryInterface() opt
		{
			typelib_TypeDescription * pTD = 0;
			TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[3] )->getTypeLibType() );
			if (pTD)
            {
                XInterface * pInterface = 0;
                (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
                    pCppI->getBridge()->getCppEnv(),
                    (void **)&pInterface, pCppI->getOid().pData,
                    (typelib_InterfaceTypeDescription *)pTD );

                if (pInterface)
                {
                    ::uno_any_construct(
                        reinterpret_cast< uno_Any * >( pCallStack[2] ),
=====================================================================
Found a 28 line (110 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxuint.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxulng.cxx

	UINT32 nRes;
start:
	switch( p->eType )
	{
		case SbxNULL:
			SbxBase::SetError( SbxERR_CONVERSION );
		case SbxEMPTY:
			nRes = 0; break;
		case SbxCHAR:
			nRes = p->nChar;
			break;
		case SbxBYTE:
			nRes = p->nByte; break;
		case SbxINTEGER:
		case SbxBOOL:
			if( p->nInteger < 0 )
			{
				SbxBase::SetError( SbxERR_OVERFLOW ); nRes = 0;
			}
			else
				nRes = p->nInteger;
			break;
		case SbxERROR:
		case SbxUSHORT:
			nRes = p->nUShort;
			break;
		case SbxLONG:
			if( p->nLong < 0 )
=====================================================================
Found a 38 line (109 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/xxml/FileXXmlReader.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/unocomponent/debugservices/xxml/StorageXXmlReader.cxx

const sal_Char StorageXXmlReader::IMPLEMENTATION_NAME[40] = "debugservices.xxml.StorageXXmlReader";


class MyHandler : public xxml::ContentHandler
{
public:
	int events;
	virtual void startDocument()
	{
		events=1;
	}
	virtual void endDocument()
	{
		events++;
	}
	virtual void startElement(QName_t /*name*/, QName_t * /*attrName[]*/, const xxml::Value ** /*attrValue[]*/, int attrs)
	{
		events++;
//		printf("<{%s}:%s>\n", QName::serializer().getNamespaceUri(name), QName::serializer().getLocalName(name));
		for(int i=0;i<attrs;i++)
		{
//			printf("@{%s}:%s=\"%s\"\n", QName::serializer().getNamespaceUri(attrName[i]), QName::serializer().getLocalName(attrName[i]), attrValue[i]->getOString().getStr());
			events++;
		}
	}

	virtual void endElement(QName_t /*name*/)
	{
		//printf("</{%s}:%s>\n", QName::serializer().getNamespaceUri(name), QName::serializer().getLocalName(name));
		events++;
	}
	virtual void characters(const xxml::Value & /*value*/)
	{
		//printf("\"%s\"\n", value.getOString().getStr());
		events++;
	}

	virtual void startStream(QName_t stream)
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 4552 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6388 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        0x00,0x00,0x00,0x68,0x54,0x54,0x44,0x44,0x44,0x44,0x00,0x00,

        7, // 0x6E 'n'
        0x00,0x00,0x00,0x58,0x64,0x44,0x44,0x44,0x44,0x44,0x00,0x00,

        7, // 0x6F 'o'
        0x00,0x00,0x00,0x38,0x44,0x44,0x44,0x44,0x44,0x38,0x00,0x00,

        7, // 0x70 'p'
        0x00,0x00,0x00,0x78,0x44,0x44,0x44,0x44,0x44,0x78,0x40,0x40,

        7, // 0x71 'q'
        0x00,0x00,0x00,0x3C,0x44,0x44,0x44,0x44,0x44,0x3C,0x04,0x04,
=====================================================================
Found a 18 line (109 tokens) duplication in the following files: 
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, 0),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //--------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 24 line (109 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_gray.h

                    y_hr += ry_inv;
                    ++y_lr;
                }
                while(y_hr < filter_size);

                fg        /= total_weight;
                src_alpha /= total_weight;

                if(fg        < 0) fg        = 0;
                if(src_alpha < 0) src_alpha = 0;

                if(src_alpha > base_mask) src_alpha = base_mask;
                if(fg        > src_alpha) fg        = src_alpha;

                span->v = (value_type)fg;
                span->a = (value_type)src_alpha;

                ++span;
                ++base_type::interpolator();
            } while(--len);
            return base_type::allocator().span();
        }
        
    };
=====================================================================
Found a 11 line (109 tokens) duplication in the following files: 
Starting at line 395 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 957 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

                calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8;
                if(alpha == base_mask)
                {
                    pixel_type v;
                    ((value_type*)&v)[order_type::R] = c.r;
                    ((value_type*)&v)[order_type::G] = c.g;
                    ((value_type*)&v)[order_type::B] = c.b;
                    ((value_type*)&v)[order_type::A] = c.a;
                    do
                    {
                        *(pixel_type*)(m_rbuf->span_ptr(x, y++, 1)) = v;
=====================================================================
Found a 24 line (109 tokens) duplication in the following files: 
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
Starting at line 205 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx

	xmlNodePtr pNode = NULL ;
	//sal_Bool valid ;

	if( !aTemplate.is() )
		throw RuntimeException() ;

	if( !aSecurityCtx.is() )
		throw RuntimeException() ;

	//Get Keys Manager
	Reference< XSecurityEnvironment > xSecEnv 
		= aSecurityCtx->getSecurityEnvironmentByIndex(
			aSecurityCtx->getDefaultSecurityEnvironmentIndex());
	Reference< XUnoTunnel > xSecTunnel( xSecEnv , UNO_QUERY ) ;
	if( !xSecTunnel.is() ) {
		 throw RuntimeException() ;
	}

	SecurityEnvironment_MSCryptImpl* pSecEnv = ( SecurityEnvironment_MSCryptImpl* )xSecTunnel->getSomething( SecurityEnvironment_MSCryptImpl::getUnoTunnelId() ) ;
	if( pSecEnv == NULL )
		throw RuntimeException() ;

	//Get the xml node
	Reference< XXMLElementWrapper > xElement = aTemplate->getTemplate() ;
=====================================================================
Found a 18 line (109 tokens) duplication in the following files: 
Starting at line 1184 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 1538 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Starting at line 2133 of /local/ooo-build/ooo-build/src/oog680-m3/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx

Reference< xml::input::XElement > WindowElement::startChildElement(
	sal_Int32 nUid, OUString const & rLocalName,
	Reference< xml::input::XAttributes > const & xAttributes )
	throw (xml::sax::SAXException, RuntimeException)
{
	// event
    if (_pImport->isEventElement( nUid, rLocalName ))
	{
		return new EventElement( nUid, rLocalName, xAttributes, this, _pImport );
	}
	else if (_pImport->XMLNS_DIALOGS_UID != nUid)
	{
		throw xml::sax::SAXException(
			OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
			Reference< XInterface >(), Any() );
	}
	// styles
	else if (rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("styles") ))
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 1559 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/animationexport.cxx
Starting at line 1686 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/animationexport.cxx

	if( rValue.getValueType() == ::getCppuType((Sequence<Any>*)0) )
	{
		const Sequence<Any>* pSequence = static_cast< const Sequence<Any>* >( rValue.getValue() );
		const sal_Int32 nLength = pSequence->getLength();
		sal_Int32 nElement;
		const Any* pAny = pSequence->getConstArray();

		OUStringBuffer sTmp2;
		
		for( nElement = 0; nElement < nLength; nElement++, pAny++ )
		{
			if( sTmp.getLength() )
				sTmp.append( (sal_Unicode)';' );
=====================================================================
Found a 21 line (109 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/XMLTextShapeStyleContext.cxx

SvXMLImportContext *XMLTextShapeStyleContext::CreateChildContext(
		sal_uInt16 nPrefix,
		const OUString& rLocalName,
		const Reference< XAttributeList > & xAttrList )
{
	SvXMLImportContext *pContext = 0;

	if( XML_NAMESPACE_STYLE == nPrefix )
	{
		sal_uInt32 nFamily = 0;
		if( IsXMLToken( rLocalName, XML_TEXT_PROPERTIES ) )
			nFamily = XML_TYPE_PROP_TEXT;
		else if( IsXMLToken( rLocalName, XML_PARAGRAPH_PROPERTIES ) )
			nFamily = XML_TYPE_PROP_PARAGRAPH;
		else if( IsXMLToken( rLocalName, XML_GRAPHIC_PROPERTIES ) )
			nFamily = XML_TYPE_PROP_GRAPHIC;
		if( nFamily )
		{
			UniReference < SvXMLImportPropertyMapper > xImpPrMap =
				GetStyles()->GetImportPropertyMapper( GetFamily() );
			if( xImpPrMap.is() )
=====================================================================
Found a 5 line (109 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

 0x7e,0x7c,0x00,0x00,0x78,0x7c,0x00,0x00,0x70,0x38,0x00,0x00,0xc0,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 22 line (109 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dndevdis.cxx
Starting at line 466 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dndevdis.cxx

sal_Int32 DNDEventDispatcher::fireDropActionChangedEvent( Window *pWindow,
	const Reference< XDropTargetDragContext >& xContext, const sal_Int8 nDropAction,
	const Point& rLocation, const sal_Int8 nSourceActions
)
	throw(RuntimeException)
{
	sal_Int32 n = 0;

	if( pWindow && pWindow->IsInputEnabled() )
	{
		OClearableGuard aGuard( Application::GetSolarMutex() );

		// query DropTarget from window
		Reference< XDropTarget > xDropTarget = pWindow->GetDropTarget();

		if( xDropTarget.is() )
		{
			// retrieve relative mouse position
			Point relLoc = pWindow->ImplFrameToOutput( rLocation );
			aGuard.clear();

			n = static_cast < DNDListenerContainer * > ( xDropTarget.get() )->fireDropActionChangedEvent(
=====================================================================
Found a 21 line (109 tokens) duplication in the following files: 
Starting at line 534 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/opengl.cxx
Starting at line 1254 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/opengl.cxx

void OpenGL::Scissor( GLint nX, GLint nY, GLsizei nWidth, GLsizei nHeight )
{
	if( OGL_INIT() )
	{
		long nOutHeight;

		if( mpOutDev->GetOutDevType() == OUTDEV_WINDOW )
			nOutHeight = ( (Window*) mpOutDev )->ImplGetFrameWindow()->mnOutHeight;
		else
			nOutHeight = mpOutDev->mnOutHeight;

		mpOGL->OGLEntry( PGRAPHICS );

        // --- RTL --- mirror scissor coordinates
        if( mpOutDev->ImplHasMirroredGraphics() )
        {
            long lx = nX + mpOutDev->mnOutOffX;
            long lwidth = nWidth;
            mpOutDev->mpGraphics->mirror( lx, lwidth, mpOutDev );
            nX = lx - mpOutDev->mnOutOffX;
        }
=====================================================================
Found a 29 line (109 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgservices.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/treeview/tvfactory.cxx

	Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
			pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}
=====================================================================
Found a 29 line (109 tokens) duplication in the following files: 
Starting at line 320 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/directory.cxx
Starting at line 461 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx

						queryContentIdentifierString( nIndex ) );
		m_pImpl->m_aResults[ nIndex ]->xRow = xRow;
		return xRow;
	}

    return uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
        m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}

//=========================================================================
// virtual
void DataSupplier::close()
{
}

//=========================================================================
// virtual
void DataSupplier::validate()
    throw( ucb::ResultSetException )
{
=====================================================================
Found a 41 line (109 tokens) duplication in the following files: 
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/directory.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgresultset.cxx

using namespace package_ucp;

//=========================================================================
//=========================================================================
//
// DynamicResultSet Implementation.
//
//=========================================================================
//=========================================================================

DynamicResultSet::DynamicResultSet(
              const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
              const rtl::Reference< Content >& rxContent,
              const ucb::OpenCommandArgument2& rCommand,
              const uno::Reference< ucb::XCommandEnvironment >& rxEnv )
: ResultSetImplHelper( rxSMgr, rCommand ),
  m_xContent( rxContent ),
  m_xEnv( rxEnv )
{
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
=====================================================================
Found a 29 line (109 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/prov.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgservices.cxx

	uno::Reference< registry::XRegistryKey > xKey;
	try
	{
		xKey = static_cast< registry::XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
	catch ( registry::InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( registry::InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}
=====================================================================
Found a 23 line (109 tokens) duplication in the following files: 
Starting at line 694 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx
Starting at line 827 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlplug.cxx

	pAppletImpl->FinishApplet();

	// und in das Dok einfuegen
	SwFrmFmt* pFlyFmt =
		pDoc->Insert( *pPam,
					::svt::EmbeddedObjectRef( pAppletImpl->GetApplet(), ::com::sun::star::embed::Aspects::MSOLE_CONTENT ),
					&pAppletImpl->GetItemSet(),
					NULL,
					NULL );

	// den alternativen Namen setzen
	SwNoTxtNode *pNoTxtNd =
		pDoc->GetNodes()[ pFlyFmt->GetCntnt().GetCntntIdx()
						  ->GetIndex()+1 ]->GetNoTxtNode();
	pNoTxtNd->SetAlternateText( pAppletImpl->GetAltText() );

	// Ggf Frames anlegen und auto-geb. Rahmen registrieren
	RegisterFlyFrm( pFlyFmt );

	delete pAppletImpl;
	pAppletImpl = 0;
#endif
}
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 427 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unosett.cxx
Starting at line 765 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unosett.cxx

void SwXEndnoteProperties::setPropertyValue(const OUString& rPropertyName, const uno::Any& aValue)
	throw( beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException,
		lang::WrappedTargetException, uno::RuntimeException )
{
	vos::OGuard aGuard(Application::GetSolarMutex());
	if(pDoc)
	{
		const SfxItemPropertyMap*	pMap = SfxItemPropertyMap::GetByName(
														_pMap, rPropertyName);
		if(pMap)
		{
		    if ( pMap->nFlags & PropertyAttribute::READONLY)
                throw PropertyVetoException( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is read-only: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
=====================================================================
Found a 21 line (109 tokens) duplication in the following files: 
Starting at line 519 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx
Starting at line 582 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docredln.cxx

					if( POS_INSIDE == eCmpPos )
					{
						// aufsplitten
						if( *pEnd != *pREnd )
						{
							SwRedline* pCpy = new SwRedline( *pRedl );
							pCpy->SetStart( *pEnd );
							pRedlineTbl->Insert( pCpy );
						}
						pRedl->SetEnd( *pStt, pREnd );
                        if( ( *pStt == *pRStt ) &&
                            ( pRedl->GetContentIdx() == NULL ) )
                        {
							pRedlineTbl->DeleteAndDestroy( n );
                            bDec = true;
                        }
						else if( !pRedl->HasValidRange() )
						{
							// neu einsortieren
							pRedlineTbl->Remove( n );
							pRedlineTbl->Insert( pRedl, n );
=====================================================================
Found a 21 line (109 tokens) duplication in the following files: 
Starting at line 979 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/acctable.cxx
Starting at line 1010 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/acctable.cxx

sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleColumnExtentAt(
		   	sal_Int32 nRow, sal_Int32 nColumn )
	throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
	sal_Int32 nExtend = -1;

	vos::OGuard aGuard(Application::GetSolarMutex());

	CHECK_FOR_DEFUNC( XAccessibleTable )

	GetTableData().CheckRowAndCol( nRow, nColumn, this );

	Int32Set_Impl::const_iterator aSttCol(
									GetTableData().GetColumnIter( nColumn ) );
	Int32Set_Impl::const_iterator aSttRow(
									GetTableData().GetRowIter( nRow ) );
	const SwFrm *pCellFrm = GetTableData().GetCellAtPos( *aSttCol, *aSttRow,
														 sal_False );
	if( pCellFrm )
	{
		sal_Int32 nRight = pCellFrm->Frm().Right();
=====================================================================
Found a 21 line (109 tokens) duplication in the following files: 
Starting at line 2105 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx
Starting at line 2503 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx

						if( pItem->GetLineEndValue() != pLineEndItem->GetLineEndValue() )
						{
							// same name but different value, we need a new name for this item
							aUniqueName = String();
							bForceNew = sal_True;
						}
						break;
					}
				}
			}
		}

		const SfxItemPool* pPool2 = pModel->GetStyleSheetPool() ? &pModel->GetStyleSheetPool()->GetPool() : NULL;
		if( aUniqueName.Len() && pPool2)
		{
			nCount = pPool2->GetItemCount( XATTR_LINESTART );
			for( nSurrogate = 0; nSurrogate < nCount; nSurrogate++ )
			{
				const XLineStartItem* pItem = (const XLineStartItem*)pPool2->GetItem( XATTR_LINESTART, nSurrogate );

				if( pItem && ( pItem->GetName() == pLineEndItem->GetName() ) )
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 428 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshape.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/unoatrcn.cxx

const ::com::sun::star::uno::Sequence< sal_Int8 > & SvUnoAttributeContainer::getUnoTunnelId() throw()
{
	static ::com::sun::star::uno::Sequence< sal_Int8 > * pSeq = 0;
	if( !pSeq )
	{
		::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() );
		if( !pSeq )
		{
			static ::com::sun::star::uno::Sequence< sal_Int8 > aSeq( 16 );
			rtl_createUuid( (sal_uInt8*)aSeq.getArray(), 0, sal_True );
			pSeq = &aSeq;
		}
	}
	return *pSeq;
}
=====================================================================
Found a 7 line (109 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshape.cxx
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshape.cxx

		{MAP_CHAR_LEN("TextPortionType"),				WID_PORTIONTYPE,	&::getCppuType((const ::rtl::OUString*)0), beans::PropertyAttribute::READONLY, 0 },
		{MAP_CHAR_LEN("TextUserDefinedAttributes"),			EE_CHAR_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}
	};

	return aSvxTextPortionPropertyMap;
=====================================================================
Found a 8 line (109 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 471 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		CUSTOMSHAPE_PROPERTIES
		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return aAllPropertyMap_Impl;
=====================================================================
Found a 10 line (109 tokens) duplication in the following files: 
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unopool.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unogallery/unogalitem.cxx

uno::Any SAL_CALL GalleryItem::queryAggregation( const uno::Type & rType ) 
	throw( uno::RuntimeException )
{
	uno::Any aAny;

	if( rType == ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0) )
		aAny <<= uno::Reference< lang::XServiceInfo >(this);
	else if( rType == ::getCppuType((const uno::Reference< lang::XTypeProvider >*)0) )
		aAny <<= uno::Reference< lang::XTypeProvider >(this);
	else if( rType == ::getCppuType((const uno::Reference< gallery::XGalleryItem >*)0) )
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdorect.cxx
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotxdr.cxx

		case 7: aPnt=aRect.BottomRight();  eKind=HDL_LWRGT; break; // Unten rechts
	}
	if (aGeo.nShearWink!=0) ShearPoint(aPnt,aRect.TopLeft(),aGeo.nTan);
	if (aGeo.nDrehWink!=0) RotatePoint(aPnt,aRect.TopLeft(),aGeo.nSin,aGeo.nCos);
	if (eKind!=HDL_MOVE) {
		pH=new SdrHdl(aPnt,eKind);
		pH->SetObj((SdrObject*)this);
		pH->SetDrehWink(aGeo.nDrehWink);
	}
	return pH;
}

FASTBOOL SdrTextObj::HasSpecialDrag() const
=====================================================================
Found a 7 line (109 tokens) duplication in the following files: 
Starting at line 746 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx
Starting at line 767 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

					bPnt2=TRUE;
					double nXFact=0; if (!bVLin) nXFact=(double)ndx/(double)ndx0;
					double nYFact=0; if (!bHLin) nYFact=(double)ndy/(double)ndy0;
					FASTBOOL bHor=bHLin || (!bVLin && (nXFact>nYFact) ==bBigOrtho);
					FASTBOOL bVer=bVLin || (!bHLin && (nXFact<=nYFact)==bBigOrtho);
					if (bHor) ndy=long(ndy0*nXFact);
					if (bVer) ndx=long(ndx0*nYFact);
=====================================================================
Found a 9 line (109 tokens) duplication in the following files: 
Starting at line 2267 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoedge.cxx
Starting at line 473 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx

void SdrObjGroup::NbcSetSnapRect(const Rectangle& rRect)
{
	Rectangle aOld(GetSnapRect());
	long nMulX=rRect.Right()-rRect.Left();
	long nDivX=aOld.Right()-aOld.Left();
	long nMulY=rRect.Bottom()-rRect.Top();
	long nDivY=aOld.Bottom()-aOld.Top();
	if (nDivX==0) { nMulX=1; nDivX=1; }
	if (nDivY==0) { nMulY=1; nDivY=1; }
=====================================================================
Found a 16 line (109 tokens) duplication in the following files: 
Starting at line 2189 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 3034 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x4C, 0x00, 0x69, 0x00, 0x73, 0x00, 0x74, 0x00,
		0x42, 0x00, 0x6F, 0x00, 0x78, 0x00, 0x31, 0x00,
		0x00, 0x00, 0x00, 0x00
		};

	{
	SvStorageStreamRef xStor2( rObj->OpenSotStream( C2S("\3OCXNAME")));
	xStor2->Write(aOCXNAME,sizeof(aOCXNAME));
	DBG_ASSERT((xStor2.Is() && (SVSTREAM_OK == xStor2->GetError())),"damn");
	}

	SvStorageStreamRef xContents( rObj->OpenSotStream( C2S("contents")));
	return WriteContents(xContents, rPropSet, rSize);
}

sal_Bool OCX_Control::Read(SvStorageStream *pS)
=====================================================================
Found a 8 line (109 tokens) duplication in the following files: 
Starting at line 3439 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/fmcomp/gridcell.cxx
Starting at line 3648 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/fmcomp/gridcell.cxx
Starting at line 3796 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/fmcomp/gridcell.cxx

Sequence< ::com::sun::star::uno::Type > SAL_CALL FmXListBoxCell::getTypes(  ) throw(RuntimeException)
{
    Sequence< ::com::sun::star::uno::Type > aTypes = OComponentHelper::getTypes();

    sal_Int32 nLen = aTypes.getLength();
    aTypes.realloc(nLen + 2);
    aTypes.getArray()[nLen++] = ::getCppuType(static_cast< Reference< ::com::sun::star::awt::XControl >* >(NULL));
    aTypes.getArray()[nLen++] = ::getCppuType(static_cast< Reference< ::com::sun::star::awt::XListBox >* >(NULL));
=====================================================================
Found a 11 line (109 tokens) duplication in the following files: 
Starting at line 3756 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/obj3d.cxx
Starting at line 3861 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/engine3d/obj3d.cxx

				basegfx::B3DRange aNewSize(basegfx::tools::getRange(aLocalBack));

				// Skalierung feststellen (nur X,Y)
				basegfx::B3DPoint aScaleVec(
					(aNewSize.getWidth() != 0.0) ? aOldSize.getWidth() / aNewSize.getWidth() : 1.0,
					(aNewSize.getHeight() != 0.0) ? aOldSize.getHeight() / aNewSize.getHeight() : 1.0,
					(aNewSize.getDepth() != 0.0) ? aOldSize.getDepth() / aNewSize.getDepth() : 1.0);

				// Transformation bilden
				basegfx::B3DHomMatrix aTransMat;
				aTransMat.scale(aScaleVec.getX(), aScaleVec.getY(), aScaleVec.getZ());
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 2245 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpbitmap.cxx

			String			aString( SVX_RES( RID_SVXSTR_TABLE ) ); aString.AppendAscii( RTL_CONSTASCII_STRINGPARAM( ": " ) );
			INetURLObject	aURL( pBitmapList->GetPath() );

			aURL.Append( pBitmapList->GetName() );
			DBG_ASSERT( aURL.GetProtocol() != INET_PROT_NOT_VALID, "invalid URL" );

			if( aURL.getBase().getLength() > 18 )
			{
				aString += String(aURL.getBase()).Copy( 0, 15 );
				aString.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "..." ) );
			}
			else
				aString += String(aURL.getBase());
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 1982 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpgradnt.cxx

			String			aString( SVX_RES( RID_SVXSTR_TABLE ) ); aString.AppendAscii( RTL_CONSTASCII_STRINGPARAM( ": " ) );
			INetURLObject	aURL( pGradientList->GetPath() );

			aURL.Append( pGradientList->GetName() );
			DBG_ASSERT( aURL.GetProtocol() != INET_PROT_NOT_VALID, "invalid URL" );

			if ( aURL.getBase().getLength() > 18 )
			{
				aString += String(aURL.getBase()).Copy( 0, 15 );
				aString.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "..." ) );
			}
			else
				aString += String(aURL.getBase());
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 1892 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tparea.cxx
Starting at line 269 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpcolor.cxx

			String			aString( SVX_RES( RID_SVXSTR_TABLE ) ); aString.AppendAscii( RTL_CONSTASCII_STRINGPARAM( ": " ) );
			INetURLObject	aURL( pColorTab->GetPath() );

			aURL.Append( pColorTab->GetName() );
			DBG_ASSERT( aURL.GetProtocol() != INET_PROT_NOT_VALID, "invalid URL" );

			if ( aURL.getBase().getLength() > 18 )
			{
				aString += String(aURL.getBase()).Copy( 0, 15 );
				aString.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "..." ) );
			}
			else
				aString += String(aURL.getBase());
=====================================================================
Found a 16 line (109 tokens) duplication in the following files: 
Starting at line 4631 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 4217 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	0xa302, 0x6000, 0x8000
};
static const SvxMSDffTextRectangles mso_sptFlowChartConnectorTextRect[] = 
{
	{ { 3180, 3180 }, { 18420, 18420 } }
};
static const mso_CustomShape msoFlowChartConnector =
{
	(SvxMSDffVertPair*)mso_sptFlowChartConnectorVert, sizeof( mso_sptFlowChartConnectorVert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptFlowChartConnectorSegm, sizeof( mso_sptFlowChartConnectorSegm ) >> 1,
	NULL, 0,
	NULL,
	(SvxMSDffTextRectangles*)mso_sptFlowChartConnectorTextRect, sizeof( mso_sptFlowChartConnectorTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptEllipseGluePoints, sizeof( mso_sptEllipseGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShape3d.cxx
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape3d.cxx

		double fH(rVolume.getHeight());

		rCamera.SetAutoAdjustProjection( FALSE );
		rCamera.SetViewWindow( -fW / 2, - fH / 2, fW, fH);
		basegfx::B3DPoint aLookAt( 0.0, 0.0, 0.0 );
        basegfx::B3DPoint aCamPos( 0.0, 0.0, 100.0 );

		rCamera.SetDefaults( basegfx::B3DPoint( 0.0, 0.0, 100.0 ), aLookAt, 100.0 );
		rCamera.SetPosAndLookAt( aCamPos, aLookAt );
		rCamera.SetFocalLength( 1.0 );
		rCamera.SetProjection( eProjectionType );
		pScene->SetCamera( rCamera );
		pScene->SetRectsDirty();

		double fViewPointOriginX = ((double)((sal_Int32)rPropSet.GetPropertyValue( DFF_Prop_c3DOriginX, 32768 )) * rSnapRect.GetWidth()) / 65536.0;
=====================================================================
Found a 7 line (109 tokens) duplication in the following files: 
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/accessibility/AccessibleEditableTextPara.cxx
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshape.cxx

		SVX_UNOEDIT_PARA_PROPERTIES,
		{MAP_CHAR_LEN("TextUserDefinedAttributes"),			EE_CHAR_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}
	};

	return aSvxUnoOutlinerTextCursorPropertyMap;
=====================================================================
Found a 29 line (109 tokens) duplication in the following files: 
Starting at line 498 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx
Starting at line 717 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx

							uno::UNO_QUERY );
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't copy raw stream" ),
												 uno::Reference< io::XInputStream >(),
												 aCaught );
	}
=====================================================================
Found a 30 line (109 tokens) duplication in the following files: 
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsfactory.cxx
Starting at line 109 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/hatchwindow/hatchwindowfactory.cxx

uno::Sequence< ::rtl::OUString > SAL_CALL OHatchWindowFactory::getSupportedServiceNames()
	throw ( uno::RuntimeException )
{
	return impl_staticGetSupportedServiceNames();
}

//-------------------------------------------------------------------------

extern "C"
{

SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment (
	const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo (
	void * /* pServiceManager */, void * pRegistryKey)
{
	if (pRegistryKey)
	{
		uno::Reference< registry::XRegistryKey> xRegistryKey (
			reinterpret_cast< registry::XRegistryKey* >(pRegistryKey));
		uno::Reference< registry::XRegistryKey> xNewKey;

		// OHatchWindowFactory registration

		xNewKey = xRegistryKey->createKey (
			::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + 
=====================================================================
Found a 10 line (109 tokens) duplication in the following files: 
Starting at line 653 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/colctrl.cxx
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/color.cxx

		UINT8 c = (UINT8) ( nB * ( 100 - ( (double)nSat * ( 1.0 - f ) + 0.5 ) ) / 100 );

		switch( n )
		{
			case 0: cR = nB;	cG = c;		cB = a; 	break;
			case 1: cR = b;		cG = nB;	cB = a; 	break;
			case 2: cR = a;		cG = nB;	cB = c;		break;
			case 3: cR = a;		cG = b; 	cB = nB;	break;
			case 4: cR = c;		cG = a; 	cB = nB;	break;
			case 5: cR = nB; 	cG = a;		cB = b;		break;
=====================================================================
Found a 24 line (109 tokens) duplication in the following files: 
Starting at line 1385 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/viewsh.cxx
Starting at line 1427 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/viewsh.cxx

    for ( ++nPos; nPos < rShells.Count(); ++nPos )
	{
		SfxViewShell *pShell = rShells.GetObject(nPos);
        if ( pShell )
        {
            // sometimes dangling SfxViewShells exist that point to a dead SfxViewFrame
            // these ViewShells shouldn't be accessible anymore
            // a destroyed ViewFrame is not in the ViewFrame array anymore, so checking this array helps
            for ( sal_uInt16 n=0; n<rFrames.Count(); ++n )
            {
                SfxViewFrame *pFrame = rFrames.GetObject(n);
                if ( pFrame == pShell->GetViewFrame() )
                {
                    // only ViewShells with a valid ViewFrame will be returned
                    if ( ( !bOnlyVisible || pFrame->IsVisible_Impl() ) && ( !pType || pShell->IsA(*pType) ) )
                        return pShell;
                    break;
                }
            }
        }
    }

	return 0;
}
=====================================================================
Found a 47 line (109 tokens) duplication in the following files: 
Starting at line 783 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/doctempl.cxx
Starting at line 841 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/doctempl.cxx

    DocTempl_EntryData_Impl  *pEntry = NULL;

    if ( pRegion )
        pEntry = pRegion->GetEntry( rLongName );

    if ( pEntry )
        return pEntry->GetTargetURL();
    else if ( pRegion )
    {
		// a new template is going to be inserted, generate a new URL
		// TODO/LATER: if the title is localized, use minimized URL in future

        INetURLObject aURLObj( pRegion->GetTargetURL() );
        aURLObj.insertName( rLongName, false,
                     INetURLObject::LAST_SEGMENT, true,
                     INetURLObject::ENCODE_ALL );

        OUString aExtension = aURLObj.getExtension();

        if ( ! aExtension.getLength() )
            aURLObj.setExtension( OUString( RTL_CONSTASCII_USTRINGPARAM( "vor" ) ) );

        return aURLObj.GetMainURL( INetURLObject::NO_DECODE );
    }
    else
        return String();

/* dv! missing: create the directory, if it doesn't exists


    DBG_ASSERT(aDirs.GetTokenCount(cDelim), "Keine Bereiche");
    DirEntry aPath(aDirs.GetToken(0, cDelim));

    // Verzeichnis anlegen
    if(!aPath.MakeDir())
        return String();

    MakeFileName_Impl(aPath, rLongName, sal_True);
    SfxTemplateDir  *pEntry = new SfxTemplateDir;
    SfxTemplateDirEntryPtr pDirEntry =
        new SfxTemplateDirEntry( String( '.' ), aPath.GetPath() );
    pDirEntry->SetContent(new SfxTemplateDir(aPath.GetPath()));
    pEntry->Insert(pDirEntry, pEntry->Count());
    pDirs->Insert(pEntry, pDirs->Count());
    return aPath.GetFull();
*/
}
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopstyl.cxx
Starting at line 428 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshape.cxx

const ::com::sun::star::uno::Sequence< sal_Int8 > & SvxShape::getUnoTunnelId() throw()
{
	static ::com::sun::star::uno::Sequence< sal_Int8 > * pSeq = 0;
	if( !pSeq )
	{
		::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() );
		if( !pSeq )
		{
			static ::com::sun::star::uno::Sequence< sal_Int8 > aSeq( 16 );
			rtl_createUuid( (sal_uInt8*)aSeq.getArray(), 0, sal_True );
			pSeq = &aSeq;
		}
	}
	return *pSeq;
}
=====================================================================
Found a 10 line (109 tokens) duplication in the following files: 
Starting at line 1233 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unomodel.cxx
Starting at line 638 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unomod.cxx

	sal_uInt16 i = 0;

	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.DashTable"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.GradientTable"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.HatchTable"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.BitmapTable"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.TransparencyGradientTable"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.MarkerTable"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.NumberingRules"));
	aSNS[i++] = OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.image.ImageMapRectangleObject"));
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unogstyl.cxx
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopstyl.cxx

const ::com::sun::star::uno::Sequence< sal_Int8 > & SdUnoPseudoStyle::getUnoTunnelId() throw()
{
	static ::com::sun::star::uno::Sequence< sal_Int8 > * pSeq = 0;
	if( !pSeq )
	{
		::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() );
		if( !pSeq )
		{
			static ::com::sun::star::uno::Sequence< sal_Int8 > aSeq( 16 );
			rtl_createUuid( (sal_uInt8*)aSeq.getArray(), 0, sal_True );
			pSeq = &aSeq;
		}
	}
	return *pSeq;
}
=====================================================================
Found a 17 line (109 tokens) duplication in the following files: 
Starting at line 953 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx
Starting at line 1090 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/dbfunc3.cxx

void ScDBFunc::NumGroupDataPilot( const ScDPNumGroupInfo& rInfo )
{
    ScDPObject* pDPObj = GetViewData()->GetDocument()->GetDPAtCursor( GetViewData()->GetCurX(),
                                        GetViewData()->GetCurY(), GetViewData()->GetTabNo() );
    if ( pDPObj )
    {
        StrCollection aEntries;
        long nSelectDimension = -1;
        GetSelectedMemberList( aEntries, nSelectDimension );

        if ( aEntries.GetCount() > 0 )
        {
            BOOL bIsDataLayout;
            String aDimName = pDPObj->GetDimName( nSelectDimension, bIsDataLayout );

            ScDPSaveData aData( *pDPObj->GetSaveData() );
            ScDPDimensionSaveData* pDimData = aData.GetDimensionData();     // created if not there
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/dispuno.cxx
Starting at line 138 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/unodispatch.cxx

    DispatchMutexLock_Impl aLock(*this);
    uno::Sequence< uno::Reference< frame::XDispatch> > aReturn(aDescripts.getLength());
	uno::Reference< frame::XDispatch>* pReturn = aReturn.getArray();
	const frame::DispatchDescriptor* pDescripts = aDescripts.getConstArray();
	for (sal_Int16 i=0; i<aDescripts.getLength(); ++i, ++pReturn, ++pDescripts)
	{
		*pReturn = queryDispatch(pDescripts->FeatureURL,
				pDescripts->FrameName, pDescripts->SearchFlags);
	}
	return aReturn;
}
/*-- 07.11.00 13:25:52---------------------------------------------------

  -----------------------------------------------------------------------*/
uno::Reference< frame::XDispatchProvider > SwXDispatchProviderInterceptor::getSlaveDispatchProvider(  )
=====================================================================
Found a 19 line (109 tokens) duplication in the following files: 
Starting at line 1115 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 1227 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

	const uno::Sequence<rtl::OUString>* pArray = aData.getConstArray();
	if ( nRows )
		nCols = pArray[0].getLength();

	if ( nCols != nEndCol-nStartCol+1 || nRows != nEndRow-nStartRow+1 )
	{
		//!	error message?
		return FALSE;
	}

	ScDocument* pUndoDoc = NULL;
	if ( bUndo )
	{
		pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
		pUndoDoc->InitUndo( pDoc, nTab, nTab );
		pDoc->CopyToDocument( rRange, IDF_CONTENTS, FALSE, pUndoDoc );
	}

	pDoc->DeleteAreaTab( nStartCol, nStartRow, nEndCol, nEndRow, nTab, IDF_CONTENTS );
=====================================================================
Found a 10 line (109 tokens) duplication in the following files: 
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/fuins2.cxx
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/tablemgr.cxx

            uno::makeAny( rCellRange ), beans::PropertyState_DIRECT_VALUE );
        aArgs[1] = beans::PropertyValue(
            ::rtl::OUString::createFromAscii("HasCategories"), -1,
            uno::makeAny( bHasCategories ), beans::PropertyState_DIRECT_VALUE );
        aArgs[2] = beans::PropertyValue(
            ::rtl::OUString::createFromAscii("FirstCellAsLabel"), -1,
            uno::makeAny( bFirstCellAsLabel ), beans::PropertyState_DIRECT_VALUE );
        aArgs[3] = beans::PropertyValue(
            ::rtl::OUString::createFromAscii("DataRowSource"), -1,
            uno::makeAny( eDataRowSource ), beans::PropertyState_DIRECT_VALUE );
=====================================================================
Found a 18 line (109 tokens) duplication in the following files: 
Starting at line 168 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx
Starting at line 437 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx

BOOL ScOutlineDocFunc::ShowMarkedOutlines( const ScRange& rRange, BOOL bRecord, BOOL bApi )
{
	BOOL bDone = FALSE;

	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	SCCOL nEndCol = rRange.aEnd.Col();
	SCROW nEndRow = rRange.aEnd.Row();
	SCTAB nTab = rRange.aStart.Tab();

	ScDocument* pDoc = rDocShell.GetDocument();

	if (bRecord && !pDoc->IsUndoEnabled())
		bRecord = FALSE;
	ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab );

	if (pTable)
	{
=====================================================================
Found a 19 line (109 tokens) duplication in the following files: 
Starting at line 2513 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx
Starting at line 2569 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx

	nFlags &= ~CR_MANUALBREAK;
	if (bColumn)
		pDoc->SetColFlags( static_cast<SCCOL>(nPos), nTab, nFlags );
	else
		pDoc->SetRowFlags( static_cast<SCROW>(nPos), nTab, nFlags );
	pDoc->UpdatePageBreaks( nTab );

	if (bColumn)
	{
		rDocShell.PostPaint( static_cast<SCCOL>(nPos)-1, 0, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID );
		if (pBindings)
		{
			pBindings->Invalidate( FID_INS_COLBRK );
			pBindings->Invalidate( FID_DEL_COLBRK );
		}
	}
	else
	{
		rDocShell.PostPaint( 0, nPos-1, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID );
=====================================================================
Found a 18 line (109 tokens) duplication in the following files: 
Starting at line 2422 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/docfunc.cxx
Starting at line 2085 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/viewfunc.cxx

						pDoc->ShowRows( nStartNo, nEndNo, nTab, nSizeTwips != 0 );
					}
					else if ( eMode==SC_SIZE_SHOW )
					{
						pDoc->ShowRows( nStartNo, nEndNo, nTab, TRUE );
					}
				}
				else								// Spaltenbreiten
				{
					for (SCCOL nCol=static_cast<SCCOL>(nStartNo); nCol<=static_cast<SCCOL>(nEndNo); nCol++)
					{
						if ( eMode != SC_SIZE_VISOPT ||
							 (pDoc->GetColFlags( nCol, nTab ) & CR_HIDDEN) == 0 )
						{
							USHORT nThisSize = nSizeTwips;

							if ( eMode==SC_SIZE_OPTIMAL || eMode==SC_SIZE_VISOPT )
								nThisSize = nSizeTwips + GetOptimalColWidth( nCol, nTab, bFormula );
=====================================================================
Found a 19 line (109 tokens) duplication in the following files: 
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx

uno::Reference<XAccessibleStateSet> SAL_CALL ScAccessiblePreviewHeaderCell::getAccessibleStateSet()
						    throw(uno::RuntimeException)
{
	ScUnoGuard aGuard;

	uno::Reference<XAccessibleStateSet> xParentStates;
	if (getAccessibleParent().is())
	{
		uno::Reference<XAccessibleContext> xParentContext = getAccessibleParent()->getAccessibleContext();
		xParentStates = xParentContext->getAccessibleStateSet();
	}
	utl::AccessibleStateSetHelper* pStateSet = new utl::AccessibleStateSetHelper();
	if (IsDefunc(xParentStates))
		pStateSet->AddState(AccessibleStateType::DEFUNC);
    else
    {
	    pStateSet->AddState(AccessibleStateType::ENABLED);
	    pStateSet->AddState(AccessibleStateType::MULTI_LINE);
	    if (isShowing())
=====================================================================
Found a 24 line (109 tokens) duplication in the following files: 
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/read.cxx
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/read.cxx

            case Z_Biff4T:       // --------------------------------- Z_Biff4T -
			{
				switch( nOpcode )
				{
                    // skip chart substream
                    case EXC_ID2_BOF:
                    case EXC_ID3_BOF:
                    case EXC_ID4_BOF:
                    case EXC_ID5_BOF:           XclTools::SkipSubStream( maStrm );  break;

                    case EXC_ID2_DIMENSIONS:
                    case EXC_ID3_DIMENSIONS:    ReadDimensions();       break;
                    case EXC_ID2_BLANK:
                    case EXC_ID3_BLANK:         ReadBlank();            break;
                    case EXC_ID2_INTEGER:       ReadInteger();          break;
                    case EXC_ID2_NUMBER:
                    case EXC_ID3_NUMBER:        ReadNumber();           break;
                    case EXC_ID2_LABEL:
                    case EXC_ID3_LABEL:         ReadLabel();            break;
                    case EXC_ID2_BOOLERR:
                    case EXC_ID3_BOOLERR:       ReadBoolErr();          break;
                    case EXC_ID_RK:             ReadRk();               break;

					case 0x0A:							// EOF			[ 2345]
=====================================================================
Found a 14 line (109 tokens) duplication in the following files: 
Starting at line 1697 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx
Starting at line 1739 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx

                            const double* pColArr = pRowArr[nRow].getConstArray();
                            for (nCol=0; nCol<nColCount; nCol++)
                                pMatrix->PutDouble( pColArr[nCol],
                                        static_cast<SCSIZE>(nCol),
                                        static_cast<SCSIZE>(nRow) );
                            for (nCol=nColCount; nCol<nMaxColCount; nCol++)
                                pMatrix->PutDouble( 0.0,
                                        static_cast<SCSIZE>(nCol),
                                        static_cast<SCSIZE>(nRow) );
                        }
                    }
                }
            }
            else if ( aType.equals( getCppuType( (uno::Sequence< uno::Sequence<rtl::OUString> > *)0 ) ) )
=====================================================================
Found a 10 line (109 tokens) duplication in the following files: 
Starting at line 127 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/documen5.cxx
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/tablemgr.cxx

            uno::makeAny( rCellRange ), beans::PropertyState_DIRECT_VALUE );
        aArgs[1] = beans::PropertyValue(
            ::rtl::OUString::createFromAscii("HasCategories"), -1,
            uno::makeAny( bHasCategories ), beans::PropertyState_DIRECT_VALUE );
        aArgs[2] = beans::PropertyValue(
            ::rtl::OUString::createFromAscii("FirstCellAsLabel"), -1,
            uno::makeAny( bFirstCellAsLabel ), beans::PropertyState_DIRECT_VALUE );
        aArgs[3] = beans::PropertyValue(
            ::rtl::OUString::createFromAscii("DataRowSource"), -1,
            uno::makeAny( eDataRowSource ), beans::PropertyState_DIRECT_VALUE );
=====================================================================
Found a 25 line (109 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testsax.cxx
Starting at line 155 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/saxdemo.cxx

	}

public: // Error handler
    virtual void SAL_CALL error(const Any& aSAXParseException) throw (SAXException, RuntimeException)
    {
    	printf( "Error !\n" );
    	throw  SAXException(
			OUString( RTL_CONSTASCII_USTRINGPARAM("error from error handler")) ,
			Reference < XInterface >() ,
			aSAXParseException );
    }
    virtual void SAL_CALL fatalError(const Any& aSAXParseException) throw (SAXException, RuntimeException)
    {
    	printf( "Fatal Error !\n" );
    }
    virtual void SAL_CALL warning(const Any& aSAXParseException) throw (SAXException, RuntimeException)
    {
    	printf( "Warning !\n" );
    }


public: // ExtendedDocumentHandler

    virtual void SAL_CALL startDocument(void) throw (SAXException, RuntimeException)
    {
=====================================================================
Found a 18 line (109 tokens) duplication in the following files: 
Starting at line 236 of /local/ooo-build/ooo-build/src/oog680-m3/sal/test/unloading/unloadTest.cxx
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/sal/test/unloading/unloadTest.cxx

	sal_Bool retval=sal_False;
	OUString lib1Name( RTL_CONSTASCII_USTRINGPARAM(LIBRARY1));
	{
	Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
 		OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));

	Reference<XInterface> xint=	serviceManager->createInstance( OUString(
				RTL_CONSTASCII_USTRINGPARAM(SERVICENAME1)));

	handleMod=	osl_loadModule( lib1Name.pData, 0);
	osl_unloadModule( handleMod);
	//-----------------------------------------------------------
	oslModule mod1= osl_loadModule( lib1Name.pData, 0);
	oslModule mod2= osl_loadModule( lib1Name.pData, 0);
	oslModule mod3= osl_loadModule( lib1Name.pData, 0);

	rtl_registerModuleForUnloading(mod1);
	rtl_registerModuleForUnloading(mod2);
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 567 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 577 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

	sal_Int32 i;

    for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
    {
        sal_Int32 cmpRes = arrTestCase[i].input1->compareTo
            (*arrTestCase[i].input2, arrTestCase[i].maxLength);
        cmpRes = (cmpRes == 0) ? 0 : (cmpRes > 0) ? +1 : -1 ;
        sal_Bool lastRes = (cmpRes == arrTestCase[i].expVal);

        c_rtl_tres_state
            (
                hRtlTestResult,
                lastRes,
                arrTestCase[i].comments,
                createName( pMeth, "compareTo_002(const OString&, sal_Int32)", i )
=====================================================================
Found a 24 line (109 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/thesaurus/libnth/ntprophelp.cxx
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/prophelp.cxx

void PropertyChgHelper::SetTmpPropVals( const PropertyValues &rPropVals )
{
	// return value is default value unless there is an explicitly supplied
	// temporary value
	bResIsGermanPreReform			= bIsGermanPreReform;
	bResIsIgnoreControlCharacters	= bIsIgnoreControlCharacters;
	bResIsUseDictionaryList			= bIsUseDictionaryList;
	//
	INT32 nLen = rPropVals.getLength();
	if (nLen)
	{
		const PropertyValue *pVal = rPropVals.getConstArray();
		for (INT32 i = 0;  i < nLen;  ++i)
		{
			BOOL  *pbResVal = NULL;
			switch (pVal[i].Handle)
			{
				case UPH_IS_GERMAN_PRE_REFORM		: 
						pbResVal = &bResIsGermanPreReform; break;
				case UPH_IS_IGNORE_CONTROL_CHARACTERS : 
						pbResVal = &bResIsIgnoreControlCharacters; break;
				case UPH_IS_USE_DICTIONARY_LIST		: 
						pbResVal = &bResIsUseDictionaryList; break;
				default:
=====================================================================
Found a 11 line (109 tokens) duplication in the following files: 
Starting at line 1558 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 1973 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

                    continue;
            }

            // check compoundend flag in suffix and prefix
            if ((rv) && !checked_prefix && compoundend && !hu_mov_rule &&
                ((pfx && ((PfxEntry*)pfx)->getCont() &&
                    TESTAFF(((PfxEntry*)pfx)->getCont(), compoundend, 
                        ((PfxEntry*)pfx)->getContLen())) ||
                (sfx && ((SfxEntry*)sfx)->getCont() &&
                    TESTAFF(((SfxEntry*)sfx)->getCont(), compoundend, 
                        ((SfxEntry*)sfx)->getContLen())))) {
=====================================================================
Found a 38 line (109 tokens) duplication in the following files: 
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/idl/source/cmptools/char.cxx
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/rsc/source/tools/rscchar.cxx

			switch( *pStr )
			{
				case 'a':
					c = '\a';
					break;
				case 'b':
					c = '\b';
					break;
				case 'f':
					c = '\f';
					break;
				case 'n':
					c = '\n';
					break;
				case 'r':
					c = '\r';
					break;
				case 't':
					c = '\t';
					break;
				case 'v':
					c = '\v';
					break;
				case '\\':
					c = '\\';
					break;
				case '?':
					c = '\?';
					break;
				case '\'':
					c = '\'';
					break;
				case '\"':
					c = '\"';
					break;
				default:
				{
					if( '0' <= *pStr && '7' >= *pStr )
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 1506 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1519 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd90 - fd9f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fda0 - fdaf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fdb0 - fdbf
    13,13,13,13,13,13,13,13, 0, 0, 0, 0, 0, 0, 0, 0,// fdc0 - fdcf
=====================================================================
Found a 7 line (109 tokens) duplication in the following files: 
Starting at line 1343 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/udm/source/xml/xmlitem.cxx

	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,
	  0,  0,  0,  0,  0,  	0,  0,  0,  0,  0,

	  0,  0,  0,  0,  0,  	1					// &nbsp;
=====================================================================
Found a 6 line (109 tokens) duplication in the following files: 
Starting at line 1324 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1338 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 22f0 - 22ff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2300 - 230f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2310 - 231f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2320 - 232f
    10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2330 - 233f
=====================================================================
Found a 5 line (109 tokens) duplication in the following files: 
Starting at line 1136 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 1119 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1225 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1640 - 164f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1650 - 165f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1660 - 166f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1670 - 167f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 1114 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1119 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b00 - 0b0f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b10 - 0b1f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b20 - 0b2f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0,17,// 0b30 - 0b3f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 1093 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1225 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1640 - 164f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1650 - 165f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1660 - 166f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1670 - 167f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 783 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 877 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd90 - fd9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fda0 - fdaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fdb0 - fdbf
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// fdc0 - fdcf
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 691 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    11,11,11,11,11,11,11,11,11,11,27,27,27,27,27,27,// 3280 - 328f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3290 - 329f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 32a0 - 32af
    27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 32b0 - 32bf
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 670 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 736 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3240 - 324f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3250 - 325f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3260 - 326f
    27,27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0,27,// 3270 - 327f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 588 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 608 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,24,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25c0 - 25cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25d0 - 25df
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 25e0 - 25ef
    27,27,27,27,27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0,// 25f0 - 25ff
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 577 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    11,11,11,11,11,11,11,11,11,11,27,27,27,27,27,27,// 3280 - 328f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3290 - 329f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 32a0 - 32af
    27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 32b0 - 32bf
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1039 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 570 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 734 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    11,11,11,11,11,11,11,11,11,11,27,27,27,27,27,27,// 3220 - 322f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3230 - 323f
    27,27,27,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3240 - 324f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 3250 - 325f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 897 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fec0 - fecf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fed0 - fedf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fee0 - feef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0,16,// fef0 - feff
=====================================================================
Found a 5 line (109 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1840 - 184f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1850 - 185f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1860 - 186f
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1210 - 121f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1220 - 122f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1230 - 123f
     5, 5, 5, 5, 5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 0, 0,// 1240 - 124f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1262 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0,// 0740 - 074f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0750 - 075f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0760 - 076f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0770 - 077f
=====================================================================
Found a 4 line (109 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1554 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffc0 - ffcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffd0 - ffdf
=====================================================================
Found a 10 line (109 tokens) duplication in the following files: 
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/unographic/descriptor.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unogallery/unogalitem.cxx

uno::Any SAL_CALL GalleryItem::queryAggregation( const uno::Type & rType ) 
	throw( uno::RuntimeException )
{
	uno::Any aAny;

	if( rType == ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0) )
		aAny <<= uno::Reference< lang::XServiceInfo >(this);
	else if( rType == ::getCppuType((const uno::Reference< lang::XTypeProvider >*)0) )
		aAny <<= uno::Reference< lang::XTypeProvider >(this);
	else if( rType == ::getCppuType((const uno::Reference< gallery::XGalleryItem >*)0) )
=====================================================================
Found a 20 line (109 tokens) duplication in the following files: 
Starting at line 455 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itga/itga.cxx
Starting at line 498 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itga/itga.cxx

							*mpTGA >> nBlue >> nGreen >> nRed;
							for ( USHORT i = 0; i < ( ( nRunCount & 0x7f ) + 1 ); i++ )
							{
								mpAcc->SetPixel( nY, nX, BitmapColor( nRed, nGreen, nBlue ) );
								nX += nXAdd;
								nXCount++;
								if ( nXCount == mpFileHeader->nImageWidth )
								{
									nX = nXStart;
									nXCount = 0;
									nY += nYAdd;
									nYCount++;
								}
							}
						}
						else						// a raw packet
						{
							for ( USHORT i = 0; i < ( ( nRunCount & 0x7f ) + 1 ); i++ )
							{
								*mpTGA >> nBlue >> nGreen >> nRed;
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/itemcontainer.cxx
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/rootitemcontainer.cxx

const Sequence< sal_Int8 >& RootItemContainer::GetUnoTunnelId() throw()
{
	static ::com::sun::star::uno::Sequence< sal_Int8 > * pSeq = NULL;
	if( !pSeq )
	{
		::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() );
		if( !pSeq )
		{
			static ::com::sun::star::uno::Sequence< sal_Int8 > aSeq( 16 );
			rtl_createUuid( (sal_uInt8*)aSeq.getArray(), 0, sal_True );
			pSeq = &aSeq;
		}
	}
	return *pSeq;
}
=====================================================================
Found a 25 line (109 tokens) duplication in the following files: 
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/dropdownboxtoolbarcontroller.cxx
Starting at line 228 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/edittoolbarcontroller.cxx
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/togglebuttontoolbarcontroller.cxx

void SAL_CALL ToggleButtonToolbarController::execute( sal_Int16 KeyModifier )
throw ( RuntimeException )
{
    Reference< XDispatch >       xDispatch;
    Reference< XURLTransformer > xURLTransformer;
    OUString                     aCommandURL;
    OUString                     aSelectedText;
    ::com::sun::star::util::URL  aTargetURL;

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );

        if ( m_bDisposed )
            throw DisposedException();

        if ( m_bInitialized &&
             m_xFrame.is() &&
             m_xServiceManager.is() &&
             m_aCommandURL.getLength() )
        {
            xURLTransformer = m_xURLTransformer;
            xDispatch = getDispatchFromCommand( m_aCommandURL );
            aCommandURL = m_aCommandURL;
            aTargetURL = getInitializedURL();
            aSelectedText = m_aCurrentSelection;
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 328 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/constitemcontainer.cxx
Starting at line 198 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/itemcontainer.cxx

const Sequence< sal_Int8 >& ItemContainer::GetUnoTunnelId() throw()
{
	static ::com::sun::star::uno::Sequence< sal_Int8 > * pSeq = NULL;
	if( !pSeq )
	{
		::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() );
		if( !pSeq )
		{
			static ::com::sun::star::uno::Sequence< sal_Int8 > aSeq( 16 );
			rtl_createUuid( (sal_uInt8*)aSeq.getArray(), 0, sal_True );
			pSeq = &aSeq;
		}
	}
	return *pSeq;
}
=====================================================================
Found a 25 line (109 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/comboboxtoolbarcontroller.cxx
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/dropdownboxtoolbarcontroller.cxx

void SAL_CALL DropdownToolbarController::execute( sal_Int16 KeyModifier )
throw ( RuntimeException )
{
    Reference< XDispatch >       xDispatch;
    Reference< XURLTransformer > xURLTransformer;
    OUString                     aCommandURL;
    OUString                     aSelectedText;
    ::com::sun::star::util::URL  aTargetURL;

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );

        if ( m_bDisposed )
            throw DisposedException();

        if ( m_bInitialized &&
             m_xFrame.is() &&
             m_xServiceManager.is() &&
             m_aCommandURL.getLength() )
        {
            xURLTransformer = m_xURLTransformer;
            xDispatch = getDispatchFromCommand( m_aCommandURL );
            aCommandURL = m_aCommandURL;
            aTargetURL = getInitializedURL();
            aSelectedText = m_pListBoxControl->GetText();
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 685 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/addonsoptions.cxx
Starting at line 724 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/addonsoptions.cxx

	sal_uInt32				nCount = aAddonHelpMenuNodeSeq.getLength();
	sal_uInt32				nIndex = 0;
	Sequence< PropertyValue > aMenuItem( PROPERTYCOUNT_MENUITEM );

	// Init the property value sequence
	aMenuItem[ OFFSET_MENUITEM_URL				].Name = m_aPropNames[ INDEX_URL			];
	aMenuItem[ OFFSET_MENUITEM_TITLE			].Name = m_aPropNames[ INDEX_TITLE			];
	aMenuItem[ OFFSET_MENUITEM_TARGET			].Name = m_aPropNames[ INDEX_TARGET			];
	aMenuItem[ OFFSET_MENUITEM_IMAGEIDENTIFIER	].Name = m_aPropNames[ INDEX_IMAGEIDENTIFIER];
	aMenuItem[ OFFSET_MENUITEM_CONTEXT			].Name = m_aPropNames[ INDEX_CONTEXT		];
	aMenuItem[ OFFSET_MENUITEM_SUBMENU			].Name = m_aPropNames[ INDEX_SUBMENU		];	// Submenu set!

	for ( sal_uInt32 n = 0; n < nCount; n++ )
	{
		OUString aRootMenuItemNode( aAddonHelpMenuItemNode + aAddonHelpMenuNodeSeq[n] );
=====================================================================
Found a 21 line (109 tokens) duplication in the following files: 
Starting at line 236 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/accelerators/acceleratorexecute.cxx
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/acceleratorexecute.cxx

    return impl_ts_findCommand(aKey);
}
//-----------------------------------------------
::rtl::OUString AcceleratorExecute::impl_ts_findCommand(const css::awt::KeyEvent& aKey)
{
    // SAFE -> ----------------------------------
    ::osl::ResettableMutexGuard aLock(m_aLock);
    
    css::uno::Reference< css::ui::XAcceleratorConfiguration > xGlobalCfg = m_xGlobalCfg;
    css::uno::Reference< css::ui::XAcceleratorConfiguration > xModuleCfg = m_xModuleCfg;
    css::uno::Reference< css::ui::XAcceleratorConfiguration > xDocCfg    = m_xDocCfg   ;
    
    aLock.clear();    
    // <- SAFE ----------------------------------

    ::rtl::OUString sCommand;

    try
    {
        if (xDocCfg.is())
            sCommand = xDocCfg->getCommandByKeyEvent(aKey);
=====================================================================
Found a 11 line (109 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormattedField.cxx
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ImageControl.cxx

using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::ui::dialogs;
=====================================================================
Found a 28 line (109 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cppToUno/testcppuno.cxx
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpptest/cpptest.cpp

int main(int argc, char* argv[])
{
	HRESULT hr;
	if( FAILED( hr=CoInitialize(NULL)))
	{
		_tprintf(_T("CoInitialize failed \n"));
		return -1;
	}

	
	_Module.Init( ObjectMap, GetModuleHandle( NULL));

	if( FAILED(hr=doTest()))
	{
		_com_error err( hr);
		const TCHAR * errMsg= err.ErrorMessage();
		MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
	}


	_Module.Term();
	CoUninitialize();
	return 0;
}

HRESULT doTest()
{
	HRESULT hr;
=====================================================================
Found a 6 line (109 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/resource/oooresourceloader.cxx
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdiclist.cxx

    virtual sal_Bool SAL_CALL hasElements(  ) throw (::com::sun::star::uno::RuntimeException);

    // XNameAccess
    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw (::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw (::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/propctrlr/cellbindinghelper.cxx
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/forms/formcellbinding.cxx

{
//............................................................................

    using namespace ::com::sun::star::uno;
    using namespace ::com::sun::star::beans;
    using namespace ::com::sun::star::frame;
    using namespace ::com::sun::star::sheet;
    using namespace ::com::sun::star::container;
    using namespace ::com::sun::star::drawing;
    using namespace ::com::sun::star::table;
    using namespace ::com::sun::star::form;
    using namespace ::com::sun::star::lang;
    using namespace ::com::sun::star::form::binding;
=====================================================================
Found a 27 line (109 tokens) duplication in the following files: 
Starting at line 468 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/preload/oemwiz.cxx
Starting at line 625 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/license.cxx

void LicenseView::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
    if ( rHint.IsA( TYPE(TextHint) ) )
    {
        BOOL    bLastVal = EndReached();
        ULONG   nId = ((const TextHint&)rHint).GetId();

        if ( nId == TEXT_HINT_PARAINSERTED )
        {
            if ( bLastVal )
                mbEndReached = IsEndReached();
        }
        else if ( nId == TEXT_HINT_VIEWSCROLLED )
        {
            if ( ! mbEndReached )
                mbEndReached = IsEndReached();
            maScrolledHdl.Call( this );
        }

        if ( EndReached() && !bLastVal )
        {
            maEndReachedHdl.Call( this );
        }
    }
}

}		//	namespace framework
=====================================================================
Found a 13 line (109 tokens) duplication in the following files: 
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xolefactory.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObjectFactory::createInstanceInitFromMediaDescriptor" );

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Reference< uno::XInterface > xResult(
=====================================================================
Found a 14 line (109 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx

	uno::Reference< uno::XInterface > xResult;

	// the initialization is completelly controlled by user
	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Sequence< beans::PropertyValue > aTempMedDescr( lArguments );
=====================================================================
Found a 15 line (109 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/specialobject.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/visobj.cxx

		throw ( uno::Exception,
				uno::RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The own object has no persistence!\n" ),
=====================================================================
Found a 8 line (109 tokens) duplication in the following files: 
Starting at line 430 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/miscobj.cxx
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/miscobj.cxx

			{
	           	static ::cppu::OTypeCollection aTypeCollection(
											::getCppuType( (const uno::Reference< lang::XTypeProvider >*)NULL ),
											::getCppuType( (const uno::Reference< embed::XEmbeddedObject >*)NULL ),
											::getCppuType( (const uno::Reference< embed::XInplaceObject >*)NULL ),
											::getCppuType( (const uno::Reference< embed::XCommonEmbedPersist >*)NULL ),
                                            ::getCppuType( (const uno::Reference< container::XChild >*)NULL ),
											::getCppuType( (const uno::Reference< embed::XEmbedPersist >*)NULL ) );
=====================================================================
Found a 65 line (109 tokens) duplication in the following files: 
Starting at line 559 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/dtobj/XTDataObject.cxx
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/workbench/XTDo.cxx

	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->GetDataHere
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::GetDataHere( LPFORMATETC, LPSTGMEDIUM )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->GetCanonicalFormatEtc
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::GetCanonicalFormatEtc( LPFORMATETC, LPFORMATETC )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->SetData
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::SetData( LPFORMATETC, LPSTGMEDIUM, BOOL )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->DAdvise
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::DAdvise( LPFORMATETC, DWORD, LPADVISESINK, DWORD * )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->DUnadvise
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::DUnadvise( DWORD )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// IDataObject->EnumDAdvise
//------------------------------------------------------------------------

STDMETHODIMP CXTDataObject::EnumDAdvise( LPENUMSTATDATA * )
{
	return E_NOTIMPL;
}

//------------------------------------------------------------------------
// for our convenience
//------------------------------------------------------------------------

CXTDataObject::operator IDataObject*( )
{
	return static_cast< IDataObject* >( this );
}
=====================================================================
Found a 17 line (109 tokens) duplication in the following files: 
Starting at line 763 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/factory.cxx
Starting at line 792 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/factory.cxx

    const Sequence<Any>& Arguments )
    throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException)
{
	if( !xModuleFactory.is() && !xModuleFactoryDepr.is() )
	{
        Reference< XInterface > x( createModuleFactory() );
        if (x.is())
        {
            MutexGuard aGuard( aMutex );
            if( !xModuleFactory.is() && !xModuleFactoryDepr.is() )
            {
                xModuleFactory.set( x, UNO_QUERY );
                xModuleFactoryDepr.set( x, UNO_QUERY );
            }
        }
	}
    if( xModuleFactoryDepr.is() )
=====================================================================
Found a 28 line (109 tokens) duplication in the following files: 
Starting at line 395 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/FreeReference/FreeReference.test.cxx
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/Map/Map.test.cxx
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/Shield/Shield.test.cxx

   	s_test__unshieldAny();

	s_env.clear();


	uno_Environment_enter(NULL);


	int ret;
	if (s_comment.indexOf(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FAILURE"))) == -1)
	{
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TESTS PASSED\n"));
		ret = 0;
	}
	else 
	{
		s_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TESTS _NOT_ PASSED\n"));
		ret = -1;
	}

	std::cerr 
		<< argv[0] 
		<< std::endl 
		<< rtl::OUStringToOString(s_comment, RTL_TEXTENCODING_ASCII_US).getStr() 
		<< std::endl;

	return ret;
}
=====================================================================
Found a 31 line (109 tokens) duplication in the following files: 
Starting at line 512 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OConnection.cxx
Starting at line 327 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx

}
// --------------------------------------------------------------------------------
// XCloseable
void SAL_CALL OConnection::close(  ) throw(SQLException, RuntimeException)
{
	// we just dispose us
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(OConnection_BASE::rBHelper.bDisposed);
			
	}
	dispose();
}
// --------------------------------------------------------------------------------
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings(  ) throw(SQLException, RuntimeException)
{
	// when you collected some warnings -> return it
	return Any();
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::clearWarnings(  ) throw(SQLException, RuntimeException)
{
	// you should clear your collected warnings here
}
//--------------------------------------------------------------------
void OConnection::buildTypeInfo() throw( SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );

	Reference< XResultSet> xRs = getMetaData ()->getTypeInfo ();
=====================================================================
Found a 28 line (109 tokens) duplication in the following files: 
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MConnection.cxx
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx

}
// --------------------------------------------------------------------------------
sal_Bool SAL_CALL OConnection::isClosed(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	
	// just simple -> we are close when we are disposed taht means someone called dispose(); (XComponent)
	return OConnection_BASE::rBHelper.bDisposed;
}
// --------------------------------------------------------------------------------
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);
		
	// here we have to create the class with biggest interface
	// The answer is 42 :-)
	Reference< XDatabaseMetaData > xMetaData = m_xMetaData;
	if(!xMetaData.is())
	{
		xMetaData = new ODatabaseMetaData(this); // need the connection because it can return it
		m_xMetaData = xMetaData;
	}

	return xMetaData;
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException, RuntimeException)
=====================================================================
Found a 10 line (109 tokens) duplication in the following files: 
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/ChainablePropertySetInfo.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/MasterPropertySetInfo.cxx

using ::comphelper::MasterPropertySetInfo;
using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::Type;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
using ::com::sun::star::uno::RuntimeException;
using ::com::sun::star::beans::Property;
using ::com::sun::star::beans::XPropertySetInfo;
using ::com::sun::star::beans::UnknownPropertyException;
=====================================================================
Found a 18 line (109 tokens) duplication in the following files: 
Starting at line 192 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_devicehelper.cxx
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/devicehelper.cxx

                              mpSpriteCanvas ) );
    }

    uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap( 
        const uno::Reference< rendering::XGraphicDevice >& 	,
        const geometry::IntegerSize2D& 						 )
    {
        return uno::Reference< rendering::XVolatileBitmap >();
    }

    uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap( 
        const uno::Reference< rendering::XGraphicDevice >& 	,
        const geometry::IntegerSize2D& 						size )
    {
        if( !mpSpriteCanvas )
            return uno::Reference< rendering::XBitmap >(); // we're disposed

        return uno::Reference< rendering::XBitmap >( new CanvasBitmap( ::vcl::unotools::sizeFromIntegerSize2D(size),
=====================================================================
Found a 27 line (109 tokens) duplication in the following files: 
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/except.cxx

                char const * rttiName = symName.getStr() +5;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
    }
=====================================================================
Found a 27 line (109 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/uno2cpp.cxx

	char * pCppStack		= (char *)alloca( sizeof(sal_Int32) + (nParams * sizeof(sal_Int64)) );
	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
                   ? alloca( pReturnTypeDescr->nSize )
                   : pUnoReturn); // direct way
			pCppStack += sizeof(void *);
		}
	}
=====================================================================
Found a 27 line (109 tokens) duplication in the following files: 
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/except.cxx

                char const * rttiName = symName.getStr() +5;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
    }
=====================================================================
Found a 27 line (109 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/uno2cpp.cxx

	char * pCppStack		= (char *)alloca( sizeof(sal_Int32) + (nParams * sizeof(sal_Int64)) );
	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
                   ? alloca( pReturnTypeDescr->nSize )
                   : pUnoReturn); // direct way
			pCppStack += sizeof(void *);
		}
	}
=====================================================================
Found a 27 line (109 tokens) duplication in the following files: 
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/except.cxx

                char const * rttiName = symName.getStr() +5;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
            }
    }
=====================================================================
Found a 27 line (109 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/uno2cpp.cxx

	char * pCppStack		= (char *)alloca( sizeof(sal_Int32) + (nParams * sizeof(sal_Int64)) );
	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
                   ? alloca( pReturnTypeDescr->nSize )
                   : pUnoReturn); // direct way
			pCppStack += sizeof(void *);
		}
	}
=====================================================================
Found a 23 line (109 tokens) duplication in the following files: 
Starting at line 526 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/accessibility/accessibledialogwindow.cxx
Starting at line 683 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/accessibility/accessibledialogwindow.cxx

	if ( m_pDialogWindow )
	{
		m_pDialogWindow->RemoveEventListener( LINK( this, AccessibleDialogWindow, WindowEventListener ) );
		m_pDialogWindow = NULL;

		if ( m_pDlgEditor )
			EndListening( *m_pDlgEditor );
		m_pDlgEditor = NULL;

		if ( m_pDlgEdModel )
			EndListening( *m_pDlgEdModel );
		m_pDlgEdModel = NULL;

		// dispose all children
		for ( sal_uInt32 i = 0; i < m_aAccessibleChildren.size(); ++i )
		{
			Reference< XComponent > xComponent( m_aAccessibleChildren[i].rxAccessible, UNO_QUERY );
			if ( xComponent.is() )
				xComponent->dispose();
		}
		m_aAccessibleChildren.clear();
	}
}
=====================================================================
Found a 14 line (108 tokens) duplication in the following files: 
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/dmapper/DomainMapperTableHandler.cxx

            const uno::Sequence< beans::PropertyValues > aDebugCurrentRow = aCellProperties[nDebugRow];
            sal_Int32 nDebugCells = aDebugCurrentRow.getLength();
            (void) nDebugCells;
            for( sal_Int32  nDebugCell = 0; nDebugCell < nDebugCells; ++nDebugCell)
            {
                const uno::Sequence< beans::PropertyValue >& aDebugCellProperties = aDebugCurrentRow[nDebugCell];
                sal_Int32 nDebugCellProperties = aDebugCellProperties.getLength();
                for( sal_Int32  nDebugProperty = 0; nDebugProperty < nDebugCellProperties; ++nDebugProperty)
                {
                    const ::rtl::OUString sName = aDebugCellProperties[nDebugProperty].Name;
                    sNames += sName;
                    sNames += ::rtl::OUString('-');
                }
                sNames += ::rtl::OUString('+');
=====================================================================
Found a 16 line (108 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                    y_hr += ry_inv;
                    ++y_lr;
                }
                while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
=====================================================================
Found a 9 line (108 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/MergeElemTContext.cxx
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PersMixedContentTContext.cxx

	virtual ~XMLPersTextTContext_Impl();

	virtual XMLTransformerContext *CreateChildContext( sal_uInt16 nPrefix,
								   const ::rtl::OUString& rLocalName,
								   const ::rtl::OUString& rQName,
								   const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
	virtual void EndElement();
	virtual void Characters( const ::rtl::OUString& rChars );
=====================================================================
Found a 27 line (108 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/writerperfect/source/wpdimp/wpft_genericfilter.cxx
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/framework/xsec_framework.cxx

using namespace ::rtl;
using namespace ::cppu;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry;

extern "C"
{
//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment **)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * /*pServiceManager*/, void * pRegistryKey )
{
	if (pRegistryKey)
	{
		try
		{
			//Decryptor
			sal_Int32 nPos = 0;
			Reference< XRegistryKey > xNewKey(
				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( DecryptorImpl_getImplementationName() ) ); 
=====================================================================
Found a 5 line (108 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (108 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0xff,0xfe,0x00,0x00,0xfe,0xfe,0x00,0x00,0xf8,0x7c,0x00,0x00,0xf0,0x39,0x00,
 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (108 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (108 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asns_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x04,0x00,0x00,0xf0,0x07,0x00,0x00,0xe0,
 0x03,0x00,0x00,0xe0,0x03,0x00,0x00,0xc0,0x01,0x00,0x00,0x80,0x00,0x00,0x00,
 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (108 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 4 line (108 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x9c,0x0f,0x00,0x00,0x3e,0x1f,
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/headless/svpprn.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/gdi/salprnpsp.cxx

static String getPdfDir( const PrinterInfo& rInfo )
{
	String aDir;
    sal_Int32 nIndex = 0;
    while( nIndex != -1 )
	{
		OUString aToken( rInfo.m_aFeatures.getToken( 0, ',', nIndex ) );
		if( ! aToken.compareToAscii( "pdf=", 4 ) )
		{
            sal_Int32 nPos = 0;
			aDir = aToken.getToken( 1, '=', nPos );
			if( ! aDir.Len() )
				aDir = String( ByteString( getenv( "HOME" ) ), osl_getThreadTextEncoding() );
			break;
		}
	}
	return aDir;
}
=====================================================================
Found a 27 line (108 tokens) duplication in the following files: 
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev5.cxx
Starting at line 301 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev5.cxx

		mpMetaFile->AddAction( new MetaChordAction( rRect, rStartPt, rEndPt ) );

	if ( !IsDeviceOutputNecessary() || (!mbLineColor && !mbFillColor) || ImplIsRecordLayout() )
		return;

	Rectangle aRect( ImplLogicToDevicePixel( rRect ) );
	if ( aRect.IsEmpty() )
		return;

	// we need a graphics
	if ( !mpGraphics )
	{
		if ( !ImplGetGraphics() )
			return;
	}

	if ( mbInitClipRegion )
		ImplInitClipRegion();
	if ( mbOutputClipped )
		return;

	if ( mbInitLineColor )
		ImplInitLineColor();

	const Point 	aStart( ImplLogicToDevicePixel( rStartPt ) );
	const Point 	aEnd( ImplLogicToDevicePixel( rEndPt ) );
	Polygon 		aChordPoly( aRect, aStart, aEnd, POLY_CHORD );
=====================================================================
Found a 8 line (108 tokens) duplication in the following files: 
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx
Starting at line 1233 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

			ImplCalcHatchValues( aRect, nWidth, rHatch.GetAngle() + 450, aPt1, aPt2, aInc, aEndPt1 );
			do
			{
				ImplDrawHatchLine( Line( aPt1, aPt2 ), rPolyPoly, pPtBuffer, bMtf );
				aPt1.X() += aInc.Width(); aPt1.Y() += aInc.Height();
				aPt2.X() += aInc.Width(); aPt2.Y() += aInc.Height();
			}
			while( ( aPt1.X() <= aEndPt1.X() ) && ( aPt1.Y() <= aEndPt1.Y() ) );
=====================================================================
Found a 20 line (108 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/imgcons.cxx

				BitmapColor aCol;
				BitmapColor	aMskWhite( pMskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );

				for( long nY = nStartY; nY <= nEndY; nY++ )
				{
					const BYTE* pTmp = pData + ( nY - nStartY ) * nScanSize + nOffset;

					for( long nX = nStartX; nX <= nEndX; nX++ )
					{
						const BYTE		cIndex = *pTmp++;
						const Color&	rCol = mpPal[ cIndex ];

						// 0: Transparent; >0: Non-Transparent
						if( !rCol.GetTransparency() )
						{
							pMskAcc->SetPixel( nY, nX, aMskWhite );
							mbTrans = TRUE;
						}
						else
						{
=====================================================================
Found a 12 line (108 tokens) duplication in the following files: 
Starting at line 2422 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx
Starting at line 3417 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/button.cxx

    if ( ( aText.Len() && ! (ImplGetButtonState() & BUTTON_DRAW_NOTEXT) ) ||
         ( HasImage() && !  (ImplGetButtonState() & BUTTON_DRAW_NOIMAGE) ) )
    {
        USHORT nTextStyle = Button::ImplGetTextStyle( aText, nWinStyle, nDrawFlags );

        Size aSize( rSize );
        Point aPos( rPos );
        aPos.X() += rImageSize.Width() + nImageSep;
        aSize.Width() -= rImageSize.Width() + nImageSep;

        ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, 1,
                              nDrawFlags, nTextStyle, NULL );
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salobj.h
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salobj.h

    virtual ~X11SalObject();

    // overload all pure virtual methods
 	virtual void					ResetClipRegion();
	virtual USHORT					GetClipRegionType();
	virtual void					BeginSetClipRegion( ULONG nRects );
	virtual void					UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
	virtual void					EndSetClipRegion();

	virtual void					SetPosSize( long nX, long nY, long nWidth, long nHeight );
	virtual void					Show( BOOL bVisible );
	virtual void					Enable( BOOL nEnable );
	virtual void					GrabFocus();

	virtual void					SetBackground();
	virtual void					SetBackground( SalColor nSalColor );

	virtual const SystemEnvData*	GetSystemData() const;
=====================================================================
Found a 20 line (108 tokens) duplication in the following files: 
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salgdi.h
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salgdi.h

                                                   const sal_uInt32* pPoints,
                                                   const SalPoint* const* pPtAry,
                                                   const BYTE* const* pFlgAry );
	virtual void			copyArea( long nDestX,
                                      long nDestY,
                                      long nSrcX,
                                      long nSrcY,
                                      long nSrcWidth,
                                      long nSrcHeight,
                                      USHORT nFlags );
    virtual void			copyBits( const SalTwoRect* pPosAry,
                                      SalGraphics* pSrcGraphics );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap,
                                        SalColor nTransparentColor );
    virtual void			drawBitmap( const SalTwoRect* pPosAry,
                                        const SalBitmap& rSalBitmap,
                                        const SalBitmap& rMaskBitmap );
=====================================================================
Found a 29 line (108 tokens) duplication in the following files: 
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx

	sal_uInt32 nOldCount = m_pImpl->m_aResults.size();

	while ( m_pImpl->m_xFolderEnum->hasMoreElements() )
	{
		try
		{
            uno::Reference< container::XNamed > xNamed;
			m_pImpl->m_xFolderEnum->nextElement() >>= xNamed;

			if ( !xNamed.is() )
			{
                OSL_ENSURE( sal_False,
							"DataSupplier::getResult - Got no XNamed!" );
				break;
			}

            rtl::OUString aName = xNamed->getName();

			if ( !aName.getLength() )
			{
                OSL_ENSURE( sal_False,
							"DataSupplier::getResult - Empty name!" );
				break;
			}

			// Assemble URL for child.
			rtl::OUString aURL = assembleChildURL( aName );

			m_pImpl->m_aResults.push_back( new ResultListEntry( aURL ) );
=====================================================================
Found a 34 line (108 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

	}
}

//=========================================================================
//=========================================================================
//
// DataSupplier Implementation.
//
//=========================================================================
//=========================================================================

DataSupplier::DataSupplier( const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
							const rtl::Reference< Content >& rContent,
							sal_Int32 nOpenMode )
: m_pImpl( new DataSupplier_Impl( rxSMgr, rContent, nOpenMode ) )
{
}

//=========================================================================
// virtual
DataSupplier::~DataSupplier()
{
	delete m_pImpl;
}

//=========================================================================
// virtual
rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
		rtl::OUString aId = m_pImpl->m_aResults[ nIndex ]->aId;
=====================================================================
Found a 25 line (108 tokens) duplication in the following files: 
Starting at line 1595 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1642 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                    uno::Reference< io::XInputStream > xIn = getInputStream( xEnv );
                    if ( !xIn.is() )
                    {
                        // No interaction if we are not persistent!
                        uno::Any aProps
                            = uno::makeAny(
                                     beans::PropertyValue(
                                         rtl::OUString(
                                             RTL_CONSTASCII_USTRINGPARAM("Uri")),
                                         -1,
                                         uno::makeAny(m_xIdentifier->
                                                          getContentIdentifier()),
                                         beans::PropertyState_DIRECT_VALUE));
                        ucbhelper::cancelCommandExecution(
                            ucb::IOErrorCode_CANT_READ,
                            uno::Sequence< uno::Any >(&aProps, 1),
                            m_eState == PERSISTENT
                                ? xEnv
                                : uno::Reference<
                                      ucb::XCommandEnvironment >(),
                            rtl::OUString::createFromAscii(
                                "Got no data stream!" ),
                            this );
                        // Unreachable
                    }
=====================================================================
Found a 29 line (108 tokens) duplication in the following files: 
Starting at line 1103 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 869 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

			nPos = aChildURL.indexOf( '/', nLen );

			if ( ( nPos == -1 ) ||
				 ( nPos == ( aChildURL.getLength() - 1 ) ) )
			{
				// No further slashes / only a final slash. It's a child!
				rChildren.push_back(
					ContentRef(
						static_cast< Content * >( xChild.get() ) ) );
			}
		}
		++it;
	}
}

//=========================================================================
void Content::insert(
        const uno::Reference< io::XInputStream > & xInputStream,
        sal_Bool bReplaceExisting,
        const uno::Reference< ucb::XCommandEnvironment >& Environment )
    throw( uno::Exception )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );

	// Check, if all required properties were set.

#if 0
    // @@@ add checks for property presence 
	if ( m_aProps.xxxx == yyyyy )
=====================================================================
Found a 30 line (108 tokens) duplication in the following files: 
Starting at line 1499 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1468 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

            if ( !storeData( uno::Reference< io::XInputStream >(), xEnv ) )
            {
                uno::Any aProps
                    = uno::makeAny(
                             beans::PropertyValue(
                                 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                     "Uri")),
                                 -1,
                                 uno::makeAny(m_xIdentifier->
                                                  getContentIdentifier()),
                                 beans::PropertyState_DIRECT_VALUE));
                ucbhelper::cancelCommandExecution(
                    ucb::IOErrorCode_CANT_WRITE,
                    uno::Sequence< uno::Any >(&aProps, 1),
                    xEnv,
                    rtl::OUString::createFromAscii(
                        "Cannot store persistent data!" ),
                    this );
                // Unreachable
            }
        }

		aChanges.realloc( nChanged );

		aGuard.clear();
		notifyPropertiesChange( aChanges );
	}

    return aRet;
}
=====================================================================
Found a 31 line (108 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/directory.cxx
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_resultset.cxx

DynamicResultSet::DynamicResultSet(
    const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
    const rtl::Reference< Content >& rxContent,
    const ucb::OpenCommandArgument2& rCommand,
    const uno::Reference< ucb::XCommandEnvironment >& rxEnv )
: ResultSetImplHelper( rxSMgr, rCommand ),
  m_xContent( rxContent ),
  m_xEnv( rxEnv )
{
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
=====================================================================
Found a 13 line (108 tokens) duplication in the following files: 
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/lngmerge.cxx
Starting at line 267 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/lngmerge.cxx

		ByteString sLanguagesDone;

		while ( nPos < pLines->Count() && !bGroup ) {
			ByteString sLine( *pLines->GetObject( nPos ));
			sLine.EraseLeadingChars( ' ' );
			sLine.EraseTrailingChars( ' ' );
			if (( sLine.GetChar( 0 ) == '[' ) &&
				( sLine.GetChar( sLine.Len() - 1 ) == ']' ))
			{
				sGroup = sLine.GetToken( 1, '[' ).GetToken( 0, ']' );
				sGroup.EraseLeadingChars( ' ' );
				sGroup.EraseTrailingChars( ' ' );
				bGroup = TRUE;
=====================================================================
Found a 3 line (108 tokens) duplication in the following files: 
Starting at line 538 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

/* - */ PA+PB+PC+PD+PE   +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* . */ PA+PB+PC+PD+PE   +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* / */ PA+PB+PC            +PH   +PJ   +PL+PM      +PP+PQ+PR   +PT+PU+PV   +PX         +P2,
=====================================================================
Found a 10 line (108 tokens) duplication in the following files: 
Starting at line 470 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 241 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/wrthtml.cxx

	SvxHtmlOptions* pHtmlOptions = SvxHtmlOptions::Get();

	// die Fontgroessen 1-7
	aFontHeights[0] = pHtmlOptions->GetFontSize( 0 ) * 20;
	aFontHeights[1] = pHtmlOptions->GetFontSize( 1 ) * 20;
	aFontHeights[2] = pHtmlOptions->GetFontSize( 2 ) * 20;
	aFontHeights[3] = pHtmlOptions->GetFontSize( 3 ) * 20;
	aFontHeights[4] = pHtmlOptions->GetFontSize( 4 ) * 20;
	aFontHeights[5] = pHtmlOptions->GetFontSize( 5 ) * 20;
	aFontHeights[6] = pHtmlOptions->GetFontSize( 6 ) * 20;
=====================================================================
Found a 14 line (108 tokens) duplication in the following files: 
Starting at line 1943 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotext.cxx
Starting at line 207 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/dmapper/DomainMapperTableHandler.cxx

            const uno::Sequence< beans::PropertyValues > aDebugCurrentRow = aCellProperties[nRow];
            sal_Int32 nDebugCells = aDebugCurrentRow.getLength();
            (void) nDebugCells;
            for( sal_Int32  nDebugCell = 0; nDebugCell < nDebugCells; ++nDebugCell)
            {
                const uno::Sequence< beans::PropertyValue >& aDebugCellProperties = aDebugCurrentRow[nDebugCell];
                sal_Int32 nDebugCellProperties = aDebugCellProperties.getLength();
                for( sal_Int32  nDebugProperty = 0; nDebugProperty < nDebugCellProperties; ++nDebugProperty)
                {
                    const ::rtl::OUString sName = aDebugCellProperties[nDebugProperty].Name;
                    sNames += sName;
                    sNames += ::rtl::OUString('-');
                }
                sNames += ::rtl::OUString(' ');
=====================================================================
Found a 19 line (108 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/txtatr2.cxx
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/txtatr2.cxx
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/txtatr2.cxx

void SwTxtRuby::Modify( SfxPoolItem *pOld, SfxPoolItem *pNew )
{
	USHORT nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0;
#ifndef PRODUCT
	if ( (nWhich<RES_CHRATR_BEGIN || nWhich>RES_CHRATR_END)
			&& (nWhich!=RES_OBJECTDYING)
			&& (nWhich!=RES_ATTRSET_CHG)
			&& (nWhich!=RES_FMT_CHG) )
		ASSERT(!this, "SwTxtCharFmt::Modify(): unbekanntes Modify!");
#endif

	if( pMyTxtNd )
	{
		SwUpdateAttr aUpdateAttr( *GetStart(), *GetEnd(), nWhich );
		pMyTxtNd->SwCntntNode::Modify( &aUpdateAttr, &aUpdateAttr );
	}
}

BOOL SwTxtRuby::GetInfo( SfxPoolItem& rInfo ) const
=====================================================================
Found a 7 line (108 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 290 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return a3DCubeObjectPropertyMap_Impl;
=====================================================================
Found a 20 line (108 tokens) duplication in the following files: 
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtxhdl.cxx
Starting at line 649 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdtxhdl.cxx

		else y-=nDick+(nDist+1)/2;

		basegfx::B2DHomMatrix aMatrix;

		if(bIsVertical)
		{
			aMatrix.translate(aStartPos.X() - (y - nHochTief), aStartPos.Y());
		}
		else
		{
			aMatrix.translate(aStartPos.X(), aStartPos.Y() + y - nHochTief);
		}

		aPolyPolygon.transform(aMatrix);

		// aFormTextBoundRect enthaelt den Ausgabebereich des Textobjekts
		SdrObject* pObj=rTextObj.ImpConvertMakeObj(aPolyPolygon, sal_True, !bToPoly, sal_True);
		pObj->SetMergedItemSet(aAttrSet);
		pGroup->GetSubList()->InsertObject(pObj);
	}
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 3248 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 2927 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	(SvxMSDffVertPair*)mso_sptMoonGluePoints, sizeof( mso_sptMoonGluePoints ) / sizeof( SvxMSDffVertPair )
};

static const SvxMSDffVertPair mso_sptBracketPairVert[] =	// adj value 0 -> 10800
{
	{ 0 MSO_I, 0 },		{ 0, 1 MSO_I },		// left top alignment
	{ 0, 2 MSO_I },		{ 0 MSO_I, 21600 },	// left  bottom "
	{ 3 MSO_I, 21600 },	{ 21600, 2 MSO_I },	// right bottom	"
	{ 21600, 1 MSO_I },	{ 3 MSO_I, 0 }		// right top	"
};
static const sal_uInt16 mso_sptBracketPairSegm[] =
{
	0x4000, 0xa701, 0x0001, 0xa801, 0x8000,
	0x4000, 0xa701, 0x0001, 0xa801, 0x8000
};
static const SvxMSDffCalculationData mso_sptBracketPairCalc[] =
{
	{ 0x6000, DFF_Prop_geoLeft, DFF_Prop_adjustValue, 0 },
=====================================================================
Found a 12 line (108 tokens) duplication in the following files: 
Starting at line 1556 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/edit/texteng.cxx
Starting at line 2689 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit3.cxx

	if ( mpIMEInfos && mpIMEInfos->pAttribs && ( mpIMEInfos->aPos.GetNode() == pNode ) &&
		( nPos > mpIMEInfos->aPos.GetIndex() ) && ( nPos <= ( mpIMEInfos->aPos.GetIndex() + mpIMEInfos->nLen ) ) )
	{
		sal_uInt16 nAttr = mpIMEInfos->pAttribs[ nPos - mpIMEInfos->aPos.GetIndex() - 1 ];
		if ( nAttr & EXTTEXTINPUT_ATTR_UNDERLINE )
			rFont.SetUnderline( UNDERLINE_SINGLE );
		else if ( nAttr & EXTTEXTINPUT_ATTR_BOLDUNDERLINE )
			rFont.SetUnderline( UNDERLINE_BOLD );
		else if ( nAttr & EXTTEXTINPUT_ATTR_DOTTEDUNDERLINE )
			rFont.SetUnderline( UNDERLINE_DOTTED );
		else if ( nAttr & EXTTEXTINPUT_ATTR_DASHDOTUNDERLINE )
			rFont.SetUnderline( UNDERLINE_DOTTED );
=====================================================================
Found a 26 line (108 tokens) duplication in the following files: 
Starting at line 1408 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/edit/svmedit.cxx
Starting at line 1829 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/edit.cxx

            ImplDrawFrame( pDev, aRect );
		}
		if ( bBackground )
		{
			pDev->SetFillColor( GetControlBackground() );
			pDev->DrawRect( aRect );
		}
	}

	// Inhalt
	if ( ( nFlags & WINDOW_DRAW_MONO ) || ( eOutDevType == OUTDEV_PRINTER ) )
		pDev->SetTextColor( Color( COL_BLACK ) );
	else
	{
		if ( !(nFlags & WINDOW_DRAW_NODISABLE ) && !IsEnabled() )
		{
			const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
			pDev->SetTextColor( rStyleSettings.GetDisableColor() );
		}
		else
		{
			pDev->SetTextColor( GetTextColor() );
		}
	}

	XubString	aText = ImplGetText();
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 3510 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 3650 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx

void SmXMLExport::GetViewSettings( Sequence < PropertyValue >& aProps)
{
    uno::Reference <frame::XModel> xModel = GetModel();
    if( !xModel.is() )
        return;

    uno::Reference <lang::XUnoTunnel> xTunnel;
    xTunnel = uno::Reference <lang::XUnoTunnel> (xModel,uno::UNO_QUERY);
    SmModel *pModel = reinterpret_cast<SmModel *>
        (xTunnel->getSomething(SmModel::getUnoTunnelId()));

    if( !pModel )
        return;

    SmDocShell *pDocShell =
        static_cast<SmDocShell*>(pModel->GetObjectShell());
    if( !pDocShell )
        return;
=====================================================================
Found a 13 line (108 tokens) duplication in the following files: 
Starting at line 1097 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 684 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx

			  &::getCppuType( (uno::Reference<XInterface> *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "BaseURI", sizeof("BaseURI")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamRelPath", sizeof("StreamRelPath")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		{ "StreamName", sizeof("StreamName")-1, 0,
			  &::getCppuType( (OUString *)0 ),
			  beans::PropertyAttribute::MAYBEVOID, 0 },
		// properties for insert modes
		{ "StyleInsertModeFamilies", sizeof("StyleInsertModeFamilies")-1, 0,
=====================================================================
Found a 23 line (108 tokens) duplication in the following files: 
Starting at line 1105 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviews1.cxx
Starting at line 1166 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviews1.cxx

			SdrPageView* pPageView = mpDrawView->GetSdrPageView();

			if (pPageView)
			{
				mpFrameView->SetVisibleLayers( pPageView->GetVisibleLayers() );
				mpFrameView->SetPrintableLayers( pPageView->GetPrintableLayers() );
				mpFrameView->SetLockedLayers( pPageView->GetLockedLayers() );

				if (mePageKind == PK_NOTES)
				{
					mpFrameView->SetNotesHelpLines( pPageView->GetHelpLines() );
				}
				else if (mePageKind == PK_HANDOUT)
				{
					mpFrameView->SetHandoutHelpLines( pPageView->GetHelpLines() );
				}
				else
				{
					mpFrameView->SetStandardHelpLines( pPageView->GetHelpLines() );
				}
			}

			mpDrawView->HideSdrPage();
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/UnoDocumentSettings.cxx
Starting at line 928 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/UnoDocumentSettings.cxx

		throw UnknownPropertyException();

	SdOptionsPrintItem aOptionsPrintItem( ATTR_OPTIONS_PRINT );

	SfxPrinter* pPrinter = pDocSh->GetPrinter( FALSE );
	if( pPrinter )
	{
		SdOptionsPrintItem* pPrinterOptions = NULL;
		if(pPrinter->GetOptions().GetItemState( ATTR_OPTIONS_PRINT, FALSE, (const SfxPoolItem**) &pPrinterOptions) == SFX_ITEM_SET)
			aOptionsPrintItem.GetOptionsPrint() = pPrinterOptions->GetOptionsPrint();
	}
	else
	{
		aOptionsPrintItem.SetOptions( SD_MOD()->GetSdOptions(pDoc->GetDocumentType()) );
	}
	SdOptionsPrint& aPrintOpts = aOptionsPrintItem.GetOptionsPrint();

	for( ; *ppEntries; ppEntries++, pValue++ )
=====================================================================
Found a 24 line (108 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuediglu.cxx
Starting at line 586 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fusel.cxx

                        mpView->BegDragObj(aMDPos, (OutputDevice*)NULL, pHdl, nDrgLog);
			}
        }
        else
        {
            /******************************************************************
            * Objekt selektieren oder draggen
            ******************************************************************/
            if (!rMEvt.IsShift() && !rMEvt.IsMod2() && eHit == SDRHIT_UNMARKEDOBJECT)
            {
               mpView->UnmarkAllObj();
            }

            BOOL bMarked = FALSE;

            if (!rMEvt.IsMod1())
            {
                if (rMEvt.IsMod2())
                {
                    bMarked = mpView->MarkNextObj(aMDPos, nHitLog, rMEvt.IsShift());
                }
                else
                {
                    bMarked = mpView->MarkObj(aMDPos, nHitLog, rMEvt.IsShift(), FALSE);
=====================================================================
Found a 16 line (108 tokens) duplication in the following files: 
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconarc.cxx
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconcs.cxx

BOOL FuConstructCustomShape::MouseButtonDown(const MouseEvent& rMEvt)
{
	BOOL bReturn = FuConstruct::MouseButtonDown(rMEvt);

	if ( rMEvt.IsLeft() && !mpView->IsAction() )
	{
		Point aPnt( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ) );

		mpWindow->CaptureMouse();
		USHORT nDrgLog = USHORT ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() );

		mpView->BegCreateObj(aPnt, (OutputDevice*) NULL, nDrgLog);

		SdrObject* pObj = mpView->GetCreateObj();
		if ( pObj )
		{
=====================================================================
Found a 10 line (108 tokens) duplication in the following files: 
Starting at line 2161 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx
Starting at line 3079 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/output2.cxx

						long nCellWidth = (long) pRowInfo[0].pCellInfo[nX+1].nWidth;

						SvxCellHorJustify eHorJust = (SvxCellHorJustify)((const SvxHorJustifyItem&)
											pPattern->GetItem(ATTR_HOR_JUSTIFY, pCondSet)).GetValue();
						BOOL bBreak = ( eHorJust == SVX_HOR_JUSTIFY_BLOCK ) ||
									((const SfxBoolItem&)pPattern->GetItem(ATTR_LINEBREAK, pCondSet)).GetValue();
                        BOOL bRepeat = ( eHorJust == SVX_HOR_JUSTIFY_REPEAT && !bBreak );
                        BOOL bShrink = !bBreak && !bRepeat && static_cast<const SfxBoolItem&>
                                        (pPattern->GetItem( ATTR_SHRINKTOFIT, pCondSet )).GetValue();
                        SvxCellOrientation eOrient = pPattern->GetCellOrientation( pCondSet );
=====================================================================
Found a 17 line (108 tokens) duplication in the following files: 
Starting at line 328 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/defltuno.cxx
Starting at line 916 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/shapeuno.cxx
Starting at line 1315 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/styleuno.cxx

uno::Sequence<beans::PropertyState> SAL_CALL ScStyleObj::getPropertyStates(
							const uno::Sequence<rtl::OUString>& aPropertyNames )
					throw(beans::UnknownPropertyException, uno::RuntimeException)
{
	//	duemmliche Default-Implementierung: alles einzeln per getPropertyState holen
	//!	sollte optimiert werden!

	ScUnoGuard aGuard;
	const rtl::OUString* pNames = aPropertyNames.getConstArray();
	uno::Sequence<beans::PropertyState> aRet(aPropertyNames.getLength());
	beans::PropertyState* pStates = aRet.getArray();
	for(sal_Int32 i = 0; i < aPropertyNames.getLength(); i++)
		pStates[i] = getPropertyState(pNames[i]);
	return aRet;
}

void SAL_CALL ScStyleObj::setPropertyToDefault( const rtl::OUString& aPropertyName )
=====================================================================
Found a 15 line (108 tokens) duplication in the following files: 
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
Starting at line 427 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx

        sal_Bool bAddNote(sal_False);
        for (sal_Int32 nIndex = 0; nIndex < nCount; ++nIndex)
        {
            if (rData.GetNoteInRange(rVisRect, nIndex, bMark, aNote.maNoteCell, aNote.maRect))
            {
                if (bMark)
                {
	                // Document not needed, because only the cell address, but not the tablename is needed
	                aNote.maNoteCell.Format( aNote.maNoteText, SCA_VALID, NULL );
                }
                else
                {
                    ScPostIt aPostIt(pDoc);
                    pDoc->GetNote(aNote.maNoteCell.Col(), aNote.maNoteCell.Row(), aNote.maNoteCell.Tab(), aPostIt);
                    aNote.maNoteText = aPostIt.GetText();
=====================================================================
Found a 13 line (108 tokens) duplication in the following files: 
Starting at line 904 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1634 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	sal_Int32 nPosition(0);
	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
=====================================================================
Found a 24 line (108 tokens) duplication in the following files: 
Starting at line 1564 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1858 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

		ScMatrixRef pResMat = MatMul(pMat1, pMat2);
		if (!pResMat)
			SetNoValue();
		else
			PushMatrix(pResMat);
	}
	else if (pMat1 || pMat2)
	{
		double fVal;
		ScMatrixRef pMat = pMat1;
		if (!pMat)
		{
			fVal = fVal1;
			pMat = pMat2;
		}
		else
			fVal = fVal2;
        SCSIZE nC, nR;
		pMat->GetDimensions(nC, nR);
		ScMatrixRef pResMat = GetNewMat(nC, nR);
		if (pResMat)
		{
			SCSIZE nCount = nC * nR;
			for ( SCSIZE i = 0; i < nCount; i++ )
=====================================================================
Found a 20 line (108 tokens) duplication in the following files: 
Starting at line 951 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx
Starting at line 1027 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx

	Rectangle aObjRect;

	ScDrawLayer* pModel = pDoc->GetDrawLayer();
	SdrPage* pPage = pModel->GetPage(static_cast<sal_uInt16>(nTab));
	DBG_ASSERT(pPage,"Page ?");

	pPage->RecalcObjOrdNums();

	long	nDelCount = 0;
	ULONG	nObjCount = pPage->GetObjCount();
	if (nObjCount)
	{
		SdrObject** ppObj = new SdrObject*[nObjCount];

		SdrObjListIter aIter( *pPage, IM_FLAT );
		SdrObject* pObject = aIter.Next();
		while (pObject)
		{
			if ( pObject->GetLayer() == SC_LAYER_INTERN &&
					pObject->Type() == TYPE(SdrRectObj) )
=====================================================================
Found a 46 line (108 tokens) duplication in the following files: 
Starting at line 541 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_String_Utils.cxx
Starting at line 523 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_String_Utils.cxx

		while ( nCount >= 0 )
		{
			*pDest = (unsigned char)*pSrc;

			pDest++;
			pSrc++;

			// Since we are dealing with unsigned integers
			// we want to make sure that the last number is
			// indeed zero.

			if ( nCount > 0 )
			{
				nCount--;
			} // if
			else
			{
				break;
			} // else
		} // while

		if ( nCount == 0 )
		{
			bCopied = sal_True;
		} // if
	} // if

	return  bCopied;
} // AStringToUStringCopy

//------------------------------------------------------------------------

sal_Bool AStringToUStringNCopy( sal_Unicode       *pDest,
                                const sal_Char    *pSrc,
                                const sal_uInt32   nSrcLen
                              )
{
	sal_Bool    bCopied = sal_False;
	sal_uInt32  nCount  = nSrcLen;
	sal_uInt32  nLen    = nSrcLen;

	if (    ( pDest != NULL )
	     && ( pSrc  != NULL )
	     && ( AStringNIsValid( pSrc, nLen ) )
	   )
	{
=====================================================================
Found a 34 line (108 tokens) duplication in the following files: 
Starting at line 667 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno.cxx
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno_callable.cxx

    (reprfunc) 0,
        (getattrofunc)0,
    (setattrofunc)0,
    NULL,
    0,
    NULL,
    (traverseproc)0,
    (inquiry)0,
    (richcmpfunc)0,
    0,
    (getiterfunc)0,
    (iternextfunc)0,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    (descrgetfunc)0,
    (descrsetfunc)0,
    0,
    (initproc)0,
    (allocfunc)0,
    (newfunc)0,
    (freefunc)0,
    (inquiry)0,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    (destructor)0
};

PyRef PyUNO_callable_new (
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 479 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/spelldsp.cxx
Starting at line 734 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/spelldsp.cxx

		if ((!bTmpResValid || xTmpRes.is())
			&&  pEntry->aFlags.nLastTriedSvcIndex < nLen - 1)
		{
			const OUString *pImplNames = pEntry->aSvcImplNames.getConstArray();
			Reference< XSpellChecker1 > *pRef1 = pEntry->aSvc1Refs.getArray();
			Reference< XSpellChecker >  *pRef  = pEntry->aSvcRefs .getArray();
			
			Reference< XMultiServiceFactory >  xMgr( getProcessServiceFactory() );
			if (xMgr.is())
			{
				// build service initialization argument
				Sequence< Any > aArgs(2);
				aArgs.getArray()[0] <<= GetPropSet();
				//! The dispatcher searches the dictionary-list
				//! thus the service needs not to now about it
				//aArgs.getArray()[1] <<= GetDicList();

				while (i < nLen  &&  (!bTmpResValid || xTmpRes.is()))
=====================================================================
Found a 9 line (108 tokens) duplication in the following files: 
Starting at line 267 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/hunspell.cxx

      unsigned short idx;
      for (int i = 0; i < nc; i++) {
         idx = (u[i].h << 8) + u[i].l;
         if (idx != utfconv[idx].cupper) {
            u[i].h = (unsigned char) (utfconv[idx].cupper >> 8);
            u[i].l = (unsigned char) (utfconv[idx].cupper & 0x00FF);
         }
      }
      u16_u8(p, MAXWORDUTF8LEN, u, nc);
=====================================================================
Found a 28 line (108 tokens) duplication in the following files: 
Starting at line 654 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 719 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

     sStart[sp] = (AffEntry*)ep;
     return 0;
  }

  // otherwise use binary tree insertion so that a sorted
  // list can easily be generated later
  pptr = NULL;
  for (;;) {
    pptr = ptr;
    if (strcmp(ep->getKey(), ptr->getKey() ) <= 0) {
       ptr = ptr->getNextEQ();
       if (!ptr) {
	  pptr->setNextEQ(ep);
          break;
       }
    } else {
       ptr = ptr->getNextNE();
       if (!ptr) {
	  pptr->setNextNE(ep);
          break;
       }
    }
  }
  return 0;
}

// convert from binary tree to sorted list
int AffixMgr::process_pfx_tree_to_list()
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx
Starting at line 949 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx

void OMarkableInputStream::checkMarksAndFlush()
{
	map<sal_Int32,sal_Int32,less<sal_Int32> >::iterator ii;
	
	// find the smallest mark
	sal_Int32 nNextFound = m_nCurrentPos;
	for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ii ++ ) {
		if( (*ii).second <= nNextFound )  {
			nNextFound = (*ii).second;	
		}
	}

	if( nNextFound ) {
		// some data must be released !
		m_nCurrentPos -= nNextFound;
		for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ii ++ ) {
			(*ii).second -= nNextFound;
		}
=====================================================================
Found a 15 line (108 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/opipe.cxx

			   RuntimeException );

public: // XConnectable
    virtual void SAL_CALL setPredecessor(const Reference< XConnectable >& aPredecessor)
		throw( RuntimeException );
    virtual Reference< XConnectable > SAL_CALL getPredecessor(void) throw( RuntimeException );
    virtual void SAL_CALL setSuccessor(const Reference < XConnectable > & aSuccessor)
		throw( RuntimeException );
    virtual Reference < XConnectable > SAL_CALL getSuccessor(void) throw( RuntimeException ) ;


public: // XServiceInfo
    OUString                    SAL_CALL getImplementationName() throw(  );
    Sequence< OUString >         SAL_CALL getSupportedServiceNames(void) throw(  );
    sal_Bool                        SAL_CALL supportsService(const OUString& ServiceName) throw(  );
=====================================================================
Found a 9 line (108 tokens) duplication in the following files: 
Starting at line 1112 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1448 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

							aCol0 = pAcc->GetPixel( nTmpY, --nTmpX );
							cR1 = MAP( aCol0.GetRed(), aCol1.GetRed(), nTmpFX );
							cG1 = MAP( aCol0.GetGreen(), aCol1.GetGreen(), nTmpFX );
							cB1 = MAP( aCol0.GetBlue(), aCol1.GetBlue(), nTmpFX );

							aColRes.SetRed( MAP( cR0, cR1, nTmpFY ) );
							aColRes.SetGreen( MAP( cG0, cG1, nTmpFY ) );
							aColRes.SetBlue( MAP( cB0, cB1, nTmpFY ) );
							pWAcc->SetPixel( nY, nX, aColRes );
=====================================================================
Found a 13 line (108 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/dlgeos2.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/dlgepct.cxx

	sal_Int32 nStrMode = pConfigItem->ReadInt32( String( ResId( KEY_MODE, *pMgr ) ), 0 );
	::com::sun::star::awt::Size aDefault( 10000, 10000 );
	::com::sun::star::awt::Size aSize;
	aSize = pConfigItem->ReadSize( String( ResId( KEY_SIZE, *pMgr ) ), aDefault );

	aMtfSizeX.SetDefaultUnit( FUNIT_MM );
	aMtfSizeY.SetDefaultUnit( FUNIT_MM );
	aMtfSizeX.SetValue( aSize.Width );
	aMtfSizeY.SetValue( aSize.Height );

	switch ( rPara.eFieldUnit )
	{
		case FUNIT_NONE :
=====================================================================
Found a 16 line (108 tokens) duplication in the following files: 
Starting at line 154 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/interaction/restricteduiinteraction.cxx
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/interaction/stillinteraction.cxx

void SAL_CALL StillInteraction::handle( const css::uno::Reference< css::task::XInteractionRequest >& xRequest ) throw( css::uno::RuntimeException )
{
    // safe the request for outside analyzing everytime!
    css::uno::Any aRequest = xRequest->getRequest();
    /* SAFE { */
    WriteGuard aWriteLock(m_aLock);
    m_aRequest = aRequest;
    aWriteLock.unlock();
    /* } SAFE */

    // analyze the request
    // We need XAbort as possible continuation as minimum!
    // An optional filter selection we can handle too.
    css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > lContinuations = xRequest->getContinuations();
    css::uno::Reference< css::task::XInteractionAbort >                              xAbort     ;
    css::uno::Reference< css::task::XInteractionApprove >                            xApprove   ;
=====================================================================
Found a 19 line (108 tokens) duplication in the following files: 
Starting at line 545 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 623 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx

					pMenuItemHandler->aTargetFrame = pAddonAttributes->aTargetFrame;
				}

				m_aMenuItemHandlerVector.push_back( pMenuItemHandler );
			}
		}
	}

	m_pVCLMenu->SetHighlightHdl( LINK( this, MenuManager, Highlight ));
	m_pVCLMenu->SetActivateHdl( LINK( this, MenuManager, Activate ));
	m_pVCLMenu->SetDeactivateHdl( LINK( this, MenuManager, Deactivate ));
	m_pVCLMenu->SetSelectHdl( LINK( this, MenuManager, Select ));
}


// #110897#
MenuManager::MenuManager( 
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
	REFERENCE< XFRAME >& rFrame, AddonPopupMenu* pAddonPopupMenu, sal_Bool bDelete, sal_Bool bDeleteChildren ) 
=====================================================================
Found a 21 line (108 tokens) duplication in the following files: 
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/richtext/richtextvclcontrol.cxx
Starting at line 3403 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/fmcomp/gridctrl.cxx

			const KeyEvent* pKeyEvent = rEvt.GetKeyEvent();

			sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode();
			sal_Bool   bShift = pKeyEvent->GetKeyCode().IsShift();
			sal_Bool   bCtrl = pKeyEvent->GetKeyCode().IsMod1();
			sal_Bool   bAlt = pKeyEvent->GetKeyCode().IsMod2();
			if ( ( KEY_TAB == nCode ) && bCtrl && !bAlt )
			{
				// Ctrl-Tab is used to step out of the control, without traveling to the
				// remaining cells first
				// -> build a new key event without the Ctrl-key, and let the very base class handle it
				KeyCode aNewCode( KEY_TAB, bShift, sal_False, sal_False );
				KeyEvent aNewEvent( pKeyEvent->GetCharCode(), aNewCode );

				// call the Control - our direct base class will interpret this in a way we do not want (and do
				// a cell traveling)
				Control::KeyInput( aNewEvent );
				return 1;
			}

			if ( !bShift && !bCtrl && ( KEY_ESCAPE == nCode ) )
=====================================================================
Found a 10 line (108 tokens) duplication in the following files: 
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/Button.cxx
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ImageControl.cxx

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::ui::dialogs;
=====================================================================
Found a 5 line (108 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0,// 2490 - 249f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24a0 - 24af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24b0 - 24bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24c0 - 24cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 24d0 - 24df
=====================================================================
Found a 20 line (108 tokens) duplication in the following files: 
Starting at line 818 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/sax/testsax.cxx
Starting at line 749 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/sax/testsax.cxx

		Reference < XErrorHandler >	rErrorHandler( ( XErrorHandler * )pDocHandler , UNO_QUERY );
		
		rParser->setDocumentHandler( rDocHandler );
		rParser->setEntityResolver( rEntityResolver );
		rParser->setErrorHandler( rErrorHandler );

		try
		{
			TimeValue aStartTime, aEndTime;
			osl_getSystemTime( &aStartTime );
			rParser->parseStream( source );
			osl_getSystemTime( &aEndTime );
			
			double fStart = (double)aStartTime.Seconds + ((double)aStartTime.Nanosec / 1000000000.0);
			double fEnd = (double)aEndTime.Seconds + ((double)aEndTime.Nanosec / 1000000000.0);
			
			printf( "Performance reading : %g s\n" , fEnd - fStart );
			
		}
		catch( SAXParseException &e ) {
=====================================================================
Found a 5 line (108 tokens) duplication in the following files: 
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 25 line (108 tokens) duplication in the following files: 
Starting at line 208 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/gui/license_dialog.cxx
Starting at line 468 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/preload/oemwiz.cxx

    void LicenceView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
    {
        if ( rHint.IsA( TYPE(TextHint) ) )
        {
            BOOL    bLastVal = EndReached();
            ULONG   nId = ((const TextHint&)rHint).GetId();

            if ( nId == TEXT_HINT_PARAINSERTED )
            {
                if ( bLastVal )
                    mbEndReached = IsEndReached();
            }
            else if ( nId == TEXT_HINT_VIEWSCROLLED )
            {
                if ( ! mbEndReached )
                    mbEndReached = IsEndReached();
                maScrolledHdl.Call( this );
            }

            if ( EndReached() && !bLastVal )
            {
                maEndReachedHdl.Call( this );
            }
        }
    }
=====================================================================
Found a 16 line (108 tokens) duplication in the following files: 
Starting at line 837 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/queryfilter.cxx
Starting at line 861 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/queryfilter.cxx

		if ( aLB_WHERECOND3.GetSelectEntryPos() )
		{
			sal_Int32 nPos = _rValues.getLength();
			_rValues.realloc( nPos + 1);
			_rValues[nPos].realloc( 1);
			pPos = &_rValues[nPos][0];
		}
		else
		{
			sal_Int32 nPos = _rValues.getLength() - 1;
			sal_Int32 nAndPos = _rValues[nPos].getLength();
			_rValues[nPos].realloc( _rValues[nPos].getLength() + 1);
			pPos = &_rValues[nPos][nAndPos];
		}
		*pPos = aValue;
	}
=====================================================================
Found a 25 line (108 tokens) duplication in the following files: 
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/CRowSetColumn.cxx
Starting at line 197 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/CRowSetDataColumn.cxx

sal_Bool SAL_CALL ORowSetDataColumn::convertFastPropertyValue( Any & rConvertedValue,
															Any & rOldValue,
															sal_Int32 nHandle,
															const Any& rValue ) throw (IllegalArgumentException)
{
	sal_Bool bModified = sal_False;
	switch(nHandle)
	{
		case PROPERTY_ID_ALIGN:
		case PROPERTY_ID_NUMBERFORMAT:
		case PROPERTY_ID_RELATIVEPOSITION:
		case PROPERTY_ID_WIDTH:
		case PROPERTY_ID_HIDDEN:
		case PROPERTY_ID_CONTROLMODEL:
		case PROPERTY_ID_HELPTEXT:
		case PROPERTY_ID_CONTROLDEFAULT:
			bModified = OColumnSettings::convertFastPropertyValue( rConvertedValue, rOldValue, nHandle, rValue );
			break;
		case PROPERTY_ID_VALUE:
			rConvertedValue = rValue;
			getFastPropertyValue(rOldValue, PROPERTY_ID_VALUE);
			bModified = !::comphelper::compare(rConvertedValue, rOldValue);
			break;
		default:
			bModified = ODataColumn::convertFastPropertyValue(rConvertedValue, rOldValue, nHandle, rValue);
=====================================================================
Found a 12 line (108 tokens) duplication in the following files: 
Starting at line 1955 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 2185 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("Struct1", !(a >>= b) && b.member == 2);
    }
    {
        Exception1 b(
            rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), 2);
        CPPUNIT_ASSERT_MESSAGE("Exception1", !(a >>= b) && b.member == 2);
    }
    {
        css::uno::Reference< Interface1 > i(new Impl1);
        css::uno::Reference< Interface1 > b(i);
        CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b) && b == i);
    }
=====================================================================
Found a 9 line (108 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/sdbcx/VTable.cxx
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/sdbcx/VView.cxx

void OView::construct()
{
	ODescriptor::construct();

	sal_Int32 nAttrib = isNew() ? 0 : PropertyAttribute::READONLY;

	registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_CATALOGNAME),		PROPERTY_ID_CATALOGNAME,nAttrib,&m_CatalogName,	::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL)));
	registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCHEMANAME),		PROPERTY_ID_SCHEMANAME,	nAttrib,&m_SchemaName,	::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL)));
	registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_COMMAND),			PROPERTY_ID_COMMAND,	nAttrib,&m_Command,		::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL)));
=====================================================================
Found a 17 line (108 tokens) duplication in the following files: 
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

			jbyteArray out = (jbyteArray)t.pEnv->CallObjectMethod( object, mID, columnIndex);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			if (out)
			{
				jboolean p = sal_False;
				aSeq.realloc(t.pEnv->GetArrayLength(out));
				memcpy(aSeq.getArray(),t.pEnv->GetByteArrayElements(out,&p),aSeq.getLength());
				t.pEnv->DeleteLocalRef(out);
			}
			// und aufraeumen
		} //mID
	} //t.pEnv
	return aSeq;
}
// -------------------------------------------------------------------------

::com::sun::star::util::Date SAL_CALL java_sql_ResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
=====================================================================
Found a 26 line (108 tokens) duplication in the following files: 
Starting at line 255 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DNoException.cxx
Starting at line 2460 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DTable.cxx

		delete m_pBuffer;
		m_pBuffer = NULL;
	}

	// Falls noch kein Puffer vorhanden: allozieren:
	if (m_pBuffer == NULL && nSize)
	{
		m_nBufferSize = nSize;
		m_pBuffer		= new BYTE[m_nBufferSize+1];
	}
}
// -----------------------------------------------------------------------------
BOOL ODbaseTable::WriteBuffer()
{
	OSL_ENSURE(m_nFilePos >= 1,"SdbDBFCursor::FileFetchRow: ungueltige Record-Position");

	// Auf gewuenschten Record positionieren:
	long nPos = m_aHeader.db_kopf + (long)(m_nFilePos-1) * m_aHeader.db_slng;
	m_pFileStream->Seek(nPos);
	return m_pFileStream->Write((char*) m_pBuffer, m_aHeader.db_slng) > 0;
}
// -----------------------------------------------------------------------------
sal_Int32 ODbaseTable::getCurrentLastPos() const
{
	return m_aHeader.db_anz;
}
=====================================================================
Found a 26 line (108 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

}
//--------------------------------------------------------------------
// clearMyResultSet
// If a ResultSet was created for this Statement, close it
//--------------------------------------------------------------------

void OStatement_Base::clearMyResultSet () throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);

    try
    {
	    Reference<XCloseable> xCloseable;
	    if ( ::comphelper::query_interface( m_xResultSet.get(), xCloseable ) )
		    xCloseable->close();
    }
    catch( const DisposedException& ) { }

    m_xResultSet = Reference< XResultSet >();
}
//--------------------------------------------------------------------
sal_Int32 OStatement_Base::getRowCount () throw( SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);
=====================================================================
Found a 13 line (108 tokens) duplication in the following files: 
Starting at line 2010 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/noderef.cxx
Starting at line 2026 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/noderef.cxx
Starting at line 2042 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treemgr/noderef.cxx

bool isGroupNode(Tree const& aTree, NodeRef const& aNode)
{
	OSL_PRECOND( !aNode.isValid() || !aTree.isEmpty(), "ERROR: Configuration: Tree operation requires a valid Tree");
	OSL_PRECOND( !aNode.isValid() || aTree.isValidNode(aNode), "WARNING: Configuration: NodeRef does not match Tree");

    view::ViewTreeAccess aView = aTree.getView();

    OSL_ASSERT( !aNode.isValid() || 
                aView.isGroupNode(aNode) || 
                aView.isSetNode(aNode) ||
                (aView.isValueNode(aNode) && isRootNode(aTree,aNode)) );

	return aNode.isValid() && aView.isGroupNode(aNode);
=====================================================================
Found a 15 line (108 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/DataInterpreter.cxx
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/XYDataInterpreter.cxx

        Reference< XDataSeries > xSeries;
        if( nSeriesIndex < aSeriesToReUse.getLength())
            xSeries.set( aSeriesToReUse[nSeriesIndex] );
        else
            xSeries.set( new DataSeries( GetComponentContext() ) );
        OSL_ASSERT( xSeries.is() );
        Reference< data::XDataSink > xSink( xSeries, uno::UNO_QUERY );
        OSL_ASSERT( xSink.is() );
        xSink->setData( aNewData );

        aSeriesVec.push_back( xSeries );
    }

    Sequence< Sequence< Reference< XDataSeries > > > aSeries(1);
    aSeries[0] = ContainerHelper::ContainerToSequence( aSeriesVec );
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx

    if (iFind == m_rttis.end())
    {
        // RTTI symbol
        OStringBuffer buf( 64 );
        buf.append( RTL_CONSTASCII_STRINGPARAM("_ZTIN") );
        sal_Int32 index = 0;
        do
        {
            OUString token( unoName.getToken( 0, '.', index ) );
            buf.append( token.getLength() );
            OString c_token( OUStringToOString( token, RTL_TEXTENCODING_ASCII_US ) );
            buf.append( c_token );
        }
        while (index >= 0);
        buf.append( 'E' );
        
        OString symName( buf.makeStringAndClear() );
        rtti = (type_info *)dlsym( m_hApp, symName.getStr() );
=====================================================================
Found a 18 line (108 tokens) duplication in the following files: 
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxcurr.cxx
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxsng.cxx

	SbxValues aTmp;
start:
	switch( p->eType )
	{
		case SbxCHAR:
			aTmp.pChar = &p->nChar; goto direct;
		case SbxBYTE:
			aTmp.pByte = &p->nByte; goto direct;
		case SbxINTEGER:
		case SbxBOOL:
			aTmp.pInteger = &p->nInteger; goto direct;
		case SbxLONG:
			aTmp.pLong = &p->nLong; goto direct;
		case SbxULONG:
			aTmp.pULong = &p->nULong; goto direct;
		case SbxERROR:
		case SbxUSHORT:
			aTmp.pUShort = &p->nUShort; goto direct;
=====================================================================
Found a 27 line (108 tokens) duplication in the following files: 
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/extended/accessibletabbarpagelist.cxx
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessiblestatusbar.cxx
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessibletabcontrol.cxx

void VCLXAccessibleTabControl::RemoveChild( sal_Int32 i )
{
	if ( i >= 0 && i < (sal_Int32)m_aAccessibleChildren.size() )
	{
		// get the accessible of the removed page
		Reference< XAccessible > xChild( m_aAccessibleChildren[i] );

		// remove entry in child list
		m_aAccessibleChildren.erase( m_aAccessibleChildren.begin() + i );

		// send accessible child event
		if ( xChild.is() )
		{
			Any aOldValue, aNewValue;
			aOldValue <<= xChild;
			NotifyAccessibleEvent( AccessibleEventId::CHILD, aOldValue, aNewValue );

			Reference< XComponent > xComponent( xChild, UNO_QUERY );
			if ( xComponent.is() )
				xComponent->dispose();
		}
	}
}

// -----------------------------------------------------------------------------

void VCLXAccessibleTabControl::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
=====================================================================
Found a 24 line (107 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h
Starting at line 174 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgba.h

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)fg[order_type::A];

                ++span;
                ++base_type::interpolator();
            } while(--len);
            return base_type::allocator().span();
        }
    };







    //==============================================span_image_resample_rgba
    template<class ColorT,
             class Order, 
             class Interpolator, 
             class Allocator = span_allocator<ColorT> >
    class span_image_resample_rgba : 
=====================================================================
Found a 12 line (107 tokens) duplication in the following files: 
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

                    pixel_type v;
                    ((value_type*)&v)[order_type::R] = c.r;
                    ((value_type*)&v)[order_type::G] = c.g;
                    ((value_type*)&v)[order_type::B] = c.b;
                    ((value_type*)&v)[order_type::A] = c.a;
                    do
                    {
                        *(pixel_type*)p = v;
                        p = (value_type*)m_rbuf->next_row(p);
                    }
                    while(--len);
                }
=====================================================================
Found a 24 line (107 tokens) duplication in the following files: 
Starting at line 2380 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshap.cxx
Starting at line 2528 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshap.cxx

				}
#endif
			}
		}

		if(mbIsUserTransformed)
		{
			uno::Reference< beans::XPropertySet > xProps(mxShape, uno::UNO_QUERY);
			if(xProps.is())
			{
				uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
				if( xPropsInfo.is() )
				{
					if( xPropsInfo->hasPropertyByName(OUString(RTL_CONSTASCII_USTRINGPARAM("IsPlaceholderDependent") )))
						xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("IsPlaceholderDependent") ), ::cppu::bool2any( sal_False ) );
				}
			}
		}


		// set pos, size, shear and rotate
		SetTransformation();

		SdXMLShapeContext::StartElement(xAttrList);
=====================================================================
Found a 25 line (107 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dndevdis.cxx
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dndevdis.cxx

	sal_Int32 nListeners;

	// find the window that is toplevel for this coordinates
	OClearableGuard aSolarGuard( Application::GetSolarMutex() );

    // because those coordinates come from outside, they must be mirrored if RTL layout is active
    if( Application::GetSettings().GetLayoutRTL() )
        m_pTopWindow->ImplMirrorFramePos( location );
	Window * pChildWindow = m_pTopWindow->ImplFindWindow( location );

	if( NULL == pChildWindow )
        pChildWindow = m_pTopWindow;

    while( pChildWindow->ImplGetClientWindow() )
        pChildWindow = pChildWindow->ImplGetClientWindow();

    if( pChildWindow->ImplHasMirroredGraphics() && !pChildWindow->IsRTLEnabled() )
        pChildWindow->ImplReMirror( location );

	aSolarGuard.clear();

	if( pChildWindow != m_pCurrentWindow )
	{
		// fire dragExit on listeners of previous window
		fireDragExitEvent( m_pCurrentWindow );
=====================================================================
Found a 34 line (107 tokens) duplication in the following files: 
Starting at line 1180 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 954 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_content.cxx

	aGuard.clear();
	inserted();
}

#endif // IMPLEMENT_COMMAND_INSERT

#ifdef IMPLEMENT_COMMAND_DELETE

//=========================================================================
void Content::destroy( sal_Bool bDeletePhysical )
    throw( uno::Exception )
{
	// @@@ take care about bDeletePhysical -> trashcan support

    uno::Reference< ucb::XContent > xThis = this;

	deleted();

	osl::Guard< osl::Mutex > aGuard( m_aMutex );

	// Process instanciated children...

	ContentRefList aChildren;
	queryChildren( aChildren );

	ContentRefList::const_iterator it  = aChildren.begin();
	ContentRefList::const_iterator end = aChildren.end();

	while ( it != end )
	{
		(*it)->destroy( bDeletePhysical );
		++it;
	}
}
=====================================================================
Found a 22 line (107 tokens) duplication in the following files: 
Starting at line 1096 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_content.cxx
Starting at line 883 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

        rtl::OUString aChildURL
            = xChild->getIdentifier()->getContentIdentifier();

		// Is aURL a prefix of aChildURL?
		if ( ( aChildURL.getLength() > nLen ) &&
			 ( aChildURL.compareTo( aURL, nLen ) == 0 ) )
		{
			sal_Int32 nPos = nLen;
			nPos = aChildURL.indexOf( '/', nPos );

			if ( ( nPos == -1 ) ||
				 ( nPos == ( aChildURL.getLength() - 1 ) ) )
			{
                // No further slashes / only a final slash. It's a child!
				rChildren.push_back(
                    ContentRef(
                        static_cast< Content * >( xChild.get() ) ) );
			}
		}
		++it;
	}
}
=====================================================================
Found a 17 line (107 tokens) duplication in the following files: 
Starting at line 961 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/content.cxx
Starting at line 2304 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

    aURL += rtl::OUString::createFromAscii( "/" );

	sal_Int32 nLen = aURL.getLength();

	::ucbhelper::ContentRefList::const_iterator it  = aAllContents.begin();
	::ucbhelper::ContentRefList::const_iterator end = aAllContents.end();

	while ( it != end )
	{
		::ucbhelper::ContentImplHelperRef xChild = (*it);
        rtl::OUString aChildURL
            = xChild->getIdentifier()->getContentIdentifier();

		// Is aURL a prefix of aChildURL?
		if ( ( aChildURL.getLength() > nLen ) &&
			 ( aChildURL.compareTo( aURL, nLen ) == 0 ) )
		{
=====================================================================
Found a 16 line (107 tokens) duplication in the following files: 
Starting at line 773 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpurl.cxx
Starting at line 824 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpurl.cxx

	slist = curl_slist_append(slist,dele.getStr());
	curl_easy_setopt(curl,CURLOPT_POSTQUOTE,slist);

	SET_CONTROL_CONTAINER;
	curl_easy_setopt(curl,CURLOPT_NOBODY,true);       // no data => no transfer
    curl_easy_setopt(curl,CURLOPT_QUOTE,0);

	rtl::OUString url(parent(true));
	if(1+url.lastIndexOf(sal_Unicode('/')) != url.getLength())
		url += rtl::OUString::createFromAscii("/");
	SET_URL(url);

	CURLcode err = curl_easy_perform(curl);
	curl_slist_free_all(slist);
	if(err != CURLE_OK)
		throw curl_exception(err);
=====================================================================
Found a 24 line (107 tokens) duplication in the following files: 
Starting at line 3092 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrols.cxx
Starting at line 3312 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/controls/unocontrols.cxx

	ImplRegisterProperty( BASEPROPERTY_CURSYM_POSITION );
	ImplRegisterProperty( BASEPROPERTY_DECIMALACCURACY );
	ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL );
	ImplRegisterProperty( BASEPROPERTY_ENABLED );
	ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR );
	ImplRegisterProperty( BASEPROPERTY_HELPTEXT );
	ImplRegisterProperty( BASEPROPERTY_HELPURL );
	ImplRegisterProperty( BASEPROPERTY_NUMSHOWTHOUSANDSEP );
	ImplRegisterProperty( BASEPROPERTY_PRINTABLE );
	ImplRegisterProperty( BASEPROPERTY_READONLY );
	ImplRegisterProperty( BASEPROPERTY_REPEAT );
	ImplRegisterProperty( BASEPROPERTY_REPEAT_DELAY );
	ImplRegisterProperty( BASEPROPERTY_SPIN );
	ImplRegisterProperty( BASEPROPERTY_STRICTFORMAT );
	ImplRegisterProperty( BASEPROPERTY_TABSTOP );
	ImplRegisterProperty( BASEPROPERTY_VALUEMAX_DOUBLE );
	ImplRegisterProperty( BASEPROPERTY_VALUEMIN_DOUBLE );
	ImplRegisterProperty( BASEPROPERTY_VALUESTEP_DOUBLE );
	ImplRegisterProperty( BASEPROPERTY_VALUE_DOUBLE );
    ImplRegisterProperty( BASEPROPERTY_ENFORCE_FORMAT );
	ImplRegisterProperty( BASEPROPERTY_HIDEINACTIVESELECTION );
}

::rtl::OUString UnoControlCurrencyFieldModel::getServiceName() throw(::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 27 line (107 tokens) duplication in the following files: 
Starting at line 362 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/unomod.cxx
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/unomod.cxx

void SwXPrintSettings::_preGetValues ()
	throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException )
{
	switch (meType)
	{
		case PRINT_SETTINGS_MODULE:
			mpPrtOpt = SW_MOD()->GetPrtOptions( sal_False );
		break;
		case PRINT_SETTINGS_WEB:
			mpPrtOpt = SW_MOD()->GetPrtOptions( sal_True );
		break;
		case PRINT_SETTINGS_DOCUMENT:
		{
			if (!mpDoc)
				throw IllegalArgumentException ();
            if ( !mpDoc->getPrintData() )
			{
				mpPrtOpt = new SwPrintData;
                mpDoc->setPrintData ( *mpPrtOpt );
				delete mpPrtOpt;
			}
            mpPrtOpt = mpDoc->getPrintData();
		}
		break;
	}
}
void SwXPrintSettings::_getSingleValue( const comphelper::PropertyInfo & rInfo, ::com::sun::star::uno::Any & rValue )
=====================================================================
Found a 11 line (107 tokens) duplication in the following files: 
Starting at line 443 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/frmsh.cxx
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/grfsh.cxx

			aSet.Put( aFrmSize );

			aSet.Put( aMgr.GetAttrSet() );
			aSet.SetParent( aMgr.GetAttrSet().GetParent() );

			// Bei %-Werten Groesse initialisieren
			SwFmtFrmSize& rSize = (SwFmtFrmSize&)aSet.Get(RES_FRM_SIZE);
			if (rSize.GetWidthPercent() && rSize.GetWidthPercent() != 0xff)
				rSize.SetWidth(rSh.GetAnyCurRect(RECT_FLY_EMBEDDED).Width());
			if (rSize.GetHeightPercent() && rSize.GetHeightPercent() != 0xff)
				rSize.SetHeight(rSh.GetAnyCurRect(RECT_FLY_EMBEDDED).Height());
=====================================================================
Found a 19 line (107 tokens) duplication in the following files: 
Starting at line 315 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx
Starting at line 485 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

    OutField(0, ww::eFORMCHECKBOX, FieldString(ww::eFORMCHECKBOX),
        WRITEFIELD_START | WRITEFIELD_CMD_START);
    // write the refence to the "picture" structure
    ULONG nDataStt = pDataStrm->Tell();
    pChpPlc->AppendFkpEntry( Strm().Tell() );

    WriteChar( 0x01 );
    static BYTE aArr1[] = {
        0x03, 0x6a, 0,0,0,0,    // sprmCPicLocation

        0x06, 0x08, 0x01,       // sprmCFData
        0x55, 0x08, 0x01,       // sprmCFSpec
        0x02, 0x08, 0x01        // sprmCFFldVanish
    };
    BYTE* pDataAdr = aArr1 + 2;
    Set_UInt32( pDataAdr, nDataStt );

    pChpPlc->AppendFkpEntry(Strm().Tell(),
                sizeof( aArr1 ), aArr1 );
=====================================================================
Found a 12 line (107 tokens) duplication in the following files: 
Starting at line 2052 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/rtfatr.cxx
Starting at line 2292 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8nds.cxx

    const BYTE nMaxCols = rWW8Wrt.bWrtWW8 ? 63 : 31;
    // rCols are the array of all cols of the table
    const SwWriteTableCols& rCols = pTableWrt->GetCols();
    USHORT nColCnt = rCols.Count();
    SwWriteTableCellPtr* pBoxArr = new SwWriteTableCellPtr[ nColCnt ];
    USHORT* pRowSpans = new USHORT[ nColCnt ];
    memset( pBoxArr, 0, sizeof( pBoxArr[0] ) * nColCnt );
    memset( pRowSpans, 0, sizeof( pRowSpans[0] ) * nColCnt );
    const SwWriteTableRows& rRows = pTableWrt->GetRows();
    for( USHORT nLine = 0; nLine < rRows.Count(); ++nLine )
    {
        USHORT nBox, nRealBox;
=====================================================================
Found a 23 line (107 tokens) duplication in the following files: 
Starting at line 1315 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/EnhancedPDFExportHelper.cxx
Starting at line 1479 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/text/EnhancedPDFExportHelper.cxx

                        const SwPosition aPos( *pTNd );
                        const bool bHeaderFooter = pDoc->IsInHeaderFooter( aPos.nNode );
                        // <--

                        // Create links for all selected rectangles:
                        const USHORT nNumOfRects = aTmp.Count();
                        for ( int i = 0; i < nNumOfRects; ++i )
                        {
                            // Link rectangle
                            const SwRect& rLinkRect( aTmp[ i ] );

                            // Link PageNum
                            const sal_Int32 nLinkPageNum = CalcOutputPageNum( rLinkRect );

                            if ( -1 != nLinkPageNum )
                            {
                                // Link Export
                                const sal_Int32 nLinkId =
                                    pPDFExtOutDevData->CreateLink( rLinkRect.SVRect(), nLinkPageNum );

                                // Store link info for tagged pdf output:
                                const IdMapEntry aLinkEntry( rLinkRect, nLinkId );
                                aLinkIdMap.push_back( aLinkEntry );
=====================================================================
Found a 20 line (107 tokens) duplication in the following files: 
Starting at line 2576 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accmap.cxx
Starting at line 2604 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accmap.cxx

        for ( ; aIter != pPrevSelectedParas->end(); ++aIter )
        {
            uno::Reference < XAccessible > xAcc( (*aIter).first );
            if ( xAcc.is() )
            {
                ::vos::ORef < SwAccessibleContext > xAccImpl(
                            static_cast<SwAccessibleContext*>( xAcc.get() ) );
                if ( xAccImpl.isValid() && xAccImpl->GetFrm() )
                {
                    const SwTxtFrm* pTxtFrm(
                            dynamic_cast<const SwTxtFrm*>(xAccImpl->GetFrm()) );
                    ASSERT( pTxtFrm,
                            "<SwAccessibleMap::_SubmitTextSelectionChangedEvents()> - unexcepted type of frame" );
                    if ( pTxtFrm )
                    {
                        InvalidateParaTextSelection( *pTxtFrm );
                    }
                }
            }
        }
=====================================================================
Found a 7 line (107 tokens) duplication in the following files: 
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unoedit/unotext2.cxx
Starting at line 578 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unoedit/unotext2.cxx

		*pTypes++ = ::getCppuType(( const uno::Reference< text::XTextCursor >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< beans::XPropertySet >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< beans::XMultiPropertySet >*)0);
//		*pTypes++ = ::getCppuType(( const uno::Reference< beans::XTolerantMultiPropertySet >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< beans::XPropertyState >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< text::XTextRangeCompare >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< lang::XServiceInfo >*)0);
=====================================================================
Found a 16 line (107 tokens) duplication in the following files: 
Starting at line 2058 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap2.cxx
Starting at line 2080 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshap2.cxx

				Point aRef2( aRef1.X() + 1000, aRef1.Y() );
				USHORT i;
				USHORT nPntAnz=aPol.GetSize();
				for (i=0; i<nPntAnz; i++)
				{
					MirrorPoint(aPol[i],aRef1,aRef2);
				}
				// Polygon wenden und etwas schieben
				Polygon aPol0(aPol);
				aPol[0]=aPol0[1];
				aPol[1]=aPol0[0];
				aPol[2]=aPol0[3];
				aPol[3]=aPol0[2];
				aPol[4]=aPol0[1];
				Poly2Rect( aPol, aRectangle, aNewGeo );
			}
=====================================================================
Found a 7 line (107 tokens) duplication in the following files: 
Starting at line 425 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/fontworkgallery.cxx
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/fontworkgallery.cxx

		bool bHighContrast = GetDisplayBackground().GetColor().IsDark();

		mpMenu->appendEntry( 0, String( SVX_RES( STR_ALIGN_LEFT ) ), bHighContrast ? maImgAlgin1h : maImgAlgin1 );
		mpMenu->appendEntry( 1, String( SVX_RES( STR_ALIGN_CENTER ) ), bHighContrast ? maImgAlgin2h : maImgAlgin2 );
		mpMenu->appendEntry( 2, String( SVX_RES( STR_ALIGN_RIGHT ) ), bHighContrast ? maImgAlgin3h : maImgAlgin3 );
		mpMenu->appendEntry( 3, String( SVX_RES( STR_ALIGN_WORD ) ), bHighContrast ? maImgAlgin4h : maImgAlgin4 );
		mpMenu->appendEntry( 4, String( SVX_RES( STR_ALIGN_STRETCH ) ), bHighContrast ? maImgAlgin5h : maImgAlgin5 );
=====================================================================
Found a 7 line (107 tokens) duplication in the following files: 
Starting at line 1119 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdomeas.cxx
Starting at line 746 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

					bPnt1=TRUE;
					double nXFact=0; if (!bVLin) nXFact=(double)ndx/(double)ndx0;
					double nYFact=0; if (!bHLin) nYFact=(double)ndy/(double)ndy0;
					FASTBOOL bHor=bHLin || (!bVLin && (nXFact>nYFact) ==bBigOrtho);
					FASTBOOL bVer=bVLin || (!bHLin && (nXFact<=nYFact)==bBigOrtho);
					if (bHor) ndy=long(ndy0*nXFact);
					if (bVer) ndx=long(ndx0*nYFact);
=====================================================================
Found a 16 line (107 tokens) duplication in the following files: 
Starting at line 3816 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3838 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx

			Point aRef2( aRef1.X() + 1000, aRef1.Y() );
			USHORT i;
			USHORT nPntAnz=aPol.GetSize();
			for (i=0; i<nPntAnz; i++)
			{
				MirrorPoint(aPol[i],aRef1,aRef2);
			}
			// Polygon wenden und etwas schieben
			Polygon aPol0(aPol);
			aPol[0]=aPol0[1];
			aPol[1]=aPol0[0];
			aPol[2]=aPol0[3];
			aPol[3]=aPol0[2];
			aPol[4]=aPol0[1];
			Poly2Rect(aPol,aRectangle,aNewGeo);
		}
=====================================================================
Found a 11 line (107 tokens) duplication in the following files: 
Starting at line 821 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedtv2.cxx
Starting at line 910 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdedtv2.cxx

						double fStepWidth = (double)nHeight / (double)(aEntryList.Count() - 1);
						double fStepStart = (double)aEntryList.GetObject(0)->mnPos;
						fStepStart += fStepWidth;

						// move entries 1..n-1
						for(a=1;a<aEntryList.Count()-1;a++)
						{
							ImpDistributeEntry* pCurr = aEntryList.GetObject(a);
							INT32 nDelta = (INT32)(fStepStart + 0.5) - pCurr->mnPos;
							AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*pCurr->mpObj));
							pCurr->mpObj->Move(Size(0, nDelta));
=====================================================================
Found a 20 line (107 tokens) duplication in the following files: 
Starting at line 663 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpbitmap.cxx
Starting at line 491 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpgradnt.cxx
Starting at line 560 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tphatch.cxx

            if( aName == pHatchingList->GetHatch( i )->GetName() )
				bDifferent = FALSE;
	}

	//CHINA001 SvxNameDialog* pDlg     = new SvxNameDialog( DLGWIN, aName, aDesc );
	SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
	DBG_ASSERT(pFact, "Dialogdiet fail!");//CHINA001
	AbstractSvxNameDialog* pDlg = pFact->CreateSvxNameDialog( DLGWIN, aName, aDesc, RID_SVXDLG_NAME );
	DBG_ASSERT(pDlg, "Dialogdiet fail!");//CHINA001
	WarningBox*    pWarnBox = NULL;
	USHORT         nError   = RID_SVXSTR_WARN_NAME_DUPLICATE;

	while( pDlg->Execute() == RET_OK )
	{
		pDlg->GetName( aName );

		bDifferent = TRUE;

		for( long i = 0; i < nCount && bDifferent; i++ )
            if( aName == pHatchingList->GetHatch( i )->GetName() )
=====================================================================
Found a 14 line (107 tokens) duplication in the following files: 
Starting at line 4310 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3907 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartAlternateProcessVert[] =
{
	{ 0, 2 MSO_I }, { 0 MSO_I, 0 }, { 1 MSO_I, 0 }, { 21600, 2 MSO_I },
	{ 21600, 3 MSO_I }, { 1 MSO_I, 21600 }, { 0 MSO_I, 21600 }, { 0, 3 MSO_I }
};
static const sal_uInt16 mso_sptFlowChartAlternateProcessSegm[] =
{
	0x4000, 0xa801, 0x0001, 0xa701, 0x0001, 0xa801, 0x0001, 0xa701, 0x6000, 0x8000
};
static const SvxMSDffCalculationData mso_sptFlowChartAlternateProcessCalc[] =
{
	{ 0x2000, DFF_Prop_geoLeft, 2540, 0 },
=====================================================================
Found a 33 line (107 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 184 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

static const sal_Int32 mso_sptDefault0[] =
{
	1, 0
};
static const sal_Int32 mso_sptDefault1400[] = 
{
	1, 1400
};
static const sal_Int32 mso_sptDefault1800[] = 
{
	1, 1800
};
static const sal_Int32 mso_sptDefault2500[] = 
{
	1, 2500
};
static const sal_Int32 mso_sptDefault2700[] = 
{
	1, 2700
};
static const sal_Int32 mso_sptDefault3600[] = 
{
	1, 3600
};
static const sal_Int32 mso_sptDefault3700[] = 
{
	1, 3700
};
static const sal_Int32 mso_sptDefault5400[] = 
{
	1, 5400
};
static const sal_Int32 mso_sptDefault8100[] = 
=====================================================================
Found a 23 line (107 tokens) duplication in the following files: 
Starting at line 413 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/imap2.cxx
Starting at line 591 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/misc/imap2.cxx

void ImageMap::ImpReadNCSALine( const ByteString& rLine, const String& rBaseURL )
{
	ByteString	aStr( rLine );
	ByteString	aToken;

	aStr.EraseLeadingChars( ' ' );
	aStr.EraseLeadingChars( '\t' );
	aStr.EraseAllChars( ';' );
	aStr.ToLowerAscii();

	const char*	pStr = aStr.GetBuffer();
	char		cChar = *pStr++;

		// Anweisung finden
	while( ( cChar >= 'a' ) && ( cChar <= 'z' ) && NOTEOL( cChar ) )
	{
		aToken += cChar;
		cChar = *pStr++;
	}

	if ( NOTEOL( cChar ) )
	{
		if ( aToken == "rect" )
=====================================================================
Found a 18 line (107 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/printdlg.cxx
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/dialogs/prnsetup.cxx

void PrinterSetupDialog::ImplSetInfo()
{
	const QueueInfo* pInfo = Printer::GetQueueInfo(maLbName.GetSelectEntry(), true);
	if ( pInfo )
	{
		maFiType.SetText( pInfo->GetDriver() );
		maFiLocation.SetText( pInfo->GetLocation() );
		maFiComment.SetText( pInfo->GetComment() );
		maFiStatus.SetText( ImplPrnDlgGetStatusText( *pInfo ) );
	}
	else
	{
		XubString aTempStr;
		maFiType.SetText( aTempStr );
		maFiLocation.SetText( aTempStr );
		maFiComment.SetText( aTempStr );
		maFiStatus.SetText( aTempStr );
	}
=====================================================================
Found a 27 line (107 tokens) duplication in the following files: 
Starting at line 1570 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docfile.cxx
Starting at line 1933 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docfile.cxx

				aTransferContent = ::ucbhelper::Content( aDest.GetMainURL( INetURLObject::NO_DECODE ), xComEnv );
			}
			catch (const ::com::sun::star::ucb::ContentCreationException& ex)
            {
				eError = ERRCODE_IO_GENERAL;
				if (
					(ex.eError == ::com::sun::star::ucb::ContentCreationError_NO_CONTENT_PROVIDER    ) ||
					(ex.eError == ::com::sun::star::ucb::ContentCreationError_CONTENT_CREATION_FAILED)
				   )
				{
					eError = ERRCODE_IO_NOTEXISTSPATH;
				}
            }
            catch (const ::com::sun::star::uno::Exception&)
            {
                eError = ERRCODE_IO_GENERAL;
            }

            if ( !eError || (eError & ERRCODE_WARNING_MASK) )
            {
                // free resources, otherwise the transfer may fail
                Close();
                // don't create content before Close(), because if the storage was opened in direct mode, it will be flushed
                // in Close() and this leads to a transfer command executed in the package, which currently is implemented as
                // remove+move in the file FCP. The "remove" is notified to the ::ucbhelper::Content, that clears its URL and its
                // content reference in this notification and thus will never get back any URL, so my transfer will fail!
                ::ucbhelper::Content::create( aSource.GetMainURL( INetURLObject::NO_DECODE ), xEnv, aSourceContent );
=====================================================================
Found a 23 line (107 tokens) duplication in the following files: 
Starting at line 558 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/dockwin.cxx
Starting at line 598 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/dockwin.cxx

	ULONG nId = GetHelpId();
	SetHelpId(0);
	SetUniqueId( nId );

	pImp = new SfxDockingWindow_Impl;
	pImp->bConstructed = FALSE;
	pImp->pSplitWin = 0;
	pImp->bEndDocked = FALSE;
	pImp->bDockingPrevented = FALSE;

	pImp->bSplitable = TRUE;
//	pImp->bAutoHide = FALSE;

	// Zun"achst auf Defaults setzen; das Alignment wird in der Subklasse gesetzt
	pImp->nLine = pImp->nDockLine = 0;
	pImp->nPos  = pImp->nDockPos = 0;
	pImp->bNewLine = FALSE;
	pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT);
    pImp->aMoveTimer.SetTimeout(50);
    pImp->aMoveTimer.SetTimeoutHdl(LINK(this,SfxDockingWindow,TimerHdl));

//	DBG_ASSERT(pMgr,"DockingWindow erfordert ein SfxChildWindow!");
}
=====================================================================
Found a 24 line (107 tokens) duplication in the following files: 
Starting at line 1055 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/cfg.cxx
Starting at line 1696 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/cfg.cxx

								aArr.Insert( pGrpInfo, aArr.Count() );

								if ( children[n]->hasChildNodes() )
								{
									Sequence< Reference< browse::XBrowseNode > > grandchildren =
										children[n]->getChildNodes();

                                    for ( sal_Int32 m = 0; m < grandchildren.getLength(); m++ )
									{
										if ( grandchildren[m]->getType() == browse::BrowseNodeTypes::CONTAINER )
										{
											pNewEntry->EnableChildsOnDemand( TRUE );
											m = grandchildren.getLength();
										}
									}
								}
							}
						}
					}
				}
                catch (RuntimeException&) {
					// do nothing, the entry will not be displayed in the UI
				}
			}
=====================================================================
Found a 25 line (107 tokens) duplication in the following files: 
Starting at line 378 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlnvs2.cxx
Starting at line 685 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlnvs2.cxx

			rReq.Ignore ();
		}
		break;
	}

	if(HasCurrentFunction())
		GetCurrentFunction()->Activate();

	Invalidate( SID_OUTLINE_COLLAPSE_ALL );
	Invalidate( SID_OUTLINE_COLLAPSE );
	Invalidate( SID_OUTLINE_EXPAND_ALL );
	Invalidate( SID_OUTLINE_EXPAND );

	SfxBindings& rBindings = GetViewFrame()->GetBindings();
	rBindings.Invalidate( SID_OUTLINE_LEFT );
	rBindings.Invalidate( SID_OUTLINE_RIGHT );
	rBindings.Invalidate( SID_OUTLINE_UP );
	rBindings.Invalidate( SID_OUTLINE_DOWN );

	Invalidate( SID_OUTLINE_FORMAT );
	Invalidate( SID_COLORVIEW );
	Invalidate(SID_CUT);
	Invalidate(SID_COPY);
	Invalidate(SID_PASTE);
}
=====================================================================
Found a 6 line (107 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BACKGROUND),		WID_PAGE_BACK,		&ITYPE(beans::XPropertySet),					0,  0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BOTTOM),			WID_PAGE_BOTTOM,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_LEFT),				WID_PAGE_LEFT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_RIGHT),			WID_PAGE_RIGHT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_TOP),				WID_PAGE_TOP,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
=====================================================================
Found a 11 line (107 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/UnoDocumentSettings.cxx
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/UnoGraphicExporter.cxx

using namespace ::cppu;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::drawing;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::document;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::task;
=====================================================================
Found a 29 line (107 tokens) duplication in the following files: 
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/slidesorter/controller/SlsListener.cxx
Starting at line 525 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/slidesorter/controller/SlsListener.cxx

        case frame::FrameAction_COMPONENT_REATTACHED:
        {
            ConnectToController();
            mrController.GetPageSelector().UpdateAllPages();

            // When there is a new controller then the edit mode may have
            // changed at the same time.
            Reference<frame::XController> xController (mxControllerWeak);
            Reference<beans::XPropertySet> xSet (xController, UNO_QUERY);
            bool bIsMasterPageMode = false;
            if (xSet != NULL)
            {
                try
                {
                    Any aValue (xSet->getPropertyValue(
                        ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsMasterPageMode"))));
                    aValue >>= bIsMasterPageMode;
                }
                catch (beans::UnknownPropertyException e)
                {
                    // When the property is not supported then the master
                    // page mode is not supported, too.
                    bIsMasterPageMode = false;
                }
            }
            mrController.ChangeEditMode (
                bIsMasterPageMode ? EM_MASTERPAGE : EM_PAGE);
        }
        break;
=====================================================================
Found a 9 line (107 tokens) duplication in the following files: 
Starting at line 5387 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin.cxx
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/gridwin4.cxx

				if ( aRange.aStart.Col() <= aRange.aEnd.Col() &&
					 aRange.aStart.Row() <= aRange.aEnd.Row() )
				{
					Point aStart = pViewData->GetScrPos( aRange.aStart.Col(),
														 aRange.aStart.Row(), eWhich );
					Point aEnd = pViewData->GetScrPos( aRange.aEnd.Col()+1,
													   aRange.aEnd.Row()+1, eWhich );
					aEnd.X() -= 1;
					aEnd.Y() -= 1;
=====================================================================
Found a 10 line (107 tokens) duplication in the following files: 
Starting at line 5753 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 1735 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/datauno.cxx

		SCCOL nFieldStart = aDBRange.aStart.Col();
		for (USHORT i=0; i<MAXSUBTOTAL; i++)
		{
			if ( aParam.bGroupActive[i] )
			{
                aParam.nField[i] = sal::static_int_cast<SCCOL>( aParam.nField[i] + nFieldStart );
				for (SCCOL j=0; j<aParam.nSubTotals[i]; j++)
                    aParam.pSubTotals[i][j] = sal::static_int_cast<SCCOL>( aParam.pSubTotals[i][j] + nFieldStart );
			}
		}
=====================================================================
Found a 20 line (107 tokens) duplication in the following files: 
Starting at line 1754 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undoblk3.cxx
Starting at line 1828 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undoblk3.cxx

void __EXPORT ScUndoRemoveAreaLink::Undo()
{
	ScDocument* pDoc = pDocShell->GetDocument();
	SvxLinkManager* pLinkManager = pDoc->GetLinkManager();

	ScAreaLink* pLink = new ScAreaLink( pDocShell, aDocName, aFltName, aOptions,
										aAreaName, aRange.aStart, nRefreshDelay );
	pLink->SetInCreate( TRUE );
	pLink->SetDestArea( aRange );
	pLinkManager->InsertFileLink( *pLink, OBJECT_CLIENT_FILE, aDocName, &aFltName, &aAreaName );
	pLink->Update();
	pLink->SetInCreate( FALSE );

	SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) );		// Navigator
}


//----------------------------------------------------------------------------

void __EXPORT ScUndoRemoveAreaLink::Redo()
=====================================================================
Found a 25 line (107 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/docshell/olinefun.cxx
Starting at line 839 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/viewfun2.cxx

	ScDocument* pDoc = GetViewData()->GetDocument();

	USHORT nParts = PAINT_GRID;
	SCCOL nStartCol = 0;
	SCROW nStartRow = 0;
	SCCOL nEndCol = MAXCOL;			// fuer Test auf Merge
	SCROW nEndRow = MAXROW;
	if ( bColumns )
	{
		nParts |= PAINT_TOP;
		nStartCol = static_cast<SCCOL>(nStart);
		nEndCol = static_cast<SCCOL>(nEnd);
	}
	else
	{
		nParts |= PAINT_LEFT;
		nStartRow = nStart;
		nEndRow = nEnd;
	}
	if (pDoc->HasAttrib( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab,
							HASATTR_MERGED | HASATTR_OVERLAPPED ))
	{
		nStartCol = 0;
		nStartRow = 0;
	}
=====================================================================
Found a 11 line (107 tokens) duplication in the following files: 
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/drwtrans.cxx
Starting at line 70 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/seltrans.cxx

	SdrUnoObj* pUnoCtrl = PTR_CAST(SdrUnoObj, pObject);
	if (pUnoCtrl && FmFormInventor == pUnoCtrl->GetObjInventor())
   	{
		uno::Reference<awt::XControlModel> xControlModel = pUnoCtrl->GetUnoControlModel();
		DBG_ASSERT( xControlModel.is(), "uno control without model" );
		if ( xControlModel.is() )
		{
			uno::Reference< beans::XPropertySet > xPropSet( xControlModel, uno::UNO_QUERY );
			uno::Reference< beans::XPropertySetInfo > xInfo = xPropSet->getPropertySetInfo();

			rtl::OUString sPropButtonType = rtl::OUString::createFromAscii( "ButtonType" );
=====================================================================
Found a 15 line (107 tokens) duplication in the following files: 
Starting at line 1405 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleDocument.cxx
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accdoc.cxx

IMPL_LINK( SwAccessibleDocument, WindowChildEventListener, VclSimpleEvent*, pEvent )
{
	DBG_ASSERT( pEvent && pEvent->ISA( VclWindowEvent ), "Unknown WindowEvent!" );
	if ( pEvent && pEvent->ISA( VclWindowEvent ) )
	{
		VclWindowEvent *pVclEvent = static_cast< VclWindowEvent * >( pEvent );
		DBG_ASSERT( pVclEvent->GetWindow(), "Window???" );
		switch ( pVclEvent->GetId() )
		{
        case VCLEVENT_WINDOW_SHOW:  // send create on show for direct accessible children
			{
				Window* pChildWin = static_cast< Window* >( pVclEvent->GetData() );
				if( pChildWin && AccessibleRole::EMBEDDED_OBJECT == pChildWin->GetAccessibleRole() )
				{
					AddChild( pChildWin );
=====================================================================
Found a 14 line (107 tokens) duplication in the following files: 
Starting at line 1438 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1687 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	sal_Bool bPosition(sal_False);
	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
			{
=====================================================================
Found a 12 line (107 tokens) duplication in the following files: 
Starting at line 1413 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx
Starting at line 2118 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx

		switch ( aRaster.pData[ nRasterIndex ].Value )
		{
		case raNone:		nFact = 0xffff; bSwapCol = TRUE; bSetItem = (nBColor > 0); break;
		case raGray12:	nFact = (0xffff / 100) * 12;	break;
		case raGray25:	nFact = (0xffff / 100) * 25;	break;
		case raGray50:	nFact = (0xffff / 100) * 50;	break;
		case raGray75:	nFact = (0xffff / 100) * 75;	break;
		default:	nFact = 0xffff; bSetItem = (nRColor < 15);
		}
		if ( bSetItem )
		{
			if( bSwapCol )
=====================================================================
Found a 19 line (107 tokens) duplication in the following files: 
Starting at line 929 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx
Starting at line 2044 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/starcalc/scflt.cxx

            ScPatternAttr   aScPattern(pDoc->GetPool());
			SvxBorderLine	aLine;
            SvxBoxItem      aBox( ATTR_BORDER );

			aLine.SetOutWidth( nLeft );
			aLine.SetColor( ColorLeft );
			aBox.SetLine( &aLine, BOX_LINE_LEFT );

			aLine.SetOutWidth( nTop );
			aLine.SetColor( ColorTop );
			aBox.SetLine( &aLine, BOX_LINE_TOP );

			aLine.SetOutWidth( nRight );
			aLine.SetColor( ColorRight );
			aBox.SetLine( &aLine, BOX_LINE_RIGHT );

			aLine.SetOutWidth( nBottom );
			aLine.SetColor( ColorBottom );
			aBox.SetLine( &aLine, BOX_LINE_BOTTOM );
=====================================================================
Found a 11 line (107 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/xechart.cxx
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/xichart.cxx

using ::com::sun::star::drawing::Direction3D;

using ::com::sun::star::chart2::XChartDocument;
using ::com::sun::star::chart2::XDiagram;
using ::com::sun::star::chart2::XCoordinateSystemContainer;
using ::com::sun::star::chart2::XCoordinateSystem;
using ::com::sun::star::chart2::XChartTypeContainer;
using ::com::sun::star::chart2::XChartType;
using ::com::sun::star::chart2::XDataSeriesContainer;
using ::com::sun::star::chart2::XDataSeries;
using ::com::sun::star::chart2::XRegressionCurve;
=====================================================================
Found a 22 line (107 tokens) duplication in the following files: 
Starting at line 3859 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx
Starting at line 4181 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/compiler.cxx

        nOldPosTab = nPosTab - nDir;    // moved by one

    BOOL bIsRel = FALSE;
    ScToken* t;
    pArr->Reset();
    if (bIsName)
        t = pArr->GetNextReference();
    else
        t = pArr->GetNextReferenceOrName();
    while( t )
    {
        if( t->GetOpCode() == ocName )
        {
            if (!bIsName)
            {
                ScRangeData* pName = pDoc->GetRangeName()->FindIndex(t->GetIndex());
                if (pName && pName->HasType(RT_SHAREDMOD))
                    pRangeData = pName;
            }
        }
        else if( t->GetType() != svIndex )  // it may be a DB area!!!
        {
=====================================================================
Found a 20 line (107 tokens) duplication in the following files: 
Starting at line 1052 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_SocketAddr.cxx

			::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP );
			sal_Bool bOK = saSocketAddr.setPort( IP_PORT_ZERO );
			
			oslSocket sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp );
			::osl::Socket sSocket(sHandle);			
			sSocket.setOption( osl_Socket_OptionReuseAddr, 1 );//sal_True);			
			sal_Bool bOK1 = sSocket.bind( saSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "bind SocketAddr failed", bOK1 == sal_True );
			
			sal_Int32 newPort = sSocket.getLocalPort();
			//t_print("#new port is %d\n", newPort );
 
			CPPUNIT_ASSERT_MESSAGE( "test for setPort() function: port number should be in 1 ~ 65535, set port 0, it should be converted to a port number between 1024~65535.", 
									( 1024 <= newPort ) && ( 65535 >= newPort ) && ( bOK == sal_True ) );
			
		}
		
		void setPort_003()
		{
			::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP);
=====================================================================
Found a 21 line (107 tokens) duplication in the following files: 
Starting at line 1987 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
Starting at line 15299 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx

    {
        OString* arrOUS[5];
        
    public:
        void setUp()
        {
            arrOUS[0] = new OString( kTestStr7 );
            arrOUS[1] = new OString(  );
            arrOUS[2] = new OString( kTestStr25 );
            arrOUS[3] = new OString( "\0"  );
            arrOUS[4] = new OString( kTestStr28 );
            
        }
        
        void tearDown()
        {
            delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2]; 
            delete arrOUS[3]; delete arrOUS[4];
        }
        
        void append_001()
=====================================================================
Found a 28 line (107 tokens) duplication in the following files: 
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx
Starting at line 428 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx

				   			 		  		   sal_Unicode** pValueList, 
				   			 		  		   sal_uInt32 len)
{
	ORegKey* 	pKey;
	
	if (hKey)
	{
		pKey = (ORegKey*)hKey;

		if (pKey->isDeleted())
			return REG_INVALID_KEY;
	} else
		return REG_INVALID_KEY;

	if (pKey->isReadOnly())
		return REG_REGISTRY_READONLY;

	OUString valueName( RTL_CONSTASCII_USTRINGPARAM("value") );
	if (keyName->length)
	{
		RegKeyHandle hSubKey;
		ORegKey* pSubKey;
		RegError _ret1 = pKey->openKey(keyName, &hSubKey);
		if (_ret1)
			return _ret1;

		pSubKey = (ORegKey*)hSubKey;
        _ret1 = pSubKey->setUnicodeListValue(valueName, pValueList, len);
=====================================================================
Found a 32 line (107 tokens) duplication in the following files: 
Starting at line 667 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno.cxx
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/pyuno/source/module/pyuno_runtime.cxx

    (reprfunc) 0,
    (getattrofunc)0,
    (setattrofunc)0,
    NULL,
    0,
    NULL,
    (traverseproc)0,
    (inquiry)0,
    (richcmpfunc)0,
    0,
    (getiterfunc)0,
    (iternextfunc)0,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    (descrgetfunc)0,
    (descrsetfunc)0,
    0,
    (initproc)0,
    (allocfunc)0,
    (newfunc)0,
    (freefunc)0,
    (inquiry)0,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    (destructor)0
};
=====================================================================
Found a 9 line (107 tokens) duplication in the following files: 
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/ocompinstream.cxx
Starting at line 2612 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

	if ( m_pData->m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< uno::Sequence< beans::StringPair > > aSeq = getAllRelationships();
	for ( sal_Int32 nInd1 = 0; nInd1 < aSeq.getLength(); nInd1++ )
		for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ )
			if ( aSeq[nInd1][nInd2].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Id" ) ) )
			{
				if ( aSeq[nInd1][nInd2].Second.equals( sID ) )
=====================================================================
Found a 16 line (107 tokens) duplication in the following files: 
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/ocompinstream.cxx
Starting at line 388 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/ocompinstream.cxx

::rtl::OUString SAL_CALL OInputCompStream::getTypeByID(  const ::rtl::OUString& sID  )
		throw ( container::NoSuchElementException,
				io::IOException,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );

	if ( m_bDisposed )
		throw lang::DisposedException();

	if ( m_nStorageType != OFOPXML_STORAGE )
		throw uno::RuntimeException();

	uno::Sequence< beans::StringPair > aSeq = getRelationshipByID( sID );
	for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ )
		if ( aSeq[nInd].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Type" ) ) )
=====================================================================
Found a 20 line (107 tokens) duplication in the following files: 
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/acceptor/acc_socket.cxx
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/connector/ctr_socket.cxx

		buf.append( (sal_Int32) nPort );
		buf.appendAscii( ",localHost=" );
		buf.append( m_socket.getLocalHost( ) );

		m_sDescription += buf.makeStringAndClear();
	}
	
	sal_Int32 SocketConnection::read( Sequence < sal_Int8 > & aReadBytes , sal_Int32 nBytesToRead )
			throw(::com::sun::star::io::IOException,
				  ::com::sun::star::uno::RuntimeException)
	{
		if( ! m_nStatus )
		{
			notifyListeners(this, &_started, callStarted);

			if( aReadBytes.getLength() != nBytesToRead )
			{
				aReadBytes.realloc( nBytesToRead );
			}
			sal_Int32 i = m_socket.read( aReadBytes.getArray()  , aReadBytes.getLength() );
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 1506 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1510 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd00 - fd0f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd10 - fd1f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd20 - fd2f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,10,10,// fd30 - fd3f
=====================================================================
Found a 6 line (107 tokens) duplication in the following files: 
Starting at line 1340 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2ef0 - 2eff

    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f00 - 2f0f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f10 - 2f1f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f20 - 2f2f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2f30 - 2f3f
=====================================================================
Found a 5 line (107 tokens) duplication in the following files: 
Starting at line 1080 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 1028 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1072 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17,17,17,17,17,17,17,17,17,17,17, 0, 0, 0, 0, 0,// 0740 - 074f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0750 - 075f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0760 - 076f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0770 - 077f
=====================================================================
Found a 5 line (107 tokens) duplication in the following files: 
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/nodrop_curs.h

   0xf0, 0x3f, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
=====================================================================
Found a 5 line (107 tokens) duplication in the following files: 
Starting at line 855 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 858 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb70 - fb7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb80 - fb8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fb90 - fb9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fba0 - fbaf
     5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// fbb0 - fbbf
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1262 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 5 line (107 tokens) duplication in the following files: 
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 701 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    19, 4, 4, 4, 4, 4,27,27,10,10,10, 0, 0, 0,27,27,// 3030 - 303f
     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3040 - 304f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3050 - 305f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3060 - 306f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 3070 - 307f
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1840 - 184f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1850 - 185f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1860 - 186f
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 892 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe70 - fe7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe80 - fe8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe90 - fe9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 651 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c40 - 2c4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c50 - 2c5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c60 - 2c6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2c70 - 2c7f
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0,// 0d50 - 0d5f
     5, 5, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,// 0d60 - 0d6f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0d70 - 0d7f
     0, 0, 8, 8, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0d80 - 0d8f
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1430 - 143f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1440 - 144f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1450 - 145f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1460 - 146f
=====================================================================
Found a 5 line (107 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 16f0 - 16ff

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1700 - 170f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1710 - 171f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1720 - 172f
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 6, 6, 8, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0900 - 090f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0910 - 091f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0920 - 092f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 6, 5, 8, 8,// 0930 - 093f
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0,// 0740 - 074f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0750 - 075f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0760 - 076f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0770 - 077f
=====================================================================
Found a 5 line (107 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     1, 2,27, 6, 6, 6, 6, 0, 7, 7, 0, 0, 1, 2, 1, 2,// 0480 - 048f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 0490 - 049f
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 04a0 - 04af
     1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,// 04b0 - 04bf
     1, 1, 2, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 0,// 04c0 - 04cf
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1072 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    17,17,17,17,17,17,17,17,17,17,17, 0, 0, 0, 0, 0,// 0740 - 074f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0750 - 075f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0760 - 076f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0770 - 077f
=====================================================================
Found a 11 line (107 tokens) duplication in the following files: 
Starting at line 4450 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 4552 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

                    padd(ascii("svg:width"), sXML_CDATA,
                        Double2Str (WTMM( drawobj->extent.w )) + ascii("mm"));
                    padd(ascii("svg:height"), sXML_CDATA,
                        Double2Str (WTMM( drawobj->extent.h )) + ascii("mm"));

                    sprintf(buf, "0 0 %d %d", WTSM(drawobj->extent.w), WTSM(drawobj->extent.h));
                    padd(ascii("svg:viewBox"), sXML_CDATA, ascii(buf) );

                    OUString oustr;

                    if (drawobj->u.freeform.npt > 0)
=====================================================================
Found a 13 line (107 tokens) duplication in the following files: 
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpread.cpp
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpread.cpp

    hwpf.Read2b(&dummy1, 1);                      /* ���� 4����Ʈ */
    hwpf.Read2b(&dummy2, 1);

    style.boxnum = fboxnum++;
	 zorder = zindex++;
    hwpf.Read1b(&style.anchor_type, 1);           /* ����'ġ */
    hwpf.Read1b(&style.txtflow, 1);               /* �׸�����. 0-2(�ڸ�����,���,��︲) */
    hwpf.Read2b(&style.xpos, 1);                  /* ����'ġ : 1 ����, 2�8���, 3 ���, �̿� = ���� */
    hwpf.Read2b(&style.ypos, 1);                  /* ����'ġ : 1 ', 2 �Ʒ�, 3 ���, �̿� ���� */
    hwpf.Read2b(&option, 1);                      /* ��Ÿ�ɼ� : �׵θ�,�׸�����,��. bit�� ����. */
    hwpf.Read2b(&ctrl_ch, 1);                     /* �׻� 11 */
    hwpf.Read2b(style.margin, 12);                /* ���� : [0-2][] out/in/��,[][0-3] ��/�8�/'/�Ʒ� ���� */
    hwpf.Read2b(&box_xs, 1);                      /* �ڽ�ũ�� ���� */
=====================================================================
Found a 10 line (107 tokens) duplication in the following files: 
Starting at line 1757 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ios2met/ios2met.cxx
Starting at line 1834 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ios2met/ios2met.cxx

				aAttr.aImgBgCol=aDefAttr.aImgBgCol;
			}
			else {
				nVal=ReadLittleEndian3BytesLong();
				if      ((nFlags&0x40)!=0 && nVal==1) aCol=Color(COL_BLACK);
				else if ((nFlags&0x40)!=0 && nVal==2) aCol=Color(COL_WHITE);
				else if ((nFlags&0x40)!=0 && nVal==4) aCol=Color(COL_WHITE);
				else if ((nFlags&0x40)!=0 && nVal==5) aCol=Color(COL_BLACK);
				else aCol=GetPaletteColor(nVal);
				aAttr.aLinBgCol = aAttr.aChrBgCol = aAttr.aMrkBgCol =
=====================================================================
Found a 9 line (107 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxfentrd.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/idxf/dxfentrd.cxx

void DXFTraceEntity::EvaluateGroup(DXFGroupReader & rDGR)
{
	switch (rDGR.GetG()) {
		case 10: aP0.fx=rDGR.GetF(); break;
		case 20: aP0.fy=rDGR.GetF(); break;
		case 30: aP0.fz=rDGR.GetF(); break;
		case 11: aP1.fx=rDGR.GetF(); break;
		case 21: aP1.fy=rDGR.GetF(); break;
		case 31: aP1.fz=rDGR.GetF(); break;
=====================================================================
Found a 19 line (107 tokens) duplication in the following files: 
Starting at line 1997 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/epict.cxx
Starting at line 1499 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/filter.vcl/wmf/wmfwr.cxx

							aY /= BigInt( aScaleY.GetNumerator() );
							aOrigin.Y() = (long)aY + aMM.GetOrigin().Y();
							aSrcMapMode.SetOrigin( aOrigin );

							aScaleX *= aSrcMapMode.GetScaleX();
							aScaleY *= aSrcMapMode.GetScaleY();
							aSrcMapMode.SetScaleX( aScaleX );
							aSrcMapMode.SetScaleY( aScaleY );
						}
						else
							aSrcMapMode=pA->GetMapMode();
					}
				}
				break;

				case META_FONT_ACTION:
				{
					const MetaFontAction* pA = (const MetaFontAction*) pMA;
					aSrcFont = pA->GetFont();
=====================================================================
Found a 27 line (107 tokens) duplication in the following files: 
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesconfiguration.cxx
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/imagesconfiguration.cxx

	Reference< XDocumentHandler > xDocHandler( new OReadImagesDocumentHandler( rItems ));
	Reference< XDocumentHandler > xFilter( new SaxNamespaceFilter( xDocHandler ));

	// connect parser and filter
	xParser->setDocumentHandler( xFilter );

	try
	{
		xParser->parseStream( aInputSource );
		return sal_True;
	}
	catch ( RuntimeException& )
	{
		return sal_False;
	}
	catch( SAXException& )
	{
		return sal_False;
	}
	catch( ::com::sun::star::io::IOException& )
	{
		return sal_False;
	}
}

sal_Bool ImagesConfiguration::StoreImages(
	const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
=====================================================================
Found a 4 line (107 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0,// 0740 - 074f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0750 - 075f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0760 - 076f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0770 - 077f
=====================================================================
Found a 22 line (107 tokens) duplication in the following files: 
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/OleClient/clientTest.cxx
Starting at line 644 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/OleClient/clientTest.cxx

bool doSimpleTest(const Reference<XInvocation> & inv)
{
	Sequence< sal_Int16> seqIndices;
	Sequence<Any> seqOut;

	Any inBool, outBool;
	Any inByte, outByte;
	Any inShort, outShort;
	Any inLong,  outLong;
	Any inString,  outString;
	Any inFloat, outFloat;
	Any inDouble, outDouble;
	Any inVariant, outVariant;
	Any inObject, outObject;
	Any inUnknown, outUnknown;
    Any inCY, outCY;
    Any inDate, outDate;
    Any inDecimal, outDecimal;
    Any inSCode, outSCode;
    Any inrefLong, outrefLong;
    Any inrefVariant, outrefVariant;
    Any inrefDecimal, outrefDecimal;
=====================================================================
Found a 28 line (107 tokens) duplication in the following files: 
Starting at line 1030 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 948 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

					aString += GetValueString( aSz.Height() );
					aString += B2UCONST( "\" " );

					aString += NMSP_RTL::OUString::createFromAscii( aXMLAttrXLinkHRef );
					aString += B2UCONST( "=\"data:image/png;base64," );

					if( aImageData.GetFirstPartString( nPartLen, aImageString ) )
					{
						xExtDocHandler->unknown( aString += aImageString );

						while( aImageData.GetNextPartString( nPartLen, aImageString ) )
						{
							xExtDocHandler->unknown( aLineFeed );
							xExtDocHandler->unknown( aImageString );
						}
					}

					xExtDocHandler->unknown( B2UCONST( "\"/>" ) );
				}
			}
		}
	}
}

// -----------------------------------------------------------------------------

void SVGActionWriter::ImplWriteActions( const GDIMetaFile& rMtf, 
										const NMSP_RTL::OUString* pStyle,
=====================================================================
Found a 23 line (107 tokens) duplication in the following files: 
Starting at line 1381 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/docholder.cxx
Starting at line 1412 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/docholder.cxx

void SAL_CALL DocumentHolder::notifyClosing( const lang::EventObject& aSource )
		throw (uno::RuntimeException)
{
    if ( m_xComponent.is() && m_xComponent == aSource.Source )
	{
        m_xComponent = 0;
		if ( m_bWaitForClose )
		{
			m_bWaitForClose = sal_False;
			FreeOffice();
		}
	}

	if( m_xFrame.is() && m_xFrame == aSource.Source )
	{
		m_xHatchWindow = uno::Reference< awt::XWindow >();
		m_xOwnWindow = uno::Reference< awt::XWindow >();
		m_xFrame = uno::Reference< frame::XFrame >();
	}
}

//---------------------------------------------------------------------------
void SAL_CALL DocumentHolder::queryTermination( const lang::EventObject& )
=====================================================================
Found a 12 line (107 tokens) duplication in the following files: 
Starting at line 1771 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 2028 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	// TODO: The object must be at least in Running state;
	if ( !m_bIsLink || m_nObjectState == -1 || !m_pOleComponent )
=====================================================================
Found a 28 line (107 tokens) duplication in the following files: 
Starting at line 1145 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1276 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx

	OSL_ENSURE( m_xParentStorage.is() && m_xObjectStorage.is(), "The object has no valid persistence!\n" );

	sal_Int32 nTargetStorageFormat = SOFFICE_FILEFORMAT_CURRENT;
	sal_Int32 nOriginalStorageFormat = SOFFICE_FILEFORMAT_CURRENT;
	try {
		nTargetStorageFormat = ::comphelper::OStorageHelper::GetXStorageFormat( xStorage );
	}
	catch ( beans::IllegalTypeException& )
	{
		// the container just has an unknown type, use current file format
	}
	catch ( uno::Exception& )
	{
		OSL_ENSURE( sal_False, "Can not retrieve target storage media type!\n" );
	}

	try
	{
		nOriginalStorageFormat = ::comphelper::OStorageHelper::GetXStorageFormat( m_xParentStorage );
	}
	catch ( beans::IllegalTypeException& )
	{
		// the container just has an unknown type, use current file format
	}
	catch ( uno::Exception& )
	{
		OSL_ENSURE( sal_False, "Can not retrieve own storage media type!\n" );
	}
=====================================================================
Found a 8 line (107 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 6800 - 6fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7000 - 77ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7800 - 7fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 8000 - 87ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 8800 - 8fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 9000 - 97ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 9800 - 9fff
    0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, // a000 - a7ff
=====================================================================
Found a 13 line (107 tokens) duplication in the following files: 
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx
Starting at line 637 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/wizard.cxx

    try 
    {
        Reference < XMultiServiceFactory > xFactory = ::comphelper::getProcessServiceFactory();
        // get configuration provider
        Reference< XMultiServiceFactory > theConfigProvider = Reference< XMultiServiceFactory >(
        xFactory->createInstance(sConfigSrvc), UNO_QUERY_THROW);
        Sequence< Any > theArgs(1);
        NamedValue v(OUString::createFromAscii("NodePath"), 
            makeAny(OUString::createFromAscii("org.openoffice.Setup/Office")));
        theArgs[0] <<= v;
        Reference< XPropertySet > pset = Reference< XPropertySet >(
            theConfigProvider->createInstanceWithArguments(sAccessSrvc, theArgs), UNO_QUERY_THROW);
        Any result = pset->getPropertyValue(OUString::createFromAscii("LicenseAcceptDate"));
=====================================================================
Found a 10 line (107 tokens) duplication in the following files: 
Starting at line 1057 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/misc/UITools.cxx
Starting at line 384 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/helper/vclunohelper.cxx

    aFD.Weight= VCLUnoHelper::ConvertFontWeight( rFont.GetWeight() );
    aFD.Slant = (::com::sun::star::awt::FontSlant)rFont.GetItalic();
    aFD.Underline = sal::static_int_cast< sal_Int16 >(rFont.GetUnderline());
    aFD.Strikeout = sal::static_int_cast< sal_Int16 >(rFont.GetStrikeout());
    aFD.Orientation = rFont.GetOrientation();
    aFD.Kerning = rFont.IsKerning();
    aFD.WordLineMode = rFont.IsWordLineMode();
    aFD.Type = 0;	// ??? => Nur an Metric...
	return aFD;
}
=====================================================================
Found a 14 line (107 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/CRowSetColumn.cxx
Starting at line 193 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/resultcolumn.cxx

		DECL_PROP1(DISPLAYSIZE,				sal_Int32,			READONLY);
		DECL_PROP1_BOOL(ISAUTOINCREMENT,						READONLY);
		DECL_PROP1_BOOL(ISCASESENSITIVE,						READONLY);
		DECL_PROP1_BOOL(ISCURRENCY,								READONLY);
		DECL_PROP1_BOOL(ISDEFINITELYWRITABLE,					READONLY);
		DECL_PROP1(ISNULLABLE,				sal_Int32,			READONLY);
		DECL_PROP1_BOOL(ISREADONLY,								READONLY);
		DECL_PROP1_BOOL(ISROWVERSION,                           READONLY);
		DECL_PROP1_BOOL(ISSEARCHABLE,							READONLY);
		DECL_PROP1_BOOL(ISSIGNED,								READONLY);
		DECL_PROP1_BOOL(ISWRITABLE,								READONLY);
		DECL_PROP1(LABEL,					::rtl::OUString,	READONLY);
		DECL_PROP1(NAME,					::rtl::OUString,	READONLY);
		DECL_PROP1(PRECISION,				sal_Int32,			READONLY);
=====================================================================
Found a 26 line (107 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/crashrep/source/unx/main.cxx
Starting at line 493 of /local/ooo-build/ooo-build/src/oog680-m3/crashrep/source/win32/soreport.cpp

	return FreeLibrary( GetModuleHandle( RICHEDIT ) );
}

//***************************************************************************

static string trim_string( const string& rString )
{
	string temp = rString;
	
	while ( temp.length() && temp[0] == ' ' || temp[0] == '\t' )
		temp.erase( 0, 1 );
		
	string::size_type	len = temp.length();
	
	while ( len && temp[len-1] == ' ' || temp[len-1] == '\t' )
	{
		temp.erase( len - 1, 1 );
		len = temp.length();
	}
	
	return temp;
}

//***************************************************************************

static int LoadAndFormatString( HINSTANCE hInstance, UINT uID, LPTSTR lpBuffer, int nBufferMax )
=====================================================================
Found a 24 line (107 tokens) duplication in the following files: 
Starting at line 648 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx
Starting at line 1048 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx

                                 const uno::Sequence< double >&	rOffsets,
                                 const CanvasSharedPtr&			rCanvas,
                                 const OutDevState&				rState,
                                 const ::basegfx::B2DHomMatrix&	rTextTransform );

                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
                                     const Subset&					rSubset ) const;

                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix&	rTransformation,
                                                       const Subset&					rSubset ) const;

                virtual sal_Int32 getActionCount() const;

            private:
                // TODO(P2): This is potentially a real mass object
                // (every character might be a separate TextAction),
                // thus, make it as lightweight as possible. For
                // example, share common RenderState among several
                // TextActions, maybe using maOffsets for the
                // translation.

                uno::Reference< rendering::XTextLayout >	mxTextLayout;
=====================================================================
Found a 15 line (107 tokens) duplication in the following files: 
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/jservices.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/kab/KServices.cxx
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/Yservices.cxx

using namespace connectivity::mysql;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pT
=====================================================================
Found a 19 line (107 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Object.cxx
Starting at line 128 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Throwable.cxx

	SDBThreadAttach t;
	if( t.pEnv ){
		// temporaere Variable initialisieren
		static const char * cSignature = "()Ljava/lang/String;";
		static const char * cMethodName = "toString";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			jstring out = (jstring)t.pEnv->CallObjectMethod( object, mID);
			ThrowSQLException(t.pEnv,NULL);
			
			aStr = JavaString2String(t.pEnv,out);
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return aStr;
}
=====================================================================
Found a 15 line (107 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/Eservices.cxx
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/jservices.cxx

using namespace connectivity;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pModCount
=====================================================================
Found a 16 line (107 tokens) duplication in the following files: 
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDriver.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YDriver.cxx

        sal_Bool bIsODBC = isOdbcUrl( url );

		Sequence< ::rtl::OUString > aBoolean(2);
		aBoolean[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("0"));
		aBoolean[1] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("1"));

		
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharSet"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharSet of the database."))
				,sal_False
				,::rtl::OUString()
				,Sequence< ::rtl::OUString >())
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SuppressVersionColumns"))
=====================================================================
Found a 30 line (107 tokens) duplication in the following files: 
Starting at line 1076 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx
Starting at line 775 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx

	return ::rtl::OUString();
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar(  ) throw(SQLException, RuntimeException)
{
	return sal_True;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins(  ) throw(SQLException, RuntimeException)
{
	return sal_False;
}
// -------------------------------------------------------------------------
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy(  ) throw(SQLException, RuntimeException)
{
=====================================================================
Found a 24 line (107 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NTable.cxx
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/kab/KTable.cxx

void KabTable::refreshColumns()
{
	TStringVector aVector;

	if (!isNew())
	{
	    Reference< XResultSet > xResult = m_pConnection->getMetaData()->getColumns(
				Any(),
				m_SchemaName,
				m_Name,
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("%")));

	    if (xResult.is())
	    {
		Reference< XRow > xRow(xResult, UNO_QUERY);
		while (xResult->next())
				aVector.push_back(xRow->getString(4));
	    }
	}

	if (m_pColumns)
	    m_pColumns->reFill(aVector);
	else
	    m_pColumns  = new KabColumns(this,m_aMutex,aVector);
=====================================================================
Found a 15 line (107 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LServices.cxx
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/jservices.cxx

using namespace connectivity;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pModCount
=====================================================================
Found a 17 line (107 tokens) duplication in the following files: 
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LFolderList.cxx
Starting at line 597 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx

			switch(nType)
			{
				case DataType::TIMESTAMP:
				case DataType::DATE:
				case DataType::TIME:
				{
					double nRes = 0.0;
					try
					{
						nRes = m_xNumberFormatter->convertStringToNumber(::com::sun::star::util::NumberFormat::ALL,aStr);
						Reference<XPropertySet> xProp(m_xNumberFormatter->getNumberFormatsSupplier()->getNumberFormatSettings(),UNO_QUERY);
						com::sun::star::util::Date aDate;
						xProp->getPropertyValue(::rtl::OUString::createFromAscii("NullDate")) >>= aDate;

						switch(nType)
						{
							case DataType::DATE:
=====================================================================
Found a 15 line (107 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/Dservices.cxx
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/jservices.cxx

using namespace connectivity;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pModCount
=====================================================================
Found a 11 line (107 tokens) duplication in the following files: 
Starting at line 583 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DTable.cxx
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx

Sequence< Type > SAL_CALL OEvoabTable::getTypes(  ) throw(RuntimeException)
{
	Sequence< Type > aTypes = OTable_TYPEDEF::getTypes();
	::std::vector<Type> aOwnTypes;
	aOwnTypes.reserve(aTypes.getLength());
	const Type* pBegin = aTypes.getConstArray();
	const Type* pEnd = pBegin + aTypes.getLength();
	for(;pBegin != pEnd;++pBegin)
	{
		if(!(*pBegin == ::getCppuType((const Reference<XKeysSupplier>*)0)	||
			*pBegin == ::getCppuType((const Reference<XRename>*)0)			||
=====================================================================
Found a 16 line (107 tokens) duplication in the following files: 
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DDriver.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YDriver.cxx

        sal_Bool bIsODBC = isOdbcUrl( url );

		Sequence< ::rtl::OUString > aBoolean(2);
		aBoolean[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("0"));
		aBoolean[1] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("1"));

		
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharSet"))
				,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharSet of the database."))
				,sal_False
				,::rtl::OUString()
				,Sequence< ::rtl::OUString >())
				);
		aDriverInfo.push_back(DriverPropertyInfo(
				::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SuppressVersionColumns"))
=====================================================================
Found a 15 line (107 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/Cservices.cxx
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/jservices.cxx

using namespace connectivity;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pModCount
=====================================================================
Found a 13 line (107 tokens) duplication in the following files: 
Starting at line 701 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CTable.cxx
Starting at line 583 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/dbase/DTable.cxx

Sequence< Type > SAL_CALL ODbaseTable::getTypes(  ) throw(RuntimeException)
{
	Sequence< Type > aTypes = OTable_TYPEDEF::getTypes();
	::std::vector<Type> aOwnTypes;
	aOwnTypes.reserve(aTypes.getLength());

	const Type* pBegin = aTypes.getConstArray();
	const Type* pEnd = pBegin + aTypes.getLength();
	for(;pBegin != pEnd;++pBegin)
	{
		if(!(*pBegin == ::getCppuType((const Reference<XKeysSupplier>*)0)	||
			//	*pBegin == ::getCppuType((const Reference<XAlterTable>*)0)	||
			*pBegin == ::getCppuType((const Reference<XDataDescriptorFactory>*)0)))
=====================================================================
Found a 15 line (107 tokens) duplication in the following files: 
Starting at line 49 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/jservices.cxx

using namespace connectivity;
using ::rtl::OUString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::registry::XRegistryKey;
using ::com::sun::star::lang::XSingleServiceFactory;
using ::com::sun::star::lang::XMultiServiceFactory;

typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
		(
			const Reference< XMultiServiceFactory > & rServiceManager,
			const OUString & rComponentName,
			::cppu::ComponentInstantiation pCreateFunction,
			const Sequence< OUString > & rServiceNames,
			rtl_ModuleCount* _pModCount
=====================================================================
Found a 10 line (107 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BTables.cxx
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BTables.cxx

								+ ::rtl::OUString::createFromAscii(" (");

					for ( sal_Int32 column=0; column<xColumns->getCount(); ++column )
					{
						if(::cppu::extractInterface(xColProp,xColumns->getByIndex(column)) && xColProp.is())
							aSql += aQuote + getString(xColProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))) + aQuote
										+ ::rtl::OUString::createFromAscii(",");
					}

					aSql = aSql.replaceAt(aSql.getLength()-1,1,::rtl::OUString::createFromAscii(")"));
=====================================================================
Found a 14 line (107 tokens) duplication in the following files: 
Starting at line 95 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BColumns.cxx
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MColumns.cxx

    Reference< XResultSet > xResult = m_pTable->getConnection()->getMetaData()->getColumns(Any(),
	m_pTable->getSchema(),m_pTable->getTableName(),_rName);

    sdbcx::ObjectType xRet = NULL;
	if(xResult.is())
	{
        Reference< XRow > xRow(xResult,UNO_QUERY);
		while(xResult->next())
		{
			if(xRow->getString(4) == _rName)
			{
				sal_Int32 nType				= xRow->getInt(5);
				::rtl::OUString sTypeName	= xRow->getString(6);
				sal_Int32 nPrec				= xRow->getInt(7);
=====================================================================
Found a 20 line (107 tokens) duplication in the following files: 
Starting at line 264 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/api2/updateimpl.cxx

			aTree.integrate(aChange, aNode, true);

			lock.clearForBroadcast();
			aSender.notifyListeners(aChange);
		}
	}
	catch (configuration::InvalidName& ex)
	{
		ExceptionMapper e(ex);
		OUString sMessage( RTL_CONSTASCII_USTRINGPARAM("Configuration - Cannot replace Set Element: ") );
		Reference<uno::XInterface> xContext( rNode.getUnoInstance() );
		throw NoSuchElementException( e.message(), xContext );
	}
	catch (configuration::TypeMismatch& ex)
	{
		ExceptionMapper e(ex);
		e.setContext( rNode.getUnoInstance() );	
		e.illegalArgument(2);
	}
	catch (configuration::ConstraintViolation& ex)
=====================================================================
Found a 25 line (107 tokens) duplication in the following files: 
Starting at line 56 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propertysetinfo.cxx
Starting at line 60 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/property/propertysetinfo.cxx

	void add( PropertyMapEntry* pMap ) throw();
	void remove( const OUString& aName ) throw();

	Sequence< Property > getProperties() throw();

	const PropertyMap* getPropertyMap() const throw();

	Property getPropertyByName( const OUString& aName ) throw( UnknownPropertyException );
	sal_Bool hasPropertyByName( const OUString& aName ) throw();

private:
	PropertyMap maPropertyMap;
	Sequence< Property > maProperties;
};
}

PropertyMapImpl::PropertyMapImpl() throw()
{
}

PropertyMapImpl::~PropertyMapImpl() throw()
{
}

void PropertyMapImpl::add( PropertyMapEntry* pMap ) throw()
=====================================================================
Found a 27 line (107 tokens) duplication in the following files: 
Starting at line 2263 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 2456 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx

	}		

	o	<< "  return ret;\n"
		<< "}\n\n";

	o << "inline sal_Bool bonobobridge::cpp_convert_b2u(";
	dumpUnoType(o, m_typeName, sal_False, sal_True);
	o << " u	, ";
	dumpCorbaType(o, m_typeName, sal_True, sal_True);
	o << " b,	const ::vos::ORef< ::bonobobridge::Bridge >& bridge) {\n"
	  << "  return convert_b2u_" << m_typeName.replace('/', '_') 
	  << "(&u, &b, ::getCppuType(&u), bridge);\n"
	  << "};\n\n";
	
	o << "inline sal_Bool bonobobridge::cpp_convert_u2b(";
	dumpCorbaType(o, m_typeName, sal_False, sal_True);
	o << " b, ";
	dumpUnoType(o, m_typeName, sal_True, sal_True);
	o << " u,	const ::vos::ORef< ::bonobobridge::Bridge >& bridge) {\n"	
	  << "  return convert_u2b_" << m_typeName.replace('/', '_') 
	  << "(&b, &u, ::getCppuType(&u), bridge);\n"
	  << "};\n\n";
}



sal_Bool ExceptionType::dumpSuperMember(FileStream& o, const OString& superType, sal_Bool bWithType)
=====================================================================
Found a 10 line (107 tokens) duplication in the following files: 
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/VSeriesPlotter.cxx
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/VSeriesPlotter.cxx

void VSeriesPlotter::releaseShapes()
{
    ::std::vector< ::std::vector< VDataSeriesGroup > >::iterator             aZSlotIter = m_aZSlots.begin();
    const ::std::vector< ::std::vector< VDataSeriesGroup > >::const_iterator aZSlotEnd = m_aZSlots.end();
    for( ; aZSlotIter != aZSlotEnd; aZSlotIter++ )
    {
        ::std::vector< VDataSeriesGroup >::iterator             aXSlotIter = aZSlotIter->begin();
        const ::std::vector< VDataSeriesGroup >::const_iterator aXSlotEnd = aZSlotIter->end();
        for( ; aXSlotIter != aXSlotEnd; aXSlotIter++ )
        {
=====================================================================
Found a 30 line (107 tokens) duplication in the following files: 
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nFunctionIndex)
=====================================================================
Found a 24 line (107 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx
Starting at line 194 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/except.cxx

        rtti = iRttiFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 30 line (107 tokens) duplication in the following files: 
Starting at line 286 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nVtableCall)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nVtableCall)
=====================================================================
Found a 24 line (107 tokens) duplication in the following files: 
Starting at line 219 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx

        rtti = iFind->second;
    }

    return rtti;
}

//--------------------------------------------------------------------------------------------------
static void deleteException( void * pExc )
{
    __cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
    typelib_TypeDescription * pTD = 0;
    OUString unoName( toUNOname( header->exceptionType->name() ) );
    ::typelib_typedescription_getByName( &pTD, unoName.pData );
    OSL_ENSURE( pTD, "### unknown exception type! leaving out destruction => leaking!!!" );
    if (pTD)
    {
		::uno_destructData( pExc, pTD, cpp_release );
		::typelib_typedescription_release( pTD );
	}
}

//==================================================================================================
void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
{
=====================================================================
Found a 30 line (107 tokens) duplication in the following files: 
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx

		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nVtableCall)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
				pCallStack, pRegisterReturn );
		}
		else
		{
			// is SET method
			typelib_MethodParameter aParam;
			aParam.pTypeRef =
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
			aParam.bIn		= sal_True;
			aParam.bOut		= sal_False;
			
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				0, // indicates void return
				1, &aParam,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	case typelib_TypeClass_INTERFACE_METHOD:
	{
		// is METHOD
		switch (nVtableCall)
=====================================================================
Found a 20 line (107 tokens) duplication in the following files: 
Starting at line 1726 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx
Starting at line 1858 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/workbench/bezierclip.cxx

            Bezier c1_part1;
            Bezier c1_part2;
            Bezier c1_part3;
            
            // subdivide at t1_c1
            Impl_deCasteljauAt( c1_part1, c1_part2, c1, t1 );
            // subdivide at t2_c1
            Impl_deCasteljauAt( c1_part1, c1_part3, c1_part2, (t2-t1)/(1.0-t1) );
            
            // output remaining segment (c1_part1)
            
            cout << " bez(" 
                 << c1.p0.x << "," 
                 << c1.p1.x << ","
                 << c1.p2.x << ","
                 << c1.p3.x << ",t),bez("
                 << c1.p0.y << "," 
                 << c1.p1.y << ","
                 << c1.p2.y << ","
                 << c1.p3.y << ",t) title \"c1\", "
=====================================================================
Found a 19 line (107 tokens) duplication in the following files: 
Starting at line 265 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolygontools.cxx
Starting at line 2712 of /local/ooo-build/ooo-build/src/oog680-m3/basegfx/source/polygon/b2dpolygontools.cxx

				B2DPolygon aRetval;
				B2DCubicBezier aBezier;
				aBezier.setStartPoint(rCandidate.getB2DPoint(0));

				// add start point
				aRetval.append(aBezier.getStartPoint());

				for(sal_uInt32 a(0L); a < nEdgeCount; a++)
				{
					// get values for edge
					const sal_uInt32 nNextIndex((a + 1) % nPointCount);
					aBezier.setEndPoint(rCandidate.getB2DPoint(nNextIndex));
					aBezier.setControlPointA(rCandidate.getNextControlPoint(a));
					aBezier.setControlPointB(rCandidate.getPrevControlPoint(nNextIndex));
					aBezier.testAndSolveTrivialBezier();

					// still bezier?
					if(aBezier.isBezier())
					{
=====================================================================
Found a 20 line (107 tokens) duplication in the following files: 
Starting at line 5717 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 5792 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx

						case M_GetItemType :
                            {
								SvTreeListBox *pTree = (SvTreeListBox*)pControl;
                                SvLBoxEntry *pThisEntry = NULL;

							    if ( ! (nParams & PARAM_USHORT_1) )
                                {
                                    pThisEntry = pTree->GetCurEntry();
                                    if ( !pThisEntry )
									    ReportError( aUId, GEN_RES_STR2c2( S_NO_SELECTED_ENTRY, MethodString( nMethodId ), "TreeListBox" ) );
                                }
                                else
                                {
							        if ( ValueOK(aUId, MethodString( nMethodId ),nNr1,((SvLBox*)pControl)->GetVisibleCount()) )
							        {
                                        pThisEntry = (SvLBoxEntry*)pTree->GetEntryAtVisPos( nNr1-1 );
                                    }
                                }
                            
							    if ( pThisEntry )
=====================================================================
Found a 31 line (106 tokens) duplication in the following files: 
Starting at line 45053 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 45249 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

     case OOXML_ELEMENT_wordprocessingml_pPr:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_PPr(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_rPr:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_RPr(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tblPr:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TblPrBase(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_trPr:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TrPr(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tcPr:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_TcPr(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_tblStylePr:
=====================================================================
Found a 22 line (106 tokens) duplication in the following files: 
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_gray.h
Starting at line 341 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_gray.h

                                          image_subpixel_shift);

            int maxx = base_type::source_image().width() - 1;
            int maxy = base_type::source_image().height() - 1;

            do
            {
                int x_hr;
                int y_hr;
                
                base_type::interpolator().coordinates(&x_hr, &y_hr);

                x_hr -= base_type::filter_dx_int();
                y_hr -= base_type::filter_dy_int();

                int x_lr = x_hr >> image_subpixel_shift;
                int y_lr = y_hr >> image_subpixel_shift;

                if(x_lr >= 0    && y_lr >= 0 &&
                   x_lr <  maxx && y_lr <  maxy) 
                {
                    fg = image_filter_size / 2;
=====================================================================
Found a 11 line (106 tokens) duplication in the following files: 
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/demo/multisigdemo.cxx
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/tools/demo/multisigdemo.cxx

	nSecurityId = aSignatureHelper.GetNewSecurityId();

	// Select certificate...
	uno::Reference< ::com::sun::star::security::XCertificate > xPersonalCert = getCertificateFromEnvironment( xSecurityEnvironment, true );
	aSignatureHelper.SetX509Certificate(
        nSecurityId, xPersonalCert->getIssuerName(),
        bigIntegerToNumericString( xPersonalCert->getSerialNumber()),
        baseEncode(xPersonalCert->getEncoded(), BASE64));
	aSignatureHelper.AddForSigning( nSecurityId, aXMLFileName, aXMLFileName, sal_False );
	aSignatureHelper.AddForSigning( nSecurityId, aBINFileName, aBINFileName, sal_True );
	aSignatureHelper.SetDateTime( nSecurityId, Date(), Time() );
=====================================================================
Found a 10 line (106 tokens) duplication in the following files: 
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx

using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::lang ;
using ::com::sun::star::lang::XMultiServiceFactory ;
using ::com::sun::star::lang::XSingleServiceFactory ;
using ::rtl::OUString ;

using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
using ::com::sun::star::xml::wrapper::XXMLDocumentWrapper ;
using ::com::sun::star::xml::crypto::XSecurityEnvironment ;
using ::com::sun::star::xml::crypto::XXMLSignature ;
=====================================================================
Found a 5 line (106 tokens) duplication in the following files: 
Starting at line 42 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/chart_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/drawarc_curs.h

   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0xbf, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
   0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
=====================================================================
Found a 6 line (106 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h
Starting at line 34 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_gsv_text.cpp

        0x0a,0x0d,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 5 line (106 tokens) duplication in the following files: 
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_mask.h

 0xf8,0xf7,0xf7,0x0f,0xf0,0xf7,0xf7,0x07,0xc0,0xe7,0xf3,0x01,0x80,0xcf,0xf9,
 0x00,0x00,0x06,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (106 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (106 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h

static char ass_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 5 line (106 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 15 line (106 tokens) duplication in the following files: 
Starting at line 786 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/toolbox2.cxx
Starting at line 824 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/toolbox2.cxx

	aItem.meType	 = TOOLBOXITEM_BREAK;
	aItem.mbEnabled	 = FALSE;
    mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
    mpData->ImplClearLayoutData();

	ImplInvalidate( FALSE );

    // Notify
    USHORT nNewPos = sal::static_int_cast<USHORT>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
    ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
}

// -----------------------------------------------------------------------

void ToolBox::RemoveItem( USHORT nPos )
=====================================================================
Found a 16 line (106 tokens) duplication in the following files: 
Starting at line 1218 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx
Starting at line 1254 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

				DrawBitmap( rPos, rSize, *static_cast< Bitmap* >( rImage.mpImplData->mpData ) );
			break;
	
			case IMAGETYPE_IMAGE:
			{
				ImplImageData* pData = static_cast< ImplImageData* >( rImage.mpImplData->mpData );
	
				if ( !pData->mpImageBitmap )
				{
					const Size aSize( pData->maBmpEx.GetSizePixel() );
					
					pData->mpImageBitmap = new ImplImageBmp;
					pData->mpImageBitmap->Create( pData->maBmpEx, aSize.Width(), aSize.Height(), 1 );
				}
	
				pData->mpImageBitmap->Draw( 0, this, rPos, nStyle, &rSize );
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 695 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx
Starting at line 924 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

	if( !( !aBmpEx ) )
	{
		TwoRect aPosAry;

		aPosAry.mnSrcX = rSrcPtPixel.X();
		aPosAry.mnSrcY = rSrcPtPixel.Y();
		aPosAry.mnSrcWidth = rSrcSizePixel.Width();
		aPosAry.mnSrcHeight = rSrcSizePixel.Height();
		aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() );
		aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() );
		aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() );
		aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() );

		const ULONG nMirrFlags = ImplAdjustTwoRect( aPosAry, aBmpEx.GetSizePixel() );
=====================================================================
Found a 13 line (106 tokens) duplication in the following files: 
Starting at line 1117 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/combobox.cxx
Starting at line 1279 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/lstbox.cxx

Size ListBox::CalcAdjustedSize( const Size& rPrefSize ) const
{
	Size aSz = rPrefSize;
	sal_Int32 nLeft, nTop, nRight, nBottom;
	((Window*)this)->GetBorder( nLeft, nTop, nRight, nBottom );
	aSz.Height() -= nTop+nBottom;
	if ( !IsDropDownBox() )
	{
		long nEntryHeight = CalcSize( 1, 1 ).Height();
		long nLines = aSz.Height() / nEntryHeight;
		if ( nLines < 1 )
			nLines = 1;
		aSz.Height() = nLines * nEntryHeight;
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 626 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/combobox.cxx
Starting at line 633 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/lstbox.cxx

void ListBox::SetPosSizePixel( long nX, long nY, long nWidth, long nHeight, USHORT nFlags )
{
	if( IsDropDownBox() && ( nFlags & WINDOW_POSSIZE_SIZE ) )
	{
		Size aPrefSz = mpFloatWin->GetPrefSize();
		if ( ( nFlags & WINDOW_POSSIZE_HEIGHT ) && ( nHeight >= 2*mnDDHeight ) )
			aPrefSz.Height() = nHeight-mnDDHeight;
		if ( nFlags & WINDOW_POSSIZE_WIDTH )
			aPrefSz.Width() = nWidth;
		mpFloatWin->SetPrefSize( aPrefSz );

		if ( IsAutoSizeEnabled() && ! (nFlags & WINDOW_POSSIZE_DROPDOWN) )
			nHeight = mnDDHeight;
	}
=====================================================================
Found a 9 line (106 tokens) duplication in the following files: 
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salgdi.h
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/inc/salgdi.h

    virtual BOOL		unionClipRegion( long nX, long nY, long nWidth, long nHeight );
    // draw --> LineColor and FillColor and RasterOp and ClipRegion
    virtual void		drawPixel( long nX, long nY );
    virtual void		drawPixel( long nX, long nY, SalColor nSalColor );
    virtual void		drawLine( long nX1, long nY1, long nX2, long nY2 );
    virtual void		drawRect( long nX, long nY, long nWidth, long nHeight );
    virtual void		drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
    virtual void		drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
    virtual void		drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry );
=====================================================================
Found a 8 line (106 tokens) duplication in the following files: 
Starting at line 98 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/dom/characterdata.cxx
Starting at line 191 of /local/ooo-build/ooo-build/src/oog680-m3/unoxml/source/dom/characterdata.cxx

            tmp2 += arg;
            tmp2 += tmp.copy(offset+count, tmp.getLength() - (offset+count));
            OUString oldValue((char*)m_aNodePtr->content, strlen((char*)m_aNodePtr->content), RTL_TEXTENCODING_UTF8);
            xmlNodeSetContent(m_aNodePtr, (const xmlChar*)(OUStringToOString(tmp2, RTL_TEXTENCODING_UTF8).getStr()));
            OUString newValue((char*)m_aNodePtr->content, strlen((char*)m_aNodePtr->content), RTL_TEXTENCODING_UTF8);
            _dispatchEvent(oldValue, newValue);
        }
    }
=====================================================================
Found a 25 line (106 tokens) duplication in the following files: 
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchydata.cxx
Starting at line 887 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchydata.cxx

sal_Bool HierarchyEntry::remove()
{
	try
	{
		osl::Guard< osl::Mutex > aGuard( m_aMutex );

		if ( !m_xConfigProvider.is() )
			m_xConfigProvider = uno::Reference< lang::XMultiServiceFactory >(
                m_xSMgr->createInstance( m_aServiceSpecifier ),
				uno::UNO_QUERY );

		if ( m_xConfigProvider.is() )
		{
			// Create parent's key. It must exist!

            rtl::OUString aParentPath;
			sal_Bool bRoot = sal_True;

			sal_Int32 nPos = m_aPath.lastIndexOf( '/' );
			if ( nPos != -1 )
			{
				// Skip "/Children" segment of the path, too.
				nPos = m_aPath.lastIndexOf( '/', nPos - 1 );

                OSL_ENSURE( nPos != -1,
=====================================================================
Found a 32 line (106 tokens) duplication in the following files: 
Starting at line 1652 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 1834 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

    if ( !storeData( xData, xEnv ) )
    {
        uno::Any aProps
            = uno::makeAny(beans::PropertyValue(
                                  rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                                    "Uri")),
                                  -1,
                                  uno::makeAny(m_xIdentifier->
                                                   getContentIdentifier()),
                                  beans::PropertyState_DIRECT_VALUE));
        ucbhelper::cancelCommandExecution(
            ucb::IOErrorCode_CANT_WRITE,
            uno::Sequence< uno::Any >(&aProps, 1),
            xEnv,
            rtl::OUString::createFromAscii( "Cannot store persistent data!" ),
            this );
        // Unreachable
    }

    m_eState = PERSISTENT;

    if ( bNewId )
    {
        //loadData( m_pProvider, m_aUri, m_aProps );

        aGuard.clear();
        inserted();
    }
}

//=========================================================================
void Content::destroy( sal_Bool bDeletePhysical,
=====================================================================
Found a 27 line (106 tokens) duplication in the following files: 
Starting at line 1028 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchycontent.cxx
Starting at line 2258 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx

					ContentRef xChild = (*it);

					// Create new content identifier for the child...
                    uno::Reference< ucb::XContentIdentifier > xOldChildId
                        = xChild->getIdentifier();
                    rtl::OUString aOldChildURL
                        = xOldChildId->getContentIdentifier();
                    rtl::OUString aNewChildURL
						= aOldChildURL.replaceAt(
										0,
										aOldURL.getLength(),
										xNewId->getContentIdentifier() );
                    uno::Reference< ucb::XContentIdentifier > xNewChildId
						= new ::ucbhelper::ContentIdentifier( 
                            m_xSMgr, aNewChildURL );

					if ( !xChild->exchangeIdentity( xNewChildId ) )
						return sal_False;

					++it;
				}
			}
			return sal_True;
		}
	}

    OSL_ENSURE( sal_False,
=====================================================================
Found a 24 line (106 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/gvfs/directory.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx

DataSupplier::DataSupplier(
                const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
                const rtl::Reference< Content >& rContent,
                sal_Int32 nOpenMode )
: m_pImpl( new DataSupplier_Impl( rxSMgr, rContent, nOpenMode ) )
{
}

//=========================================================================
// virtual
DataSupplier::~DataSupplier()
{
	delete m_pImpl;
}

//=========================================================================
// virtual
rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        rtl::OUString aId = m_pImpl->m_aResults[ nIndex ]->aURL;
=====================================================================
Found a 9 line (106 tokens) duplication in the following files: 
Starting at line 431 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 456 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

bool INetMIME::isEncodedWordTokenChar(sal_uInt32 nChar)
{
	static const sal_Char aMap[128]
		= { false, false, false, false, false, false, false, false,
			false, false, false, false, false, false, false, false,
			false, false, false, false, false, false, false, false,
			false, false, false, false, false, false, false, false,
			false,  true, false,  true,  true,  true,  true,  true, // !"#$%&'
			false, false,  true,  true, false,  true, false, false, //()*+,-./
=====================================================================
Found a 12 line (106 tokens) duplication in the following files: 
Starting at line 148 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/flddb.cxx
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/fldfunc.cxx

		for(short i = rRg.nStart; i < rRg.nEnd; ++i)
		{
			nTypeId = GetFldMgr().GetTypeId(i);
			nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
			aTypeLB.SetEntryData(nPos, (void*)nTypeId);
		}
	}
	else
	{
		nTypeId = GetCurField()->GetTypeId();
		nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
		aTypeLB.SetEntryData(nPos, (void*)nTypeId);
=====================================================================
Found a 17 line (106 tokens) duplication in the following files: 
Starting at line 792 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltbli.cxx
Starting at line 1346 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltbli.cxx

    vos::OGuard aGuard(Application::GetSolarMutex());

	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );

		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetImport().GetNamespaceMap().GetKeyByAttrName( rAttrName,
															&aLocalName );
		const OUString& rValue = xAttrList->getValueByIndex( i );
		if( XML_NAMESPACE_TABLE == nPrefix )
		{
			if( IsXMLToken( aLocalName, XML_STYLE_NAME ) )
				aStyleName = rValue;
			else if( IsXMLToken( aLocalName, XML_NAME ) )
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 1098 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx
Starting at line 2604 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

        throw uno::RuntimeException( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "SwXTextTable: already attached to range." ) ), static_cast < cppu::OWeakObject * > ( this ) );

	uno::Reference<XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}
	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;
	if(pDoc && nRows && nColumns)
=====================================================================
Found a 13 line (106 tokens) duplication in the following files: 
Starting at line 1091 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/undobj.cxx
Starting at line 1120 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/undobj.cxx

BOOL SwUndo::FillSaveDataForFmt( const SwPaM& rRange, SwRedlineSaveDatas& rSData )
{
	if( rSData.Count() )
		rSData.DeleteAndDestroy( 0, rSData.Count() );

	SwRedlineSaveData* pNewData;
	const SwPosition *pStt = rRange.Start(), *pEnd = rRange.End();
	const SwRedlineTbl& rTbl = rRange.GetDoc()->GetRedlineTbl();
	USHORT n = 0;
	rRange.GetDoc()->GetRedline( *pStt, &n );
	for( ; n < rTbl.Count(); ++n )
	{
		SwRedline* pRedl = rTbl[ n ];
=====================================================================
Found a 24 line (106 tokens) duplication in the following files: 
Starting at line 1365 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/fecopy.cxx
Starting at line 566 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx

        SdrObjListIter aIter( rSdrPage );
        while( aIter.IsMore() )
        {
            SdrOle2Obj* pOle2Obj = dynamic_cast< SdrOle2Obj* >( aIter.Next() );
            if( pOle2Obj )
            {
                // found an ole2 shape
                SdrObjList* pObjList = pOle2Obj->GetObjList();

                // get its graphic
                Graphic aGraphic;
                pOle2Obj->Connect();
                Graphic* pGraphic = pOle2Obj->GetGraphic();
                if( pGraphic )
                    aGraphic = *pGraphic;
                pOle2Obj->Disconnect();

                // create new graphic shape with the ole graphic and shape size
                SdrGrafObj* pGraphicObj = new SdrGrafObj( aGraphic, pOle2Obj->GetCurrentBoundRect() );
                // apply layer of ole2 shape at graphic shape
                pGraphicObj->SetLayer( pOle2Obj->GetLayer() );

                // replace ole2 shape with the new graphic object and delete the ol2 shape
                SdrObject* pReplaced = pObjList->ReplaceObject( pGraphicObj, pOle2Obj->GetOrdNum() );
=====================================================================
Found a 15 line (106 tokens) duplication in the following files: 
Starting at line 1452 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doctxm.cxx
Starting at line 1493 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/doctxm.cxx

	SwClientIter aIter( *pAuthFld );
	SwFmtFld* pFmtFld = (SwFmtFld*)aIter.First( TYPE( SwFmtFld ));
	for( ; pFmtFld; pFmtFld = (SwFmtFld*)aIter.Next() )
	{
		const SwTxtFld* pTxtFld = pFmtFld->GetTxtFld();
		//undo
		if(!pTxtFld)
			continue;
		const SwTxtNode& rTxtNode = pTxtFld->GetTxtNode();
		::SetProgressState( 0, pDoc->GetDocShell() );

//		const SwTxtNode* pChapterCompareNode = 0;

		if( rTxtNode.GetTxt().Len() && rTxtNode.GetFrm() &&
			rTxtNode.GetNodes().IsDocNodes() /*&&
=====================================================================
Found a 15 line (106 tokens) duplication in the following files: 
Starting at line 1923 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accpara.cxx
Starting at line 2003 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/access/accpara.cxx

::com::sun::star::accessibility::TextSegment SwAccessibleParagraph::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 nTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
	vos::OGuard aGuard(Application::GetSolarMutex());

	CHECK_FOR_DEFUNC_THIS( XAccessibleText, *this );

    ::com::sun::star::accessibility::TextSegment aResult;
    aResult.SegmentStart = -1;
    aResult.SegmentEnd = -1;
    const OUString rText = GetString();

    // implement the silly specification that first position after
    // text must return an empty string, rather than throwing an
    // IndexOutOfBoundsException
    if( nIndex == rText.getLength() )
=====================================================================
Found a 23 line (106 tokens) duplication in the following files: 
Starting at line 997 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx
Starting at line 1161 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx

void SdrHdlGradient::CreateB2dIAObject()
{
	// first throw away old one
	GetRidOfIAObject();
	
	if(pHdlList)
	{
		SdrMarkView* pView = pHdlList->GetView();

		if(pView && !pView->areMarkHandlesHidden())
		{
			SdrPageView* pPageView = pView->GetSdrPageView();

			if(pPageView)
			{
				for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
				{
					const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b);

					if(rPageWindow.GetPaintWindow().OutputToWindow())
					{
						if(rPageWindow.GetOverlayManager())
						{
=====================================================================
Found a 15 line (106 tokens) duplication in the following files: 
Starting at line 3116 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmshimp.cxx
Starting at line 3162 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmshimp.cxx

	size_t nBoundControl = 0;
	for (sal_Int32 i=0; i<aControls.getLength(); ++i)
	{
		Reference< XBoundControl> xCtrl(pControls[i], UNO_QUERY);
		if (!xCtrl.is())
		{
			// it may be a container of controls
			Reference< XIndexAccess> xContainer(pControls[i], UNO_QUERY);
			if (xContainer.is())
			{	// no recursion. we only know top level control containers (e.g. grid controls)
				for (sal_Int16 j=0; j<xContainer->getCount(); ++j)
				{
					xContainer->getByIndex(j) >>= xCtrl;
					if (!xCtrl.is())
						continue;
=====================================================================
Found a 16 line (106 tokens) duplication in the following files: 
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tplneend.cxx
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tplneend.cxx

	if( pLineEndList->Count() > 0 )
	{
		int nPos = aLbLineEnds.GetSelectEntryPos();

        XLineEndEntry* pEntry = pLineEndList->GetLineEnd( nPos );

		aEdtName.SetText( aLbLineEnds.GetSelectEntry() );

		rXLSet.Put( XLineStartItem( String(), pEntry->GetLineEnd() ) );
		rXLSet.Put( XLineEndItem( String(), pEntry->GetLineEnd() ) );
		XOut.SetLineAttr( aXLineAttr.GetItemSet() );

		// #i34740#
		aCtlPreview.SetLineAttributes(aXLineAttr.GetItemSet());

		aCtlPreview.Invalidate();
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 734 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx
Starting at line 978 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/insdlg.cxx

            SvGlobalName aClassId( SO3_IFRAME_CLASSID );
            m_xObj = aCnt.CreateEmbeddedObject( aClassId.GetByteSequence(), aName );
            if ( m_xObj->getCurrentState() == embed::EmbedStates::LOADED )
                m_xObj->changeState( embed::EmbedStates::RUNNING );
            xSet = uno::Reference < beans::XPropertySet >( m_xObj->getComponent(), uno::UNO_QUERY );
        }

        if ( m_xObj.is() )
        {
            try
            {
                BOOL bIPActive = m_xObj->getCurrentState() == embed::EmbedStates::INPLACE_ACTIVE;
                if ( bIPActive )
                    m_xObj->changeState( embed::EmbedStates::RUNNING );
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 842 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/hdft.cxx
Starting at line 1450 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/page.cxx

	if ( SFX_ITEM_SET ==
		 rSet.GetItemState( GetWhich( SID_ATTR_PAGE_FOOTERSET ),
							FALSE, (const SfxPoolItem**)&pSetItem ) )
	{
		const SfxItemSet& rFooterSet = pSetItem->GetItemSet();
		const SfxBoolItem& rFooterOn =
			(const SfxBoolItem&)rFooterSet.Get( GetWhich( SID_ATTR_PAGE_ON ) );

		if ( rFooterOn.GetValue() )
		{
			const SvxSizeItem& rSize = (const SvxSizeItem&)
				rFooterSet.Get( GetWhich( SID_ATTR_PAGE_SIZE ) );
			const SvxULSpaceItem& rUL = (const SvxULSpaceItem&)
				rFooterSet.Get( GetWhich( SID_ATTR_ULSPACE ) );
=====================================================================
Found a 18 line (106 tokens) duplication in the following files: 
Starting at line 568 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx
Starting at line 622 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx

                    aProp[i].Value >>= rStyle;
                }
                else if ( aProp[i].Name.equalsAscii( ITEM_DESCRIPTOR_HELPURL ))
                {
                    aProp[i].Value >>= rHelpURL;
                }
                else if (aProp[i].Name.equalsAscii(ITEM_DESCRIPTOR_CONTAINER))
                {
                    aProp[i].Value >>= rSubMenu;
                }
                else if ( aProp[i].Name.equalsAscii( ITEM_DESCRIPTOR_LABEL ))
                {
                    aProp[i].Value >>= rLabel;
                }
                else if ( aProp[i].Name.equalsAscii( ITEM_DESCRIPTOR_TYPE ))
                {
                    aProp[i].Value >>= rType;
                }
=====================================================================
Found a 16 line (106 tokens) duplication in the following files: 
Starting at line 5339 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 5000 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 1070, 12640 }, { 1400, 12900 }, { 1780, 13130 }, { 2330, 13040 }		// pccp
};
static const sal_uInt16 mso_sptCloudCalloutSegm[] =
{
	0x4000, 0x2016, 0x6001, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000,
	0x4000, 0x2001, 0xaa00, 0x8000
=====================================================================
Found a 16 line (106 tokens) duplication in the following files: 
Starting at line 769 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 717 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptDownArrowVert[] =	// adjustment1: x 0 - 21600
{														// adjustment2: y 0 - 10800
	{ 0 MSO_I, 0 },	{ 0 MSO_I, 1 MSO_I }, { 0, 1 MSO_I }, { 10800, 21600 },
	{ 21600, 1 MSO_I }, { 2 MSO_I, 1 MSO_I }, { 2 MSO_I, 0 }
};
static const sal_uInt16 mso_sptDownArrowSegm[] =
{
	0x4000, 0x0006, 0x6001,	0x8000
};
static const SvxMSDffTextRectangles mso_sptDownArrowTextRect[] =
{
	{ { 0 MSO_I, 0 }, { 2 MSO_I, 5 MSO_I } }
};
static const mso_CustomShape msoDownArrow =
=====================================================================
Found a 19 line (106 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 526 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx

void ToolboxController::bindListener()
{
    std::vector< Listener > aDispatchVector;
    Reference< XStatusListener > xStatusListener;

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        
        if ( !m_bInitialized )
            return;
        
        // Collect all registered command URL's and store them temporary
        Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
        if ( m_xServiceManager.is() && xDispatchProvider.is() )
        {
            xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY );
            URLToDispatchMap::iterator pIter = m_aListenerMap.begin();
            while ( pIter != m_aListenerMap.end() )
            {
=====================================================================
Found a 17 line (106 tokens) duplication in the following files: 
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/uriproc/UriReferenceFactory.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx

    css::lang::XServiceInfo, css::uri::XVndSunStarPkgUrlReferenceFactory >
{
public:
    explicit Factory(
        css::uno::Reference< css::uno::XComponentContext > const & context):
        m_context(context) {}

    virtual rtl::OUString SAL_CALL getImplementationName()
        throw (css::uno::RuntimeException);

    virtual sal_Bool SAL_CALL supportsService(rtl::OUString const & serviceName)
        throw (css::uno::RuntimeException);

    virtual css::uno::Sequence< rtl::OUString > SAL_CALL
    getSupportedServiceNames() throw (css::uno::RuntimeException);

    virtual css::uno::Reference< css::uri::XUriReference > SAL_CALL
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/basedlgs.cxx
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/fldtdlg.cxx

	aPoint.Y() = aRect.Bottom() - aSize.Height();

	aPoint = OutputToScreenPixel( aPoint );

	if ( aPos.X() > aPoint.X() )
		aPos.X() = aPoint.X() ;
	if ( aPos.Y() > aPoint.Y() )
		aPos.Y() = aPoint.Y();

	if ( aPos.X() < 0 ) aPos.X() = 0;
	if ( aPos.Y() < 0 ) aPos.Y() = 0;

	SetPosPixel( aPos );
}
=====================================================================
Found a 21 line (106 tokens) duplication in the following files: 
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fupoor.cxx
Starting at line 964 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fupoor.cxx

                    && EditEngine::IsSimpleCharInput(rKEvt))
				{
					DrawViewShell* pDrawViewShell = 
                        static_cast<DrawViewShell*>(mpViewShell);
					SdPage* pActualPage = pDrawViewShell->GetActualPage();
					SdrTextObj* pCandidate = 0L;

					if(pActualPage)
					{
						SdrObjListIter aIter(*pActualPage, IM_DEEPNOGROUPS);

						while(aIter.IsMore() && !pCandidate)
						{
							SdrObject* pObj = aIter.Next();

							if(pObj && pObj->ISA(SdrTextObj))
							{
								sal_uInt32 nInv(pObj->GetObjInventor());
								sal_uInt16 nKnd(pObj->GetObjIdentifier());

								if(SdrInventor == nInv && OBJ_TITLETEXT == nKnd)
=====================================================================
Found a 24 line (106 tokens) duplication in the following files: 
Starting at line 232 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/animations/motionpathtag.cxx
Starting at line 997 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx

void SdrHdlColor::CreateB2dIAObject()
{
	// first throw away old one
	GetRidOfIAObject();
	
	if(pHdlList)
	{
		SdrMarkView* pView = pHdlList->GetView();

		if(pView && !pView->areMarkHandlesHidden())
		{
			SdrPageView* pPageView = pView->GetSdrPageView();

			if(pPageView)
			{
				for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
				{
					// const SdrPageViewWinRec& rPageViewWinRec = rPageViewWinList[b];
					const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b);

					if(rPageWindow.GetPaintWindow().OutputToWindow())
					{
						if(rPageWindow.GetOverlayManager())
						{
=====================================================================
Found a 18 line (106 tokens) duplication in the following files: 
Starting at line 719 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/shapeuno.cxx
Starting at line 778 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/shapeuno.cxx

    else if ( aNameString.EqualsAscii( SC_UNONAME_VERTPOS ) )
    {
		SdrObject *pObj = GetSdrObject();
		if (pObj)
		{
		    ScDrawLayer* pModel = (ScDrawLayer*)pObj->GetModel();
		    SdrPage* pPage = pObj->GetPage();
		    if ( pModel && pPage )
		    {
			    ScDocument* pDoc = pModel->GetDocument();
			    if ( pDoc )
			    {
					SCTAB nTab = 0;
					if ( lcl_GetPageNum( pPage, *pModel, nTab ) )
					{
                        uno::Reference<drawing::XShape> xShape( mxShapeAgg, uno::UNO_QUERY );
                        if (xShape.is())
                        {
=====================================================================
Found a 12 line (106 tokens) duplication in the following files: 
Starting at line 1452 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx
Starting at line 1533 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chart2uno.cxx

    ::rtl::math::setNan( & fNAN );

    const ScDocument* pDoc = m_pDocument;
    sal_Int32 nCount = 0;
    ScRangePtr p;
    for ( p = m_xRanges->First(); p; p = m_xRanges->Next())
    {
        nCount += sal_Int32(p->aEnd.Col() - p->aStart.Col() + 1) *
            (p->aEnd.Row() - p->aStart.Row() + 1) * (p->aEnd.Tab() -
                                                     p->aStart.Tab() + 1);
    }
    uno::Sequence< double > aSeq( nCount);
=====================================================================
Found a 20 line (106 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/celllistsource.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellvaluebinding.cxx

namespace calc
{
//.........................................................................

#define PROP_HANDLE_BOUND_CELL  1

    using namespace ::com::sun::star::uno;
    using namespace ::com::sun::star::lang;
    using namespace ::com::sun::star::table;
    using namespace ::com::sun::star::text;
    using namespace ::com::sun::star::sheet;
    using namespace ::com::sun::star::container;
    using namespace ::com::sun::star::beans;
    using namespace ::com::sun::star::util;
    using namespace ::com::sun::star::form::binding;

    //=====================================================================
    //= OCellValueBinding
    //=====================================================================
    DBG_NAME( OCellValueBinding )
=====================================================================
Found a 12 line (106 tokens) duplication in the following files: 
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx

        uno::Reference<XAccessible> xAccParent = const_cast<ScAccessiblePreviewHeaderCell*>(this)->getAccessibleParent();
        if (xAccParent.is())
        {
            uno::Reference<XAccessibleContext> xAccParentContext = xAccParent->getAccessibleContext();
            uno::Reference<XAccessibleComponent> xAccParentComp (xAccParentContext, uno::UNO_QUERY);
            if (xAccParentComp.is())
            {
                Rectangle aParentRect (VCLRectangle(xAccParentComp->getBounds()));
	            aCellRect.setX(aCellRect.getX() - aParentRect.getX());
	            aCellRect.setY(aCellRect.getY() - aParentRect.getY());
            }
        }
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 904 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1438 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	ScChangeActionState nActionState(SC_CAS_VIRGIN);

	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
=====================================================================
Found a 16 line (106 tokens) duplication in the following files: 
Starting at line 338 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/read.cxx
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/read.cxx

                    case 0x1D:  rTabViewSett.ReadSelection( maStrm );   break;
					case 0x22:	Rec1904(); break;		// 1904			[ 2345]
                    case 0x26:
                    case 0x27:
                    case 0x28:
                    case 0x29:  rPageSett.ReadMargin( maStrm );         break;
                    case 0x2A:  rPageSett.ReadPrintHeaders( maStrm );   break;
                    case 0x2B:  rPageSett.ReadPrintGridLines( maStrm ); break;
					case 0x2F:							// FILEPASS		[ 2345]
                        eLastErr = XclImpDecryptHelper::ReadFilepass( maStrm );
                        if( eLastErr != ERRCODE_NONE )
                            eAkt = Z_Ende;
                        break;
                    case 0x41:  rTabViewSett.ReadPane( maStrm );        break;
					case 0x42:	Codepage(); break;		// CODEPAGE		[ 2345]
					case 0x55:	DefColWidth(); break;
=====================================================================
Found a 20 line (106 tokens) duplication in the following files: 
Starting at line 1754 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx
Starting at line 1805 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/detfunc.cxx

void ScDetectiveFunc::UpdateAllArrowColors()
{
	//	no undo actions necessary

	ScDrawLayer* pModel = pDoc->GetDrawLayer();
	if (!pModel)
		return;

	SCTAB nTabCount = pDoc->GetTableCount();
	for (SCTAB nObjTab=0; nObjTab<nTabCount; nObjTab++)
	{
		SdrPage* pPage = pModel->GetPage(static_cast<sal_uInt16>(nObjTab));
		DBG_ASSERT(pPage,"Page ?");
		if (pPage)
		{
			SdrObjListIter aIter( *pPage, IM_FLAT );
			SdrObject* pObject = aIter.Next();
			while (pObject)
			{
				if ( pObject->GetLayer() == SC_LAYER_INTERN )
=====================================================================
Found a 29 line (106 tokens) duplication in the following files: 
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/document.cxx
Starting at line 854 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/document.cxx

				pTab[i]->InsertCol( nStartCol, nStartRow, nEndRow, nSize );

		if ( pChangeTrack && pChangeTrack->IsInDeleteUndo() )
		{	// durch Restaurierung von Referenzen auf geloeschte Bereiche ist
			// ein neues Listening faellig, bisherige Listener wurden in
			// FormulaCell UpdateReference abgehaengt
			StartAllListeners();
		}
		else
        {   // Listeners have been removed in UpdateReference
			for (i=0; i<=MAXTAB; i++)
				if (pTab[i])
                    pTab[i]->StartNeededListeners();
            // #69592# at least all cells using range names pointing relative
            // to the moved range must recalculate
			for (i=0; i<=MAXTAB; i++)
				if (pTab[i])
					pTab[i]->SetRelNameDirty();
		}
		bRet = TRUE;
	}
	SetAutoCalc( bOldAutoCalc );
	if ( bRet )
		pChartListenerCollection->UpdateDirtyCharts();
	return bRet;
}


BOOL ScDocument::InsertCol( const ScRange& rRange, ScDocument* pRefUndoDoc )
=====================================================================
Found a 29 line (106 tokens) duplication in the following files: 
Starting at line 267 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx
Starting at line 368 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx

                        new OUStringBuffer(26)}
	};


    sal_Bool res = sal_True;
    sal_Int32 i;

    for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
    {
	sal_Int32 length = arrTestCase[i].input->getLength();
        sal_Bool lastRes = (length == arrTestCase[i].expVal);
        c_rtl_tres_state
        (
            hRtlTestResult,
            lastRes,
            arrTestCase[i].comments,
            createName( pMeth, "getLength", i )

        );
	res &= lastRes;
    }
    c_rtl_tres_state_end( hRtlTestResult, "getLength");
//    return ( res );
}
//------------------------------------------------------------------------
// testing the method getCapacity()
//------------------------------------------------------------------------

extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUStringBuffer_getCapacity(
=====================================================================
Found a 28 line (106 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx

				   			 		  		 sal_Char** pValueList, 
				   			 		  		 sal_uInt32 len)
{
	ORegKey* 	pKey;
	
	if (hKey)
	{
		pKey = (ORegKey*)hKey;

		if (pKey->isDeleted())
			return REG_INVALID_KEY;
	} else
		return REG_INVALID_KEY;

	if (pKey->isReadOnly())
		return REG_REGISTRY_READONLY;

	OUString valueName( RTL_CONSTASCII_USTRINGPARAM("value") );
	if (keyName->length)
	{
		RegKeyHandle hSubKey;
		ORegKey* pSubKey;
		RegError _ret1 = pKey->openKey(keyName, &hSubKey);
		if (_ret1)
			return _ret1;

		pSubKey = (ORegKey*)hSubKey;
        _ret1 = pSubKey->setStringListValue(valueName, pValueList, len);
=====================================================================
Found a 11 line (106 tokens) duplication in the following files: 
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/suggestmgr.cxx
Starting at line 645 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/suggestmgr.cxx

         u16_u8(candidate, MAXSWUTF8L, candidate_utf, wl + 1);
         for (int k=0; k < ns; k++)
            if (strcmp(candidate,wlst[k]) == 0) cwrd = 0;
         if ((cwrd) && check(candidate, strlen(candidate), cpdsuggest, &timer, &timelimit)) {
            if (ns < maxSug) {
                wlst[ns] = mystrdup(candidate);
                if (wlst[ns] == NULL) return -1;
                ns++;
            } else return ns; 
         }
         if (!timelimit) return ns;
=====================================================================
Found a 17 line (106 tokens) duplication in the following files: 
Starting at line 806 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 854 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

	     SfxEntry * nptr = ptr->getNext();
             for (; nptr != NULL; nptr = nptr->getNext()) {
	         if (! isSubset(ptr->getKey(),nptr->getKey())) break;
             }
             ptr->setNextNE(nptr);
             ptr->setNextEQ(NULL);
             if ((ptr->getNext()) && isSubset(ptr->getKey(),(ptr->getNext())->getKey())) 
                 ptr->setNextEQ(ptr->getNext());
         }


         // now clean up by adding smart search termination strings:
         // if you are already a superset of the previous suffix
         // but not a subset of the next, search can end here
         // so set NextNE properly

         ptr = (SfxEntry *) sStart[i];
=====================================================================
Found a 4 line (106 tokens) duplication in the following files: 
Starting at line 1079 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 5 line (106 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 4 line (106 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/Base64Codec.cxx

      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0};
=====================================================================
Found a 5 line (106 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

 0xf0,0xe3,0xe3,0x07,0xc0,0xe3,0xe3,0x01,0x80,0xc3,0xe1,0x00,0x00,0x06,0x30,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (106 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h

static char ase_mask_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x9c,0x0f,0x00,0x00,0x3e,0x1f,
=====================================================================
Found a 9 line (106 tokens) duplication in the following files: 
Starting at line 2276 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 2360 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

    padd(ascii("style:family"), sXML_CDATA, ascii("graphics"));
    rstartEl(ascii("style:style"), rList);
    pList->clear();

    padd(ascii("fo:margin-left"), sXML_CDATA, ascii("0cm"));
    padd(ascii("fo:margin-right"), sXML_CDATA, ascii("0cm"));
    padd(ascii("fo:margin-top"), sXML_CDATA, ascii("0cm"));
    padd(ascii("fo:margin-bottom"), sXML_CDATA, ascii("0cm"));
    padd(ascii("fo:padding"), sXML_CDATA, ascii("0cm"));
=====================================================================
Found a 20 line (106 tokens) duplication in the following files: 
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itga/itga.cxx
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itga/itga.cxx

							nBlue = (BYTE)( nRGB16 << 3 ) & 0xf8;
							for ( USHORT i = 0; i < ( ( nRunCount & 0x7f ) + 1 ); i++ )
							{
								mpAcc->SetPixel( nY, nX, BitmapColor( nRed, nGreen, nBlue ) );
								nX += nXAdd;
								nXCount++;
								if ( nXCount == mpFileHeader->nImageWidth )
								{
									nX = nXStart;
									nXCount = 0;
									nY += nYAdd;
									nYCount++;
								}
							}
						}
						else						// a raw packet
						{
							for ( USHORT i = 0; i < ( ( nRunCount & 0x7f ) + 1 ); i++ )
							{
								*mpTGA >> nRGB16;
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 1695 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/epict.cxx
Starting at line 1716 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/epict.cxx

				const MetaTextArrayAction*  pA = (const MetaTextArrayAction*) pMA;
				Point                       aPt( pA->GetPoint() );

				if (aSrcFont.GetAlign()!=ALIGN_BASELINE)
				{
					VirtualDevice aVirDev;

					if (aSrcFont.GetAlign()==ALIGN_TOP)
						aPt.Y()+=(long)aVirDev.GetFontMetric(aSrcFont).GetAscent();
					else
						aPt.Y()-=(long)aVirDev.GetFontMetric(aSrcFont).GetDescent();
				}
				SetAttrForText();
				String aStr( pA->GetText(),pA->GetIndex(),pA->GetLen() );
=====================================================================
Found a 18 line (106 tokens) duplication in the following files: 
Starting at line 646 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx
Starting at line 683 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

		OUString aLabel;

		// read attributes for menu item
		for ( sal_Int16 i=0; i< xAttrList->getLength(); i++ )
		{
			OUString aName = xAttrList->getNameByIndex( i );
			OUString aValue = xAttrList->getValueByIndex( i );
			if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_ID )))
				aCommandId = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_LABEL )))
				aLabel = aValue;
			else if ( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ATTRIBUTE_HELPID )))
				aHelpId = aValue;
		}

		if ( aCommandId.getLength() > 0 )
		{
            Sequence< PropertyValue > aMenuItem( 5 );
=====================================================================
Found a 29 line (106 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/statusbarcontrollerfactory.cxx
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uifactory/toolbarcontrollerfactory.cxx

using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::container;
using namespace ::com::sun::star::frame;

//_________________________________________________________________________________________________________________
//	Namespace
//_________________________________________________________________________________________________________________
// 

namespace framework
{

// global function needed by both implementations
static rtl::OUString getHashKeyFromStrings( const rtl::OUString& aCommandURL, const rtl::OUString& aModuleName )
{
    rtl::OUStringBuffer aKey( aCommandURL );
    aKey.appendAscii( "-" );
    aKey.append( aModuleName );
    return aKey.makeStringAndClear();
}


//*****************************************************************************************************************
//	Configuration access class for ToolbarControllerFactory implementation
//*****************************************************************************************************************

class ConfigurationAccess_ToolbarControllerFactory : // interfaces
=====================================================================
Found a 16 line (106 tokens) duplication in the following files: 
Starting at line 1335 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 1051 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/uiconfigurationmanager.cxx

void SAL_CALL UIConfigurationManager::insertSettings( const ::rtl::OUString& NewResourceURL, const Reference< XIndexAccess >& aNewData )
throw ( ElementExistException, IllegalArgumentException, IllegalAccessException, RuntimeException )
{
    sal_Int16 nElementType = RetrieveTypeFromResourceURL( NewResourceURL );
    
    if (( nElementType == ::com::sun::star::ui::UIElementType::UNKNOWN ) || 
        ( nElementType >= ::com::sun::star::ui::UIElementType::COUNT   ))
        throw IllegalArgumentException();
    else if ( m_bReadOnly )
        throw IllegalAccessException();
    else
    {
        ResetableGuard aGuard( m_aLock );
        
        if ( m_bDisposed )
            throw DisposedException();
=====================================================================
Found a 20 line (106 tokens) duplication in the following files: 
Starting at line 985 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/addonsoptions.cxx
Starting at line 1072 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/addonsoptions.cxx

	Sequence< OUString >	aNodePropNames( 6 );
	OUString                aURL;

	for ( sal_uInt32 i = 0; i < nCount; i++ )
    {
		OUString aMergeAddonInstructions( aAddonMergeNode + aAddonMergeNodesSeq[i] );

        Sequence< OUString > aAddonInstMergeNodesSeq = GetNodeNames( aMergeAddonInstructions );
        sal_uInt32           nCountAddons = aAddonInstMergeNodesSeq.getLength();

        for ( sal_uInt32 j = 0; j < nCountAddons; j++ )
	    {
		    OUStringBuffer aMergeAddonInstructionBase( aMergeAddonInstructions );
            aMergeAddonInstructionBase.append( m_aPathDelimiter );
            aMergeAddonInstructionBase.append( aAddonInstMergeNodesSeq[j] );
            aMergeAddonInstructionBase.append( m_aPathDelimiter );

            // Create sequence for data access
            OUStringBuffer aBuffer( aMergeAddonInstructionBase );
		    aBuffer.append( m_aPropMergeToolbarNames[ OFFSET_MERGETOOLBAR_TOOLBAR ] );
=====================================================================
Found a 13 line (106 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/actiontriggercontainer.cxx
Starting at line 146 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/rootactiontriggercontainer.cxx

throw ( Exception,  RuntimeException )
{
	if ( aServiceSpecifier.equalsAscii( SERVICENAME_ACTIONTRIGGER ))
		return (OWeakObject *)( new ActionTriggerPropertySet( m_xServiceManager ));
	else if ( aServiceSpecifier.equalsAscii( SERVICENAME_ACTIONTRIGGERCONTAINER ))
		return (OWeakObject *)( new ActionTriggerContainer( m_xServiceManager ));
	else if ( aServiceSpecifier.equalsAscii( SERVICENAME_ACTIONTRIGGERSEPARATOR ))
		return (OWeakObject *)( new ActionTriggerSeparatorPropertySet( m_xServiceManager ));
	else
		throw com::sun::star::uno::RuntimeException( OUString( RTL_CONSTASCII_USTRINGPARAM( "Unknown service specifier!" )), (OWeakObject *)this );
}

Reference< XInterface > SAL_CALL RootActionTriggerContainer::createInstanceWithArguments( const ::rtl::OUString& ServiceSpecifier, const Sequence< Any >& /*Arguments*/ ) 
=====================================================================
Found a 18 line (106 tokens) duplication in the following files: 
Starting at line 2001 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx
Starting at line 2245 of /local/ooo-build/ooo-build/src/oog680-m3/framework/collector/cmduicollector.cxx

                    aOutputFileURL += OUString::createFromAscii( TBResourceModule_Mapping[i].pXMLPrefix );
                    aOutputFileURL += OUString::createFromAscii( ".xml" );

                    osl::File aXMLFile( aOutputFileURL );
                    osl::File::RC nRet = aXMLFile.open( OpenFlag_Create|OpenFlag_Write );
                    if ( nRet == osl::File::E_EXIST )
                    {
                        nRet = aXMLFile.open( OpenFlag_Write );
                        if ( nRet == osl::File::E_None )
                            nRet = aXMLFile.setSize( 0 );
                    }

                    if ( nRet == osl::FileBase::E_None )
                    {
                        sal_uInt64 nWritten;

                        aXMLFile.write( XMLStart, strlen( XMLStart ), nWritten );
                        aXMLFile.write( ToolBarDocType, strlen( ToolBarDocType ), nWritten );
=====================================================================
Found a 23 line (106 tokens) duplication in the following files: 
Starting at line 679 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltfilter/XSLTFilter.cxx
Starting at line 3099 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/inspect/introspection.cxx

				stoc_inspect::ImplIntrospection::getSupportedServiceNames_Static();
			const OUString * pArray = rSNL.getConstArray();
			for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
				xNewKey->createKey( pArray[nPos] );
			
			return sal_True;
		}
		catch (InvalidRegistryException &)
		{
			OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
		}
	}
	return sal_False;
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * )
{
	void * pRet = 0;
	
	if (pServiceManager && rtl_str_compare( pImplName, IMPLEMENTATION_NAME ) == 0)
	{
		Reference< XSingleServiceFactory > xFactory( createOneInstanceFactory(
=====================================================================
Found a 32 line (106 tokens) duplication in the following files: 
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/scanner/scanwin.cxx
Starting at line 473 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/scanner/twain.cxx

			nCurState = 4;
		}
		break;

		case( 4 ):
		{
			PFUNC( &aAppIdent, NULL, DG_CONTROL, DAT_IDENTITY, MSG_CLOSEDS, &aSrcIdent );
			nCurState = 3;
		}
		break;

		case( 3 ):
		{
			PFUNC( &aAppIdent, NULL, DG_CONTROL, DAT_PARENT, MSG_CLOSEDSM, &hTwainWnd );
			nCurState = 2;
		}
		break;

		case( 2 ):
		{
			delete pMod;
			pMod = NULL;
			nCurState = 1;
		}
		break;

		default:
		{
			if( nEvent != TWAIN_EVENT_NONE )
				aNotifyLink.Call( (void*) nEvent );

			bFallback = FALSE;
=====================================================================
Found a 6 line (106 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/resource/oooresourceloader.cxx
Starting at line 1195 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unoobj.cxx

    virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    
    // XNameAccess
    virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw(::com::sun::star::uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 26 line (106 tokens) duplication in the following files: 
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx
Starting at line 156 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx

sal_Bool KillFile( const ::rtl::OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory )
{
	if ( !xFactory.is() )
		return sal_False;

	sal_Bool bRet = sal_False;

	try
	{
		uno::Reference < ucb::XSimpleFileAccess > xAccess( 
				xFactory->createInstance ( 
						::rtl::OUString::createFromAscii( "com.sun.star.ucb.SimpleFileAccess" ) ),
				uno::UNO_QUERY );

		if ( xAccess.is() )
		{
			xAccess->kill( aURL );
			bRet = sal_True;
		}
	}
	catch( uno::Exception& )
	{
	}

	return bRet;
}
=====================================================================
Found a 30 line (106 tokens) duplication in the following files: 
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/intercept.cxx

									   aTitle);
				
			}
			
			for(sal_Int32 k = 0; k < aSeq.getLength(); ++k)
			{
				uno::Reference<frame::XStatusListener>
					Control(aSeq[k],uno::UNO_QUERY);
				if(Control.is())
					Control->statusChanged(aStateEvent);
				
			}
		}
	}
}


void SAL_CALL
Interceptor::addStatusListener( 
	const uno::Reference< 
	frame::XStatusListener >& Control, 
	const util::URL& URL )
	throw (
		uno::RuntimeException
	)
{
	if(!Control.is())
		return;
	
	if( !m_bLink && URL.Complete == m_aInterceptedURL[0] ) 
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OOoEmbeddedObjectFactory::createInstanceUserInit" );

	// the initialization is completelly controlled by user
	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Sequence< beans::NamedValue > aObject = m_aConfigHelper.GetObjectPropsByClassID( aClassID );
=====================================================================
Found a 22 line (106 tokens) duplication in the following files: 
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testidlclass.cxx
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/testidlclass.cxx

								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0
											);

	// Test all ten templates
	x = ::cppu::createStandardClass(
								rSMgr ,
								sImplName,
								Reference < XIdlClass > () ,
								(XMultiServiceFactory * ) 0 ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
								(XServiceInfo * ) 0  ,
=====================================================================
Found a 19 line (106 tokens) duplication in the following files: 
Starting at line 386 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MConnection.cxx
Starting at line 153 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx

IMPLEMENT_SERVICE_INFO(OConnection, "com.sun.star.sdbc.drivers.skeleton.OConnection", "com.sun.star.sdbc.Connection")

// --------------------------------------------------------------------------------
Reference< XStatement > SAL_CALL OConnection::createStatement(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);
		
	// create a statement
	// the statement can only be executed once
	Reference< XStatement > xReturn = new OStatement(this);
	m_aStatements.push_back(WeakReferenceHelper(xReturn));
	return xReturn;
}
// --------------------------------------------------------------------------------
Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const ::rtl::OUString& _sSql ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);
=====================================================================
Found a 17 line (106 tokens) duplication in the following files: 
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FConnection.cxx
Starting at line 318 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OConnection.cxx

IMPLEMENT_SERVICE_INFO(OConnection, "com.sun.star.sdbc.drivers.odbc.OConnection", "com.sun.star.sdbc.Connection")

// --------------------------------------------------------------------------------
Reference< XStatement > SAL_CALL OConnection::createStatement(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);

	Reference< XStatement > xReturn = new OStatement(this);
	m_aStatements.push_back(WeakReferenceHelper(xReturn));
	return xReturn;
}
// --------------------------------------------------------------------------------
Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);
=====================================================================
Found a 23 line (106 tokens) duplication in the following files: 
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AConnection.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FConnection.cxx

	return OConnection_BASE::rBHelper.bDisposed;
}
// --------------------------------------------------------------------------------
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData(  ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);


	Reference< XDatabaseMetaData > xMetaData = m_xMetaData;
	if(!xMetaData.is())
	{
		xMetaData = new ODatabaseMetaData(this);
		m_xMetaData = xMetaData;
	}

	return xMetaData;
}
// --------------------------------------------------------------------------------
void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException, RuntimeException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OConnection_BASE::rBHelper.bDisposed);
=====================================================================
Found a 23 line (106 tokens) duplication in the following files: 
Starting at line 159 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/local_io/xmlexport.cxx
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/workben/local_io/xmlimport.cxx

			m_aCondition.wait();
		}
};

class Component: public ::cppu::WeakImplHelper1<lang::XComponent>
{
    virtual void SAL_CALL dispose(  )
		throw(uno::RuntimeException)
		{
			OSL_ENSURE(0, "dispose");

		}
    virtual void SAL_CALL addEventListener( const uno::Reference< lang::XEventListener >& xListener )
		throw(uno::RuntimeException)
		{
			OSL_ENSURE(0, "addEventListener");
		}
    virtual void SAL_CALL removeEventListener( const uno::Reference< lang::XEventListener >& aListener )
		throw(uno::RuntimeException)
		{
			OSL_ENSURE(0, "removeEventListener");
		}
};
=====================================================================
Found a 29 line (106 tokens) duplication in the following files: 
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/xml/attributelist.cxx
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/attributelist.cxx

struct TagAttribute_Impl
{
	TagAttribute_Impl(){}
	TagAttribute_Impl( const OUString &aName, const OUString &aType,
						 const OUString &aValue )
	{
		this->sName 	= aName;
		this->sType 	= aType;
		this->sValue 	= aValue;
	}

	OUString sName;
	OUString sType;
	OUString sValue;
};

struct AttributeList_Impl
{
	AttributeList_Impl()
	{
		// performance improvement during adding
		vecAttribute.reserve(20);
	}
	::std::vector<struct TagAttribute_Impl> vecAttribute;
};

sal_Int16 SAL_CALL AttributeList::getLength(void) throw( ::com::sun::star::uno::RuntimeException )
{
	return sal::static_int_cast< sal_Int16 >(m_pImpl->vecAttribute.size());
=====================================================================
Found a 6 line (106 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/container/NamedPropertyValuesContainer.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/resource/oooresourceloader.cxx

        virtual ::com::sun::star::uno::Any SAL_CALL getDirectElement( const ::rtl::OUString& key ) throw (::com::sun::star::uno::RuntimeException);

        // XNameAccess (base of XResourceBundle)
        virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
        virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  ) throw (::com::sun::star::uno::RuntimeException);
        virtual ::sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw (::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 23 line (106 tokens) duplication in the following files: 
Starting at line 2338 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 3051 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx

sal_Bool ExceptionType::dumpHFile(
    FileStream& o, codemaker::cppumaker::Includes & includes)
	throw( CannotDumpException )
{
	OString headerDefine(dumpHeaderDefine(o, "HDL"));
	o << "\n";

	addDefaultHIncludes(includes);
	includes.dump(o, 0);
	o << "\n";

    if (codemaker::cppumaker::dumpNamespaceOpen(o, m_typeName, false)) {
        o << "\n";
    }

	dumpDeclaration(o);
	
    if (codemaker::cppumaker::dumpNamespaceClose(o, m_typeName, false)) {
        o << "\n";
    }

	o << "\nnamespace com { namespace sun { namespace star { namespace uno {\n"
	  << "class Type;\n} } } }\n\n";
=====================================================================
Found a 24 line (106 tokens) duplication in the following files: 
Starting at line 249 of /local/ooo-build/ooo-build/src/oog680-m3/cli_ure/source/climaker/climaker_emit.cxx
Starting at line 585 of /local/ooo-build/ooo-build/src/oog680-m3/cli_ure/source/uno_bridge/cli_data.cxx

    builder->Append(unoName->Substring(0, index +1 ));

	//Find the first occurrence of ','
	//If the parameter is a polymorphic struct then we neede to ignore everything
	//between the brackets because it can also contain commas
    //get the type list within < and >
	int endIndex = unoName->Length - 1;
	index++;
	int cur = index;
	int countParams = 0;
	while (cur <= endIndex)
	{
		System::Char c = unoName->Chars[cur];
		if (c == ',' || c == '>')
		{
			//insert a comma if needed
			if (countParams != 0)
				builder->Append(S",");
			countParams++;
			System::String * sParam = unoName->Substring(index, cur - index);
			//skip the comma
			cur++;
			//the the index to the beginning of the next param
			index = cur;
=====================================================================
Found a 23 line (106 tokens) duplication in the following files: 
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/StockChartTypeTemplate.cxx

Reference< XChartType > SAL_CALL StockChartTypeTemplate::getChartTypeForNewSeries(
        const uno::Sequence< Reference< chart2::XChartType > >& aFormerlyUsedChartTypes )
    throw (uno::RuntimeException)
{
    Reference< chart2::XChartType > xResult;

    try
    {
        Reference< lang::XMultiServiceFactory > xFact(
            GetComponentContext()->getServiceManager(), uno::UNO_QUERY_THROW );
        xResult.set( xFact->createInstance(
                         CHART2_SERVICE_NAME_CHARTTYPE_LINE ), uno::UNO_QUERY_THROW );
        ChartTypeTemplate::copyPropertiesFromOldToNewCoordianteSystem( aFormerlyUsedChartTypes, xResult );
    }
    catch( uno::Exception & ex )
    {
        ASSERT_EXCEPTION( ex );
    }

    return xResult;
}

Reference< XDataInterpreter > SAL_CALL StockChartTypeTemplate::getDataInterpreter()
=====================================================================
Found a 14 line (106 tokens) duplication in the following files: 
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedAxisAndGridExistenceProperties.cxx
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedAxisAndGridExistenceProperties.cxx

void WrappedAxisLabelExistenceProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& xInnerPropertySet ) const
                throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
    sal_Bool bNewValue = false;
    if( ! (rOuterValue >>= bNewValue) )
        throw lang::IllegalArgumentException( C2U("Has axis or grid properties require boolean values"), 0, 0 );

    sal_Bool bOldValue = false;
    getPropertyValue( xInnerPropertySet ) >>= bOldValue;

    if( bOldValue == bNewValue )
        return;

    Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
=====================================================================
Found a 16 line (106 tokens) duplication in the following files: 
Starting at line 358 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
Starting at line 347 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx

uno::Sequence< beans::PropertyState > SAL_CALL UpDownBarWrapper::getPropertyStates( const uno::Sequence< ::rtl::OUString >& rNameSeq )
                    throw (beans::UnknownPropertyException, uno::RuntimeException)
{
    Sequence< beans::PropertyState > aRetSeq;
    if( rNameSeq.getLength() )
    {
        aRetSeq.realloc( rNameSeq.getLength() );
        for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++)
        {
            ::rtl::OUString aPropertyName( rNameSeq[nN] );
            aRetSeq[nN] = this->getPropertyState( aPropertyName );
        }
    }
    return aRetSeq;
}
void SAL_CALL UpDownBarWrapper::setPropertyToDefault( const ::rtl::OUString& rPropertyName )
=====================================================================
Found a 7 line (106 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper_texturefill.cxx
Starting at line 496 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper_texturefill.cxx

                for( int i=0,p; i<nStepCount; ++i )
                {
                    // lerp color
                    rOutDev.SetFillColor( 
                        Color( (UINT8)(((nStepCount - i)*rColor1.GetRed() + i*rColor2.GetRed())/nStepCount),
                               (UINT8)(((nStepCount - i)*rColor1.GetGreen() + i*rColor2.GetGreen())/nStepCount),
                               (UINT8)(((nStepCount - i)*rColor1.GetBlue() + i*rColor2.GetBlue())/nStepCount) ) );
=====================================================================
Found a 25 line (106 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 169 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx

  		(char *)alloca( sizeof(sal_Int32) + ((nParams+2) * sizeof(sal_Int64)) );
#endif
  	char * pCppStackStart	= pCppStack;
	
	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	OSL_ENSURE( pReturnTypeDescr, "### expected return type description!" );
	
	void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
		{
			pCppReturn = pUnoReturn; // direct way for simple types
		}
		else
		{
			// complex return via ptr
			pCppReturn = *(void **)pCppStack
                = (bridges::cpp_uno::shared::relatesToInterfaceType(
                       pReturnTypeDescr )
#ifdef BROKEN_ALLOCA
                   ? malloc( pReturnTypeDescr->nSize )
=====================================================================
Found a 19 line (106 tokens) duplication in the following files: 
Starting at line 231 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp.cxx
Starting at line 280 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx

			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
											pThis->getBridge()->getCpp2Uno() );
				}
			}
			else // pure out
			{
				uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getCpp2Uno() );
			}
			// destroy temp cpp param => cpp: every param was constructed
			uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
=====================================================================
Found a 20 line (105 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_vpgen_clip_polygon.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_vpgen_clip_polyline.h

            m_vertex(0)
        {
        }

        void clip_box(double _x1, double _y1, double _x2, double _y2)
        {
            m_clip_box.x1 = _x1;
            m_clip_box.y1 = _y1;
            m_clip_box.x2 = _x2;
            m_clip_box.y2 = _y2;
            m_clip_box.normalize();
        }


        double x1() const { return m_clip_box.x1; }
        double y1() const { return m_clip_box.y1; }
        double x2() const { return m_clip_box.x2; }
        double y2() const { return m_clip_box.y2; }

        static bool auto_close()   { return false; }
=====================================================================
Found a 14 line (105 tokens) duplication in the following files: 
Starting at line 155 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_resample_rgb.h
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_resample_rgba.h

                    y_lr = ++m_wrap_mode_y;
                } while(y_hr < filter_size);

                fg[0] /= total_weight;
                fg[1] /= total_weight;
                fg[2] /= total_weight;
                fg[3] /= total_weight;

                if(fg[0] < 0) fg[0] = 0;
                if(fg[1] < 0) fg[1] = 0;
                if(fg[2] < 0) fg[2] = 0;
                if(fg[3] < 0) fg[3] = 0;

                if(fg[order_type::A] > base_mask)         fg[order_type::A] = base_mask;
=====================================================================
Found a 29 line (105 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                        if(fg[2] > src_alpha) fg[2] = src_alpha;
                    }
                }

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)src_alpha;
                ++span;
                ++base_type::interpolator();

            } while(--len);

            return base_type::allocator().span();
        }
    };







    //=================================================span_image_filter_rgb
    template<class ColorT,
             class Order, 
             class Interpolator, 
             class Allocator = span_allocator<ColorT> > 
    class span_image_filter_rgb : 
=====================================================================
Found a 23 line (105 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
Starting at line 284 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx

	if( xmlSecDSigCtxVerify( pDsigCtx , pNode ) == 0 )
    {
        if (pDsigCtx->status == xmlSecDSigStatusSucceeded)
            aTemplate->setStatus(com::sun::star::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED);
        else
            aTemplate->setStatus(com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN);
    }
    else
    {
        aTemplate->setStatus(com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN);
    }

    xmlSecDSigCtxDestroy( pDsigCtx ) ;
    pSecEnv->destroyKeysManager( pMngr ) ; //i39448
    
    //Unregistered the stream/URI binding
    if( xUriBinding.is() )
        xmlUnregisterStreamInputCallbacks() ;
    
	
    clearErrorRecorder();
    return aTemplate;
}
=====================================================================
Found a 23 line (105 tokens) duplication in the following files: 
Starting at line 460 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
Starting at line 530 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/urlparameter.cxx

	(void)Environment;

	if( isPicture() )
	{
		Reference< XInputStream > xStream;
		Reference< XHierarchicalNameAccess > xNA =
			m_pDatabases->jarFile( rtl::OUString::createFromAscii( "picture.jar" ),
								   get_language() );
		
		rtl::OUString path = get_path();
		if( xNA.is() )
		{
			try
			{
				Any aEntry = xNA->getByHierarchicalName( path );
				Reference< XActiveDataSink > xSink;
				if( ( aEntry >>= xSink ) && xSink.is() )
					xStream = xSink->getInputStream();
			}
			catch ( NoSuchElementException & )
			{
			}
		}
=====================================================================
Found a 11 line (105 tokens) duplication in the following files: 
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

				(::_tcslen(CXMergeFilter::m_pszPXLImportDesc) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	lRet = ::RegSetValueEx(hDataKey, _T("Import"), 0, REG_SZ, (LPBYTE)_T(""), (1 * sizeof(TCHAR)));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	lRet = ::RegSetValueEx(hDataKey, _T("NewExtension"), 0, REG_SZ, (LPBYTE)CXMergeFilter::m_pszPXLImportExt,
=====================================================================
Found a 11 line (105 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 401 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

				(::_tcslen(CXMergeFilter::m_pszPXLExportDesc) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	lRet = ::RegSetValueEx(hDataKey, _T("Export"), 0, REG_SZ, (LPBYTE)_T(""), (1 * sizeof(TCHAR)));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	lRet = ::RegSetValueEx(hDataKey, _T("NewExtension"), 0, REG_SZ, (LPBYTE)CXMergeFilter::m_pszPXLExportExt,
=====================================================================
Found a 12 line (105 tokens) duplication in the following files: 
Starting at line 604 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/decoview.cxx
Starting at line 634 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/decoview.cxx

							 nCenterX+n2, nCenterY-n2 );
			pDev->DrawRect( aRect );
			Rectangle aTempRect = aRect;
			aTempRect.Bottom() = nCenterY+n2;
			aTempRect.Right() = aRect.Left();
			pDev->DrawRect( aTempRect );
			aTempRect.Left() = aRect.Right();
			aTempRect.Right() = aRect.Right();
			pDev->DrawRect( aTempRect );
			aTempRect.Top() = aTempRect.Bottom();
			aTempRect.Left() = aRect.Left();
			pDev->DrawRect( aTempRect );
=====================================================================
Found a 15 line (105 tokens) duplication in the following files: 
Starting at line 695 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx
Starting at line 1171 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

	if ( pImpBmp )
	{
		TwoRect aPosAry;

		aPosAry.mnSrcX = rSrcPtPixel.X();
		aPosAry.mnSrcY = rSrcPtPixel.Y();
		aPosAry.mnSrcWidth = rSrcSizePixel.Width();
		aPosAry.mnSrcHeight = rSrcSizePixel.Height();
		aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() );
		aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() );
		aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() );
		aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() );

		// spiegeln via Koordinaten wollen wir nicht
		const ULONG nMirrFlags = ImplAdjustTwoRect( aPosAry, pImpBmp->ImplGetSize() );
=====================================================================
Found a 34 line (105 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/cacher/cacheserv.cxx
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/xtempfile.cxx

	aKeyName += OUString( RTL_CONSTASCII_USTRINGPARAM ( "/UNO/SERVICES" ) );

	Reference< XRegistryKey > xKey;
	try
	{
		xKey = static_cast< XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
	catch ( InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}
// C functions to implement this as a component

extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
=====================================================================
Found a 33 line (105 tokens) duplication in the following files: 
Starting at line 188 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/export2.cxx
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/export2.cxx

					sReturn += "&lt;";
				break;

				case '>':
					sReturn += "&gt;";
				break;

				case '\"':
					sReturn += "&quot;";
				break;

				case '\'':
					sReturn += "&apos;";
				break;

				case '&':
					if ((( i + 4 ) < rString.Len()) &&
						( rString.Copy( i, 5 ) == "&amp;" ))
							sReturn += rString.GetChar( i );
					else
						sReturn += "&amp;";
				break;

				default:
					sReturn += rString.GetChar( i );
				break;
			}
		}
	}
	rString = sReturn;
}

void Export::RemoveUTF8ByteOrderMarker( ByteString &rString ){
=====================================================================
Found a 16 line (105 tokens) duplication in the following files: 
Starting at line 4269 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindows.cxx
Starting at line 4575 of /local/ooo-build/ooo-build/src/oog680-m3/toolkit/source/awt/vclxwindows.cxx

void VCLXCurrencyField::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException)
{
	::vos::OGuard aGuard( GetMutex() );

	if ( GetWindow() )
	{
		sal_Bool bVoid = Value.getValueType().getTypeClass() == ::com::sun::star::uno::TypeClass_VOID;

		sal_uInt16 nPropType = GetPropertyId( PropertyName );
		switch ( nPropType )
		{
			case BASEPROPERTY_VALUE_DOUBLE:
			{
				if ( bVoid )
				{
					((LongCurrencyField*)GetWindow())->EnableEmptyFieldValue( sal_True );
=====================================================================
Found a 8 line (105 tokens) duplication in the following files: 
Starting at line 444 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
Starting at line 472 of /local/ooo-build/ooo-build/src/oog680-m3/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx

		TestDataElements* aGVret = xLBT->getValues(
			& aRet->Bool, & aRet->Char, & aRet->Byte, & aRet->Short,
            & aRet->UShort, & aRet->Long, & aRet->ULong, & aRet->Hyper,
            & aRet->UHyper, & aRet->Float, & aRet->Double, & aRet->Enum,
            & aRet->String, & aRet->Interface, & aRet->Any, & aRet->Sequence,
            & aRet2 );
		
		bRet = check( compareData( aData, aRet ) && compareData( aData, aRet2 ) && compareData( aData, aGVret ), "getValues test" ) && bRet;
=====================================================================
Found a 20 line (105 tokens) duplication in the following files: 
Starting at line 736 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/app/docst.cxx
Starting at line 805 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/app/docst.cxx

			SfxItemSet aTmpSet( aTmp.GetItemSet() );
			if( SFX_STYLE_FAMILY_CHAR == nFamily )
			{
				const SfxPoolItem *pTmpBrush;
				if( SFX_ITEM_SET == aTmpSet.GetItemState( RES_BACKGROUND,
					FALSE, &pTmpBrush ) )
				{
					SvxBrushItem aTmpBrush( *((SvxBrushItem*)pTmpBrush) );
					aTmpBrush.SetWhich( RES_CHRATR_BACKGROUND );
					aTmpSet.Put( aTmpBrush );
				}
				aTmpSet.ClearItem( RES_BACKGROUND );
			}
			aTmp.SetItemSet( aTmpSet );
		}
		if(SFX_STYLE_FAMILY_PAGE == nFamily)
			pView->InvalidateRulerPos();

		if( bNew )
			pBasePool->Broadcast( SfxStyleSheetHint( SFX_STYLESHEET_CREATED, aTmp ) );
=====================================================================
Found a 12 line (105 tokens) duplication in the following files: 
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/wrtxml.cxx

	comphelper::PropertyMapEntry aInfoMap[] =
	{
		{ "ProgressRange", sizeof("ProgressRange")-1, 0,
			  &::getCppuType((sal_Int32*)0),
			  beans::PropertyAttribute::MAYBEVOID, 0},
		{ "ProgressMax", sizeof("ProgressMax")-1, 0,
			  &::getCppuType((sal_Int32*)0),
			  beans::PropertyAttribute::MAYBEVOID, 0},
		{ "ProgressCurrent", sizeof("ProgressCurrent")-1, 0,
			  &::getCppuType((sal_Int32*)0),
			  beans::PropertyAttribute::MAYBEVOID, 0},
		{ "WrittenNumberStyles", sizeof("WrittenNumberStyles")-1, 0,
=====================================================================
Found a 10 line (105 tokens) duplication in the following files: 
Starting at line 2859 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 4087 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

	String sRange(rRange);
	String sTLName(sRange.GetToken(0, ':'));
	String sBRName(sRange.GetToken(1, ':'));
	if(!sTLName.Len() || !sBRName.Len())
		throw uno::RuntimeException();
	SwRangeDescriptor aDesc;
    aDesc.nTop = aDesc.nLeft = aDesc.nBottom = aDesc.nRight = -1;
    lcl_GetCellPosition(sTLName, aDesc.nLeft, aDesc.nTop );
    lcl_GetCellPosition(sBRName, aDesc.nRight, aDesc.nBottom );
    aDesc.Normalize();
=====================================================================
Found a 17 line (105 tokens) duplication in the following files: 
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/trvlfrm.cxx
Starting at line 505 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/trvlfrm.cxx

		const SwFrm *pFrm = Lower();
		while ( pFrm && !bRet )
		{
			pFrm->Calc();
			if ( pFrm->Frm().IsInside( rPoint ) )
			{
				bRet = pFrm->GetCrsrOfst( pPos, rPoint, pCMS );
				if ( pCMS && pCMS->bStop )
					return FALSE;
			}
			pFrm = pFrm->GetNext();
		}
		if ( !bRet )
		{
			Point *pPoint = pCMS && pCMS->pFill ? new Point( rPoint ) : NULL;
			const SwCntntFrm *pCnt = GetCntntPos(
											rPoint, TRUE, FALSE, FALSE, pCMS );
=====================================================================
Found a 21 line (105 tokens) duplication in the following files: 
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/objectformattertxtfrm.cxx
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/objectformattertxtfrm.cxx

                 bInFollow )
            // <--
            {
                bool bInsert( true );
                sal_uInt32 nToPageNum( 0L );
                const SwDoc& rDoc = *(GetPageFrm().GetFmt()->GetDoc());
                if ( SwLayouter::FrmMovedFwdByObjPos(
                                        rDoc, mrAnchorTxtFrm, nToPageNum ) )
                {
                    if ( nToPageNum < pAnchorPageFrm->GetPhyPageNum() )
                        SwLayouter::RemoveMovedFwdFrm( rDoc, mrAnchorTxtFrm );
                    else
                        bInsert = false;
                }
                if ( bInsert )
                {
                    SwLayouter::InsertMovedFwdFrm( rDoc, mrAnchorTxtFrm,
                                                   pAnchorPageFrm->GetPhyPageNum() );
                    mrAnchorTxtFrm.InvalidatePos();
                    bSuccess = false;
                    _InvalidatePrevObjs( *pObj );
=====================================================================
Found a 21 line (105 tokens) duplication in the following files: 
Starting at line 1407 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/fetab.cxx
Starting at line 1446 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/frmedt/fetab.cxx

	const SwTableNode *pTblNd = IsCrsrInTbl();
	if( !pTblNd || pTblNd->GetTable().IsTblComplex() )
		return FALSE;

	SwSelBoxes aBoxes;

	if ( !IsTableMode() )		// falls Crsr noch nicht akt. sind
		GetCrsr();

	// gesamte Tabelle oder nur auf die akt. Selektion
	if( IsTableMode() )
		::GetTblSelCrs( *this, aBoxes );
	else
	{
		const SwTableSortBoxes& rTBoxes = pTblNd->GetTable().GetTabSortBoxes();
		for( USHORT n = 0; n < rTBoxes.Count(); ++n )
		{
			SwTableBox* pBox = rTBoxes[ n ];
			aBoxes.Insert( pBox );
		}
	}
=====================================================================
Found a 17 line (105 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/layctrl.cxx
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/layctrl.cxx

    SfxPopupWindow( nId, rFrame, WB_SYSTEMWINDOW ),
    bInitialKeyInput(TRUE),
    m_bMod1(FALSE),
    rTbx(rParentTbx),
    mxFrame(rFrame),
    maCommand( rCmd )
{
	const StyleSettings& rStyles = Application::GetSettings().GetStyleSettings();
	svtools::ColorConfig aColorConfig;
	aLineColor = Color( aColorConfig.GetColorValue( svtools::FONTCOLOR ).nColor );
	aHighlightLineColor = rStyles.GetHighlightTextColor();
	aFillColor = rStyles.GetWindowColor();
	aHighlightFillColor = rStyles.GetHighlightColor();

	nTextHeight = GetTextHeight()+1;
	SetBackground();
	Font aFont( GetFont() );
=====================================================================
Found a 26 line (105 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx

    eKind(eNewKind),
    nDrehWink(0),
    nObjHdlNum(0),
    nPolyNum(0),
    nPPntNum(0),
    nSourceHdlNum(0),
    bSelect(FALSE),
    b1PixMore(FALSE),
    bPlusHdl(FALSE)

{
	if(!pSimpleSet)
		pSimpleSet = new SdrHdlBitmapSet(SIP_SA_MARKERS);
	DBG_ASSERT(pSimpleSet, "Could not construct SdrHdlBitmapSet()!");
	
	if(!pModernSet)
		pModernSet = new SdrHdlBitmapSet(SIP_SA_FINE_MARKERS);
	DBG_ASSERT(pModernSet, "Could not construct SdrHdlBitmapSet()!");

	// #101928#
	if(!pHighContrastSet)
		pHighContrastSet = new SdrHdlBitmapSet(SIP_SA_ACCESSIBILITY_MARKERS);
	DBG_ASSERT(pHighContrastSet, "Could not construct SdrHdlBitmapSet()!");
}

SdrHdl::~SdrHdl()
=====================================================================
Found a 16 line (105 tokens) duplication in the following files: 
Starting at line 5679 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 5911 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_ScrollBar::WriteContents(
        SvStorageStreamRef &rObj,
        const uno::Reference< beans::XPropertySet> &rPropSet,
        const awt::Size& rSize )
{
    if( !rObj.Is() )
        return sal_False;

    mnBlockFlags = 0x00000008;
    nWidth = rSize.Width;
    nHeight = rSize.Height;

    GetInt32Property( mnForeColor, rPropSet, WW8_ASCII2STR( "SymbolColor" ),     0x00000001 );
    GetInt32Property( mnBackColor, rPropSet, WW8_ASCII2STR( "BackgroundColor" ), 0x00000002 );
    GetBoolProperty(  mbEnabled,   rPropSet, WW8_ASCII2STR( "Enabled" ),         0x00000304 );
    GetInt32Property( mnMin,       rPropSet, WW8_ASCII2STR( "ScrollValueMin" ),  0x00000020 );
=====================================================================
Found a 30 line (105 tokens) duplication in the following files: 
Starting at line 2189 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2819 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4986 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

		0x6B, 0x00, 0x42, 0x00, 0x6F, 0x00, 0x78, 0x00,
		0x31, 0x00, 0x00, 0x00, 0x00, 0x00
		};
	{
	SvStorageStreamRef xStor2( rObj->OpenSotStream( C2S("\3OCXNAME")));
	xStor2->Write(aOCXNAME,sizeof(aOCXNAME));
	DBG_ASSERT((xStor2.Is() && (SVSTREAM_OK == xStor2->GetError())),"damn");
	}
/*
	static sal_uInt8 __READONLY_DATA aTest[] = {
		0x00, 0x02, 0x34, 0x00, 0x46, 0x01, 0xC0, 0x80,
		0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
		0x01, 0x00, 0x00, 0x80, 0x09, 0x00, 0x00, 0x80,
		0xE2, 0x0E, 0x00, 0x00, 0x95, 0x02, 0x00, 0x00,
		0x30, 0x69, 0x1D, 0x00, 0x43, 0x68, 0x65, 0x63,
		0x6B, 0x42, 0x6F, 0x78, 0x31, 0x20, 0x52, 0x6F,
		0x00, 0x02, 0x20, 0x00, 0x35, 0x00, 0x00, 0x00,
		0x0F, 0x00, 0x00, 0x80, 0xC3, 0x00, 0x00, 0x00,
		0x00, 0x02, 0x00, 0x00, 0x54, 0x69, 0x6D, 0x65,
		0x73, 0x20, 0x4E, 0x65, 0x77, 0x20, 0x52, 0x6F,
		0x6D, 0x61, 0x6E, 0x00,
	};
*/
	SvStorageStreamRef xContents( rObj->OpenSotStream( C2S("contents")));
	return WriteContents(xContents, rPropSet, rSize);
}


sal_Bool OCX_FontData::Read(SvStorageStream *pS)
=====================================================================
Found a 14 line (105 tokens) duplication in the following files: 
Starting at line 1723 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit2.cxx
Starting at line 1796 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit2.cxx

	BOOL bScriptChange = FALSE;

	if ( rPaM.GetNode()->Len() )
	{
		USHORT nPara = GetEditDoc().GetPos( rPaM.GetNode() );
		ParaPortion* pParaPortion = GetParaPortions().SaveGetObject( nPara );
		if ( !pParaPortion->aScriptInfos.Count() )
			((ImpEditEngine*)this)->InitScriptTypes( nPara );

		ScriptTypePosInfos& rTypes = pParaPortion->aScriptInfos;
		USHORT nPos = rPaM.GetIndex();
		for ( USHORT n = 0; n < rTypes.Count(); n++ )
		{
			if ( rTypes[n].nStartPos == nPos )
=====================================================================
Found a 15 line (105 tokens) duplication in the following files: 
Starting at line 1146 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1037 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptBentUpArrowVert[] =	// adjustment1 : x 0 - 21600, adjustment2 : x 0 - 21600
{															// adjustment3 : y 0 - 21600
	{ 0, 8 MSO_I }, { 7 MSO_I, 8 MSO_I }, { 7 MSO_I, 2 MSO_I }, { 0 MSO_I, 2 MSO_I },
	{ 5 MSO_I, 0 }, { 21600, 2 MSO_I }, { 1 MSO_I, 2 MSO_I }, { 1 MSO_I, 21600 },
	{ 0, 21600 }
};
static const sal_uInt16 mso_sptBentUpArrowSegm[] =
{
	0x4000, 0x0008, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptBentUpArrowCalc[] =
{
	{ 0x2000,	DFF_Prop_adjustValue, 0, 0 },		// 0
=====================================================================
Found a 29 line (105 tokens) duplication in the following files: 
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx
Starting at line 723 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx

	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't copy raw stream" ),
												 uno::Reference< io::XInputStream >(),
												 aCaught );
	}

	return xResult;
}

//-----------------------------------------------
uno::Reference< io::XStream > SAL_CALL FSStorage::cloneStreamElement( const ::rtl::OUString& aStreamName )
=====================================================================
Found a 25 line (105 tokens) duplication in the following files: 
Starting at line 739 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx
Starting at line 817 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx

	e.m_aKey = rDstKey;

	// Find 'Destination' NodePage.
	storeError eErrCode = find (e, *m_pNode[0]);
	if (eErrCode != store_E_None)
		return eErrCode;

	// Find 'Destination' Index.
	sal_uInt16 i = m_pNode[0]->find(e), n = m_pNode[0]->usageCount();
	if (!(i < n))
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Check for exact match.
	if (!(e.compare (m_pNode[0]->m_pData[i]) == entry::COMPARE_EQUAL))
	{
		// Page not present.
		return store_E_NotExists;
	}
		
	// Existing entry. Check address.
	e = m_pNode[0]->m_pData[i];
	if (e.m_aLink.m_nAddr == STORE_PAGE_NULL)
=====================================================================
Found a 19 line (105 tokens) duplication in the following files: 
Starting at line 507 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/source/engine/smilfunctionparser.cxx
Starting at line 1125 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx

            BOOST_SPIRIT_DEBUG_RULE(ternaryFunction);
            BOOST_SPIRIT_DEBUG_RULE(identifier);
        }

        const ::boost::spirit::rule< ScannerT >& start() const
        {
            return additiveExpression;
        }
        
    private:
        // the constituents of the Spirit arithmetic expression grammar. 
        // For the sake of readability, without 'ma' prefix.
        ::boost::spirit::rule< ScannerT >	additiveExpression;
		::boost::spirit::rule< ScannerT >	multiplicativeExpression;
		::boost::spirit::rule< ScannerT >	unaryExpression;
		::boost::spirit::rule< ScannerT >	basicExpression;
		::boost::spirit::rule< ScannerT >	unaryFunction;
		::boost::spirit::rule< ScannerT >	binaryFunction;
		::boost::spirit::rule< ScannerT >	ternaryFunction;
=====================================================================
Found a 16 line (105 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/shell/qa/recent_docs.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/shell/qa/recent_docs.cxx

        int ret = system("rm $HOME/.recently-used");        
                
		rtl::OUString url = rtl::OUString::createFromAscii("file:///home_athene/test.sxw");
        syssh::AddToRecentDocumentList(url, SXW_MIME_TYPE);                                    
        
        url = rtl::OUString::createFromAscii("file:///home_athene/test.sxc");
        syssh::AddToRecentDocumentList(url, SXC_MIME_TYPE);                                    
        
        url = rtl::OUString::createFromAscii("file:///home_athene/test.sxi");
        syssh::AddToRecentDocumentList(url, SXI_MIME_TYPE);                              

        url = rtl::OUString::createFromAscii("file:///home_athene/test.sxd");
        syssh::AddToRecentDocumentList(url, SXD_MIME_TYPE);                              

        url = rtl::OUString::createFromAscii("file:///home_athene/test.sxm");
        syssh::AddToRecentDocumentList(url, SXM_MIME_TYPE); 
=====================================================================
Found a 50 line (105 tokens) duplication in the following files: 
Starting at line 839 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docvor.cxx
Starting at line 900 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/docvor.cxx

BOOL SfxOrganizeListBox_Impl::NotifyCopying(SvLBoxEntry *pTarget,
										SvLBoxEntry* pSource,
										SvLBoxEntry *&pNewParent,
										ULONG &rIdx)
/*  [Beschreibung]

	Benachrichtigung, da"s ein Eintrag kopiert werden soll
	(SV-Handler)

	[Parameter]

	SvLBoxEntry* pTarget        Ziel-Eintrag, auf den kopiert werden soll
	SvLBoxEntry *pSource        Quell-Eintrag, der kopiert werden soll
	SvLBoxEntry *&pNewParent    der Parent der an der Zielposition erzeugten
								Eintrags (Out-Parameter)
	ULONG &rIdx                 Index des Zieleintrags


	[Returnwert]                BOOL: Erfolg oder Mi"serfolg

	[Querverweise]

	<SfxOrganizeListBox_Impl::MoveOrCopyTemplates(SvLBox *pSourceBox,
											SvLBoxEntry *pSource,
											SvLBoxEntry* pTarget,
											SvLBoxEntry *&pNewParent,
											ULONG &rIdx,
											BOOL bCopy)>
	<SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *pSourceBox,
											SvLBoxEntry *pSource,
											SvLBoxEntry* pTarget,
											SvLBoxEntry *&pNewParent,
											ULONG &rIdx,
											BOOL bCopy)>
	<BOOL SfxOrganizeListBox_Impl::NotifyMoving(SvLBoxEntry *pTarget,
											SvLBoxEntry* pSource,
											SvLBoxEntry *&pNewParent,
											ULONG &rIdx)>
*/
{
	BOOL bOk =  FALSE;
	SvLBox* pSourceBox = GetSourceView();
	if ( !pSourceBox )
		pSourceBox = pDlg->pSourceView;
	DBG_ASSERT( pSourceBox, "no source view" );
	if ( !pTarget )
		pTarget = pDlg->pTargetEntry;
	if ( pSourceBox->GetModel()->GetDepth( pSource ) <= GetDocLevel() &&
					 GetModel()->GetDepth( pTarget ) <= GetDocLevel() )
		bOk = MoveOrCopyTemplates( pSourceBox, pSource, pTarget, pNewParent, rIdx, TRUE );
=====================================================================
Found a 23 line (105 tokens) duplication in the following files: 
Starting at line 1668 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/tabdlg.cxx
Starting at line 1121 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/iconcdlg.cxx

			const USHORT* pTmpRanges = (pData->fnGetRanges)();
			const USHORT* pIter = pTmpRanges;

			USHORT nLen;
			for( nLen = 0; *pIter; ++nLen, ++pIter )
				;
			aUS.Insert( pTmpRanges, nLen, aUS.Count() );
		}
	}

	// remove double Id's
#ifndef TF_POOLABLE
	if ( rPool.HasMap() )
#endif
	{
		nCount = aUS.Count();

		for ( i = 0; i < nCount; ++i )
			aUS[i] = rPool.GetWhich( aUS[i] );
	}

	// sortieren
	if ( aUS.Count() > 1 )
=====================================================================
Found a 17 line (105 tokens) duplication in the following files: 
Starting at line 8 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/quickstarter/quickstarter.cxx
Starting at line 33 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/regpython/pythonmsi.cxx

std::string GetOfficeInstallationPath(MSIHANDLE handle)
{
    std::string progpath;
    DWORD sz = 0;
    LPTSTR dummy = TEXT("");
    
    if (MsiGetProperty(handle, TEXT("INSTALLLOCATION"), dummy, &sz) == ERROR_MORE_DATA)
    {
        sz++; // space for the final '\0'
        DWORD nbytes = sz * sizeof(TCHAR);
        LPTSTR buff = reinterpret_cast<LPTSTR>(_alloca(nbytes));
        ZeroMemory(buff, nbytes);
        MsiGetProperty(handle, TEXT("INSTALLLOCATION"), buff, &sz);
        progpath = buff;            
    }
    return progpath;
}
=====================================================================
Found a 11 line (105 tokens) duplication in the following files: 
Starting at line 2765 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 2816 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

			SdDrawDocument* pDoc = (SdDrawDocument*)SvxFmDrawPage::mpPage->GetModel();
			SfxStyleSheetBasePool* pSSPool = (SfxStyleSheetBasePool*)pDoc->GetStyleSheetPool();
			if(pSSPool)
			{
				String aLayoutName( static_cast< SdPage* >(SvxFmDrawPage::mpPage)->GetLayoutName() );
				aLayoutName.Erase( aLayoutName.Search(String(RTL_CONSTASCII_USTRINGPARAM(SD_LT_SEPARATOR)))+4);
				aLayoutName += String(SdResId(STR_LAYOUT_BACKGROUND));
				SfxStyleSheetBase* pStyleSheet = pSSPool->Find( aLayoutName, (SfxStyleFamily)SD_LT_FAMILY);

				if( pStyleSheet )
				{
=====================================================================
Found a 17 line (105 tokens) duplication in the following files: 
Starting at line 257 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fuconstr.cxx
Starting at line 755 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/func/fusel.cxx

            if (!rMEvt.IsShift() && !rMEvt.IsMod1() && !rMEvt.IsMod2() &&
                !bSelectionChanged                   &&
                Abs(aPnt.X() - aMDPos.X()) < nDrgLog &&
                Abs(aPnt.Y() - aMDPos.Y()) < nDrgLog)
            {
                /**************************************************************
                * Toggle zw. Selektion und Rotation
                **************************************************************/
                SdrObject* pSingleObj = NULL;
                ULONG nMarkCount = mpView->GetMarkedObjectList().GetMarkCount();

                if (nMarkCount==1)
                {
                    pSingleObj = mpView->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj();
                }

                if (nSlotId == SID_OBJECT_SELECT
=====================================================================
Found a 18 line (105 tokens) duplication in the following files: 
Starting at line 329 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/animations/DialogListBox.cxx
Starting at line 2427 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/ilstbox.cxx

long ImplListBox::Notify( NotifyEvent& rNEvt )
{
	long nDone = 0;
	if ( rNEvt.GetType() == EVENT_COMMAND )
	{
		const CommandEvent& rCEvt = *rNEvt.GetCommandEvent();
		if ( rCEvt.GetCommand() == COMMAND_WHEEL )
		{
			const CommandWheelData* pData = rCEvt.GetWheelData();
			if( !pData->GetModifier() && ( pData->GetMode() == COMMAND_WHEEL_SCROLL ) )
			{
				nDone = HandleScrollCommand( rCEvt, mpHScrollBar, mpVScrollBar );
			}
		}
	}

	return nDone ? nDone : Window::Notify( rNEvt );
}
=====================================================================
Found a 14 line (105 tokens) duplication in the following files: 
Starting at line 878 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/styleuno.cxx
Starting at line 1169 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/styleuno.cxx

			ScDocument* pDoc = pDocShell->GetDocument();
			if ( eFamily == SFX_STYLE_FAMILY_PARA )
			{
				//	Zeilenhoehen anpassen...

				VirtualDevice aVDev;
				Point aLogic = aVDev.LogicToPixel( Point(1000,1000), MAP_TWIP );
				double nPPTX = aLogic.X() / 1000.0;
				double nPPTY = aLogic.Y() / 1000.0;
				Fraction aZoom(1,1);
				pDoc->StyleSheetChanged( pStyle, sal_False, &aVDev, nPPTX, nPPTY, aZoom, aZoom );

				pDocShell->PostPaint( 0,0,0, MAXCOL,MAXROW,MAXTAB, PAINT_GRID|PAINT_LEFT );
				pDocShell->SetDocumentModified();
=====================================================================
Found a 18 line (105 tokens) duplication in the following files: 
Starting at line 1551 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldpimp.cxx
Starting at line 1605 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmldpimp.cxx

	pDataPilotGroup(pTempDataPilotGroup)
{
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
		rtl::OUString aLocalName;
		USHORT nPrefix = GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName );
		rtl::OUString sValue = xAttrList->getValueByIndex( i );

        if (nPrefix == XML_NAMESPACE_TABLE)
        {
            if (IsXMLToken(aLocalName, XML_NAME))
                sName = sValue;
        }
	}
}
=====================================================================
Found a 7 line (105 tokens) duplication in the following files: 
Starting at line 54 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xcl97/xcl97dum.cxx
Starting at line 61 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xcl97/xcl97dum.cxx

	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
=====================================================================
Found a 19 line (105 tokens) duplication in the following files: 
Starting at line 1137 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabsrc.cxx
Starting at line 1585 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabsrc.cxx
Starting at line 1766 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dptabsrc.cxx

uno::Any SAL_CALL ScDPLevels::getByName( const rtl::OUString& aName )
			throw(container::NoSuchElementException,
					lang::WrappedTargetException, uno::RuntimeException)
{
	long nCount = getCount();
	for (long i=0; i<nCount; i++)
		if ( getByIndex(i)->getName() == aName )
		{
			uno::Reference<container::XNamed> xNamed = getByIndex(i);
			uno::Any aRet;
			aRet <<= xNamed;
			return aRet;
		}

	throw container::NoSuchElementException();
//    return uno::Any();
}

uno::Sequence<rtl::OUString> SAL_CALL ScDPLevels::getElementNames() throw(uno::RuntimeException)
=====================================================================
Found a 29 line (105 tokens) duplication in the following files: 
Starting at line 1392 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx
Starting at line 786 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_SocketAddr.cxx

			::osl::SocketAddr::resolveHostname( rtl::OUString::createFromAscii("127.0.0.1"), saSocketAddr );
			::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( 0 );
			sal_Bool bOK = sal_False;

			 if ( ( bsSocketAddr[0] == 127 ) && ( bsSocketAddr[1] == 0 ) &&( bsSocketAddr[2] == 0 ) && ( bsSocketAddr[3] == 1 ) )
			 	bOK = sal_True;
			
			CPPUNIT_ASSERT_MESSAGE( "test for resolveHostname() function: try to resolve localhost to 127.0.0.1.", 
									  sal_True == bOK );
		}
		
		CPPUNIT_TEST_SUITE( resolveHostname );
		CPPUNIT_TEST( resolveHostname_001 ); 
		CPPUNIT_TEST_SUITE_END( );
		
	}; // class resolveHostname

	
	/** testing the method:
		static inline sal_Int32 SAL_CALL getServicePort(
			const ::rtl::OUString& strServiceName,
			const ::rtl::OUString & strProtocolName= ::rtl::OUString::createFromAscii( "tcp" ) );		
	*/

	class gettheServicePort : public CppUnit::TestFixture
	{
	public:
		void gettheServicePort_001()
		{
=====================================================================
Found a 20 line (105 tokens) duplication in the following files: 
Starting at line 268 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_AcceptorSocket.cxx
Starting at line 3467 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

			::osl::SocketAddr saPeerSocketAddr( aHostIp2, IP_PORT_FTP );
			::osl::StreamSocket ssConnection;
			
			/// launch server socket 
			sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket bind address failed.", sal_True == bOK1 );
			sal_Bool bOK2 = asAcceptorSocket.listen( 1 );
			CPPUNIT_ASSERT_MESSAGE( "AcceptorSocket listen failed.",  sal_True == bOK2 );
			asAcceptorSocket.enableNonBlockingMode( sal_True );

			/// launch client socket 
			csConnectorSocket.connect( saTargetSocketAddr, pTimeout );   /// connecting to server...

			oslSocketResult eResult = asAcceptorSocket.acceptConnection(ssConnection, saPeerSocketAddr); /// waiting for incoming connection...
			
			CPPUNIT_ASSERT_MESSAGE( "test for listen_accept function: try to create a connection with remote host, using listen and accept, accept with peer address.", 
									( sal_True == bOK2 ) &&
									( osl_Socket_Ok == eResult ) && 
									( sal_True == compareSocketAddr( saPeerSocketAddr, saLocalSocketAddr ) ) );
		}
=====================================================================
Found a 34 line (105 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/manifest/UnoRegister.cxx
Starting at line 589 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/xtempfile.cxx

	aKeyName += OUString( RTL_CONSTASCII_USTRINGPARAM ( "/UNO/SERVICES" ) );

	Reference< XRegistryKey > xKey;
	try
	{
		xKey = static_cast< XRegistryKey * >(
									pRegistryKey )->createKey( aKeyName );
	}
	catch ( InvalidRegistryException const & )
	{
	}

	if ( !xKey.is() )
		return sal_False;

	sal_Bool bSuccess = sal_True;

	for ( sal_Int32 n = 0; n < rServiceNames.getLength(); ++n )
	{
		try
		{
			xKey->createKey( rServiceNames[ n ] );
		}
		catch ( InvalidRegistryException const & )
		{
			bSuccess = sal_False;
			break;
		}
	}
	return bSuccess;
}
// C functions to implement this as a component

extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
=====================================================================
Found a 20 line (105 tokens) duplication in the following files: 
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/thesaurus/libnth/nthesimp.cxx

using namespace utl;
using namespace osl;
using namespace rtl;
using namespace com::sun::star;
using namespace com::sun::star::beans;
using namespace com::sun::star::lang;
using namespace com::sun::star::uno;
using namespace com::sun::star::linguistic2;
using namespace linguistic;



///////////////////////////////////////////////////////////////////////////

BOOL operator == ( const Locale &rL1, const Locale &rL2 )
{
    return  rL1.Language ==  rL2.Language   &&
            rL1.Country  ==  rL2.Country    &&
            rL1.Variant  ==  rL2.Variant;
}
=====================================================================
Found a 14 line (105 tokens) duplication in the following files: 
Starting at line 1993 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3288 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xa3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x00, 0xc0, 0xe0 },
=====================================================================
Found a 23 line (105 tokens) duplication in the following files: 
Starting at line 1768 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 2210 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

                        case 'I': { if (rv && TESTAFF(rv->astr, 'J', rv->alen)) numsyllable += 1; break; }
	            }
	        }
            }

	    // increment word number, if the second word has a compoundroot flag
	    if ((rv) && (compoundroot) && 
		(TESTAFF(rv->astr, compoundroot, rv->alen))) {
		    wordnum++;
	    }
	    // second word is acceptable, as a word with prefix or/and suffix?
	    // hungarian conventions: compounding is acceptable,
	    // when compound forms consist 2 word, otherwise
	    // the syllable number of root words is 6, or lesser.
	    if ((rv) && 
                    (
		      ((cpdwordmax==0) || (wordnum+1<cpdwordmax)) || 
		      ((cpdmaxsyllable==0) || 
		          (numsyllable <= cpdmaxsyllable))
		    )
		&& (
		   (!checkcompounddup || (rv != rv_first))
		   )) {
=====================================================================
Found a 12 line (105 tokens) duplication in the following files: 
Starting at line 1551 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx
Starting at line 1727 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affixmgr.cxx

            if ((rv) && 
                ((pfx && ((PfxEntry*)pfx)->getCont() &&
                    TESTAFF(((PfxEntry*)pfx)->getCont(), compoundforbidflag, 
                        ((PfxEntry*)pfx)->getContLen())) ||
                (sfx && ((SfxEntry*)sfx)->getCont() &&
                    TESTAFF(((SfxEntry*)sfx)->getCont(), compoundforbidflag, 
                        ((SfxEntry*)sfx)->getContLen())))) {
                    rv = NULL;
            }

	    // check forbiddenwords
	    if ((rv) && (rv->astr) && (TESTAFF(rv->astr, forbiddenword, rv->alen) ||
=====================================================================
Found a 32 line (105 tokens) duplication in the following files: 
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx
Starting at line 602 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx

    if ((optflags & aeXPRODUCT) != 0 &&  (opts & aeXPRODUCT) == 0)
        return NULL;

    // upon entry suffix is 0 length or already matches the end of the word.
    // So if the remaining root word has positive length
    // and if there are enough chars in root word and added back strip chars
    // to meet the number of characters conditions, then test it

    tmpl = len - appndl;

    if ((tmpl > 0)  &&  (tmpl + stripl >= numconds)) {

	    // generate new root word by removing suffix and adding
	    // back any characters that would have been stripped or
	    // or null terminating the shorter string

	    strcpy (tmpword, word);
	    cp = (unsigned char *)(tmpword + tmpl);
	    if (stripl) {
		strcpy ((char *)cp, strip);
		tmpl += stripl;
		cp = (unsigned char *)(tmpword + tmpl);
	    } else *cp = '\0';

            // now make sure all of the conditions on characters
            // are met.  Please see the appendix at the end of
            // this file for more info on exactly what is being
            // tested

            // if all conditions are met then recall suffix_check

	    if (test_condition((char *) cp, (char *) tmpword)) {
=====================================================================
Found a 16 line (105 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx

    if (rappnd) free(rappnd);
    if (strip) free(strip);
    pmyMgr = NULL;
    appnd = NULL;
    strip = NULL;    
    if (opts & aeUTF8) {
        for (int i = 0; i < 8; i++) {
            if (conds.utf8.wchars[i]) free(conds.utf8.wchars[i]);  
        }
    }
    if (morphcode && !(opts & aeALIASM)) free(morphcode);
    if (contclass && !(opts & aeALIASF)) free(contclass);
}

// add suffix to this word assuming conditions hold
char * SfxEntry::add(const char * word, int len)
=====================================================================
Found a 19 line (105 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/spell/sspellimp.cxx

using namespace utl;
using namespace osl;
using namespace rtl;
using namespace com::sun::star;
using namespace com::sun::star::beans;
using namespace com::sun::star::lang;
using namespace com::sun::star::uno;
using namespace com::sun::star::linguistic2;
using namespace linguistic;


///////////////////////////////////////////////////////////////////////////

BOOL operator == ( const Locale &rL1, const Locale &rL2 )
{
	return	rL1.Language ==  rL2.Language	&&
			rL1.Country  ==  rL2.Country	&&
			rL1.Variant  ==  rL2.Variant;
}
=====================================================================
Found a 16 line (105 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/include.c
Starting at line 57 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_include.c

        if (trp->tp->type == LT)
        {
            len = 0;
            trp->tp++;
            while (trp->tp->type != GT)
            {
                if (trp->tp > trp->lp || len + trp->tp->len + 2 >= sizeof(fname))
                    goto syntax;
                strncpy(fname + len, (char *) trp->tp->t, trp->tp->len);
                len += trp->tp->len;
                trp->tp++;
            }
            angled = 1;
        }
        else
            goto syntax;
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 1337 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1414 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,10,10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0,// 2760 - 276f
     0, 0, 0, 0, 0, 0,10,10,10,10,10,10,10,10,10,10,// 2770 - 277f
    10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2780 - 278f
    10,10,10,10,10, 0, 0, 0,10,10,10,10,10,10,10,10,// 2790 - 279f
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 1199 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1262 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1311 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2150 - 215f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2160 - 216f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2170 - 217f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2180 - 218f
=====================================================================
Found a 5 line (105 tokens) duplication in the following files: 
Starting at line 1162 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 5 line (105 tokens) duplication in the following files: 
Starting at line 1153 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 609 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/wrtw8esh.cxx

        0x44,0,         // the start of "next" data
        0,0,0,0,0,0,0,0,0,0,                // PIC-Structure!
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,    //  |
=====================================================================
Found a 5 line (105 tokens) duplication in the following files: 
Starting at line 1085 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 6 line (105 tokens) duplication in the following files: 
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1114 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17,17,17,17,17, 0,17,17, 0, 0, 0, 0,17, 0, 0,// 0ac0 - 0acf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ad0 - 0adf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ae0 - 0aef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0af0 - 0aff

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b00 - 0b0f
=====================================================================
Found a 5 line (105 tokens) duplication in the following files: 
Starting at line 981 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 625 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 793 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fa0 - 9faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fb0 - 9fbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fc0 - 9fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fd0 - 9fdf
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1840 - 184f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1850 - 185f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1860 - 186f
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 793 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fa0 - 9faf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fb0 - 9fbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fc0 - 9fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 9fd0 - 9fdf
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 409 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 464 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1840 - 184f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1850 - 185f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1860 - 186f
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
=====================================================================
Found a 5 line (105 tokens) duplication in the following files: 
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0,23, 0, 0, 0, 0,// 10f0 - 10ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1100 - 110f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1110 - 111f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1120 - 112f
=====================================================================
Found a 5 line (105 tokens) duplication in the following files: 
Starting at line 195 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1770 - 177f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1780 - 178f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1790 - 179f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 17a0 - 17af
     5, 5, 5, 5, 8, 8, 8, 6, 6, 6, 6, 6, 6, 6, 8, 8,// 17b0 - 17bf
=====================================================================
Found a 10 line (105 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/solver.cpp

  for (j = 0; j < n; j++)
  {
    for (i = 0; i < j; i++)
      v[i] = A[j][i]*A[i][i];

    v[j] = A[j][j];
    for (i = 0; i < j; i++)
      v[j] -= A[j][i]*v[i];

    A[j][j] = v[j];
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1039 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0550 - 055f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0560 - 056f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0570 - 057f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0, 0, 0, 0, 0,// 0580 - 058f
=====================================================================
Found a 4 line (105 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27, 6,27,27,27,27,27,27, 0, 0,27,// 0fc0 - 0fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fd0 - 0fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fe0 - 0fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ff0 - 0fff
=====================================================================
Found a 8 line (105 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,    0,    0,    0,    0,    0,    0,    0,   27,
        0,    0,   27,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
=====================================================================
Found a 9 line (105 tokens) duplication in the following files: 
Starting at line 1014 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1448 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

							aCol0 = pAcc->GetPixel( nTmpY, --nTmpX );
							cR1 = MAP( aCol0.GetRed(), aCol1.GetRed(), nTmpFX );
							cG1 = MAP( aCol0.GetGreen(), aCol1.GetGreen(), nTmpFX );
							cB1 = MAP( aCol0.GetBlue(), aCol1.GetBlue(), nTmpFX );

							aColRes.SetRed( MAP( cR0, cR1, nTmpFY ) );
							aColRes.SetGreen( MAP( cG0, cG1, nTmpFY ) );
							aColRes.SetBlue( MAP( cB0, cB1, nTmpFY ) );
							pWAcc->SetPixel( nY, nX, aColRes );
=====================================================================
Found a 9 line (105 tokens) duplication in the following files: 
Starting at line 984 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1408 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

							const BitmapColor& rCol2 = pAcc->GetPaletteColor( pAcc->GetPixel( nTmpY, --nTmpX ) );
							cR1 = MAP( rCol2.GetRed(), rCol3.GetRed(), nTmpFX );
							cG1 = MAP( rCol2.GetGreen(), rCol3.GetGreen(), nTmpFX );
							cB1 = MAP( rCol2.GetBlue(), rCol3.GetBlue(), nTmpFX );

							aColRes.SetRed( MAP( cR0, cR1, nTmpFY ) );
							aColRes.SetGreen( MAP( cG0, cG1, nTmpFY ) );
							aColRes.SetBlue( MAP( cB0, cB1, nTmpFY ) );
							pWAcc->SetPixel( nY, nX, aColRes );
=====================================================================
Found a 21 line (105 tokens) duplication in the following files: 
Starting at line 1599 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx
Starting at line 1682 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx

void Base3DDefault::DrawLineColor(sal_Int32 nYPos)
{
	// Ausserhalb des Clipping-Bereichs?
	if(IsScissorRegionActive()
		&& (nYPos < aDefaultScissorRectangle.Top()
		|| nYPos > aDefaultScissorRectangle.Bottom()))
		return;

	// Von links bis rechts zeichnen
	sal_Int32 nXLineStart = aIntXPosLeft.GetLongValue();
	sal_Int32 nXLineDelta = aIntXPosRight.GetLongValue() - nXLineStart;

	if(nXLineDelta > 0)
	{
		// Ausserhalb des Clipping-Bereichs?
		if(IsScissorRegionActive()
			&& ( nXLineStart+nXLineDelta < aDefaultScissorRectangle.Left()
			|| nXLineStart > aDefaultScissorRectangle.Right()))
			return;

		aIntColorLine.Load(aIntColorLeft.GetColorValue(), aIntColorRight.GetColorValue(), nXLineDelta);
=====================================================================
Found a 22 line (105 tokens) duplication in the following files: 
Starting at line 783 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 815 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx

			else if ( !AddonPopupMenu::IsCommandURLPrefix ( aItemCommand ))
			{
				AttributeListImpl* pListMenu = new AttributeListImpl;
				Reference< XAttributeList > xListMenu( (XAttributeList *)pListMenu , UNO_QUERY );

                String aCommand( pMenu->GetItemCommand( nItemId ) );
                if ( !aCommand.Len() )
                {
                    aCommand = String::CreateFromAscii("slot:");
                    aCommand += String::CreateFromInt32( nItemId );
                }

                pListMenu->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_NS_ID )),
                                         m_aAttributeType,
                                         aCommand );

//                if ( pMenu->GetUserValue( nItemId ) & MENU_SAVE_LABEL )
					pListMenu->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM( ATTRIBUTE_NS_LABEL )),
											 m_aAttributeType,
											 pMenu->GetItemText( nItemId ) );

				m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
=====================================================================
Found a 24 line (105 tokens) duplication in the following files: 
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ComboBox.cxx
Starting at line 738 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/ListBox.cxx

                        else
                        {
                            // otherwise look for the alias
                            Reference<XSQLQueryComposerFactory> xFactory(xConnection, UNO_QUERY);
                            if (!xFactory.is())
                                break;

                            Reference<XSQLQueryComposer> xComposer = xFactory->createQueryComposer();
                            try
                            {
                                Reference<XPropertySet> xFormAsSet(xForm, UNO_QUERY);
                                ::rtl::OUString aStatement;
                                xFormAsSet->getPropertyValue(PROPERTY_ACTIVECOMMAND) >>= aStatement;
                                xComposer->setQuery(aStatement);
                            }
                            catch(Exception&)
                            {
                                disposeComponent(xComposer);
                                break;
                            }

                            // search the field
                            Reference<XColumnsSupplier> xSupplyFields(xComposer, UNO_QUERY);
                            DBG_ASSERT(xSupplyFields.is(), "OListBoxModel::loadData : invalid query composer !");
=====================================================================
Found a 26 line (105 tokens) duplication in the following files: 
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilteradaptor/streamwrap.cxx
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/streaming/streamwrap.cxx

	return nAvailable;
}

//------------------------------------------------------------------------------
void SAL_CALL OInputStreamWrapper::closeInput() throw( stario::NotConnectedException, staruno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkConnected();

	if (m_bSvStreamOwner)
		delete m_pSvStream;

	m_pSvStream = NULL;
}

//------------------------------------------------------------------------------
void OInputStreamWrapper::checkConnected() const
{
	if (!m_pSvStream)
		throw stario::NotConnectedException(::rtl::OUString(), const_cast<staruno::XWeak*>(static_cast<const staruno::XWeak*>(this)));
}

//------------------------------------------------------------------------------
void OInputStreamWrapper::checkError() const
{
	checkConnected();
=====================================================================
Found a 28 line (105 tokens) duplication in the following files: 
Starting at line 1882 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 1439 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

			case( META_MAPMODE_ACTION ):
			case( META_LINECOLOR_ACTION	):
			case( META_FILLCOLOR_ACTION	):
			case( META_TEXTLINECOLOR_ACTION ):
			case( META_TEXTFILLCOLOR_ACTION	):
			case( META_TEXTCOLOR_ACTION	):
			case( META_TEXTALIGN_ACTION	):
			case( META_FONT_ACTION ):
			case( META_PUSH_ACTION ):
			case( META_POP_ACTION ):
			case( META_LAYOUTMODE_ACTION ):
			{
				( (MetaAction*) pAction )->Execute( mpVDev );
			}
			break;

			case( META_RASTEROP_ACTION ):
			case( META_MASK_ACTION ):
			case( META_MASKSCALE_ACTION	):
			case( META_MASKSCALEPART_ACTION	):
			case( META_WALLPAPER_ACTION	):
			case( META_TEXTLINE_ACTION ):
			{
				// !!! >>> we don't want to support these actions
			}
			break;

			default:
=====================================================================
Found a 20 line (105 tokens) duplication in the following files: 
Starting at line 455 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/scanner/scanwin.cxx
Starting at line 380 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/scanner/twain.cxx

		long			nYRes = FIXTOLONG( aInfo.YResolution );

		if( PFUNC( &aAppIdent, &aSrcIdent, DG_IMAGE, DAT_IMAGEINFO, MSG_GET, &aInfo ) == TWRC_SUCCESS )
		{
			nWidth = aInfo.ImageWidth;
			nHeight = aInfo.ImageLength;
			nXRes = FIXTOLONG( aInfo.XResolution );
			nYRes = FIXTOLONG( aInfo.YResolution );
		}
		else
			nWidth = nHeight = nXRes = nYRes = -1L;

		switch( PFUNC( &aAppIdent, &aSrcIdent, DG_IMAGE, DAT_IMAGENATIVEXFER, MSG_GET, &hDIB ) )
		{
			case( TWRC_CANCEL ):
				nCurState = 7;
			break;

			case( TWRC_XFERDONE ):
			{
=====================================================================
Found a 14 line (105 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx

	uno::Reference< uno::XInterface > xResult;

	// the initialization is completelly controlled by user
	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Sequence< beans::PropertyValue > aTempMedDescr( lArguments );
=====================================================================
Found a 20 line (105 tokens) duplication in the following files: 
Starting at line 661 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/manager/dp_manager.cxx
Starting at line 845 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/manager/dp_manager.cxx

    OUString const & id, ::rtl::OUString const & fileName,
    Reference<task::XAbortChannel> const & xAbortChannel,
    Reference<XCommandEnvironment> const & xCmdEnv_ )
    throw (deployment::DeploymentException, CommandFailedException,
           CommandAbortedException, lang::IllegalArgumentException,
           RuntimeException)
{
    check();
    if (m_readOnly)
        throw deployment::DeploymentException(
            OUSTR("operating on read-only context!"),
            static_cast<OWeakObject *>(this), Any() );
    
    Reference<XCommandEnvironment> xCmdEnv;
    if (m_xLogFile.is())
        xCmdEnv.set( new CmdEnvWrapperImpl( xCmdEnv_, m_xLogFile ) );
    else
        xCmdEnv.set( xCmdEnv_ );
    
    try {
=====================================================================
Found a 16 line (105 tokens) duplication in the following files: 
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/shared/registrationhelper.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/inc/componentmodule.cxx

			"OModule::registerComponent : inconsistent state !");

		sal_Int32 nOldLen = s_pImplementationNames->getLength();
		s_pImplementationNames->realloc(nOldLen + 1);
		s_pSupportedServices->realloc(nOldLen + 1);
		s_pCreationFunctionPointers->realloc(nOldLen + 1);
		s_pFactoryFunctionPointers->realloc(nOldLen + 1);

		s_pImplementationNames->getArray()[nOldLen] = _rImplementationName;
		s_pSupportedServices->getArray()[nOldLen] = _rServiceNames;
		s_pCreationFunctionPointers->getArray()[nOldLen] = reinterpret_cast<sal_Int64>(_pCreateFunction);
		s_pFactoryFunctionPointers->getArray()[nOldLen] = reinterpret_cast<sal_Int64>(_pFactoryFunction);
	}

	//--------------------------------------------------------------------------
	void OModule::revokeComponent(const ::rtl::OUString& _rImplementationName)
=====================================================================
Found a 17 line (105 tokens) duplication in the following files: 
Starting at line 303 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/propshlp.cxx
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/propshlp.cxx

	const Reference < XVetoableChangeListener > & rxListener )
	throw(::com::sun::star::beans::UnknownPropertyException, 
		  ::com::sun::star::lang::WrappedTargetException, 
		  ::com::sun::star::uno::RuntimeException)
{
	MutexGuard aGuard( rBHelper.rMutex );
	OSL_ENSURE( !rBHelper.bDisposed, "object is disposed" );
	// all listeners are automaticly released in a dispose call
	if( !rBHelper.bInDispose && !rBHelper.bDisposed )
	{
		if( rPropertyName.getLength() )
		{
			// get the map table
			IPropertyArrayHelper & rPH = getInfoHelper();
			// map the name to the handle
			sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
			if( nHandle == -1 ) {
=====================================================================
Found a 16 line (105 tokens) duplication in the following files: 
Starting at line 171 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/workben/testmoz/main.cxx
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/workben/testmoz/mozthread.cxx

		OSL_TRACE(": FAILED to get a ResultSet \n");
    	}
}
void printXResultSet( Reference<XResultSet> &xRes )
{
	if(xRes.is())
	{
		char* aPat = " %-22s ";
		char* aPat_Short = " %-12s ";
		Reference<XRow> xRow(xRes,UNO_QUERY);
		Reference<XResultSetMetaData> xMeta = Reference<XResultSetMetaDataSupplier>(xRes,UNO_QUERY)->getMetaData();
		for(sal_Int32 j=1;j<=xMeta->getColumnCount();++j)
		{
			try
			{
				const char *str = OUtoCStr(xRow->getString(j));
=====================================================================
Found a 17 line (105 tokens) duplication in the following files: 
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

	m_xMetaData		= NULL;
	if( object )
	{
        SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
		if( t.pEnv )
		{
			// temporaere Variable initialisieren
			static const char * cSignature = "()V";
			static const char * cMethodName = "close";
			// Java-Call absetzen
			static jmethodID mID = NULL;
			if ( !mID  )
				mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
			if( mID ){
				t.pEnv->CallVoidMethod( object, mID);
				ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			} //mID
=====================================================================
Found a 18 line (105 tokens) duplication in the following files: 
Starting at line 569 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 567 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

		static const char * cSignature = "(I)Ljava/sql/Ref;";
		static const char * cMethodName = "getBlob";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID, columnIndex);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			// und aufraeumen
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return out==0 ? 0 : new java_sql_Blob( t.pEnv, out );
}
// -------------------------------------------------------------------------

Reference< XRef > SAL_CALL java_sql_ResultSet::getRef( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
=====================================================================
Found a 17 line (105 tokens) duplication in the following files: 
Starting at line 547 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 545 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

		static const char * cSignature = "(I)Ljava/sql/Ref;";
		static const char * cMethodName = "getClob";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID, columnIndex);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			// und aufraeumen
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return out==0 ? 0 : new java_sql_Clob( t.pEnv, out );
}
// -------------------------------------------------------------------------
Reference< XBlob > SAL_CALL java_sql_ResultSet::getBlob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
=====================================================================
Found a 18 line (105 tokens) duplication in the following files: 
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 522 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

		static const char * cSignature = "(I)Ljava/sql/Ref;";
		static const char * cMethodName = "getArray";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID, columnIndex);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			// und aufraeumen
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return out==0 ? 0 : new java_sql_Array( t.pEnv, out );
}
// -------------------------------------------------------------------------

Reference< XClob > SAL_CALL java_sql_ResultSet::getClob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
=====================================================================
Found a 36 line (105 tokens) duplication in the following files: 
Starting at line 1266 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FResultSet.cxx
Starting at line 1533 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FResultSet.cxx

			m_nRowCountResult = 0;
			// Vorlaeufig einfach ueber alle Datensaetze iterieren und
			// dabei die Aktionen bearbeiten (bzw. einfach nur zaehlen):
			{

				sal_Bool bOK = sal_True;
				if (m_pEvaluationKeySet)
				{
					m_aEvaluateIter = m_pEvaluationKeySet->begin();
					bOK = m_aEvaluateIter == m_pEvaluationKeySet->end();

				}
				while (bOK)
				{
					if (m_pEvaluationKeySet)
						ExecuteRow(IResultSetHelper::BOOKMARK,(*m_aEvaluateIter),TRUE);
					else
						bOK = ExecuteRow(IResultSetHelper::NEXT,1,TRUE);

					if (bOK)
					{
						m_nRowCountResult++;
						if(m_pEvaluationKeySet)
						{
							++m_aEvaluateIter;
							bOK = m_aEvaluateIter == m_pEvaluationKeySet->end();
						}
					}
				}

				// Ergebnis von COUNT(*) in nRowCountResult merken.
				// nRowCount, also die Anzahl der Rows in der Ergebnismenge, ist bei dieser
				// Anfrage = 1!
				//	DELETEZ(m_pEvaluationKeySet);
				m_pEvaluationKeySet = NULL;
			}
=====================================================================
Found a 29 line (105 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NServices.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/flat/Eservices.cxx

		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
=====================================================================
Found a 26 line (105 tokens) duplication in the following files: 
Starting at line 445 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx
Starting at line 248 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/file/FDatabaseMetaData.cxx

    Reference< XResultSet > xRef = pResult;

	// check if any type is given
	// when no types are given then we have to return all tables e.g. TABLE

	static const ::rtl::OUString aTable(::rtl::OUString::createFromAscii("TABLE"));

	sal_Bool bTableFound = sal_True;
	sal_Int32 nLength = types.getLength();
	if(nLength)
	{
		bTableFound = sal_False;

		const ::rtl::OUString* pBegin = types.getConstArray();
		const ::rtl::OUString* pEnd	= pBegin + nLength;
		for(;pBegin != pEnd;++pBegin)
		{
			if(*pBegin == aTable)
			{
				bTableFound = sal_True;
				break;
			}
		}
	}
	if(!bTableFound)
		return xRef;
=====================================================================
Found a 29 line (105 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NServices.cxx

		}
		return xRet.is();
	}

	void* getProvider() const { return xRet.get(); }
};

//---------------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
				const sal_Char	**ppEnvTypeName,
				uno_Environment	** /*ppEnv*/
			)
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

//---------------------------------------------------------------------------------------
extern "C" sal_Bool SAL_CALL component_writeInfo(
				void* /*pServiceManager*/,
				void* pRegistryKey
			)
{
	if (pRegistryKey)
	try
	{
		Reference< ::com::sun::star::registry::XRegistryKey > xKey(reinterpret_cast< ::com::sun::star::registry::XRegistryKey*>(pRegistryKey));

		REGISTER_PROVIDER(
=====================================================================
Found a 24 line (105 tokens) duplication in the following files: 
Starting at line 238 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treecache/cachecontroller.cxx
Starting at line 166 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/treecache/treemanager.cxx

	CFG_TRACE_INFO("TreeManager: Disposing data and TreeInfo(s) for user '%s'", 
					OUSTRING2ASCII(_aUserOptions.getEntity()) );

	typedef std::vector< std::pair< RequestOptions, CacheRef > > DisposeList;
	
	DisposeList aDisposeList;
	// collect the ones to dispose
	{
		OUString sUser = _aUserOptions.getEntity();
		OSL_ASSERT(sUser.getLength());

		// This depends on the fact that Options are sorted (by struct ltOptions)
		// so that all options belonging to one user are together
		// (and that options with only a user set, sort first)

        CacheList::Map aCacheData;
        m_aCacheList.swap(aCacheData);

		// find the lower_bound of all options for the user
		CacheList::Map::iterator const aFirst = aCacheData.lower_bound(_aUserOptions);

		// find the upper_bound of all options for the user (using the lower one)
		CacheList::Map::iterator aLast = aFirst;
		while (aLast != aCacheData.end() && aLast->first.getEntity() == sUser)
=====================================================================
Found a 16 line (105 tokens) duplication in the following files: 
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cppumaker.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javamaker.cxx

    RegistryKeyList typeKeys = typeMgr.getTypeKeys(typeName);
	RegistryKeyList::const_iterator iter = typeKeys.begin();
    RegistryKey key, subKey;
    RegistryKeyArray subKeys;
    
	while (iter != typeKeys.end())
	{
        key = (*iter).first;

        if (!(*iter).second  && !key.openSubKeys(OUString(), subKeys))
        {
            for (sal_uInt32 i = 0; i < subKeys.getLength(); i++)
            {
                subKey = subKeys.getElement(i);
                if (bFullScope)
                {
=====================================================================
Found a 19 line (105 tokens) duplication in the following files: 
Starting at line 1224 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 1516 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx

	sal_uInt32 methodCount = m_reader.getMethodCount();

	OString methodName, returnType, paramType, paramName;	
	sal_uInt32 paramCount = 0;
	sal_uInt32 excCount = 0;
	RTMethodMode methodMode = RT_MODE_INVALID;
	RTParamMode	 paramMode = RT_PARAM_INVALID;

	sal_Bool bRef = sal_False;
	sal_Bool bConst = sal_False;
	sal_Bool bWithRunTimeExcp = sal_True;

	for (sal_uInt16 i=0; i < methodCount; i++)
	{
		methodName = m_reader.getMethodName(i);
		returnType = m_reader.getMethodReturnType(i);
		paramCount = m_reader.getMethodParamCount(i);
		excCount = m_reader.getMethodExcCount(i);
		methodMode = m_reader.getMethodMode(i);
=====================================================================
Found a 12 line (105 tokens) duplication in the following files: 
Starting at line 1094 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/VSeriesPlotter.cxx
Starting at line 1147 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/VSeriesPlotter.cxx

    sal_Int32 nRet = 0;

    ::std::vector< ::std::vector< VDataSeriesGroup > >::const_iterator       aZSlotIter = m_aZSlots.begin();
    const ::std::vector< ::std::vector< VDataSeriesGroup > >::const_iterator aZSlotEnd = m_aZSlots.end();

    for( ; aZSlotIter != aZSlotEnd; aZSlotIter++ )
    {
        ::std::vector< VDataSeriesGroup >::const_iterator       aXSlotIter = aZSlotIter->begin();
        const ::std::vector< VDataSeriesGroup >::const_iterator aXSlotEnd = aZSlotIter->end();

        for( ; aXSlotIter != aXSlotEnd; aXSlotIter++ )
        {
=====================================================================
Found a 15 line (105 tokens) duplication in the following files: 
Starting at line 175 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/DataInterpreter.cxx
Starting at line 185 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/XYDataInterpreter.cxx

        ContainerHelper::SequenceToVector( aInterpretedData.UnusedData ));

    sal_Int32 i=0;
    Sequence< Reference< XDataSeries > > aSeries( FlattenSequence( aInterpretedData.Series ));
    const sal_Int32 nCount = aSeries.getLength();
    for( ; i<nCount; ++i )
    {
        try
        {
            Reference< data::XDataSource > xSeriesSource( aSeries[i], uno::UNO_QUERY_THROW );
            Sequence< Reference< data::XLabeledDataSequence > > aNewSequences;

            // values-y
            Reference< data::XLabeledDataSequence > xValuesY(
                DataSeriesHelper::getDataSequenceByRole( xSeriesSource, C2U("values-y"), false ));
=====================================================================
Found a 20 line (105 tokens) duplication in the following files: 
Starting at line 346 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 340 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx

                        &pInterface, pTD, cpp_acquire );
                    pInterface->release();
                    TYPELIB_DANGER_RELEASE( pTD );
                    *(void **)pRegisterReturn = pCallStack[0];
                    eRet = typelib_TypeClass_ANY;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				pCallStack, pRegisterReturn );
		}
		break;
	}
=====================================================================
Found a 27 line (105 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/baside2.cxx
Starting at line 331 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uiview/srcview.cxx

    return eRet;
}
/*-----------------18.11.96 08.21-------------------

--------------------------------------------------*/

void lcl_ConvertTabsToSpaces( String& rLine )
{
	if ( rLine.Len() )
	{
		USHORT nPos = 0;
		USHORT nMax = rLine.Len();
		while ( nPos < nMax )
		{
			if ( rLine.GetChar(nPos) == '\t' )
			{
				// Nicht 4 Blanks, sondern an 4er TabPos:
				String aBlanker;
				aBlanker.Fill( ( 4 - ( nPos % 4 ) ), ' ' );
				rLine.Erase( nPos, 1 );
				rLine.Insert( aBlanker, nPos );
				nMax = rLine.Len();
			}
			nPos++;	// Nicht optimal, falls Tab, aber auch nicht verkehrt...
		}
	}
}
=====================================================================
Found a 14 line (105 tokens) duplication in the following files: 
Starting at line 654 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessiblelistitem.cxx
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/accessibility/source/standard/vclxaccessiblemenuitem.cxx

			Reference< datatransfer::clipboard::XClipboard > xClipboard = pWindow->GetClipboard();
			if ( xClipboard.is() )
			{
				::rtl::OUString sText( getTextRange( nStartIndex, nEndIndex ) );

				::vcl::unohelper::TextDataObject* pDataObj = new ::vcl::unohelper::TextDataObject( sText );
				const sal_uInt32 nRef = Application::ReleaseSolarMutex();
				xClipboard->setContents( pDataObj, NULL );

				Reference< datatransfer::clipboard::XFlushableClipboard > xFlushableClipboard( xClipboard, uno::UNO_QUERY );
				if( xFlushableClipboard.is() )
					xFlushableClipboard->flushClipboard();
				
				Application::AcquireSolarMutex( nRef );
=====================================================================
Found a 21 line (104 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx

	if( !aSecurityCtx.is() )
		throw RuntimeException() ;

	//Get the encryption template
	Reference< XXMLElementWrapper > xTemplate = aTemplate->getTemplate() ;
	if( !xTemplate.is() ) {
		throw RuntimeException() ;
	}

	Reference< XUnoTunnel > xTplTunnel( xTemplate , UNO_QUERY ) ;
	if( !xTplTunnel.is() ) {
		throw RuntimeException() ;
	}

	XMLElementWrapper_XmlSecImpl* pTemplate =
        reinterpret_cast<XMLElementWrapper_XmlSecImpl*>(
            sal::static_int_cast<sal_uIntPtr>(
                xTplTunnel->getSomething( XMLElementWrapper_XmlSecImpl::getUnoTunnelImplementationId() )));
	if( pTemplate == NULL ) {
		throw RuntimeException() ;
	}
=====================================================================
Found a 15 line (104 tokens) duplication in the following files: 
Starting at line 101 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ControlOASISTContext.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/FrameOOoTContext.cxx

	Reference< XAttributeList > xFrameAttrList( pFrameMutableAttrList );

	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
=====================================================================
Found a 8 line (104 tokens) duplication in the following files: 
Starting at line 737 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtexppr.cxx
Starting at line 810 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtexppr.cxx

			pBottomBorderState->maValue >>= aBottom;
			if( aLeft.Color == aRight.Color && aLeft.InnerLineWidth == aRight.InnerLineWidth &&
				aLeft.OuterLineWidth == aRight.OuterLineWidth && aLeft.LineDistance == aRight.LineDistance &&
				aLeft.Color == aTop.Color && aLeft.InnerLineWidth == aTop.InnerLineWidth &&
				aLeft.OuterLineWidth == aTop.OuterLineWidth && aLeft.LineDistance == aTop.LineDistance &&
				aLeft.Color == aBottom.Color && aLeft.InnerLineWidth == aBottom.InnerLineWidth &&
				aLeft.OuterLineWidth == aBottom.OuterLineWidth && aLeft.LineDistance == aBottom.LineDistance )
			{
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 1925 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx
Starting at line 1982 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx

void XMLShapeExport::ImpExportPluginShape(
	const uno::Reference< drawing::XShape >& xShape,
	XmlShapeType, sal_Int32 nFeatures, com::sun::star::awt::Point* pRefPoint)
{
	const uno::Reference< beans::XPropertySet > xPropSet(xShape, uno::UNO_QUERY);
	if(xPropSet.is())
	{
		// Transformation
		ImpExportNewTrans(xPropSet, nFeatures, pRefPoint);

		sal_Bool bCreateNewline( (nFeatures & SEF_EXPORT_NO_WS) == 0 ); // #86116#/#92210#
		SvXMLElementExport aElement( mrExport, XML_NAMESPACE_DRAW,
								  XML_FRAME, bCreateNewline, sal_True );

		// export plugin url
		OUString aStr;
		xPropSet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "PluginURL" ) ) ) >>= aStr;
=====================================================================
Found a 14 line (104 tokens) duplication in the following files: 
Starting at line 142 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx
Starting at line 549 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/XMLNumberStyles.cxx

	virtual ~SdXMLNumberFormatMemberImportContext();

	virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
								   const ::rtl::OUString& rLocalName,
								   const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );

	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );

	virtual void EndElement();

	virtual void Characters( const ::rtl::OUString& rChars );
};

TYPEINIT1( SdXMLNumberFormatMemberImportContext, SvXMLImportContext );
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 1477 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLPlotAreaContext.cxx
Starting at line 1540 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLPlotAreaContext.cxx

	if( mxStockPropProvider.is())
	{
		sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
		rtl::OUString sAutoStyleName;

		for( sal_Int16 i = 0; i < nAttrCount; i++ )
		{
			rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
			rtl::OUString aLocalName;
			USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );

			if( nPrefix == XML_NAMESPACE_CHART &&
				IsXMLToken( aLocalName, XML_STYLE_NAME ) )
			{
				sAutoStyleName = xAttrList->getValueByIndex( i );
			}
		}
=====================================================================
Found a 21 line (104 tokens) duplication in the following files: 
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/content.cxx
Starting at line 329 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/content.cxx

	ResultSetForQueryFactory( 
        const uno::Reference< lang::XMultiServiceFactory >& xSMgr,
        const uno::Reference< ucb::XContentProvider >&  xProvider,
        sal_Int32 nOpenMode,
        const uno::Sequence< beans::Property >& seq,
        const uno::Sequence< ucb::NumberedSortingInfo >& seqSort,
        URLParameter aURLParameter,
        Databases* pDatabases )
		: m_xSMgr( xSMgr ),
		  m_xProvider( xProvider ),
		  m_nOpenMode( nOpenMode ),
		  m_seq( seq ),
		  m_seqSort( seqSort ),
		  m_aURLParameter( aURLParameter ),
		  m_pDatabases( pDatabases )
	{
	}

	ResultSetBase* createResultSet()
	{
		return new ResultSetForQuery( m_xSMgr,
=====================================================================
Found a 23 line (104 tokens) duplication in the following files: 
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 439 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

	lRet = ::RegSetValueEx(hDataKey, CXMergeFilter::m_pszPXLExportCLSID, 0, REG_SZ, (LPBYTE)_T(""), (1 * sizeof(TCHAR)));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

	::RegCloseKey(hKey);		hKey = NULL;
	::RegCloseKey(hDataKey);	hDataKey = NULL;



	/*
	 * Following calls create the HKEY_CLASSES_ROOT\CLSID entry for the Calc import filter.
	 *
	 * Note that import are export are relative to the WinCE device, so files are 
	 * exported to the desktop format.
	 */
	// Get a handle to the CLSID key
	lRet = ::RegOpenKeyEx(HKEY_CLASSES_ROOT, _T("CLSID"), 0, KEY_ALL_ACCESS, &hKey);
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	// Create the CLSID key for the XMergeFilter
	lRet = ::RegCreateKeyEx(hKey, CXMergeFilter::m_pszPXLImportCLSID, 0, _T(""), 0, KEY_ALL_ACCESS, NULL, &hKey, NULL);
=====================================================================
Found a 21 line (104 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 526 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

				(::_tcslen(CXMergeFilter::m_pszPXLImportExt) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	::RegCloseKey(hKey);		hKey = NULL;
	::RegCloseKey(hDataKey);	hDataKey = NULL;



	/*
	 * Following calls create the entries for the filter in 
	 * HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\Filters
	 */
	lRet = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Microsoft\\Windows CE Services\\Filters"), 
				0, KEY_ALL_ACCESS, &hKey);
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

	// Add in defaults for import and export
	_snprintf(sTemp, _MAX_PATH +1, "%c%s\0", '.', CXMergeFilter::m_pszPXLExportExt);
=====================================================================
Found a 23 line (104 tokens) duplication in the following files: 
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 323 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

	lRet = ::RegSetValueEx(hDataKey, CXMergeFilter::m_pszPSWImportCLSID, 0, REG_SZ, (LPBYTE)_T(""), (1 * sizeof(TCHAR)));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

	::RegCloseKey(hKey);		hKey = NULL;
	::RegCloseKey(hDataKey);	hDataKey = NULL;



	/*
	 * Following calls create the HKEY_CLASSES_ROOT\CLSID entry for the Calc export filter.
	 *
	 * Note that import are export are relative to the WinCE device, so files are 
	 * exported to the desktop format.
	 */

	// Get a handle to the CLSID key
	lRet = ::RegOpenKeyEx(HKEY_CLASSES_ROOT, _T("CLSID"), 0, KEY_ALL_ACCESS, &hKey);
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

	// Create the CLSID key for the XMerge Filter
	lRet = ::RegCreateKeyEx(hKey, CXMergeFilter::m_pszPXLExportCLSID, 0, _T(""), 
=====================================================================
Found a 22 line (104 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/source/activesync/XMergeSync.cpp

				(::_tcslen(CXMergeFilter::m_pszPXLExportExt) * sizeof(TCHAR) + (1 * sizeof(TCHAR))));
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);


	::RegCloseKey(hKey);		hKey = NULL;
	::RegCloseKey(hDataKey);	hDataKey = NULL;




	/*
	 * Following calls create the entries for the filter in 
	 * HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\Filters
	 */

	lRet = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Microsoft\\Windows CE Services\\Filters"), 
				0, KEY_ALL_ACCESS, &hKey);
	if (lRet != ERROR_SUCCESS) 
		return _signalRegError(lRet, hKey, hDataKey);

	_snprintf(sTemp, _MAX_PATH + 1, "%c%s\\InstalledFilters\0", '.', CXMergeFilter::m_pszPXLImportExt);
=====================================================================
Found a 5 line (104 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/crop_mask.h

   0xfc, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
=====================================================================
Found a 19 line (104 tokens) duplication in the following files: 
Starting at line 9667 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx
Starting at line 9844 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/pdfwriter_impl.cxx

                if( eType == PDFWriter::Paragraph	||
                    eType == PDFWriter::Heading		||
                    eType == PDFWriter::H1			||
                    eType == PDFWriter::H2			||
                    eType == PDFWriter::H3			||
                    eType == PDFWriter::H4			||
                    eType == PDFWriter::H5			||
                    eType == PDFWriter::H6			||
                    eType == PDFWriter::List		||
                    eType == PDFWriter::ListItem	||
                    eType == PDFWriter::LILabel		||
                    eType == PDFWriter::LIBody		||
                    eType == PDFWriter::Table		||
                    eType == PDFWriter::TableRow	||
                    eType == PDFWriter::TableHeader	||
                    eType == PDFWriter::TableData )
                {
                    bInsert = true;
                }
=====================================================================
Found a 13 line (104 tokens) duplication in the following files: 
Starting at line 1975 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx
Starting at line 1993 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/gdimtf.cxx

				MetaBmpScaleAction* pAct = (MetaBmpScaleAction*) pAction;

				ShortToSVBT16( pAct->GetType(), aBT16 );
				nCrc = rtl_crc32( nCrc, aBT16, 2 );

				UInt32ToSVBT32( pAct->GetBitmap().GetChecksum(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetPoint().X(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );

				UInt32ToSVBT32( pAct->GetPoint().Y(), aBT32 );
				nCrc = rtl_crc32( nCrc, aBT32, 4 );
=====================================================================
Found a 20 line (104 tokens) duplication in the following files: 
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/workben/myucp/myucp_datasupplier.cxx

DataSupplier::queryPropertyValues( sal_uInt32 nIndex  )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
		uno::Reference< sdbc::XRow > xRow = m_pImpl->m_aResults[ nIndex ]->xRow;
		if ( xRow.is() )
		{
			// Already cached.
			return xRow;
		}
	}

	if ( getResult( nIndex ) )
	{
		uno::Reference< sdbc::XRow > xRow = Content::getPropertyValues(
									m_pImpl->m_xSMgr,
									getResultSet()->getProperties(),
									m_pImpl->m_aResults[ nIndex ]->rData,
=====================================================================
Found a 34 line (104 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpdynresultset.cxx
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/xmlhelp/source/cxxhelp/provider/resultset.cxx

	const vos::ORef< Content >& rxContent,
	const OpenCommandArgument2& rCommand,
	const Reference< XCommandEnvironment >& rxEnv,
	ResultSetFactory* pFactory )
	: ResultSetImplHelper( rxSMgr, rCommand ),
	  m_xContent( rxContent ),
	  m_xEnv( rxEnv ),
	  m_pFactory( pFactory )
{
}

DynamicResultSet::~DynamicResultSet()
{
	delete m_pFactory;
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1 = Reference< XResultSet >( m_pFactory->createResultSet() );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
	m_xResultSet1 = Reference< XResultSet >( m_pFactory->createResultSet() );

	m_xResultSet2 = m_xResultSet1;
}
=====================================================================
Found a 23 line (104 tokens) duplication in the following files: 
Starting at line 124 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/command.cxx
Starting at line 150 of /local/ooo-build/ooo-build/src/oog680-m3/tools/bootstrp/command.cxx

CommandLine::CommandLine(const CommandLine& CCommandLine, BOOL bWrite)
/*****************************************************************************/
				: bTmpWrite(bWrite)
{
	CommandBuffer = new char [1];
	if (CommandBuffer == NULL) {
		//cout << "Error: nospace" << endl;
		exit(0);
	}
	nArgc = 0;
	ppArgv = new char * [1];
	ppArgv[0] = NULL;

	ComShell = new char [128];
	char* pTemp = getenv("COMMAND_SHELL");
	if(!pTemp)
		strcpy(ComShell,COMMAND_SHELL);
	else
		strcpy(ComShell,pTemp);

	strcpy(&ComShell[strlen(ComShell)]," -C ");

	BuildCommand(CCommandLine.CommandBuffer);
=====================================================================
Found a 20 line (104 tokens) duplication in the following files: 
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/flddok.cxx
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/fldui/fldref.cxx

		if(!IsRefresh() && sUserData.GetToken(0, ';').
								EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
		{
			String sVal = sUserData.GetToken(1, ';');
			USHORT nVal = sVal.ToInt32();
			if(nVal != USHRT_MAX)
			{
				for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
					if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
					{
						aTypeLB.SelectEntryPos(i);
						break;
					}
			}
		}
	}
	TypeHdl(0);

	if (IsFldEdit())
	{
=====================================================================
Found a 20 line (104 tokens) duplication in the following files: 
Starting at line 2136 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx
Starting at line 2504 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dochdl/swdtflvr.cxx

		switch( nAction )
		{
		case SW_PASTESDR_INSERT:
			SwTransferable::SetSelInShell( rSh, FALSE, pPt );
			rSh.Insert( sURL, aEmptyStr, aGrf );
			break;

		case SW_PASTESDR_REPLACE:
			if( rSh.IsObjSelected() )
			{
				rSh.ReplaceSdrObj( sURL, aEmptyStr, &aGrf );
				Point aPt( pPt ? *pPt : rSh.GetCrsrDocPos() );
				SwTransferable::SetSelInShell( rSh, TRUE, &aPt );
			}
			else
				rSh.ReRead( sURL, aEmptyStr, &aGrf );
			break;

		case SW_PASTESDR_SETATTR:
			if( SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK == nFmt )
=====================================================================
Found a 19 line (104 tokens) duplication in the following files: 
Starting at line 686 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx
Starting at line 822 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx

            SwFrmFmt *pFrmFmt = pDoc->Insert( *pTxtCrsr->GetPaM(),
                                            ::svt::EmbeddedObjectRef( xObj, embed::Aspects::MSOLE_CONTENT ),
                                            &aItemSet,
											NULL,
											NULL);
            SwXFrame *pXFrame = SwXFrames::GetObject( *pFrmFmt, FLYCNTTYPE_OLE );
            xPropSet = pXFrame;
            if( pDoc->GetDrawModel() )
                SwXFrame::GetOrCreateSdrObject(
                        static_cast<SwFlyFrmFmt*>( pXFrame->GetFrmFmt() ) ); // req for z-order
        }
    }
    catch ( uno::Exception& )
    {
    }

	return xPropSet;
}
uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertFloatingFrame(
=====================================================================
Found a 12 line (104 tokens) duplication in the following files: 
Starting at line 2278 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx
Starting at line 2319 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx

	throw( lang::IndexOutOfBoundsException, lang::WrappedTargetException,
	 			uno::RuntimeException)
{
	vos::OGuard aGuard(Application::GetSolarMutex());
	const sal_Bool bDescriptor = rParent.IsDescriptor();
	SwSectionFmt* pSectFmt = rParent.GetFmt();
	if(!pSectFmt && !bDescriptor)
		throw uno::RuntimeException();
	if(nIndex < 0 || nIndex > MAXLEVEL)
		throw lang::IndexOutOfBoundsException();
	SwTOXBase* pTOXBase = bDescriptor ? &rParent.GetProperties_Impl()->GetTOXBase() :
				(SwTOXBaseSection*)pSectFmt->GetSection();
=====================================================================
Found a 11 line (104 tokens) duplication in the following files: 
Starting at line 1753 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoframe.cxx
Starting at line 3186 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoframe.cxx

	if(pFmt)
	{
		SwDoc* pDoc = pFmt->GetDoc();
		const SwFmtCntnt* pCnt = &pFmt->GetCntnt();
		DBG_ASSERT(	pCnt->GetCntntIdx() &&
					   pDoc->GetNodes()[ pCnt->GetCntntIdx()->
										GetIndex() + 1 ]->GetOLENode(), "kein OLE-Node?")

		SwOLENode* pOleNode =  pDoc->GetNodes()[ pCnt->GetCntntIdx()
										->GetIndex() + 1 ]->GetOLENode();
        uno::Reference < embed::XEmbeddedObject > xIP = pOleNode->GetOLEObj().GetOleRef();
=====================================================================
Found a 20 line (104 tokens) duplication in the following files: 
Starting at line 3602 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/tblrwcl.cxx
Starting at line 4136 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/tblrwcl.cxx

	if( !rParam.bBigger )
		pFndBox->SetTableLines( rParam.aBoxes, rTbl );
	else
	{
		_FndPara aPara( rParam.aBoxes, pFndBox );
		rTbl.GetTabLines().ForEach( &_FndLineCopyCol, &aPara );
		ASSERT( pFndBox->GetLines().Count(), "Wo sind die Boxen" );
		pFndBox->SetTableLines( rTbl );

		if( ppUndo )
			rTmpLst.Insert( &rTbl.GetTabSortBoxes(), 0, rTbl.GetTabSortBoxes().Count() );
	}

	//Lines fuer das Layout-Update heraussuchen.
	pFndBox->DelFrms( rTbl );

	// TL_CHART2: it is currently unclear if sth has to be done here.

	return pFndBox;
}
=====================================================================
Found a 25 line (104 tokens) duplication in the following files: 
Starting at line 317 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/fillctrl.cxx
Starting at line 367 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/fillctrl.cxx
Starting at line 420 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/tbxctrls/fillctrl.cxx

					String aString( pBitmapItem->GetName() );
					// Bitmap aBitmap( pBitmapItem->GetValue() );

					// SvxBitmapListItem aItem( *(const SvxBitmapListItem*)(
					// 	SfxObjectShell::Current()->GetItem( SID_BITMAP_LIST ) ) );
					pFillAttrLB->SelectEntry( aString );
					// NEU
					// Pruefen, ob Eintrag nicht in der Liste ist
					if( pFillAttrLB->GetSelectEntry() != aString )
					{
						USHORT nCount = pFillAttrLB->GetEntryCount();
						String aTmpStr;
						if( nCount > 0 )
						{
							//Letzter Eintrag wird auf temporaeren Eintrag geprueft
							aTmpStr = pFillAttrLB->GetEntry( nCount - 1 );
							if(  aTmpStr.GetChar(0) == TMP_STR_BEGIN &&
								 aTmpStr.GetChar(aTmpStr.Len()-1) == TMP_STR_END )
							{
								pFillAttrLB->RemoveEntry( nCount - 1 );
							}
						}
						aTmpStr = TMP_STR_BEGIN;
						aTmpStr += aString;
						aTmpStr += TMP_STR_END;
=====================================================================
Found a 13 line (104 tokens) duplication in the following files: 
Starting at line 226 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svrtf/svxrtf.cxx
Starting at line 1024 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/rtf/rtffld.cxx

			break;

		case RTF_LINE:			cCh = '\n';	goto INSINGLECHAR;
		case RTF_TAB:			cCh = '\t';	goto INSINGLECHAR;
		case RTF_SUBENTRYINDEX:	cCh = ':';	goto INSINGLECHAR;
		case RTF_EMDASH:		cCh = 151;	goto INSINGLECHAR;
		case RTF_ENDASH:		cCh = 150;	goto INSINGLECHAR;
		case RTF_BULLET:		cCh = 149;	goto INSINGLECHAR;
		case RTF_LQUOTE:		cCh = 145;	goto INSINGLECHAR;
		case RTF_RQUOTE:		cCh = 146;	goto INSINGLECHAR;
		case RTF_LDBLQUOTE:		cCh = 147;	goto INSINGLECHAR;
		case RTF_RDBLQUOTE:		cCh = 148;	goto INSINGLECHAR;
INSINGLECHAR:
=====================================================================
Found a 19 line (104 tokens) duplication in the following files: 
Starting at line 3921 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 4112 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_UserForm::Read(SvStorageStream *pS)
{
    long nStart = pS->Tell();
	*pS >> nIdentifier;
	DBG_ASSERT(0x400==nIdentifier,
			"A control that has a different identifier");
	*pS >> nFixedAreaLen;
	pS->Read(pBlockFlags,4);

	if (pBlockFlags[0] & 0x01)
    {
            DBG_ASSERT(!this, "ARSE");
    }
	if (pBlockFlags[0] & 0x02)
		*pS >> mnBackColor;
	if (pBlockFlags[0] & 0x04)
        *pS >> mnForeColor;
    if (pBlockFlags[0] & 0x08)
        *pS >> nChildrenA;
=====================================================================
Found a 15 line (104 tokens) duplication in the following files: 
Starting at line 1520 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit4.cxx
Starting at line 1651 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit4.cxx

	aWrp.Convert();

	//if (!bIsInteractive)
	//SetUpdateMode( TRUE, 0, TRUE );

    if ( !bMultipleDoc )
    {
        pEditView->pImpEditView->DrawSelection();
        if ( aCurSel.Max().GetIndex() > aCurSel.Max().GetNode()->Len() )
            aCurSel.Max().GetIndex() = aCurSel.Max().GetNode()->Len();
        aCurSel.Min() = aCurSel.Max();
        pEditView->pImpEditView->SetEditSelection( aCurSel );
        pEditView->pImpEditView->DrawSelection();
        pEditView->ShowCursor( sal_True, sal_False );
    }
=====================================================================
Found a 19 line (104 tokens) duplication in the following files: 
Starting at line 626 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tplnedef.cxx
Starting at line 532 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tplneend.cxx

                if ( aName == pLineEndList->GetLineEnd( i )->GetName() )
					bDifferent = FALSE;
		}

		//CHINA001 SvxNameDialog* pDlg = new SvxNameDialog( DLGWIN, aName, aDesc );
		SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
		DBG_ASSERT(pFact, "Dialogdiet fail!");//CHINA001
		AbstractSvxNameDialog* pDlg = pFact->CreateSvxNameDialog( DLGWIN, aName, aDesc, RID_SVXDLG_NAME );
		DBG_ASSERT(pDlg, "Dialogdiet fail!");//CHINA001
		BOOL bLoop = TRUE;

		while ( bLoop && pDlg->Execute() == RET_OK )
		{
			pDlg->GetName( aName );
			bDifferent = TRUE;

			for( long i = 0; i < nCount && bDifferent; i++ )
			{
                if( aName == pLineEndList->GetLineEnd( i )->GetName() )
=====================================================================
Found a 13 line (104 tokens) duplication in the following files: 
Starting at line 1663 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx
Starting at line 1740 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx

			aGrfBrushItems.Insert(pInfo, nNumMenuGalleryItems + i);

			Size aSize(aBitmap.GetSizePixel());
			if(aSize.Width() > MAX_BMP_WIDTH || aSize.Height() > MAX_BMP_HEIGHT)
			{
				BOOL bWidth = aSize.Width() > aSize.Height();
				double nScale = bWidth ?
									(double)MAX_BMP_WIDTH / (double)aSize.Width():
									(double)MAX_BMP_HEIGHT / (double)aSize.Height();
				aBitmap.Scale(nScale, nScale);
			}
			Image aImage(aBitmap);
			pPopup->InsertItem(pInfo->nItemId,*pStr,aImage);
=====================================================================
Found a 26 line (104 tokens) duplication in the following files: 
Starting at line 1628 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgctrl.cxx
Starting at line 1716 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgctrl.cxx

void FillAttrLB::SelectEntryByList( const XBitmapList* pList, const String& rStr,
                            const Bitmap& /*rBmp*/)
{
	long nCount = pList->Count();
	XBitmapEntry* pEntry;
	BOOL bFound = FALSE;

	long i;
	for( i = 0; i < nCount && !bFound; i++ )
	{
        pEntry = pList->GetBitmap( i );

		String aStr = pEntry->GetName();
		// Bitmap aBmp = pEntry->GetBitmap();

		if( rStr == aStr )
		{
			bFound = TRUE;
		}
		/*
		if( rStr == aStr && rBmp == aBmp )
			bFound = TRUE; */
	}
	if( bFound )
		SelectEntryPos( (USHORT) ( i - 1 ) );
}
=====================================================================
Found a 11 line (104 tokens) duplication in the following files: 
Starting at line 5409 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 5487 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffCalculationData mso_sptDoubleWaveCalc[] =
{
	{ 0x2000, { DFF_Prop_adjustValue, 0, 0 } },	//400 (vert.adj)
	{ 0x8000, { 21600, 0, 0x400 } },			//401
	{ 0x2000, { DFF_Prop_adjust2Value, 0, 0 } },//402 (horz.adj)
	{ 0x2000, { 0x402, 0, 10800 } },			//403 -2160 -> 2160 (horz.adj)
	{ 0x2001, { 0x403, 2, 1 } },				//404 -4320 -> 4320 (horz.adj)
	{ 0x2003, { 0x404, 0, 0 } },				//405 abs( 0x404 )	(horz.adj)
	{ 0x8000, { 4320, 0, 0x405 } },				//406 -> not used
	{ 0xa006, { 0x403, 0, 0x405 } },			//407
	{ 0x4001, { 7900, 0x400, 2230 } },			//408 0 -> 7900	(vert.adj)
=====================================================================
Found a 12 line (104 tokens) duplication in the following files: 
Starting at line 1623 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1676 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1732 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffCalculationData mso_sptQuadArrowCalloutCalc[] =
{
	{ 0x2000, { DFF_Prop_adjustValue, 0, 0 } },
	{ 0x2000, { DFF_Prop_adjust2Value, 0, 0 } },
	{ 0x2000, { DFF_Prop_adjust3Value, 0, 0 } },
	{ 0x2000, { DFF_Prop_adjust4Value, 0, 0 } },
	{ 0x8000, { 21600, 0, 0x0400 } },
	{ 0x8000, { 21600, 0, 0x0401 } },
	{ 0x8000, { 21600, 0, 0x0402 } },
	{ 0x8000, { 21600, 0, 0x0403 } }
};
static const sal_Int32 mso_sptQuadArrowCalloutDefault[] =
=====================================================================
Found a 12 line (104 tokens) duplication in the following files: 
Starting at line 753 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
Starting at line 816 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx

				std::vector< FWParagraphData >::iterator aParagraphIEnd = aTextAreaIter->vParagraphs.end();
				while( aParagraphIter != aParagraphIEnd )
				{
					std::vector< FWCharacterData >::iterator aCharacterIter( aParagraphIter->vCharacters.begin() );
					std::vector< FWCharacterData >::iterator aCharacterIEnd( aParagraphIter->vCharacters.end() );
					while ( aCharacterIter != aCharacterIEnd )
					{
						std::vector< PolyPolygon >::iterator aOutlineIter = aCharacterIter->vOutlines.begin();
						std::vector< PolyPolygon >::iterator aOutlineIEnd = aCharacterIter->vOutlines.end();
						while( aOutlineIter != aOutlineIEnd )
						{
							PolyPolygon& rPolyPoly = *aOutlineIter;
=====================================================================
Found a 10 line (104 tokens) duplication in the following files: 
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
Starting at line 598 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/test/registry_tdprovider/testregistrytdprovider.cxx

            RTL_CONSTASCII_USTRINGPARAM("test.registrytdprovider.Service3")),
        service->getName());
    assertEqual< sal_Int32 >(0, service->getMandatoryServices().getLength());
    assertEqual< sal_Int32 >(0, service->getOptionalServices().getLength());
    assertEqual< sal_Int32 >(0, service->getMandatoryInterfaces().getLength());
    assertEqual< sal_Int32 >(0, service->getOptionalInterfaces().getLength());
    assertEqual< bool >(true, service->isSingleInterfaceBased());
    assertEqual(
        rtl::OUString(
            RTL_CONSTASCII_USTRINGPARAM("test.registrytdprovider.Typedef2")),
=====================================================================
Found a 16 line (104 tokens) duplication in the following files: 
Starting at line 706 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/uriproc/UriReferenceFactory.cxx
Starting at line 149 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx

{

css::uno::Reference< css::uno::XInterface > create(
    css::uno::Reference< css::uno::XComponentContext > const & context)
    SAL_THROW((css::uno::Exception))
{
    try {
        return static_cast< cppu::OWeakObject * >(new Factory(context));
    } catch (std::bad_alloc &) {
        throw css::uno::RuntimeException(
            rtl::OUString::createFromAscii("std::bad_alloc"), 0);
    }
}

rtl::OUString getImplementationName() {
    return rtl::OUString::createFromAscii(
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 1627 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/appuno.cxx
Starting at line 1672 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/appuno.cxx

                                        const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArgs )
              throw (::com::sun::star::uno::RuntimeException)
{
    ::vos::OGuard aGuard( Application::GetSolarMutex() );

    sal_uInt32 nPropertyCount = lArgs.getLength();
    ::rtl::OUString aReferer;
	for( sal_uInt32 nProperty=0; nProperty<nPropertyCount; ++nProperty )
	{
        if( lArgs[nProperty].Name == ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Referer")) )
		{
            lArgs[nProperty].Value >>= aReferer;
            break;
        }
    }

    ::com::sun::star::uno::Any aAny;
=====================================================================
Found a 13 line (104 tokens) duplication in the following files: 
Starting at line 579 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/appopen.cxx
Starting at line 630 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/appopen.cxx

            pNew->ClearItem( SID_PROGRESS_STATUSBAR_CONTROL );
			::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs;
            TransformItems( SID_OPENDOC, *pNew, aArgs );

            sal_Int32 nLength = aArgs.getLength();
            aArgs.realloc( nLength + 1 );

            aArgs[nLength].Name = DEFINE_CONST_UNICODE("Title");
            aArgs[nLength].Value <<= ::rtl::OUString( xDoc->GetTitle( SFX_TITLE_DETECT ) );

            xModel->attachResource( ::rtl::OUString(), aArgs );
            delete pNew;
		}
=====================================================================
Found a 23 line (104 tokens) duplication in the following files: 
Starting at line 1129 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviews1.cxx
Starting at line 1198 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviews1.cxx

            GetViewShellBase().GetDrawController().FireSwitchCurrentPage(pMaster);

			SdrPageView* pNewPageView = mpDrawView->GetSdrPageView();

			if (pNewPageView)
			{
				pNewPageView->SetVisibleLayers( mpFrameView->GetVisibleLayers() );
				pNewPageView->SetPrintableLayers( mpFrameView->GetPrintableLayers() );
				pNewPageView->SetLockedLayers( mpFrameView->GetLockedLayers() );

				if (mePageKind == PK_NOTES)
				{
					pNewPageView->SetHelpLines( mpFrameView->GetNotesHelpLines() );
				}
				else if (mePageKind == PK_HANDOUT)
				{
					pNewPageView->SetHelpLines( mpFrameView->GetHandoutHelpLines() );
				}
				else
				{
					pNewPageView->SetHelpLines( mpFrameView->GetStandardHelpLines() );
				}
			}
=====================================================================
Found a 32 line (104 tokens) duplication in the following files: 
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unosrch.cxx
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unosrch.cxx

		if( (aAny >>= xGroupShape ) && xGroupShape->getCount() > 0 )
		{
			pContext = new SearchContext_impl( xGroupShape, pContext );
			xShape = pContext->firstShape();
		}
		else
		{
			if( pContext )
				xShape = pContext->nextShape();
			else
				xShape = NULL;
		}

		// test parent contexts for next shape if none
		// is found in the current context
		while( pContext && !xShape.is() )
		{
			if( pContext->getParent() )
			{
				SearchContext_impl* pOldContext = pContext;
				pContext = pContext->getParent();
				delete pOldContext;
				xShape = pContext->nextShape();
			}
			else
			{
				delete pContext;
				pContext = NULL;
				xShape = NULL;
			}
		}
	}
=====================================================================
Found a 14 line (104 tokens) duplication in the following files: 
Starting at line 568 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx
Starting at line 729 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/swxml.cxx

	uno::Reference< container::XChild > xChild( xModelComp, uno::UNO_QUERY );
	if( xChild.is() )
	{
		uno::Reference< beans::XPropertySet > xParentSet( xChild->getParent(), uno::UNO_QUERY );
		if( xParentSet.is() )
		{
			uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xParentSet->getPropertySetInfo() );
			OUString sPropName( RTL_CONSTASCII_USTRINGPARAM("BuildId" ) );
			if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(sPropName) )
			{
				xInfoSet->setPropertyValue( sPropName, xParentSet->getPropertyValue(sPropName) );
			}
		}
	}
=====================================================================
Found a 20 line (104 tokens) duplication in the following files: 
Starting at line 674 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/docuno.cxx
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/docuno.cxx

									const uno::Sequence<beans::PropertyValue>& rOptions )
								throw(lang::IllegalArgumentException, uno::RuntimeException)
{
	ScUnoGuard aGuard;
	if (!pDocShell)
		throw uno::RuntimeException();

	ScMarkData aMark;
	ScPrintSelectionStatus aStatus;
	if ( !FillRenderMarkData( aSelection, aMark, aStatus ) )
		throw lang::IllegalArgumentException();

	if ( !pPrintFuncCache || !pPrintFuncCache->IsSameSelection( aStatus ) )
	{
		delete pPrintFuncCache;
		pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus );
	}
	long nTotalPages = pPrintFuncCache->GetPageCount();
	if ( nRenderer >= nTotalPages )
		throw lang::IllegalArgumentException();
=====================================================================
Found a 19 line (104 tokens) duplication in the following files: 
Starting at line 629 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/autofmt.cxx
Starting at line 726 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/table/tautofmt.cxx

    BYTE    nIndex = static_cast< BYTE >( maArray.GetCellIndex( nCol, nRow ) );

	switch( nIndex )
	{
		case  1: cellString = aStrJan;			break;
		case  2: cellString = aStrFeb;			break;
		case  3: cellString = aStrMar;			break;
		case  5: cellString = aStrNorth;		break;
		case 10: cellString = aStrMid;			break;
		case 15: cellString = aStrSouth;		break;
		case  4:
		case 20: cellString = aStrSum;			break;

		case  6:
		case  8:
		case 16:
		case 18:    nVal = nIndex;
					nNum = 5;
					goto MAKENUMSTR;
=====================================================================
Found a 18 line (104 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePageHeader.cxx
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx

uno::Reference<XAccessibleStateSet> SAL_CALL ScAccessiblePreviewCell::getAccessibleStateSet()
						    throw(uno::RuntimeException)
{
	ScUnoGuard aGuard;

	uno::Reference<XAccessibleStateSet> xParentStates;
	if (getAccessibleParent().is())
	{
		uno::Reference<XAccessibleContext> xParentContext = getAccessibleParent()->getAccessibleContext();
		xParentStates = xParentContext->getAccessibleStateSet();
	}
	utl::AccessibleStateSetHelper* pStateSet = new utl::AccessibleStateSetHelper();
	if (IsDefunc(xParentStates))
		pStateSet->AddState(AccessibleStateType::DEFUNC);
    else
    {
	    pStateSet->AddState(AccessibleStateType::ENABLED);
	    pStateSet->AddState(AccessibleStateType::MULTI_LINE);
=====================================================================
Found a 14 line (104 tokens) duplication in the following files: 
Starting at line 479 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlwrap.cxx
Starting at line 568 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/filter/xml/sdxmlwrp.cxx

	uno::Reference< container::XChild > xChild( mxModel, uno::UNO_QUERY );
	if( xChild.is() )
	{
		uno::Reference< beans::XPropertySet > xParentSet( xChild->getParent(), uno::UNO_QUERY );
		if( xParentSet.is() )
		{
			uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xParentSet->getPropertySetInfo() );
			OUString sPropName( RTL_CONSTASCII_USTRINGPARAM("BuildId" ) );
			if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(sPropName) )
			{
				xInfoSet->setPropertyValue( sPropName, xParentSet->getPropertyValue(sPropName) );
			}
		}
	}
=====================================================================
Found a 8 line (104 tokens) duplication in the following files: 
Starting at line 370 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlstyle.cxx
Starting at line 810 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtexppr.cxx

			pBottomBorderState->maValue >>= aBottom;
			if( aLeft.Color == aRight.Color && aLeft.InnerLineWidth == aRight.InnerLineWidth &&
				aLeft.OuterLineWidth == aRight.OuterLineWidth && aLeft.LineDistance == aRight.LineDistance &&
				aLeft.Color == aTop.Color && aLeft.InnerLineWidth == aTop.InnerLineWidth &&
				aLeft.OuterLineWidth == aTop.OuterLineWidth && aLeft.LineDistance == aTop.LineDistance &&
				aLeft.Color == aBottom.Color && aLeft.InnerLineWidth == aBottom.InnerLineWidth &&
				aLeft.OuterLineWidth == aBottom.OuterLineWidth && aLeft.LineDistance == aBottom.LineDistance )
			{
=====================================================================
Found a 12 line (104 tokens) duplication in the following files: 
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1440 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
=====================================================================
Found a 23 line (104 tokens) duplication in the following files: 
Starting at line 1039 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 1088 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

void ScInterpreter::ScMatInv()
{
	if ( MustHaveParamCount( GetByte(), 1 ) )
	{
		ScMatrixRef pMat = GetMatrix();
		if (!pMat)
		{
			SetIllegalParameter();
			return;
		}
		if ( !pMat->IsNumeric() )
		{
			SetNoValue();
			return;
		}
        SCSIZE nC, nR;
        pMat->GetDimensions(nC, nR);
		if ( nC != nR || nC == 0 || (ULONG) nC * nC > ScMatrix::GetElementsMax() )
			SetIllegalParameter();
		else
		{
            // LUP decomposition is done inplace, use copy.
            ScMatrixRef xLU = pMat->Clone();
=====================================================================
Found a 22 line (104 tokens) duplication in the following files: 
Starting at line 3486 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 3529 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

void ScInterpreter::ScRows()
{
	BYTE nParamCount = GetByte();
	ULONG nVal = 0;
	SCCOL nCol1;
	SCROW nRow1;
	SCTAB nTab1;
	SCCOL nCol2;
	SCROW nRow2;
	SCTAB nTab2;
	for (USHORT i = 1; i <= nParamCount; i++)
	{
		switch ( GetStackType() )
		{
			case svSingleRef:
				PopError();
				nVal++;
				break;
			case svDoubleRef:
				PopDoubleRef(nCol1, nRow1, nTab1, nCol2, nRow2, nTab2);
                nVal += static_cast<ULONG>(nTab2 - nTab1 + 1) *
                    static_cast<ULONG>(nRow2 - nRow1 + 1);
=====================================================================
Found a 23 line (104 tokens) duplication in the following files: 
Starting at line 329 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/address.cxx
Starting at line 374 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/address.cxx

lcl_r1c1_get_row( const sal_Unicode* p,
                  const ScAddress::Details& rDetails,
                  ScAddress* pAddr, USHORT* nFlags )
{
    const sal_Unicode *pEnd;
    long int n;
    bool isRelative;

    if( p[0] == '\0' )
        return NULL;

    p++;
    if( (isRelative = (*p == '[') ) != false )
        p++;
    n = sal_Unicode_strtol( p, &pEnd );
    if( NULL == pEnd )
        return NULL;

    if( p == pEnd ) // R is a relative ref with offset 0
    {
        if( isRelative )
            return NULL;
        n = rDetails.nRow;
=====================================================================
Found a 13 line (104 tokens) duplication in the following files: 
Starting at line 275 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpoutput.cxx
Starting at line 1387 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpoutput.cxx

        long nDimCount = xDims->getCount();
        for (long nDim=0; nDim<nDimCount; nDim++)
        {
            uno::Reference<uno::XInterface> xDim =
                    ScUnoHelpFunctions::AnyToInterface( xDims->getByIndex(nDim) );
            uno::Reference<beans::XPropertySet> xDimProp( xDim, uno::UNO_QUERY );
            if ( xDimProp.is() )
            {
                sheet::DataPilotFieldOrientation eDimOrient =
                    (sheet::DataPilotFieldOrientation) ScUnoHelpFunctions::GetEnumProperty(
                        xDimProp, rtl::OUString::createFromAscii(DP_PROP_ORIENTATION),
                        sheet::DataPilotFieldOrientation_HIDDEN );
                if ( ScUnoHelpFunctions::GetBoolProperty( xDimProp,
=====================================================================
Found a 25 line (104 tokens) duplication in the following files: 
Starting at line 827 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/file.cxx
Starting at line 858 of /local/ooo-build/ooo-build/src/oog680-m3/sal/osl/unx/file.cxx

oslFileError osl_copyFile( rtl_uString* ustrFileURL, rtl_uString* ustrDestURL )
{
    char srcPath[PATH_MAX];
    char destPath[PATH_MAX];
    oslFileError eRet;

    OSL_ASSERT( ustrFileURL );
    OSL_ASSERT( ustrDestURL );

    /* convert source url to system path */
    eRet = FileURLToPath( srcPath, PATH_MAX, ustrFileURL );
    if( eRet != osl_File_E_None )
        return eRet;

    /* convert destination url to system path */
    eRet = FileURLToPath( destPath, PATH_MAX, ustrDestURL );
    if( eRet != osl_File_E_None )
        return eRet;

#ifdef MACOSX
    if ( macxp_resolveAlias( srcPath, PATH_MAX ) != 0 || macxp_resolveAlias( destPath, PATH_MAX ) != 0 )
      return oslTranslateFileError( OSL_FET_ERROR, errno );
#endif/* MACOSX */

    return osl_psz_copyFile( srcPath, destPath );
=====================================================================
Found a 14 line (104 tokens) duplication in the following files: 
Starting at line 1404 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 1447 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

																	 GetSeekableTempCopy( xInStream, GetServiceFactory() );

	uno::Sequence< uno::Any > aSeq( 1 );
	aSeq[0] <<= sal_False;
	uno::Reference< lang::XUnoTunnel > xNewElement( m_xPackage->createInstanceWithArguments( aSeq ),
													uno::UNO_QUERY );

	OSL_ENSURE( xNewElement.is(), "Not possible to create a new stream!\n" );
	if ( !xNewElement.is() )
		throw io::IOException(); // TODO:

	uno::Reference< packages::XDataSinkEncrSupport > xPackageSubStream( xNewElement, uno::UNO_QUERY );
	if ( !xPackageSubStream.is() )
		throw uno::RuntimeException(); // TODO
=====================================================================
Found a 24 line (104 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/switchpersistencestream.cxx
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/switchpersistencestream.cxx

	if ( !xInputStream.is() )
		throw uno::RuntimeException();

	sal_Int64 nPos = 0;
	sal_Bool bInOpen = sal_False;
	sal_Bool bOutOpen = sal_False;

	if ( m_pStreamData && m_pStreamData->m_xOrigSeekable.is() )
	{
		// check that the length is the same
		if ( m_pStreamData->m_xOrigSeekable->getLength() != xNewSeekable->getLength() )
			throw uno::RuntimeException();

		// get the current position
		nPos = m_pStreamData->m_xOrigSeekable->getPosition();
		bInOpen = m_pStreamData->m_bInOpen;
		bOutOpen = m_pStreamData->m_bOutOpen;
	}

	xNewSeekable->seek( nPos );

	CloseAll_Impl();

	m_pStreamData = new SPStreamData_Impl( m_xFactory, sal_True,
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 99 of /local/ooo-build/ooo-build/src/oog680-m3/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx

    bool bHome = false;
    bool bAccess = false;
    
    typedef vector<pair<OUString, OUString> >::const_iterator it_prop;
    for (it_prop i = props.begin(); i != props.end(); i++)
    {
        if(! bVendor && sVendorProperty.equals(i->first))
        {
            m_sVendor = i->second;
            bVendor = true;
        }
        else if (!bVersion && sVersionProperty.equals(i->first))
        {
            m_sVersion = i->second;
            bVersion = true;
        }
        else if (!bHome && sHomeProperty.equals(i->first))
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 1366 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 805 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 28 line (104 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx

                *dst ++ = currentChar;
                previousChar = *src ++;
                nCount --;
                continue;
            }
        }

        if (useOffset)
            *p ++ = position++;
        *dst ++ = previousChar;
        previousChar = currentChar;
    }

    if (nCount == 0) {
        if (useOffset)
            *p = position;
        *dst ++ = previousChar;
    }

    *dst = (sal_Unicode) 0;

    newStr->length = sal_Int32(dst - newStr->buffer);
    if (useOffset)
        offset.realloc(newStr->length);
    return OUString( newStr ); // defined in rtl/usrting. The reference count is increased from 0 to 1.
}

} } } }
=====================================================================
Found a 4 line (104 tokens) duplication in the following files: 
Starting at line 453 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2,
=====================================================================
Found a 18 line (104 tokens) duplication in the following files: 
Starting at line 2806 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx
Starting at line 2887 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/hwpreader.cxx

        if (para->hhstr[n]->hh == CH_SPACE && !firstspace)
        {
            makeChars(gstr, l);
            l = 0;
            rstartEl(ascii("text:s"), rList);
            rendEl(ascii("text:s"));
        }
        else if (para->hhstr[n]->hh == CH_END_PARA)
        {
            makeChars(gstr, l);
            l = 0;
            rendEl(ascii("text:span"));
            rendEl(ascii("text:p"));
            break;
        }
        else
        {
			  if( para->hhstr[n]->hh < CH_SPACE )
=====================================================================
Found a 20 line (104 tokens) duplication in the following files: 
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itga/itga.cxx
Starting at line 455 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/itga/itga.cxx

								*mpTGA >> nBlue >> nGreen >> nRed >> nDummy;
								for ( USHORT i = 0; i < ( ( nRunCount & 0x7f ) + 1 ); i++ )
								{
									mpAcc->SetPixel( nY, nX, BitmapColor( nRed, nGreen, nBlue ) );
									nX += nXAdd;
									nXCount++;
									if ( nXCount == mpFileHeader->nImageWidth )
									{
										nX = nXStart;
										nXCount = 0;
										nY += nYAdd;
										nYCount++;
									}
								}
							}
							else						// a raw packet
							{
								for ( USHORT i = 0; i < ( ( nRunCount & 0x7f ) + 1 ); i++ )
								{
									*mpTGA >> nBlue >> nGreen >> nRed >> nDummy;
=====================================================================
Found a 8 line (104 tokens) duplication in the following files: 
Starting at line 1684 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ios2met/ios2met.cxx
Starting at line 1758 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/ios2met/ios2met.cxx

			}
			else {
				nVal=ReadLittleEndian3BytesLong();
				if      ((nFlags&0x40)!=0 && nVal==1) aCol=Color(COL_BLACK);
				else if ((nFlags&0x40)!=0 && nVal==2) aCol=Color(COL_WHITE);
				else if ((nFlags&0x40)!=0 && nVal==4) aCol=Color(COL_WHITE);
				else if ((nFlags&0x40)!=0 && nVal==5) aCol=Color(COL_BLACK);
				else aCol=GetPaletteColor(nVal);
=====================================================================
Found a 12 line (104 tokens) duplication in the following files: 
Starting at line 1713 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx
Starting at line 1845 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/toolbarmanager.cxx

                Reference< XDispatch > xDisp;
                com::sun::star::util::URL aURL;
                if ( m_xFrame.is() )
                {
                    Reference< XDispatchProvider > xProv( m_xFrame, UNO_QUERY );
                    Reference< XURLTransformer > xTrans( m_xServiceManager->createInstance(
                                                            OUString( RTL_CONSTASCII_USTRINGPARAM(
                                                            "com.sun.star.util.URLTransformer" ))), UNO_QUERY );
                    aURL.Complete = OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:ConfigureDialog" ));
                    xTrans->parseStrict( aURL );
                    if ( xProv.is() )
                        xDisp = xProv->queryDispatch( aURL, ::rtl::OUString(), 0 );
=====================================================================
Found a 13 line (104 tokens) duplication in the following files: 
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/controlmenucontroller.cxx
Starting at line 313 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/fontmenucontroller.cxx

        m_xPopupMenu = xPopupMenu;
	    m_xPopupMenu->addMenuListener( Reference< css::awt::XMenuListener >( (OWeakObject*)this, UNO_QUERY ));


        Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance( 
                                                        rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))), 
                                                    UNO_QUERY );
        Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
        
        com::sun::star::util::URL aTargetURL;
        aTargetURL.Complete = m_aCommandURL;
        xURLTransformer->parseStrict( aTargetURL );
        m_xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );
=====================================================================
Found a 28 line (104 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/aqua/FilterHelper.cxx
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFilePicker.cxx

	return m_aSubFilters.getLength();
}

static bool
isFilterString( const rtl::OUString &rFilterString, const char *pMatch )
{
		sal_Int32 nIndex = 0;
		rtl::OUString aToken;
		bool bIsFilter = true;

        rtl::OUString aMatch(rtl::OUString::createFromAscii(pMatch));

		do
		{
			aToken = rFilterString.getToken( 0, ';', nIndex );
			if( !aToken.match( aMatch ) )
			{
				bIsFilter = false;
				break;
			}
		}
		while( nIndex >= 0 );

		return bIsFilter;
}

static rtl::OUString
shrinkFilterName( const rtl::OUString &rFilterName, bool bAllowNoStar = false )
=====================================================================
Found a 16 line (104 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/xforms/submission/submission_get.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/xforms/submission/submission_post.cxx

    apSerialization->serialize();

    // create a commandEnvironment and use the default interaction handler
    CCommandEnvironmentHelper *pHelper = new CCommandEnvironmentHelper;
    if( aInteractionHandler.is() )
        pHelper->m_aInteractionHandler = aInteractionHandler;
    else
        pHelper->m_aInteractionHandler = CSS::uno::Reference< XInteractionHandler >(m_aFactory->createInstance(
            OUString::createFromAscii("com.sun.star.task.InteractionHandler")), UNO_QUERY);
    OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create IntreractionHandler");
    CProgressHandlerHelper *pProgressHelper = new CProgressHandlerHelper;
    pHelper->m_aProgressHandler = CSS::uno::Reference< XProgressHandler >(pProgressHelper);
    // UCB has ownership of environment...
    CSS::uno::Reference< XCommandEnvironment > aEnvironment(pHelper);

    try {
=====================================================================
Found a 43 line (104 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/uno.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svguno.cxx
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilteradaptor/genericfilter.cxx
Starting at line 115 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilterdetect/fdcomp.cxx

			const Sequence< OUString > & rSNL = FilterDetect_getSupportedServiceNames();

			const OUString * pArray = rSNL.getConstArray();

			for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )

				xNewKey->createKey( pArray[nPos] );



			return sal_True;

		}

		catch (InvalidRegistryException &)

		{

			OSL_ENSURE( sal_False, "### InvalidRegistryException!" );

		}

	}

	return sal_False;

}

//==================================================================================================

void * SAL_CALL component_getFactory(

	const sal_Char * pImplName, void * pServiceManager, void * /* pRegistryKey */ )

{

	void * pRet = 0;

	

    OUString implName = OUString::createFromAscii( pImplName );

	if ( pServiceManager && implName.equals(FilterDetect_getImplementationName()) )
=====================================================================
Found a 4 line (104 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07b0 - 07bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07c0 - 07cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07d0 - 07df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 07e0 - 07ef
=====================================================================
Found a 13 line (104 tokens) duplication in the following files: 
Starting at line 233 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/OleClient/clientTest.cxx
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/OleClient/clientTest.cxx

    inv->invoke(OUString(L"optional3"), seqNamed5, seqIndices, seqOut);
	seqIndices.realloc(0);
	seqOut.realloc(0);
    inv->invoke(OUString(L"optional5"), seqPositional, seqIndices, seqOut);
    if ( ! checkOutArgs(seqOut, seqIndices, seqOutOpt1))
        return false;
    //2 args, 1 provided (incorrect order)
    seqIndices.realloc(0);
    seqOut.realloc(0);
    inv->invoke(OUString(L"optional3"), seqPositional0, seqIndices, seqOut);
	seqIndices.realloc(0);
	seqOut.realloc(0);
    inv->invoke(OUString(L"optional3"), seqNamed6, seqIndices, seqOut);
=====================================================================
Found a 40 line (104 tokens) duplication in the following files: 
Starting at line 66 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/AxTestComponents/AxTestComponents.cpp
Starting at line 31 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/EventListenerSample/EventListener/EventListener.cpp
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/unoTocomCalls/XCallback_Impl/XCallback_Impl.cpp

        _Module.Init(ObjectMap, hInstance, &LIBID_XCALLBACK_IMPLLib);
        DisableThreadLibraryCalls(hInstance);
    }
    else if (dwReason == DLL_PROCESS_DETACH)
        _Module.Term();
    return TRUE;    // ok
}

/////////////////////////////////////////////////////////////////////////////
// Used to determine whether the DLL can be unloaded by OLE

STDAPI DllCanUnloadNow(void)
{
    return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
}

/////////////////////////////////////////////////////////////////////////////
// Returns a class factory to create an object of the requested type

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
    return _Module.GetClassObject(rclsid, riid, ppv);
}

/////////////////////////////////////////////////////////////////////////////
// DllRegisterServer - Adds entries to the system registry

STDAPI DllRegisterServer(void)
{
    // registers object, typelib and all interfaces in typelib
    return _Module.RegisterServer(TRUE);
}

/////////////////////////////////////////////////////////////////////////////
// DllUnregisterServer - Removes entries from the system registry

STDAPI DllUnregisterServer(void)
{
    return _Module.UnregisterServer(TRUE);
}
=====================================================================
Found a 19 line (104 tokens) duplication in the following files: 
Starting at line 1201 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/ole/oleobjw.cxx
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/ole/servprov.cxx
Starting at line 620 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/ole/servprov.cxx

Reference< XInterface > OleClient_Impl::createUnoWrapperInstance()
{
	if( m_nUnoWrapperClass == INTERFACE_OLE_WRAPPER_IMPL)
	{
		Reference<XWeak> xWeak= static_cast<XWeak*>( new InterfaceOleWrapper_Impl(
								m_smgr, m_nUnoWrapperClass, m_nComWrapperClass));
		return Reference<XInterface>( xWeak, UNO_QUERY);
	}
	else if( m_nUnoWrapperClass == UNO_OBJECT_WRAPPER_REMOTE_OPT)
	{
		Reference<XWeak> xWeak= static_cast<XWeak*>( new UnoObjectWrapperRemoteOpt(
								m_smgr, m_nUnoWrapperClass, m_nComWrapperClass));
		return Reference<XInterface>( xWeak, UNO_QUERY);
	}
	else
		return Reference< XInterface>();
}
// UnoConversionUtilities -----------------------------------------------------------------------------
Reference< XInterface > OleClient_Impl::createComWrapperInstance( )
=====================================================================
Found a 15 line (104 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 279 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) UNOEmbeddedObjectCreator::createInstanceInitFromMediaDescriptor" );

	// TODO: use lObjArgs

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Reference< uno::XInterface > xResult;
=====================================================================
Found a 15 line (104 tokens) duplication in the following files: 
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/dnd/sourcecontext.cxx
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/win32/dnd/sourcecontext.cxx

		e.DragSource= m_dragSource;
		e.DragSourceContext= static_cast<XDragSourceContext*>( this);
		e.Source= Reference<XInterface>( static_cast<XDragSourceContext*>( this), UNO_QUERY);

		OInterfaceContainerHelper* pContainer= rBHelper.getContainer(
			getCppuType( (Reference<XDragSourceListener>* )0 ) );

		if( pContainer)
		{
			OInterfaceIteratorHelper iter( *pContainer);
			while( iter.hasMoreElements())
			{
				Reference<XDragSourceListener> listener(
					static_cast<XDragSourceListener*>( iter.next()));
				listener->dropActionChanged( e);
=====================================================================
Found a 4 line (104 tokens) duplication in the following files: 
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 22 line (104 tokens) duplication in the following files: 
Starting at line 616 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/pages.cxx
Starting at line 263 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/so_comp/oemjob.cxx

	Bootstrap().getIniName( aSofficeIniFileURL );

	if ( utl::Bootstrap::locateUserData( aUserDataPath ) == utl::Bootstrap::PATH_EXISTS )
	{
		const char CONFIG_DIR[] = "/config";
		
		sal_Int32 nIndex = aSofficeIniFileURL.lastIndexOf( '/');
		if ( nIndex > 0 )
		{
			OUString		aUserSofficeIniFileURL;
			OUStringBuffer	aBuffer( aUserDataPath );
			aBuffer.appendAscii( CONFIG_DIR );
			aBuffer.append( aSofficeIniFileURL.copy( nIndex ));
			aUserSofficeIniFileURL = aBuffer.makeStringAndClear();
			
			if ( existsURL( aUserSofficeIniFileURL ))
				return aUserSofficeIniFileURL;
		}
	}	
	// Fallback try to use the soffice.ini/rc from program folder
	return aSofficeIniFileURL;
}
=====================================================================
Found a 22 line (104 tokens) duplication in the following files: 
Starting at line 306 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/gui/dp_gui_cmdenv.cxx
Starting at line 200 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/migration/dp_migration.cxx

                        RTL_TEXTENCODING_UTF8 ).getStr() );
        
        // ignore intermediate errors of legacy packages, i.e.
        // former pkgchk behaviour:
        const Reference<deployment::XPackage> xPackage(
            wtExc.Context, UNO_QUERY );
        OSL_ASSERT( xPackage.is() );
        if (xPackage.is()) {
            const Reference<deployment::XPackageTypeInfo> xPackageType(
                xPackage->getPackageType() );
            OSL_ASSERT( xPackageType.is() );
            if (xPackageType.is()) {
                approve = (xPackage->isBundle() &&
                           xPackageType->getMediaType().matchAsciiL(
                               RTL_CONSTASCII_STRINGPARAM(
                                   "application/"
                                   "vnd.sun.star.legacy-package-bundle") ));
            }
        }
        abort = !approve;
    }
    else
=====================================================================
Found a 10 line (104 tokens) duplication in the following files: 
Starting at line 656 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/documentcontainer.cxx
Starting at line 672 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/documentcontainer.cxx

void SAL_CALL ODocumentContainer::revert(  ) throw (::com::sun::star::io::IOException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
	MutexGuard aGuard(m_aMutex);
	Documents::iterator aIter = m_aDocumentMap.begin();
	Documents::iterator aEnd = m_aDocumentMap.end();
	for (; aIter != aEnd ; ++aIter)
	{
		Reference<XTransactedObject> xTrans(aIter->second.get(),UNO_QUERY);
		if ( xTrans.is() )
			xTrans->revert();
=====================================================================
Found a 29 line (104 tokens) duplication in the following files: 
Starting at line 227 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/test/cfg_test.cxx
Starting at line 466 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/javaloader/javaloader.cxx

		loader_getSupportedServiceNames, createSingleComponentFactory,
		0 , 0
	},
	{ 0, 0, 0, 0, 0, 0 }
};

extern "C"
{
// NOTE: component_canUnload is not exported, as the library cannot be unloaded.

//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
	const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//==================================================================================================
sal_Bool SAL_CALL component_writeInfo(
	void * pServiceManager, void * pRegistryKey )
{
	return component_writeInfoHelper( pServiceManager, pRegistryKey, g_entries );
}
//==================================================================================================
void * SAL_CALL component_getFactory(
	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
	return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
}
}
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 583 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_cuno.c
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/test_cuno.c

	aExc.ArgumentPosition = 5;
	aExc._Base.Message = 0;
	rtl_uString_newFromAscii(&aExc._Base.Message, "dum dum dum ich tanz im kreis herum...");
	aExc._Base.Context = 0;
	if (CUNO_EXCEPTION_OCCURED( CUNO_CALL(pIFace)->getInterface( (test_XLBTestBase *)pIFace, &excp, &aExc._Base.Context) ))
	{
		/* ... */
		uno_any_destruct( &excp, 0 );
	}

	uno_any_construct(pExc, &aExc, pTD, c_acquire);
	uno_destructData(&aExc, pTD, c_release);
	typelib_typedescription_release(pTD);
	rtl_uString_release(pTypeName);

	return CUNO_ERROR_EXCEPTION;	
}	
=====================================================================
Found a 18 line (104 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HTables.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YTables.cxx

	return new OMySQLTable(this,static_cast<OMySQLCatalog&>(m_rParent).getConnection());
}
// -------------------------------------------------------------------------
// XAppend
sdbcx::ObjectType OTables::appendObject( const ::rtl::OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
	createTable(descriptor);
    return createObject( _rForName );
}
// -------------------------------------------------------------------------
// XDrop
void OTables::dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName)
{
    Reference< XInterface > xObject( getObject( _nPos ) );
    sal_Bool bIsNew = connectivity::sdbcx::ODescriptor::isNew( xObject );
	if (!bIsNew)
	{
		Reference< XConnection > xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection();
=====================================================================
Found a 22 line (104 tokens) duplication in the following files: 
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/codemaker/typemanager.cxx
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/unodevtools/source/unodevtools/typemanager.cxx

typereg::Reader UnoTypeManager::getTypeReader(RegistryKey& rTypeKey) const
{
    typereg::Reader reader;
	
	if (rTypeKey.isValid()) {
		RegValueType 	valueType;
		sal_uInt32		valueSize;

		if (!rTypeKey.getValueInfo(OUString(), &valueType, &valueSize)) {
			sal_uInt8*	pBuffer = (sal_uInt8*)rtl_allocateMemory(valueSize);	
			if ( !rTypeKey.getValue(OUString(), pBuffer) ) {
                reader = typereg::Reader(
                    pBuffer, valueSize, true, TYPEREG_VERSION_1);
			}		
			rtl_freeMemory(pBuffer);
		}
	}
	return reader;
}	


RTTypeClass UnoTypeManager::getTypeClass(const OString& name) const
=====================================================================
Found a 11 line (104 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/AreaChart.cxx
Starting at line 587 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/AreaChart.cxx

        for( ; aZSlotIter != aZSlotEnd; aZSlotIter++ )
        {
            ::std::vector< VDataSeriesGroup >::iterator             aXSlotIter = aZSlotIter->begin();
            const ::std::vector< VDataSeriesGroup >::const_iterator aXSlotEnd = aZSlotIter->end();

            //iterate through all x slots in this category to get 100percent sum
            for( ; aXSlotIter != aXSlotEnd; aXSlotIter++ )
	        {
                ::std::vector< VDataSeries* >* pSeriesList = &(aXSlotIter->m_aSeriesVector);
                ::std::vector< VDataSeries* >::const_iterator       aSeriesIter = pSeriesList->begin();
                const ::std::vector< VDataSeries* >::const_iterator aSeriesEnd  = pSeriesList->end();
=====================================================================
Found a 21 line (104 tokens) duplication in the following files: 
Starting at line 145 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataPoint.cxx
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/main/DataSeries.cxx

        Reference< beans::XPropertySet > xPropertySet;
        uno::Any aValue;

        getFastPropertyValue( aValue, DataPointProperties::PROP_DATAPOINT_ERROR_BAR_X );
        if( ( aValue >>= xPropertySet )
            && xPropertySet.is())
            ModifyListenerHelper::removeListener( xPropertySet, m_xModifyEventForwarder );

        getFastPropertyValue( aValue, DataPointProperties::PROP_DATAPOINT_ERROR_BAR_Y );
        if( ( aValue >>= xPropertySet )
            && xPropertySet.is())
            ModifyListenerHelper::removeListener( xPropertySet, m_xModifyEventForwarder );
    }
    catch( const uno::Exception & ex )
    {
        ASSERT_EXCEPTION( ex );
    }
}

// ____ XCloneable ____
uno::Reference< util::XCloneable > SAL_CALL DataSeries::createClone()
=====================================================================
Found a 19 line (104 tokens) duplication in the following files: 
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
Starting at line 273 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx

                  ::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartLegendPosition * >(0)),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT ));
}

const Sequence< Property > & lcl_GetPropertySequence()
{
    static Sequence< Property > aPropSeq;

    // /--
    MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
    if( 0 == aPropSeq.getLength() )
    {
        // get properties
        ::std::vector< ::com::sun::star::beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );
        ::chart::CharacterProperties::AddPropertiesToVector( aProperties );
        ::chart::LineProperties::AddPropertiesToVector( aProperties );
        ::chart::FillProperties::AddPropertiesToVector( aProperties );
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/null/null_devicehelper.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/devicehelper.cxx

        if( !mpOutputWindow )
            return uno::Reference< rendering::XBezierPolyPolygon2D >(); // we're disposed

        return uno::Reference< rendering::XBezierPolyPolygon2D >( 
            new ::canvas::LinePolyPolygonBase( 
                ::basegfx::unotools::polyPolygonFromBezier2DSequenceSequence( points ) ) );
    }

    uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap( 
        const uno::Reference< rendering::XGraphicDevice >& 	,
        const geometry::IntegerSize2D& 						size )
    {
        if( !mpSpriteCanvas )
            return uno::Reference< rendering::XBitmap >(); // we're disposed

        return uno::Reference< rendering::XBitmap >( 
            new CanvasBitmap( ::vcl::unotools::sizeFromIntegerSize2D(size),
=====================================================================
Found a 21 line (104 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_devicehelper.cxx
Starting at line 243 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/devicehelper.cxx

                                          rBounds.Height) );
    }

    void DeviceHelper::dumpScreenContent() const
    {
        static sal_uInt32 nFilePostfixCount(0);

        if( mpOutputWindow )
        {
            String aFilename( String::CreateFromAscii("dbg_frontbuffer") );
            aFilename += String::CreateFromInt32(nFilePostfixCount);
            aFilename += String::CreateFromAscii(".bmp");

            SvFileStream aStream( aFilename, STREAM_STD_READWRITE );

            const ::Point aEmptyPoint;
            bool bOldMap( mpOutputWindow->IsMapModeEnabled() );
            mpOutputWindow->EnableMapMode( FALSE );
            aStream << mpOutputWindow->GetBitmap(aEmptyPoint,
                                                mpOutputWindow->GetOutputSizePixel());
            mpOutputWindow->EnableMapMode( bOldMap );
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_devicehelper.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/devicehelper.cxx

        if( !mpOutputWindow )
            return uno::Reference< rendering::XBezierPolyPolygon2D >(); // we're disposed

        return uno::Reference< rendering::XBezierPolyPolygon2D >( 
            new ::canvas::LinePolyPolygonBase( 
                ::basegfx::unotools::polyPolygonFromBezier2DSequenceSequence( points ) ) );
    }

    uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap( 
        const uno::Reference< rendering::XGraphicDevice >& 	,
        const geometry::IntegerSize2D& 						size )
    {
        if( !mpSpriteCanvas )
            return uno::Reference< rendering::XBitmap >(); // we're disposed

        return uno::Reference< rendering::XBitmap >( 
            new CanvasBitmap( ::vcl::unotools::sizeFromIntegerSize2D(size),
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx

		    nRes = *p->pnInt64; break;

		// from here the values has to be checked
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			aTmp.nUShort = *p->pUShort; goto ref;
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
        case SbxBYREF | SbxSALUINT64:
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxchar.cxx
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxuint.cxx

			p->nULong = n; break;
		case SbxSINGLE:
			p->nSingle = n; break;
		case SbxDATE:
		case SbxDOUBLE:
			p->nDouble = n; break;
		case SbxSALINT64:
			p->nInt64 = n; break;
		case SbxSALUINT64:
			p->uInt64 = n; break;
		case SbxULONG64:
			p->nULong64 = ImpDoubleToUINT64( (double)n ); break;
		case SbxLONG64:
			p->nLong64 = ImpDoubleToINT64( (double)n ); break;
		case SbxCURRENCY:
			p->nLong64 = ImpDoubleToCurrency( (double)n ); break;
		case SbxDECIMAL:
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxchar.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx

		    nRes = *p->pnInt64; break;

		// from here the values has to be checked
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			aTmp.nUShort = *p->pUShort; goto ref;
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
        case SbxBYREF | SbxSALUINT64:
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 253 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxchar.cxx

			p->nLong = n; break;
		case SbxSINGLE:
			p->nSingle = n; break;
		case SbxDATE:
		case SbxDOUBLE:
			p->nDouble = n; break;
		case SbxSALINT64:
			p->nInt64 = n; break;
		case SbxSALUINT64:
			p->uInt64 = n; break;
		case SbxULONG64:
			p->nULong64 = ImpDoubleToUINT64( (double)n ); break;
		case SbxLONG64:
			p->nLong64 = ImpDoubleToINT64( (double)n ); break;
		case SbxCURRENCY:
			p->nLong64 = ImpDoubleToCurrency( (double)n ); break;
		case SbxBYREF | SbxDECIMAL:
=====================================================================
Found a 17 line (104 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxbyte.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxint.cxx

		    nRes = *p->pnInt64; break;

		// from here the values has to be checked
		case SbxBYREF | SbxERROR:
		case SbxBYREF | SbxUSHORT:
			aTmp.nUShort = *p->pUShort; goto ref;
		case SbxBYREF | SbxSINGLE:
			aTmp.nSingle = *p->pSingle; goto ref;
		case SbxBYREF | SbxDATE:
		case SbxBYREF | SbxDOUBLE:
			aTmp.nDouble = *p->pDouble; goto ref;
		case SbxBYREF | SbxULONG64:
			aTmp.nULong64 = *p->pULong64; goto ref;
		case SbxBYREF | SbxLONG64:
		case SbxBYREF | SbxCURRENCY:
			aTmp.nLong64 = *p->pLong64; goto ref;
        case SbxBYREF | SbxSALUINT64:
=====================================================================
Found a 15 line (104 tokens) duplication in the following files: 
Starting at line 2103 of /local/ooo-build/ooo-build/src/oog680-m3/animations/source/animcore/animcore.cxx
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unogstyl.cxx

const ::com::sun::star::uno::Sequence< sal_Int8 > & SdUnoGraphicStyle::getUnoTunnelId() throw()
{
	static ::com::sun::star::uno::Sequence< sal_Int8 > * pSeq = 0;
	if( !pSeq )
	{
		::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() );
		if( !pSeq )
		{
			static ::com::sun::star::uno::Sequence< sal_Int8 > aSeq( 16 );
			rtl_createUuid( (sal_uInt8*)aSeq.getArray(), 0, sal_True );
			pSeq = &aSeq;
		}
	}
	return *pSeq;
}
=====================================================================
Found a 13 line (103 tokens) duplication in the following files: 
Starting at line 6178 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6484 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        0x00,0x10,0x10,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

        7, // 0x28 '('
        0x08,0x10,0x10,0x20,0x20,0x20,0x20,0x20,0x10,0x10,0x08,0x00,

        7, // 0x29 ')'
        0x20,0x10,0x10,0x08,0x08,0x08,0x08,0x08,0x10,0x10,0x20,0x00,

        7, // 0x2A '*'
        0x00,0x00,0x10,0x54,0x38,0x7C,0x38,0x54,0x10,0x00,0x00,0x00,

        7, // 0x2B '+'
        0x00,0x00,0x00,0x10,0x10,0x7C,0x10,0x10,0x00,0x00,0x00,0x00,
=====================================================================
Found a 11 line (103 tokens) duplication in the following files: 
Starting at line 4413 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 6249 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        7, // 0x3F '?'
        0x00,0x38,0x44,0x04,0x04,0x08,0x10,0x10,0x00,0x10,0x00,0x00,

        7, // 0x40 '@'
        0x00,0x38,0x44,0x44,0x5C,0x54,0x54,0x4C,0x40,0x38,0x00,0x00,

        7, // 0x41 'A'
        0x00,0x38,0x44,0x44,0x44,0x7C,0x44,0x44,0x44,0x44,0x00,0x00,

        7, // 0x42 'B'
        0x00,0x78,0x44,0x44,0x44,0x78,0x44,0x44,0x44,0x78,0x00,0x00,
=====================================================================
Found a 19 line (103 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, 0),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
            calc_type fg[4];
=====================================================================
Found a 28 line (103 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 334 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h

                }

                span->r = (value_type)fg[order_type::R];
                span->g = (value_type)fg[order_type::G];
                span->b = (value_type)fg[order_type::B];
                span->a = (value_type)src_alpha;
                ++span;
                ++base_type::interpolator();

            } while(--len);

            return base_type::allocator().span();
        }
    };








    //=========================================span_image_filter_rgb_2x2
    template<class ColorT,
             class Order, 
             class Interpolator, 
             class Allocator = span_allocator<ColorT> > 
    class span_image_filter_rgb_2x2 : 
=====================================================================
Found a 7 line (103 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_markers.h
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_renderer_markers.h

                    int r3 = -(r / 3);
                    do
                    {
                        base_type::ren().blend_pixel(x - dx, y + dy, base_type::line_color(), cover_full);
                        base_type::ren().blend_pixel(x + dx, y + dy, base_type::line_color(), cover_full);
                        base_type::ren().blend_pixel(x - dx, y - dy, base_type::line_color(), cover_full);
                        base_type::ren().blend_pixel(x + dx, y - dy, base_type::line_color(), cover_full);
=====================================================================
Found a 17 line (103 tokens) duplication in the following files: 
Starting at line 41 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgb.h
Starting at line 87 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

        apply_gamma_dir_rgba(const GammaLut& gamma) : m_gamma(gamma) {}

        AGG_INLINE void operator () (value_type* p)
        {
            p[Order::R] = m_gamma.dir(p[Order::R]);
            p[Order::G] = m_gamma.dir(p[Order::G]);
            p[Order::B] = m_gamma.dir(p[Order::B]);
        }

    private:
        const GammaLut& m_gamma;
    };



    //=====================================================apply_gamma_inv_rgba
    template<class ColorT, class Order, class GammaLut> class apply_gamma_inv_rgba
=====================================================================
Found a 18 line (103 tokens) duplication in the following files: 
Starting at line 448 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/workben/signaturetest.cxx
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/xmlsecurity/workben/signaturetest.cxx

IMPL_LINK( MyWin, VerifyButtonHdl, Button*, EMPTYARG )
{
    String aXMLFileName = maEditXMLFileName.GetText();
    String aBINFileName = maEditBINFileName.GetText();
    String aSIGFileName = maEditSIGFileName.GetText();

	String aTokenFileName;
	if ( !maCryptoCheckBox.IsChecked() )
	    aTokenFileName = maEditTokenName.GetText();

    XMLSignatureHelper aSignatureHelper( comphelper::getProcessServiceFactory() );
    bool bInit = aSignatureHelper.Init( aTokenFileName );

    if ( !bInit )
    {
        ErrorBox( this, WB_OK, String( RTL_CONSTASCII_USTRINGPARAM( "Error initializing security context!" ) ) ).Execute();
        return 0;
    }
=====================================================================
Found a 22 line (103 tokens) duplication in the following files: 
Starting at line 100 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx
Starting at line 483 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/PropertyActionsOASIS.cxx

			   								  XML_VERTICAL_ALIGN ), 0, 0 },
	{ XML_NAMESPACE_FO, XML_BORDER, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_TOP, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_BOTTOM, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_LEFT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_FO, XML_BORDER_RIGHT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_TOP, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_BOTTOM, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_LEFT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_BORDER_LINE_WIDTH_RIGHT, XML_ATACTION_INS2INCHS, 
	  	NO_PARAMS }, /* generated entry */
	{ XML_NAMESPACE_STYLE, XML_DIAGONAL_BL_TR, XML_ATACTION_INS2INCHS, 
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 90 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/ChartOASISTContext.cxx
Starting at line 151 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/transform/FormPropOASISTContext.cxx

	sal_Bool bIsVoid = sal_False;
	sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for( sal_Int16 i=0; i < nAttrCount; i++ )
	{
		const OUString& rAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix =
			GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName, 
																 &aLocalName );
		XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
		XMLTransformerActions::const_iterator aIter =
			pActions->find( aKey );
		if( !(aIter == pActions->end() ) )
		{
=====================================================================
Found a 26 line (103 tokens) duplication in the following files: 
Starting at line 6099 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/window/salframe.cxx
Starting at line 6127 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/window/salframe.cxx

LRESULT CALLBACK SalFrameWndProcW( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam )
{
    int bDef = TRUE;
    LRESULT nRet = 0;
#ifdef __MINGW32__
    jmp_buf jmpbuf;
    __SEHandler han;
    if (__builtin_setjmp(jmpbuf) == 0)
    {
        han.Set(jmpbuf, NULL, (__SEHandler::PF)EXCEPTION_EXECUTE_HANDLER);
#else
    __try
    {
#endif
        nRet = SalFrameWndProc( hWnd, nMsg, wParam, lParam, bDef );
    }
#ifdef __MINGW32__
    han.Reset();
#else
    __except(WinSalInstance::WorkaroundExceptionHandlingInUSER32Lib(GetExceptionCode(), GetExceptionInformation()))
    {
    }
#endif

    if ( bDef )
        nRet = DefWindowProcW( hWnd, nMsg, wParam, lParam );
=====================================================================
Found a 10 line (103 tokens) duplication in the following files: 
Starting at line 953 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dockmgr.cxx
Starting at line 555 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/dockwin.cxx

            Size    aFrameSize = mpWindowImpl->mpFrameWindow->GetOutputSizePixel();
            if ( aFrameMousePos.X() < 0 )
                aFrameMousePos.X() = 0;
            if ( aFrameMousePos.Y() < 0 )
                aFrameMousePos.Y() = 0;
            if ( aFrameMousePos.X() > aFrameSize.Width()-1 )
                aFrameMousePos.X() = aFrameSize.Width()-1;
            if ( aFrameMousePos.Y() > aFrameSize.Height()-1 )
                aFrameMousePos.Y() = aFrameSize.Height()-1;
            aMousePos = ImplFrameToOutput( aFrameMousePos );
=====================================================================
Found a 15 line (103 tokens) duplication in the following files: 
Starting at line 1894 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx
Starting at line 1915 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev2.cxx

                case( BMP_FORMAT_24BIT_TC_RGB ):
                    {
                        for( nY = 0; nY < nDstHeight; nY++ )
                        {
                            const long	nMapY = pMapY[ nY ];
                            Scanline	pPScan = pP->GetScanline( nMapY );
                            Scanline	pAScan = pA->GetScanline( nMapY );

                            for( nX = 0; nX < nDstWidth; nX++ )
                            {
                                const long	nMapX = pMapX[ nX ];
                                Scanline    pTmp = pPScan + nMapX * 3;

                                aDstCol = pB->GetPixel( nY, nX );
                                pB->SetPixel( nY, nX, aDstCol.Merge( pTmp[ 0 ], pTmp[ 1 ], pTmp[ 2 ],
=====================================================================
Found a 6 line (103 tokens) duplication in the following files: 
Starting at line 176 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx
Starting at line 295 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/rtftok/RTFScanner.cxx

       13,   13,   22,   23,   24,   25,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 1857 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/edit.cxx
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/lstbox.cxx

		long		nTextWidth = pDev->GetTextWidth( aText );
		long		nOffX = 3*nOnePixel;
		long		nOffY = (aSize.Height()-nTextHeight) / 2;

		// Clipping?
		if ( (nOffY < 0) ||
			 ((nOffY+nTextHeight) > aSize.Height()) ||
			 ((nOffX+nTextWidth) > aSize.Width()) )
		{
			Rectangle aClip( aPos, aSize );
			if ( nTextHeight > aSize.Height() )
				aClip.Bottom() += nTextHeight-aSize.Height()+1;  // Damit HP-Drucker nicht 'weg-optimieren'
			pDev->IntersectClipRegion( aClip );
		}
=====================================================================
Found a 22 line (103 tokens) duplication in the following files: 
Starting at line 1824 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/source/gdi/salgdi.cxx
Starting at line 2593 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/win/source/gdi/salgdi3.cxx

                nGlyphIdx = ::MapChar( aSftTTF.get(), sal::static_int_cast<sal_uInt16>(nGlyphIdx), bVertical );
            }
        }
        aShortIDs[i] = static_cast<USHORT>( nGlyphIdx );
        if( !nGlyphIdx )
            if( nNotDef < 0 )
                nNotDef = i; // first NotDef glyph found
    }

    if( nNotDef != 0 )
    {
        // add fake NotDef glyph if needed
        if( nNotDef < 0 )
            nNotDef = nGlyphCount++;

        // NotDef glyph must be in pos 0 => swap glyphids
        aShortIDs[ nNotDef ] = aShortIDs[0];
        aTempEncs[ nNotDef ] = aTempEncs[0];
        aShortIDs[0] = 0;
        aTempEncs[0] = 0;
    }
    DBG_ASSERT( nGlyphCount < 257, "too many glyphs for subsetting" );
=====================================================================
Found a 18 line (103 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/aqua/inc/salsys.h
Starting at line 62 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/inc/salsys.h

    virtual ~X11SalSystem();
    
    // overload pure virtual methods
    virtual unsigned int GetDisplayScreenCount();
    virtual bool IsMultiDisplay();
    virtual unsigned int GetDefaultDisplayNumber();
    virtual Rectangle GetDisplayScreenPosSizePixel( unsigned int nScreen );
    virtual Rectangle GetDisplayWorkAreaPosSizePixel( unsigned int nScreen );
    virtual rtl::OUString GetScreenName( unsigned int nScreen );
    virtual int ShowNativeDialog( const String& rTitle,
                                  const String& rMessage,
                                  const std::list< String >& rButtons,
                                  int nDefButton );
    virtual int ShowNativeMessageBox( const String& rTitle,
                                      const String& rMessage,
                                      int nButtonCombination,
                                      int nDefaultButton);
};
=====================================================================
Found a 27 line (103 tokens) duplication in the following files: 
Starting at line 485 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 802 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavcontent.cxx

        aRet <<= getCommandInfo( Environment, sal_False );
    }
    else if ( aCommand.Name.equalsAsciiL(
                  RTL_CONSTASCII_STRINGPARAM( "open" ) ) )
    {
        //////////////////////////////////////////////////////////////////
      	// open
      	//////////////////////////////////////////////////////////////////

        ucb::OpenCommandArgument2 aOpenCommand;
        if ( !( aCommand.Argument >>= aOpenCommand ) )
        {
            ucbhelper::cancelCommandExecution(
                uno::makeAny( lang::IllegalArgumentException(
                                    rtl::OUString::createFromAscii(
                                        "Wrong argument type!" ),
                                    static_cast< cppu::OWeakObject * >( this ),
                                    -1 ) ),
                Environment );
            // Unreachable
        }

        aRet = open( aOpenCommand, Environment );
    }
    else if ( aCommand.Name.equalsAsciiL(
                  RTL_CONSTASCII_STRINGPARAM( "insert" ) ) )
    {
=====================================================================
Found a 22 line (103 tokens) duplication in the following files: 
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchydata.cxx
Starting at line 912 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/hierarchy/hierarchydata.cxx

							"HierarchyEntry::remove - Wrong path!" );

				aParentPath += m_aPath.copy( 0, nPos );
				bRoot = sal_False;
			}

            uno::Sequence< uno::Any > aArguments( 1 );
			beans::PropertyValue	  aProperty;

			aProperty.Name	  = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
													CFGPROPERTY_NODEPATH ) );
			aProperty.Value	<<= aParentPath;
			aArguments[ 0 ]	<<= aProperty;

			uno::Reference< util::XChangesBatch > xBatch(
				m_xConfigProvider->createInstanceWithArguments(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
                        READWRITE_SERVICE_NAME ) ),
					aArguments ),
				uno::UNO_QUERY );

            OSL_ENSURE( xBatch.is(),
=====================================================================
Found a 13 line (103 tokens) duplication in the following files: 
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/filglob.cxx
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/ucbhelper/tempfile.cxx

rtl::OUString getParentName( const rtl::OUString& aFileName )
{
    sal_Int32 lastIndex = aFileName.lastIndexOf( sal_Unicode('/') );
    rtl::OUString aParent = aFileName.copy( 0,lastIndex );

    if( aParent[ aParent.getLength()-1] == sal_Unicode(':') && aParent.getLength() == 6 )
        aParent += rtl::OUString::createFromAscii( "/" );

    if( 0 == aParent.compareToAscii( "file://" ) )
        aParent = rtl::OUString::createFromAscii( "file:///" );

    return aParent;
}
=====================================================================
Found a 34 line (103 tokens) duplication in the following files: 
Starting at line 799 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/drwtxtsh.cxx
Starting at line 1119 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/textsh.cxx

void SwTextShell::ExecTransliteration( SfxRequest & rReq )
{
	using namespace ::com::sun::star::i18n;
	{
		sal_uInt32 nMode = 0;

		switch( rReq.GetSlot() )
		{
		case SID_TRANSLITERATE_UPPER:
			nMode = TransliterationModules_LOWERCASE_UPPERCASE;
			break;
		case SID_TRANSLITERATE_LOWER:
			nMode = TransliterationModules_UPPERCASE_LOWERCASE;
			break;

		case SID_TRANSLITERATE_HALFWIDTH:
			nMode = TransliterationModules_FULLWIDTH_HALFWIDTH;
			break;
		case SID_TRANSLITERATE_FULLWIDTH:
			nMode = TransliterationModules_HALFWIDTH_FULLWIDTH;
			break;

		case SID_TRANSLITERATE_HIRAGANA:
			nMode = TransliterationModules_KATAKANA_HIRAGANA;
			break;
		case SID_TRANSLITERATE_KATAGANA:
			nMode = TransliterationModules_HIRAGANA_KATAKANA;
			break;

		default:
			ASSERT(!this, "falscher Dispatcher");
		}

		if( nMode )
=====================================================================
Found a 13 line (103 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/usrpref.cxx
Starting at line 360 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/usrpref.cxx

void SwLayoutViewConfig::Load()
{
	Sequence<OUString> aNames = GetPropertyNames();
	Sequence<Any> aValues = GetProperties(aNames);
	const Any* pValues = aValues.getConstArray();
	DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
	if(aValues.getLength() == aNames.getLength())
	{
		for(int nProp = 0; nProp < aNames.getLength(); nProp++)
		{
			if(pValues[nProp].hasValue())
			{
                sal_Bool bSet = nProp < 8 || nProp == 10 ? *(sal_Bool*)pValues[nProp].getValue() : sal_False;
=====================================================================
Found a 16 line (103 tokens) duplication in the following files: 
Starting at line 4070 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 4205 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

	_HTMLAttrContext *pCntxt = new _HTMLAttrContext( nToken, nColl, aClass );

	// Styles parsen (zu Class siehe auch NewPara)
	if( HasStyleOptions( aStyle, aId, aEmptyStr, &aLang, &aDir ) )
	{
		SfxItemSet aItemSet( pDoc->GetAttrPool(), pCSS1Parser->GetWhichMap() );
		SvxCSS1PropertyInfo aPropInfo;

		if( ParseStyleOptions( aStyle, aId, aEmptyStr, aItemSet, aPropInfo, &aLang, &aDir ) )
		{
			ASSERT( !aClass.Len() || !pCSS1Parser->GetClass( aClass ),
					"Class wird nicht beruecksichtigt" );
			DoPositioning( aItemSet, aPropInfo, pCntxt );
			InsertAttrs( aItemSet, aPropInfo, pCntxt );
		}
	}
=====================================================================
Found a 15 line (103 tokens) duplication in the following files: 
Starting at line 2147 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoframe.cxx
Starting at line 1099 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx

	uno::Reference<XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}

	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;
	if(pDoc )
	{
		SwUnoInternalPaM aPam(*pDoc);
=====================================================================
Found a 12 line (103 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/unins.cxx
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/untblk.cxx

	pHistory->Rollback( pDoc, nSetPos );

	if( pRedlData && IDocumentRedlineAccess::IsRedlineOn( GetRedlineMode() ))
	{
		IDocumentRedlineAccess::RedlineMode_t eOld = pDoc->GetRedlineMode();
		pDoc->SetRedlineMode_intern((IDocumentRedlineAccess::RedlineMode_t)( eOld & ~IDocumentRedlineAccess::REDLINE_IGNORE ));
		pDoc->AppendRedline( new SwRedline( *pRedlData, *pPam ), true);
		pDoc->SetRedlineMode_intern( eOld );
	}
	else if( !( IDocumentRedlineAccess::REDLINE_IGNORE & GetRedlineMode() ) &&
			pDoc->GetRedlineTbl().Count() )
		pDoc->SplitRedline( *pPam );
=====================================================================
Found a 17 line (103 tokens) duplication in the following files: 
Starting at line 443 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docftn.cxx
Starting at line 473 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docftn.cxx

			nEndCnt >= *pTxtFtn->GetStart() ) )
		{
			const SwFmtFtn& rFtn = pTxtFtn->GetFtn();
			if( /*rFtn.GetNumber() != nNumber ||*/
				rFtn.GetNumStr() != rNumStr ||
				rFtn.IsEndNote() != bIsEndNote )
			{
				bChg = TRUE;
				if( pUndo )
					pUndo->GetHistory()->Add( *pTxtFtn );

				pTxtFtn->SetNumber( nNumber, &rNumStr );
				if( rFtn.IsEndNote() != bIsEndNote )
				{
					((SwFmtFtn&)rFtn).SetEndNote( bIsEndNote );
					bTypeChgd = TRUE;
					pTxtFtn->CheckCondColl();
=====================================================================
Found a 16 line (103 tokens) duplication in the following files: 
Starting at line 272 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/doc/docdraw.cxx
Starting at line 774 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/anchoreddrawobject.cxx

    const bool bR2L = _pNewAnchorFrm->IsRightToLeft();
    if ( bVert )
    {
        nHoriRelPos = aObjRect.Top() - aAnchorPos.Y();
        nVertRelPos = aAnchorPos.X() - aObjRect.Right();
    }
    else if ( bR2L )
    {
        nHoriRelPos = aAnchorPos.X() - aObjRect.Right();
        nVertRelPos = aObjRect.Top() - aAnchorPos.Y();
    }
    else
    {
        nHoriRelPos = aObjRect.Left() - aAnchorPos.X();
        nVertRelPos = aObjRect.Top() - aAnchorPos.Y();
    }
=====================================================================
Found a 10 line (103 tokens) duplication in the following files: 
Starting at line 1604 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unoedit/unotext.cxx
Starting at line 1753 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unoedit/unotext.cxx

        *pTypes++ = ::getCppuType(( const uno::Reference< text::XTextPortionAppend >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< lang::XServiceInfo >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< lang::XTypeProvider >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< lang::XUnoTunnel >*)0);
		*pTypes++ = ::getCppuType(( const uno::Reference< text::XTextRangeCompare >*)0);
	}
	return maTypeSequence;
}

uno::Sequence< uno::Type > SAL_CALL SvxUnoTextBase::getTypes()
=====================================================================
Found a 16 line (103 tokens) duplication in the following files: 
Starting at line 3146 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx
Starting at line 2211 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdotext.cxx

void SdrTextObj::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& /*rPolyPolygon*/)
{
	// break up matrix
	basegfx::B2DTuple aScale;
	basegfx::B2DTuple aTranslate;
	double fRotate, fShearX;
	rMatrix.decompose(aScale, aTranslate, fRotate, fShearX);

	// #i75086# Old DrawingLayer (GeoStat and geometry) does not support holding negative scalings
	// in X and Y which equal a 180 degree rotation. Recognize it and react accordingly
	if(basegfx::fTools::less(aScale.getX(), 0.0) && basegfx::fTools::less(aScale.getY(), 0.0))
	{
		aScale.setX(fabs(aScale.getX()));
		aScale.setY(fabs(aScale.getY()));
		fRotate = fmod(fRotate + F_PI, F_2PI);
	}
=====================================================================
Found a 18 line (103 tokens) duplication in the following files: 
Starting at line 1356 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdocirc.cxx
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdorect.cxx

		long nDst=Round((aRect.Bottom()-aRect.Top())*aGeo.nTan);
		if (aGeo.nShearWink>0) {
			Point aRef(rRect.TopLeft());
			rRect.Left()-=nDst;
			Point aTmpPt(rRect.TopLeft());
			RotatePoint(aTmpPt,aRef,aGeo.nSin,aGeo.nCos);
			aTmpPt-=rRect.TopLeft();
			rRect.Move(aTmpPt.X(),aTmpPt.Y());
		} else {
			rRect.Right()-=nDst;
		}
	}
}

//////////////////////////////////////////////////////////////////////////////
// #i25616#

void SdrRectObj::ImpDoPaintRectObjShadow(XOutputDevice& rXOut, const SdrPaintInfoRec& rInfoRec, 
=====================================================================
Found a 16 line (103 tokens) duplication in the following files: 
Starting at line 3700 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoashp.cxx
Starting at line 3146 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

void SdrPathObj::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& rPolyPolygon)
{
	// break up matrix
	basegfx::B2DTuple aScale;
	basegfx::B2DTuple aTranslate;
	double fRotate, fShearX;
	rMatrix.decompose(aScale, aTranslate, fRotate, fShearX);

	// #i75086# Old DrawingLayer (GeoStat and geometry) does not support holding negative scalings
	// in X and Y which equal a 180 degree rotation. Recognize it and react accordingly
	if(basegfx::fTools::less(aScale.getX(), 0.0) && basegfx::fTools::less(aScale.getY(), 0.0))
	{
		aScale.setX(fabs(aScale.getX()));
		aScale.setY(fabs(aScale.getY()));
		fRotate = fmod(fRotate + F_PI, F_2PI);
	}
=====================================================================
Found a 16 line (103 tokens) duplication in the following files: 
Starting at line 1327 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx
Starting at line 1394 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx

		if(pView && !pView->areMarkHandlesHidden())
		{
			SdrPageView* pPageView = pView->GetSdrPageView();

			if(pPageView)
			{
				for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
				{
					const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b);

					if(rPageWindow.GetPaintWindow().OutputToWindow())
					{
						if(rPageWindow.GetOverlayManager())
						{
							basegfx::B2DPoint aPosition1(pHdl1->GetPos().X(), pHdl1->GetPos().Y());
							basegfx::B2DPoint aPosition2(aPos.X(), aPos.Y());
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 1934 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2605 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

sal_Bool OCX_ComboBox::Import(com::sun::star::uno::Reference<
    com::sun::star::beans::XPropertySet> &rPropSet)
{

	uno::Any aTmp(&sName,getCppuType((OUString *)0));
	rPropSet->setPropertyValue( WW8_ASCII2STR("Name"), aTmp );

    aTmp = bool2any(fEnabled != 0);
	rPropSet->setPropertyValue( WW8_ASCII2STR("Enabled"), aTmp);

    aTmp = bool2any(fLocked != 0);
	rPropSet->setPropertyValue( WW8_ASCII2STR("ReadOnly"), aTmp);

    aTmp = bool2any( nDropButtonStyle != 0 );
=====================================================================
Found a 23 line (103 tokens) duplication in the following files: 
Starting at line 1870 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/editdoc.cxx
Starting at line 1928 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/editdoc.cxx

				rCurSet.InvalidateItem( pAttr->GetItem()->Which() );
			}

			if ( pItem )
			{
				USHORT nWhich = pItem->Which();
				if ( rCurSet.GetItemState( nWhich ) == SFX_ITEM_OFF )
				{
					rCurSet.Put( *pItem );
				}
				else if ( rCurSet.GetItemState( nWhich ) == SFX_ITEM_ON )
				{
					const SfxPoolItem& rItem = rCurSet.Get( nWhich );
					if ( rItem != *pItem )
					{
						rCurSet.InvalidateItem( nWhich );
					}
				}
			}
			nAttr++;
			pAttr = GetAttrib( pNode->GetCharAttribs().GetAttribs(), nAttr );
		}
	}
=====================================================================
Found a 29 line (103 tokens) duplication in the following files: 
Starting at line 593 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/fontsubs.cxx
Starting at line 352 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/optfltr.cxx

void OfaMSFilterTabPage2::MSFltrSimpleTable::SetCheckButtonState(
                            SvLBoxEntry* pEntry, USHORT nCol, SvButtonState eState)
{
	SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetItem(nCol + 1));

	DBG_ASSERT(pItem,"SetCheckButton:Item not found")
	if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON)
	{
		switch( eState )
		{
			case SV_BUTTON_CHECKED:
				pItem->SetStateChecked();
				break;

			case SV_BUTTON_UNCHECKED:
				pItem->SetStateUnchecked();
				break;

			case SV_BUTTON_TRISTATE:
				pItem->SetStateTristate();
				break;
		}
		InvalidateEntry( pEntry );
	}
}
/* -----------------------------2002/06/20 11:56------------------------------

 ---------------------------------------------------------------------------*/
SvButtonState OfaMSFilterTabPage2::MSFltrSimpleTable::GetCheckButtonState(
=====================================================================
Found a 27 line (103 tokens) duplication in the following files: 
Starting at line 2003 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgctrl.cxx
Starting at line 2142 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgctrl.cxx
Starting at line 2234 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgctrl.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numfmt.cxx

void SvxNumberPreviewImpl::InitSettings( BOOL bForeground, BOOL bBackground )
{
	const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();

	if ( bForeground )
	{
		svtools::ColorConfig aColorConfig;
		Color aTextColor( aColorConfig.GetColorValue( svtools::FONTCOLOR ).nColor );

		if ( IsControlForeground() )
			aTextColor = GetControlForeground();
		SetTextColor( aTextColor );
	}

	if ( bBackground )
	{
		if ( IsControlBackground() )
			SetBackground( GetControlBackground() );
		else
			SetBackground( rStyleSettings.GetWindowColor() );
	}
	Invalidate();
}

// -----------------------------------------------------------------------

void SvxNumberPreviewImpl::StateChanged( StateChangedType nType )
=====================================================================
Found a 30 line (103 tokens) duplication in the following files: 
Starting at line 972 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/autocdlg.cxx
Starting at line 593 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/fontsubs.cxx

void SvxFontSubstCheckListBox::SetCheckButtonState( SvLBoxEntry* pEntry, USHORT nCol, SvButtonState eState)
{
	SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetItem(nCol + 1));

	DBG_ASSERT(pItem,"SetCheckButton:Item not found")
	if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON)
	{
		switch( eState )
		{
			case SV_BUTTON_CHECKED:
				pItem->SetStateChecked();
				break;

			case SV_BUTTON_UNCHECKED:
				pItem->SetStateUnchecked();
				break;

			case SV_BUTTON_TRISTATE:
				pItem->SetStateTristate();
				break;
		}
		InvalidateEntry( pEntry );
	}
}

/*********************************************************************/
/*                                                                   */
/*********************************************************************/

SvButtonState SvxFontSubstCheckListBox::GetCheckButtonState( SvLBoxEntry* pEntry, USHORT nCol ) const
=====================================================================
Found a 17 line (103 tokens) duplication in the following files: 
Starting at line 2083 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1814 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

	{ 0x18 MSO_I, 10800 }, { 0x1c MSO_I, 10800 }, { 0x1c MSO_I, 0x1a MSO_I }, { 0x20 MSO_I, 0x1a MSO_I }

};
static const sal_uInt16 mso_sptActionButtonHomeSegm[] =
{
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x000a, 0x6001, 0x8000,
	0x4000, 0x0003, 0x6001, 0x8000,
	0x4000, 0x0007, 0x6001, 0x8000
};
static const SvxMSDffCalculationData mso_sptActionButtonHomeCalc[] =	// adj value 0 - 5400
{
	{ 0x2000, DFF_Prop_adjustValue, 0, 0 },
=====================================================================
Found a 18 line (103 tokens) duplication in the following files: 
Starting at line 425 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/framestatuslistener.cxx
Starting at line 670 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx

void StatusbarController::updateStatus( const rtl::OUString aCommandURL )
{
    Reference< XDispatch > xDispatch;
    Reference< XStatusListener > xStatusListener;
    com::sun::star::util::URL aTargetURL;

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );

        if ( !m_bInitialized )
            return;
        
        // Try to find a dispatch object for the requested command URL
        Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
        xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY );
        if ( m_xServiceManager.is() && xDispatchProvider.is() )
        {
            Reference< XURLTransformer > xURLTransformer = getURLTransformer();
=====================================================================
Found a 18 line (103 tokens) duplication in the following files: 
Starting at line 1918 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zformat.cxx
Starting at line 2584 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zformat.cxx

    const USHORT nAnz = NumFor[nIx].GetnAnz();
    for (USHORT i = 0; i < nAnz; i++)
    {
        switch (rInfo.nTypeArray[i])
        {
            case NF_SYMBOLTYPE_STAR:
                if( bStarFlag )
                {
                    OutString += (sal_Unicode) 0x1B;
                    OutString += rInfo.sStrArray[i].GetChar(1);
                    bRes = TRUE;
                }
                break;
            case NF_SYMBOLTYPE_BLANK:
                InsertBlanks( OutString, OutString.Len(),
                    rInfo.sStrArray[i].GetChar(1) );
                break;
            case NF_SYMBOLTYPE_STRING:
=====================================================================
Found a 33 line (103 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/poolitem.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/items1/poolitem.cxx

	DBG_CTOR(SfxPoolItem, 0);
#if OSL_DEBUG_LEVEL > 1
	++nItemCount;
	if ( pw1 && nItemCount>=10000 )
	{
		DBG_WARNING( pw1 );
		pw1 = NULL;
	}
	if ( pw2 && nItemCount>=100000 )
	{
		DBG_WARNING( pw2 );
		pw2 = NULL;
	}
	if ( pw3 && nItemCount>=1000000 )
	{
		DBG_WARNING( pw3 );
		pw3 = NULL;
	}
	if ( pw4 && nItemCount>=5000000 )
	{
		DBG_WARNING( pw4 );
		pw4 = NULL;
	}
	if ( pw5 && nItemCount>=10000000 )
	{
		DBG_WARNING( pw5 );
		pw5 = NULL;
	}
#endif
}

// ------------------------------------------------------------------------
SfxPoolItem::~SfxPoolItem()
=====================================================================
Found a 26 line (103 tokens) duplication in the following files: 
Starting at line 229 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svtabbx.cxx
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svtabbx.cxx

	const Image& rExpandedEntryBmp,	const Image& rCollapsedEntryBmp,
	SvLBoxEntry* pParent,ULONG nPos,USHORT nCol, void* pUser )
{
	XubString aStr;
	if( nCol != 0xffff )
	{
		while( nCol )
		{
			aStr += '\t';
			nCol--;
		}
	}
	aStr += rStr;
	XubString aFirstStr( aStr );
	USHORT nEnd = aFirstStr.Search( '\t' );
	if( nEnd != STRING_NOTFOUND )
	{
		aFirstStr.Erase( nEnd );
		aCurEntry = aStr;
		aCurEntry.Erase( 0, ++nEnd );
	}
	else
		aCurEntry.Erase();

	return SvTreeListBox::InsertEntry(
		aFirstStr,
=====================================================================
Found a 17 line (103 tokens) duplication in the following files: 
Starting at line 2849 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/imivctl1.cxx
Starting at line 2910 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svimpicn.cxx

void SvImpIconView::ClipAtVirtOutRect( Rectangle& rRect ) const
{
	if( rRect.Bottom() >= aVirtOutputSize.Height() )
		rRect.Bottom() = aVirtOutputSize.Height() - 1;
	if( rRect.Right() >= aVirtOutputSize.Width() )
		rRect.Right() = aVirtOutputSize.Width() - 1;
	if( rRect.Top() < 0 )
		rRect.Top() = 0;
	if( rRect.Left() < 0 )
		rRect.Left() = 0;
}

// rRect: Bereich des Dokumentes (in Dokumentkoordinaten), der
// sichtbar gemacht werden soll.
// bScrBar == TRUE: Das Rect wurde aufgrund eines ScrollBar-Events berechnet

void SvImpIconView::MakeVisible( const Rectangle& rRect, BOOL bScrBar )
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 155 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/misccfg.cxx
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/envelp/envimg.cxx

	Sequence<OUString> aNames = GetPropertyNames();
	Sequence<Any> aValues = GetProperties(aNames);
	EnableNotification(aNames);
	const Any* pValues = aValues.getConstArray();
	DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
	if(aValues.getLength() == aNames.getLength())
	{
		for(int nProp = 0; nProp < aNames.getLength(); nProp++)
		{
			if(pValues[nProp].hasValue())
			{
				switch(nProp)
				{
					case  0: pValues[nProp] >>= aEnvItem.aAddrText; break;// "Inscription/Addressee",
=====================================================================
Found a 11 line (103 tokens) duplication in the following files: 
Starting at line 496 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/historyoptions.cxx
Starting at line 514 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/historyoptions.cxx
Starting at line 532 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/historyoptions.cxx

        sNode   = PROPERTYNAME_HELPBOOKMARKS + PATHDELIMITER + FIXB + OUString::valueOf( (sal_Int32)nItem ) + PATHDELIMITER;
		seqPropertyValues[OFFSET_URL		].Name  =	sNode + PROPERTYNAME_HISTORYITEM_URL		;
		seqPropertyValues[OFFSET_FILTER		].Name  =	sNode + PROPERTYNAME_HISTORYITEM_FILTER		;
		seqPropertyValues[OFFSET_TITLE		].Name  =	sNode + PROPERTYNAME_HISTORYITEM_TITLE		;
		seqPropertyValues[OFFSET_PASSWORD	].Name  =	sNode + PROPERTYNAME_HISTORYITEM_PASSWORD	;
		seqPropertyValues[OFFSET_URL		].Value <<=	aItem.sURL									;
		seqPropertyValues[OFFSET_FILTER		].Value <<=	aItem.sFilter								;
		seqPropertyValues[OFFSET_TITLE		].Value <<=	aItem.sTitle								;
		seqPropertyValues[OFFSET_PASSWORD	].Value <<=	aItem.sPassword								;

        SetSetProperties( PROPERTYNAME_HELPBOOKMARKS, seqPropertyValues );
=====================================================================
Found a 22 line (103 tokens) duplication in the following files: 
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx
Starting at line 1025 of /local/ooo-build/ooo-build/src/oog680-m3/store/source/storpage.cxx

	eErrCode = find (e, *m_pNode[0]);
	if (eErrCode != store_E_None)
		return eErrCode;

	// Find 'Source' Index.
	sal_uInt16 i = m_pNode[0]->find(e), n = m_pNode[0]->usageCount();
	if (!(i < n))
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Check for exact match.
	if (!(e.compare (m_pNode[0]->m_pData[i]) == entry::COMPARE_EQUAL))
	{
		// Page not present.
		return store_E_NotExists;
	}

	// Existing 'Source' entry. Check address.
	e = m_pNode[0]->m_pData[i];
	if (e.m_aLink.m_nAddr == STORE_PAGE_NULL)
=====================================================================
Found a 20 line (103 tokens) duplication in the following files: 
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crcomp.cxx
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/crenum.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/stoc/source/corereflection/criface.cxx

Sequence< Type > IdlAttributeFieldImpl::getTypes()
	throw (::com::sun::star::uno::RuntimeException)
{
	static OTypeCollection * s_pTypes = 0;
	if (! s_pTypes)
	{
		MutexGuard aGuard( getMutexAccess() );
		if (! s_pTypes)
		{
			static OTypeCollection s_aTypes(
				::getCppuType( (const Reference< XIdlField2 > *)0 ),
				::getCppuType( (const Reference< XIdlField > *)0 ),
				IdlMemberImpl::getTypes() );
			s_pTypes = &s_aTypes;
		}
	}
	return s_pTypes->getTypes();
}
//__________________________________________________________________________________________________
Sequence< sal_Int8 > IdlAttributeFieldImpl::getImplementationId()
=====================================================================
Found a 27 line (103 tokens) duplication in the following files: 
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/frmload.cxx
Starting at line 482 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/view/frmload.cxx

                const SfxPoolItem* pRet = pApp->NewDocDirectExec_ImplOld(aReq);
                if (pRet)
                {
                    // default must be set to true, because some return values
                    // cant be checked ... but indicates "success"!
                    bLoadState = sal_True;

                    // On the other side some special slots return a boolean state,
                    // which can be set to FALSE.
                    SfxBoolItem *pItem = PTR_CAST( SfxBoolItem, pRet );
                    if (pItem)
                        bLoadState = pItem->GetValue();
                }
                else
                    bLoadState = sal_False;

                if ( !bLoadState && bFrameCreated && wFrame && !wFrame->GetCurrentDocument() )
                {
                    css::uno::Reference< css::frame::XFrame > axFrame;
                    wFrame->SetFrameInterface_Impl( axFrame );
                    wFrame->DoClose();
                }

                xFrame.clear();
                xListener.clear();
                return bLoadState;
            }
=====================================================================
Found a 5 line (103 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx
Starting at line 345 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unopage.cxx

		{ MAP_CHAR_LEN(UNO_NAME_PAGE_BOTTOM),			WID_PAGE_BOTTOM,	&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_LEFT),				WID_PAGE_LEFT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_RIGHT),			WID_PAGE_RIGHT,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_TOP),				WID_PAGE_TOP,		&::getCppuType((const sal_Int32*)0),			0,	0},
		{ MAP_CHAR_LEN(UNO_NAME_PAGE_HEIGHT),			WID_PAGE_HEIGHT,	&::getCppuType((const sal_Int32*)0),			0,	0},
=====================================================================
Found a 13 line (103 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
Starting at line 486 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx

	rtl::OUString sDescription;

    uno::Reference<lang::XServiceInfo> xInfo (mxController, uno::UNO_QUERY);
    if (xInfo.is())
    {
        uno::Sequence< ::rtl::OUString > aServices( xInfo->getSupportedServiceNames() );
        OUString sFirstService = aServices[0];
        if (sFirstService == OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.DrawingDocumentDrawView")))
        {
            if( aServices.getLength() >= 2 &&
                aServices[1] == OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.PresentationView")))
            {
                ::vos::OGuard aGuard( Application::GetSolarMutex() );
=====================================================================
Found a 20 line (103 tokens) duplication in the following files: 
Starting at line 474 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/EffectMigration.cxx
Starting at line 641 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/core/EffectMigration.cxx

void EffectMigration::SetTextAnimationEffect( SvxShape* pShape, AnimationEffect eEffect )
{
	DBG_ASSERT( pShape && pShape->GetSdrObject() && pShape->GetSdrObject()->GetPage(),
				"sd::EffectMigration::SetAnimationEffect(), invalid argument!" );
	if( !pShape || !pShape->GetSdrObject() || !pShape->GetSdrObject()->GetPage() )
		return;

	SdrObject* pObj = pShape->GetSdrObject();
	if( implIsInsideGroup( pObj ) )
		return;

	// first map the deprecated AnimationEffect to a preset and subtype
	OUString aPresetId;
	OUString aPresetSubType;

	if( !ConvertAnimationEffect( eEffect, aPresetId, aPresetSubType ) )
	{
		DBG_ERROR( "sd::EffectMigration::SetAnimationEffect(), no mapping for given AnimationEffect value" );
		return;
	}
=====================================================================
Found a 9 line (103 tokens) duplication in the following files: 
Starting at line 660 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/prevloc.cxx
Starting at line 679 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/prevloc.cxx

			for ( nCol=nMainColStart; nCol<=nMainColEnd; nCol++ )
				if ( ( pDoc->GetColFlags( nCol, nTab ) & CR_HIDDEN ) == 0 )
				{
					USHORT nDocW = pDoc->GetColWidth( nCol, nTab );
					long nNextX = nPosX + (long) (nDocW * nScaleX);

					long nPixelStart = pWindow->LogicToPixel( Size( nPosX, 0 ), aCellMapMode ).Width();
					long nPixelEnd = pWindow->LogicToPixel( Size( nNextX, 0 ), aCellMapMode ).Width() - 1;
					pColInfo[nColPos].Set( FALSE, nCol,
=====================================================================
Found a 21 line (103 tokens) duplication in the following files: 
Starting at line 1113 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/dwfunctr.cxx
Starting at line 1969 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx

				String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("AcceptChgDat:")));

			// Versuche, den Alignment-String "ALIGN:(...)" einzulesen; wenn
			// er nicht vorhanden ist, liegt eine "altere Version vor
			if ( nPos != STRING_NOTFOUND )
			{
				xub_StrLen n1 = pInfo->aExtraString.Search('(', nPos);
				if ( n1 != STRING_NOTFOUND )
				{
					xub_StrLen n2 = pInfo->aExtraString.Search(')', n1);
					if ( n2 != STRING_NOTFOUND )
					{
						// Alignment-String herausschneiden
						aStr = pInfo->aExtraString.Copy(nPos, n2 - nPos + 1);
						pInfo->aExtraString.Erase(nPos, n2 - nPos + 1);
						aStr.Erase(0, n1-nPos+1);
					}
				}
			}
		}
	}
=====================================================================
Found a 27 line (103 tokens) duplication in the following files: 
Starting at line 716 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/drawfunc/drtxtob.cxx
Starting at line 270 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/shells/drwtxtex.cxx

		case SID_ATTR_PARA_ADJUST_BLOCK:
			aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_BLOCK, EE_PARA_JUST));
        break;

		case SID_ATTR_PARA_LINESPACE_10:
		{
			SvxLineSpacingItem aItem(SVX_LINESPACE_ONE_LINE, EE_PARA_SBL);
			aItem.SetPropLineSpace(100);
			aNewAttr.Put(aItem);
		}
		break;
		case SID_ATTR_PARA_LINESPACE_15:
		{
			SvxLineSpacingItem aItem(SVX_LINESPACE_ONE_POINT_FIVE_LINES, EE_PARA_SBL);
			aItem.SetPropLineSpace(150);
			aNewAttr.Put(aItem);
		}
		break;
		case SID_ATTR_PARA_LINESPACE_20:
		{
			SvxLineSpacingItem aItem(SVX_LINESPACE_TWO_LINES, EE_PARA_SBL);
			aItem.SetPropLineSpace(200);
			aNewAttr.Put(aItem);
		}
		break;

		case FN_SET_SUPER_SCRIPT:
=====================================================================
Found a 37 line (103 tokens) duplication in the following files: 
Starting at line 293 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/drwtrans.cxx
Starting at line 432 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/app/sdxfer.cxx

}

// -----------------------------------------------------------------------------

BOOL lcl_HasOnlyControls( SdrModel* pModel )
{
    BOOL bOnlyControls = FALSE;         // default if there are no objects

    if ( pModel )
    {
        SdrPage* pPage = pModel->GetPage(0);
        if (pPage)
        {
            SdrObjListIter aIter( *pPage, IM_DEEPNOGROUPS );
            SdrObject* pObj = aIter.Next();
            if ( pObj )
            {
                bOnlyControls = TRUE;   // only set if there are any objects at all
                while ( pObj )
                {
                    if (!pObj->ISA(SdrUnoObj))
                    {
                        bOnlyControls = FALSE;
                        break;
                    }
                    pObj = aIter.Next();
                }
            }
        }
    }

    return bOnlyControls;
}

// -----------------------------------------------------------------------------

void SdTransferable::AddSupportedFormats()
=====================================================================
Found a 13 line (103 tokens) duplication in the following files: 
Starting at line 753 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1168 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	sal_Bool bIsCoveredMatrix(sal_False);
	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_FORMULA))
=====================================================================
Found a 37 line (103 tokens) duplication in the following files: 
Starting at line 2873 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx
Starting at line 2915 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr3.cxx

void ScInterpreter::ScSmall()
{
	if ( !MustHaveParamCount( GetByte(), 2 )  )
		return;
	double f = ::rtl::math::approxFloor(GetDouble());
	if (f < 1.0)
	{
		SetIllegalArgument();
		return;
	}
    SCSIZE k = static_cast<SCSIZE>(f);
	double* pSortArray = NULL;
	SCSIZE nSize = 0;
	GetSortArray(1, &pSortArray, nSize);
	if (!pSortArray || nSize == 0 || nGlobalError || nSize < k)
		SetNoValue();
	else
	{
#if 0
/*
		SCSIZE nCount = 1;
		double nOldVal = pSortArray[0];
		for (SCSIZE i = 1; i < nSize && nCount < k; i++)
		{
			if (pSortArray[i] != nOldVal)
			{
				nCount++;
				nOldVal = pSortArray[i];
			}
		}
		if (nCount < k)
			SetNoValue();
		else
			PushDouble(nOldVal);
*/
#endif
		PushDouble( pSortArray[ k-1 ] );
=====================================================================
Found a 22 line (103 tokens) duplication in the following files: 
Starting at line 430 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx
Starting at line 873 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/addincol.cxx

                        long nOld = nFuncCount;
                        nFuncCount = nNewCount+nOld;
                        if ( nOld )
                        {
                            ScUnoAddInFuncData** ppNew = new ScUnoAddInFuncData*[nFuncCount];
                            for (long i=0; i<nOld; i++)
                                ppNew[i] = ppFuncData[i];
                            delete[] ppFuncData;
                            ppFuncData = ppNew;
                        }
                        else
                            ppFuncData = new ScUnoAddInFuncData*[nFuncCount];

                        //! TODO: adjust bucket count?
                        if ( !pExactHashMap )
                            pExactHashMap = new ScAddInHashMap;
                        if ( !pNameHashMap )
                            pNameHashMap = new ScAddInHashMap;
                        if ( !pLocalHashMap )
                            pLocalHashMap = new ScAddInHashMap;

                        const uno::Reference<reflection::XIdlMethod>* pArray = aMethods.getConstArray();
=====================================================================
Found a 12 line (103 tokens) duplication in the following files: 
Starting at line 643 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/document.cxx
Starting at line 806 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/document.cxx

BOOL ScDocument::CanInsertCol( const ScRange& rRange ) const
{
	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	SCTAB nStartTab = rRange.aStart.Tab();
	SCCOL nEndCol = rRange.aEnd.Col();
	SCROW nEndRow = rRange.aEnd.Row();
	SCTAB nEndTab = rRange.aEnd.Tab();
	PutInOrder( nStartCol, nEndCol );
	PutInOrder( nStartRow, nEndRow );
	PutInOrder( nStartTab, nEndTab );
	SCSIZE nSize = static_cast<SCSIZE>(nEndCol - nStartCol + 1);
=====================================================================
Found a 15 line (103 tokens) duplication in the following files: 
Starting at line 643 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/compressedarray.cxx
Starting at line 706 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/compressedarray.cxx

        if ((this->pData[nIndex].aValue & rBitMask) != 0)
        {
            A nS = ::std::max( (nIndex>0 ? this->pData[nIndex-1].nEnd+1 : 0), nStart);
            A nE = ::std::min( this->pData[nIndex].nEnd, nEnd);
            nRet += nE - nS + 1;
        }
        if (this->pData[nIndex].nEnd >= nEnd)
            break;  // while
        ++nIndex;
    } while (nIndex < this->nCount);
    return nRet;
}


template< typename A, typename D >
=====================================================================
Found a 28 line (103 tokens) duplication in the following files: 
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx
Starting at line 399 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx

    c_rtl_tres_state_start( hRtlTestResult, "getCapacity");
    sal_Char methName[MAXBUFLENGTH];
    sal_Char* pMeth = methName;

    OUString arrOUS[6]={OUString( aUStr1 ),
                        OUString( "1",1,
	                kEncodingRTLTextUSASCII,
	                kConvertFlagsOStringToOUString),
                        OUString(),
                        OUString( "",0,
	                kEncodingRTLTextUSASCII,
	                kConvertFlagsOStringToOUString),
                        OUString( "\0",0,
	                kEncodingRTLTextUSASCII,
	                kConvertFlagsOStringToOUString),
                        OUString( aUStr2 )};

    typedef struct TestCase
    {
	sal_Char*		comments;
	sal_Int32 		expVal;
    	OUStringBuffer*         input;
    	~TestCase()             { delete input;}
    } TestCase;

    TestCase arrTestCase[]={

	{"capacity of ascii string", kTestStr1Len+16, 
=====================================================================
Found a 12 line (103 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/remotebridges/examples/officeclient.cxx
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/cpp/FlatXml.cxx

using namespace ::rtl;
using namespace ::cppu;
using namespace ::osl;

using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry;
using namespace ::com::sun::star::connection;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::bridge;
using namespace ::com::sun::star::text;
using namespace ::com::sun::star::frame;
=====================================================================
Found a 31 line (103 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/registry.cxx
Starting at line 387 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/registry.cxx

static RegError REGISTRY_CALLTYPE saveKey(RegHandle hReg,
								   		   RegKeyHandle hKey, 
										   rtl_uString* keyName, 
										   rtl_uString* regFileName)
{
	ORegistry	*pReg;
	ORegKey 	*pKey, *pNewKey;
	RegError	_ret;
	
	if (hReg)
	{
		pReg = (ORegistry*)hReg;
		if (!pReg->isOpen())
			return REG_REGISTRY_NOT_OPEN;
	} else
	{
		return REG_INVALID_REGISTRY;
	}

	if (hKey)
	{
		pKey = (ORegKey*)hKey;

		if (pKey->getRegistry() != pReg || pKey->isDeleted())
			return REG_INVALID_KEY;
	} else
	{
		return REG_INVALID_KEY;
	}

	if ((_ret = pKey->openKey(keyName, (RegKeyHandle*)&pNewKey)))
=====================================================================
Found a 37 line (103 tokens) duplication in the following files: 
Starting at line 2453 of /local/ooo-build/ooo-build/src/oog680-m3/regexp/orig/regex.c
Starting at line 1334 of /local/ooo-build/ooo-build/src/oog680-m3/regexp/source/reclass.cxx

	  if (compile_stack.stack == NULL) return(REG_ESPACE);

	  compile_stack.size <<= 1;
	}

	/* These are the values to restore when we hit end of this
	   group.  They are all relative offsets, so that if the
	   whole pattern moves because of realloc, they will still
	   be valid.  */
	COMPILE_STACK_TOP.begalt_offset = begalt - bufp->buffer;
	COMPILE_STACK_TOP.fixup_alt_jump
	  = fixup_alt_jump ? fixup_alt_jump - bufp->buffer + 1 : 0;
	COMPILE_STACK_TOP.laststart_offset = b - bufp->buffer;
	COMPILE_STACK_TOP.regnum = regnum;

	/* We will eventually replace the 0 with the number of
	   groups inner to this one.  But do not push a
	   start_memory for groups beyond the last one we can
	   represent in the compiled pattern.  */
	if (regnum <= MAX_REGNUM) {
	  COMPILE_STACK_TOP.inner_group_offset = b - bufp->buffer + 2;
	  BUF_PUSH_3 (start_memory, regnum, 0);
	}

	compile_stack.avail++;

	fixup_alt_jump = 0;
	laststart = 0;
	begalt = b;
	/* If we've reached MAX_REGNUM groups, then this open
	   won't actually generate any code, so we'll have to
	   clear pending_exact explicitly.  */
	pending_exact = 0;
	break;


      case (sal_Unicode)')':
=====================================================================
Found a 30 line (103 tokens) duplication in the following files: 
Starting at line 5316 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 788 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx

		xTempOut->closeOutput();
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( packages::WrongPasswordException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't copy raw stream" ),
=====================================================================
Found a 31 line (103 tokens) duplication in the following files: 
Starting at line 2467 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 603 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/fsstor/fsstorage.cxx

			xResult = static_cast< io::XStream* >( new OFSInputStreamContainer( xInStream ) );
		}
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( packages::WrongPasswordException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't copy raw stream" ),
=====================================================================
Found a 23 line (103 tokens) duplication in the following files: 
Starting at line 3075 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/owriteablestream.cxx
Starting at line 3802 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

		m_pImpl->m_bBroadcastModified = sal_True;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
        uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Problems on revert!" ),
								  uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >( this ) ),
								  aCaught );
	}

	aGuard.clear();
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 744 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1264 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xe3, 0xe3 },
{ 0x00, 0xe4, 0xc4 },
{ 0x00, 0xe5, 0xc5 },
{ 0x00, 0xe6, 0xc6 },
{ 0x00, 0xe7, 0xc7 },
{ 0x00, 0xe8, 0xc8 },
{ 0x00, 0xe9, 0xc9 },
{ 0x00, 0xea, 0xca },
{ 0x00, 0xeb, 0xcb },
{ 0x00, 0xec, 0xcc },
{ 0x00, 0xed, 0xcd },
{ 0x00, 0xee, 0xce },
{ 0x00, 0xef, 0xcf },
{ 0x00, 0xf0, 0xf0 },
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 1510 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1519 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fd90 - fd9f
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fda0 - fdaf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// fdb0 - fdbf
    13,13,13,13,13,13,13,13, 0, 0, 0, 0, 0, 0, 0, 0,// fdc0 - fdcf
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 1362 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
=====================================================================
Found a 5 line (103 tokens) duplication in the following files: 
Starting at line 1011 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 868 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 877 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fd90 - fd9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fda0 - fdaf
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fdb0 - fdbf
     5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0,// fdc0 - fdcf
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 676 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 740 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    11,11,11,11,11,11,11,11,11,11,27,27,27,27,27,27,// 3280 - 328f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 3290 - 329f
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 32a0 - 32af
    27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 32b0 - 32bf
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 614 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 744 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0, 0,// 32c0 - 32cf
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 32d0 - 32df
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,// 32e0 - 32ef
    27,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 0,// 32f0 - 32ff
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 440 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1311 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0,10,10,10,10,10,10,10,10,10,10,10,10,10,// 2150 - 215f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2160 - 216f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2170 - 217f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2180 - 218f
=====================================================================
Found a 26 line (103 tokens) duplication in the following files: 
Starting at line 356 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/localedata/saxparser.cxx
Starting at line 515 of /local/ooo-build/ooo-build/src/oog680-m3/sax/test/saxdemo.cxx

	Reference < XImplementationRegistration > xReg;
	try
	{
		// Create registration service
		Reference < XInterface > x = xSMgr->createInstance(
			OUString::createFromAscii( "com.sun.star.registry.ImplementationRegistration" ) );
		xReg = Reference<  XImplementationRegistration > ( x , UNO_QUERY );
	}
	catch( Exception & ) {
		printf( "Couldn't create ImplementationRegistration service\n" );
		exit(1);
	}

	OString sTestName;
	try
	{
		// Load dll for the tested component
		OUString aDllName =
            OUString::createFromAscii( "sax.uno" SAL_DLLEXTENSION );
		xReg->registerImplementation(
			OUString::createFromAscii( "com.sun.star.loader.SharedLibrary" ),
			aDllName,
			Reference< XSimpleRegistry > ()  );
	}
	catch( Exception &e ) {
		printf( "Couldn't reach sax dll\n" );
=====================================================================
Found a 5 line (103 tokens) duplication in the following files: 
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1190 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0,17, 0,17, 0,17,10,10,10,10, 0, 0,// 0f30 - 0f3f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f40 - 0f4f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f50 - 0f5f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0f60 - 0f6f
     0,17,17,17,17,17,17,17,17,17,17,17,17,17,17, 0,// 0f70 - 0f7f
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 812 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27, 0,27,27,27, 0,27, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4c0 - a4cf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4d0 - a4df
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4e0 - a4ef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// a4f0 - a4ff
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27, 6,27,27,27,27,27,27, 0, 0,27,// 0fc0 - 0fcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fd0 - 0fdf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0fe0 - 0fef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ff0 - 0fff
=====================================================================
Found a 4 line (103 tokens) duplication in the following files: 
Starting at line 147 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/grammar.cpp
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap3.cxx

    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 1388 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1533 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

							nSinY = pSinY[ nY ], nCosY = pCosY[ nY ];

							for( nX = 0; nX < nDstW; nX++ )
							{
								nUnRotX = ( pCosX[ nX ] - nSinY ) >> 8;
								nUnRotY = ( pSinX[ nX ] + nCosY ) >> 8;

								if( ( nUnRotX >= 0L ) && ( nUnRotX < nUnRotW ) &&
									( nUnRotY >= 0L ) && ( nUnRotY < nUnRotH ) )
								{
									nTmpX = pMapIX[ nUnRotX ]; nTmpFX = pMapFX[ nUnRotX ];
									nTmpY = pMapIY[ nUnRotY ], nTmpFY = pMapFY[ nUnRotY ];

									const long	nAlpha0 = pAcc->GetPixel( nTmpY, nTmpX ).GetIndex();
=====================================================================
Found a 11 line (103 tokens) duplication in the following files: 
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx
Starting at line 645 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx

				ImplGetVector( &vector[ 0 ] );

				fStartAngle = acos( vector[ 0 ] / sqrt( vector[ 0 ] * vector[ 0 ] + vector[ 1 ] * vector[ 1 ] ) ) * 57.29577951308;
				fEndAngle = acos( vector[ 2 ] / sqrt( vector[ 2 ] * vector[ 2 ] + vector[ 3 ] * vector[ 3 ] ) ) * 57.29577951308;

				if ( vector[ 1 ] > 0 )
					fStartAngle = 360 - fStartAngle;
				if ( vector[ 3 ] > 0 )
					fEndAngle = 360 - fEndAngle;

				if ( bDirection )
=====================================================================
Found a 18 line (103 tokens) duplication in the following files: 
Starting at line 767 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx
Starting at line 804 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/base3d/b3ddeflt.cxx

					{
						while(nCount--)
						{
							// weiterer Punkt
							nDx = aIntXPosLeft.GetLongValue();
							nDy = aIntXPosRight.GetLongValue();
							nDepth = aIntDepthLine.GetUINT32Value();

							if(IsVisibleAndScissor(nDx, nDy, nDepth))
							{
								Point aTmpPoint(nDx, nDy);
								basegfx::B3DPoint aPoint = Get3DCoor(aTmpPoint, nDepth);
								aPoint -= aInvTrans;
								aPoint /= aInvScale;
								basegfx::B3DVector aNormal;
								aIntVectorLine.GetVector3DValue(aNormal);
								aNormal.normalize();
								Color aCol = SolveColorModel(GetMaterialObject(), aNormal, aPoint);
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 1117 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Starting at line 1482 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx

Reference< XIndexAccess > SAL_CALL ModuleUIConfigurationManager::getDefaultSettings( const ::rtl::OUString& ResourceURL ) 
throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
    sal_Int16 nElementType = RetrieveTypeFromResourceURL( ResourceURL );
    
    if (( nElementType == ::com::sun::star::ui::UIElementType::UNKNOWN ) || 
        ( nElementType >= ::com::sun::star::ui::UIElementType::COUNT   ))
        throw IllegalArgumentException();
    else
    {
        ResetableGuard aGuard( m_aLock );
        
        if ( m_bDisposed )
            throw DisposedException();
=====================================================================
Found a 17 line (103 tokens) duplication in the following files: 
Starting at line 658 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx

    Reference< XStatusListener > xStatusListener;
	USHORT nItemCount = pAddonPopupMenu->GetItemCount();
	for ( USHORT i = 0; i < nItemCount; i++ )
	{
		USHORT nItemId = pAddonPopupMenu->GetItemId( i );

		::rtl::OUString aItemCommand = pAddonPopupMenu->GetItemCommand( nItemId );
		if ( !aItemCommand.getLength() )
		{
			aItemCommand = aSlotString;
			aItemCommand += ::rtl::OUString::valueOf( (sal_Int32)nItemId );
			pAddonPopupMenu->SetItemCommand( nItemId, aItemCommand );
		}

		PopupMenu* pPopupMenu = pAddonPopupMenu->GetPopupMenu( nItemId );
		if ( pPopupMenu )
		{
=====================================================================
Found a 17 line (103 tokens) duplication in the following files: 
Starting at line 580 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menumanager.cxx
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx

    Reference< XDispatch > xDispatch;
	USHORT nItemCount = pAddonMenu->GetItemCount();
	for ( USHORT i = 0; i < nItemCount; i++ )
	{
		USHORT nItemId = pAddonMenu->GetItemId( i );

		::rtl::OUString aItemCommand = pAddonMenu->GetItemCommand( nItemId );
		if ( !aItemCommand.getLength() )
		{
			aItemCommand = aSlotString;
			aItemCommand += ::rtl::OUString::valueOf( (sal_Int32)nItemId );
			pAddonMenu->SetItemCommand( nItemId, aItemCommand );
		}

		PopupMenu* pPopupMenu = pAddonMenu->GetPopupMenu( nItemId );
		if ( pPopupMenu )
		{
=====================================================================
Found a 18 line (103 tokens) duplication in the following files: 
Starting at line 201 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/classes/menuconfiguration.cxx
Starting at line 204 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menuconfiguration.cxx

        OWriteMenuDocumentHandler aWriteMenuDocumentHandler( rMenuBarConfiguration, xWriter );
		aWriteMenuDocumentHandler.WriteMenuDocument();
	}
	catch ( RuntimeException& e )
	{
		throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
	}
	catch ( SAXException& e )
	{
		throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
	}
	catch ( ::com::sun::star::io::IOException& e )
	{
		throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
	}
}

}
=====================================================================
Found a 42 line (103 tokens) duplication in the following files: 
Starting at line 112 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/win32/misc/resourceprovider.cxx
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/sysui/source/win32/misc/resourceprovider.cxx

    { LISTBOX_IMAGE_TEMPLATE + LB_LABEL_OFFSET, STR_SVT_FILEPICKER_IMAGE_TEMPLATE },
    { CHECKBOX_SELECTION,                       STR_SVT_FILEPICKER_SELECTION },
    { FOLDERPICKER_TITLE,                       STR_SVT_FOLDERPICKER_DEFAULT_TITLE },
    { FOLDER_PICKER_DEF_DESCRIPTION,            STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION }
};

const sal_Int32 SIZE_TABLE = sizeof( CtrlIdToResIdTable ) / sizeof( _Entry );

//------------------------------------------------------------
//
//------------------------------------------------------------

sal_Int16 CtrlIdToResId( sal_Int32 aControlId )
{    
    sal_Int16 aResId = -1;

    for ( sal_Int32 i = 0; i < SIZE_TABLE; i++ )
    {
        if ( CtrlIdToResIdTable[i].ctrlId == aControlId )
        {
            aResId = CtrlIdToResIdTable[i].resId;
            break;
        }
    }    
    
    return aResId;
}

//------------------------------------------------------------
//
//------------------------------------------------------------

class CResourceProvider_Impl
{
public:

    //-------------------------------------
    //
    //-------------------------------------

    CResourceProvider_Impl( )
    {        
=====================================================================
Found a 47 line (103 tokens) duplication in the following files: 
Starting at line 63 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilteradaptor/genericfilter.cxx
Starting at line 63 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilterdetect/fdcomp.cxx

using namespace ::rtl;

using namespace ::cppu;

using namespace ::com::sun::star::uno;

using namespace ::com::sun::star::lang;

using namespace ::com::sun::star::registry;



extern "C"

{

//==================================================================================================

void SAL_CALL component_getImplementationEnvironment(

	const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */ )

{

	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;

}

//==================================================================================================

sal_Bool SAL_CALL component_writeInfo(

	void * /* pServiceManager */, void * pRegistryKey )

{

	if (pRegistryKey)

	{

		try

		{

			Reference< XRegistryKey > xNewKey(

				reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( FilterDetect_getImplementationName() ) ); 
=====================================================================
Found a 6 line (103 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/placeware/Base64Codec.cxx
Starting at line 1114 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0,17,17,17,17,17, 0,17,17, 0, 0, 0, 0,17, 0, 0,// 0ac0 - 0acf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ad0 - 0adf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0ae0 - 0aef
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0af0 - 0aff

     0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0b00 - 0b0f
=====================================================================
Found a 22 line (103 tokens) duplication in the following files: 
Starting at line 575 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 709 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

	{
		Size	aNormSize;
		sal_Int32*	pOwnArray;
		sal_Int32*	pDX;

		// get text sizes
		if( pDXArray )
		{
			pOwnArray = NULL;
			aNormSize = Size( mpVDev->GetTextWidth( rText ), 0 );
			pDX = (sal_Int32*) pDXArray;
		}
		else
		{	
			pOwnArray = new sal_Int32[ nLen ];
			aNormSize = Size( mpVDev->GetTextArray( rText, pOwnArray ), 0 );
			pDX = pOwnArray;
		}

		if( nLen > 1 )
		{
			aNormSize.Width() = pDX[ nLen - 2 ] + mpVDev->GetTextWidth( rText.GetChar( sal::static_int_cast<USHORT>( nLen - 1 ) ) );
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/filtertracer/filtertracer.cxx
Starting at line 157 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeEngine.cxx

void SAL_CALL EnhancedCustomShapeEngine::initialize( const SEQ( NMSP_UNO::Any )& aArguments )
	throw ( NMSP_UNO::Exception, NMSP_UNO::RuntimeException )
{
	sal_Int32 i;
	SEQ( NMSP_BEANS::PropertyValue ) aParameter;
	for ( i = 0; i < aArguments.getLength(); i++ )
	{
		if ( aArguments[ i ] >>= aParameter )
			break;
	}
	for ( i = 0; i < aParameter.getLength(); i++ )
	{
		const NMSP_BEANS::PropertyValue& rProp = aParameter[ i ];
		if ( rProp.Name.equalsAscii( "CustomShape" ) )
=====================================================================
Found a 19 line (103 tokens) duplication in the following files: 
Starting at line 308 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/stm/marktest.cxx
Starting at line 306 of /local/ooo-build/ooo-build/src/oog680-m3/io/test/stm/marktest.cxx

		sal_Int32 nMark2 = rMarkable->createMark( );

		for( i = 0 ; i < 10 ; i ++ )
		{
			aByte.getArray()[i] = i+10;
		}

		rOutput->writeBytes( aByte );

		// allow the bytes to be written !
		rMarkable->jumpToFurthest();
		rMarkable->deleteMark( nMark1 );
		rMarkable->deleteMark( nMark2 );

		ERROR_ASSERT( 256 == rInput->available(), "in between mark failure" );
		rInput->readBytes( aByte ,256);
		for( i = 0 ; i < 256 ; i ++ )
		{
			ERROR_ASSERT( i == ((sal_uInt8*)(aByte.getArray()))[i] , "in between mark failure" );
=====================================================================
Found a 10 line (103 tokens) duplication in the following files: 
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatehdl.cxx
Starting at line 1187 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatehdl.cxx

                             awt::Rectangle( INSTALL_BTN_X, BUTTON_Y_POS, BUTTON_WIDTH, BUTTON_HEIGHT ),
                             aProps );
    }
    {   // download button
        uno::Sequence< beans::NamedValue > aProps(5);

        setProperty( aProps, 0, UNISTRING("DefaultButton"), uno::Any( false ) );
        setProperty( aProps, 1, UNISTRING("Enabled"), uno::Any( true ) );
        setProperty( aProps, 2, UNISTRING("PushButtonType"), uno::Any( sal_Int16(awt::PushButtonType_STANDARD) ) );
        setProperty( aProps, 3, UNISTRING("Label"), uno::Any( msDownload ) );
=====================================================================
Found a 19 line (103 tokens) duplication in the following files: 
Starting at line 325 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/so_activex.cpp
Starting at line 506 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/so_activex.cpp

       			if ( ERROR_SUCCESS != RegDeleteValue( hkey, "CLSID" ) )
					fErr = TRUE;

				if ( ERROR_SUCCESS != RegQueryInfoKey(  hkey, NULL, NULL, NULL,
														&nSubKeys, NULL, NULL,
														&nValues, NULL, NULL, NULL, NULL ) )
				{
					RegCloseKey( hkey ), hkey = NULL;
					fErr = TRUE;
				}
				else 
				{
					RegCloseKey( hkey ), hkey = NULL;
					if ( !nSubKeys && !nValues )
						SHDeleteKey( bForAllUsers ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER, aSubKey );
				}
			}

       		wsprintf( aSubKey, "%s%s", aPrefix, aMSFileExt[ind] );
=====================================================================
Found a 17 line (103 tokens) duplication in the following files: 
Starting at line 266 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/filter/migration/cfgimport.cxx
Starting at line 556 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/querydesign/JoinController.cxx

	if ( !m_vTableData.empty() )
	{
		PropertyValue *pViewIter = _rViewProps.getArray();
		PropertyValue *pEnd = pViewIter + _rViewProps.getLength();
		const static ::rtl::OUString s_sTables(RTL_CONSTASCII_USTRINGPARAM("Tables"));
		for (; pViewIter != pEnd && pViewIter->Name != s_sTables; ++pViewIter)
			;
		
		if ( pViewIter == pEnd )
		{
			sal_Int32 nLen = _rViewProps.getLength(); 
			_rViewProps.realloc( nLen + 1 );
			pViewIter = _rViewProps.getArray() + nLen;
			pViewIter->Name = s_sTables;
		}
		
		Sequence<PropertyValue> aTables(m_vTableData.size());
=====================================================================
Found a 20 line (103 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 988 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", !(a >>= b) && b == 2);
    }
    {
        sal_uInt16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", !(a >>= b) && b == 2);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", !(a >>= b) && b == 2);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", (a >>= b) && b == 1);
=====================================================================
Found a 22 line (103 tokens) duplication in the following files: 
Starting at line 1690 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx
Starting at line 1714 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx
Starting at line 1738 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx

sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
	SQLUINTEGER nValue;
    SQLUSMALLINT nAskFor( SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2 );
	switch(setType)
	{
		case ResultSetType::FORWARD_ONLY:
			nAskFor = SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2;
			break;
		case ResultSetType::SCROLL_INSENSITIVE:
			nAskFor = SQL_STATIC_CURSOR_ATTRIBUTES2;
			break;
		case ResultSetType::SCROLL_SENSITIVE:
			nAskFor = SQL_DYNAMIC_CURSOR_ATTRIBUTES2;
			break;
        default:
            ::dbtools::throwGenericSQLException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Invalid result set type." ) ), *this );
            break;
	}

	OTools::GetInfo(m_pConnection,m_aConnectionHandle,nAskFor,nValue,*this);
	return (nValue & SQL_CA2_SENSITIVITY_ADDITIONS) == SQL_CA2_SENSITIVITY_ADDITIONS;
=====================================================================
Found a 14 line (103 tokens) duplication in the following files: 
Starting at line 805 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/PreparedStatement.cxx
Starting at line 501 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

		static const char * cSignature = "()Ljava/sql/ResultSetMetaData;";
		static const char * cMethodName = "getMetaData";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID );
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
		}
	}

	return out==0 ? 0 : new java_sql_ResultSetMetaData( t.pEnv, out, m_aLogger );
}
=====================================================================
Found a 15 line (103 tokens) duplication in the following files: 
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/CallableStatement.cxx
Starting at line 590 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/ResultSet.cxx

		static const char * cSignature = "(I)Ljava/sql/Ref;";
		static const char * cMethodName = "getRef";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID, columnIndex);
			ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
			// und aufraeumen
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return out==0 ? 0 : new java_sql_Ref( t.pEnv, out );
}
=====================================================================
Found a 21 line (103 tokens) duplication in the following files: 
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LDatabaseMetaData.cxx
Starting at line 1207 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx

	const ::rtl::OUString aTable(::rtl::OUString::createFromAscii("TABLE"));
	
	sal_Bool bTableFound = sal_True;
	sal_Int32 nLength = types.getLength();
	if(nLength)
		{
			bTableFound = sal_False;
			
			const ::rtl::OUString* pBegin = types.getConstArray();
			const ::rtl::OUString* pEnd	= pBegin + nLength;
			for(;pBegin != pEnd;++pBegin)
				{
					if(*pBegin == aTable)
						{
							bTableFound = sal_True;
							break;
						}
				}
		}
	if(!bTableFound)
		return xRef;
=====================================================================
Found a 10 line (103 tokens) duplication in the following files: 
Starting at line 725 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/CTable.cxx
Starting at line 524 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/evoab/LTable.cxx

Any SAL_CALL OEvoabTable::queryInterface( const Type & rType ) throw(RuntimeException)
{
	if( rType == ::getCppuType((const Reference<XKeysSupplier>*)0)		||
		rType == ::getCppuType((const Reference<XIndexesSupplier>*)0)	||
		rType == ::getCppuType((const Reference<XRename>*)0)			||
		rType == ::getCppuType((const Reference<XAlterTable>*)0)		||
		rType == ::getCppuType((const Reference<XDataDescriptorFactory>*)0))
		return Any();

	Any aRet = OTable_TYPEDEF::queryInterface(rType);
=====================================================================
Found a 13 line (103 tokens) duplication in the following files: 
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/BTables.cxx
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mozab/MTables.cxx

using namespace connectivity::mozab;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace dbtools;
typedef connectivity::sdbcx::OCollection OCollection_TYPE;

sdbcx::ObjectType OTables::createObject(const ::rtl::OUString& _rName)
{
	::rtl::OUString aName,aSchema;
=====================================================================
Found a 17 line (103 tokens) duplication in the following files: 
Starting at line 768 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/misc/mergechange.cxx
Starting at line 1139 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/misc/mergechange.cxx

				aTreeUpdate.applyToChildren(_rSubtree);

                // make a new subtree with the changed data
                data::TreeSegment aNewTree = data::TreeSegment::createNew(pAddNode->getNodeName(), pAddedNode);

				std::auto_ptr<AddNode> pNewAdd( new AddNode(aNewTree, pAddNode->getNodeName(), pAddNode->isToDefault()) );
				if (pAddNode->isReplacing())
					pNewAdd->setReplacing();

				std::auto_ptr<Change> pNewChange( pNewAdd.release() );

                m_pCurrentParent->removeChange(pAddNode->getNodeName());
                m_pCurrentParent->addChange( pNewChange );
			}
			else
			{
				OSL_ENSURE(false, "OMergeChanges: Unexpected node type found in an AddNode.");
=====================================================================
Found a 24 line (103 tokens) duplication in the following files: 
Starting at line 348 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/LineChartTypeTemplate.cxx
Starting at line 256 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/model/template/ScatterChartTypeTemplate.cxx

void SAL_CALL ScatterChartTypeTemplate::applyStyle(
    const Reference< chart2::XDataSeries >& xSeries,
    ::sal_Int32 nChartTypeIndex,
    ::sal_Int32 nSeriesIndex,
    ::sal_Int32 nSeriesCount )
    throw (uno::RuntimeException)
{
    ChartTypeTemplate::applyStyle( xSeries, nChartTypeIndex, nSeriesIndex, nSeriesCount );

    try
    {
        Reference< beans::XPropertySet > xProp( xSeries, uno::UNO_QUERY_THROW );

        DataSeriesHelper::switchSymbolsOnOrOff( xProp, m_bHasSymbols, nSeriesIndex );
        DataSeriesHelper::switchLinesOnOrOff( xProp, m_bHasLines );
    }
    catch( uno::Exception & ex )
    {
        ASSERT_EXCEPTION( ex );
    }
}

// ____ XChartTypeTemplate ____
Sequence< OUString > SAL_CALL ScatterChartTypeTemplate::getAvailableCreationParameterNames()
=====================================================================
Found a 28 line (103 tokens) duplication in the following files: 
Starting at line 608 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/workben/canvasdemo.cxx
Starting at line 507 of /local/ooo-build/ooo-build/src/oog680-m3/slideshow/test/demoshow.cxx

}

USHORT DemoApp::Exception( USHORT nError )
{
	switch( nError & EXC_MAJORTYPE )
	{
		case EXC_RSCNOTLOADED:
			Abort( String::CreateFromAscii( "Error: could not load language resources.\nPlease check your installation.\n" ) );
			break;
	}
	return 0;
}

void DemoApp::Main()
{
	bool bHelp = false;

	for( USHORT i = 0; i < GetCommandLineParamCount(); i++ )
	{
		::rtl::OUString aParam = GetCommandLineParam( i );

		if( aParam.equalsAscii( "--help" ) ||
			aParam.equalsAscii( "-h" ) )
				bHelp = true;
	}

	if( bHelp )
	{
=====================================================================
Found a 25 line (103 tokens) duplication in the following files: 
Starting at line 1296 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/cairo/cairo_canvashelper.cxx
Starting at line 854 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/vcl/canvashelper.cxx

                               true );
    }

    uno::Reference< rendering::XGraphicDevice > CanvasHelper::getDevice()
    {
        // cast away const, need to change refcount (as this is
        // ~invisible to client code, still logically const)
        return uno::Reference< rendering::XGraphicDevice >(mpDevice);
    }

    void CanvasHelper::copyRect( const rendering::XCanvas* 							, 
                                 const uno::Reference< rendering::XBitmapCanvas >& 	, 
                                 const geometry::RealRectangle2D& 					, 
                                 const rendering::ViewState& 						, 
                                 const rendering::RenderState& 						, 
                                 const geometry::RealRectangle2D& 					, 
                                 const rendering::ViewState& 						, 
                                 const rendering::RenderState& 						 )
    {
        // TODO(F1)
    }
            
    geometry::IntegerSize2D CanvasHelper::getSize()
    {
        if( !mpOutDev.get() )
=====================================================================
Found a 29 line (103 tokens) duplication in the following files: 
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno.cxx
Starting at line 117 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

            && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
            // value
		{
			pCppArgs[nPos] = pCppStack;
			pUnoArgs[nPos] = pCppStack;
			switch (pParamTypeDescr->eTypeClass)
			{
			case typelib_TypeClass_HYPER:
			case typelib_TypeClass_UNSIGNED_HYPER:
			case typelib_TypeClass_DOUBLE:
				pCppStack += sizeof(sal_Int32); // extra long
			}
			// no longer needed
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		else // ptr to complex value | ref
		{
			pCppArgs[nPos] = *(void **)pCppStack;

			if (! rParam.bIn) // is pure out
			{
				// uno out is unconstructed mem!
				pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
				pTempIndizes[nTempIndizes] = nPos;
				// will be released at reconversion
				ppTempParamTypeDescr[nTempIndizes++] = pParamTypeDescr;
			}
			// is in/inout
			else if (bridges::cpp_uno::shared::relatesToInterfaceType(
=====================================================================
Found a 25 line (103 tokens) duplication in the following files: 
Starting at line 180 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/except.cxx

                char const * rttiName = symName.getStr() +5;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
=====================================================================
Found a 28 line (103 tokens) duplication in the following files: 
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx

using namespace ::com::sun::star::uno;

namespace
{

//==================================================================================================
void cpp2uno_call(
	bridges::cpp_uno::shared::CppInterfaceProxy * pThis,
	const typelib_TypeDescription * pMemberTypeDescr,
	typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void ** pCallStack,
	void * pReturnValue )
{
	// pCallStack: ret, [return ptr], this, params
	char * pCppStack = (char *)(pCallStack +1);

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	if (pReturnTypeRef)
		TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	
	void * pUnoReturn = 0;
	void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
	
	if (pReturnTypeDescr)
	{
		if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
=====================================================================
Found a 25 line (103 tokens) duplication in the following files: 
Starting at line 178 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/mingw_intel/except.cxx

                char const * rttiName = symName.getStr() +5;
#if OSL_DEBUG_LEVEL > 1
                fprintf( stderr,"generated rtti for %s\n", rttiName );
#endif
                if (pTypeDescr->pBaseTypeDescription)
                {
                    // ensure availability of base
                    type_info * base_rtti = getRTTI(
                        (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
                    rtti = new __si_class_type_info(
                        strdup( rttiName ), (__class_type_info *)base_rtti );
                }
                else
                {
                    // this class has no base class
                    rtti = new __class_type_info( strdup( rttiName ) );
                }

                pair< t_rtti_map::iterator, bool > insertion(
                    m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) );
                OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" );
            }
            else // taking already generated rtti
            {
                rtti = iFind->second;
=====================================================================
Found a 18 line (103 tokens) duplication in the following files: 
Starting at line 456 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx

			pThis->pCppI, nVtableCall,
			pCppReturn, pReturnTypeDescr->eTypeClass, pParamType,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
=====================================================================
Found a 29 line (103 tokens) duplication in the following files: 
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Starting at line 55 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx

using namespace ::com::sun::star::uno;

namespace
{

//==================================================================================================
void cpp2uno_call(
	bridges::cpp_uno::shared::CppInterfaceProxy * pThis,
	const typelib_TypeDescription * pMemberTypeDescr,
	typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return
	sal_Int32 nParams, typelib_MethodParameter * pParams,
	void ** pCallStack,
	void * pReturnValue )
{
	// pCallStack: ret, [return ptr], this, params
	char * pCppStack = (char *)(pCallStack +1);

	// return
	typelib_TypeDescription * pReturnTypeDescr = 0;
	if (pReturnTypeRef)
		TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
	
	void * pUnoReturn = 0;
	void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
	
	if (pReturnTypeDescr)
	{
        // xxx todo: test PolyStructy<STRUCT<long>> foo()
		if (CPPU_CURRENT_NAMESPACE::isSimpleReturnType( pReturnTypeDescr ))
=====================================================================
Found a 25 line (103 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx

	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if ( pUnoExc )
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); // has to destruct the any
=====================================================================
Found a 24 line (103 tokens) duplication in the following files: 
Starting at line 202 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 259 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx

				uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
				uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
			}
			// destroy temp uno param
			uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
			
			TYPELIB_DANGER_RELEASE( pParamTypeDescr );
		}
		// return
		if ( pCppReturn ) // has complex return
		{
			if ( pUnoReturn != pCppReturn ) // needs reconversion
			{
				uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
										pThis->getBridge()->getUno2Cpp() );
				// destroy temp uno return
				uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
			}
			// complex return ptr is set to return reg
			*(void **)pRegisterReturn = pCppReturn;
		}
		if ( pReturnTypeDescr )
		{
=====================================================================
Found a 25 line (103 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx

	}
	
	// ExceptionHolder
	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if ( pUnoExc )
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); // has to destruct the any
=====================================================================
Found a 16 line (103 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxchar.cxx
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxuint.cxx

			*p->pDouble = n; break;
		case SbxBYREF | SbxSALINT64:
			*p->pnInt64 = n; break;
		case SbxBYREF | SbxSALUINT64:
			*p->puInt64 = n; break;
		case SbxBYREF | SbxULONG64:
			*p->pULong64 = ImpDoubleToUINT64( (double)n ); break;
		case SbxBYREF | SbxLONG64:
			*p->pLong64 = ImpDoubleToINT64( (double)n ); break;
		case SbxBYREF | SbxCURRENCY:
			*p->pLong64 = ImpDoubleToCurrency( (double)n ); break;

		default:
			SbxBase::SetError( SbxERR_CONVERSION );
	}
}
=====================================================================
Found a 25 line (103 tokens) duplication in the following files: 
Starting at line 1589 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/app.cxx
Starting at line 1613 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/app.cxx
Starting at line 1637 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/app.cxx

		case RID_WINTILEVERT:
//#define WINDOWARRANGE_TILE		1
//#define WINDOWARRANGE_HORZ		2
//#define WINDOWARRANGE_VERT		3
//#define WINDOWARRANGE_CASCADE	4
			{
				WindowArrange aArange;
				for ( ULONG i = 0 ; i < pList->Count() ; i++ )
				{
					aArange.AddWindow( pList->GetObject( i ) );
					pList->GetObject( i )->Restore();
				}


				sal_Int32 nTitleHeight;
				{
					sal_Int32 nDummy1, nDummy2, nDummy3;
					GetBorder( nDummy1, nTitleHeight, nDummy2, nDummy3 );
				}

				Size aSize = GetOutputSizePixel();
				aSize.Height() -= nTitleHeight;
				Rectangle aRect( Point( 0, nTitleHeight ), aSize );

				aArange.Arrange( WINDOWARRANGE_VERT, aRect );
=====================================================================
Found a 30 line (103 tokens) duplication in the following files: 
Starting at line 363 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/bastypes.cxx
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/app/brkpnts.cxx

	Breakpoint* pBrk = First();
	while ( pBrk )
	{
		BOOL bDelBrk = FALSE;
		if ( pBrk->nLine == nLine )
		{
			if ( bInserted )
				pBrk->nLine++;
			else
				bDelBrk = TRUE;
		}
		else if ( pBrk->nLine > nLine )
		{
			if ( bInserted )
				pBrk->nLine++;
			else
				pBrk->nLine--;
		}

		if ( bDelBrk )
		{
			ULONG n = GetCurPos();
			delete Remove( pBrk );
			pBrk = Seek( n );
		}
		else
		{
			pBrk = Next();
		}
	}
=====================================================================
Found a 31 line (102 tokens) duplication in the following files: 
Starting at line 25569 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 28401 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 36819 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

OOXMLContext_wordprocessingml_CT_TcBorders::element(TokenEnum_t nToken)
{
    OOXMLContext::Pointer_t pResult;
    
    switch (nToken)
    {
     case OOXML_ELEMENT_wordprocessingml_top:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_left:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_bottom:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_right:
        {
            pResult = OOXMLContext::Pointer_t
               ( new OOXMLContext_wordprocessingml_CT_Border(*this));
         }
             break;
     case OOXML_ELEMENT_wordprocessingml_insideH:
=====================================================================
Found a 17 line (102 tokens) duplication in the following files: 
Starting at line 132 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h
Starting at line 352 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_interpolator_persp.h

            int y2 = int(yt * subpixel_size);

            // Calculate scale by X at x2,y2
            dx = xt + delta;
            dy = yt;
            m_trans_inv.transform(&dx, &dy);
            dx -= x;
            dy -= y;
            int sx2 = int(subpixel_size/sqrt(dx*dx + dy*dy)) >> subpixel_shift;

            // Calculate scale by Y at x2,y2
            dx = xt;
            dy = yt + delta;
            m_trans_inv.transform(&dx, &dy);
            dx -= x;
            dy -= y;
            int sy2 = int(subpixel_size/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
=====================================================================
Found a 15 line (102 tokens) duplication in the following files: 
Starting at line 658 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgb.h
Starting at line 680 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_image_filter_rgba.h

            int fg[4];

            value_type back_r = base_type::background_color().r;
            value_type back_g = base_type::background_color().g;
            value_type back_b = base_type::background_color().b;
            value_type back_a = base_type::background_color().a;

            const value_type *fg_ptr;

            unsigned   diameter     = base_type::filter().diameter();
            int        start        = base_type::filter().start();
            int        start1       = start - 1;
            const int16* weight_array = base_type::filter().weight_array();

            unsigned step_back = diameter << 2;
=====================================================================
Found a 14 line (102 tokens) duplication in the following files: 
Starting at line 58 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpnote.cxx
Starting at line 891 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpstyl.cxx

	const sal_Bool bHandoutMaster = IsXMLToken( rLName, XML_HANDOUT_MASTER );

	const sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
	for(sal_Int16 i=0; i < nAttrCount; i++)
	{
		OUString sAttrName = xAttrList->getNameByIndex( i );
		OUString aLocalName;
		sal_uInt16 nPrefix = GetSdImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
		OUString sValue = xAttrList->getValueByIndex( i );
		const SvXMLTokenMap& rAttrTokenMap = GetSdImport().GetMasterPageAttrTokenMap();

		switch(rAttrTokenMap.Get(nPrefix, aLocalName))
		{
			case XML_TOK_MASTERPAGE_NAME:
=====================================================================
Found a 21 line (102 tokens) duplication in the following files: 
Starting at line 495 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlexp.cxx
Starting at line 574 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlexp.cxx

	mpUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, SvXMLUnitConverter::GetMapUnit(eDfltUnit), getServiceFactory() ) ),
	mpNumExport(0L),
	mpProgressBarHelper( NULL ),
	mpEventExport( NULL ),
	mpImageMapExport( NULL ),
	mpXMLErrors( NULL ),
	mbExtended( sal_False ),
	meClass( XML_TOKEN_INVALID ),
	mnExportFlags( 0 ),
	mnErrorFlags( ERROR_NO ),
	msWS( GetXMLToken(XML_WS) ),
	mbSaveLinkedSections(sal_True)
{
	DBG_ASSERT( mxServiceFactory.is(), "got no service manager" );
	_InitCtor();

	if (mxNumberFormatsSupplier.is())
		mpNumExport = new SvXMLNumFmtExport(*this, mxNumberFormatsSupplier);
}

SvXMLExport::~SvXMLExport()
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_mask.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/assw_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asse_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asns_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnswe_curs.h

static char asnswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xe0,
 0x03,0x00,0x00,0xe0,0x03,0x00,0x00,0xf0,0x07,0x00,0x00,0x10,0x04,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h
Starting at line 43 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h

 0xc0,0x07,0x00,0x00,0xc0,0x07,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x03,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/airbrush_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/airbrush_mask.h

static char airbrush_mask_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x78,0x00,0x00,0x00,
 0x7c,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x1f,0x00,0x00,0x98,0x0f,0x00,0x00,
 0xcc,0x07,0x00,0x00,0xf4,0x03,0x00,0x00,0xf0,0x01,0x00,0x00,0xf8,0x00,0x00,
=====================================================================
Found a 15 line (102 tokens) duplication in the following files: 
Starting at line 3797 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/menu.cxx
Starting at line 4422 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/menu.cxx

        if( pMenu->pStartedFrom && !pMenu->pStartedFrom->bIsMenuBar )
        {
            // #102461# make sure parent entry is highlighted as well
            MenuItemData* pData;
            USHORT i, nCount = (USHORT)pMenu->pStartedFrom->pItemList->Count();
            for(i = 0; i < nCount; i++)
            {
                pData = pMenu->pStartedFrom->pItemList->GetDataFromPos( i );
                if( pData && ( pData->pSubMenu == pMenu ) )
                    break;
            }
            if( i < nCount )
            {
                MenuFloatingWindow* pPWin = (MenuFloatingWindow*)pMenu->pStartedFrom->ImplGetWindow();
                if( pPWin && pPWin->nHighlightedItem != i )
=====================================================================
Found a 16 line (102 tokens) duplication in the following files: 
Starting at line 1992 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev.cxx
Starting at line 1114 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outdev4.cxx

		else if ( mnDrawMode & DRAWMODE_GRAYLINE )
		{
			const UINT8 cLum = aColor.GetLuminance();
			aColor = Color( cLum, cLum, cLum );
		}
        else if( mnDrawMode & DRAWMODE_SETTINGSLINE )
        {
            aColor = GetSettings().GetStyleSettings().GetFontColor();
        }

		if ( mnDrawMode & DRAWMODE_GHOSTEDLINE )
		{
			aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80, 
							( aColor.GetGreen() >> 1 ) | 0x80, 
							( aColor.GetBlue() >> 1 ) | 0x80);
		}
=====================================================================
Found a 18 line (102 tokens) duplication in the following files: 
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx
Starting at line 354 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/bitmap4.cxx

					pWriteAcc->SetPixel( nY, nX, BitmapColor( (BYTE) nR2, (BYTE) nG2, (BYTE) nB2 ) );
				}

				if( ++nY < nHeight )
				{
					if( pRowTmp1 == pColRow1 )
						pRowTmp1 = pColRow2, pRowTmp2 = pColRow3, pRowTmp3 = pColRow1;
					else if( pRowTmp1 == pColRow2 )
						pRowTmp1 = pColRow3, pRowTmp2 = pColRow1, pRowTmp3 = pColRow2;
					else
						pRowTmp1 = pColRow1, pRowTmp2 = pColRow2, pRowTmp3 = pColRow3;

					for( i = 0; i < nWidth2; i++ )
						pRowTmp3[ i ] = pReadAcc->GetColor( pRows[ nY + 2 ], pColm[ i ] );
				}
			}

			delete[] (BYTE*) pColRow1;
=====================================================================
Found a 20 line (102 tokens) duplication in the following files: 
Starting at line 1161 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/config/configitem.cxx
Starting at line 1340 of /local/ooo-build/ooo-build/src/oog680-m3/unotools/source/config/configitem.cxx

sal_Bool ConfigItem::AddNode(const rtl::OUString& rNode, const rtl::OUString& rNewNode)
{
	ValueCounter_Impl aCounter(pImpl->nInValueChange);
    sal_Bool bRet = sal_True;
    Reference<XHierarchicalNameAccess> xHierarchyAccess = GetTree();
    if(xHierarchyAccess.is())
	{
		Reference<XChangesBatch> xBatch(xHierarchyAccess, UNO_QUERY);
		try
		{
			Reference<XNameContainer> xCont;
			if(rNode.getLength())
			{
				Any aNode = xHierarchyAccess->getByHierarchicalName(rNode);
				aNode >>= xCont;
			}
			else
				xCont = Reference<XNameContainer> (xHierarchyAccess, UNO_QUERY);
			if(!xCont.is())
				return sal_False;
=====================================================================
Found a 28 line (102 tokens) duplication in the following files: 
Starting at line 1097 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/client/content.cxx
Starting at line 1132 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/client/content.cxx

	Reference< XDynamicResultSet > aOrigCursor = createDynamicCursor( rPropertyHandles, eMode );

	if( aOrigCursor.is() )
	{
		Reference< XMultiServiceFactory > aServiceManager = m_xImpl->getServiceManager();

		if( aServiceManager.is() )
		{
			Reference< XSortedDynamicResultSetFactory > aSortFactory( aServiceManager->createInstance(
								rtl::OUString::createFromAscii( "com.sun.star.ucb.SortedDynamicResultSetFactory" )),
								UNO_QUERY );

			aResult = aSortFactory->createSortedDynamicResultSet( aOrigCursor,
															  rSortInfo,
															  rAnyCompareFactory );
		}

		OSL_ENSURE( aResult.is(), "Content::createSortedDynamicCursor - no sorted cursor!\n" );

		if( !aResult.is() )
			aResult = aOrigCursor;
	}

	return aResult;
}

//=========================================================================
Reference< XResultSet > Content::createSortedCursor(
=====================================================================
Found a 21 line (102 tokens) duplication in the following files: 
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx
Starting at line 325 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/webdav/webdavdatasupplier.cxx

uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
                                                    sal_uInt32 nIndex  )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< sdbc::XRow > xRow = m_pImpl->m_aResults[ nIndex ]->xRow;
		if ( xRow.is() )
		{
			// Already cached.
			return xRow;
		}
	}

	if ( getResult( nIndex ) )
	{
        uno::Reference< sdbc::XRow > xRow
            = Content::getPropertyValues(
                m_pImpl->m_xSMgr,
                getResultSet()->getProperties(),
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 1546 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx
Starting at line 1582 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

                if ( !xIn.is() )
                {
                    // No interaction if we are not persistent!
                    uno::Any aProps
                        = uno::makeAny(
                                 beans::PropertyValue(
                                     rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
                                                       "Uri")),
                                     -1,
                                     uno::makeAny(m_xIdentifier->
                                                      getContentIdentifier()),
                                     beans::PropertyState_DIRECT_VALUE));
                    ucbhelper::cancelCommandExecution(
                        ucb::IOErrorCode_CANT_READ,
                        uno::Sequence< uno::Any >(&aProps, 1),
                        m_eState == PERSISTENT
                            ? xEnv
                            : uno::Reference< ucb::XCommandEnvironment >(),
                        rtl::OUString::createFromAscii( "Got no data stream!" ),
                        this );
                    // Unreachable
                }
=====================================================================
Found a 19 line (102 tokens) duplication in the following files: 
Starting at line 439 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgdatasupplier.cxx
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx

ResultSetDataSupplier::queryPropertyValues( sal_uInt32 nIndex  )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
	{
        uno::Reference< sdbc::XRow > xRow = m_pImpl->m_aResults[ nIndex ]->xRow;
		if ( xRow.is() )
		{
			// Already cached.
			return xRow;
		}
	}

	if ( getResult( nIndex ) )
	{
        uno::Reference< sdbc::XRow > xRow = Content::getPropertyValues(
						m_pImpl->m_xSMgr,
						getResultSet()->getProperties(),
=====================================================================
Found a 23 line (102 tokens) duplication in the following files: 
Starting at line 1596 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 1546 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

            if ( !xStream.is() )
            {
                // No interaction if we are not persistent!
                uno::Any aProps
                    = uno::makeAny(
                             beans::PropertyValue(
                                 rtl::OUString(
                                     RTL_CONSTASCII_USTRINGPARAM("Uri")),
                                 -1,
                                 uno::makeAny(m_xIdentifier->
                                                  getContentIdentifier()),
                                 beans::PropertyState_DIRECT_VALUE));
                ucbhelper::cancelCommandExecution(
                    ucb::IOErrorCode_CANT_READ,
                    uno::Sequence< uno::Any >(&aProps, 1),
                    m_eState == PERSISTENT
                        ? xEnv
                        : uno::Reference< ucb::XCommandEnvironment >(),
                    rtl::OUString::createFromAscii(
                        "Got no data stream!" ),
                    this );
                // Unreachable
            }
=====================================================================
Found a 36 line (102 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_resultset.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgresultset.cxx

              const uno::Reference< ucb::XCommandEnvironment >& rxEnv )
: ResultSetImplHelper( rxSMgr, rCommand ),
  m_xContent( rxContent ),
  m_xEnv( rxEnv )
{
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
	m_xResultSet2 = m_xResultSet1;
}
=====================================================================
Found a 11 line (102 tokens) duplication in the following files: 
Starting at line 2609 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx
Starting at line 2707 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx
Starting at line 2889 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/file/shell.cxx

	std::list< PropertyChangeNotifier* >& listeners = *p;
	{
		osl::MutexGuard aGuard( m_aMutex );
		shell::ContentMap::iterator it = m_aContent.find( aName );
		if( it != m_aContent.end() && it->second.notifier )
		{
			std::list<Notifier*>& listOfNotifiers = *( it->second.notifier );
			std::list<Notifier*>::iterator it1 = listOfNotifiers.begin();
			while( it1 != listOfNotifiers.end() )
			{
				Notifier* pointer = *it1;
=====================================================================
Found a 10 line (102 tokens) duplication in the following files: 
Starting at line 457 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/solar/solar.c
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/tools/workben/solar.c

  fprintf( f, "#define __STACKALIGNMENT wird nicht benutzt\t%d\n", pThis->nStackAlignment );
  fprintf( f, "#define __STACKDIRECTION\t%d\n",
		   pThis->bStackGrowsDown ? -1 : 1 );
  fprintf( f, "#define __SIZEOFCHAR\t%d\n", sizeof( char ) );
  fprintf( f, "#define __SIZEOFSHORT\t%d\n", sizeof( short ) );
  fprintf( f, "#define __SIZEOFINT\t%d\n", sizeof( int ) );
  fprintf( f, "#define __SIZEOFLONG\t%d\n", sizeof( long ) );
  fprintf( f, "#define __SIZEOFPOINTER\t%d\n", sizeof( void* ) );
  fprintf( f, "#define __SIZEOFDOUBLE\t%d\n", sizeof( double ) );
  fprintf( f, "#define __IEEEDOUBLE\n" );
=====================================================================
Found a 20 line (102 tokens) duplication in the following files: 
Starting at line 880 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx
Starting at line 904 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/inet/inetmime.cxx

	const sal_Unicode * p = rBegin;
	for ( ; p != pEnd; ++p)
	{
		int nWeight = getWeight(*p);
		if (nWeight < 0)
			break;
		nTheValue = 10 * nTheValue + nWeight;
		if (nTheValue > std::numeric_limits< sal_uInt32 >::max())
			return false;
	}
	if (nTheValue == 0 && (p == rBegin || !bLeadingZeroes && p - rBegin != 1))
		return false;
	rBegin = p;
	rValue = sal_uInt32(nTheValue);
	return true;
}

//============================================================================
// static
bool INetMIME::scanUnsignedHex(const sal_Char *& rBegin,
=====================================================================
Found a 16 line (102 tokens) duplication in the following files: 
Starting at line 4423 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx
Starting at line 4603 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/fsys/urlobj.cxx

bool INetURLObject::removeExtension(sal_Int32 nIndex, bool bIgnoreFinalSlash)
{
	SubString aSegment(getSegment(nIndex, bIgnoreFinalSlash));
	if (!aSegment.isPresent())
		return false;

	sal_Unicode const * pPathBegin
		= m_aAbsURIRef.getStr() + m_aPath.getBegin();
	sal_Unicode const * pPathEnd = pPathBegin + m_aPath.getLength();
	sal_Unicode const * pSegBegin
		= m_aAbsURIRef.getStr() + aSegment.getBegin();
	sal_Unicode const * pSegEnd = pSegBegin + aSegment.getLength();

    if (pSegBegin < pSegEnd && *pSegBegin == '/')
        ++pSegBegin;
	sal_Unicode const * pExtension = 0;
=====================================================================
Found a 14 line (102 tokens) duplication in the following files: 
Starting at line 110 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/prtopt.cxx
Starting at line 105 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/utlui/navicfg.cxx

	Sequence<OUString> aNames = GetPropertyNames();
	Sequence<Any> aValues = GetProperties(aNames);
//	EnableNotification(aNames);
	const Any* pValues = aValues.getConstArray();
	DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
	if(aValues.getLength() == aNames.getLength())
	{
		for(int nProp = 0; nProp < aNames.getLength(); nProp++)
		{
			if(pValues[nProp].hasValue())
			{
				switch(nProp)
				{
					case 0: pValues[nProp] >>= nRootType;	   break;
=====================================================================
Found a 13 line (102 tokens) duplication in the following files: 
Starting at line 417 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/modcfg.cxx
Starting at line 975 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/modcfg.cxx

void SwTableConfig::Load()
{
	const Sequence<OUString>& aNames = GetPropertyNames();
	Sequence<Any> aValues = GetProperties(aNames);
	const Any* pValues = aValues.getConstArray();
	DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
	if(aValues.getLength() == aNames.getLength())
	{
		for(int nProp = 0; nProp < aNames.getLength(); nProp++)
		{
			if(pValues[nProp].hasValue())
			{
				sal_Int32 nTemp;
=====================================================================
Found a 15 line (102 tokens) duplication in the following files: 
Starting at line 2147 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoframe.cxx
Starting at line 1493 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx

	uno::Reference<XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}

	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;

	if(pDoc )
	{
=====================================================================
Found a 20 line (102 tokens) duplication in the following files: 
Starting at line 612 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/objectpositioning/anchoredobjectposition.cxx
Starting at line 691 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/objectpositioning/anchoredobjectposition.cxx

            if ( _rHoriOrientFrm.IsPageFrm() && bVert )
            {
                // for to-page anchored objects, consider header/footer frame
                // in vertical layout
                const SwFrm* pPrtFrm =
                        static_cast<const SwPageFrm&>(_rHoriOrientFrm).Lower();
                while( pPrtFrm )
                {
                    if( pPrtFrm->IsHeaderFrm() )
                    {
                        nWidth -= pPrtFrm->Frm().Height();
                        nOffset += pPrtFrm->Frm().Height();
                    }
                    else if( pPrtFrm->IsFooterFrm() )
                    {
                        nWidth -= pPrtFrm->Frm().Height();
                    }
                    pPrtFrm = pPrtFrm->GetNext();
                }
            }
=====================================================================
Found a 11 line (102 tokens) duplication in the following files: 
Starting at line 2240 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/flowfrm.cxx
Starting at line 2348 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/flowfrm.cxx

                            SwLayoutFrm* pNewNextUpper = pNewUpper->GetLeaf( MAKEPAGE_NONE, TRUE );
                            if ( pNewNextUpper &&
                                 pNewNextUpper != rThis.GetUpper() &&
                                 pNewNextUpper->GetType() == pNewUpper->GetType() &&
                                 pNewNextUpper->IsInDocBody() == pNewUpper->IsInDocBody() &&
                                 pNewNextUpper->IsInFtn() == pNewUpper->IsInFtn() &&
                                 pNewNextUpper->IsInTab() == pNewUpper->IsInTab() &&
                                 pNewNextUpper->IsInSct() == pNewUpper->IsInSct() &&
                                 !rThis.WrongPageDesc( pNewNextUpper->FindPageFrm() ) )
                            {
                                pNewUpper = pNewNextUpper;
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 1164 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx
Starting at line 1387 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx

	SdrHdl::CreateB2dIAObject();

	// create lines
	if(pHdlList)
	{
		SdrMarkView* pView = pHdlList->GetView();

		if(pView && !pView->areMarkHandlesHidden())
		{
			SdrPageView* pPageView = pView->GetSdrPageView();

			if(pPageView)
			{
				for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
				{
					const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b);

					if(rPageWindow.GetPaintWindow().OutputToWindow())
					{
						if(rPageWindow.GetOverlayManager())
						{
							basegfx::B2DPoint aPosition1(pHdl1->GetPos().X(), pHdl1->GetPos().Y());
=====================================================================
Found a 18 line (102 tokens) duplication in the following files: 
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx

				aEndPos = aStartPos + (aFullVec * fLen);
			}
			
			if(rG.aGradient.GetAngle())
			{
				const double fAngle = (double)rG.aGradient.GetAngle() * (F_PI180 / 10.0);
				basegfx::B2DHomMatrix aTransformation;

				aTransformation.translate(-aCenter.getX(), -aCenter.getY());
				aTransformation.rotate(-fAngle);
				aTransformation.translate(aCenter.getX(), aCenter.getY());
				
				aStartPos *= aTransformation;
				aEndPos *= aTransformation;
			}
			break;
		}
		case XGRAD_RADIAL :
=====================================================================
Found a 6 line (102 tokens) duplication in the following files: 
Starting at line 307 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/eschesdo.cxx
Starting at line 847 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/eschesdo.cxx

		const ::com::sun::star::awt::Size	aSize100thmm( rObj.GetShapeRef()->getSize() );
		const ::com::sun::star::awt::Point	aPoint100thmm( rObj.GetShapeRef()->getPosition() );
		Rectangle	aRect100thmm( Point( aPoint100thmm.X, aPoint100thmm.Y ), Size( aSize100thmm.Width, aSize100thmm.Height ) );
		if ( !mpPicStrm )
			mpPicStrm = mpEscherEx->QueryPicStream();
		EscherPropertyContainer aPropOpt( (EscherGraphicProvider&)*mpEscherEx, mpPicStrm, aRect100thmm );
=====================================================================
Found a 20 line (102 tokens) duplication in the following files: 
Starting at line 1432 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmvwimp.cxx
Starting at line 1607 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmvwimp.cxx

		::rtl::OUString sLabelPostfix = _rDesc.szName;

		////////////////////////////////////////////////////////////////
		// nur fuer Textgroesse
		OutputDevice* _pOutDev = NULL;
		if (m_pView->GetActualOutDev() && m_pView->GetActualOutDev()->GetOutDevType() == OUTDEV_WINDOW)
			_pOutDev = const_cast<OutputDevice*>(m_pView->GetActualOutDev());
		else
		{// OutDev suchen
			SdrPageView* pPageView = m_pView->GetSdrPageView();
			if( pPageView && !_pOutDev )
			{
				// const SdrPageViewWinList& rWinList = pPageView->GetWinList();
				// const SdrPageViewWindows& rPageViewWindows = pPageView->GetPageViewWindows();

				for( sal_uInt32 i = 0L; i < pPageView->PageWindowCount(); i++ )
				{
					const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(i);

					if( rPageWindow.GetPaintWindow().GetOutputDevice().GetOutDevType() == OUTDEV_WINDOW)
=====================================================================
Found a 14 line (102 tokens) duplication in the following files: 
Starting at line 2423 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 1663 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx

				Bitmap aBitmap(pGraphic->GetBitmap());
				Size aSize(aBitmap.GetSizePixel());
				if(aSize.Width()  > MAX_BMP_WIDTH ||
				   aSize.Height() > MAX_BMP_HEIGHT)
				{
					BOOL bWidth = aSize.Width() > aSize.Height();
					double nScale = bWidth ?
										(double)MAX_BMP_WIDTH / (double)aSize.Width():
										(double)MAX_BMP_HEIGHT / (double)aSize.Height();
					aBitmap.Scale(nScale, nScale);

				}
				Image aImage(aBitmap);
				pPopup->InsertItem(pInfo->nItemId, *pUIName, aImage );
=====================================================================
Found a 20 line (102 tokens) duplication in the following files: 
Starting at line 192 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/hyphen.cxx
Starting at line 217 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/hyphen.cxx

		if( aTxt.GetChar( i ) == sal_Unicode( SW_SOFT_HYPHEN ) )
		{
			aTxt.SetChar( i, sal_Unicode( HYPHHERE ) );

			if ( nOldPos != 0 && nOldPos != aTxt.Len() )
				aTxt.SetChar( nOldPos, sal_Unicode( SW_SOFT_HYPHEN ) );
			nOldPos = i;
			aWordEdit.SetText( aTxt );
			aWordEdit.GrabFocus();
			aWordEdit.SetSelection( Selection( i, i + 1 ) );
			break;
		}
	}
	nHyphPos = GetHyphIndex_Impl();
	EnableLRBtn_Impl();
}

// -----------------------------------------------------------------------

void SvxHyphenWordDialog::EnableLRBtn_Impl()
=====================================================================
Found a 23 line (102 tokens) duplication in the following files: 
Starting at line 484 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/charmap.cxx
Starting at line 2003 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/dlgctrl.cxx
Starting at line 445 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/fntctrl.cxx

void SvxFontPrevWindow::InitSettings( BOOL bForeground, BOOL bBackground )
{
	const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();

	if ( bForeground )
	{
		svtools::ColorConfig aColorConfig;
		Color aTextColor( aColorConfig.GetColorValue( svtools::FONTCOLOR ).nColor );

		if ( IsControlForeground() )
			aTextColor = GetControlForeground();
		SetTextColor( aTextColor );
	}

	if ( bBackground )
	{
		if ( IsControlBackground() )
			SetBackground( GetControlBackground() );
		else
			SetBackground( rStyleSettings.GetWindowColor() );
	}
	Invalidate();
}
=====================================================================
Found a 16 line (102 tokens) duplication in the following files: 
Starting at line 4081 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx
Starting at line 4120 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx

	if ( rResourceURL.indexOf( OUString::createFromAscii( "private" ) ) == 0 &&
		 m_xPersistentWindowState.is() &&
		 m_xPersistentWindowState->hasByName( rResourceURL ) )
	{
		try
		{
			uno::Sequence< beans::PropertyValue > aProps;
			uno::Any a( m_xPersistentWindowState->getByName( rResourceURL ) );

			if ( a >>= aProps )
			{
				for ( sal_Int32 i = 0; i < aProps.getLength(); i++ )
				{
					if ( aProps[ i ].Name.equalsAscii( ITEM_DESCRIPTOR_STYLE) )
					{
						aProps[i].Value >>= result;
=====================================================================
Found a 12 line (102 tokens) duplication in the following files: 
Starting at line 6879 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 6897 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

	(SvxMSDffVertPair*)mso_sptTextWave2Vert, sizeof( mso_sptTextWave2Vert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptTextWave1Segm, sizeof( mso_sptTextWave1Segm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptWaveCalc, sizeof( mso_sptWaveCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptWaveDefault,
	(SvxMSDffTextRectangles*)mso_sptFontWorkTextRect, sizeof( mso_sptFontWorkTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptWaveGluePoints, sizeof( mso_sptWaveGluePoints ) / sizeof( SvxMSDffVertPair ),
	(SvxMSDffHandle*)mso_sptWaveHandle, sizeof( mso_sptWaveHandle ) / sizeof( SvxMSDffHandle )
};

static const SvxMSDffVertPair mso_sptTextWave3Vert[] =	// adjustment1 : 0 - 2230
=====================================================================
Found a 17 line (102 tokens) duplication in the following files: 
Starting at line 1709 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShape2d.cxx
Starting at line 6359 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

														bFirstDirection = FALSE;
													else if ( bFirstDirection )
														nModT ^= 1;
												}
												if ( nModT )			// get the right corner
												{
													nX = aCurrent.X();
													nY = aPrev.Y();
												}
												else
												{
													nX = aPrev.X();
													nY = aCurrent.Y();
												}
												sal_Int32 nXVec = ( nX - aPrev.X() ) >> 1;
												sal_Int32 nYVec = ( nY - aPrev.Y() ) >> 1;
												Point aControl1( aPrev.X() + nXVec, aPrev.Y() + nYVec );
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 1180 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/edit/textview.cxx
Starting at line 1403 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/edit.cxx

void Edit::ImplPaste( uno::Reference< datatransfer::clipboard::XClipboard >& rxClipboard )
{
	if ( rxClipboard.is() )
	{
        uno::Reference< datatransfer::XTransferable > xDataObj;

		const sal_uInt32 nRef = Application::ReleaseSolarMutex();
		
        try
		{
            xDataObj = rxClipboard->getContents();
		}
		catch( const ::com::sun::star::uno::Exception& )
		{
		}

        Application::AcquireSolarMutex( nRef );

        if ( xDataObj.is() )
		{
			datatransfer::DataFlavor aFlavor;
			SotExchange::GetFormatDataFlavor( SOT_FORMAT_STRING, aFlavor );
=====================================================================
Found a 17 line (102 tokens) duplication in the following files: 
Starting at line 403 of /local/ooo-build/ooo-build/src/oog680-m3/so3/source/dialog/linkdlg2.cxx
Starting at line 398 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/linkdlg.cxx

                MakeLnkName( sNewLinkName, 0 ,
						aUrl2.GetMainURL(INetURLObject::DECODE_TO_IURI), sLinkName, &sFilter);
				pLink->SetLinkSourceName( sNewLinkName );
				pLink->Update();
			}
			if( pLinkMgr->GetPersist() )
				pLinkMgr->GetPersist()->SetModified();
			SvLinkManager* pNewMgr = pLinkMgr;
			pLinkMgr = 0;
			SetManager( pNewMgr );
		}
	}
	else
	{
		USHORT nPos;
		SvBaseLink* pLink = GetSelEntry( &nPos );
        if ( pLink && (pLink->GetLinkSourceName().Len() != 0) )
=====================================================================
Found a 28 line (102 tokens) duplication in the following files: 
Starting at line 627 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodel.cxx
Starting at line 672 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/dialog/mailmodel.cxx

                            aURL.Complete = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:MailExportFinished" ));
                            xURLTransformer->parseStrict( aURL );
                        }
                        
                        if ( xDispatchProvider.is() )
                        {
                            xDispatch = css::uno::Reference< css::frame::XDispatch >( 
                                xDispatchProvider->queryDispatch( aURL, ::rtl::OUString(), 0 ));
                            if ( xDispatch.is() )
                            {
                                try
                                {
                                    xDispatch->dispatch( aURL, aDispatchArgs );
                                }
                                catch ( css::uno::RuntimeException& )
                                {
                                    throw;
                                }
                                catch ( css::uno::Exception& )
                                {
                                }
                            }
                        }
                    }   
                    // If the model is not modified, it could be modified by the dispatch calls.
                    // Therefore set back to modified = false. This should not hurt if we call
                    // on a non-modified model.
                    if ( !bModified )
=====================================================================
Found a 12 line (102 tokens) duplication in the following files: 
Starting at line 599 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/appl/appopen.cxx
Starting at line 1039 of /local/ooo-build/ooo-build/src/oog680-m3/sfx2/source/doc/objxtor.cxx

	String aFact( rFact );
	String aPrefix = String::CreateFromAscii( "private:factory/" );
	if ( aPrefix.Len() == aFact.Match( aPrefix ) )
		aFact.Erase( 0, aPrefix.Len() );
	USHORT nPos = aFact.Search( '?' );
	String aParam;
	if ( nPos != STRING_NOTFOUND )
	{
		aParam = aFact.Copy( nPos, aFact.Len() );
		aFact.Erase( nPos, aFact.Len() );
		aParam.Erase(0,1);
	}
=====================================================================
Found a 23 line (102 tokens) duplication in the following files: 
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/regactivex/regactivex.cxx
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/regpatchactivex/regpatchactivex.cxx

}		

//----------------------------------------------------------
BOOL GetMsiProp( MSIHANDLE hMSI, const wchar_t* pPropName, wchar_t** ppValue )
{
    DWORD sz = 0;
   	if ( MsiGetProperty( hMSI, pPropName, L"", &sz ) == ERROR_MORE_DATA )
   	{
       	sz++;
       	DWORD nbytes = sz * sizeof( wchar_t );
       	wchar_t* buff = reinterpret_cast<wchar_t*>( malloc( nbytes ) );
       	ZeroMemory( buff, nbytes );
       	MsiGetProperty( hMSI, pPropName, buff, &sz );
   		*ppValue = buff;

		return TRUE;
	}

	return FALSE;
}

//----------------------------------------------------------
BOOL MakeInstallForAllUsers( MSIHANDLE hMSI )
=====================================================================
Found a 32 line (102 tokens) duplication in the following files: 
Starting at line 83 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/indexingfilter/restartindexingservice.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/indexingfilter/restartindexingservice.cxx

            while (status.dwCurrentState == SERVICE_START_PENDING) 
            { 
                // Do not wait longer than the wait hint. A good interval is 
                // one tenth the wait hint, but no less than 1 second and no 
                // more than 10 seconds.          
                DWORD waitTime = status.dwWaitHint / 10;

                if (waitTime < 1000)
                    waitTime = 1000;
                else if (waitTime > 10000)
                    waitTime = 10000;

                Sleep(waitTime);

                // Check the status again.          
                if (!QueryServiceStatus_(hService, &status) ||
                    (status.dwCurrentState == SERVICE_STOPPED))  
                    break;
                                                 
                if (status.dwCheckPoint > oldCheckPoint)
                {                
                    startTime = GetTickCount();
                    oldCheckPoint = status.dwCheckPoint;
                }
                else if ((GetTickCount() - startTime) > status.dwWaitHint)
                {
                    // service doesn't react anymore
                    break;
                }                                    
            }
        }
    }        
=====================================================================
Found a 24 line (102 tokens) duplication in the following files: 
Starting at line 366 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/SdUnoDrawView.cxx
Starting at line 144 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/SdUnoOutlineView.cxx

sal_Bool SdUnoOutlineView::convertFastPropertyValue (
	Any & rConvertedValue, 
	Any & rOldValue, 
	sal_Int32 nHandle, 
	const Any& rValue)
    throw ( com::sun::star::lang::IllegalArgumentException)
{
    sal_Bool bResult = sal_False;

	switch( nHandle )
	{
		case DrawController::PROPERTY_CURRENTPAGE:
			{
				Reference< drawing::XDrawPage > xOldPage( getCurrentPage() );
				Reference< drawing::XDrawPage > xNewPage;
				::cppu::convertPropertyValue( xNewPage, rValue );
				if( xOldPage != xNewPage )
				{
					rConvertedValue <<= xNewPage;
					rOldValue <<= xOldPage;
					bResult = sal_True;
				}
			}
            break;
=====================================================================
Found a 7 line (102 tokens) duplication in the following files: 
Starting at line 1851 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbarange.cxx
Starting at line 1876 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/vba/vbarange.cxx

		uno::Reference< table::XCellRange > xCellRange( xRange->getCellRange(), uno::UNO_QUERY_THROW );
		uno::Reference< sheet::XSheetCellRange > xSheetCellRange(xCellRange, ::uno::UNO_QUERY_THROW );
		uno::Reference< sheet::XSpreadsheet > xSheet = xSheetCellRange->getSpreadsheet();
		uno::Reference< table::XCellRange > xDest( xSheet, uno::UNO_QUERY_THROW );
		uno::Reference< sheet::XCellRangeMovement > xMover( xSheet, uno::UNO_QUERY_THROW);
		uno::Reference< sheet::XCellAddressable > xDestination( xDest->getCellByPosition(
												xRange->getColumn()-1,xRange->getRow()-1), uno::UNO_QUERY);
=====================================================================
Found a 21 line (102 tokens) duplication in the following files: 
Starting at line 761 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undodat.cxx
Starting at line 1586 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undodat.cxx

											aBlockEnd.Col(),aBlockEnd.Row(),nTab );

	if (pUndoRange)
		pDoc->SetRangeName( new ScRangeName( *pUndoRange ) );
	if (pUndoDB)
		pDoc->SetDBCollection( new ScDBCollection( *pUndoDB ), TRUE );

// erack! it's broadcasted
//	pDoc->SetDirty();

	SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
	if ( nVisTab != nTab )
		pViewShell->SetTabNo( nTab );

	pDocShell->PostPaint(0,0,nTab,MAXCOL,MAXROW,nTab,PAINT_GRID|PAINT_LEFT|PAINT_TOP|PAINT_SIZE);
	pDocShell->PostDataChanged();

	EndUndo();
}

void __EXPORT ScUndoRepeatDB::Redo()
=====================================================================
Found a 18 line (102 tokens) duplication in the following files: 
Starting at line 374 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undobase.cxx
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/undo/undobase.cxx

    if ( pAutoDBRange )
    {
        // move the database range to this function's position again (see ScDocShell::GetDBData)

        USHORT nNoNameIndex;
        ScDocument* pDoc = pDocShell->GetDocument();
        ScDBCollection* pColl = pDoc->GetDBCollection();
        if ( pColl->SearchName( ScGlobal::GetRscString( STR_DB_NONAME ), nNoNameIndex ) )
        {
            ScDBData* pNoNameData = (*pColl)[nNoNameIndex];

            SCCOL nRangeX1;
            SCROW nRangeY1;
            SCCOL nRangeX2;
            SCROW nRangeY2;
            SCTAB nRangeTab;
            pNoNameData->GetArea( nRangeTab, nRangeX1, nRangeY1, nRangeX2, nRangeY2 );
            pDocShell->DBAreaDeleted( nRangeTab, nRangeX1, nRangeY1, nRangeX2, nRangeY2 );
=====================================================================
Found a 19 line (102 tokens) duplication in the following files: 
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx
Starting at line 723 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/miscdlgs/acredlin.cxx

	BOOL bFlag=FALSE;

	ScRange aRef=pScChangeAction->GetBigRange().MakeRange();
	String aUser=pScChangeAction->GetUser();
	DateTime aDateTime=pScChangeAction->GetDateTime();

	if(pTheView->IsValidEntry(&aUser,&aDateTime)||bIsGenerated)
	{
		if(pTPFilter->IsRange())
		{
			ScRange* pRangeEntry=aRangeList.First();

			while(pRangeEntry!=NULL)
			{
				if(pRangeEntry->Intersects(aRef)) break;
				pRangeEntry=aRangeList.Next();
			}
			//SC_CAS_VIRGIN,SC_CAS_ACCEPTED,SC_CAS_REJECTED
			if(pRangeEntry!=NULL)
=====================================================================
Found a 21 line (102 tokens) duplication in the following files: 
Starting at line 905 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/formula.cxx
Starting at line 975 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/formdlg/formula.cxx

	if ( bFound )
	{
		xub_StrLen nFEnd;

		// Selektion merken und neue setzen
		pScMod->InputGetSelection( nFStart, nFEnd );
		pScMod->InputSetSelection( nNextFStart, nNextFEnd );
		if(!bEditFlag)
			pMEdit->SetText(pScMod->InputGetFormulaStr());

		xub_StrLen PrivStart, PrivEnd;
		pScMod->InputGetSelection( PrivStart, PrivEnd);
		if(!bEditFlag)
		{
			pMEdit->SetSelection( Selection(PrivStart, PrivEnd));
			aMEFormula.UpdateOldSel();
		}

		pData->SetFStart( nNextFStart );
		pData->SetOffset( 0 );
		pData->SetEdFocus( 0 );
=====================================================================
Found a 21 line (102 tokens) duplication in the following files: 
Starting at line 548 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/filtdlg.cxx
Starting at line 417 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/dbgui/pfiltdlg.cxx

	for ( SCSIZE i=0; i<3; i++ )
	{
		USHORT 		nField	= aFieldLbArr[i]->GetSelectEntryPos();
		ScQueryOp	eOp		= (ScQueryOp)aCondLbArr[i]->GetSelectEntryPos();

		BOOL bDoThis = (aFieldLbArr[i]->GetSelectEntryPos() != 0);
		theParam.GetEntry(i).bDoQuery = bDoThis;

		if ( bDoThis )
		{
			ScQueryEntry& rEntry = theParam.GetEntry(i);

			String aStrVal( aValueEdArr[i]->GetText() );

			/*
			 * Dialog liefert die ausgezeichneten Feldwerte "leer"/"nicht leer"
			 * als Konstanten in nVal in Verbindung mit dem Schalter
			 * bQueryByString auf FALSE.
			 */
			if ( aStrVal == aStrEmpty )
			{
=====================================================================
Found a 23 line (102 tokens) duplication in the following files: 
Starting at line 264 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/conditio.cxx
Starting at line 478 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/conditio.cxx

				pFormula2 = aComp.CompileString( rExpr2 );
				if ( pFormula2->GetLen() == 1 )
				{
					// einzelne (konstante Zahl) ?
					ScToken* pToken = pFormula2->First();
					if ( pToken->GetOpCode() == ocPush )
					{
						if ( pToken->GetType() == svDouble )
						{
							nVal2 = pToken->GetDouble();
							DELETEZ(pFormula2);				// nicht als Formel merken
						}
						else if ( pToken->GetType() == svString )
						{
							bIsStr2 = TRUE;
							aStrVal2 = pToken->GetString();
							DELETEZ(pFormula2);				// nicht als Formel merken
						}
					}
				}
				bRelRef2 = lcl_HasRelRef( pDoc, pFormula2 );
			}
		}
=====================================================================
Found a 34 line (102 tokens) duplication in the following files: 
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/tcvtmb.c
Starting at line 520 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/tcvtmb.c

                if ( (cLead < JIS_EUC_LEAD_OFF) || (cTrail < JIS_EUC_TRAIL_OFF) )
                {
                    *pInfo |= RTL_TEXTTOUNICODE_INFO_INVALID;
                    if ( (nFlags & RTL_TEXTTOUNICODE_FLAGS_INVALID_MASK) == RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR )
                    {
                        *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR;
                        break;
                    }
                    else if ( (nFlags & RTL_TEXTTOUNICODE_FLAGS_INVALID_MASK) == RTL_TEXTTOUNICODE_FLAGS_INVALID_IGNORE )
                    {
                        pSrcBuf++;
                        continue;
                    }
                    else
                        cConv = RTL_TEXTENC_UNICODE_REPLACEMENT_CHARACTER;
                }
                else
                {
                    *pInfo |= RTL_TEXTTOUNICODE_INFO_MBUNDEFINED;
                    if ( (nFlags & RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_MASK) == RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_ERROR )
                    {
                        *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR;
                        break;
                    }
                    else if ( (nFlags & RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_MASK) == RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_IGNORE )
                    {
                        pSrcBuf++;
                        continue;
                    }
                    else
                        cConv = RTL_TEXTENC_UNICODE_REPLACEMENT_CHARACTER;
                }
            }
        }
=====================================================================
Found a 16 line (102 tokens) duplication in the following files: 
Starting at line 503 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 510 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

	sal_Int32 i;

    for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
    {
        sal_Int32 cmpRes = arrTestCase[i].input1->compareTo
            (*arrTestCase[i].input2);
        cmpRes = ( cmpRes == 0 ) ? 0 : ( cmpRes > 0 ) ? +1 : -1 ;
        sal_Bool lastRes = ( cmpRes == arrTestCase[i].expVal);

    
        c_rtl_tres_state
            (
                hRtlTestResult,
                lastRes,
                arrTestCase[i].comments,
                createName( pMeth, "compareTo_001(const OString&)", i )
=====================================================================
Found a 13 line (102 tokens) duplication in the following files: 
Starting at line 297 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdicxml.cxx
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/linguistic/source/convdicxml.cxx

void ConvDicXMLEntryTextContext_Impl::StartElement(
		const uno::Reference< xml::sax::XAttributeList >& rxAttrList )
{
    sal_Int16 nAttrCount = rxAttrList.is() ? rxAttrList->getLength() : 0;
    for (sal_Int16 i = 0;  i < nAttrCount;  ++i)
    {
        OUString aAttrName = rxAttrList->getNameByIndex(i);
        OUString aLocalName;
        sal_uInt16 nPrefix = GetImport().GetNamespaceMap().
                                    GetKeyByAttrName( aAttrName, &aLocalName );
        OUString aValue = rxAttrList->getValueByIndex(i);

        if (nPrefix == XML_NAMESPACE_TCD && aLocalName.equalsAscii( "left-text" ))
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x9c,0x0f,0x00,0x00,0x3e,0x1f,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 945 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 937 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x9c,0x0f,0x00,0x00,0x3e,0x1f,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 937 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x9c,0x0f,0x00,0x00,0x3e,0x1f,
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 931 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 21 line (102 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx
Starting at line 52 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx

ignoreKiKuFollowedBySa_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
  throw(RuntimeException)
{
    // Create a string buffer which can hold nCount + 1 characters.
    // The reference count is 0 now.
    rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h  
    sal_Unicode * dst = newStr->buffer;
    const sal_Unicode * src = inStr.getStr() + startPos;

    sal_Int32 *p = 0;
	sal_Int32 position = 0;
    if (useOffset) {
        // Allocate nCount length to offset argument.
        offset.realloc( nCount );
        p = offset.getArray();
        position = startPos;
    }

    // 
    sal_Unicode previousChar = *src ++;
    sal_Unicode currentChar;
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (102 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_curs.h

static char aswe_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x80,0xc3,0xe1,0x00,0xc0,0xe3,0xe3,0x01,
=====================================================================
Found a 15 line (102 tokens) duplication in the following files: 
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/breakiterator/breakiterator_hi.cxx
Starting at line 126 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/breakiterator/breakiterator_th.cxx

	throw(RuntimeException)
{
	if (Text != cachedText) {
	    cachedText = Text;
	    if (cellIndexSize < cachedText.getLength()) {
		cellIndexSize = cachedText.getLength();
		free(nextCellIndex);
		free(previousCellIndex);
		nextCellIndex = (sal_Int32*) calloc(cellIndexSize, sizeof(sal_Int32));
		previousCellIndex = (sal_Int32*) calloc(cellIndexSize, sizeof(sal_Int32));
	    }
	    // reset nextCell for new Text
	    memset(nextCellIndex, 0, cellIndexSize * sizeof(sal_Int32));
	}
	else if (nextCellIndex[nStartPos] > 0 || ! is_Thai(Text[nStartPos]))
=====================================================================
Found a 7 line (102 tokens) duplication in the following files: 
Starting at line 59 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/ksc5601.h
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/app/i18n_keysym.cxx

    0x3131, 0x3132, 0x3133, 0x3134, 0x3135, 0x3136, 0x3137, 0x3138,
    0x3139, 0x313a, 0x313b, 0x313c, 0x313d, 0x313e, 0x313f, 0x3140,
    0x3141, 0x3142, 0x3143, 0x3144, 0x3145, 0x3146, 0x3147, 0x3148,
    0x3149, 0x314a, 0x314b, 0x314c, 0x314d, 0x314e, 0x314f, 0x3150,
    0x3151, 0x3152, 0x3153, 0x3154, 0x3155, 0x3156, 0x3157, 0x3158,
    0x3159, 0x315a, 0x315b, 0x315c, 0x315d, 0x315e, 0x315f, 0x3160,
    0x3161, 0x3162, 0x3163, 0x11a8, 0x11a9, 0x11aa, 0x11ab, 0x11ac,
=====================================================================
Found a 12 line (102 tokens) duplication in the following files: 
Starting at line 1428 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1533 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

							nSinY = pSinY[ nY ], nCosY = pCosY[ nY ];

							for( nX = 0; nX < nDstW; nX++ )
							{
								nUnRotX = ( pCosX[ nX ] - nSinY ) >> 8;
								nUnRotY = ( pSinX[ nX ] + nCosY ) >> 8;

								if( ( nUnRotX >= 0L ) && ( nUnRotX < nUnRotW ) &&
									( nUnRotY >= 0L ) && ( nUnRotY < nUnRotH ) )
								{
									nTmpX = pMapIX[ nUnRotX ]; nTmpFX = pMapFX[ nUnRotX ];
									nTmpY = pMapIY[ nUnRotY ], nTmpFY = pMapFY[ nUnRotY ];
=====================================================================
Found a 21 line (102 tokens) duplication in the following files: 
Starting at line 82 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/attributelist.cxx
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/config/xmlaccelcfg.cxx

	::std::vector<struct TagAttribute> vecAttribute;
};



sal_Int16 SAL_CALL AttributeListImpl::getLength(void) throw (RuntimeException)
{
	return sal::static_int_cast< sal_Int16 >(m_pImpl->vecAttribute.size());
}


AttributeListImpl::AttributeListImpl( const AttributeListImpl &r ) :
    cppu::WeakImplHelper1<com::sun::star::xml::sax::XAttributeList>(r)
{
	m_pImpl = new AttributeListImpl_impl;
	*m_pImpl = *(r.m_pImpl);
}

OUString AttributeListImpl::getNameByIndex(sal_Int16 i) throw (RuntimeException)
{
	if( i < sal::static_int_cast<sal_Int16>(m_pImpl->vecAttribute.size()) ) {
=====================================================================
Found a 18 line (102 tokens) duplication in the following files: 
Starting at line 1227 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx
Starting at line 1930 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/menubarmanager.cxx

    {
        RetrieveShortcuts( m_aMenuItemHandlerVector );
        std::vector< MenuItemHandler* >::iterator p;
		for ( p = m_aMenuItemHandlerVector.begin(); p != m_aMenuItemHandlerVector.end(); p++ )
		{
		    MenuItemHandler* pMenuItemHandler = *p;

            // Set key code, workaround for hard-coded shortcut F1 mapped to .uno:HelpIndex
            // Only non-popup menu items can have a short-cut
            if ( pMenuItemHandler->aMenuItemURL == aCmdHelpIndex )
            {
                KeyCode aKeyCode( KEY_F1 );
                pMenu->SetAccelKey( pMenuItemHandler->nItemId, aKeyCode );
            }
            else if ( pMenu->GetPopupMenu( pMenuItemHandler->nItemId ) == 0 )
                pMenu->SetAccelKey( pMenuItemHandler->nItemId, pMenuItemHandler->aKeyCode );
        }
    }
=====================================================================
Found a 16 line (102 tokens) duplication in the following files: 
Starting at line 905 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/menudocumenthandler.cxx
Starting at line 939 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/xml/menudocumenthandler.cxx

	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_MENUITEM )), xList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_MENUITEM )) );
}


void OWriteMenuDocumentHandler::WriteMenuSeparator()
{
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_MENUSEPARATOR )), m_xEmptyList );
	m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
	m_xWriteDocumentHandler->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM( ELEMENT_NS_MENUSEPARATOR )) );
}

} // namespace framework
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 392 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/navigationbar.cxx
Starting at line 360 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/richtext/richtextmodel.cxx

    sal_Bool SAL_CALL ORichTextModel::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw( IllegalArgumentException )
    {
        sal_Bool bModified = sal_False;

        if ( isRegisteredProperty( _nHandle ) )
        {
            bModified = OPropertyContainerHelper::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
        }
        else if ( isFontRelatedProperty( _nHandle ) )
        {
            bModified = FontControlModel::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
        }
        else
        {
    		bModified = OControlModel::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
        }

        return bModified;
    }

    //--------------------------------------------------------------------
    void SAL_CALL ORichTextModel::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const Any& _rValue ) throw ( Exception)
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 947 of /local/ooo-build/ooo-build/src/oog680-m3/fileaccess/source/FileAccess.cxx
Starting at line 680 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xsltfilter/XSLTFilter.cxx

            const OUString * pArray = rSNL.getConstArray();
            for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
                xNewKey->createKey( pArray[nPos] );

            return sal_True;
        }
        catch (InvalidRegistryException &)
        {
            OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
        }
    }
    return sal_False;
}

void * SAL_CALL component_getFactory(
    const sal_Char * pImplName, void * pServiceManager, void * /* pRegistryKey */ )
{
    void * pRet = 0;

    if (pServiceManager && rtl_str_compare( pImplName, IMPLEMENTATION_NAME ) == 0)
    {
        Reference< XSingleServiceFactory > xFactory( createSingleFactory(
=====================================================================
Found a 17 line (102 tokens) duplication in the following files: 
Starting at line 1784 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpnt/cpnt.cxx
Starting at line 1956 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpnt/cpnt.cxx

			arAny[0] <<=  xSimple;
			SimpleStruct aStruct;
			Reference<XIdlReflection> xRefl( m_rFactory->createInstance(L"com.sun.star.reflection.CoreReflection"), UNO_QUERY);
			if( xRefl.is())
			{
				Reference<XIdlClass> xClass= xRefl->forName(L"oletest.SimpleStruct");
				Any any;
				if( xClass.is())
					xClass->createObject( any);

				if( any.getValueTypeClass() == TypeClass_STRUCT)
				{
					SimpleStruct* pStruct= ( SimpleStruct*) any.getValue();
					pStruct->message= OUString::createFromAscii("This struct was created in OleTest");
					any >>= aStruct;
				}
			}
=====================================================================
Found a 24 line (102 tokens) duplication in the following files: 
Starting at line 81 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/OleConverterVar1/convTest.cxx
Starting at line 47 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/test/ole/cpptest/cpptest.cpp

int main(int argc, char* argv[])
{
	HRESULT hr;
	if( FAILED( hr=CoInitialize(NULL)))
	{
		_tprintf(_T("CoInitialize failed \n"));
		return -1;
	}

	
	_Module.Init( ObjectMap, GetModuleHandle( NULL));

	if( FAILED(hr=doTest()))
	{
		_com_error err( hr);
		const TCHAR * errMsg= err.ErrorMessage();
		MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
	}


	_Module.Term();
	CoUninitialize();
	return 0;
}
=====================================================================
Found a 11 line (102 tokens) duplication in the following files: 
Starting at line 438 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx
Starting at line 222 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xolefactory.cxx

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											3 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											4 );

	uno::Reference< uno::XInterface > xResult(
=====================================================================
Found a 13 line (102 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 214 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OOoEmbeddedObjectFactory::createInstanceInitFromMediaDescriptor" );

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Sequence< beans::PropertyValue > aTempMedDescr( aMediaDescr );
=====================================================================
Found a 16 line (102 tokens) duplication in the following files: 
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/visobj.cxx
Starting at line 334 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olevisual.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObject::getPreferredVisualRepresentation" );

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	// TODO: if the object has cached representation then it should be returned
	// TODO: if the object has no cached representation and is in loaded state it should switch itself to the running state
	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The object is not loaded!\n" ),
=====================================================================
Found a 16 line (102 tokens) duplication in the following files: 
Starting at line 1520 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1850 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx

	VerbExecutionControllerGuard aVerbGuard( m_aVerbExecutionController );

	if ( m_nObjectState == -1 )
	{
		// the object is still not loaded
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Can't store object without persistence!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
	}

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	if ( m_bReadOnly )
		throw io::IOException(); // TODO: access denied
=====================================================================
Found a 4 line (102 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x9c,0x0f,0x00,0x00,0x3e,0x1f,
=====================================================================
Found a 27 line (102 tokens) duplication in the following files: 
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/qssl/runargv.c
Starting at line 713 of /local/ooo-build/ooo-build/src/oog680-m3/dmake/unix/runargv.c

      Unlink_temp_files( _procs[i].pr_target );
      Handle_result(status,_procs[i].pr_ignore,_abort_flg,_procs[i].pr_target);

 ABORT_REMAINDER_OF_RECIPE:
      if( _procs[i].pr_last ) {
	 FREE(_procs[i].pr_dir ); /* Set in _add_child() */

	 if( !Doing_bang ) Update_time_stamp( _procs[i].pr_target );
      }
   }

   Set_dir(dir);
   FREE(dir);
}


static int
_running( cp )/*
================
  Check if target exists in process array AND is running. Return its
  process array index if it is running, return -1 otherwise.
*/
CELLPTR cp;
{
   register int i;

   if( !_procs ) return( -1 );
=====================================================================
Found a 17 line (102 tokens) duplication in the following files: 
Starting at line 118 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/app/officeipcthread.cxx
Starting at line 48 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl/digest/rtl_digest.cxx

rtl::OUString CreateMD5FromString( const rtl::OUString& aMsg )
{
	// PRE: aStr "file"
	// BACK: Str "ababab....0f" Hexcode String

	rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 );
	if ( handle > 0 )
	{
		const sal_uInt8* pData = (const sal_uInt8*)aMsg.getStr();
		sal_uInt32		 nSize = ( aMsg.getLength() * sizeof( sal_Unicode ));
		sal_uInt32		 nMD5KeyLen = rtl_digest_queryLength( handle );
		sal_uInt8*		 pMD5KeyBuffer = new sal_uInt8[ nMD5KeyLen ];

		rtl_digest_init( handle, pData, nSize );
		rtl_digest_update( handle, pData, nSize );
		rtl_digest_get( handle, pMD5KeyBuffer, nMD5KeyLen );
		rtl_digest_destroy( handle );
=====================================================================
Found a 11 line (102 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
Starting at line 1313 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/optinet2.cxx

	aPt = Point(OutputToScreenPixel( aItemRect.TopLeft() ));
	aItemRect.Left()   = aPt.X();
	aItemRect.Top()    = aPt.Y();
	aPt = OutputToScreenPixel( aItemRect.BottomRight() );
	aItemRect.Right()  = aPt.X();
	aItemRect.Bottom() = aPt.Y();
	if( rHEvt.GetMode() == HELPMODE_BALLOON )
		Help::ShowBalloon( this, aItemRect.Center(), aItemRect, aHelpText);
	else
		Help::ShowQuickHelp( this, aItemRect, aHelpText );
}
=====================================================================
Found a 36 line (102 tokens) duplication in the following files: 
Starting at line 78 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/myucp_resultset.cxx
Starting at line 71 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgresultset.cxx

              const uno::Reference< ucb::XCommandEnvironment >& rxEnv )
: ResultSetImplHelper( rxSMgr, rCommand ),
  m_xContent( rxContent ),
  m_xEnv( rxEnv )
{
}

//=========================================================================
//
// Non-interface methods.
//
//=========================================================================

void DynamicResultSet::initStatic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
}

//=========================================================================
void DynamicResultSet::initDynamic()
{
	m_xResultSet1
		= new ::ucbhelper::ResultSet( m_xSMgr,
                                      m_aCommand.Properties,
                                      new DataSupplier( m_xSMgr,
                                                        m_xContent,
                                                        m_aCommand.Mode ),
                                      m_xEnv );
	m_xResultSet2 = m_xResultSet1;
}
=====================================================================
Found a 20 line (102 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 574 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

    CPPUNIT_ASSERT(a.getValueType() == getCppuType< sal_Int16 >());
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", (a >>= b) && b == 1);
=====================================================================
Found a 14 line (102 tokens) duplication in the following files: 
Starting at line 114 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx

using namespace connectivity::skeleton;
//------------------------------------------------------------------------------
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::util;
//------------------------------------------------------------------------------
OStatement_Base::OStatement_Base(OConnection* _pConnection ) 
	: OStatement_BASE(m_aMutex),
	OPropertySetHelper(OStatement_BASE::rBHelper),
=====================================================================
Found a 10 line (102 tokens) duplication in the following files: 
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Array.cxx
Starting at line 196 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Array.cxx

::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL java_sql_Array::getResultSetAtIndex( sal_Int32 index, sal_Int32 count, const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
	jobject out(0);
    SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
	if( t.pEnv ){
		// Parameter konvertieren
		jobject obj = convertTypeMapToJavaMap(t.pEnv,typeMap);
		// temporaere Variable initialisieren
		static const char * cSignature = "(Ljava/util/Map;)Ljava/sql/ResultSet;";
		static const char * cMethodName = "getResultSetAtIndex";
=====================================================================
Found a 31 line (102 tokens) duplication in the following files: 
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/adabas/Bservices.cxx
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/calc/Cservices.cxx

		OSL_ENSURE(sal_False, "FILE::component_writeInfo : could not create a registry key ! ## InvalidRegistryException !");
	}

	return sal_False;
}

//---------------------------------------------------------------------------------------
extern "C" void* SAL_CALL component_getFactory(
					const sal_Char* pImplementationName,
					void* pServiceManager,
					void* /*pRegistryKey*/)
{
	void* pRet = 0;
	if (pServiceManager)
	{
		ProviderRequest aReq(pServiceManager,pImplementationName);

		aReq.CREATE_PROVIDER(
			ODriver::getImplementationName_Static(),
			ODriver::getSupportedServiceNames_Static(),
			ODriver_CreateInstance, ::cppu::createSingleFactory)
		;

		if(aReq.xRet.is())
			aReq.xRet->acquire();

		pRet = aReq.getProvider();
	}

	return pRet;
};
=====================================================================
Found a 13 line (102 tokens) duplication in the following files: 
Starting at line 330 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/platformbe/systemintegrationmanager.cxx
Starting at line 361 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/platformbe/systemintegrationmanager.cxx

void SAL_CALL SystemIntegrationManager::removeChangesListener( 
	const uno::Reference<backenduno::XBackendChangesListener>& xListener,
	const rtl::OUString& aComponent)
	throw (::com::sun::star::uno::RuntimeException)
{
	osl::MutexGuard aGuard(mMutex);
    {
        PlatformBackendList aUniversalBackends = getSupportingBackends(getAllComponentsName());
        for (sal_uInt32 i=0; i< aUniversalBackends.size(); i++)
        {
            uno::Reference<backenduno::XBackendChangesNotifier> xBackend( aUniversalBackends[i], uno::UNO_QUERY) ;
            if (xBackend.is())
                xBackend->removeChangesListener(xListener, aComponent);
=====================================================================
Found a 17 line (102 tokens) duplication in the following files: 
Starting at line 179 of /local/ooo-build/ooo-build/src/oog680-m3/comphelper/source/property/propstate.cxx
Starting at line 955 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/FormComponent.cxx

PropertyState OControlModel::getPropertyStateByHandle( sal_Int32 _nHandle )
{
	// simply compare the current and the default value
	Any aCurrentValue = getPropertyDefaultByHandle( _nHandle );
	Any aDefaultValue;  getFastPropertyValue( aDefaultValue, _nHandle );

	sal_Bool bEqual = uno_type_equalData(
			const_cast< void* >( aCurrentValue.getValue() ), aCurrentValue.getValueType().getTypeLibType(),
			const_cast< void* >( aDefaultValue.getValue() ), aDefaultValue.getValueType().getTypeLibType(),
			reinterpret_cast< uno_QueryInterfaceFunc >(cpp_queryInterface),
            reinterpret_cast< uno_ReleaseFunc >(cpp_release)
		);
    return bEqual ? PropertyState_DEFAULT_VALUE : PropertyState_DIRECT_VALUE;
}

//------------------------------------------------------------------------------
void OControlModel::setPropertyToDefaultByHandle( sal_Int32 _nHandle)
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 2959 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javatype.cxx
Starting at line 3152 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/javamaker/javatype.cxx

    code->branchHere(branch1);
    code->instrNew(
        rtl::OString(RTL_CONSTASCII_STRINGPARAM("com/sun/star/uno/Type")));
    // stack: value type
    code->instrDup();
    // stack: value type type
    code->loadStringConstant(realJavaBaseName);
    // stack: value type type "..."
    code->instrGetstatic(
        rtl::OString(RTL_CONSTASCII_STRINGPARAM("com/sun/star/uno/TypeClass")),
        rtl::OString(RTL_CONSTASCII_STRINGPARAM("INTERFACE")),
        rtl::OString(
            RTL_CONSTASCII_STRINGPARAM("Lcom/sun/star/uno/TypeClass;")));
    // stack: value type type "..." INTERFACE
    code->instrInvokespecial(
        rtl::OString(RTL_CONSTASCII_STRINGPARAM("com/sun/star/uno/Type")),
        rtl::OString(RTL_CONSTASCII_STRINGPARAM("<init>")),
        rtl::OString(
            RTL_CONSTASCII_STRINGPARAM(
                "(Ljava/lang/String;Lcom/sun/star/uno/TypeClass;)V")));
    // stack: value type
    code->instrSwap();
=====================================================================
Found a 27 line (102 tokens) duplication in the following files: 
Starting at line 2338 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 3635 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx

sal_Bool TypeDefType::dumpHFile(
    FileStream& o, codemaker::cppumaker::Includes & includes)
	throw( CannotDumpException )
{
	OString headerDefine(dumpHeaderDefine(o, "HDL"));
	o << "\n";

	addDefaultHIncludes(includes);
	includes.dump(o, 0);
	o << "\n";

    if (codemaker::cppumaker::dumpNamespaceOpen(o, m_typeName, false)) {
        o << "\n";
    }

	dumpDeclaration(o);

    if (codemaker::cppumaker::dumpNamespaceClose(o, m_typeName, false)) {
        o << "\n";
    }

//	o << "\nnamespace com { namespace sun { namespace star { namespace uno {\n"
//	  << "class Type;\n} } } }\n\n";
//	o << "inline const ::com::sun::star::uno::Type& SAL_CALL get_" << m_typeName.replace('/', '_')
//	  <<  "_Type( ) SAL_THROW( () );\n\n";

	o << "#endif // "<< headerDefine << "\n";
=====================================================================
Found a 25 line (102 tokens) duplication in the following files: 
Starting at line 1079 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 1303 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cunomaker/cunotype.cxx

OString	CunoType::checkSpecialCunoType(const OString& type)
{
	OString baseType(type);

	RegistryTypeReaderLoader & rReaderLoader = getRegistryTypeReaderLoader();

	RegistryKey 	key;
	sal_uInt8*		pBuffer=NULL;
	RTTypeClass 	typeClass;
	sal_Bool 		isTypeDef = (m_typeMgr.getTypeClass(baseType) == RT_TYPE_TYPEDEF);
	TypeReader		reader;

	while (isTypeDef)
	{
		reader = m_typeMgr.getTypeReader(baseType);

		if (reader.isValid())
		{
			typeClass = reader.getTypeClass();

			if (typeClass == RT_TYPE_TYPEDEF)
				baseType = reader.getSuperTypeName();
			else
				isTypeDef = sal_False;
		} else
=====================================================================
Found a 9 line (102 tokens) duplication in the following files: 
Starting at line 433 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/AreaChart.cxx
Starting at line 794 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/charttypes/BarChart.cxx

    if( bDrawConnectionLines )
    {
        ::std::vector< ::std::vector< VDataSeriesGroup > >::iterator             aZSlotIter = m_aZSlots.begin();
        const ::std::vector< ::std::vector< VDataSeriesGroup > >::const_iterator  aZSlotEnd = m_aZSlots.end();
//=============================================================================
        for( sal_Int32 nZ=1; aZSlotIter != aZSlotEnd; aZSlotIter++, nZ++ )
        {
            ::std::vector< VDataSeriesGroup >::iterator             aXSlotIter = aZSlotIter->begin();
            const ::std::vector< VDataSeriesGroup >::const_iterator aXSlotEnd = aZSlotIter->end();
=====================================================================
Found a 17 line (102 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx
Starting at line 76 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/tools/PotentialRegressionCurveCalculator.cxx

            RegressionCalculationHelper::isValidAndBothPositive()));

    const size_t nMax = aValues.first.size();
    if( nMax == 0 )
    {
        ::rtl::math::setNan( & m_fSlope );
        ::rtl::math::setNan( & m_fIntercept );
        ::rtl::math::setNan( & m_fCorrelationCoeffitient );
        return;
    }

    double fAverageX = 0.0, fAverageY = 0.0;
    size_t i = 0;
    for( i = 0; i < nMax; ++i )
    {
        fAverageX += log( aValues.first[i] );
        fAverageY += log( aValues.second[i] );
=====================================================================
Found a 2 line (102 tokens) duplication in the following files: 
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
Starting at line 80 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx

    void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
                    throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno.cxx
Starting at line 267 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx

		throw RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("illegal vtable index!") ),
								(XInterface *)pThis );
	}

	// determine called method
	sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
	OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );

	TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );

	typelib_TypeClass eRet;
	switch (aMemberDescr.get()->eTypeClass)
	{
	case typelib_TypeClass_INTERFACE_ATTRIBUTE:
	{
		if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
		{
			// is GET method
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
				0, 0, // no params
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 163 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno.cxx
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx

	uno_Any aUnoExc; // Any will be constructed by callee
	uno_Any * pUnoExc = &aUnoExc;

	// invoke uno dispatch call
	(*pThis->getUnoI()->pDispatcher)( pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
	
	// in case an exception occured...
	if (pUnoExc)
	{
		// destruct temporary in/inout params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			
			if (pParams[nIndex].bIn) // is in/inout => was constructed
				uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndizes], 0 );
			TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndizes] );
		}
		if (pReturnTypeDescr)
			TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
		
		CPPU_CURRENT_NAMESPACE::raiseException( &aUnoExc, pThis->getBridge()->getUno2Cpp() ); 
=====================================================================
Found a 28 line (102 tokens) duplication in the following files: 
Starting at line 900 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/uno/scriptcont.cxx
Starting at line 1004 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/uno/scriptcont.cxx

																		embed::ElementModes::READ );

							SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( xCodeStream );
							if ( !pStream || pStream->GetError() )
							{
								sal_Int32 nError = pStream ? pStream->GetError() : ERRCODE_IO_GENERAL;
								delete pStream;
								throw task::ErrorCodeIOException( ::rtl::OUString(),
																	uno::Reference< uno::XInterface >(),
																	nError );
							}

                            /*BOOL bRet = */pMod->LoadBinaryData( *pStream );
                            // TODO: Check return value

							delete pStream;
                        }
						catch( uno::Exception& )
						{
                            // TODO: error handling
						}
                    }

                    // Load source
                    if( bLoadSource || bVerifyPasswordOnly )
                    {
                        // Access encrypted source stream
		                OUString aSourceStreamName( RTL_CONSTASCII_USTRINGPARAM("source.xml") );
=====================================================================
Found a 21 line (102 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdate.cxx
Starting at line 72 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/sbx/sbxdbl.cxx

			nRes = p->nDouble; break;
		case SbxCURRENCY:
			nRes = ImpCurrencyToDouble( p->nLong64 ); break;
		case SbxSALINT64:
            nRes = static_cast< double >(p->nInt64); break;
		case SbxSALUINT64:
            nRes = ImpSalUInt64ToDouble( p->uInt64 ); break;
		case SbxDECIMAL:
		case SbxBYREF | SbxDECIMAL:
			if( p->pDecimal )
				p->pDecimal->getDouble( nRes );
			else
				nRes = 0.0;
			break;
		case SbxBYREF | SbxSTRING:
		case SbxSTRING:
		case SbxLPSTR:
			if( !p->pString )
				nRes = 0;
			else
			{
=====================================================================
Found a 22 line (102 tokens) duplication in the following files: 
Starting at line 490 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlgedobj.cxx
Starting at line 1589 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/dlged/dlgedobj.cxx

    if ( TransformSdrToFormCoordinates( nXIn, nYIn, nWidthIn, nHeightIn, nXOut, nYOut, nWidthOut, nHeightOut ) )
    {
        // set properties
        Reference< beans::XPropertySet > xPSet( GetUnoControlModel(), UNO_QUERY );
        if ( xPSet.is() )
        {
            Any aValue;
            aValue <<= nXOut;
            xPSet->setPropertyValue( DLGED_PROP_POSITIONX, aValue );
            aValue <<= nYOut;
            xPSet->setPropertyValue( DLGED_PROP_POSITIONY, aValue );
            aValue <<= nWidthOut;
            xPSet->setPropertyValue( DLGED_PROP_WIDTH, aValue );
            aValue <<= nHeightOut;
            xPSet->setPropertyValue( DLGED_PROP_HEIGHT, aValue );
        }
    }
}

//----------------------------------------------------------------------------

void DlgEdForm::AddChild( DlgEdObj* pDlgEdObj )
=====================================================================
Found a 22 line (101 tokens) duplication in the following files: 
Starting at line 4950 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx
Starting at line 5077 of /local/ooo-build/ooo-build/src/oog680-m3/writerfilter/source/ooxml/OOXMLresources.cxx

    {       
        OOXMLContext::Pointer_t pSubContext = OOXMLContext::Pointer_t
            ( new OOXMLContext_drawingml_EG_FillProperties(*this));
        OOXMLContext::Pointer_t pContext(pSubContext->element(nToken));

        if (pContext.get() != NULL)
            return pContext;
     }
    
    {       
        OOXMLContext::Pointer_t pSubContext = OOXMLContext::Pointer_t
            ( new OOXMLContext_drawingml_EG_EffectProperties(*this));
        OOXMLContext::Pointer_t pContext(pSubContext->element(nToken));

        if (pContext.get() != NULL)
            return pContext;
     }
    
    return OOXMLContext::Pointer_t();
}
    
OOXMLContext::Pointer_t
=====================================================================
Found a 8 line (101 tokens) duplication in the following files: 
Starting at line 7410 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp
Starting at line 7716 of /local/ooo-build/ooo-build/src/oog680-m3/agg/source/agg_embedded_raster_fonts.cpp

        8, // 0x2A '*'
        0x00,0x00,0x10,0x54,0x38,0x54,0x10,0x00,0x00,0x00,0x00,0x00,0x00,

        9, // 0x2B '+'
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x08,0x00,0x08,0x00,0x7F,0x00,0x08,0x00,0x08,0x00,0x08,0x00,0x00,0x00,0x00,0x00,

        4, // 0x2C ','
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x60,0x40,
=====================================================================
Found a 18 line (101 tokens) duplication in the following files: 
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

            base_type(alloc, src, color_type(0,0,0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 17 line (101 tokens) duplication in the following files: 
Starting at line 489 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgb.h
Starting at line 500 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_rgba.h

                base_type::interpolator().coordinates(&x, &y);

                x -= base_type::filter_dx_int();
                y -= base_type::filter_dy_int();

                int x_hr = x; 
                int y_hr = y; 

                int x_fract = x_hr & image_subpixel_mask;
                unsigned y_count = diameter;

                int y_lr  = m_wrap_mode_y((y >> image_subpixel_shift) + start);
                int x_int = (x >> image_subpixel_shift) + start;
                int x_lr;

                y_hr = image_subpixel_mask - (y_hr & image_subpixel_mask);
                fg[0] = fg[1] = fg[2] = fg[3] = image_filter_size / 2;
=====================================================================
Found a 18 line (101 tokens) duplication in the following files: 
Starting at line 64 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_span_pattern_filter_gray.h

            base_type(alloc, src, color_type(0,0), inter, &filter),
            m_wrap_mode_x(src.width()),
            m_wrap_mode_y(src.height())
        {}

        //-------------------------------------------------------------------
        void source_image(const rendering_buffer& src) 
        { 
            base_type::source_image(src);
            m_wrap_mode_x = WrapModeX(src.width());
            m_wrap_mode_y = WrapModeX(src.height());
        }

        //--------------------------------------------------------------------
        color_type* generate(int x, int y, unsigned len)
        {
            base_type::interpolator().begin(x + base_type::filter_dx_dbl(), 
                                            y + base_type::filter_dy_dbl(), len);
=====================================================================
Found a 23 line (101 tokens) duplication in the following files: 
Starting at line 1868 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtparai.cxx
Starting at line 1901 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtparai.cxx

                    Reference < XShape > xShape = pDHint->GetShape();
                    if ( xShape.is() )
                    {
                        // determine anchor type
                        Reference < XPropertySet > xPropSet( xShape, UNO_QUERY );
                        TextContentAnchorType eAnchorType = TextContentAnchorType_AT_PARAGRAPH;
                        {
                            OUString sAnchorType( RTL_CONSTASCII_USTRINGPARAM( "AnchorType" ) );
                            Any aAny = xPropSet->getPropertyValue( sAnchorType );
                            aAny >>= eAnchorType;
                        }
                        if ( TextContentAnchorType_AT_CHARACTER == eAnchorType )
                        {
                            // set anchor position for at-character anchored objects
                            Reference<XTextRange> xRange(xAttrCursor, UNO_QUERY);
                            Any aPos;
                            aPos <<= xRange;
                            OUString sTextRange( RTL_CONSTASCII_USTRINGPARAM( "TextRange" ) );
                            xPropSet->setPropertyValue(sTextRange, aPos);
                        }
                    }
                    // <--
				}
=====================================================================
Found a 17 line (101 tokens) duplication in the following files: 
Starting at line 863 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx
Starting at line 1842 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/shapeexport2.cxx

	XmlShapeType, sal_Int32 nFeatures /* = SEF_DEFAULT */, awt::Point* pRefPoint /* = NULL */)
{
	const uno::Reference< beans::XPropertySet > xPropSet(xShape, uno::UNO_QUERY);
	if(xPropSet.is())
	{
		// Transformation
		ImpExportNewTrans(xPropSet, nFeatures, pRefPoint);

		// evtl. corner radius?
		sal_Int32 nCornerRadius(0L);
		xPropSet->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("CornerRadius"))) >>= nCornerRadius;
		if(nCornerRadius)
		{
			OUStringBuffer sStringBuffer;
			mrExport.GetMM100UnitConverter().convertMeasure(sStringBuffer, nCornerRadius);
			mrExport.AddAttribute(XML_NAMESPACE_DRAW, XML_CORNER_RADIUS, sStringBuffer.makeStringAndClear());
		}
=====================================================================
Found a 11 line (101 tokens) duplication in the following files: 
Starting at line 103 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/animimp.cxx
Starting at line 96 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/eventimp.cxx
Starting at line 89 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/ximpshow.cxx

using namespace ::rtl;
using namespace ::std;
using namespace ::cppu;
using namespace ::com::sun::star;
using namespace ::com::sun::star::xml;
using namespace ::com::sun::star::xml::sax;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::drawing;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 40 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_mask.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_mask.h

 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 32 line (101 tokens) duplication in the following files: 
Starting at line 1848 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outmap.cxx
Starting at line 1884 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outmap.cxx

			a7 *= n6;

			if ( LONG_MAX / Abs(n4) < Abs(n5) )
			{
				BigInt a8 = n4;
				a8 *= n5;

				BigInt a9 = a8;
				a9 /= 2;
				if ( a7.IsNeg() )
					a7 -= a9;
				else
					a7 += a9;

				a7 /= a8;
			} // of if
			else
			{
				long n8 = n4 * n5;

				if ( a7.IsNeg() )
					a7 -= n8 / 2;
				else
					a7 += n8 / 2;

				a7 /= n8;
			} // of else
			return (long)a7;
		} // of if
		else
		{
			long n7 = n1 * n6;
=====================================================================
Found a 16 line (101 tokens) duplication in the following files: 
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impvect.cxx
Starting at line 558 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/impvect.cxx

		else if( nFlag & VECT_POLY_INLINE_OUTER )
		{
			long nFirstX, nFirstY;
			long nLastX, nLastY;

			nFirstX = nLastX = maStartPt.X();
			nFirstY = nLastY = maStartPt.Y();
			aArr.ImplSetSize( mnCount << 1 );

			USHORT i, nPolyPos;
			for( i = 0, nPolyPos = 0; i < ( mnCount - 1 ); i++ )
			{
				const BYTE				cMove = mpCodes[ i ];
				const BYTE				cNextMove = mpCodes[ i + 1 ];
				const ChainMove&		rMove = aImplMove[ cMove ];
				const ChainMove&		rMoveOuter = aImplMoveOuter[ cMove ];
=====================================================================
Found a 26 line (101 tokens) duplication in the following files: 
Starting at line 1909 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontent.cxx
Starting at line 2012 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/tdoc/tdoc_content.cxx

    }
}

//=========================================================================
void Content::transfer(
            const ucb::TransferInfo& rInfo,
            const uno::Reference< ucb::XCommandEnvironment > & xEnv )
    throw( uno::Exception )
{
	osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );

	// Persistent?
	if ( m_eState != PERSISTENT )
	{
        ucbhelper::cancelCommandExecution(
            uno::makeAny( ucb::UnsupportedCommandException(
                                rtl::OUString::createFromAscii(
                                    "Not persistent!" ),
                                static_cast< cppu::OWeakObject * >( this ) ) ),
            xEnv );
        // Unreachable
	}

    // Does source URI scheme match? Only vnd.sun.star.tdoc is supported.

    if ( ( rInfo.SourceURL.getLength() < TDOC_URL_SCHEME_LENGTH + 2 ) )
=====================================================================
Found a 19 line (101 tokens) duplication in the following files: 
Starting at line 113 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/ftp/ftpcontentidentifier.cxx
Starting at line 199 of /local/ooo-build/ooo-build/src/oog680-m3/ucbhelper/source/provider/contentidentifier.cxx

ContentIdentifier::getTypes()
	throw( RuntimeException )
{
	static cppu::OTypeCollection* pCollection = NULL;
  	if ( !pCollection )
  	{
		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
		if ( !pCollection )
		{
			static cppu::OTypeCollection collection(
					getCppuType( static_cast<
						Reference < XTypeProvider > * >( 0 ) ),
					getCppuType( static_cast<
						Reference< XContentIdentifier > * >( 0 ) ) );
			pCollection = &collection;
		}
	}
	return (*pCollection).getTypes();
}
=====================================================================
Found a 26 line (101 tokens) duplication in the following files: 
Starting at line 429 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/string/strimp.cxx
Starting at line 475 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/string/strimp.cxx

	if ( !nLen )
	{
		STRING_NEW((STRING_TYPE **)&mpData);
	}
	else
	{
		// Wenn String genauso lang ist, wie der String, dann direkt kopieren
		if ( (nLen == mpData->mnLen) && (mpData->mnRefCount == 1) )
			memcpy( mpData->maStr, pCharStr, nLen*sizeof( STRCODE ) );
		else
		{
			// Alte Daten loeschen
			STRING_RELEASE((STRING_TYPE *)mpData);

			// Daten initialisieren und String kopieren
			mpData = ImplAllocData( nLen );
			memcpy( mpData->maStr, pCharStr, nLen*sizeof( STRCODE ) );
		}
	}

	return *this;
}

// -----------------------------------------------------------------------

STRING& STRING::Assign( STRCODE c )
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 218 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/usrpref.cxx
Starting at line 594 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/usrpref.cxx

void SwCursorConfig::Load()
{
	Sequence<OUString> aNames = GetPropertyNames();
	Sequence<Any> aValues = GetProperties(aNames);
	const Any* pValues = aValues.getConstArray();
	DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
	if(aValues.getLength() == aNames.getLength())
	{

		for(int nProp = 0; nProp < aNames.getLength(); nProp++)
		{
			if(pValues[nProp].hasValue())
			{
				sal_Bool bSet;
=====================================================================
Found a 21 line (101 tokens) duplication in the following files: 
Starting at line 819 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx
Starting at line 972 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/xml/xmltexti.cxx

                    makeAny( sal_Int32( aMargin.Height() ) ) );
            }

            SwFrmFmt *pFrmFmt = pDoc->Insert( *pTxtCrsr->GetPaM(),
                                            ::svt::EmbeddedObjectRef( xObj, embed::Aspects::MSOLE_CONTENT ),
                                            &aItemSet,
											NULL,
											NULL);
            SwXFrame *pXFrame = SwXFrames::GetObject( *pFrmFmt, FLYCNTTYPE_OLE );
            xPropSet = pXFrame;
            if( pDoc->GetDrawModel() )
                SwXFrame::GetOrCreateSdrObject(
                        static_cast<SwFlyFrmFmt*>( pXFrame->GetFrmFmt() ) ); // req for z-order
        }
    }
    catch ( uno::Exception& )
    {
    }

	return xPropSet;
}
=====================================================================
Found a 16 line (101 tokens) duplication in the following files: 
Starting at line 3936 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx
Starting at line 4205 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

	_HTMLAttrContext *pCntxt = new _HTMLAttrContext( nToken, nColl, aClass );

	// Styles parsen (zu Class siehe auch NewPara)
	if( HasStyleOptions( aStyle, aId, aEmptyStr, &aLang, &aDir ) )
	{
		SfxItemSet aItemSet( pDoc->GetAttrPool(), pCSS1Parser->GetWhichMap() );
		SvxCSS1PropertyInfo aPropInfo;

		if( ParseStyleOptions( aStyle, aId, aEmptyStr, aItemSet, aPropInfo, &aLang, &aDir ) )
		{
			ASSERT( !aClass.Len() || !pCSS1Parser->GetClass( aClass ),
					"Class wird nicht beruecksichtigt" );
			DoPositioning( aItemSet, aPropInfo, pCntxt );
			InsertAttrs( aItemSet, aPropInfo, pCntxt );
		}
	}
=====================================================================
Found a 12 line (101 tokens) duplication in the following files: 
Starting at line 592 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlforw.cxx
Starting at line 729 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlforw.cxx

            aTmp = xPropSet->getPropertyValue(
                            OUString::createFromAscii( "Name" ) );
            if( aTmp.getValueType() == ::getCppuType((const OUString*)0) &&
                ((OUString*)aTmp.getValue())->getLength() )
            {
                (( sOut += ' ' ) += sHTML_O_name ) += "=\"";
                Strm() << sOut.GetBuffer();
                HTMLOutFuncs::Out_String( Strm(), *(OUString*)aTmp.getValue(),
                                          eDestEnc, &aNonConvertableCharacters );
                sOut = '\"';
            }
            aTmp = xPropSet->getPropertyValue(
=====================================================================
Found a 12 line (101 tokens) duplication in the following files: 
Starting at line 690 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx
Starting at line 2648 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

				SwClientIter aIter( *pTblFmt );
				for( SwClient* pC = aIter.First( TYPE( SwFrm ));
						pC; pC = aIter.Next() )
				{
					if( ((SwFrm*)pC)->IsTabFrm() )
					{
						if(((SwFrm*)pC)->IsValid())
							((SwFrm*)pC)->InvalidatePos();
						((SwTabFrm*)pC)->SetONECalcLowers();
						((SwTabFrm*)pC)->Calc();
					}
				}
=====================================================================
Found a 12 line (101 tokens) duplication in the following files: 
Starting at line 1391 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unofield.cxx
Starting at line 2606 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

	uno::Reference<XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}
	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;
	if(pDoc && nRows && nColumns)
=====================================================================
Found a 16 line (101 tokens) duplication in the following files: 
Starting at line 660 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/unattr.cxx
Starting at line 583 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/undo/undobj1.cxx

				SwTxtNode *pTxtNode = pPos->nNode.GetNode().GetTxtNode();
				ASSERT( pTxtNode->HasHints(), "Missing FlyInCnt-Hint." );
				const xub_StrLen nIdx = pPos->nContent.GetIndex();
				SwTxtAttr * pHnt = pTxtNode->GetTxtAttr( nIdx, RES_TXTATR_FLYCNT );
#ifndef PRODUCT
				ASSERT( pHnt && pHnt->Which() == RES_TXTATR_FLYCNT,
							"Missing FlyInCnt-Hint." );
				ASSERT( pHnt && pHnt->GetFlyCnt().GetFrmFmt() == pFrmFmt,
							"Wrong TxtFlyCnt-Hint." );
#endif
				((SwFmtFlyCnt&)pHnt->GetFlyCnt()).SetFlyFmt();

				// Die Verbindung ist geloest, jetzt muss noch das Attribut
				// vernichtet werden.
				pTxtNode->Delete( RES_TXTATR_FLYCNT, nIdx, nIdx );
			}
=====================================================================
Found a 12 line (101 tokens) duplication in the following files: 
Starting at line 2444 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/frmtool.cxx
Starting at line 2481 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/frmtool.cxx

		UINT32 nOrd = USHRT_MAX;
        const SwSortedObjs *pObjs = pPage->GetSortedObjs();
		if ( pObjs->Count() )
		{
            (*pObjs)[0]->GetDrawObj()->GetOrdNum();  //Aktualisieren erzwingen!
			for ( USHORT i = 0; i < pObjs->Count(); ++i )
			{
                const SdrObject* pObj = (*pObjs)[i]->GetDrawObj();
				if ( bFlysOnly && !pObj->ISA(SwVirtFlyDrawObj) )
					continue;
				UINT32 nTmp = pObj->GetOrdNumDirect();
				if ( nTmp > nCurOrd && nTmp < nOrd )
=====================================================================
Found a 12 line (101 tokens) duplication in the following files: 
Starting at line 2408 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/frmtool.cxx
Starting at line 2518 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/frmtool.cxx

		UINT32 nOrd = 0;
        const SwSortedObjs *pObjs = pPage->GetSortedObjs();
		if ( pObjs->Count() )
		{
            (*pObjs)[0]->GetDrawObj()->GetOrdNum();  //Aktualisieren erzwingen!
			for ( USHORT i = 0; i < pObjs->Count(); ++i )
			{
                const SdrObject* pObj = (*pObjs)[i]->GetDrawObj();
				if ( bFlysOnly && !pObj->ISA(SwVirtFlyDrawObj) )
					continue;
				UINT32 nTmp = pObj->GetOrdNumDirect();
				if ( nTmp < nCurOrd && nTmp >= nOrd )
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 3949 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx
Starting at line 3986 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx

			XGradient aXGradient;

			aXGradient.SetGradientStyle( (XGradientStyle) aGradient2.Style );
			aXGradient.SetStartColor( aGradient2.StartColor );
			aXGradient.SetEndColor( aGradient2.EndColor );
			aXGradient.SetAngle( aGradient2.Angle );
			aXGradient.SetBorder( aGradient2.Border );
			aXGradient.SetXOffset( aGradient2.XOffset );
			aXGradient.SetYOffset( aGradient2.YOffset );
			aXGradient.SetStartIntens( aGradient2.StartIntensity );
			aXGradient.SetEndIntens( aGradient2.EndIntensity );
			aXGradient.SetSteps( aGradient2.StepCount );

			SetGradientValue( aXGradient );
=====================================================================
Found a 13 line (101 tokens) duplication in the following files: 
Starting at line 1303 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx
Starting at line 1339 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr.cxx

			XDash aXDash;

			aXDash.SetDashStyle((XDashStyle)((UINT16)(aLineDash.Style)));
			aXDash.SetDots(aLineDash.Dots);
			aXDash.SetDotLen(aLineDash.DotLen);
			aXDash.SetDashes(aLineDash.Dashes);
			aXDash.SetDashLen(aLineDash.DashLen);
			aXDash.SetDistance(aLineDash.Distance);

			if((0 == aXDash.GetDots()) && (0 == aXDash.GetDashes()))
				aXDash.SetDots(1);

			SetDashValue( aXDash );
=====================================================================
Found a 6 line (101 tokens) duplication in the following files: 
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoshape.cxx

		{MAP_CHAR_LEN("TextUserDefinedAttributes"),			EE_CHAR_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}
	};

	return aSvxUnoOutlinerTextCursorPropertyMap;
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/XPropertyTable.cxx
Starting at line 396 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/XPropertyTable.cxx
Starting at line 469 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/XPropertyTable.cxx
Starting at line 551 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/XPropertyTable.cxx
Starting at line 628 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/XPropertyTable.cxx
Starting at line 717 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/XPropertyTable.cxx

	SvxUnoXBitmapTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLBITMAP, pTable ) {};

	// SvxUnoXPropertyTable
	virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw();
	virtual XPropertyEntry* getEntry( const OUString& rName, const uno::Any& rAny ) const throw();

	// XElementAccess
    virtual uno::Type SAL_CALL getElementType() throw( uno::RuntimeException );

	// XServiceInfo
    virtual OUString SAL_CALL getImplementationName(  ) throw( uno::RuntimeException );
    virtual uno::Sequence<  OUString > SAL_CALL getSupportedServiceNames(  ) throw( uno::RuntimeException);
};

uno::Reference< uno::XInterface > SAL_CALL SvxUnoXBitmapTable_createInstance( XPropertyList* pTable ) throw()
=====================================================================
Found a 20 line (101 tokens) duplication in the following files: 
Starting at line 1207 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoole2.cxx
Starting at line 307 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdouno.cxx

void SdrUnoObj::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const
{
	rInfo.bRotateFreeAllowed		=	FALSE;
	rInfo.bRotate90Allowed			=	FALSE;
	rInfo.bMirrorFreeAllowed		=	FALSE;
	rInfo.bMirror45Allowed			=	FALSE;
	rInfo.bMirror90Allowed			=	FALSE;
	rInfo.bTransparenceAllowed = FALSE;
	rInfo.bGradientAllowed = FALSE;
	rInfo.bShearAllowed 			=	FALSE;
	rInfo.bEdgeRadiusAllowed		=	FALSE;
	rInfo.bNoOrthoDesired			=	FALSE;
	rInfo.bCanConvToPath			=	FALSE;
	rInfo.bCanConvToPoly			=	FALSE;
	rInfo.bCanConvToPathLineToArea	=	FALSE;
	rInfo.bCanConvToPolyLineToArea	=	FALSE;
	rInfo.bCanConvToContour = FALSE;
}

UINT16 SdrUnoObj::GetObjIdentifier() const
=====================================================================
Found a 39 line (101 tokens) duplication in the following files: 
Starting at line 2005 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msdffimp.cxx
Starting at line 1094 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdfppt.cxx

							| PPT_TEXTOBJ_FLAGS_PARA_ALIGNMENT_USED_CENTER | PPT_TEXTOBJ_FLAGS_PARA_ALIGNMENT_USED_BLOCK;

				if ( bVerticalText )
				{
    				eTVA = SDRTEXTVERTADJUST_BLOCK;
	    			eTHA = SDRTEXTHORZADJUST_CENTER;

					// Textverankerung lesen
					MSO_Anchor eTextAnchor = (MSO_Anchor)GetPropertyValue( DFF_Prop_anchorText, mso_anchorTop );

					switch( eTextAnchor )
					{
						case mso_anchorTop:
						case mso_anchorTopCentered:
						case mso_anchorTopBaseline:
						case mso_anchorTopCenteredBaseline:
							eTHA = SDRTEXTHORZADJUST_RIGHT;
						break;

						case mso_anchorMiddle :
						case mso_anchorMiddleCentered:
							eTHA = SDRTEXTHORZADJUST_CENTER;
						break;

						case mso_anchorBottom:
						case mso_anchorBottomCentered:
						case mso_anchorBottomBaseline:
						case mso_anchorBottomCenteredBaseline:
							eTHA = SDRTEXTHORZADJUST_LEFT;
						break;
					}
					// if there is a 100% use of following attributes, the textbox can been aligned also in vertical direction
					switch ( eTextAnchor )
					{
						case mso_anchorTopCentered :
						case mso_anchorMiddleCentered :
						case mso_anchorBottomCentered :
						case mso_anchorTopCenteredBaseline:
						case mso_anchorBottomCenteredBaseline:
=====================================================================
Found a 19 line (101 tokens) duplication in the following files: 
Starting at line 833 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/form/fmundo.cxx
Starting at line 938 of /local/ooo-build/ooo-build/src/oog680-m3/reportdesign/source/core/sdr/UndoActions.cxx

        if ( !m_pImpl->m_bReadOnly )
        {
            Reference< XPropertySet > xProps( _rxObject, UNO_QUERY );
	        if ( xProps.is() )
                if ( _bStartListening )
    		        xProps->addPropertyChangeListener( ::rtl::OUString(), this );
                else
    	    	    xProps->removePropertyChangeListener( ::rtl::OUString(), this );
        }

        Reference< XModifyBroadcaster > xBroadcaster( _rxObject, UNO_QUERY );
        if ( xBroadcaster.is() )
            if ( _bStartListening )
                xBroadcaster->addModifyListener( this );
            else
                xBroadcaster->removeModifyListener( this );
    }
    catch( const Exception& )
    {
=====================================================================
Found a 13 line (101 tokens) duplication in the following files: 
Starting at line 1663 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx
Starting at line 1783 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx

            Bitmap aBitmap(pItem->GetGraphic()->GetBitmap());
            Size aSize(aBitmap.GetSizePixel());
            if(aSize.Width()  > MAX_BMP_WIDTH ||
               aSize.Height() > MAX_BMP_HEIGHT)
            {
                BOOL bWidth = aSize.Width() > aSize.Height();
                double nScale = bWidth ?
                    (double)MAX_BMP_WIDTH / (double)aSize.Width():
                    (double)MAX_BMP_HEIGHT / (double)aSize.Height();
                aBitmap.Scale(nScale, nScale);
            }
            Image aImage(aBitmap);
            pPopup->SetItemImage( pBmpInfo->nItemId, aImage );
=====================================================================
Found a 13 line (101 tokens) duplication in the following files: 
Starting at line 1014 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx
Starting at line 1691 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx

		VirtualDevice aVDev;
		aVDev.SetMapMode(MapMode(MAP_100TH_MM));
		SdrModel* pModel = new SdrModel(NULL, NULL, LOADREFCOUNTS);
		pModel->GetItemPool().FreezeIdRanges();
		// Page
		SdrPage* pPage = new SdrPage( *pModel, FALSE );
		pPage->SetSize(Size(1000,1000));
		pModel->InsertPage( pPage, 0 );
		// 3D View
		SdrView* pView = new SdrView( pModel, &aVDev );
		pView->hideMarkHandles();
//		SdrPageView* pPageView = pView->ShowSdrPage(pPage, Point());
		SdrPageView* pPageView = pView->ShowSdrPage(pPage);
=====================================================================
Found a 37 line (101 tokens) duplication in the following files: 
Starting at line 309 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tphatch.cxx
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tplnedef.cxx

													String( ResId( RID_SVXSTR_ASK_CHANGE_LINESTYLE, rMgr ) ),
													&aWarningBoxImage );
		DBG_ASSERT(aMessDlg, "Dialogdiet fail!");//CHINA001
		aMessDlg->SetButtonText( MESS_BTN_1, //CHINA001 aMessDlg.SetButtonText( MESS_BTN_1,
								String( ResId( RID_SVXSTR_CHANGE, rMgr ) ) );
		aMessDlg->SetButtonText( MESS_BTN_2, //CHINA001 aMessDlg.SetButtonText( MESS_BTN_2,
								String( ResId( RID_SVXSTR_ADD, rMgr ) ) );

		short nRet = aMessDlg->Execute(); //CHINA001 short nRet = aMessDlg.Execute();

		switch( nRet )
		{
			case RET_BTN_1: // Aendern
			{
				ClickModifyHdl_Impl( this );
				//aXDash = pDashList->Get( nPos )->GetDash();
			}
			break;

			case RET_BTN_2: // Hinzufuegen
			{
				ClickAddHdl_Impl( this );
				//nPos = aLbLineStyles.GetSelectEntryPos();
				//aXDash = pDashList->Get( nPos )->GetDash();
			}
			break;

			case RET_CANCEL:
			break;
			// return( TRUE ); // Abbruch
		}
		delete aMessDlg; //add by CHINA001
	}



	USHORT nPos = aLbLineStyles.GetSelectEntryPos();
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/draw/EnhancedCustomShapeToken.cxx

	EnhancedCustomShapeTokenEnum eRetValue = EAS_NotFound;
	int i, nLen = rShapeType.getLength();
	char* pBuf = new char[ nLen + 1 ];
	for ( i = 0; i < nLen; i++ )
		pBuf[ i ] = (char)rShapeType[ i ];
	pBuf[ i ] = 0;
	TypeNameHashMap::iterator aHashIter( pHashMap->find( pBuf ) );
	delete[] pBuf;
	if ( aHashIter != pHashMap->end() )
		eRetValue = (*aHashIter).second;
	return eRetValue;
}

rtl::OUString EASGet( const EnhancedCustomShapeTokenEnum eToken )
=====================================================================
Found a 12 line (101 tokens) duplication in the following files: 
Starting at line 6920 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 6938 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

	(SvxMSDffVertPair*)mso_sptTextWave4Vert, sizeof( mso_sptTextWave4Vert ) / sizeof( SvxMSDffVertPair ),
	(sal_uInt16*)mso_sptTextWave3Segm, sizeof( mso_sptTextWave3Segm ) >> 1,
	(SvxMSDffCalculationData*)mso_sptDoubleWaveCalc, sizeof( mso_sptDoubleWaveCalc ) / sizeof( SvxMSDffCalculationData ),
	(sal_Int32*)mso_sptDoubleWaveDefault,
	(SvxMSDffTextRectangles*)mso_sptDoubleWaveTextRect, sizeof( mso_sptDoubleWaveTextRect ) / sizeof( SvxMSDffTextRectangles ),
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptDoubleWaveGluePoints, sizeof( mso_sptDoubleWaveGluePoints ) / sizeof( SvxMSDffVertPair ),
	(SvxMSDffHandle*)mso_sptDoubleWaveHandle, sizeof( mso_sptDoubleWaveHandle ) / sizeof( SvxMSDffHandle )
};

static const sal_Int32 mso_sptCalloutDefault1[] =
=====================================================================
Found a 11 line (101 tokens) duplication in the following files: 
Starting at line 1106 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 1158 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx

static const SvxMSDffCalculationData mso_sptBentUpArrowCalc[] =
{
	{ 0x2000, { DFF_Prop_adjustValue, 0, 0 } },		// 0
	{ 0x2000, { DFF_Prop_adjust2Value, 0, 0 } },		// 1
	{ 0x2000, { DFF_Prop_adjust3Value, 0, 0 } },		// 2
	{ 0x8000, { 21600, 0, DFF_Prop_adjustValue } },	// 3
	{ 0x2001, { 0x0403, 1, 2 } },						// 4
	{ 0x6000, { DFF_Prop_adjustValue, 0x0404, 0 } },	// 5
	{ 0x8000, { 21600, 0, DFF_Prop_adjust2Value } },	// 6
	{ 0x6000, { DFF_Prop_adjustValue, 0x0406, 0 } },	// 7
	{ 0x6000, { 0x0407, 0x0406, 0 } },					// 8
=====================================================================
Found a 7 line (101 tokens) duplication in the following files: 
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/accessibility/AccessibleEditableTextPara.cxx
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unoprov.cxx

		{ MAP_CHAR_LEN("UserDefinedAttributes"),		SDRATTR_XMLATTRIBUTES,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{MAP_CHAR_LEN("ParaUserDefinedAttributes"),			EE_PARA_XMLATTRIBS,		&::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0)  , 		0,     0},
		{0,0,0,0,0,0}

	};

	return aShapePropertyMap_Impl;
=====================================================================
Found a 24 line (101 tokens) duplication in the following files: 
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx
Starting at line 213 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/toolboxcontroller.cxx

    const rtl::OUString aParentWindow( RTL_CONSTASCII_USTRINGPARAM( "ParentWindow" ));

    bool bInitialized( true );

    { 
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        
        if ( m_bDisposed )
            throw DisposedException();

        bInitialized = m_bInitialized;
    }

    if ( !bInitialized )
    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        m_bInitialized = sal_True;
        
        PropertyValue aPropValue;
        for ( int i = 0; i < aArguments.getLength(); i++ )
        {
            if ( aArguments[i] >>= aPropValue )
            {
                if ( aPropValue.Name.equalsAscii( "Frame" ))
=====================================================================
Found a 25 line (101 tokens) duplication in the following files: 
Starting at line 2122 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zforscan.cxx
Starting at line 2362 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zforscan.cxx

			while (i < nAnzStrings)
			{
				switch (nTypeArray[i])
				{
					case NF_SYMBOLTYPE_BLANK:
					case NF_SYMBOLTYPE_STAR:
					case NF_SYMBOLTYPE_STRING:
						nPos = nPos + sStrArray[i].Len();
						i++;
					break;
					case NF_SYMBOLTYPE_COMMENT:
					{
						String& rStr = sStrArray[i];
						nPos = nPos + rStr.Len();
						SvNumberformat::EraseCommentBraces( rStr );
						rComment += rStr;
						nTypeArray[i] = NF_SYMBOLTYPE_EMPTY;
						nAnzResStrings--;
						i++;
					}
					break;
					case NF_SYMBOLTYPE_DEL:
					{
						int nCalRet;
                        if ( (nCalRet = FinalScanGetCalendar( nPos, i, nAnzResStrings )) != 0 )
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 640 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/ivctrl.cxx
Starting at line 2578 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/contnr/svtreebx.cxx

::com::sun::star::uno::Reference< XAccessible > SvTreeListBox::CreateAccessible()
{
    Window* pParent = GetAccessibleParentWindow();
    DBG_ASSERT( pParent, "SvTreeListBox::CreateAccessible - accessible parent not found" );

    ::com::sun::star::uno::Reference< XAccessible > xAccessible;
    if ( pParent )
    {
        ::com::sun::star::uno::Reference< XAccessible > xAccParent = pParent->GetAccessible();
        if ( xAccParent.is() )
		{
			// need to be done here to get the vclxwindow later on in the accessbile
			::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xTemp(GetComponentInterface());
            xAccessible = pImp->m_aFactoryAccess.getFactory().createAccessibleTreeListBox( *this, xAccParent );
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 1757 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 1901 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx
Starting at line 2100 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/mathml.cxx

void SmXMLOperatorContext_Impl::StartElement(const uno::Reference<
    xml::sax::XAttributeList > & xAttrList )
{
    sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
    for (sal_Int16 i=0;i<nAttrCount;i++)
    {
        OUString sAttrName = xAttrList->getNameByIndex(i);
        OUString aLocalName;
        sal_uInt16 nPrefix = GetImport().GetNamespaceMap().
            GetKeyByAttrName(sAttrName,&aLocalName);

        OUString sValue = xAttrList->getValueByIndex(i);
        const SvXMLTokenMap &rAttrTokenMap =
            GetSmImport().GetOperatorAttrTokenMap();
=====================================================================
Found a 24 line (101 tokens) duplication in the following files: 
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/detreg.cxx
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/register.cxx

    aServices = SmDocument_getSupportedServiceNames();
    for(i = 0; i < aServices.getLength(); i++ )
        xNewKey->createKey( aServices.getConstArray()[i] );

    return sal_True;
}

void* SAL_CALL component_getFactory( const sal_Char* pImplementationName,
                                     void* pServiceManager,
                                     void* /*pRegistryKey*/ )
{
	// Set default return value for this operation - if it failed.
	void* pReturn = NULL ;

	if	(
			( pImplementationName	!=	NULL ) &&
			( pServiceManager		!=	NULL )
		)
	{
		// Define variables which are used in following macros.
        Reference< XSingleServiceFactory >   xFactory                                                                                                ;
        Reference< XMultiServiceFactory >    xServiceManager( reinterpret_cast< XMultiServiceFactory* >( pServiceManager ) ) ;

		if( SmXMLImport_getImplementationName().equalsAsciiL(
=====================================================================
Found a 27 line (101 tokens) duplication in the following files: 
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/backends/macbe/macbecdef.cxx
Starting at line 73 of /local/ooo-build/ooo-build/src/oog680-m3/shell/source/backends/wininetbe/wininetbecdef.cxx

        WinInetBackend::getBackendServiceNames,
        cppu::createSingleComponentFactory,
        NULL,
        0
    },
    { NULL }
} ;

//------------------------------------------------------------------------------

extern "C" void SAL_CALL component_getImplementationEnvironment(
    const sal_Char **aEnvTypeName, uno_Environment ** /*aEnvironment*/) {
    
    *aEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}

//------------------------------------------------------------------------------

extern "C" sal_Bool SAL_CALL component_writeInfo(void * /*pServiceManager*/, void *pRegistryKey) {
    
    using namespace ::com::sun::star::registry;
    if (pRegistryKey)
    {
        try
        {
            uno::Reference< XRegistryKey > xImplKey = static_cast< XRegistryKey* >( pRegistryKey )->createKey(
                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + WinInetBackend::getBackendName()
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 223 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/outlnvs2.cxx
Starting at line 775 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/slidvish.cxx

			Invalidate( SID_SIZE_REAL );
			Cancel();
			rReq.Done();
		}
		break;

		case SID_ZOOM_IN:
		{
			SetZoom( Max( (long) ( GetActiveWindow()->GetZoom() / 2 ), (long) GetActiveWindow()->GetMinZoom() ) );
			Rectangle aVisAreaWin = GetActiveWindow()->PixelToLogic( Rectangle( Point(0,0),
											 GetActiveWindow()->GetOutputSizePixel()) );
			mpZoomList->InsertZoomRect(aVisAreaWin);
			Invalidate( SID_ATTR_ZOOM );
			Invalidate( SID_ZOOM_OUT);
			Invalidate( SID_ZOOM_IN );
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 164 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unomodule.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/unomodule.cxx

sal_Bool SAL_CALL SwUnoModule::supportsService( const ::rtl::OUString& sServiceName ) throw(::com::sun::star::uno::RuntimeException)
{
    UNOSEQUENCE< UNOOUSTRING >  seqServiceNames =   getSupportedServiceNames();
    const UNOOUSTRING*          pArray          =   seqServiceNames.getConstArray();
    for ( sal_Int32 nCounter=0; nCounter<seqServiceNames.getLength(); nCounter++ )
    {
        if ( pArray[nCounter] == sServiceName )
        {
            return sal_True ;
        }
    }
    return sal_False ;
}

::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL SwUnoModule::getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException)
=====================================================================
Found a 17 line (101 tokens) duplication in the following files: 
Starting at line 398 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/docshell/docshel4.cxx
Starting at line 543 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/docshell/docshel4.cxx

	SetWaitCursor( TRUE );

    SfxItemSet* pSet = rMedium.GetItemSet();
	if( pSet )
	{
		if( (  SFX_ITEM_SET == pSet->GetItemState(SID_PREVIEW ) ) && ( (SfxBoolItem&) ( pSet->Get( SID_PREVIEW ) ) ).GetValue() )
		{
			mpDoc->SetStarDrawPreviewMode( TRUE );
		}

		if( SFX_ITEM_SET == pSet->GetItemState(SID_DOC_STARTPRESENTATION)&&
			( (SfxBoolItem&) ( pSet->Get( SID_DOC_STARTPRESENTATION ) ) ).GetValue() )
		{
			bStartPresentation = true;
			mpDoc->SetStartWithPresentation( true );
		}
	}
=====================================================================
Found a 19 line (101 tokens) duplication in the following files: 
Starting at line 364 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/dlg/prltempl.cxx
Starting at line 167 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/dlg/tabtempl.cxx

		break;

		case RID_SVXPAGE_SHADOW:
				aSet.Put (SvxColorTableItem(pColorTab,SID_COLOR_TABLE)); //add CHINA001
				aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType));
				aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType));
				rPage.PageCreated(aSet);
			break;

		case RID_SVXPAGE_TRANSPARENCE:
					aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType));
					aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType));
					rPage.PageCreated(aSet);
		break;

		case RID_SVXPAGE_CHAR_NAME:
		{
			SvxFontListItem aItem(*( (const SvxFontListItem*)
				( rDocShell.GetItem( SID_ATTR_CHAR_FONTLIST) ) ) );
=====================================================================
Found a 20 line (101 tokens) duplication in the following files: 
Starting at line 393 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/viewutil.cxx
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/viewutil.cxx

	if ( nNewStartX == nOldStartX && nNewEndX == nOldEndX &&
		 nNewStartY == nOldStartY && nNewEndY == nOldEndY )
	{
		rX1 = nNewStartX;
		rY1 = nNewStartY;
		rX2 = nNewStartX;
		rY2 = nNewStartY;
		return FALSE;
	}

	rX1 = Min(nNewStartX,nOldStartX);
	rY1 = Min(nNewStartY,nOldStartY);
	rX2 = Max(nNewEndX,nOldEndX);
	rY2 = Max(nNewEndY,nOldEndY);

	if ( nNewStartX == nOldStartX && nNewEndX == nOldEndX )				// nur vertikal
	{
		if ( nNewStartY == nOldStartY )
		{
			rY1 = Min( nNewEndY, nOldEndY ) + 1;
=====================================================================
Found a 25 line (101 tokens) duplication in the following files: 
Starting at line 85 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/detreg.cxx
Starting at line 88 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/detreg.cxx

    Sequence< OUString > aServices = SdFilterDetect::impl_getStaticSupportedServiceNames();
    for(i = 0; i < aServices.getLength(); i++ )
        xNewKey->createKey( aServices.getConstArray()[i] );

    return sal_True;
}

SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
	const sal_Char* pImplementationName,
	void* pServiceManager,
	void*  )
{
	// Set default return value for this operation - if it failed.
	void* pReturn = NULL ;

	if	(
			( pImplementationName	!=	NULL ) &&
			( pServiceManager		!=	NULL )
		)
	{
		// Define variables which are used in following macros.
        Reference< XSingleServiceFactory >   xFactory                                                                                                ;
        Reference< XMultiServiceFactory >    xServiceManager( reinterpret_cast< XMultiServiceFactory* >( pServiceManager ) ) ;

		if( SdFilterDetect::impl_getStaticImplementationName().equalsAscii( pImplementationName ) )
=====================================================================
Found a 13 line (101 tokens) duplication in the following files: 
Starting at line 5470 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 1626 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/datauno.cxx

	const ScDBData* pData = GetDBData_Impl();
	if (pData)
	{
		pData->GetSortParam(aParam);

		//	im SortDescriptor sind die Fields innerhalb des Bereichs gezaehlt
		ScRange aDBRange;
		pData->GetArea(aDBRange);
		SCCOLROW nFieldStart = aParam.bByRow ? static_cast<SCCOLROW>(aDBRange.aStart.Col()) : static_cast<SCCOLROW>(aDBRange.aStart.Row());
		for (USHORT i=0; i<MAXSORT; i++)
			if ( aParam.bDoSort[i] && aParam.nField[i] >= nFieldStart )
				aParam.nField[i] -= nFieldStart;
	}
=====================================================================
Found a 18 line (101 tokens) duplication in the following files: 
Starting at line 1838 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
Starting at line 186 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx

uno::Reference<XAccessibleStateSet> SAL_CALL ScAccessiblePreviewCell::getAccessibleStateSet()
						    throw(uno::RuntimeException)
{
	ScUnoGuard aGuard;

	uno::Reference<XAccessibleStateSet> xParentStates;
	if (getAccessibleParent().is())
	{
		uno::Reference<XAccessibleContext> xParentContext = getAccessibleParent()->getAccessibleContext();
		xParentStates = xParentContext->getAccessibleStateSet();
	}
	utl::AccessibleStateSetHelper* pStateSet = new utl::AccessibleStateSetHelper();
	if (IsDefunc(xParentStates))
		pStateSet->AddState(AccessibleStateType::DEFUNC);
    else
    {
	    pStateSet->AddState(AccessibleStateType::ENABLED);
	    pStateSet->AddState(AccessibleStateType::MULTI_LINE);
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 1479 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 1595 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

SvXMLImportContext *ScXMLInsertionContext::CreateChildContext( USHORT nPrefix,
									 const ::rtl::OUString& rLocalName,
									 const ::com::sun::star::uno::Reference<
									  	::com::sun::star::xml::sax::XAttributeList>& xAttrList )
{
	SvXMLImportContext *pContext(0);

	if ((nPrefix == XML_NAMESPACE_OFFICE) && (IsXMLToken(rLocalName, XML_CHANGE_INFO)))
	{
		pContext = new ScXMLChangeInfoContext(GetScImport(), nPrefix, rLocalName, xAttrList, pChangeTrackingImportHelper);
	}
	else if (nPrefix == XML_NAMESPACE_TABLE)
	{
		if (IsXMLToken(rLocalName, XML_DEPENDENCIES))
=====================================================================
Found a 12 line (101 tokens) duplication in the following files: 
Starting at line 754 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx
Starting at line 836 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/XMLTrackedChangesContext.cxx

	sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
	for( sal_Int16 i=0; i < nAttrCount; ++i )
	{
		const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
		rtl::OUString aLocalName;
		USHORT nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
											sAttrName, &aLocalName ));
		const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));

		if (nPrefix == XML_NAMESPACE_TABLE)
		{
			if (IsXMLToken(aLocalName, XML_ID))
=====================================================================
Found a 13 line (101 tokens) duplication in the following files: 
Starting at line 3370 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/biffdump.cxx
Starting at line 3389 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/excel/biffdump.cxx

				ADDTEXT( "   date/time: " );	ADDDEC( 2 );
				ADDTEXT( "-" );					ADDDEC( 1 );
				ADDTEXT( "-" );					ADDDEC( 1 );
				ADDTEXT( " " );					ADDDEC( 1 );
				ADDTEXT( ":" );					ADDDEC( 1 );
				ADDTEXT( ":" );					ADDDEC( 1 );
				ADDTEXT( "   unknown: " );		ADDHEX( 1 );
				PRINT();
				LINESTART();
				ADDTEXT( "user: " );
				if( rIn.GetRecLeft() > 3 )
					AddUNICODEString( t, rIn );
				PRINT();
=====================================================================
Found a 18 line (101 tokens) duplication in the following files: 
Starting at line 3538 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 3889 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

				pResMat->PutDouble(exp(fVal), i);
			}
		}
		else
		{
			pResMat = GetNewMat(nCXN, 1);
			if (!pResMat)
			{
				PushError();
				return;
			}
			double fVal;
			for (i = 0; i < nCXN; i++)
			{
				fVal = pQ->GetDouble(0, M+1);
				for (j = 0; j < M; j++)
					fVal += pQ->GetDouble(j+1, M+1)*pMatNewX->GetDouble(i, j);
				pResMat->PutDouble(exp(fVal), i);
=====================================================================
Found a 25 line (101 tokens) duplication in the following files: 
Starting at line 289 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/pivot2.cxx
Starting at line 416 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/collect.cxx

		TypedStrData& rData1 = (TypedStrData&)*pKey1;
		TypedStrData& rData2 = (TypedStrData&)*pKey2;

		if ( rData1.nStrType > rData2.nStrType )
			nResult = 1;
		else if ( rData1.nStrType < rData2.nStrType )
			nResult = -1;
		else if ( !rData1.nStrType /* && !rData2.nStrType */ )
		{
			//--------------------
			// Zahlen vergleichen:
			//--------------------
			if ( rData1.nValue == rData2.nValue )
				nResult = 0;
			else if ( rData1.nValue < rData2.nValue )
				nResult = -1;
			else
				nResult = 1;
		}
		else /* if ( rData1.nStrType && rData2.nStrType ) */
		{
			//---------------------
			// Strings vergleichen:
			//---------------------
			if ( bCaseSensitive )
=====================================================================
Found a 22 line (101 tokens) duplication in the following files: 
Starting at line 240 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/conditio.cxx
Starting at line 442 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/conditio.cxx

				pFormula1 = aComp.CompileString( rExpr1 );
				if ( pFormula1->GetLen() == 1 )
				{
					// einzelne (konstante Zahl) ?
					ScToken* pToken = pFormula1->First();
					if ( pToken->GetOpCode() == ocPush )
					{
						if ( pToken->GetType() == svDouble )
						{
							nVal1 = pToken->GetDouble();
							DELETEZ(pFormula1);				// nicht als Formel merken
						}
						else if ( pToken->GetType() == svString )
						{
							bIsStr1 = TRUE;
							aStrVal1 = pToken->GetString();
							DELETEZ(pFormula1);				// nicht als Formel merken
						}
					}
				}
				bRelRef1 = lcl_HasRelRef( pDoc, pFormula1 );
			}
=====================================================================
Found a 21 line (101 tokens) duplication in the following files: 
Starting at line 230 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_DatagramSocket.cxx
Starting at line 3625 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/osl/socket/osl_Socket.cxx

			::osl::SocketAddr saLocalSocketAddr( aHostIp1, IP_PORT_MYPORT9 );
			::osl::DatagramSocket dsSocket;
			dsSocket.setOption( osl_Socket_OptionReuseAddr, 1 );
			dsSocket.bind( saLocalSocketAddr );
			
			sal_Char pReadBuffer[30];
			TalkerThread myTalkThread;
			myTalkThread.create();
			sal_Int32 nRecv = dsSocket.recvFrom( pReadBuffer, 30, &saLocalSocketAddr);
			myTalkThread.join();
			//t_print("#received buffer is %s# \n", pReadBuffer);
			
			sal_Bool bOk = ( strcmp(pReadBuffer, pTestString1) == 0 );
	
			CPPUNIT_ASSERT_MESSAGE( "test for sendTo/recvFrom function: create a talker thread and recvFrom in the main thread, check if the datagram socket can communicate successfully.", 
									nRecv > 0 && bOk == sal_True );
		}
		
		void sr_002()
		{			
			::osl::SocketAddr saListenSocketAddr( aHostIp1, IP_PORT_MYPORT10 );
=====================================================================
Found a 27 line (101 tokens) duplication in the following files: 
Starting at line 285 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx
Starting at line 333 of /local/ooo-build/ooo-build/src/oog680-m3/registry/source/regkey.cxx

				   			 		  		sal_uInt32 len)
{
	ORegKey* 	pKey;
	
	if (hKey)
	{
		pKey = (ORegKey*)hKey;

		if (pKey->isDeleted())
			return REG_INVALID_KEY;
	} else
		return REG_INVALID_KEY;

	if (pKey->isReadOnly())
		return REG_REGISTRY_READONLY;

	OUString valueName( RTL_CONSTASCII_USTRINGPARAM("value") );
	if (keyName->length)
	{
		RegKeyHandle hSubKey;
		ORegKey* pSubKey;
		RegError _ret1 = pKey->openKey(keyName, &hSubKey);
		if (_ret1)
			return _ret1;

		pSubKey = (ORegKey*)hSubKey;
        _ret1 = pSubKey->setLongListValue(valueName, pValueList, len);
=====================================================================
Found a 30 line (101 tokens) duplication in the following files: 
Starting at line 2766 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx
Starting at line 5316 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/xstorage.cxx

			throw uno::RuntimeException(); // if the stream reference is set it must not be changed!
	}
	catch( embed::InvalidStorageException& )
	{
		throw;
	}
	catch( lang::IllegalArgumentException& )
	{
		throw;
	}
	catch( packages::WrongPasswordException& )
	{
		throw;
	}
	catch( io::IOException& )
	{
		throw;
	}
	catch( embed::StorageWrappedTargetException& )
	{
		throw;
	}
	catch( uno::RuntimeException& )
	{
		throw;
	}
	catch( uno::Exception& )
	{
      	uno::Any aCaught( ::cppu::getCaughtException() );
		throw embed::StorageWrappedTargetException( ::rtl::OUString::createFromAscii( "Can't copy stream data!" ),
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 2770 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3288 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xa3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x00, 0xc0, 0xe0 },
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 712 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 1232 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x00, 0xc3, 0xc3 },
{ 0x01, 0xe4, 0xc4 },
{ 0x01, 0xe5, 0xc5 },
{ 0x01, 0xe6, 0xc6 },
{ 0x01, 0xe7, 0xc7 },
{ 0x01, 0xe8, 0xc8 },
{ 0x01, 0xe9, 0xc9 },
{ 0x01, 0xea, 0xca },
{ 0x01, 0xeb, 0xcb },
{ 0x01, 0xec, 0xcc },
{ 0x01, 0xed, 0xcd },
{ 0x01, 0xee, 0xce },
{ 0x01, 0xef, 0xcf },
{ 0x00, 0xd0, 0xd0 },
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 696 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx
Starting at line 3288 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/csutil.cxx

{ 0x01, 0xa3, 0xb3 },
{ 0x00, 0xb4, 0xb4 },
{ 0x00, 0xb5, 0xb5 },
{ 0x00, 0xb6, 0xb6 },
{ 0x00, 0xb7, 0xb7 },
{ 0x00, 0xb8, 0xb8 },
{ 0x00, 0xb9, 0xb9 },
{ 0x00, 0xba, 0xba },
{ 0x00, 0xbb, 0xbb },
{ 0x00, 0xbc, 0xbc },
{ 0x00, 0xbd, 0xbd },
{ 0x00, 0xbe, 0xbe },
{ 0x00, 0xbf, 0xbf },
{ 0x00, 0xc0, 0xe0 },
=====================================================================
Found a 16 line (101 tokens) duplication in the following files: 
Starting at line 549 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/lingucomponent/source/spellcheck/hunspell/affentry.cxx

                            ((optflags & aeXPRODUCT) == 0 || 
                            TESTAFF(he->astr, ep->getFlag(), he->alen) ||
                             // handle conditional suffix
                            ((contclass) && TESTAFF(contclass, ep->getFlag(), contclasslen))
                            ) &&
                            // handle cont. class
                            ((!cclass) || 
                                ((contclass) && TESTAFF(contclass, cclass, contclasslen))
                            ) &&
                            // handle required flag
                            ((!needflag) || 
                              (TESTAFF(he->astr, needflag, he->alen) ||
                              ((contclass) && TESTAFF(contclass, needflag, contclasslen)))
                            )
                        ) return he;
    }
=====================================================================
Found a 25 line (101 tokens) duplication in the following files: 
Starting at line 92 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/odata.cxx
Starting at line 525 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/omark.cxx
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/io/source/stm/opipe.cxx

	~OPipeImpl();

public: // XInputStream
    virtual sal_Int32 SAL_CALL readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
		throw(	NotConnectedException,
				BufferSizeExceededException,
				RuntimeException );
    virtual sal_Int32 SAL_CALL readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead)
		throw( NotConnectedException,
			   BufferSizeExceededException,
			   RuntimeException );
    virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip)
		throw( NotConnectedException,
			   BufferSizeExceededException,
			   RuntimeException );
    virtual sal_Int32 SAL_CALL available(void)
		throw( NotConnectedException,
			   RuntimeException );
    virtual void SAL_CALL closeInput(void)
		throw( NotConnectedException,
			   RuntimeException );

public: // XOutputStream

    virtual void SAL_CALL writeBytes(const Sequence< sal_Int8 >& aData)
=====================================================================
Found a 21 line (101 tokens) duplication in the following files: 
Starting at line 403 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/eval.c
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_eval.c

    if (rnd == 0)
        goto syntax;
    if (evalop(priority[END]) != 0)
        return 0;
    if (op != &ops[1] || vp != &vals[1])
    {
        error(ERROR, "Botch in #if/#elsif");
        return 0;
    }
    if (vals[0].type == UND)
        error(ERROR, "Undefined expression value");
    return vals[0].val;
syntax:
    error(ERROR, "Syntax error in #if/#elsif");
    return 0;
}

int
    evalop(struct pri pri)
{
    struct value v1;
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 1141 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1262 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1870 - 187f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1880 - 188f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 1890 - 189f
     0, 0, 0, 0, 0, 0, 0, 0, 0,17, 0, 0, 0, 0, 0, 0,// 18a0 - 18af
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 1058 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 1061 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// 06a0 - 06af
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// 06b0 - 06bf
    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,// 06c0 - 06cf
    13,13,13,13,13,13,17,17,17,17,17,17,17,17,17,17,// 06d0 - 06df
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 939 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 44 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_mask.h

 0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 441 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 991 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0280 - 028f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0290 - 029f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 02a0 - 02af
     0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0,// 02b0 - 02bf
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 404 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 892 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 0, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe70 - fe7f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe80 - fe8f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fe90 - fe9f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// fea0 - feaf
=====================================================================
Found a 6 line (101 tokens) duplication in the following files: 
Starting at line 383 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 389 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0,// 12e0 - 12ef
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 12f0 - 12ff

     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0,// 1300 - 130f
     5, 0, 5, 5, 5, 5, 0, 0, 5, 5, 5, 5, 5, 5, 5, 0,// 1310 - 131f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 1320 - 132f
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 991 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0280 - 028f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0290 - 029f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 02a0 - 02af
     0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0, 0, 0, 0, 0,// 02b0 - 02bf
=====================================================================
Found a 5 line (101 tokens) duplication in the following files: 
Starting at line 212 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 305 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 8, 8,23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 0df0 - 0dff

     0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0e00 - 0e0f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0e10 - 0e1f
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,// 0e20 - 0e2f
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 379 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 1554 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffa0 - ffaf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffb0 - ffbf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffc0 - ffcf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// ffd0 - ffdf
=====================================================================
Found a 4 line (101 tokens) duplication in the following files: 
Starting at line 319 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 571 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    27,27,27,27,27,27,27,27,27,27,27, 0, 0, 0, 0, 0,// 2390 - 239f
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23a0 - 23af
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23b0 - 23bf
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 23c0 - 23cf
=====================================================================
Found a 10 line (101 tokens) duplication in the following files: 
Starting at line 1103 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx
Starting at line 1439 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/graphic/grfmgr2.cxx

							nTmpY = pMapIY[ nUnRotY ], nTmpFY = pMapFY[ nUnRotY ];

							aCol0 = pAcc->GetPixel( nTmpY, nTmpX );
							aCol1 = pAcc->GetPixel( nTmpY, ++nTmpX );
							cR0 = MAP( aCol0.GetRed(), aCol1.GetRed(), nTmpFX );
							cG0 = MAP( aCol0.GetGreen(), aCol1.GetGreen(), nTmpFX );
							cB0 = MAP( aCol0.GetBlue(), aCol1.GetBlue(), nTmpFX );

							aCol1 = pAcc->GetPixel( ++nTmpY, nTmpX );
							aCol0 = pAcc->GetPixel( nTmpY, --nTmpX );
=====================================================================
Found a 9 line (101 tokens) duplication in the following files: 
Starting at line 542 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx
Starting at line 673 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/icgm/class4.cxx

				ImplGetVector( &vector[ 0 ] );

				fStartAngle = acos( vector[ 0 ] / sqrt( vector[ 0 ] * vector[ 0 ] + vector[ 1 ] * vector[ 1 ] ) ) * 57.29577951308;
				fEndAngle = acos( vector[ 2 ] / sqrt( vector[ 2 ] * vector[ 2 ] + vector[ 3 ] * vector[ 3 ] ) ) * 57.29577951308;

				if ( vector[ 1 ] > 0 )
					fStartAngle = 360 - fStartAngle;
				if ( vector[ 3 ] > 0 )
					fEndAngle = 360 - fEndAngle;
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 1982 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/epict.cxx
Starting at line 367 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outmap.cxx

		if( rMapRes.mnMapOfsY >= 0 )
		{
			if ( aScaleY.GetNumerator() >= 0 )
				aY += BigInt( aScaleY.GetNumerator()/2 );
			else
				aY -= BigInt( (aScaleY.GetNumerator()+1)/2 );
		}
		else
		{
			if ( aScaleY.GetNumerator() >= 0 )
				aY -= BigInt( (aScaleY.GetNumerator()-1)/2 );
			else
				aY += BigInt( aScaleY.GetNumerator()/2 );
		}
		aY /= BigInt( aScaleY.GetNumerator() );
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 1962 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/epict/epict.cxx
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outmap.cxx

		if ( rMapRes.mnMapOfsX >= 0 )
		{
			if ( aScaleX.GetNumerator() >= 0 )
				aX += BigInt( aScaleX.GetNumerator()/2 );
			else
				aX -= BigInt( (aScaleX.GetNumerator()+1)/2 );
		}
		else
		{
			if ( aScaleX.GetNumerator() >= 0 )
				aX -= BigInt( (aScaleX.GetNumerator()-1)/2 );
			else
				aX += BigInt( aScaleX.GetNumerator()/2 );
		}
		aX /= BigInt( aScaleX.GetNumerator() );
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 2236 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 367 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outmap.cxx

		if( rMapRes.mnMapOfsY >= 0 )
		{
			if ( aScaleY.GetNumerator() >= 0 )
				aY += BigInt( aScaleY.GetNumerator()/2 );
			else
				aY -= BigInt( (aScaleY.GetNumerator()+1)/2 );
		}
		else
		{
			if ( aScaleY.GetNumerator() >= 0 )
				aY -= BigInt( (aScaleY.GetNumerator()-1)/2 );
			else
				aY += BigInt( aScaleY.GetNumerator()/2 );
		}
		aY /= BigInt( aScaleY.GetNumerator() );
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 2215 of /local/ooo-build/ooo-build/src/oog680-m3/goodies/source/filter.vcl/eos2met/eos2met.cxx
Starting at line 349 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/outmap.cxx

		if ( rMapRes.mnMapOfsX >= 0 )
		{
			if ( aScaleX.GetNumerator() >= 0 )
				aX += BigInt( aScaleX.GetNumerator()/2 );
			else
				aX -= BigInt( (aScaleX.GetNumerator()+1)/2 );
		}
		else
		{
			if ( aScaleX.GetNumerator() >= 0 )
				aX -= BigInt( (aScaleX.GetNumerator()-1)/2 );
			else
				aX += BigInt( aScaleX.GetNumerator()/2 );
		}
		aX /= BigInt( aScaleX.GetNumerator() );
=====================================================================
Found a 20 line (101 tokens) duplication in the following files: 
Starting at line 359 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/footermenucontroller.cxx
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/headermenucontroller.cxx

void SAL_CALL HeaderMenuController::updatePopupMenu() throw (::com::sun::star::uno::RuntimeException)
{
    ResetableGuard aLock( m_aLock );
    
    if ( m_bDisposed )
        throw DisposedException();
    
    Reference< com::sun::star::frame::XModel > xModel( m_xModel );
    aLock.unlock();
    
    if ( !xModel.is() )
        PopupMenuControllerBase::updatePopupMenu();
    
    aLock.lock();
    if ( m_xPopupMenu.is() && m_xModel.is() )
        fillPopupMenu( m_xModel, m_xPopupMenu );
}

// XInitialization
void SAL_CALL HeaderMenuController::initialize( const Sequence< Any >& aArguments ) throw ( Exception, RuntimeException )
=====================================================================
Found a 24 line (101 tokens) duplication in the following files: 
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uielement/buttontoolbarcontroller.cxx
Starting at line 206 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/uno/statusbarcontroller.cxx

    const rtl::OUString aIdentifier( RTL_CONSTASCII_USTRINGPARAM( "Identifier" ));

    bool bInitialized( true );

    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );

        if ( m_bDisposed )
            throw DisposedException();

        bInitialized = m_bInitialized;
    }

    if ( !bInitialized )
    {
        vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
        m_bInitialized = sal_True;

        PropertyValue aPropValue;
        for ( int i = 0; i < aArguments.getLength(); i++ )
        {
            if ( aArguments[i] >>= aPropValue )
            {
                if ( aPropValue.Name.equalsAscii( "Frame" ))
=====================================================================
Found a 19 line (101 tokens) duplication in the following files: 
Starting at line 561 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/imagemanager.cxx
Starting at line 855 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/uiconfiguration/moduleimagemanager.cxx

void SAL_CALL ModuleImageManager::initialize( const Sequence< Any >& aArguments ) throw ( Exception, RuntimeException )
{
    ResetableGuard aLock( m_aLock );

    if ( !m_bInitialized )
    {
        for ( sal_Int32 n = 0; n < aArguments.getLength(); n++ )
        {
            PropertyValue aPropValue;
            if ( aArguments[n] >>= aPropValue )
            {
                if ( aPropValue.Name.equalsAscii( "UserConfigStorage" ))
                {
                    aPropValue.Value >>= m_xUserConfigStorage;
                }
                else if ( aPropValue.Name.equalsAscii( "ModuleIdentifier" ))
                {
                    aPropValue.Value >>= m_aModuleIdentifier;
                }
=====================================================================
Found a 13 line (101 tokens) duplication in the following files: 
Starting at line 1240 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/frame.cxx
Starting at line 1340 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/services/frame.cxx

void SAL_CALL Frame::deactivate() throw( css::uno::RuntimeException )
{
	/* UNSAFE AREA --------------------------------------------------------------------------------------------- */
    // Register transaction and reject wrong calls.
    TransactionGuard aTransaction( m_aTransactionManager, E_HARDEXCEPTIONS );

	/* SAFE AREA ----------------------------------------------------------------------------------------------- */
    WriteGuard aWriteLock( m_aLock );

    // Copy neccessary member and free the lock.
    css::uno::Reference< css::frame::XFrame >           xActiveChild    = m_aChildFrameContainer.getActive()                                     ;
    css::uno::Reference< css::frame::XFramesSupplier >  xParent         ( m_xParent, css::uno::UNO_QUERY )                                ;
    css::uno::Reference< css::frame::XFrame >           xThis           ( static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY );
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 511 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/statusindicatorfactory.cxx
Starting at line 562 of /local/ooo-build/ooo-build/src/oog680-m3/framework/source/helper/statusindicatorfactory.cxx

void StatusIndicatorFactory::impl_showProgress()
{
    // SAFE -> ----------------------------------
    ReadGuard aReadLock(m_aLock);

    css::uno::Reference< css::frame::XFrame >              xFrame (m_xFrame.get()      , css::uno::UNO_QUERY);
    css::uno::Reference< css::awt::XWindow >               xWindow(m_xPluggWindow.get(), css::uno::UNO_QUERY);
    css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR  = m_xSMGR;

    aReadLock.lock();
    // <- SAFE ----------------------------------

    css::uno::Reference< css::task::XStatusIndicator > xProgress;
    
    if (xFrame.is())
=====================================================================
Found a 8 line (101 tokens) duplication in the following files: 
Starting at line 377 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/imgprod.cxx
Starting at line 447 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/imgprod.cxx

		mbConsInit = sal_False;

		// create temporary list to hold interfaces
		for( pCons = maConsList.First(); pCons; pCons = maConsList.Next() )
			aTmp.Insert( new ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > ( *(::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > *) pCons ), LIST_APPEND );

		// iterate through interfaces
		for( pCons = aTmp.First(); pCons; pCons = aTmp.Next() )
=====================================================================
Found a 19 line (101 tokens) duplication in the following files: 
Starting at line 1663 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/flash/swfwriter1.cxx
Starting at line 1259 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

					( nWriteFlags & SVGWRITER_WRITE_FILL ) )
				{
					const MetaGradientExAction*	pGradAction = NULL;
					sal_Bool					bDone = sal_False;

					while( !bDone && ( ++i < nCount ) )
					{
						pAction = rMtf.GetAction( i );

						if( pAction->GetType() == META_GRADIENTEX_ACTION )
							pGradAction = (const MetaGradientExAction*) pAction;
						else if( ( pAction->GetType() == META_COMMENT_ACTION ) && 
								 ( ( (const MetaCommentAction*) pAction )->GetComment().CompareIgnoreCaseToAscii( "XGRAD_SEQ_END" ) == COMPARE_EQUAL ) )
						{
							bDone = sal_True;
						}
					}

					if( pGradAction )
=====================================================================
Found a 10 line (101 tokens) duplication in the following files: 
Starting at line 1081 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatehdl.cxx
Starting at line 1095 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatehdl.cxx
Starting at line 1174 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/update/check/updatehdl.cxx

                             awt::Rectangle( CLOSE_BTN_X, BUTTON_Y_POS, BUTTON_WIDTH, BUTTON_HEIGHT ),
                             aProps );
    }
    {   // install button
        uno::Sequence< beans::NamedValue > aProps(5);

        setProperty( aProps, 0, UNISTRING("DefaultButton"), uno::Any( false ) );
        setProperty( aProps, 1, UNISTRING("Enabled"), uno::Any( true ) );
        setProperty( aProps, 2, UNISTRING("PushButtonType"), uno::Any( sal_Int16(awt::PushButtonType_STANDARD) ) );
        setProperty( aProps, 3, UNISTRING("Label"), uno::Any( msInstall ) );
=====================================================================
Found a 23 line (101 tokens) duplication in the following files: 
Starting at line 108 of /local/ooo-build/ooo-build/src/oog680-m3/embedserv/source/embed/register.cxx
Starting at line 75 of /local/ooo-build/ooo-build/src/oog680-m3/package/source/xstor/register.cxx

											OStorageFactory::impl_staticGetSupportedServiceNames() );
	}
		
	if ( xFactory.is() )
	{
		xFactory->acquire();
		pRet = xFactory.get();
	}
	
	return pRet;
}

sal_Bool SAL_CALL component_writeInfo( void * /*pServiceManager*/, void * pRegistryKey )
{
	if (pRegistryKey)
	{
		try
		{
    		uno::Reference< registry::XRegistryKey > xKey( reinterpret_cast< registry::XRegistryKey* >( pRegistryKey ) );

    		uno::Reference< registry::XRegistryKey >  xNewKey;

			xNewKey = xKey->createKey( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + 
=====================================================================
Found a 13 line (101 tokens) duplication in the following files: 
Starting at line 281 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 220 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xolefactory.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObjectFactory::createInstanceInitNew" );

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											3 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											4 );

	uno::Reference< uno::XInterface > xResult(
=====================================================================
Found a 14 line (101 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx

	uno::Reference< uno::XInterface > xResult;

	// the initialization is completelly controlled by user
	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	uno::Sequence< beans::PropertyValue > aTempMedDescr( lArguments );
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/specialobject.cxx
Starting at line 209 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/specialobject.cxx

awt::Size SAL_CALL OSpecialEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
		throw ( lang::IllegalArgumentException,
				embed::WrongStateException,
				uno::Exception,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
=====================================================================
Found a 31 line (101 tokens) duplication in the following files: 
Starting at line 362 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/myucp_datasupplier.cxx
Starting at line 403 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/odma/odma_datasupplier.cxx

		if ( nOldCount < m_pImpl->m_aResults.size() )
			xResultSet->rowCountChanged(
									nOldCount, m_pImpl->m_aResults.size() );

		xResultSet->rowCountFinal();
	}

	return m_pImpl->m_aResults.size();
}

//=========================================================================
// virtual
sal_uInt32 DataSupplier::currentCount()
{
	return m_pImpl->m_aResults.size();
}

//=========================================================================
// virtual
sal_Bool DataSupplier::isCountFinal()
{
	return m_pImpl->m_bCountFinal;
}

//=========================================================================
// virtual
Reference< XRow > DataSupplier::queryPropertyValues( sal_uInt32 nIndex  )
{
	osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );

	if ( nIndex < m_pImpl->m_aResults.size() )
=====================================================================
Found a 19 line (101 tokens) duplication in the following files: 
Starting at line 445 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/KeySet.cxx
Starting at line 768 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/api/KeySet.cxx

	aSql += ::rtl::OUString::createFromAscii(" WHERE ");

	// list all cloumns that should be set
	::rtl::OUString aQuote	= getIdentifierQuoteString();
	static ::rtl::OUString aAnd		= ::rtl::OUString::createFromAscii(" AND ");

	// use keys and indexes for excat postioning
	Reference<XNameAccess> xKeyColumns = getKeyColumns();
	// second the indexes
	Reference<XIndexesSupplier> xIndexSup(_xTable,UNO_QUERY);
	Reference<XIndexAccess> xIndexes;
	if ( xIndexSup.is() )
		xIndexes.set(xIndexSup->getIndexes(),UNO_QUERY);

	//	Reference<XColumnsSupplier>
	::std::vector< Reference<XNameAccess> > aAllIndexColumns;
	lcl_fillIndexColumns(xIndexes,aAllIndexColumns);

	::rtl::OUString aColumnName,sIndexCondition;
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 189 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/tdmgr.cxx
Starting at line 247 of /local/ooo-build/ooo-build/src/oog680-m3/cppuhelper/source/tdmgr.cxx

            access, xType->getBaseType() );
		if (pBaseType)
			typelib_typedescription_register( &pBaseType );

		// construct member init array
		const Sequence<Reference< XTypeDescription > > & rMemberTypes = xType->getMemberTypes();
		const Sequence< OUString > & rMemberNames					  = xType->getMemberNames();

		const Reference< XTypeDescription > * pMemberTypes = rMemberTypes.getConstArray();
		const OUString * pMemberNames					   = rMemberNames.getConstArray();

		sal_Int32 nMembers = rMemberTypes.getLength();
		OSL_ENSURE( nMembers == rMemberNames.getLength(), "### lens differ!" );

		OUString aTypeName( xType->getName() );
=====================================================================
Found a 21 line (101 tokens) duplication in the following files: 
Starting at line 496 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 801 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        CPPUNIT_ASSERT_MESSAGE("sal_uInt16", !(a >>= b) && b == 2);
    }
    {
        sal_Int32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int32", (a >>= b) && b == 1);
    }
    {
        sal_uInt32 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt32", (a >>= b) && b == 1);
    }
    {
        sal_Int64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int64", (a >>= b) && b == 1);
    }
    {
        sal_uInt64 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt64", (a >>= b) && b == 1);
    }
    {
        float b = 2;
        CPPUNIT_ASSERT_MESSAGE("float", !(a >>= b) && b == 2);
=====================================================================
Found a 20 line (101 tokens) duplication in the following files: 
Starting at line 276 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx
Starting at line 677 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/qa/test_any.cxx

        a.getValueType() == getCppuType(static_cast< sal_uInt16 const * >(0)));
    {
        bool b = true;
        CPPUNIT_ASSERT_MESSAGE("bool", !(a >>= b) && b);
    }
    {
        sal_Bool b = true;
        CPPUNIT_ASSERT_MESSAGE("sal_Bool", !(a >>= b) && b);
    }
    {
        sal_Int8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int8", !(a >>= b) && b == 2);
    }
    {
        sal_uInt8 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_uInt8", !(a >>= b) && b == 2);
    }
    {
        sal_Int16 b = 2;
        CPPUNIT_ASSERT_MESSAGE("sal_Int16", (a >>= b) && b == 1);
=====================================================================
Found a 17 line (101 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/wrapper/basegfxfactory.cxx
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/wrapper/basegfxfactory.cxx

    BitmapSharedPtr BaseGfxFactory::createAlphaBitmap( const CanvasSharedPtr&	rCanvas, 
                                                       const ::basegfx::B2ISize& rSize ) const
    {
        OSL_ENSURE( rCanvas.get() != NULL &&
                    rCanvas->getUNOCanvas().is(), 
                    "BaseGfxFactory::createBitmap(): Invalid canvas" );
        
        if( rCanvas.get() == NULL )
            return BitmapSharedPtr();

        uno::Reference< rendering::XCanvas > xCanvas( rCanvas->getUNOCanvas() );
        if( !xCanvas.is() )
            return BitmapSharedPtr();

        return BitmapSharedPtr( 
            new internal::ImplBitmap( rCanvas, 
                                      xCanvas->getDevice()->createCompatibleAlphaBitmap( 
=====================================================================
Found a 13 line (101 tokens) duplication in the following files: 
Starting at line 1579 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx
Starting at line 1694 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx

            OutlineAction::OutlineAction( const ::basegfx::B2DPoint&							rStartPoint,  
                                          const ::basegfx::B2DSize&								rReliefOffset,  
                                          const ::Color&										rReliefColor,
                                          const ::basegfx::B2DSize&								rShadowOffset,
                                          const ::Color&										rShadowColor,
                                          const ::basegfx::B2DRectangle&						rOutlineBounds,
                                          const uno::Reference< rendering::XPolyPolygon2D >& 	rTextPoly,
                                          const ::std::vector< sal_Int32 >& 					rPolygonGlyphMap,
                                          const uno::Sequence< double >&						rOffsets,
                                          VirtualDevice&										rVDev,
                                          const CanvasSharedPtr&								rCanvas, 
                                          const OutDevState& 									rState,
                                          const ::basegfx::B2DHomMatrix&						rTextTransform ) :
=====================================================================
Found a 16 line (101 tokens) duplication in the following files: 
Starting at line 648 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx
Starting at line 816 of /local/ooo-build/ooo-build/src/oog680-m3/cppcanvas/source/mtfrenderer/textaction.cxx

                                  VirtualDevice&					rVDev,
                                  const CanvasSharedPtr&			rCanvas, 
                                  const OutDevState& 				rState,
                                  const ::basegfx::B2DHomMatrix&	rTextTransform ); 

                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
                                     const Subset&					rSubset ) const;

                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
                virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix&	rTransformation,
                                                       const Subset&					rSubset ) const;

                virtual sal_Int32 getActionCount() const;

            private:
=====================================================================
Found a 20 line (101 tokens) duplication in the following files: 
Starting at line 120 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Class.cxx
Starting at line 141 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/Class.cxx

jobject java_lang_Class::newInstanceObject()
{
	jobject out(NULL);
	SDBThreadAttach t;
	if( t.pEnv )
	{
		// temporaere Variable initialisieren
		static const char * cSignature = "()Ljava/lang/Object;";
		static const char * cMethodName = "newInstance";
		// Java-Call absetzen
		static jmethodID mID = NULL;
		if ( !mID  )
			mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!");
		if( mID ){
			out = t.pEnv->CallObjectMethod( object, mID);
			ThrowSQLException(t.pEnv,0);
		} //mID
	} //t.pEnv
	// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
	return out;
=====================================================================
Found a 19 line (101 tokens) duplication in the following files: 
Starting at line 2266 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx
Starting at line 2575 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/bonobowrappermaker/corbatype.cxx

	  << "}\n\n";

	o << "inline sal_Bool bonobobridge::cpp_convert_b2u(";
	dumpUnoType(o, m_typeName, sal_False, sal_True);
	o << " u	, ";
	dumpCorbaType(o, m_typeName, sal_True, sal_True);
	o << " b,	const ::vos::ORef< ::bonobobridge::Bridge >& bridge) {\n"
	  << "  return convert_b2u_" << m_typeName.replace('/', '_') 
	  << "(&u, &b, ::getCppuType(&u), bridge);\n"
	  << "};\n\n";
	
	o << "inline sal_Bool bonobobridge::cpp_convert_u2b(";
	dumpCorbaType(o, m_typeName, sal_False, sal_True);
	o << " b, ";
	dumpUnoType(o, m_typeName, sal_True, sal_True);
	o << " u,	const ::vos::ORef< ::bonobobridge::Bridge >& bridge) {\n"	
	  << "  return convert_u2b_" << m_typeName.replace('/', '_') 
	  << "(&b, &u, ::getCppuType(&u), bridge);\n"
	  << "};\n\n";
=====================================================================
Found a 11 line (101 tokens) duplication in the following files: 
Starting at line 298 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/PropertyMapper.cxx
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/main/PropertyMapper.cxx

        ( C2U( "FillTransparenceGradientName" ), C2U("TransparencyGradientName") )
        //bitmap properties
        ( C2U( "FillBitmapMode" ),        C2U( "FillBitmapMode" ) )
        ( C2U( "FillBitmapSizeX" ),       C2U( "FillBitmapSizeX" ) )
        ( C2U( "FillBitmapSizeY" ),       C2U( "FillBitmapSizeY" ) )
        ( C2U( "FillBitmapLogicalSize" ), C2U( "FillBitmapLogicalSize" ) )
        ( C2U( "FillBitmapOffsetX" ),     C2U( "FillBitmapOffsetX" ) )
        ( C2U( "FillBitmapOffsetY" ),     C2U( "FillBitmapOffsetY" ) )
        ( C2U( "FillBitmapRectanglePoint" ),C2U( "FillBitmapRectanglePoint" ) )
        ( C2U( "FillBitmapPositionOffsetX" ),C2U( "FillBitmapPositionOffsetX" ) )
        ( C2U( "FillBitmapPositionOffsetY" ),C2U( "FillBitmapPositionOffsetY" ) )
=====================================================================
Found a 7 line (101 tokens) duplication in the following files: 
Starting at line 91 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx

                Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > > aChartTypes(
                    ::chart::DiagramHelper::getChartTypesFromDiagram( m_spChart2ModelContact->getChart2Diagram() ) );
                for( sal_Int32 nN = aChartTypes.getLength(); nN--; )
                {
                    try
                    {
                        ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xChartTypePropertySet( aChartTypes[nN], ::com::sun::star::uno::UNO_QUERY );
=====================================================================
Found a 19 line (101 tokens) duplication in the following files: 
Starting at line 645 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
Starting at line 948 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx

    Reference< chart2::XChartTypeTemplate > xTemplate = aTemplateAndService.first;

    // (fall-back)
    if( ! xTemplate.is())
    {
        if( aServiceName.getLength() == 0 )
            aServiceName = C2U("com.sun.star.chart2.template.Column");
        xTemplate.set( xFact->createInstance( aServiceName ), uno::UNO_QUERY );
    }
    OSL_ASSERT( xTemplate.is());

    if( xTemplate.is() && xSource.is())
    {
        // argument detection works with internal knowledge of the
        // ArrayDataProvider
        OSL_ASSERT( xDia.is());
        xTemplate->changeDiagramData(
            xDia, xSource, aArguments );
    }
=====================================================================
Found a 18 line (101 tokens) duplication in the following files: 
Starting at line 278 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx
Starting at line 316 of /local/ooo-build/ooo-build/src/oog680-m3/canvas/source/tools/image.cxx

                ::basegfx::B2DPolyPolygon clip(*pViewClip);
                aPolyPolygon = ::basegfx::tools::removeAllIntersections(aPolyPolygon);
                aPolyPolygon = ::basegfx::tools::removeNeutralPolygons(aPolyPolygon,
                                                                       sal_True);
                clip = ::basegfx::tools::removeAllIntersections(clip);
                clip = ::basegfx::tools::removeNeutralPolygons(clip,
                                                               sal_True);
                aPolyPolygon.append(clip);
                aPolyPolygon = ::basegfx::tools::removeAllIntersections(aPolyPolygon);
                aPolyPolygon = ::basegfx::tools::removeNeutralPolygons(aPolyPolygon,
                                                                       sal_False);
            }
            else
            {
                // TODO(F3): add AW's addition to clipPolyPolygonOnPolyPolygon
                // regarding open/close state
                aPolyPolygon = basegfx::tools::clipPolyPolygonOnPolyPolygon(aPolyPolygon,
                                                                            *pViewClip,
=====================================================================
Found a 18 line (101 tokens) duplication in the following files: 
Starting at line 271 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
Starting at line 258 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp.cxx

			pThis->pCppI, nVtableCall,
			pCppReturn, pReturnTypeDescr->eTypeClass,
			(sal_Int32 *)pCppStackStart, (pCppStack - pCppStackStart) / sizeof(sal_Int32) );
		// NO exception occured...
		*ppUnoExc = 0;
		
		// reconvert temporary params
		for ( ; nTempIndizes--; )
		{
			sal_Int32 nIndex = pTempIndizes[nTempIndizes];
			typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndizes];
			
			if (pParams[nIndex].bIn)
			{
				if (pParams[nIndex].bOut) // inout
				{
					uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
					uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
=====================================================================
Found a 15 line (101 tokens) duplication in the following files: 
Starting at line 752 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/scriptdocument.cxx
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/scripting/source/basprov/basprov.cxx

                OSL_VERIFY( aFileItem.getFileStatus( aFileStatus ) == osl::FileBase::E_None );
                ::rtl::OUString aCanonicalFileURL( aFileStatus.getFileURL() );

                ::rtl::OUString aShareURL;
                OSL_VERIFY( osl_getExecutableFile( &aShareURL.pData ) == osl_Process_E_None );
                sal_Int32 nIndex = aShareURL.lastIndexOf( '/' );
                if ( nIndex >= 0 )
                {
                    nIndex = aShareURL.lastIndexOf( '/', nIndex );
                    if ( nIndex >= 0 )
                    {
                        aShareURL = aShareURL.copy( 0, nIndex + 1 );
                        aShareURL += ::rtl::OUString::createFromAscii( "share" );
                    }
                }
=====================================================================
Found a 14 line (100 tokens) duplication in the following files: 
Starting at line 1548 of /local/ooo-build/ooo-build/src/oog680-m3/basebmp/source/bitmapdevice.cxx
Starting at line 1580 of /local/ooo-build/ooo-build/src/oog680-m3/basebmp/source/bitmapdevice.cxx

    OSL_ASSERT( rMask->getSize() == rSrcBitmap->getSize() );

    const basegfx::B2IVector& rSrcSize( rSrcBitmap->getSize() );
    const basegfx::B2IRange   aSrcBounds( 0,0,rSrcSize.getX(),rSrcSize.getY() );
    basegfx::B2IRange         aSrcRange( rSrcRect );
    basegfx::B2IRange         aDestRange( rDstRect );

    if( clipAreaImpl( aDestRange,
                      aSrcRange,
                      mpImpl->maBounds,
                      aSrcBounds ))
    {
        assertImageRange(aDestRange,mpImpl->maBounds);
        assertImageRange(aSrcRange,aSrcBounds);
=====================================================================
Found a 13 line (100 tokens) duplication in the following files: 
Starting at line 351 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h
Starting at line 888 of /local/ooo-build/ooo-build/src/oog680-m3/agg/inc/agg_pixfmt_rgba.h

            value_type* p = (value_type*)m_rbuf->span_ptr(x, y, len);
            pixel_type v;
            ((value_type*)&v)[order_type::R] = c.r;
            ((value_type*)&v)[order_type::G] = c.g;
            ((value_type*)&v)[order_type::B] = c.b;
            ((value_type*)&v)[order_type::A] = c.a;
            do
            {
                *(pixel_type*)p = v;
                p += 4;
            }
            while(--len);
        }
=====================================================================
Found a 15 line (100 tokens) duplication in the following files: 
Starting at line 250 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/XMLTextShapeStyleContext.cxx
Starting at line 262 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/text/txtstyli.cxx

	XMLPropStyleContext::CreateAndInsert( bOverwrite );
	Reference < XStyle > xStyle = GetStyle();
	if( !xStyle.is() || !(bOverwrite || IsNew()) )
		return;

	Reference < XPropertySet > xPropSet( xStyle, UNO_QUERY );
	Reference< XPropertySetInfo > xPropSetInfo =
				xPropSet->getPropertySetInfo();
	if( xPropSetInfo->hasPropertyByName( sIsAutoUpdate ) )
	{
		Any aAny;
		sal_Bool bTmp = bAutoUpdate;
		aAny.setValue( &bTmp, ::getBooleanCppuType() );
		xPropSet->setPropertyValue( sIsAutoUpdate, aAny );
	}
=====================================================================
Found a 23 line (100 tokens) duplication in the following files: 
Starting at line 406 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlimp.cxx
Starting at line 435 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlimp.cxx

	mxGraphicResolver( rGraphicObjects ),
	mpImpl( new SvXMLImport_Impl() ),
	// #110680#
	mxServiceFactory(xServiceFactory),
	mpNamespaceMap( new SvXMLNamespaceMap ),
	// #110680#
	// pUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, MAP_100TH_MM ) ),
	mpUnitConv( new SvXMLUnitConverter( MAP_100TH_MM, MAP_100TH_MM, getServiceFactory() ) ),
	mpContexts( new SvXMLImportContexts_Impl ),
	mpNumImport( NULL ),
	mpProgressBarHelper( NULL ),
	mpEventImportHelper( NULL ),
	mpXMLErrors( NULL ),
	mpStyleMap(0),
	mnImportFlags( IMPORT_ALL ),
	mnErrorFlags(0),
    mbIsFormsSupported( sal_True )
{
	DBG_ASSERT( mxServiceFactory.is(), "got no service manager" );
	_InitCtor();
}

SvXMLImport::~SvXMLImport() throw ()
=====================================================================
Found a 12 line (100 tokens) duplication in the following files: 
Starting at line 750 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlexp.cxx
Starting at line 906 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/core/xmlimp.cxx

void SAL_CALL SvXMLImport::initialize( const uno::Sequence< uno::Any >& aArguments )
	throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException)
{
	const sal_Int32 nAnyCount = aArguments.getLength();
	const uno::Any* pAny = aArguments.getConstArray();

	for( sal_Int32 nIndex = 0; nIndex < nAnyCount; nIndex++, pAny++ )
    {
        Reference<XInterface> xValue;
        *pAny >>= xValue;

        uno::Reference<task::XStatusIndicator> xTmpStatusIndicator(
=====================================================================
Found a 13 line (100 tokens) duplication in the following files: 
Starting at line 1436 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLPlotAreaContext.cxx
Starting at line 172 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/chart/SchXMLSeries2Context.cxx

void SchXMLDomain2Context::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
	sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;

	for( sal_Int16 i = 0; i < nAttrCount; i++ )
	{
		rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
		rtl::OUString aLocalName;
		USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );

		if( nPrefix == XML_NAMESPACE_TABLE &&
			IsXMLToken( aLocalName, XML_CELL_RANGE_ADDRESS ) )
		{
=====================================================================
Found a 5 line (100 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movebezierweight_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/movepoint_curs.h

static char movepoint_curs_bits[] = {
   0xff, 0xff, 0xff, 0xff, 0xfd, 0xff, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xff,
   0xf1, 0xff, 0xff, 0xff, 0xe1, 0xff, 0xff, 0xff, 0xc1, 0xff, 0xff, 0xff,
   0x81, 0xff, 0xff, 0xff, 0x01, 0xff, 0xff, 0xff, 0x01, 0xfe, 0xff, 0xff,
   0x01, 0xfc, 0xff, 0xff, 0x81, 0xff, 0xff, 0xff, 0x91, 0xff, 0xff, 0xff,
=====================================================================
Found a 4 line (100 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_mask.h

 0x00,0x00,0x06,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (100 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ass_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

static char asw_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xc0,0x00,0x00,0x00,0x70,0x38,0x00,0x00,0x78,0x7c,0x00,0x00,
=====================================================================
Found a 4 line (100 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnw_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_mask.h

 0x00,0x00,0x06,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 4 line (100 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asns_mask.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asnswe_mask.h

 0x00,0x00,0x16,0x34,0x00,0x00,0xf8,0x0f,0x00,0x00,0xf8,0x0f,0x00,0x00,0xf0,
 0x07,0x00,0x00,0xf0,0x07,0x00,0x00,0xe0,0x03,0x00,0x00,0xc0,0x01,0x00,0x00,
 0xc0,0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 4 line (100 tokens) duplication in the following files: 
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asn_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_mask.h

 0x00,0x00,0x06,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 5 line (100 tokens) duplication in the following files: 
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/ase_curs.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

static char asw_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xc0,0x00,0x00,0x00,0x70,0x38,0x00,0x00,0x78,0x7c,0x00,0x00,
=====================================================================
Found a 14 line (100 tokens) duplication in the following files: 
Starting at line 787 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/toolbox2.cxx
Starting at line 807 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/window/toolbox2.cxx

		aItem.mnSepSize = nPixSize;
    mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
    mpData->ImplClearLayoutData();

	ImplInvalidate( FALSE );

    // Notify
    USHORT nNewPos = sal::static_int_cast<USHORT>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
    ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
}

// -----------------------------------------------------------------------

void ToolBox::InsertBreak( USHORT nPos )
=====================================================================
Found a 27 line (100 tokens) duplication in the following files: 
Starting at line 158 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/fixed.cxx
Starting at line 473 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/fixed.cxx

		SetTextColor( aColor );
		SetTextFillColor();
	}

	if ( bBackground )
	{
		Window* pParent = GetParent();
		if ( pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
		{
			EnableChildTransparentMode( TRUE );
			SetParentClipMode( PARENTCLIPMODE_NOCLIP );
			SetPaintTransparent( TRUE );
			SetBackground();
		}
		else
		{
			EnableChildTransparentMode( FALSE );
			SetParentClipMode( 0 );
			SetPaintTransparent( FALSE );

			if ( IsControlBackground() )
				SetBackground( GetControlBackground() );
			else
				SetBackground( pParent->GetBackground() );
		}
	}
}
=====================================================================
Found a 22 line (100 tokens) duplication in the following files: 
Starting at line 1528 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/combobox.cxx
Starting at line 742 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/lstbox.cxx

long ListBox::GetIndexForPoint( const Point& rPoint, USHORT& rPos ) const
{
    if( ! mpLayoutData )
        FillLayoutData();

    // check whether rPoint fits at all
    long nIndex = Control::GetIndexForPoint( rPoint );
    if( nIndex != -1 )
    {
        // point must be either in main list window
        // or in impl window (dropdown case)
        ImplListBoxWindow* pMain = mpImplLB->GetMainWindow();
    
        // convert coordinates to ImplListBoxWindow pixel coordinate space
        Point aConvPoint = LogicToPixel( rPoint );
        aConvPoint = OutputToAbsoluteScreenPixel( aConvPoint );
        aConvPoint = pMain->AbsoluteScreenToOutputPixel( aConvPoint );
        aConvPoint = pMain->PixelToLogic( aConvPoint );

        // try to find entry
        USHORT nEntry = pMain->GetEntryPosForPoint( aConvPoint );
        if( nEntry == LISTBOX_ENTRY_NOTFOUND )
=====================================================================
Found a 26 line (100 tokens) duplication in the following files: 
Starting at line 369 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx
Starting at line 451 of /local/ooo-build/ooo-build/src/oog680-m3/ucb/source/ucp/package/pkgcontentcaps.cxx

                    getCppuVoidType()
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
                ),
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "transfer" ) ),
                    -1,
                    getCppuType(
                        static_cast< ucb::TransferInfo * >( 0 ) )
                ),
                ///////////////////////////////////////////////////////////
                // New commands
                ///////////////////////////////////////////////////////////
                ucb::CommandInfo(
                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "flush" ) ),
                    -1,
                    getCppuVoidType()
                )
            };

            return uno::Sequence<
                    ucb::CommandInfo >( aFolderCommandInfoTable, 9 );
=====================================================================
Found a 19 line (100 tokens) duplication in the following files: 
Starting at line 131 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/helpmerge.cxx
Starting at line 265 of /local/ooo-build/ooo-build/src/oog680-m3/transex3/source/helpmerge.cxx

    bool hasNoError = true;
    
    SimpleXMLParser aParser;

    String sUsedTempFile;
    String sXmlFile;

    if( Export::fileHasUTF8ByteOrderMarker( sHelpFile ) ){
        DirEntry aTempFile = Export::GetTempFile();
        DirEntry aSourceFile( String( sHelpFile , RTL_TEXTENCODING_ASCII_US ) );
        aSourceFile.CopyTo( aTempFile , FSYS_ACTION_COPYFILE );
        String sTempFile = aTempFile.GetFull();
        Export::RemoveUTF8ByteOrderMarkerFromFile( ByteString( sTempFile , RTL_TEXTENCODING_ASCII_US ) );
        sUsedTempFile = sTempFile;
        sXmlFile = sTempFile;
    }else{
        sUsedTempFile = String::CreateFromAscii("");
        sXmlFile = String( sHelpFile , RTL_TEXTENCODING_ASCII_US );
    }
=====================================================================
Found a 15 line (100 tokens) duplication in the following files: 
Starting at line 1064 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/bigint.cxx
Starting at line 1091 of /local/ooo-build/ooo-build/src/oog680-m3/tools/source/generic/bigint.cxx

sal_Bool operator<( const BigInt& rVal1, const BigInt& rVal2 )
{
    if ( rVal1.bIsBig || rVal2.bIsBig )
    {
        BigInt nA, nB;
        nA.MakeBigInt( rVal1 );
        nB.MakeBigInt( rVal2 );
        if ( nA.bIsNeg == nB.bIsNeg )
        {
            if ( nA.nLen == nB.nLen )
            {
                int i;
                for ( i = nA.nLen - 1; i > 0 && nA.nNum[i] == nB.nNum[i]; i-- )
                {
                }
=====================================================================
Found a 19 line (100 tokens) duplication in the following files: 
Starting at line 135 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/optload.cxx
Starting at line 224 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/optpage.cxx

    aAnyRulerCB.SetClickHdl(LINK(this, SwContentOptPage, AnyRulerHdl));

    SvxStringArray aMetricArr( SW_RES( STR_ARR_METRIC ) );
    for ( USHORT i = 0; i < aMetricArr.Count(); ++i )
	{
		String sMetric = aMetricArr.GetStringByPos( i );
		FieldUnit eFUnit = (FieldUnit)aMetricArr.GetValue( i );

		switch ( eFUnit )
		{
			case FUNIT_MM:
			case FUNIT_CM:
			case FUNIT_POINT:
			case FUNIT_PICA:
			case FUNIT_INCH:
			{
				// nur diese Metriken benutzen
				USHORT nPos = aMetricLB.InsertEntry( sMetric );
				aMetricLB.SetEntryData( nPos, (void*)(long)eFUnit );
=====================================================================
Found a 12 line (100 tokens) duplication in the following files: 
Starting at line 77 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/barcfg.cxx
Starting at line 419 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/modcfg.cxx

	const Sequence<OUString>& aNames = GetPropertyNames();
	Sequence<Any> aValues = GetProperties(aNames);
	const Any* pValues = aValues.getConstArray();
	DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
	if(aValues.getLength() == aNames.getLength())
	{
		for(int nProp = 0; nProp < aNames.getLength(); nProp++)
		{
			if(pValues[nProp].hasValue())
			{
				sal_Int32 nVal;
				pValues[nProp] >>= nVal;
=====================================================================
Found a 12 line (100 tokens) duplication in the following files: 
Starting at line 414 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/dbui/mailmergechildwindow.cxx
Starting at line 337 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/config/mailconfigpage.cxx

    Size aLBSize(m_aStatusLB.GetOutputSizePixel());
    m_aStatusHB.SetSizePixel(aLBSize);
    Size aHeadSize(m_aStatusHB.CalcWindowSizePixel());
    aHeadSize.Width() = aLBSize.Width();
    m_aStatusHB.SetSizePixel(aHeadSize);
    Point aLBPos(m_aStatusLB.GetPosPixel());
    m_aStatusHB.SetPosPixel(aLBPos);
    aLBPos.Y() += aHeadSize.Height();
    aLBSize.Height() -= aHeadSize.Height();
    m_aStatusLB.SetPosSizePixel(aLBPos, aLBSize);
    
    Size aSz(m_aStatusHB.GetOutputSizePixel());
=====================================================================
Found a 18 line (100 tokens) duplication in the following files: 
Starting at line 1942 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par.cxx
Starting at line 1990 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8par.cxx

    if( pHdFt )
    {
        WW8_CP start;
        long nLen;
        BYTE nNumber = 5;

        for( BYTE nI = 0x20; nI; nI >>= 1, nNumber-- )
        {
            if (nI & nWhichItems)
            {
                bool bOk = true;
                if( bVer67 )
                    bOk = ( pHdFt->GetTextPos(grpfIhdt, nI, start, nLen ) && nLen >= 2 );
                else
                {
                    pHdFt->GetTextPosExact(nNumber + (nSect+1)*6, start, nLen);
                    bOk = ( 2 <= nLen );
                }
=====================================================================
Found a 35 line (100 tokens) duplication in the following files: 
Starting at line 843 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/dump/ww8scan.cxx
Starting at line 921 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/ww8/ww8scan.cxx

    if (pSprms && nRemLen > (mrSprmParser.getVersion()?1:0)) //see #125180#
    {
        nAktId = mrSprmParser.GetSprmId(pSprms);
        pAktParams = pSprms + mrSprmParser.DistanceToData(nAktId);
        nAktSize = mrSprmParser.GetSprmSize(nAktId, pSprms);
    }
    else
    {
        nAktId = 0;
        pAktParams = 0;
        nAktSize = 0;
        nRemLen = 0;
    }
}

const BYTE* WW8SprmIter::FindSprm(USHORT nId)
{
    while(GetSprms())
    {
        if( GetAktId() == nId )
            return GetAktParams();              // SPRM found!
        operator ++(0);
    }

    return 0;                                   // SPRM _not_ found
}

//-----------------------------------------
//      temporaerer Test
//-----------------------------------------
// WW8PLCFx_PCDAttrs halten sich an WW8PLCF_Pcd fest und besitzen deshalb keine
// eigenen Iteratoren. Alle sich auf Iteratoren beziehenden Methoden
// sind deshalb Dummies.

WW8PLCFx_PCDAttrs::WW8PLCFx_PCDAttrs(ww::WordVersion eVersion, 
=====================================================================
Found a 20 line (100 tokens) duplication in the following files: 
Starting at line 610 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/htmlsect.cxx
Starting at line 3452 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/filter/html/swhtml.cxx

	for( USHORT i = pOptions->Count(); i; )
	{
		const HTMLOption *pOption = (*pOptions)[--i];
		switch( pOption->GetToken() )
		{
		case HTML_O_ID:
			aId = pOption->GetString();
			break;
		case HTML_O_STYLE:
			aStyle = pOption->GetString();
			break;
		case HTML_O_CLASS:
			aClass = pOption->GetString();
			break;
		case HTML_O_LANG:
			aLang = pOption->GetString();
			break;
		case HTML_O_DIR:
			aDir = pOption->GetString();
			break;
=====================================================================
Found a 12 line (100 tokens) duplication in the following files: 
Starting at line 421 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unosect.cxx
Starting at line 2606 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unotbl.cxx

	uno::Reference<XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}
	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;
	if(pDoc && nRows && nColumns)
=====================================================================
Found a 25 line (100 tokens) duplication in the following files: 
Starting at line 311 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoparagraph.cxx
Starting at line 3385 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unostyle.cxx

void SwXPageStyle::setPropertyValues(
    const uno::Sequence< OUString >& rPropertyNames,
    const uno::Sequence< uno::Any >& rValues )
        throw(beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
    vos::OGuard aGuard(Application::GetSolarMutex());

    // workaround for bad designed API
    try
    {
        SetPropertyValues_Impl( rPropertyNames, rValues );
    }
    catch (beans::UnknownPropertyException &rException)
    {
        // wrap the original (here not allowed) exception in
        // a lang::WrappedTargetException that gets thrown instead.
        lang::WrappedTargetException aWExc;
        aWExc.TargetException <<= rException;
        throw aWExc;
    }
}
/* -----------------------------04.11.03 13:50--------------------------------

 ---------------------------------------------------------------------------*/
uno::Sequence< uno::Any > SAL_CALL SwXPageStyle::GetPropertyValues_Impl(
=====================================================================
Found a 14 line (100 tokens) duplication in the following files: 
Starting at line 1391 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unofield.cxx
Starting at line 1493 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/unocore/unoidx.cxx

	uno::Reference<XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
	SwXTextRange* pRange = 0;
	OTextCursorHelper* pCursor = 0;
	if(xRangeTunnel.is())
	{
		pRange = (SwXTextRange*)xRangeTunnel->getSomething(
								SwXTextRange::getUnoTunnelId());
		pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething(
								OTextCursorHelper::getUnoTunnelId());
	}

	SwDoc* pDoc = pRange ? (SwDoc*)pRange->GetDoc() : pCursor ? (SwDoc*)pCursor->GetDoc() : 0;

	if(pDoc )
=====================================================================
Found a 16 line (100 tokens) duplication in the following files: 
Starting at line 1530 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/ndtxt.cxx
Starting at line 2005 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/txtnode/ndtxt.cxx

            if( nInitSize || pDest->HasSwAttrSet() ||
				nLen != pDest->GetTxt().Len() )
			{
				SfxItemSet aCharSet( pDest->GetDoc()->GetAttrPool(),
									RES_CHRATR_BEGIN, RES_CHRATR_END-1,
									RES_TXTATR_CHARFMT, RES_TXTATR_CHARFMT,
									RES_TXTATR_INETFMT, RES_TXTATR_INETFMT,
									RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1,
									0 );
				aCharSet.Put( *GetpSwAttrSet() );
				if( aCharSet.Count() )
                    pDest->SetAttr( aCharSet, nDestStart, nDestStart + nLen );
			}
			else
				GetpSwAttrSet()->CopyToModify( *pDest );
		}
=====================================================================
Found a 21 line (100 tokens) duplication in the following files: 
Starting at line 300 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/laycache.cxx
Starting at line 458 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/layout/laycache.cxx

                        ++nIndex;
                    }
                }
                else if( pTmp->IsTabFrm() )
                {
                    SwTabFrm* pTab = (SwTabFrm*)pTmp;
                    ULONG nOfst = STRING_LEN;
                    if( pTab->IsFollow() )
                    {
                        nOfst = 0;
                        if( pTab->IsFollow() )
                            pTab = pTab->FindMaster( true );
                        while( pTab != pTmp )
                        {
                            SwFrm* pSub = pTab->Lower();
                            while( pSub )
                            {
                                ++nOfst;
                                pSub = pSub->GetNext();
                            }
                            pTab = pTab->GetFollow();
=====================================================================
Found a 19 line (100 tokens) duplication in the following files: 
Starting at line 371 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/fields/cellfml.cxx
Starting at line 952 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/core/fields/cellfml.cxx

	SwSelBoxes* pBoxes = (SwSelBoxes*)pPara;
	SwTableBox* pSttBox, *pEndBox = 0;

	rFirstBox.Erase(0,1);		// Kennung fuer Box loeschen
	// ein Bereich in dieser Klammer ?
	if( pLastBox )
	{
		pEndBox = (SwTableBox*)pLastBox->ToInt64();

		// ist das ueberhaupt ein gueltiger Pointer ??
		if( !rTbl.GetTabSortBoxes().Seek_Entry( pEndBox ))
			pEndBox = 0;
		rFirstBox.Erase( 0, pLastBox->Len()+1 );
	}

	pSttBox = (SwTableBox*)rFirstBox.ToInt64();
	// ist das ueberhaupt ein gueltiger Pointer ??
	if( !rTbl.GetTabSortBoxes().Seek_Entry( pSttBox ))
		pSttBox = 0;
=====================================================================
Found a 30 line (100 tokens) duplication in the following files: 
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr2.cxx
Starting at line 397 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/xoutdev/xattr2.cxx

SfxItemPresentation XFillTransparenceItem::GetPresentation
(
	SfxItemPresentation ePres,
	SfxMapUnit			/*eCoreUnit*/,
	SfxMapUnit			/*ePresUnit*/,
    XubString&          rText, const IntlWrapper *
)	const
{
	rText.Erase();

	switch ( ePres )
	{
		case SFX_ITEM_PRESENTATION_NONE:
			return ePres;
		case SFX_ITEM_PRESENTATION_COMPLETE:
			rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
			rText.AppendAscii(": ");
		case SFX_ITEM_PRESENTATION_NAMELESS:
			rText += XubString( UniString::CreateFromInt32((USHORT) GetValue() ));
			rText += sal_Unicode('%');
			return ePres;
		default:
			return SFX_ITEM_PRESENTATION_NONE;
	}
}

//------------------------------
// class XFormTextShadowTranspItem
//------------------------------
TYPEINIT1_AUTOFACTORY(XFormTextShadowTranspItem, SfxUInt16Item);
=====================================================================
Found a 9 line (100 tokens) duplication in the following files: 
Starting at line 94 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/gluepts.cxx
Starting at line 152 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/unodraw/unonrule.cxx

    virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const uno::Any& Element ) throw(lang::IllegalArgumentException, lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException);

	//XIndexAccess
    virtual sal_Int32 SAL_CALL getCount() throw(uno::RuntimeException) ;
    virtual uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException);

	//XElementAccess
    virtual uno::Type SAL_CALL getElementType() throw(uno::RuntimeException);
    virtual sal_Bool SAL_CALL hasElements() throw(uno::RuntimeException);
=====================================================================
Found a 22 line (100 tokens) duplication in the following files: 
Starting at line 994 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/toolbars/extrusionbar.cxx
Starting at line 1155 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/toolbars/extrusionbar.cxx

	int nFinalLevel = -1;
	bool bHasCustomShape = false;

	for(i=0;i<nCount; i++)
	{
		SdrObject* pObj = rMarkList.GetMark(i)->GetMarkedSdrObj();
		if( pObj->ISA(SdrObjCustomShape) )
		{
			SdrCustomShapeGeometryItem aGeometryItem( (SdrCustomShapeGeometryItem&)pObj->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ) );

			// see if this is an extruded customshape
			if( !bHasCustomShape )
			{
				Any* pAny_ = aGeometryItem.GetPropertyValueByName( sExtrusion, sExtrusion );
				if( pAny_ )
					*pAny_ >>= bHasCustomShape;

				if( !bHasCustomShape )
					continue;
			}

			double fBrightness = 22178.0 / 655.36;
=====================================================================
Found a 10 line (100 tokens) duplication in the following files: 
Starting at line 1398 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx
Starting at line 1472 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdopath.cxx

				if (IsBezier(pU->eAktKind) && nActPoint-pU->nBezierStartPoint>=3 && ((nActPoint-pU->nBezierStartPoint)%3)==0) {
					rXPoly.PointsToBezier(nActPoint-3);
					rXPoly.SetFlags(nActPoint-1,XPOLY_CONTROL);
					rXPoly.SetFlags(nActPoint-2,XPOLY_CONTROL);

					if (nActPoint>=6 && rXPoly.IsControl(nActPoint-4)) {
						rXPoly.CalcTangent(nActPoint-3,nActPoint-4,nActPoint-2);
						rXPoly.SetFlags(nActPoint-3,XPOLY_SMOOTH);
					}
				}
=====================================================================
Found a 7 line (100 tokens) duplication in the following files: 
Starting at line 2269 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdoedge.cxx
Starting at line 612 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdogrp.cxx

	Rectangle aOld(GetSnapRect());
	long nMulX=rRect.Right()-rRect.Left();
	long nDivX=aOld.Right()-aOld.Left();
	long nMulY=rRect.Bottom()-rRect.Top();
	long nDivY=aOld.Bottom()-aOld.Top();
	if (nDivX==0) { nMulX=1; nDivX=1; }
	if (nDivY==0) { nMulY=1; nDivY=1; }
=====================================================================
Found a 21 line (100 tokens) duplication in the following files: 
Starting at line 1000 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx
Starting at line 1387 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx

	SdrHdl::CreateB2dIAObject();

	// create lines
	if(pHdlList)
	{
		SdrMarkView* pView = pHdlList->GetView();

		if(pView && !pView->areMarkHandlesHidden())
		{
			SdrPageView* pPageView = pView->GetSdrPageView();

			if(pPageView)
			{
				for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
				{
					const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b);

					if(rPageWindow.GetPaintWindow().OutputToWindow())
					{
						if(rPageWindow.GetOverlayManager())
						{
=====================================================================
Found a 22 line (100 tokens) duplication in the following files: 
Starting at line 297 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx
Starting at line 518 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/gradtrns.cxx

				const basegfx::B2DVector aOldVec(aCenterLeft - aTopLeft);
				const double fFullLen(aFullVec.getLength());
				const double fOldLen(aOldVec.getLength());
				const double fNewBorder((fFullLen * 100.0) / fOldLen);
				sal_Int32 nNewBorder(100L - FRound(fNewBorder));

				// clip
				if(nNewBorder < 0L)
				{
					nNewBorder = 0L;
				}

				if(nNewBorder > 100L)
				{
					nNewBorder = 100L;
				}

				// set
				if(nNewBorder != rG.aGradient.GetBorder())
				{
					rG.aGradient.SetBorder((sal_uInt16)nNewBorder);
				}
=====================================================================
Found a 18 line (100 tokens) duplication in the following files: 
Starting at line 2057 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx
Starting at line 2692 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msocximex.cxx

    fHideSelection = any2bool(rPropSet->getPropertyValue(WW8_ASCII2STR("HideInactiveSelection")));
    if( fHideSelection )
        nTemp |= 0x20;
    *rContents << nTemp;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("BackgroundColor"));
    if (aTmp.hasValue())
	    aTmp >>= mnBackColor;
	*rContents << ExportColor(mnBackColor);
	pBlockFlags[0] |= 0x02;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("TextColor"));
    if (aTmp.hasValue())
	    aTmp >>= mnForeColor;
	*rContents << ExportColor(mnForeColor);
	pBlockFlags[0] |= 0x04;

	aTmp = rPropSet->getPropertyValue(WW8_ASCII2STR("Border"));
=====================================================================
Found a 13 line (100 tokens) duplication in the following files: 
Starting at line 2423 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/numpages.cxx
Starting at line 1783 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/tpline.cxx

            Bitmap aBitmap(pItem->GetGraphic()->GetBitmap());
            Size aSize(aBitmap.GetSizePixel());
            if(aSize.Width()  > MAX_BMP_WIDTH ||
               aSize.Height() > MAX_BMP_HEIGHT)
            {
                BOOL bWidth = aSize.Width() > aSize.Height();
                double nScale = bWidth ?
                    (double)MAX_BMP_WIDTH / (double)aSize.Width():
                    (double)MAX_BMP_HEIGHT / (double)aSize.Height();
                aBitmap.Scale(nScale, nScale);
            }
            Image aImage(aBitmap);
            pPopup->SetItemImage( pBmpInfo->nItemId, aImage );
=====================================================================
Found a 18 line (100 tokens) duplication in the following files: 
Starting at line 4236 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx
Starting at line 4313 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/dialog/cfg.cxx

			    uno::Sequence< beans::PropertyValue > props = info_[ i ];

			    OUString url;
			    OUString systemname;
			    OUString uiname;

			    for ( sal_Int32 j = 0; j < props.getLength(); j++ )
			    {
				    if ( props[ j ].Name.equalsAscii( ITEM_DESCRIPTOR_RESOURCEURL) )
				    {
					    props[ j ].Value >>= url;
					    systemname = url.copy( url.lastIndexOf( '/' ) + 1 );
				    }
				    else if ( props[ j ].Name.equalsAscii( ITEM_DESCRIPTOR_UINAME) )
				    {
					    props[ j ].Value >>= uiname;
				    }
			    }
=====================================================================
Found a 16 line (100 tokens) duplication in the following files: 
Starting at line 4293 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
Starting at line 3891 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/msfilter/msashape.cxx

};

static const SvxMSDffVertPair mso_sptFlowChartProcessVert[] =
{
	{ 0, 0 }, { 21600, 0 }, { 21600, 21600 }, { 0, 21600 }, { 0, 0 }
};
static const mso_CustomShape msoFlowChartProcess =
{
	(SvxMSDffVertPair*)mso_sptFlowChartProcessVert, sizeof( mso_sptFlowChartProcessVert ) / sizeof( SvxMSDffVertPair ),
	NULL, 0,
	NULL, 0,
	NULL,
	NULL, 0,
	21600, 21600,
	0x80000000, 0x80000000,
	(SvxMSDffVertPair*)mso_sptStandardGluePoints, sizeof( mso_sptStandardGluePoints ) / sizeof( SvxMSDffVertPair )
=====================================================================
Found a 28 line (100 tokens) duplication in the following files: 
Starting at line 1576 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zforfind.cxx
Starting at line 1820 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/numbers/zforfind.cxx

            nMatchedAllStrings |= nMatchedEndString;
        else
            nMatchedAllStrings = 0;
    }

    SkipBlanks(rString, nPos);
    if (GetDecSep(rString, nPos))                   // decimal separator?
    {
        if (nDecPos == 1 || nDecPos == 3)           // .12.4 or 12.E4.
            return MatchedReturn();
        else if (nDecPos == 2)                      // . dup: 12.4.
        {
            if (bDecSepInDateSeps)                  // . also date sep
            {
                if (    eScannedType != NUMBERFORMAT_UNDEFINED &&
                        eScannedType != NUMBERFORMAT_DATE &&
                        eScannedType != NUMBERFORMAT_DATETIME)  // already another type
                    return MatchedReturn();
                if (eScannedType == NUMBERFORMAT_UNDEFINED)
                    eScannedType = NUMBERFORMAT_DATE;   // !!! it IS a date
                SkipBlanks(rString, nPos);
            }
            else
                return MatchedReturn();
        }
        else
        {
            nDecPos = 3;                            // . in end string
=====================================================================
Found a 14 line (100 tokens) duplication in the following files: 
Starting at line 1568 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/edit/texteng.cxx
Starting at line 2701 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/editeng/impedit3.cxx

		else if ( nAttr & EXTTEXTINPUT_ATTR_REDTEXT )
			rFont.SetColor( Color( COL_RED ) );
		else if ( nAttr & EXTTEXTINPUT_ATTR_HALFTONETEXT )
			rFont.SetColor( Color( COL_LIGHTGRAY ) );
		if ( nAttr & EXTTEXTINPUT_ATTR_HIGHLIGHT )
		{
			const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
			rFont.SetColor( rStyleSettings.GetHighlightTextColor() );
			rFont.SetFillColor( rStyleSettings.GetHighlightColor() );
			rFont.SetTransparent( FALSE );
		}
		else if ( nAttr & EXTTEXTINPUT_ATTR_GRAYWAVELINE )
		{
			rFont.SetUnderline( UNDERLINE_WAVE );
=====================================================================
Found a 19 line (100 tokens) duplication in the following files: 
Starting at line 1389 of /local/ooo-build/ooo-build/src/oog680-m3/svtools/source/edit/svmedit.cxx
Starting at line 1209 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/control/combobox.cxx

	Font aFont = mpImplLB->GetMainWindow()->GetDrawPixelFont( pDev );
	OutDevType eOutDevType = pDev->GetOutDevType();

	pDev->Push();
	pDev->SetMapMode();
	pDev->SetFont( aFont );
	pDev->SetTextFillColor();

	// Border/Background
	pDev->SetLineColor();
	pDev->SetFillColor();
	BOOL bBorder = !(nFlags & WINDOW_DRAW_NOBORDER ) && (GetStyle() & WB_BORDER);
	BOOL bBackground = !(nFlags & WINDOW_DRAW_NOBACKGROUND) && IsControlBackground();
	if ( bBorder || bBackground )
	{
		Rectangle aRect( aPos, aSize );
		// aRect.Top() += nEditHeight;
		if ( bBorder )
		{
=====================================================================
Found a 18 line (100 tokens) duplication in the following files: 
Starting at line 1016 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx
Starting at line 1611 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx

Point SmEditViewForwarder::LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const
{
	EditView *pEditView = rEditAcc.GetEditView();
	OutputDevice* pOutDev = pEditView ? pEditView->GetWindow() : 0;

    if( pOutDev )
    {
        MapMode aMapMode(pOutDev->GetMapMode());
        Point aPoint( OutputDevice::LogicToLogic( rPoint, rMapMode,
                                                  aMapMode.GetMapUnit() ) );
        aMapMode.SetOrigin(Point());
        return pOutDev->LogicToPixel( aPoint, aMapMode );
    }

    return Point();
}

Point SmEditViewForwarder::PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const
=====================================================================
Found a 18 line (100 tokens) duplication in the following files: 
Starting at line 365 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx
Starting at line 1885 of /local/ooo-build/ooo-build/src/oog680-m3/starmath/source/accessibility.cxx

sal_Int32 SAL_CALL SmEditAccessible::getBackground()
    throw (RuntimeException)
{
    vos::OGuard aGuard(Application::GetSolarMutex());

    if (!pWin)
        throw RuntimeException();
    Wallpaper aWall( pWin->GetDisplayBackground() );
    ColorData nCol;
    if (aWall.IsBitmap() || aWall.IsGradient())
        nCol = pWin->GetSettings().GetStyleSettings().GetWindowColor().GetColor();
    else
        nCol = aWall.GetColor().GetColor();
    return (sal_Int32) nCol;
}

// XAccessibleContext
sal_Int32 SAL_CALL SmEditAccessible::getAccessibleChildCount(  )
=====================================================================
Found a 17 line (100 tokens) duplication in the following files: 
Starting at line 133 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/regactivex/regactivex.cxx
Starting at line 51 of /local/ooo-build/ooo-build/src/oog680-m3/setup_native/source/win32/customactions/tools/checkversion.cxx

BOOL GetMsiProp( MSIHANDLE hMSI, const wchar_t* pPropName, wchar_t** ppValue )
{
    DWORD sz = 0;
   	if ( MsiGetProperty( hMSI, pPropName, L"", &sz ) == ERROR_MORE_DATA )
   	{
       	sz++;
       	DWORD nbytes = sz * sizeof( wchar_t );
       	wchar_t* buff = reinterpret_cast<wchar_t*>( malloc( nbytes ) );
       	ZeroMemory( buff, nbytes );
       	MsiGetProperty( hMSI, pPropName, buff, &sz );
   		*ppValue = buff;

		return TRUE;
	}

	return FALSE;
}
=====================================================================
Found a 17 line (100 tokens) duplication in the following files: 
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/unomodule.cxx
Starting at line 130 of /local/ooo-build/ooo-build/src/oog680-m3/sw/source/ui/uno/unomodule.cxx

SEQUENCE< REFERENCE< XDISPATCH > > SAL_CALL SwUnoModule::queryDispatches( const SEQUENCE< DISPATCHDESCRIPTOR >& seqDescripts ) throw( ::com::sun::star::uno::RuntimeException )
{
    sal_Int32 nCount = seqDescripts.getLength();
    SEQUENCE< REFERENCE< XDISPATCH > > lDispatcher( nCount );

    for( sal_Int32 i=0; i<nCount; ++i )
    {
        lDispatcher[i] = queryDispatch( seqDescripts[i].FeatureURL  ,
                                        seqDescripts[i].FrameName   ,
                                        seqDescripts[i].SearchFlags );
    }

    return lDispatcher;
}

// XDispatchProvider
REFERENCE< XDISPATCH > SAL_CALL SwUnoModule::queryDispatch( const UNOURL& aURL, const OUSTRING& sTargetFrameName, sal_Int32 eSearchFlags	) throw( RUNTIMEEXCEPTION )
=====================================================================
Found a 21 line (100 tokens) duplication in the following files: 
Starting at line 235 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/animations/motionpathtag.cxx
Starting at line 1387 of /local/ooo-build/ooo-build/src/oog680-m3/svx/source/svdraw/svdhdl.cxx

	SdrHdl::CreateB2dIAObject();

	// create lines
	if(pHdlList)
	{
		SdrMarkView* pView = pHdlList->GetView();

		if(pView && !pView->areMarkHandlesHidden())
		{
			SdrPageView* pPageView = pView->GetSdrPageView();

			if(pPageView)
			{
				for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
				{
					const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b);

					if(rPageWindow.GetPaintWindow().OutputToWindow())
					{
						if(rPageWindow.GetOverlayManager())
						{
=====================================================================
Found a 15 line (100 tokens) duplication in the following files: 
Starting at line 251 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/prevwsh.cxx
Starting at line 361 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/view/tabvwsh4.cxx

	ScDocument*			pDoc		= GetViewData()->GetDocument();
	ScStyleSheetPool*	pStylePool  = pDoc->GetStyleSheetPool();
	SfxStyleSheetBase*	pStyleSheet = pStylePool->Find(
										pDoc->GetPageStyle( nCurTab ),
										SFX_STYLE_FAMILY_PAGE );

	DBG_ASSERT( pStyleSheet, "PageStyle not found :-/" );

	if ( pStyleSheet )
	{
		const SfxItemSet&  rSet 	 = pStyleSheet->GetItemSet();
		const SvxSizeItem& rItem	 = (const SvxSizeItem&)rSet.Get( ATTR_PAGE_SIZE );
		const Size&		   rPageSize = rItem.GetSize();

		aOptSize.Width()  = (long) (rPageSize.Width()  * GetViewData()->GetPPTX());
=====================================================================
Found a 28 line (100 tokens) duplication in the following files: 
Starting at line 374 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/scdetect.cxx
Starting at line 296 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/unoidl/sddetect.cxx

                    uno::Reference < embed::XStorage > xStorage = aMedium.GetStorage();

                    //TODO/LATER: move error handling to central place! (maybe even complete own filters)
                    if ( aMedium.GetLastStorageCreationState() != ERRCODE_NONE )
					{
						// error during storage creation means _here_ that the medium
						// is broken, but we can not handle it in medium since unpossibility
						// to create a storage does not _always_ means that the medium is broken
						aMedium.SetError( aMedium.GetLastStorageCreationState() );
						if ( xInteraction.is() )
						{
							OUString empty;
							try
							{
								InteractiveAppException xException( empty,
																REFERENCE< XInterface >(),
																InteractionClassification_ERROR,
																aMedium.GetError() );

								REFERENCE< XInteractionRequest > xRequest(
									new ucbhelper::SimpleInteractionRequest( makeAny( xException ),
																	 	 ucbhelper::CONTINUATION_APPROVE ) );
								xInteraction->handle( xRequest );
							}
							catch ( Exception & ) {};
						}
					}
					else
=====================================================================
Found a 15 line (100 tokens) duplication in the following files: 
Starting at line 86 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chartuno.cxx
Starting at line 350 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/chartuno.cxx

	if ( pDocShell )
	{
		ScDocument* pDoc = pDocShell->GetDocument();
		ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer();
		if (pDrawLayer)
		{
			SdrPage* pPage = pDrawLayer->GetPage(static_cast<sal_uInt16>(nTab));
			DBG_ASSERT(pPage, "Page nicht gefunden");
			if (pPage)
			{
				SdrObjListIter aIter( *pPage, IM_DEEPNOGROUPS );
				SdrObject* pObject = aIter.Next();
				while (pObject)
				{
					if ( pObject->GetObjIdentifier() == OBJ_OLE2 && pDoc->IsChart(pObject) )
=====================================================================
Found a 14 line (100 tokens) duplication in the following files: 
Starting at line 7156 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx
Starting at line 7173 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/unoobj/cellsuno.cxx

void SAL_CALL ScTableSheetObj::copyRange( const table::CellAddress& aDestination,
										const table::CellRangeAddress& aSource )
										throw(uno::RuntimeException)
{
	ScUnoGuard aGuard;
	ScDocShell* pDocSh = GetDocShell();
	if ( pDocSh )
	{
		DBG_ASSERT( aSource.Sheet == GetTab_Impl(), "falsche Tabelle in CellRangeAddress" );
		ScRange aSourceRange;
		ScUnoConversion::FillScRange( aSourceRange, aSource );
		ScAddress aDestPos( (SCCOL)aDestination.Column, (SCROW)aDestination.Row, aDestination.Sheet );
		ScDocFunc aFunc(*pDocSh);
		aFunc.MoveBlock( aSourceRange, aDestPos, FALSE, TRUE, TRUE, TRUE );
=====================================================================
Found a 17 line (100 tokens) duplication in the following files: 
Starting at line 653 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/ui/app/scmod.cxx
Starting at line 744 of /local/ooo-build/ooo-build/src/oog680-m3/sd/source/ui/view/drviewsb.cxx

			rReq.Ignore ();
		}
		break;

        case SID_OPEN_XML_FILTERSETTINGS:
        {
			try
			{
				com::sun::star::uno::Reference < ::com::sun::star::ui::dialogs::XExecutableDialog > xDialog(::comphelper::getProcessServiceFactory()->createInstance(rtl::OUString::createFromAscii("com.sun.star.comp.ui.XSLTFilterDialog")), com::sun::star::uno::UNO_QUERY);
				if( xDialog.is() )
				{
					xDialog->execute();
				}
			}
			catch( ::com::sun::star::uno::RuntimeException& )
			{
			}
=====================================================================
Found a 9 line (100 tokens) duplication in the following files: 
Starting at line 140 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/filter/xml/xmlstyli.cxx
Starting at line 122 of /local/ooo-build/ooo-build/src/oog680-m3/xmloff/source/style/PageMasterImportPropMapper.cxx

	XMLPropertyState* pAllPaddingProperty = NULL;
	XMLPropertyState* pPadding[4] = { NULL, NULL, NULL, NULL };
	XMLPropertyState* pNewPadding[4] = { NULL, NULL, NULL, NULL };
	XMLPropertyState* pAllBorderProperty = NULL;
	XMLPropertyState* pBorders[4] = { NULL, NULL, NULL, NULL };
	XMLPropertyState* pNewBorders[4] = { NULL, NULL, NULL, NULL };
	XMLPropertyState* pAllBorderWidthProperty = NULL;
	XMLPropertyState* pBorderWidths[4] = { NULL, NULL, NULL, NULL };
	XMLPropertyState* pAllHeaderPaddingProperty = NULL;
=====================================================================
Found a 9 line (100 tokens) duplication in the following files: 
Starting at line 67 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/rangeseq.cxx
Starting at line 123 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/rangeseq.cxx

BOOL ScRangeToSequence::FillDoubleArray( uno::Any& rAny, ScDocument* pDoc, const ScRange& rRange )
{
	SCTAB nTab = rRange.aStart.Tab();
	SCCOL nStartCol = rRange.aStart.Col();
	SCROW nStartRow = rRange.aStart.Row();
	long nColCount = rRange.aEnd.Col() + 1 - rRange.aStart.Col();
	long nRowCount = rRange.aEnd.Row() + 1 - rRange.aStart.Row();

	uno::Sequence< uno::Sequence<double> > aRowSeq( nRowCount );
=====================================================================
Found a 11 line (100 tokens) duplication in the following files: 
Starting at line 2580 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx
Starting at line 2609 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr5.cxx

		{
			for (k = 0; k < N; k++)
			{
				double Yk = pMatY->GetDouble(k);
				pE->PutDouble( pE->GetDouble(M+1)+Yk*Yk, M+1 );
				double sumYk = pQ->GetDouble(0, M+1) + Yk;
				pQ->PutDouble( sumYk, 0, M+1 );
				pE->PutDouble( sumYk, 0 );
				for (i = 0; i < M; i++)
				{
					double Xki = pMatX->GetDouble(k,i);
=====================================================================
Found a 20 line (100 tokens) duplication in the following files: 
Starting at line 6182 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 6268 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

			fDec = ::rtl::math::approxFloor(GetDoubleWithDefault( 2.0 ));
			if (fDec < -15.0 || fDec > 15.0)
			{
				SetIllegalArgument();
				return;
			}
		}
		else
			fDec = 2.0;
		double fVal = GetDouble();
		double fFac;
		if ( fDec != 0.0 )
			fFac = pow( (double)10, fDec );
		else
			fFac = 1.0;
		if (fVal < 0.0)
			fVal = ceil(fVal*fFac-0.5)/fFac;
		else
			fVal = floor(fVal*fFac+0.5)/fFac;
		Color* pColor = NULL;
=====================================================================
Found a 22 line (100 tokens) duplication in the following files: 
Starting at line 1135 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx
Starting at line 1189 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/tool/interpr1.cxx

	nFuncFmtType = NUMBERFORMAT_LOGICAL;
    switch ( GetStackType() )
    {
        case svMatrix :
        {
            ScMatrixRef pMat = GetMatrix();
            if ( !pMat )
                PushError();
            else
            {
                SCSIZE nC, nR;
                pMat->GetDimensions( nC, nR );
                ScMatrixRef pResMat = GetNewMat( nC, nR);
                if ( !pResMat )
                    PushError();
                else
                {
                    SCSIZE nCount = nC * nR;
                    for ( SCSIZE j=0; j<nCount; ++j )
                    {
                        if ( pMat->IsValueOrEmpty(j) )
                            pResMat->PutDouble( (pMat->GetDouble(j) == 0.0), j );
=====================================================================
Found a 11 line (100 tokens) duplication in the following files: 
Starting at line 1112 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpobject.cxx
Starting at line 1408 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/dpobject.cxx

		long nHierarchy = ScUnoHelpFunctions::GetLongProperty( xDimProp,
								rtl::OUString::createFromAscii(DP_PROP_USEDHIERARCHY) );
		if ( nHierarchy >= xHiers->getCount() )
			nHierarchy = 0;

		uno::Reference<uno::XInterface> xHier = ScUnoHelpFunctions::AnyToInterface(
									xHiers->getByIndex(nHierarchy) );
		uno::Reference<sheet::XLevelsSupplier> xHierSupp( xHier, uno::UNO_QUERY );
		if ( xHierSupp.is() )
		{
			uno::Reference<container::XIndexAccess> xLevels = new ScNameToIndexAccess( xHierSupp->getLevels() );
=====================================================================
Found a 17 line (100 tokens) duplication in the following files: 
Starting at line 1976 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/document.cxx
Starting at line 2033 of /local/ooo-build/ooo-build/src/oog680-m3/sc/source/core/data/document.cxx

		SCROW nEndRow = aArea.aEnd.Row();

		SCTAB nCount = GetTableCount();
		for (SCTAB i=0; i<nCount; i++)
			if ( i!=nSrcTab && pTab[i] && rMark.GetTableSelect(i) )
			{
				if (bDoMix)
				{
					if (!pMixDoc)
					{
						pMixDoc = new ScDocument( SCDOCMODE_UNDO );
						pMixDoc->InitUndo( this, i, i );
					}
					else
						pMixDoc->AddUndoTab( i, i );
					pTab[i]->CopyToTable( nStartCol,nStartRow, nEndCol,nEndRow,
											IDF_CONTENTS, TRUE, pMixDoc->pTab[i], &rMark );
=====================================================================
Found a 16 line (100 tokens) duplication in the following files: 
Starting at line 353 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/t_cipher.c
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/sal/workben/t_cipher.c

			OSL_ASSERT(arcfour_out[length] == 0);
		}

		n = arcfour_data_len[3];
		for (i = 1; i < n; i++)
		{
			length = i;

			result = rtl_cipher_init (
				cipher, rtl_Cipher_DirectionBoth,
				&(arcfour_key[3][1]), arcfour_key[3][0], 0, 0);
			OSL_ASSERT(result == rtl_Cipher_E_None);

			memset (arcfour_out, 0, sizeof(arcfour_out));
			result = rtl_cipher_encode (
				cipher, &(arcfour_data[3][0]), length,
=====================================================================
Found a 27 line (100 tokens) duplication in the following files: 
Starting at line 337 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertbig5hkscs.c
Starting at line 558 of /local/ooo-build/ooo-build/src/oog680-m3/sal/textenc/convertiso2022cn.c

    for (; nConverted < nSrcChars; ++nConverted)
    {
        sal_Bool bUndefined = sal_True;
        sal_uInt32 nChar = *pSrcBuf++;
        if (nHighSurrogate == 0)
        {
            if (ImplIsHighSurrogate(nChar))
            {
                nHighSurrogate = (sal_Unicode) nChar;
                continue;
            }
        }
        else if (ImplIsLowSurrogate(nChar))
            nChar = ImplCombineSurrogates(nHighSurrogate, nChar);
        else
        {
            bUndefined = sal_False;
            goto bad_input;
        }

        if (ImplIsLowSurrogate(nChar) || ImplIsNoncharacter(nChar))
        {
            bUndefined = sal_False;
            goto bad_input;
        }

        if (nChar == 0x0A || nChar == 0x0D) /* LF, CR */
=====================================================================
Found a 27 line (100 tokens) duplication in the following files: 
Starting at line 372 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OString.cxx
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/sal/qa/rtl_strings/rtl_OUString.cxx

    sal_Int32 i;

    for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
    {
        sal_Bool lastRes =
            ( arrTestCase[i].input1->equals(*(arrTestCase[i].input2)) ==  
              arrTestCase[i].expVal );

        c_rtl_tres_state
            (
                hRtlTestResult,
                lastRes,
                arrTestCase[i].comments,
                createName( pMeth, "equals", i )
                );

        res &= lastRes;
    }
    c_rtl_tres_state_end( hRtlTestResult, "equals"); 
//    return (res);
}

//------------------------------------------------------------------------
// testing the method equalsIgnoreAsciiCase( const OString & aStr )
//------------------------------------------------------------------------

extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_equalsIgnoreAsciiCase(
=====================================================================
Found a 16 line (100 tokens) duplication in the following files: 
Starting at line 156 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/ttcr.c
Starting at line 170 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/ttcr.c

_inline void PutUInt16(sal_uInt16 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian)
{
    assert(ptr != 0);

    if (bigendian) {
        ptr[offset] = (sal_uInt8)((val >> 8) & 0xFF);
        ptr[offset+1] = (sal_uInt8)(val & 0xFF);
    } else {
        ptr[offset+1] = (sal_uInt8)((val >> 8) & 0xFF);
        ptr[offset] = (sal_uInt8)(val & 0xFF);
    }

}


_inline void PutUInt32(sal_uInt32 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian)
=====================================================================
Found a 8 line (100 tokens) duplication in the following files: 
Starting at line 3258 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/sft.c
Starting at line 3285 of /local/ooo-build/ooo-build/src/oog680-m3/psprint/source/fontsubset/sft.c

    sal_uInt16 glyphArray[] = { 0,  6711,  6724,  11133,  11144, 14360, 26,  27,  28,  29, 30, 31, 1270, 1289, 34};
    sal_uInt8 encoding[]     = {32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46};
    int r;

    if ((r = OpenTTFont(av[1], 0, &fnt)) != SF_OK) {
        fprintf(stderr, "Error %d opening font file: `%s`.\n", r, av[1]);
        return 0;
    }
=====================================================================
Found a 32 line (100 tokens) duplication in the following files: 
Starting at line 326 of /local/ooo-build/ooo-build/src/oog680-m3/idlc/source/preproc/eval.c
Starting at line 292 of /local/ooo-build/ooo-build/src/oog680-m3/soltools/cpp/_eval.c

                if (rnd == 0)
                {
                    if (tp->type == MINUS)
                        *op++ = UMINUS;
                    if (tp->type == STAR || tp->type == AND)
                    {
                        error(ERROR, "Illegal operator * or & in #if/#elsif");
                        return 0;
                    }
                    continue;
                }
                /* flow through */

                /* plain binary */
            case EQ:
            case NEQ:
            case LEQ:
            case GEQ:
            case LSH:
            case RSH:
            case LAND:
            case LOR:
            case SLASH:
            case PCT:
            case LT:
            case GT:
            case CIRC:
            case OR:
            case QUEST:
            case COLON:
            case COMMA:
                if (rnd == 0)
=====================================================================
Found a 16 line (100 tokens) duplication in the following files: 
Starting at line 216 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h
Starting at line 806 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/source/gdi/fontcvt.cxx

             0,         0,         0,         0,
    // F0d0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0e0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
    // F0f0
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0,
             0,         0,         0,         0
=====================================================================
Found a 7 line (100 tokens) duplication in the following files: 
Starting at line 38 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 939 of /local/ooo-build/ooo-build/src/oog680-m3/i18nutil/source/utility/unicode_data.h

    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7000 - 77ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7800 - 7fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 8000 - 87ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 8800 - 8fff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 9000 - 97ff
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 9800 - 9fff
    0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, // a000 - a7ff
=====================================================================
Found a 5 line (100 tokens) duplication in the following files: 
Starting at line 37 of /local/ooo-build/ooo-build/src/oog680-m3/i18npool/source/indexentry/data/indexdata_alphanumeric.h
Starting at line 39 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/asw_curs.h

static char asw_curs_bits[] = {
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xc0,0x00,0x00,0x00,0x70,0x38,0x00,0x00,0x78,0x7c,0x00,0x00,
=====================================================================
Found a 6 line (100 tokens) duplication in the following files: 
Starting at line 405 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp
Starting at line 411 of /local/ooo-build/ooo-build/src/oog680-m3/hwpfilter/source/lexer.cpp

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0
=====================================================================
Found a 23 line (100 tokens) duplication in the following files: 
Starting at line 466 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/office/OfficeFilePicker.cxx
Starting at line 687 of /local/ooo-build/ooo-build/src/oog680-m3/fpicker/source/unx/gnome/SalGtkFilePicker.cxx

sal_Bool SalGtkFilePicker::FilterNameExists( const UnoFilterList& _rGroupedFilters )
{
	sal_Bool bRet = sal_False;

	if( m_pFilterList )
	{
		const UnoFilterEntry* pStart = _rGroupedFilters.getConstArray();
		const UnoFilterEntry* pEnd = pStart + _rGroupedFilters.getLength();
		for( ; pStart != pEnd; ++pStart )
			if( m_pFilterList->end() != ::std::find_if( 
						m_pFilterList->begin(),
						m_pFilterList->end(),
						FilterTitleMatch( pStart->First ) ) )
				break;

		bRet = pStart != pEnd;
	}

	return bRet;
}

//------------------------------------------------------------------------------------
void SalGtkFilePicker::ensureFilterList( const ::rtl::OUString& _rInitialCurrentFilter )
=====================================================================
Found a 5 line (100 tokens) duplication in the following files: 
Starting at line 450 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/imgprod.cxx
Starting at line 522 of /local/ooo-build/ooo-build/src/oog680-m3/forms/source/component/imgprod.cxx

		for( pCons = maConsList.First(); pCons; pCons = maConsList.Next() )
			aTmp.Insert( new ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > ( *(::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > *) pCons ), LIST_APPEND );

		// iterate through interfaces
		for( pCons = aTmp.First(); pCons; pCons = aTmp.Next() )
=====================================================================
Found a 10 line (100 tokens) duplication in the following files: 
Starting at line 136 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/xmlfilterdetect/filterdetect.cxx
Starting at line 84 of /local/ooo-build/ooo-build/src/oog680-m3/writerperfect/source/wpdimp/WordPerfectImportFilter.cxx

using rtl::OUString;
using com::sun::star::uno::Sequence;
using com::sun::star::uno::Reference;
using com::sun::star::uno::Any;
using com::sun::star::uno::UNO_QUERY;
using com::sun::star::uno::XInterface;
using com::sun::star::uno::Exception;
using com::sun::star::uno::RuntimeException;
using com::sun::star::lang::XMultiServiceFactory;
using com::sun::star::beans::PropertyValue;
=====================================================================
Found a 14 line (100 tokens) duplication in the following files: 
Starting at line 655 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/svg/svgaction.cxx
Starting at line 477 of /local/ooo-build/ooo-build/src/oog680-m3/filter/source/svg/svgwriter.cxx

	FastString					aPathData;
	const NMSP_RTL::OUString	aBlank( B2UCONST( " " ) );
	const NMSP_RTL::OUString	aComma( B2UCONST( "," ) );
	Point						aPolyPoint;

	for( long i = 0, nCount = rPolyPoly.Count(); i < nCount; i++ )
	{
		const Polygon&	rPoly = rPolyPoly[ (USHORT) i ];
		USHORT			n = 1, nSize = rPoly.GetSize();

		if( nSize > 1 )
		{
			aPathData += B2UCONST( "M " );
			aPathData += GetValueString( ( aPolyPoint = rPoly[ 0 ] ).X() );
=====================================================================
Found a 24 line (100 tokens) duplication in the following files: 
Starting at line 134 of /local/ooo-build/ooo-build/src/oog680-m3/extensions/source/activex/main/SOActiveX.cpp
Starting at line 143 of /local/ooo-build/ooo-build/src/oog680-m3/odk/examples/OLE/activex/SOActiveX.cpp

	HRESULT hr = CoCreateInstance( clsFactory, NULL, CLSCTX_ALL, __uuidof(IDispatch), (void**)&mpDispFactory);

    mPWinClass.style			= CS_HREDRAW|CS_VREDRAW; 
    mPWinClass.lpfnWndProc		= ::DefWindowProc; 
    mPWinClass.cbClsExtra		= 0; 
    mPWinClass.cbWndExtra		= 0; 
    mPWinClass.hInstance		= (HINSTANCE) GetModuleHandle(NULL); //myInstance; 
    mPWinClass.hIcon			= NULL; 
    mPWinClass.hCursor			= NULL; 
    mPWinClass.hbrBackground	= (HBRUSH) COLOR_BACKGROUND; 
    mPWinClass.lpszMenuName	    = NULL; 
    mPWinClass.lpszClassName	= STAROFFICE_WINDOWCLASS;

	RegisterClass(&mPWinClass);
}

CSOActiveX::~CSOActiveX()
{
	Cleanup();

}

HRESULT CSOActiveX::Cleanup()
{
=====================================================================
Found a 13 line (100 tokens) duplication in the following files: 
Starting at line 160 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx
Starting at line 1472 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/olepersist.cxx
Starting at line 177 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/msole/xdialogcreator.cxx

	uno::Sequence< beans::PropertyValue > aObjArgs( aInObjArgs );

#ifdef WNT

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );
=====================================================================
Found a 15 line (100 tokens) duplication in the following files: 
Starting at line 412 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx
Starting at line 568 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx

				const uno::Sequence< beans::PropertyValue >& /* lArguments */,
				const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ )
		throw ( lang::IllegalArgumentException,
				embed::WrongStateException,
				io::IOException,
				uno::Exception,
				uno::RuntimeException )
{
	::osl::MutexGuard aGuard( m_aMutex );
	CheckInit();

	if ( m_bWaitSaveCompleted )
		throw embed::WrongStateException(
					::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
					uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
=====================================================================
Found a 11 line (100 tokens) duplication in the following files: 
Starting at line 332 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx

		throw lang::DisposedException(); // TODO

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );
=====================================================================
Found a 13 line (100 tokens) duplication in the following files: 
Starting at line 283 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 438 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/xcreator.cxx

		if ( !xStorage.is() )
			throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
												uno::Reference< uno::XInterface >(
													static_cast< ::cppu::OWeakObject* >(this) ),
												3 );

		if ( !sEntName.getLength() )
			throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
												uno::Reference< uno::XInterface >(
													static_cast< ::cppu::OWeakObject* >(this) ),
												4 );

		uno::Reference< embed::XLinkCreator > xLinkCreator(
=====================================================================
Found a 11 line (100 tokens) duplication in the following files: 
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx
Starting at line 357 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/dummyobject.cxx

		throw lang::DisposedException(); // TODO

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );
=====================================================================
Found a 12 line (100 tokens) duplication in the following files: 
Starting at line 215 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/specialobject.cxx
Starting at line 74 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/visobj.cxx

	::osl::MutexGuard aGuard( m_aMutex );
	if ( m_bDisposed )
		throw lang::DisposedException(); // TODO

	OSL_ENSURE( nAspect != embed::Aspects::MSOLE_ICON, "For iconified objects no graphical replacement is required!\n" );
	if ( nAspect == embed::Aspects::MSOLE_ICON )
		// no representation can be retrieved
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "Illegal call!\n" ),
									uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );

	if ( m_nObjectState == -1 )
		throw embed::WrongStateException( ::rtl::OUString::createFromAscii( "The own object has no persistence!\n" ),
=====================================================================
Found a 11 line (100 tokens) duplication in the following files: 
Starting at line 950 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 1771 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );

	if ( !m_bIsLink || m_nObjectState == -1 )
=====================================================================
Found a 11 line (100 tokens) duplication in the following files: 
Starting at line 948 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/persistence.cxx
Starting at line 106 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/commonembedding/xfactory.cxx

	RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OOoEmbeddedObjectFactory::createInstanceInitFromEntry" );

	if ( !xStorage.is() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "No parent storage is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											1 );

	if ( !sEntName.getLength() )
		throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Empty element name is provided!\n" ),
											uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
											2 );
=====================================================================
Found a 4 line (100 tokens) duplication in the following files: 
Starting at line 46 of /local/ooo-build/ooo-build/src/oog680-m3/dtrans/source/X11/nodrop_curs.h
Starting at line 45 of /local/ooo-build/ooo-build/src/oog680-m3/vcl/unx/source/inc/aswe_mask.h

 0x00,0x00,0x06,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
=====================================================================
Found a 15 line (100 tokens) duplication in the following files: 
Starting at line 252 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/services/autocorrmigration.cxx
Starting at line 239 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/migration/services/basicmigration.cxx

    void BasicMigration::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException)
    {
        ::osl::MutexGuard aGuard( m_aMutex );

        const Any* pIter = aArguments.getConstArray();
        const Any* pEnd = pIter + aArguments.getLength();
        for ( ; pIter != pEnd ; ++pIter )
        {
            beans::NamedValue aValue;
            *pIter >>= aValue;
            if ( aValue.Name.equalsAscii( "UserData" ) )
            {
                if ( !(aValue.Value >>= m_sSourceDir) )
                {
                    OSL_ENSURE( false, "BasicMigration::initialize: argument UserData has wrong type!" );
=====================================================================
Found a 16 line (100 tokens) duplication in the following files: 
Starting at line 310 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/deployment/gui/dp_gui_cmdenv.cxx
Starting at line 277 of /local/ooo-build/ooo-build/src/oog680-m3/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx

        const Reference<deployment::XPackage> xPackage(
            wtExc.Context, UNO_QUERY );
        OSL_ASSERT( xPackage.is() );
        if (xPackage.is()) {
            const Reference<deployment::XPackageTypeInfo> xPackageType(
                xPackage->getPackageType() );
            OSL_ASSERT( xPackageType.is() );
            if (xPackageType.is()) {
                approve = (xPackage->isBundle() &&
                           xPackageType->getMediaType().matchAsciiL(
                               RTL_CONSTASCII_STRINGPARAM(
                                   "application/"
                                   "vnd.sun.star.legacy-package-bundle") ));
            }
        }
        abort = !approve;
=====================================================================
Found a 22 line (100 tokens) duplication in the following files: 
Starting at line 162 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/ConnectionHelper.cxx
Starting at line 165 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/ui/dlg/ConnectionPage.cxx

typedef void*				HWND;
typedef void*				HMENU;
typedef void*				HDC;
#ifndef _SV_SYSDATA_HXX
#include <vcl/sysdata.hxx>
#endif
#ifndef _DBAUI_ADO_DATALINK_HXX_
#include "adodatalinks.hxx"
#endif
#endif //_ADO_DATALINK_BROWSE_
//.........................................................................
namespace dbaui
{
//.........................................................................
	using namespace ::com::sun::star::uno;
	using namespace ::com::sun::star::ucb;
	using namespace ::com::sun::star::ui::dialogs;
	using namespace ::com::sun::star::sdbc;
	using namespace ::com::sun::star::beans;
	using namespace ::com::sun::star::lang;
	using namespace ::com::sun::star::container;
	using namespace ::dbtools;
=====================================================================
Found a 19 line (100 tokens) duplication in the following files: 
Starting at line 161 of /local/ooo-build/ooo-build/src/oog680-m3/dbaccess/source/core/dataaccess/intercept.cxx
Starting at line 203 of /local/ooo-build/ooo-build/src/oog680-m3/embeddedobj/source/general/intercept.cxx

			uno::Sequence< beans::PropertyValue > aNewArgs = Arguments;
			sal_Int32 nInd = 0;

			while( nInd < aNewArgs.getLength() )
			{
				if ( aNewArgs[nInd].Name.equalsAscii( "SaveTo" ) )
				{
					aNewArgs[nInd].Value <<= sal_True;
					break;
				}
				nInd++;
			}
			
			if ( nInd == aNewArgs.getLength() )
			{
				aNewArgs.realloc( nInd + 1 );
				aNewArgs[nInd].Name = ::rtl::OUString::createFromAscii( "SaveTo" );
				aNewArgs[nInd].Value <<= sal_True;
			}
=====================================================================
Found a 19 line (100 tokens) duplication in the following files: 
Starting at line 65 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/env_tester/purpenv.test.cxx
Starting at line 121 of /local/ooo-build/ooo-build/src/oog680-m3/cppu/test/env_tester/purpenv.test.cxx

		g_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("s_freeFunc"));
		
		rtl::OUString reason;
		int valid = g_env.isValid(&reason);
		
		g_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("["));
		g_comment += rtl::OUString::valueOf((sal_Int32)valid);
		g_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(","));
		g_comment += reason;
		g_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("]"));

		if (!valid)
			g_comment += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - FAILURE"));

		g_comment += g_usret;
	}
}}

static rtl::OUString s_test_registerProxyInterface(rtl::OUString const & envDcp)
=====================================================================
Found a 22 line (100 tokens) duplication in the following files: 
Starting at line 376 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/hsqldb/HDriver.cxx
Starting at line 336 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/mysql/YDriver.cxx

        return Sequence< DriverPropertyInfo >(&aDriverInfo[0],aDriverInfo.size()); 
	}

	//--------------------------------------------------------------------
	sal_Int32 SAL_CALL ODriverDelegator::getMajorVersion(  ) throw (RuntimeException)
	{
		return 1;
	}

	//--------------------------------------------------------------------
	sal_Int32 SAL_CALL ODriverDelegator::getMinorVersion(  ) throw (RuntimeException)
	{
		return 0;
	}
	
	//--------------------------------------------------------------------
	Reference< XTablesSupplier > SAL_CALL ODriverDelegator::getDataDefinitionByConnection( const Reference< XConnection >& connection ) throw (SQLException, RuntimeException)
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(ODriverDelegator_BASE::rBHelper.bDisposed);

		Reference< XTablesSupplier > xTab;
=====================================================================
Found a 18 line (100 tokens) duplication in the following files: 
Starting at line 702 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 974 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/jdbc/JStatement.cxx

	Property* pProperties = aProps.getArray();
	sal_Int32 nPos = 0;
	DECL_PROP0(CURSORNAME,	::rtl::OUString);
	DECL_BOOL_PROP0(ESCAPEPROCESSING);
	DECL_PROP0(FETCHDIRECTION,sal_Int32);
	DECL_PROP0(FETCHSIZE,	sal_Int32);
	DECL_PROP0(MAXFIELDSIZE,sal_Int32);
	DECL_PROP0(MAXROWS,		sal_Int32);
	DECL_PROP0(QUERYTIMEOUT,sal_Int32);
	DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
	DECL_PROP0(RESULTSETTYPE,sal_Int32);
	DECL_BOOL_PROP0(USEBOOKMARKS);

	return new ::cppu::OPropertyArrayHelper(aProps);
}

// -------------------------------------------------------------------------
::cppu::IPropertyArrayHelper & java_sql_Statement_Base::getInfoHelper()
=====================================================================
Found a 29 line (100 tokens) duplication in the following files: 
Starting at line 183 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/ado/AStatement.cxx
Starting at line 234 of /local/ooo-build/ooo-build/src/oog680-m3/connectivity/source/drivers/odbc/OStatement.cxx

}
// -------------------------------------------------------------------------

void SAL_CALL OStatement_Base::close(  ) throw(SQLException, RuntimeException)
{
	{
		::osl::MutexGuard aGuard( m_aMutex );
		checkDisposed(OStatement_BASE::rBHelper.bDisposed);

	}
	dispose();
}
// -------------------------------------------------------------------------

void SAL_CALL OStatement::clearBatch(  ) throw(SQLException, RuntimeException)
{

}
// -------------------------------------------------------------------------

void OStatement_Base::reset() throw (SQLException)
{
	::osl::MutexGuard aGuard( m_aMutex );
	checkDisposed(OStatement_BASE::rBHelper.bDisposed);


	clearWarnings ();

	if (m_xResultSet.get().is())
=====================================================================
Found a 11 line (100 tokens) duplication in the following files: 
Starting at line 463 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/backend/binaryreader.cxx
Starting at line 503 of /local/ooo-build/ooo-build/src/oog680-m3/configmgr/source/backend/binaryreader.cxx

			result.n = sal_uInt64(
				(sal_uInt64(pData[0]) << 56) |
				(sal_uInt64(pData[1]) << 48) |
				(sal_uInt64(pData[2]) << 40) |
				(sal_uInt64(pData[3]) << 32) |
				(sal_uInt64(pData[4]) << 24) |
				(sal_uInt64(pData[5]) << 16) |
				(sal_uInt64(pData[6]) <<  8) |
				(sal_uInt64(pData[7]) <<  0)   );

			return result.d;
=====================================================================
Found a 22 line (100 tokens) duplication in the following files: 
Starting at line 3114 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx
Starting at line 3248 of /local/ooo-build/ooo-build/src/oog680-m3/codemaker/source/cppumaker/cpputype.cxx

		for (sal_uInt16 i=0; i < fieldCount; i++)
		{
			access = m_reader.getFieldFlags(i);
			
			if (access == RT_ACCESS_CONST || access == RT_ACCESS_INVALID)
				continue;

			fieldName = rtl::OUStringToOString(
                m_reader.getFieldName(i), RTL_TEXTENCODING_UTF8);
			fieldType = rtl::OUStringToOString(
                m_reader.getFieldTypeName(i), RTL_TEXTENCODING_UTF8);
		
			if (superHasMember)
				o << ", ";
			else
				superHasMember = sal_True;
				
			dumpType(o, fieldType, sal_True, sal_True);	
//			o << " __" << fieldName;
			o << " " << fieldName << "_";
		}		
		o << ") SAL_THROW( () )\n";
=====================================================================
Found a 15 line (100 tokens) duplication in the following files: 
Starting at line 93 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/VCartesianCoordinateSystem.cxx
Starting at line 190 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/view/axes/VPolarCoordinateSystem.cxx

void VPolarCoordinateSystem::createGridShapes()
{
    if(!m_xLogicTargetForGrids.is() || !m_xFinalTarget.is() )
        return;

    sal_Int32 nDimensionCount = m_xCooSysModel->getDimension();
    bool bSwapXAndY = this->getPropertySwapXAndYAxis();

    for( sal_Int32 nDimensionIndex=0; nDimensionIndex<3; nDimensionIndex++)
    {
        sal_Int32 nAxisIndex = MAIN_AXIS_INDEX;

        Reference< XAxis > xAxis( AxisHelper::getAxis( nDimensionIndex, nAxisIndex, m_xCooSysModel ) );
        if(!xAxis.is() || !AxisHelper::shouldAxisBeDisplayed( xAxis, m_xCooSysModel ))
            continue;
=====================================================================
Found a 3 line (100 tokens) duplication in the following files: 
Starting at line 125 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx
Starting at line 107 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx

void WrappedStockProperty::setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& /*xInnerPropertySet*/ ) const
                throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
=====================================================================
Found a 16 line (100 tokens) duplication in the following files: 
Starting at line 307 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
Starting at line 304 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx

uno::Sequence< uno::Any > SAL_CALL UpDownBarWrapper::getPropertyValues( const uno::Sequence< ::rtl::OUString >& rNameSeq )
                    throw (uno::RuntimeException)
{
    Sequence< Any > aRetSeq;
    if( rNameSeq.getLength() )
    {
        aRetSeq.realloc( rNameSeq.getLength() );
        for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++)
        {
            ::rtl::OUString aPropertyName( rNameSeq[nN] );
            aRetSeq[nN] = this->getPropertyValue( aPropertyName );
        }
    }
    return aRetSeq;
}
void SAL_CALL UpDownBarWrapper::addPropertiesChangeListener( const uno::Sequence< ::rtl::OUString >& /* aPropertyNames */, const uno::Reference< beans::XPropertiesChangeListener >& /* xListener */ )
=====================================================================
Found a 27 line (100 tokens) duplication in the following files: 
Starting at line 287 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx
Starting at line 211 of /local/ooo-build/ooo-build/src/oog680-m3/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx

        ::std::vector< beans::Property > aProperties;
        lcl_AddPropertiesToVector( aProperties );
        ::chart::CharacterProperties::AddPropertiesToVector( aProperties );
        ::chart::LineProperties::AddPropertiesToVector( aProperties );
        ::chart::FillProperties::AddPropertiesToVector( aProperties );
//         ::chart::NamedProperties::AddPropertiesToVector( aProperties );
        ::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );

        // and sort them for access via bsearch
        ::std::sort( aProperties.begin(), aProperties.end(),
                     ::chart::PropertyNameLess() );

        // transfer result to static Sequence
        aPropSeq = ::chart::ContainerHelper::ContainerToSequence( aProperties );
    }

    return aPropSeq;
}

} // anonymous namespace

// --------------------------------------------------------------------------------

namespace chart
{
namespace wrapper
{
=====================================================================
Found a 22 line (100 tokens) duplication in the following files: 
Starting at line 343 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
Starting at line 343 of /local/ooo-build/ooo-build/src/oog680-m3/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx

                    *(void **)pRegisterReturn = pCallStack[1];
                    eRet = typelib_TypeClass_ANY;
                    break;
                }
                TYPELIB_DANGER_RELEASE( pTD );
            }
		} // else perform queryInterface()
		default:
			eRet = cpp2uno_call(
				pCppI, aMemberDescr.get(),
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
				((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
				pCallStack, pRegisterReturn );
		}
		break;
	}
	default:
	{
		throw RuntimeException(
            rtl::OUString::createFromAscii("no member description found!"),
            (XInterface *)pThis );
=====================================================================
Found a 13 line (100 tokens) duplication in the following files: 
Starting at line 724 of /local/ooo-build/ooo-build/src/oog680-m3/basctl/source/basicide/scriptdocument.cxx
Starting at line 210 of /local/ooo-build/ooo-build/src/oog680-m3/scripting/source/basprov/basprov.cxx

                        ::rtl::OUString aScheme = xUriRef->getScheme();
                        if ( aScheme.equalsIgnoreAsciiCaseAscii( "file" ) )
                        {
                            aFileURL = aLinkURL;
                        }
                        else if ( aScheme.equalsIgnoreAsciiCaseAscii( "vnd.sun.star.pkg" ) )
                        {
                            ::rtl::OUString aAuthority = xUriRef->getAuthority();
                            if ( aAuthority.matchIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "vnd.sun.star.expand:" ) ) )
                            {
                                ::rtl::OUString aDecodedURL( aAuthority.copy( sizeof ( "vnd.sun.star.expand:" ) - 1 ) );
                                aDecodedURL = ::rtl::Uri::decode( aDecodedURL, rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8 );
                                Reference<util::XMacroExpander> xMacroExpander( 
=====================================================================
Found a 18 line (100 tokens) duplication in the following files: 
Starting at line 3212 of /local/ooo-build/ooo-build/src/oog680-m3/automation/source/server/statemnt.cxx
Starting at line 2703 of /local/ooo-build/ooo-build/src/oog680-m3/basic/source/runtime/methods.cxx

						INT16 nCurFlags = pRTLData->nDirFlags;
						if( (nCurFlags == Sb_ATTR_NORMAL)
						  && !(nFlags & ( _A_HIDDEN | _A_SYSTEM | _A_VOLID | _A_SUBDIR ) ) )
							break;
						else if( (nCurFlags & Sb_ATTR_HIDDEN) && (nFlags & _A_HIDDEN) )
							break;
						else if( (nCurFlags & Sb_ATTR_SYSTEM) && (nFlags & _A_SYSTEM) )
							break;
						else if( (nCurFlags & Sb_ATTR_VOLUME) && (nFlags & _A_VOLID) )
							break;
						else if( (nCurFlags & Sb_ATTR_DIRECTORY) && (nFlags & _A_SUBDIR) )
							break;
					}
	#else
					break;
	#endif
				}
			}
=====================================================================
Found a 15 line (100 tokens) duplication in the following files: 
Starting at line 79 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/display/idl/hfi_navibar.cxx
Starting at line 129 of /local/ooo-build/ooo-build/src/oog680-m3/autodoc/source/display/idl/hfi_navibar.cxx

HF_IdlNavigationBar::Produce_CeXrefsMainRow( const client & i_ce )
{
    HF_NaviMainRow
                aNaviMain( CurOut() );

    StreamLock  aLink(500);
    StreamStr & rLink = aLink();

    Env().Get_LinkTo( rLink.reset(),
					  Env().OutputTree().Overview() );
    aNaviMain.Add_StdItem( C_sTop, rLink.c_str() );

    Env().Get_LinkTo( rLink.reset(),
					  Env().Linker().PositionOf_CurModule() );
    aNaviMain.Add_StdItem( C_sModule, rLink.c_str() );

